From 56754427f01b18ee37308179728f7f6654f76ef3 Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Fri, 8 Oct 2021 14:01:44 +0200 Subject: [PATCH 01/24] Generate schemas for 2.35 and 2.36 --- src/scripts/generate-schemas.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/scripts/generate-schemas.ts b/src/scripts/generate-schemas.ts index b501919..f1542f1 100644 --- a/src/scripts/generate-schemas.ts +++ b/src/scripts/generate-schemas.ts @@ -197,9 +197,11 @@ type Instance = { version: string; url: string; isDeprecated?: boolean }; const instances: Instance[] = [ { version: "2.30", url: "http://admin:district@localhost:8030", isDeprecated: true }, { version: "2.31", url: "http://admin:district@localhost:8031", isDeprecated: true }, - { version: "2.32", url: "https://admin:district@play.dhis2.org/2.32" }, - { version: "2.33", url: "https://admin:district@play.dhis2.org/2.33" }, + { version: "2.32", url: "https://admin:district@play.dhis2.org/2.32", isDeprecated: true }, + { version: "2.33", url: "https://admin:district@play.dhis2.org/2.33", isDeprecated: true }, { version: "2.34", url: "https://admin:district@play.dhis2.org/2.34" }, + { version: "2.35", url: "https://admin:district@play.dhis2.org/2.35" }, + { version: "2.36", url: "https://admin:district@play.dhis2.org/2.36" }, ]; async function generateSchema(instance: Instance) { From d84c130079f0ba152eaa815cc7a7400f7cbbef41 Mon Sep 17 00:00:00 2001 From: Alexis Rico Date: Fri, 29 Oct 2021 08:22:06 +0200 Subject: [PATCH 02/24] Add TEI endpoint Signed-off-by: Alexis Rico --- package.json | 2 +- src/api/d2Api.ts | 8 +- src/api/system.ts | 2 + src/api/teis.ts | 200 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 210 insertions(+), 2 deletions(-) create mode 100644 src/api/teis.ts diff --git a/package.json b/package.json index 9b5581c..44792ae 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@eyeseetea/d2-api", "description": "Typed wrapper over DHIS2 API", - "version": "1.9.2", + "version": "1.9.3-beta.1", "license": "GPL-3.0", "author": "EyeSeeTea team", "repository": { diff --git a/src/api/d2Api.ts b/src/api/d2Api.ts index 3e094d4..d90ec62 100644 --- a/src/api/d2Api.ts +++ b/src/api/d2Api.ts @@ -20,9 +20,10 @@ import { MessageConversations } from "./messageConversations"; import { Metadata } from "./metadata"; import { Model } from "./model"; import { Sharing } from "./sharing"; +import { SqlViews } from "./SqlViews"; import { System } from "./system"; +import { TrackedEntityInstances } from "./teis"; import { D2ApiOptions, D2ApiRequest, IndexedModels } from "./types"; -import { SqlViews } from "./SqlViews"; export class D2ApiGeneric { public baseUrl: string; @@ -141,6 +142,11 @@ export abstract class D2ApiVersioned< return new Events(this); } + @cache() + get teis() { + return new TrackedEntityInstances(this); + } + @cache() get system() { return new System(this); diff --git a/src/api/system.ts b/src/api/system.ts index ef57ae9..cfc75b8 100644 --- a/src/api/system.ts +++ b/src/api/system.ts @@ -6,6 +6,7 @@ import { D2ApiGeneric } from "./d2Api"; import { DataValueSetsPostResponse } from "./dataValues"; import { EventsPostResponse } from "./events"; import { MetadataResponse } from "./metadata"; +import { TeiPostResponse } from "./teis"; export class System { constructor(public d2Api: D2ApiGeneric) {} @@ -209,4 +210,5 @@ export type WaitForResponse = { DATAVALUE_IMPORT: DataValueSetsPostResponse; EVENT_IMPORT: EventsPostResponse; METADATA_IMPORT: MetadataResponse; + TEI_IMPORT: TeiPostResponse; }; diff --git a/src/api/teis.ts b/src/api/teis.ts new file mode 100644 index 0000000..8dd4474 --- /dev/null +++ b/src/api/teis.ts @@ -0,0 +1,200 @@ +import { Id, Pager } from "./base"; +import { AsyncPostResponse, D2ApiResponse, HttpResponse } from "./common"; +import { D2ApiGeneric } from "./d2Api"; + +export class TrackedEntityInstances { + constructor(public d2Api: D2ApiGeneric) {} + + get(params: TeiGetRequest): D2ApiResponse { + return this.d2Api.get("/trackedEntityInstances", { + ...params, + paging: true, + }); + } + + getAll(params: TeiGetRequest): D2ApiResponse { + return this.d2Api.get("/trackedEntityInstances", { + ...params, + paging: false, + page: undefined, + pageSize: undefined, + }); + } + + post( + params: TeiPostParams, + request: TeiPostRequest + ): D2ApiResponse> { + return this.d2Api.post>( + "/trackedEntityInstances", + { ...params, async: false }, + request + ); + } + + postAsync( + params: TeiPostParams, + request: TeiPostRequest + ): D2ApiResponse> { + return this.d2Api.post>( + "/trackedEntityInstances", + { ...params, async: true }, + request + ); + } +} + +export interface TrackedEntityInstance { + trackedEntityInstance: Id; + trackedEntityType: Id; + inactive: boolean; + orgUnit: Id; + attributes: Attribute[]; + enrollments: Enrollment[]; + relationships: Relationship[]; +} + +export interface Relationship { + relationship: Id; + relationshipType: Id; + relationshipName: string; + from: RelationshipItem; + to: RelationshipItem; +} + +export interface RelationshipItem { + trackedEntityInstance?: { + trackedEntityInstance: Id; + }; + event?: { event: Id }; +} + +export interface Enrollment { + enrollment: Id; + program: Id; + orgUnit: Id; + enrollmentDate: string; + incidentDate: string; + events?: Event[]; +} + +export interface AttributeValue { + attribute: Attribute; + value: string; + optionId?: Id; +} + +export interface Attribute { + attribute: Id; + value: string; +} + +export interface TeiGetRequest { + ouMode?: "SELECTED" | "CHILDREN" | "DESCENDANTS" | "ACCESSIBLE" | "CAPTURE" | "ALL"; + ou?: Id; + program?: Id; + programStatus?: "ACTIVE" | "COMPLETED" | "CANCELLED"; + followUp?: boolean; + trackedEntityType?: Id; + order?: string; + pageSize?: number; + page?: number; + totalPages: true; + fields?: string; + programStartDate?: string; + programEndDate?: string; + lastUpdatedStartDate?: string; + lastUpdatedEndDate?: string; + lastUpdatedDuration?: string; + assignedUserMode?: "CURRENT" | "PROVIDED" | "NONE" | "ANY"; + trackedEntityInstance?: string; + includeDeleted?: boolean; +} + +export interface TeiGetResponse { + trackedEntityInstances: TrackedEntityInstance[]; +} + +export interface PaginatedTeiGetResponse extends TeiGetResponse { + pager: Pager; +} + +export interface TeiPostRequest { + events: Array<{ + event?: string; + orgUnit: string; + program: string; + status: string; + eventDate: string; + coordinate?: { + latitude: string; + longitude: string; + }; + attributeOptionCombo?: string; + trackedEntityInstance?: string; + programStage?: string; + dataValues: Array<{ + dataElement: string; + value: string | number | boolean; + }>; + }>; +} + +export type TeiPostParams = Partial<{ + idScheme: string; + dataElementIdScheme: string; + orgUnitIdScheme: string; + skipNotifications: boolean; + skipFirst: boolean; + strategy: "CREATE" | "UPDATE" | "CREATE_AND_UPDATE" | "DELETE"; + importReportMode: "FULL" | "ERRORS" | "DEBUG"; + async: boolean; + dryRun: boolean; +}>; + +export interface TeiPostResponse { + responseType: "ImportSummaries"; + status: "ERROR" | "SUCCESS"; + imported: number; + updated: number; + deleted: number; + ignored: number; + total: number; + importSummaries?: Array< + | { + responseType: "ImportSummary"; + status: "ERROR"; + reference?: string; + conflicts: Array<{ + object: string; + value: string; + }>; + importCount: { + imported: number; + updated: number; + ignored: number; + deleted: number; + }; + } + | { + responseType: "ImportSummary"; + status: "SUCCESS"; + reference: string; + importCount: { + imported: number; + updated: number; + ignored: number; + deleted: number; + }; + enrollments: { + responseType: "ImportSummaries"; + status: "ERROR" | "SUCCESS"; + imported: number; + updated: number; + deleted: number; + ignored: number; + total: number; + }; + } + >; +} From a47d33fb6a1344dbe93f0d12715099dc48d6a8f9 Mon Sep 17 00:00:00 2001 From: Alexis Rico Date: Fri, 29 Oct 2021 09:10:02 +0200 Subject: [PATCH 03/24] Update types Signed-off-by: Alexis Rico --- package.json | 2 +- src/api/teis.ts | 28 ++++++++++------------------ 2 files changed, 11 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 44792ae..44ee447 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@eyeseetea/d2-api", "description": "Typed wrapper over DHIS2 API", - "version": "1.9.3-beta.1", + "version": "1.9.3-beta.5", "license": "GPL-3.0", "author": "EyeSeeTea team", "repository": { diff --git a/src/api/teis.ts b/src/api/teis.ts index 8dd4474..3511052 100644 --- a/src/api/teis.ts +++ b/src/api/teis.ts @@ -86,6 +86,7 @@ export interface AttributeValue { export interface Attribute { attribute: Id; + valueType?: string; value: string; } @@ -100,7 +101,7 @@ export interface TeiGetRequest { pageSize?: number; page?: number; totalPages: true; - fields?: string; + fields?: string; // TODO: Add inference programStartDate?: string; programEndDate?: string; lastUpdatedStartDate?: string; @@ -120,23 +121,14 @@ export interface PaginatedTeiGetResponse extends TeiGetResponse { } export interface TeiPostRequest { - events: Array<{ - event?: string; - orgUnit: string; - program: string; - status: string; - eventDate: string; - coordinate?: { - latitude: string; - longitude: string; - }; - attributeOptionCombo?: string; - trackedEntityInstance?: string; - programStage?: string; - dataValues: Array<{ - dataElement: string; - value: string | number | boolean; - }>; + trackedEntityInstances: Array<{ + trackedEntityInstance: Id; + trackedEntityType: Id; + inactive?: boolean; + orgUnit: Id; + attributes: Attribute[]; + enrollments: Enrollment[]; + relationships: Relationship[]; }>; } From e60703682dd68e4e554a35da476ac0467868d48a Mon Sep 17 00:00:00 2001 From: Alexis Rico Date: Fri, 29 Oct 2021 09:36:26 +0200 Subject: [PATCH 04/24] Rename TEIs Signed-off-by: Alexis Rico --- package.json | 2 +- src/api/d2Api.ts | 4 ++-- src/api/system.ts | 2 +- src/api/{teis.ts => trackedEntityInstances.ts} | 4 +++- 4 files changed, 7 insertions(+), 5 deletions(-) rename src/api/{teis.ts => trackedEntityInstances.ts} (98%) diff --git a/package.json b/package.json index 44ee447..8945388 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@eyeseetea/d2-api", "description": "Typed wrapper over DHIS2 API", - "version": "1.9.3-beta.5", + "version": "1.9.3-beta.6", "license": "GPL-3.0", "author": "EyeSeeTea team", "repository": { diff --git a/src/api/d2Api.ts b/src/api/d2Api.ts index d90ec62..2996305 100644 --- a/src/api/d2Api.ts +++ b/src/api/d2Api.ts @@ -22,7 +22,7 @@ import { Model } from "./model"; import { Sharing } from "./sharing"; import { SqlViews } from "./SqlViews"; import { System } from "./system"; -import { TrackedEntityInstances } from "./teis"; +import { TrackedEntityInstances } from "./trackedEntityInstances"; import { D2ApiOptions, D2ApiRequest, IndexedModels } from "./types"; export class D2ApiGeneric { @@ -143,7 +143,7 @@ export abstract class D2ApiVersioned< } @cache() - get teis() { + get trackedEntityInstances() { return new TrackedEntityInstances(this); } diff --git a/src/api/system.ts b/src/api/system.ts index cfc75b8..fe41652 100644 --- a/src/api/system.ts +++ b/src/api/system.ts @@ -6,7 +6,7 @@ import { D2ApiGeneric } from "./d2Api"; import { DataValueSetsPostResponse } from "./dataValues"; import { EventsPostResponse } from "./events"; import { MetadataResponse } from "./metadata"; -import { TeiPostResponse } from "./teis"; +import { TeiPostResponse } from "./trackedEntityInstances"; export class System { constructor(public d2Api: D2ApiGeneric) {} diff --git a/src/api/teis.ts b/src/api/trackedEntityInstances.ts similarity index 98% rename from src/api/teis.ts rename to src/api/trackedEntityInstances.ts index 3511052..7ca19f9 100644 --- a/src/api/teis.ts +++ b/src/api/trackedEntityInstances.ts @@ -8,6 +8,7 @@ export class TrackedEntityInstances { get(params: TeiGetRequest): D2ApiResponse { return this.d2Api.get("/trackedEntityInstances", { ...params, + ou: params.ou.join(";"), paging: true, }); } @@ -15,6 +16,7 @@ export class TrackedEntityInstances { getAll(params: TeiGetRequest): D2ApiResponse { return this.d2Api.get("/trackedEntityInstances", { ...params, + ou: params.ou.join(";"), paging: false, page: undefined, pageSize: undefined, @@ -92,7 +94,7 @@ export interface Attribute { export interface TeiGetRequest { ouMode?: "SELECTED" | "CHILDREN" | "DESCENDANTS" | "ACCESSIBLE" | "CAPTURE" | "ALL"; - ou?: Id; + ou: Id[]; program?: Id; programStatus?: "ACTIVE" | "COMPLETED" | "CANCELLED"; followUp?: boolean; From 089c29746965cc899e3e997a797911ffabd4454a Mon Sep 17 00:00:00 2001 From: Alexis Rico Date: Fri, 29 Oct 2021 09:43:14 +0200 Subject: [PATCH 05/24] Make ou optional Signed-off-by: Alexis Rico --- package.json | 2 +- src/api/trackedEntityInstances.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 8945388..1bd8978 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@eyeseetea/d2-api", "description": "Typed wrapper over DHIS2 API", - "version": "1.9.3-beta.6", + "version": "1.9.3-beta.7", "license": "GPL-3.0", "author": "EyeSeeTea team", "repository": { diff --git a/src/api/trackedEntityInstances.ts b/src/api/trackedEntityInstances.ts index 7ca19f9..0941663 100644 --- a/src/api/trackedEntityInstances.ts +++ b/src/api/trackedEntityInstances.ts @@ -8,7 +8,7 @@ export class TrackedEntityInstances { get(params: TeiGetRequest): D2ApiResponse { return this.d2Api.get("/trackedEntityInstances", { ...params, - ou: params.ou.join(";"), + ou: params.ou?.join(";"), paging: true, }); } @@ -16,7 +16,7 @@ export class TrackedEntityInstances { getAll(params: TeiGetRequest): D2ApiResponse { return this.d2Api.get("/trackedEntityInstances", { ...params, - ou: params.ou.join(";"), + ou: params.ou?.join(";"), paging: false, page: undefined, pageSize: undefined, @@ -94,7 +94,7 @@ export interface Attribute { export interface TeiGetRequest { ouMode?: "SELECTED" | "CHILDREN" | "DESCENDANTS" | "ACCESSIBLE" | "CAPTURE" | "ALL"; - ou: Id[]; + ou?: Id[]; program?: Id; programStatus?: "ACTIVE" | "COMPLETED" | "CANCELLED"; followUp?: boolean; From 339db61ca75036b6a0792ab12001925755aa624f Mon Sep 17 00:00:00 2001 From: Alexis Rico Date: Fri, 29 Oct 2021 09:51:59 +0200 Subject: [PATCH 06/24] Validate given ous Signed-off-by: Alexis Rico --- package.json | 2 +- src/api/trackedEntityInstances.ts | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 1bd8978..c5c42a3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@eyeseetea/d2-api", "description": "Typed wrapper over DHIS2 API", - "version": "1.9.3-beta.7", + "version": "1.9.3-beta.8", "license": "GPL-3.0", "author": "EyeSeeTea team", "repository": { diff --git a/src/api/trackedEntityInstances.ts b/src/api/trackedEntityInstances.ts index 0941663..737c0b5 100644 --- a/src/api/trackedEntityInstances.ts +++ b/src/api/trackedEntityInstances.ts @@ -8,7 +8,7 @@ export class TrackedEntityInstances { get(params: TeiGetRequest): D2ApiResponse { return this.d2Api.get("/trackedEntityInstances", { ...params, - ou: params.ou?.join(";"), + ou: params.ou ? params.ou.join(";") : undefined, paging: true, }); } @@ -16,7 +16,7 @@ export class TrackedEntityInstances { getAll(params: TeiGetRequest): D2ApiResponse { return this.d2Api.get("/trackedEntityInstances", { ...params, - ou: params.ou?.join(";"), + ou: params.ou ? params.ou.join(";") : undefined, paging: false, page: undefined, pageSize: undefined, @@ -92,9 +92,11 @@ export interface Attribute { value: string; } -export interface TeiGetRequest { - ouMode?: "SELECTED" | "CHILDREN" | "DESCENDANTS" | "ACCESSIBLE" | "CAPTURE" | "ALL"; - ou?: Id[]; +export type TeiOuRequest = + | { ouMode?: "ACCESSIBLE" | "CAPTURE" | "ALL"; ou?: never[] } + | { ouMode?: "SELECTED" | "CHILDREN" | "DESCENDANTS"; ou: Id[] }; + +export type TeiGetRequest = TeiOuRequest & { program?: Id; programStatus?: "ACTIVE" | "COMPLETED" | "CANCELLED"; followUp?: boolean; @@ -112,7 +114,7 @@ export interface TeiGetRequest { assignedUserMode?: "CURRENT" | "PROVIDED" | "NONE" | "ANY"; trackedEntityInstance?: string; includeDeleted?: boolean; -} +}; export interface TeiGetResponse { trackedEntityInstances: TrackedEntityInstance[]; From 807e7c93f3d478b5b95d8d1650ba43a8deef829c Mon Sep 17 00:00:00 2001 From: Alexis Rico Date: Fri, 29 Oct 2021 09:55:46 +0200 Subject: [PATCH 07/24] Add comment Signed-off-by: Alexis Rico --- src/api/trackedEntityInstances.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/trackedEntityInstances.ts b/src/api/trackedEntityInstances.ts index 737c0b5..9d5c36a 100644 --- a/src/api/trackedEntityInstances.ts +++ b/src/api/trackedEntityInstances.ts @@ -97,10 +97,11 @@ export type TeiOuRequest = | { ouMode?: "SELECTED" | "CHILDREN" | "DESCENDANTS"; ou: Id[] }; export type TeiGetRequest = TeiOuRequest & { + // Program and tracked entity type cannot be specified simultaneously program?: Id; + trackedEntityType?: Id; programStatus?: "ACTIVE" | "COMPLETED" | "CANCELLED"; followUp?: boolean; - trackedEntityType?: Id; order?: string; pageSize?: number; page?: number; From 51dde42ec0acf7e07409d9cd0d1c44aa13b11884 Mon Sep 17 00:00:00 2001 From: Alexis Rico Date: Wed, 3 Nov 2021 07:54:22 +0100 Subject: [PATCH 08/24] Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c5c42a3..9eaa1ca 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@eyeseetea/d2-api", "description": "Typed wrapper over DHIS2 API", - "version": "1.9.3-beta.8", + "version": "1.9.3", "license": "GPL-3.0", "author": "EyeSeeTea team", "repository": { From 2cdb131f5a84f8bc0e584195351bfbb74aa0447b Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Thu, 4 Nov 2021 08:48:09 +0100 Subject: [PATCH 09/24] Type event.status --- src/api/events.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/api/events.ts b/src/api/events.ts index 6a2dbca..630c442 100644 --- a/src/api/events.ts +++ b/src/api/events.ts @@ -3,12 +3,14 @@ import { AsyncPostResponse, D2ApiResponse, HttpResponse } from "./common"; import { D2ApiGeneric } from "./d2Api"; import { Pager } from "./model"; +export type EventStatus = "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULED" | "OVERDUE" | "SKIPPED"; + export interface EventsPostRequest { events: Array<{ event?: string; orgUnit: string; program: string; - status: string; + status: EventStatus; eventDate: string; coordinate?: { latitude: string; @@ -139,7 +141,7 @@ export interface Event { event: string; programStage: string; orgUnit: string; - status: string; + status: EventStatus; orgUnitName: string; eventDate: string; attributeCategoryOptions: string; From 1303b3dc1bd578f907a23f5b12e5d8a3aa1cfe0f Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Thu, 4 Nov 2021 08:48:27 +0100 Subject: [PATCH 10/24] Add option strategy to EventsPostParams --- src/api/events.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/events.ts b/src/api/events.ts index 630c442..7d3444f 100644 --- a/src/api/events.ts +++ b/src/api/events.ts @@ -36,6 +36,7 @@ export type EventsPostParams = Partial<{ payloadFormat: "json" | "xml" | "csv"; async: boolean; dryRun: boolean; + strategy: "CREATE" | "UPDATE" | "CREATE_AND_UPDATE" | "DELETE"; }>; export type IdScheme = string; From 9bc44ae7ab012055b59339085b915378bfd85c13 Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Thu, 4 Nov 2021 09:50:28 +0100 Subject: [PATCH 11/24] Fix array infer on schemas SelectorKey --- src/api/inference.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/inference.ts b/src/api/inference.ts index c5d666a..f0f1aec 100644 --- a/src/api/inference.ts +++ b/src/api/inference.ts @@ -85,7 +85,7 @@ type SelectorKey< ? Model["fields"][K] extends Array ? T extends D2ModelSchemaBase ? SelectedPickValidated[] - : T + : T[] : (Model["fields"][K] extends D2ModelSchemaBase ? SelectedPickValidated : Model["fields"][K]) From 0a72934b53387b56218f03566c50ca69ee65db7b Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Thu, 4 Nov 2021 09:51:07 +0100 Subject: [PATCH 12/24] Add 2.37 to schemas --- src/scripts/generate-schemas.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripts/generate-schemas.ts b/src/scripts/generate-schemas.ts index f1542f1..d27a9b1 100644 --- a/src/scripts/generate-schemas.ts +++ b/src/scripts/generate-schemas.ts @@ -202,6 +202,7 @@ const instances: Instance[] = [ { version: "2.34", url: "https://admin:district@play.dhis2.org/2.34" }, { version: "2.35", url: "https://admin:district@play.dhis2.org/2.35" }, { version: "2.36", url: "https://admin:district@play.dhis2.org/2.36" }, + { version: "2.37", url: "https://admin:district@play.dhis2.org/2.37dev" }, ]; async function generateSchema(instance: Instance) { From 51cb74660a5c481e70381ee44d3087f1410b3e72 Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Thu, 4 Nov 2021 09:51:30 +0100 Subject: [PATCH 13/24] Fix attribute schemas --- src/scripts/generate-schemas.ts | 48 ++++++++++++++++++++++++++++----- 1 file changed, 41 insertions(+), 7 deletions(-) diff --git a/src/scripts/generate-schemas.ts b/src/scripts/generate-schemas.ts index d27a9b1..f07c31c 100644 --- a/src/scripts/generate-schemas.ts +++ b/src/scripts/generate-schemas.ts @@ -8,6 +8,7 @@ import { joinPath } from "../utils/connection"; import { ArgumentParser } from "argparse"; interface Schema extends D2SchemaProperties { + name: string; href: string; properties: SchemaFieldProperties[]; } @@ -53,7 +54,7 @@ const schemaFieldProperties: Array = [ "itemKlass", ]; -const interfaceFromClass: _.Dictionary = { +const interfaceFromClass: _.Dictionary = { "org.hisp.dhis.security.acl.Access": "D2Access", "org.hisp.dhis.translation.ObjectTranslation": "D2Translation", "org.hisp.dhis.translation.Translation": "D2Translation", @@ -63,7 +64,10 @@ const interfaceFromClass: _.Dictionary = { "org.hisp.dhis.expression.Expression": "D2Expression", "org.hisp.dhis.period.PeriodType": "string", "org.hisp.dhis.chart.Series": "any", - "org.hisp.dhis.attribute.AttributeValue": "D2AttributeValueGeneric", + "org.hisp.dhis.attribute.AttributeValue": { + type: "D2AttributeValueGeneric", + schema: "D2AttributeValueGenericSchema", + }, "org.hisp.dhis.eventdatavalue.EventDataValue": "any", "org.hisp.dhis.common.DataDimensionItem": "any", "org.hisp.dhis.common.DimensionalObject": "any", @@ -154,7 +158,12 @@ function getInterface(schemas: Schemas, property: SchemaProperty, suffix?: strin if (schemas[className]) { return `D2${className}${suffix || ""}`; } else if (interfaceFromClass[property.klass]) { - return interfaceFromClass[property.klass]; + const value = interfaceFromClass[property.klass]; + if (typeof value === "string") { + return value; + } else { + return suffix === "Schema" ? value.schema : value.type; + } } else { console.log(`Unsupported complex type, default to any: ${property.klass}`); return "any"; @@ -167,9 +176,33 @@ function getPropertyName(property: SchemaProperty): string { else return value; } +/* From 2.35, userAccess and userGroupAccess schemas have empty fields (why?) */ + +const customModelProperties: _.Dictionary<_.Dictionary> = { + userAccess: { + access: "string", + displayName: "string", + id: "string", + userUid: "string", + }, + userGroupAccess: { + access: "string", + displayName: "string", + id: "string", + userGroupUid: "string", + }, +}; + function getModelProperties(schemas: Schemas, schema: Schema, suffix?: string): string { - return _(schema.properties) - .map(property => [getPropertyName(property), getType(schemas, property, suffix)]) + const fromSchema = schema.properties.map(property => [ + getPropertyName(property), + getType(schemas, property, suffix), + ]); + + const fromCustom = _.toPairs(customModelProperties[schema.name] || {}); + const pairs = _.isEmpty(fromSchema) ? fromCustom : fromSchema; + + return _(pairs) .sortBy() .map(([key, value]) => `${key}: ${value}`) .join(";"); @@ -224,8 +257,9 @@ async function generateSchema(instance: Instance) { import { Id, Preset, FieldPresets, D2SchemaProperties, D2Access, D2Translation, D2Geometry, D2Style, - D2AttributeValueGeneric, D2DimensionalKeywords, D2Expression, - D2RelationshipConstraint, D2ReportingParams, D2Axis + D2DimensionalKeywords, D2Expression, + D2RelationshipConstraint, D2ReportingParams, D2Axis, + D2AttributeValueGeneric, D2AttributeValueGenericSchema } from "../schemas/base"; ${schemas From c38e85c346f0b7e8770d420741ad03a918ab7764 Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Thu, 4 Nov 2021 09:51:51 +0100 Subject: [PATCH 14/24] Add 2.35/36/37 infrastructure --- src/2.34/schemas.ts | 631 +- src/2.35/index.ts | 21 + src/2.35/schemas.ts | 35362 ++++++++++++++++++++++++++++++++++++++++++ src/2.36/index.ts | 21 + src/2.36/schemas.ts | 35245 +++++++++++++++++++++++++++++++++++++++++ src/2.37/schemas.ts | 34031 ++++++++++++++++++++++++++++++++++++++++ src/schemas/base.ts | 25 +- 7 files changed, 105097 insertions(+), 239 deletions(-) create mode 100644 src/2.35/index.ts create mode 100644 src/2.35/schemas.ts create mode 100644 src/2.36/index.ts create mode 100644 src/2.36/schemas.ts create mode 100644 src/2.37/schemas.ts diff --git a/src/2.34/schemas.ts b/src/2.34/schemas.ts index a02ff77..76ee5fa 100644 --- a/src/2.34/schemas.ts +++ b/src/2.34/schemas.ts @@ -9,12 +9,13 @@ import { D2Translation, D2Geometry, D2Style, - D2AttributeValueGeneric, D2DimensionalKeywords, D2Expression, D2RelationshipConstraint, D2ReportingParams, D2Axis, + D2AttributeValueGeneric, + D2AttributeValueGenericSchema, } from "../schemas/base"; export type D2AnalyticsPeriodBoundary = { @@ -592,10 +593,16 @@ export type D2Chart = { dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; description: string; digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; displayDescription: string; + displayDomainAxisLabel: string; displayFormName: string; displayName: string; + displayRangeAxisLabel: string; displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; domainAxisLabel: string; endDate: string; externalAccess: boolean; @@ -1316,7 +1323,9 @@ export type D2DataSetNotificationTemplate = { dataSetNotificationTrigger: "DATA_SET_COMPLETION" | "SCHEDULED_DAYS"; dataSets: D2DataSet[]; deliveryChannels: never[]; + displayMessageTemplate: string; displayName: string; + displaySubjectTemplate: string; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -1404,10 +1413,16 @@ export type D2EventChart = { dataElementValueDimension: D2DataElement; description: string; digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; displayDescription: string; + displayDomainAxisLabel: string; displayFormName: string; displayName: string; + displayRangeAxisLabel: string; displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; domainAxisLabel: string; endDate: string; eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; @@ -1534,6 +1549,8 @@ export type D2EventReport = { displayFormName: string; displayName: string; displayShortName: string; + displaySubtitle: string; + displayTitle: string; endDate: string; eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; externalAccess: boolean; @@ -1936,7 +1953,7 @@ export type D2JobConfiguration = { | "PUSH_ANALYSIS" | "PREDICTOR" | "DATA_SET_NOTIFICATION" - | "REMOVE_EXPIRED_RESERVED_VALUES" + | "REMOVE_USED_OR_EXPIRED_RESERVED_VALUES" | "TRACKER_IMPORT_JOB" | "TRACKER_IMPORT_NOTIFICATION_JOB" | "TRACKER_IMPORT_RULE_ENGINE_JOB" @@ -2127,6 +2144,8 @@ export type D2MapView = { displayFormName: string; displayName: string; displayShortName: string; + displaySubtitle: string; + displayTitle: string; endDate: string; eventClustering: boolean; eventCoordinateField: string; @@ -3116,7 +3135,9 @@ export type D2ProgramNotificationTemplate = { code: Id; created: string; deliveryChannels: never[]; + displayMessageTemplate: string; displayName: string; + displaySubjectTemplate: string; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -3189,6 +3210,7 @@ export type D2ProgramRuleAction = { created: string; data: string; dataElement: D2DataElement; + displayContent: string; displayName: string; evaluationEnvironments: never[]; evaluationTime: "ON_DATA_ENTRY" | "ON_COMPLETE" | "ALWAYS"; @@ -3398,6 +3420,7 @@ export type D2ProgramStageInstance = { creatableInSearchScope: boolean; created: string; createdAtClient: string; + createdByUserInfo: any; deleted: boolean; displayName: string; dueDate: string; @@ -3412,6 +3435,7 @@ export type D2ProgramStageInstance = { lastUpdated: string; lastUpdatedAtClient: string; lastUpdatedBy: D2User; + lastUpdatedByUserInfo: any; messageConversations: D2MessageConversation[]; name: string; organisationUnit: D2OrganisationUnit; @@ -3433,6 +3457,7 @@ export type D2ProgramStageInstanceFilter = { code: Id; created: string; description: string; + displayDescription: string; displayName: string; eventQueryCriteria: any; externalAccess: boolean; @@ -3797,6 +3822,8 @@ export type D2ReportTable = { displayFormName: string; displayName: string; displayShortName: string; + displaySubtitle: string; + displayTitle: string; endDate: string; externalAccess: boolean; favorite: boolean; @@ -3980,6 +4007,7 @@ export type D2Section = { dataElements: D2DataElement[]; dataSet: D2DataSet; description: string; + disableDataElementAutoGroup: boolean; displayName: string; externalAccess: boolean; favorite: boolean; @@ -4193,6 +4221,7 @@ export type D2TrackedEntityInstanceFilter = { code: Id; created: string; description: string; + displayDescription: string; displayName: string; enrollmentCreatedPeriod: any; enrollmentStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; @@ -4458,7 +4487,9 @@ export type D2ValidationNotificationTemplate = { attributeValues: D2AttributeValueGeneric[]; code: Id; created: string; + displayMessageTemplate: string; displayName: string; + displaySubjectTemplate: string; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -4636,11 +4667,17 @@ export type D2Visualization = { dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; description: string; digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; displayDescription: string; + displayDomainAxisLabel: string; displayFormName: string; displayName: string; + displayRangeAxisLabel: string; displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; domainAxisLabel: string; endDate: string; externalAccess: boolean; @@ -4743,7 +4780,7 @@ export interface D2AnalyticsPeriodBoundarySchema { | "BEFORE_END_OF_REPORTING_PERIOD" | "AFTER_START_OF_REPORTING_PERIOD" | "AFTER_END_OF_REPORTING_PERIOD"; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; boundaryTarget: string; code: Id; created: string; @@ -4808,7 +4845,7 @@ export interface D2AnalyticsTableHookSchema { | "EVENT" | "ENROLLMENT" | "VALIDATION_RESULT"; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; displayName: string; @@ -4880,7 +4917,7 @@ export interface D2AttributeSchema { model: D2Attribute; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categoryAttribute: boolean; categoryOptionAttribute: boolean; categoryOptionComboAttribute: boolean; @@ -5095,7 +5132,7 @@ export interface D2CategorySchema { | "CUSTOM" | "DEFAULT"; allItems: boolean; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categoryCombos: D2CategoryComboSchema[]; categoryOptions: D2CategoryOptionSchema[]; code: Id; @@ -5197,7 +5234,7 @@ export interface D2CategoryComboSchema { model: D2CategoryCombo; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categories: D2CategorySchema[]; categoryOptionCombos: D2CategoryOptionComboSchema[]; code: Id; @@ -5296,7 +5333,7 @@ export interface D2CategoryOptionSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categories: D2CategorySchema[]; categoryOptionCombos: D2CategoryOptionComboSchema[]; categoryOptionGroups: D2CategoryOptionGroupSchema[]; @@ -5419,7 +5456,7 @@ export interface D2CategoryOptionComboSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categoryCombo: D2CategoryComboSchema; categoryOptions: D2CategoryOptionSchema[]; code: Id; @@ -5520,7 +5557,7 @@ export interface D2CategoryOptionGroupSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categoryOptions: D2CategoryOptionSchema[]; code: Id; created: string; @@ -5631,7 +5668,7 @@ export interface D2CategoryOptionGroupSetSchema { | "CUSTOM" | "DEFAULT"; allItems: boolean; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categoryOptionGroups: D2CategoryOptionGroupSchema[]; code: Id; created: string; @@ -5772,7 +5809,7 @@ export interface D2ChartSchema { | "CUSTOM" | "DEFAULT"; attributeDimensions: any[]; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; baseLineLabel: string; baseLineValue: number; category: string; @@ -5789,10 +5826,16 @@ export interface D2ChartSchema { dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; description: string; digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; displayDescription: string; + displayDomainAxisLabel: string; displayFormName: string; displayName: string; + displayRangeAxisLabel: string; displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; domainAxisLabel: string; endDate: string; externalAccess: boolean; @@ -5888,7 +5931,7 @@ export interface D2ColorSchema { model: D2Color; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; color: string; created: string; @@ -5941,7 +5984,7 @@ export interface D2ColorSetSchema { model: D2ColorSet; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; colors: D2ColorSchema[]; created: string; @@ -5994,7 +6037,7 @@ export interface D2ConstantSchema { model: D2Constant; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; description: string; @@ -6067,7 +6110,7 @@ export interface D2DashboardSchema { model: D2Dashboard; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; dashboardItems: D2DashboardItemSchema[]; @@ -6142,7 +6185,7 @@ export interface D2DashboardItemSchema { fields: { access: D2Access; appKey: string; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; chart: D2ChartSchema; code: Id; contentCount: number; @@ -6252,7 +6295,7 @@ export interface D2DataApprovalLevelSchema { model: D2DataApprovalLevel; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categoryOptionGroupSet: D2CategoryOptionGroupSetSchema; code: Id; created: string; @@ -6320,7 +6363,7 @@ export interface D2DataApprovalWorkflowSchema { model: D2DataApprovalWorkflow; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categoryCombo: D2CategoryComboSchema; code: Id; created: string; @@ -6406,7 +6449,7 @@ export interface D2DataElementSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categoryCombo: D2CategoryComboSchema; code: Id; commentOptionSet: D2OptionSetSchema; @@ -6575,7 +6618,7 @@ export interface D2DataElementGroupSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; dataElements: D2DataElementSchema[]; @@ -6683,7 +6726,7 @@ export interface D2DataElementGroupSetSchema { | "CUSTOM" | "DEFAULT"; allItems: boolean; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; compulsory: boolean; created: string; @@ -6822,7 +6865,7 @@ export interface D2DataElementOperandSchema { | "CUSTOM" | "DEFAULT"; attributeOptionCombo: D2CategoryOptionComboSchema; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categoryOptionCombo: D2CategoryOptionComboSchema; code: Id; created: string; @@ -6880,7 +6923,7 @@ export interface D2DataEntryFormSchema { model: D2DataEntryForm; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; displayName: string; @@ -6968,7 +7011,7 @@ export interface D2DataSetSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categoryCombo: D2CategoryComboSchema; code: Id; compulsoryDataElementOperands: D2DataElementOperandSchema[]; @@ -7160,13 +7203,15 @@ export interface D2DataSetNotificationTemplateSchema { model: D2DataSetNotificationTemplate; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; dataSetNotificationTrigger: "DATA_SET_COMPLETION" | "SCHEDULED_DAYS"; dataSets: D2DataSetSchema[]; deliveryChannels: never[]; + displayMessageTemplate: string; displayName: string; + displaySubjectTemplate: string; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -7197,6 +7242,7 @@ export interface D2DataSetNotificationTemplateSchema { D2DataSetNotificationTemplate, | "code" | "lastUpdated" + | "translations" | "relativeScheduledDays" | "id" | "subjectTemplate" @@ -7217,6 +7263,7 @@ export interface D2DataSetNotificationTemplateSchema { D2DataSetNotificationTemplate, | "code" | "lastUpdated" + | "translations" | "relativeScheduledDays" | "id" | "subjectTemplate" @@ -7242,7 +7289,7 @@ export interface D2DocumentSchema { fields: { access: D2Access; attachment: boolean; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; contentType: string; created: string; @@ -7333,7 +7380,7 @@ export interface D2EventChartSchema { | "DEFAULT"; attributeDimensions: any[]; attributeValueDimension: D2TrackedEntityAttributeSchema; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; baseLineLabel: string; baseLineValue: number; categoryDimensions: D2CategoryDimensionSchema[]; @@ -7352,10 +7399,16 @@ export interface D2EventChartSchema { dataElementValueDimension: D2DataElementSchema; description: string; digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; displayDescription: string; + displayDomainAxisLabel: string; displayFormName: string; displayName: string; + displayRangeAxisLabel: string; displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; domainAxisLabel: string; endDate: string; eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; @@ -7468,8 +7521,8 @@ export interface D2EventChartSchema { | "domainAxisLabel" | "subscribers" | "cumulativeValues" - | "subtitle" | "sortOrder" + | "subtitle" | "rangeAxisDecimals" | "startDate" | "collapseDataDimensions" @@ -7495,8 +7548,8 @@ export interface D2EventChartSchema { | "completedOnly" | "userAccesses" | "name" - | "hideEmptyRowItems" | "programStatus" + | "hideEmptyRowItems" | "favorites" | "aggregationType" | "code" @@ -7507,9 +7560,9 @@ export interface D2EventChartSchema { | "organisationUnitGroupSetDimensions" | "title" | "hideLegend" - | "organisationUnitLevels" | "externalAccess" | "rangeAxisMinValue" + | "organisationUnitLevels" | "dataElementValueDimension" | "relativePeriods" | "targetLineLabel" @@ -7542,8 +7595,8 @@ export interface D2EventChartSchema { | "domainAxisLabel" | "subscribers" | "cumulativeValues" - | "subtitle" | "sortOrder" + | "subtitle" | "rangeAxisDecimals" | "startDate" | "collapseDataDimensions" @@ -7569,8 +7622,8 @@ export interface D2EventChartSchema { | "completedOnly" | "userAccesses" | "name" - | "hideEmptyRowItems" | "programStatus" + | "hideEmptyRowItems" | "favorites" | "aggregationType" | "code" @@ -7581,9 +7634,9 @@ export interface D2EventChartSchema { | "organisationUnitGroupSetDimensions" | "title" | "hideLegend" - | "organisationUnitLevels" | "externalAccess" | "rangeAxisMinValue" + | "organisationUnitLevels" | "dataElementValueDimension" | "relativePeriods" | "targetLineLabel" @@ -7622,7 +7675,7 @@ export interface D2EventReportSchema { | "DEFAULT"; attributeDimensions: any[]; attributeValueDimension: D2TrackedEntityAttributeSchema; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categoryDimensions: D2CategoryDimensionSchema[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; code: Id; @@ -7645,6 +7698,8 @@ export interface D2EventReportSchema { displayFormName: string; displayName: string; displayShortName: string; + displaySubtitle: string; + displayTitle: string; endDate: string; eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; externalAccess: boolean; @@ -7879,7 +7934,7 @@ export interface D2ExternalFileResourceSchema { model: D2ExternalFileResource; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; displayName: string; @@ -7917,7 +7972,7 @@ export interface D2ExternalMapLayerSchema { model: D2ExternalMapLayer; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; attribution: string; code: Id; created: string; @@ -7955,6 +8010,7 @@ export interface D2ExternalMapLayerSchema { | "legendSetUrl" | "mapService" | "lastUpdated" + | "translations" | "layers" | "id" | "lastUpdatedBy" @@ -7976,6 +8032,7 @@ export interface D2ExternalMapLayerSchema { | "legendSetUrl" | "mapService" | "lastUpdated" + | "translations" | "layers" | "id" | "lastUpdatedBy" @@ -7997,7 +8054,7 @@ export interface D2FileResourceSchema { model: D2FileResource; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; contentLength: string; contentMd5: string; @@ -8095,7 +8152,7 @@ export interface D2IndicatorSchema { | "CUSTOM" | "DEFAULT"; annualized: boolean; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; dataSets: D2DataSetSchema[]; @@ -8223,7 +8280,7 @@ export interface D2IndicatorGroupSchema { model: D2IndicatorGroup; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; displayName: string; @@ -8289,7 +8346,7 @@ export interface D2IndicatorGroupSetSchema { model: D2IndicatorGroupSet; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; compulsory: boolean; created: string; @@ -8356,7 +8413,7 @@ export interface D2IndicatorTypeSchema { model: D2IndicatorType; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; displayName: string; @@ -8412,7 +8469,7 @@ export interface D2InterpretationSchema { model: D2Interpretation; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; chart: D2ChartSchema; code: Id; comments: D2InterpretationCommentSchema[]; @@ -8508,7 +8565,7 @@ export interface D2InterpretationCommentSchema { model: D2InterpretationComment; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; displayName: string; @@ -8548,7 +8605,7 @@ export interface D2JobConfigurationSchema { model: D2JobConfiguration; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; configurable: boolean; created: string; @@ -8591,7 +8648,7 @@ export interface D2JobConfigurationSchema { | "PUSH_ANALYSIS" | "PREDICTOR" | "DATA_SET_NOTIFICATION" - | "REMOVE_EXPIRED_RESERVED_VALUES" + | "REMOVE_USED_OR_EXPIRED_RESERVED_VALUES" | "TRACKER_IMPORT_JOB" | "TRACKER_IMPORT_NOTIFICATION_JOB" | "TRACKER_IMPORT_RULE_ENGINE_JOB" @@ -8683,7 +8740,7 @@ export interface D2KeyJsonValueSchema { model: D2KeyJsonValue; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; displayName: string; @@ -8744,7 +8801,7 @@ export interface D2LegendSchema { model: D2Legend; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; color: string; created: string; @@ -8806,7 +8863,7 @@ export interface D2LegendSetSchema { model: D2LegendSet; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; displayName: string; @@ -8872,7 +8929,7 @@ export interface D2MapSchema { model: D2Map; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; basemap: string; code: Id; created: string; @@ -8984,7 +9041,7 @@ export interface D2MapViewSchema { | "DEFAULT"; areaRadius: number; attributeDimensions: any[]; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categoryDimensions: D2CategoryDimensionSchema[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; classes: number; @@ -9006,6 +9063,8 @@ export interface D2MapViewSchema { displayFormName: string; displayName: string; displayShortName: string; + displaySubtitle: string; + displayTitle: string; endDate: string; eventClustering: boolean; eventCoordinateField: string; @@ -9097,9 +9156,9 @@ export interface D2MapViewSchema { | "translations" | "eventCoordinateField" | "userOrganisationUnit" + | "organisationUnitSelectionMode" | "filterDimensions" | "id" - | "organisationUnitSelectionMode" | "method" | "renderingStrategy" | "labels" @@ -9122,13 +9181,13 @@ export interface D2MapViewSchema { | "lastUpdatedBy" | "labelFontSize" | "created" - | "colorHigh" | "columnDimensions" + | "colorHigh" | "eventPointRadius" | "areaRadius" | "programStatus" - | "dataDimensionItems" | "aggregationType" + | "dataDimensionItems" | "code" | "categoryOptionGroupSetDimensions" | "hidden" @@ -9158,9 +9217,9 @@ export interface D2MapViewSchema { | "translations" | "eventCoordinateField" | "userOrganisationUnit" + | "organisationUnitSelectionMode" | "filterDimensions" | "id" - | "organisationUnitSelectionMode" | "method" | "renderingStrategy" | "labels" @@ -9183,13 +9242,13 @@ export interface D2MapViewSchema { | "lastUpdatedBy" | "labelFontSize" | "created" - | "colorHigh" | "columnDimensions" + | "colorHigh" | "eventPointRadius" | "areaRadius" | "programStatus" - | "dataDimensionItems" | "aggregationType" + | "dataDimensionItems" | "code" | "categoryOptionGroupSetDimensions" | "hidden" @@ -9218,7 +9277,7 @@ export interface D2MessageConversationSchema { fields: { access: D2Access; assignee: D2UserSchema; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; displayName: string; @@ -9297,7 +9356,7 @@ export interface D2MetadataVersionSchema { model: D2MetadataVersion; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; displayName: string; @@ -9380,7 +9439,7 @@ export interface D2OAuth2ClientSchema { model: D2OAuth2Client; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; cid: Id; code: Id; created: string; @@ -9440,7 +9499,7 @@ export interface D2OptionSchema { model: D2Option; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: string; created: string; description: string; @@ -9525,7 +9584,7 @@ export interface D2OptionGroupSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; description: string; @@ -9632,7 +9691,7 @@ export interface D2OptionGroupSetSchema { | "CUSTOM" | "DEFAULT"; allItems: boolean; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; dataDimension: boolean; @@ -9733,7 +9792,7 @@ export interface D2OptionSetSchema { model: D2OptionSet; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; displayName: string; @@ -9845,7 +9904,7 @@ export interface D2OrganisationUnitSchema { | "CUSTOM" | "DEFAULT"; ancestors: D2OrganisationUnitSchema[]; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; children: D2OrganisationUnitSchema[]; closedDate: string; code: Id; @@ -9991,7 +10050,7 @@ export interface D2OrganisationUnitGroupSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; color: string; created: string; @@ -10109,7 +10168,7 @@ export interface D2OrganisationUnitGroupSetSchema { | "CUSTOM" | "DEFAULT"; allItems: boolean; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; compulsory: boolean; created: string; @@ -10240,7 +10299,7 @@ export interface D2OrganisationUnitLevelSchema { model: D2OrganisationUnitLevel; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; displayName: string; @@ -10297,7 +10356,7 @@ export interface D2PredictorSchema { fields: { access: D2Access; annualSampleCount: number; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; description: string; @@ -10381,7 +10440,7 @@ export interface D2PredictorGroupSchema { model: D2PredictorGroup; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; description: string; @@ -10446,7 +10505,7 @@ export interface D2ProgramSchema { fields: { access: D2Access; accessLevel: "OPEN" | "AUDITED" | "PROTECTED" | "CLOSED"; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categoryCombo: D2CategoryComboSchema; code: Id; completeEventsExpiryDays: number; @@ -10628,7 +10687,7 @@ export interface D2ProgramDataElementDimensionItemSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; dataElement: D2DataElementSchema; @@ -10732,7 +10791,7 @@ export interface D2ProgramIndicatorSchema { | "DEFAULT"; analyticsPeriodBoundaries: D2AnalyticsPeriodBoundarySchema[]; analyticsType: "EVENT" | "ENROLLMENT"; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; decimals: number; @@ -10854,7 +10913,7 @@ export interface D2ProgramIndicatorGroupSchema { model: D2ProgramIndicatorGroup; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; description: string; @@ -10918,7 +10977,7 @@ export interface D2ProgramInstanceSchema { model: D2ProgramInstance; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; completedBy: string; created: string; @@ -11012,11 +11071,13 @@ export interface D2ProgramNotificationTemplateSchema { model: D2ProgramNotificationTemplate; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; deliveryChannels: never[]; + displayMessageTemplate: string; displayName: string; + displaySubjectTemplate: string; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -11062,6 +11123,7 @@ export interface D2ProgramNotificationTemplateSchema { | "code" | "notificationTrigger" | "lastUpdated" + | "translations" | "relativeScheduledDays" | "id" | "subjectTemplate" @@ -11082,6 +11144,7 @@ export interface D2ProgramNotificationTemplateSchema { | "code" | "notificationTrigger" | "lastUpdated" + | "translations" | "relativeScheduledDays" | "id" | "subjectTemplate" @@ -11105,7 +11168,7 @@ export interface D2ProgramRuleSchema { model: D2ProgramRule; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; condition: string; created: string; @@ -11173,12 +11236,13 @@ export interface D2ProgramRuleActionSchema { model: D2ProgramRuleAction; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; content: string; created: string; data: string; dataElement: D2DataElementSchema; + displayContent: string; displayName: string; evaluationEnvironments: never[]; evaluationTime: "ON_DATA_ENTRY" | "ON_COMPLETE" | "ALWAYS"; @@ -11237,6 +11301,7 @@ export interface D2ProgramRuleActionSchema { | "content" | "trackedEntityAttribute" | "lastUpdated" + | "translations" | "programIndicator" | "id" | "programRule" @@ -11260,6 +11325,7 @@ export interface D2ProgramRuleActionSchema { | "content" | "trackedEntityAttribute" | "lastUpdated" + | "translations" | "programIndicator" | "id" | "programRule" @@ -11281,7 +11347,7 @@ export interface D2ProgramRuleVariableSchema { model: D2ProgramRuleVariable; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; dataElement: D2DataElementSchema; @@ -11353,7 +11419,7 @@ export interface D2ProgramSectionSchema { model: D2ProgramSection; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; description: string; @@ -11429,7 +11495,7 @@ export interface D2ProgramStageSchema { fields: { access: D2Access; allowGenerateNextVisit: boolean; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; autoGenerateEvent: boolean; blockEntryForm: boolean; code: Id; @@ -11582,7 +11648,7 @@ export interface D2ProgramStageDataElementSchema { access: D2Access; allowFutureDate: boolean; allowProvidedElsewhere: boolean; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; compulsory: boolean; created: string; @@ -11658,7 +11724,7 @@ export interface D2ProgramStageInstanceSchema { access: D2Access; assignedUser: D2UserSchema; attributeOptionCombo: D2CategoryOptionComboSchema; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; comments: any[]; completed: boolean; @@ -11667,6 +11733,7 @@ export interface D2ProgramStageInstanceSchema { creatableInSearchScope: boolean; created: string; createdAtClient: string; + createdByUserInfo: any; deleted: boolean; displayName: string; dueDate: string; @@ -11681,6 +11748,7 @@ export interface D2ProgramStageInstanceSchema { lastUpdated: string; lastUpdatedAtClient: string; lastUpdatedBy: D2UserSchema; + lastUpdatedByUserInfo: any; messageConversations: D2MessageConversationSchema[]; name: string; organisationUnit: D2OrganisationUnitSchema; @@ -11707,10 +11775,12 @@ export interface D2ProgramStageInstanceSchema { | "dueDate" | "createdAtClient" | "messageConversations" + | "lastUpdatedByUserInfo" | "lastUpdated" | "eventDataValues" | "relationshipItems" | "id" + | "createdByUserInfo" | "assignedUser" | "programStage" | "comments" @@ -11733,9 +11803,11 @@ export interface D2ProgramStageInstanceSchema { | "dueDate" | "createdAtClient" | "messageConversations" + | "lastUpdatedByUserInfo" | "lastUpdated" | "eventDataValues" | "id" + | "createdByUserInfo" | "assignedUser" | "programStage" | "comments" @@ -11758,10 +11830,11 @@ export interface D2ProgramStageInstanceFilterSchema { model: D2ProgramStageInstanceFilter; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; description: string; + displayDescription: string; displayName: string; eventQueryCriteria: any; externalAccess: boolean; @@ -11786,34 +11859,36 @@ export interface D2ProgramStageInstanceFilterSchema { $nameable: Preset; $persisted: Preset< D2ProgramStageInstanceFilter, - | "lastUpdatedBy" - | "programStage" | "eventQueryCriteria" - | "userGroupAccesses" - | "created" | "publicAccess" | "description" | "program" | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "userGroupAccesses" + | "created" | "userAccesses" | "name" - | "id" | "user" >; $owner: Preset< D2ProgramStageInstanceFilter, - | "lastUpdatedBy" - | "programStage" | "eventQueryCriteria" - | "userGroupAccesses" - | "created" | "publicAccess" | "description" | "program" | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "userGroupAccesses" + | "created" | "userAccesses" | "name" - | "id" | "user" >; }; @@ -11824,7 +11899,7 @@ export interface D2ProgramStageSectionSchema { model: D2ProgramStageSection; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; dataElements: D2DataElementSchema[]; @@ -11903,7 +11978,7 @@ export interface D2ProgramTrackedEntityAttributeSchema { fields: { access: D2Access; allowFutureDate: boolean; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; displayInList: boolean; @@ -12022,7 +12097,7 @@ export interface D2ProgramTrackedEntityAttributeDimensionItemSchema { | "CUSTOM" | "DEFAULT"; attribute: D2TrackedEntityAttributeSchema; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; description: string; @@ -12085,7 +12160,7 @@ export interface D2ProgramTrackedEntityAttributeGroupSchema { model: D2ProgramTrackedEntityAttributeGroup; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; attributes: D2ProgramTrackedEntityAttributeSchema[]; code: Id; created: string; @@ -12153,7 +12228,7 @@ export interface D2PushAnalysisSchema { model: D2PushAnalysis; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; dashboard: D2DashboardSchema; @@ -12213,7 +12288,7 @@ export interface D2RelationshipSchema { model: D2Relationship; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; description: string; @@ -12281,7 +12356,7 @@ export interface D2RelationshipTypeSchema { model: D2RelationshipType; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; bidirectional: boolean; code: Id; created: string; @@ -12359,7 +12434,7 @@ export interface D2ReportSchema { model: D2Report; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; cacheStrategy: | "NO_CACHE" | "CACHE_1_MINUTE" @@ -12464,7 +12539,7 @@ export interface D2ReportTableSchema { | "CUSTOM" | "DEFAULT"; attributeDimensions: any[]; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categoryDimensions: D2CategoryDimensionSchema[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; code: Id; @@ -12485,6 +12560,8 @@ export interface D2ReportTableSchema { displayFormName: string; displayName: string; displayShortName: string; + displaySubtitle: string; + displayTitle: string; endDate: string; externalAccess: boolean; favorite: boolean; @@ -12575,7 +12652,7 @@ export interface D2ReportingRateSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; dataSet: D2DataSetSchema; @@ -12638,7 +12715,7 @@ export interface D2SMSCommandSchema { model: D2SMSCommand; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; codeValueSeparator: string; completenessMethod: "ALL_DATAVALUE" | "AT_LEAST_ONE_DATAVALUE" | "DO_NOT_MARK_COMPLETE"; @@ -12740,13 +12817,14 @@ export interface D2SectionSchema { model: D2Section; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; categoryCombos: D2CategoryComboSchema[]; code: Id; created: string; dataElements: D2DataElementSchema[]; dataSet: D2DataSetSchema; description: string; + disableDataElementAutoGroup: boolean; displayName: string; externalAccess: boolean; favorite: boolean; @@ -12776,6 +12854,7 @@ export interface D2SectionSchema { | "code" | "greyedFields" | "description" + | "disableDataElementAutoGroup" | "lastUpdated" | "translations" | "id" @@ -12795,6 +12874,7 @@ export interface D2SectionSchema { | "code" | "greyedFields" | "description" + | "disableDataElementAutoGroup" | "lastUpdated" | "translations" | "id" @@ -12817,7 +12897,7 @@ export interface D2SqlViewSchema { model: D2SqlView; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; cacheStrategy: | "NO_CACHE" | "CACHE_1_MINUTE" @@ -12915,7 +12995,7 @@ export interface D2TrackedEntityAttributeSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; confidential: boolean; created: string; @@ -13130,7 +13210,7 @@ export interface D2TrackedEntityInstanceSchema { model: D2TrackedEntityInstance; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; createdAtClient: string; @@ -13205,10 +13285,11 @@ export interface D2TrackedEntityInstanceFilterSchema { model: D2TrackedEntityInstanceFilter; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; description: string; + displayDescription: string; displayName: string; enrollmentCreatedPeriod: any; enrollmentStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; @@ -13242,6 +13323,7 @@ export interface D2TrackedEntityInstanceFilterSchema { | "program" | "enrollmentCreatedPeriod" | "lastUpdated" + | "translations" | "id" | "lastUpdatedBy" | "created" @@ -13259,6 +13341,7 @@ export interface D2TrackedEntityInstanceFilterSchema { | "program" | "enrollmentCreatedPeriod" | "lastUpdated" + | "translations" | "id" | "lastUpdatedBy" | "created" @@ -13307,7 +13390,7 @@ export interface D2TrackedEntityTypeSchema { fields: { access: D2Access; allowAuditLog: boolean; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; description: string; @@ -13394,7 +13477,7 @@ export interface D2TrackedEntityTypeAttributeSchema { model: D2TrackedEntityTypeAttribute; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; displayInList: boolean; @@ -13482,7 +13565,7 @@ export interface D2UserSchema { model: D2User; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; avatar: D2FileResourceSchema; birthday: string; code: Id; @@ -13618,7 +13701,7 @@ export interface D2UserAuthorityGroupSchema { model: D2UserAuthorityGroup; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; authorities: string[]; code: Id; created: string; @@ -13683,7 +13766,7 @@ export interface D2UserCredentialsSchema { model: D2UserCredentials; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; catDimensionConstraints: D2CategorySchema[]; code: Id; cogsDimensionConstraints: D2CategoryOptionGroupSetSchema[]; @@ -13776,7 +13859,7 @@ export interface D2UserGroupSchema { model: D2UserGroup; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; displayName: string; @@ -13857,10 +13940,12 @@ export interface D2ValidationNotificationTemplateSchema { model: D2ValidationNotificationTemplate; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; + displayMessageTemplate: string; displayName: string; + displaySubjectTemplate: string; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -13891,8 +13976,9 @@ export interface D2ValidationNotificationTemplateSchema { | "code" | "recipientUserGroups" | "lastUpdated" - | "subjectTemplate" + | "translations" | "id" + | "subjectTemplate" | "sendStrategy" | "lastUpdatedBy" | "validationRules" @@ -13906,8 +13992,9 @@ export interface D2ValidationNotificationTemplateSchema { | "code" | "recipientUserGroups" | "lastUpdated" - | "subjectTemplate" + | "translations" | "id" + | "subjectTemplate" | "sendStrategy" | "lastUpdatedBy" | "validationRules" @@ -13972,7 +14059,7 @@ export interface D2ValidationRuleSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; description: string; @@ -14094,7 +14181,7 @@ export interface D2ValidationRuleGroupSchema { model: D2ValidationRuleGroup; fields: { access: D2Access; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; code: Id; created: string; description: string; @@ -14177,7 +14264,7 @@ export interface D2VisualizationSchema { | "CUSTOM" | "DEFAULT"; attributeDimensions: any[]; - attributeValues: D2AttributeValueGeneric[]; + attributeValues: D2AttributeValueGenericSchema[]; baseLineLabel: string; baseLineValue: number; categoryDimensions: D2CategoryDimensionSchema[]; @@ -14196,11 +14283,17 @@ export interface D2VisualizationSchema { dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; description: string; digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; displayDescription: string; + displayDomainAxisLabel: string; displayFormName: string; displayName: string; + displayRangeAxisLabel: string; displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; domainAxisLabel: string; endDate: string; externalAccess: boolean; @@ -16572,6 +16665,7 @@ export const models: Record = { propertyType: "BOOLEAN", klass: "java.lang.Boolean", }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, { name: "type", fieldName: "type", @@ -16585,6 +16679,8 @@ export const models: Record = { propertyType: "DATE", klass: "java.util.Date", }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayTargetLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, { name: "attributeDimension", fieldName: "attributeDimensions", @@ -16659,6 +16755,7 @@ export const models: Record = { propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User", }, + { name: "displayDomainAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, { name: "userGroupAccess", fieldName: "userGroupAccesses", @@ -16982,6 +17079,7 @@ export const models: Record = { klass: "java.util.List", itemKlass: "org.hisp.dhis.category.CategoryDimension", }, + { name: "displayRangeAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, { name: "timeField", fieldName: "timeField", @@ -17064,6 +17162,7 @@ export const models: Record = { propertyType: "TEXT", klass: "java.lang.String", }, + { name: "displayBaseLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, { name: "user", fieldName: "user", @@ -19612,7 +19711,7 @@ export const models: Record = { displayName: "Data Set Notification Template", collectionName: "dataSetNotificationTemplates", nameableObject: false, - translatable: false, + translatable: true, identifiableObject: true, dataShareable: false, name: "dataSetNotificationTemplate", @@ -19719,6 +19818,7 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "org.hisp.dhis.common.DeliveryChannel", }, + { name: "displaySubjectTemplate", propertyType: "TEXT", klass: "java.lang.String" }, { name: "created", fieldName: "created", @@ -19768,6 +19868,7 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "org.hisp.dhis.dataset.DataSet", }, + { name: "displayMessageTemplate", propertyType: "TEXT", klass: "java.lang.String" }, { name: "user", fieldName: "user", @@ -19978,6 +20079,7 @@ export const models: Record = { propertyType: "BOOLEAN", klass: "java.lang.Boolean", }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, { name: "program", fieldName: "program", @@ -19990,13 +20092,15 @@ export const models: Record = { propertyType: "CONSTANT", klass: "org.hisp.dhis.chart.ChartType", }, - { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, { name: "lastUpdated", fieldName: "lastUpdated", propertyType: "DATE", klass: "java.util.Date", }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayTargetLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, { name: "attributeDimension", fieldName: "attributeDimensions", @@ -20027,6 +20131,7 @@ export const models: Record = { propertyType: "BOOLEAN", klass: "java.lang.Boolean", }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "filterDimension", fieldName: "filterDimensions", @@ -20036,7 +20141,6 @@ export const models: Record = { itemKlass: "java.lang.String", }, { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, - { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "interpretation", fieldName: "interpretations", @@ -20085,18 +20189,18 @@ export const models: Record = { propertyType: "BOOLEAN", klass: "java.lang.Boolean", }, - { - name: "subtitle", - fieldName: "subtitle", - propertyType: "TEXT", - klass: "java.lang.String", - }, { name: "sortOrder", fieldName: "sortOrder", propertyType: "INTEGER", klass: "java.lang.Integer", }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, { name: "rangeAxisDecimals", fieldName: "rangeAxisDecimals", @@ -20208,6 +20312,7 @@ export const models: Record = { klass: "java.util.List", itemKlass: "org.hisp.dhis.category.CategoryDimension", }, + { name: "displayRangeAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, { name: "hideTitle", fieldName: "hideTitle", @@ -20234,6 +20339,7 @@ export const models: Record = { propertyType: "REFERENCE", klass: "org.hisp.dhis.color.ColorSet", }, + { name: "displayBaseLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, { name: "showData", fieldName: "showData", @@ -20266,6 +20372,7 @@ export const models: Record = { propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User", }, + { name: "displayDomainAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, { name: "programIndicatorDimension", fieldName: "programIndicatorDimensions", @@ -20329,18 +20436,18 @@ export const models: Record = { itemKlass: "org.hisp.dhis.user.UserAccess", }, { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, - { - name: "hideEmptyRowItems", - fieldName: "hideEmptyRowItems", - propertyType: "CONSTANT", - klass: "org.hisp.dhis.common.HideEmptyItemStrategy", - }, { name: "programStatus", fieldName: "programStatus", propertyType: "CONSTANT", klass: "org.hisp.dhis.program.ProgramStatus", }, + { + name: "hideEmptyRowItems", + fieldName: "hideEmptyRowItems", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.HideEmptyItemStrategy", + }, { name: "favorite", fieldName: "favorites", @@ -20349,6 +20456,12 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "java.lang.String", }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, { name: "dataDimensionItem", fieldName: "dataDimensionItems", @@ -20357,12 +20470,6 @@ export const models: Record = { klass: "java.util.List", itemKlass: "org.hisp.dhis.common.DataDimensionItem", }, - { - name: "aggregationType", - fieldName: "aggregationType", - propertyType: "CONSTANT", - klass: "org.hisp.dhis.analytics.AggregationType", - }, { name: "code", fieldName: "code", @@ -20410,14 +20517,6 @@ export const models: Record = { propertyType: "BOOLEAN", klass: "java.lang.Boolean", }, - { - name: "organisationUnitLevel", - fieldName: "organisationUnitLevels", - propertyType: "COLLECTION", - itemPropertyType: "INTEGER", - klass: "java.util.List", - itemKlass: "java.lang.Integer", - }, { name: "externalAccess", fieldName: "externalAccess", @@ -20430,6 +20529,14 @@ export const models: Record = { propertyType: "NUMBER", klass: "java.lang.Double", }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, { name: "legendDisplayStrategy", fieldName: "legendDisplayStrategy", @@ -20588,6 +20695,7 @@ export const models: Record = { propertyType: "BOOLEAN", klass: "java.lang.Boolean", }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, { name: "program", fieldName: "program", @@ -20601,6 +20709,7 @@ export const models: Record = { propertyType: "DATE", klass: "java.util.Date", }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, { name: "hideEmptyRows", fieldName: "hideEmptyRows", @@ -21249,7 +21358,7 @@ export const models: Record = { displayName: "External Map Layer", collectionName: "externalMapLayers", nameableObject: false, - translatable: false, + translatable: true, identifiableObject: true, dataShareable: false, name: "externalMapLayer", @@ -23386,19 +23495,21 @@ export const models: Record = { propertyType: "BOOLEAN", klass: "java.lang.Boolean", }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, { name: "program", fieldName: "program", propertyType: "REFERENCE", klass: "org.hisp.dhis.program.Program", }, - { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, { name: "lastUpdated", fieldName: "lastUpdated", propertyType: "DATE", klass: "java.util.Date", }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, { name: "attributeDimension", fieldName: "attributeDimensions", @@ -23427,6 +23538,13 @@ export const models: Record = { propertyType: "BOOLEAN", klass: "java.lang.Boolean", }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "organisationUnitSelectionMode", + fieldName: "organisationUnitSelectionMode", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.OrganisationUnitSelectionMode", + }, { name: "filterDimension", fieldName: "filterDimensions", @@ -23436,13 +23554,6 @@ export const models: Record = { itemKlass: "java.lang.String", }, { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, - { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, - { - name: "organisationUnitSelectionMode", - fieldName: "organisationUnitSelectionMode", - propertyType: "CONSTANT", - klass: "org.hisp.dhis.common.OrganisationUnitSelectionMode", - }, { name: "interpretation", fieldName: "interpretations", @@ -23491,18 +23602,18 @@ export const models: Record = { propertyType: "BOOLEAN", klass: "java.lang.Boolean", }, - { - name: "subtitle", - fieldName: "subtitle", - propertyType: "TEXT", - klass: "java.lang.String", - }, { name: "sortOrder", fieldName: "sortOrder", propertyType: "INTEGER", klass: "java.lang.Integer", }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, { name: "shortName", fieldName: "shortName", @@ -23691,12 +23802,6 @@ export const models: Record = { propertyType: "DATE", klass: "java.util.Date", }, - { - name: "colorHigh", - fieldName: "colorHigh", - propertyType: "COLOR", - klass: "java.lang.String", - }, { name: "attributeValue", fieldName: "attributeValues", @@ -23713,6 +23818,12 @@ export const models: Record = { klass: "java.util.List", itemKlass: "java.lang.String", }, + { + name: "colorHigh", + fieldName: "colorHigh", + propertyType: "COLOR", + klass: "java.lang.String", + }, { name: "completedOnly", fieldName: "completedOnly", @@ -23760,6 +23871,12 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "java.lang.String", }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, { name: "dataDimensionItem", fieldName: "dataDimensionItems", @@ -23768,12 +23885,6 @@ export const models: Record = { klass: "java.util.List", itemKlass: "org.hisp.dhis.common.DataDimensionItem", }, - { - name: "aggregationType", - fieldName: "aggregationType", - propertyType: "CONSTANT", - klass: "org.hisp.dhis.analytics.AggregationType", - }, { name: "code", fieldName: "code", @@ -23821,6 +23932,12 @@ export const models: Record = { itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", }, { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, { name: "organisationUnitLevel", fieldName: "organisationUnitLevels", @@ -23829,12 +23946,6 @@ export const models: Record = { klass: "java.util.List", itemKlass: "java.lang.Integer", }, - { - name: "externalAccess", - fieldName: "externalAccess", - propertyType: "BOOLEAN", - klass: "java.lang.Boolean", - }, { name: "organisationUnitGroupSet", fieldName: "organisationUnitGroupSet", @@ -23885,12 +23996,6 @@ export const models: Record = { propertyType: "TEXT", klass: "java.lang.String", }, - { - name: "parentGraph", - fieldName: "parentGraph", - propertyType: "TEXT", - klass: "java.lang.String", - }, { name: "filter", fieldName: "filters", @@ -23899,6 +24004,12 @@ export const models: Record = { klass: "java.util.List", itemKlass: "org.hisp.dhis.common.DimensionalObject", }, + { + name: "parentGraph", + fieldName: "parentGraph", + propertyType: "TEXT", + klass: "java.lang.String", + }, { name: "row", fieldName: "rows", @@ -27618,7 +27729,7 @@ export const models: Record = { displayName: "Program Notification Template", collectionName: "programNotificationTemplates", nameableObject: false, - translatable: false, + translatable: true, identifiableObject: true, dataShareable: false, name: "programNotificationTemplate", @@ -27725,6 +27836,7 @@ export const models: Record = { propertyType: "REFERENCE", klass: "org.hisp.dhis.dataelement.DataElement", }, + { name: "displaySubjectTemplate", propertyType: "TEXT", klass: "java.lang.String" }, { name: "created", fieldName: "created", @@ -27772,6 +27884,7 @@ export const models: Record = { itemKlass: "org.hisp.dhis.user.UserAccess", }, { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayMessageTemplate", propertyType: "TEXT", klass: "java.lang.String" }, { name: "user", fieldName: "user", @@ -27956,7 +28069,7 @@ export const models: Record = { displayName: "Program Rule Action", collectionName: "programRuleActions", nameableObject: false, - translatable: false, + translatable: true, identifiableObject: true, dataShareable: false, name: "programRuleAction", @@ -28040,6 +28153,7 @@ export const models: Record = { propertyType: "DATE", klass: "java.util.Date", }, + { name: "displayContent", propertyType: "TEXT", klass: "java.lang.String" }, { name: "translation", fieldName: "translations", @@ -29062,6 +29176,12 @@ export const models: Record = { klass: "java.util.List", itemKlass: "org.hisp.dhis.message.MessageConversation", }, + { + name: "lastUpdatedByUserInfo", + fieldName: "lastUpdatedByUserInfo", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.program.UserInfoSnapshot", + }, { name: "externalAccess", fieldName: "externalAccess", @@ -29100,6 +29220,12 @@ export const models: Record = { }, { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "createdByUserInfo", + fieldName: "createdByUserInfo", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.program.UserInfoSnapshot", + }, { name: "assignedUser", fieldName: "assignedUser", @@ -29231,7 +29357,7 @@ export const models: Record = { displayName: "Program Stage Instance Filter", collectionName: "eventFilters", nameableObject: false, - translatable: false, + translatable: true, identifiableObject: true, dataShareable: false, name: "programStageInstanceFilter", @@ -29246,18 +29372,6 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "java.lang.String", }, - { - name: "lastUpdatedBy", - fieldName: "lastUpdatedBy", - propertyType: "REFERENCE", - klass: "org.hisp.dhis.user.User", - }, - { - name: "programStage", - fieldName: "programStage", - propertyType: "IDENTIFIER", - klass: "java.lang.String", - }, { name: "eventQueryCriteria", fieldName: "eventQueryCriteria", @@ -29270,26 +29384,12 @@ export const models: Record = { propertyType: "COMPLEX", klass: "org.hisp.dhis.security.acl.Access", }, - { - name: "userGroupAccess", - fieldName: "userGroupAccesses", - propertyType: "COLLECTION", - itemPropertyType: "COMPLEX", - klass: "java.util.Set", - itemKlass: "org.hisp.dhis.user.UserGroupAccess", - }, { name: "code", fieldName: "code", propertyType: "IDENTIFIER", klass: "java.lang.String", }, - { - name: "created", - fieldName: "created", - propertyType: "DATE", - klass: "java.util.Date", - }, { name: "displayName", fieldName: "displayName", @@ -29302,14 +29402,6 @@ export const models: Record = { propertyType: "TEXT", klass: "java.lang.String", }, - { - name: "attributeValue", - fieldName: "attributeValues", - propertyType: "COLLECTION", - itemPropertyType: "COMPLEX", - klass: "java.util.Set", - itemKlass: "org.hisp.dhis.attribute.AttributeValue", - }, { name: "description", fieldName: "description", @@ -29342,6 +29434,48 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "org.hisp.dhis.translation.Translation", }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, { name: "userAccess", fieldName: "userAccesses", @@ -29351,8 +29485,6 @@ export const models: Record = { itemKlass: "org.hisp.dhis.user.UserAccess", }, { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, - { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, - { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, { name: "user", fieldName: "user", @@ -30774,6 +30906,7 @@ export const models: Record = { propertyType: "BOOLEAN", klass: "java.lang.Boolean", }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, { name: "legendDisplayStyle", fieldName: "legendDisplayStyle", @@ -30799,6 +30932,7 @@ export const models: Record = { propertyType: "DATE", klass: "java.util.Date", }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, { name: "hideEmptyRows", fieldName: "hideEmptyRows", @@ -31729,6 +31863,12 @@ export const models: Record = { propertyType: "TEXT", klass: "java.lang.String", }, + { + name: "disableDataElementAutoGroup", + fieldName: "disableDataElementAutoGroup", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, { name: "externalAccess", fieldName: "externalAccess", @@ -32543,11 +32683,12 @@ export const models: Record = { klass: "org.hisp.dhis.trackedentityfilter.TrackedEntityInstanceFilter", shareable: false, metadata: true, + relativeApiEndpoint: "/trackedEntityInstanceFilters", plural: "trackedEntityInstanceFilters", displayName: "Tracked Entity Instance Filter", collectionName: "trackedEntityInstanceFilters", nameableObject: false, - translatable: false, + translatable: true, identifiableObject: true, dataShareable: false, name: "trackedEntityInstanceFilter", @@ -32626,6 +32767,12 @@ export const models: Record = { }, { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, { name: "lastUpdatedBy", fieldName: "lastUpdatedBy", @@ -33899,7 +34046,7 @@ export const models: Record = { displayName: "Validation Notification Template", collectionName: "validationNotificationTemplates", nameableObject: false, - translatable: false, + translatable: true, identifiableObject: true, dataShareable: false, name: "identifiableObject", @@ -33914,18 +34061,18 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "java.lang.String", }, - { - name: "access", - fieldName: "access", - propertyType: "COMPLEX", - klass: "org.hisp.dhis.security.acl.Access", - }, { name: "code", fieldName: "code", propertyType: "IDENTIFIER", klass: "java.lang.String", }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, { name: "displayName", fieldName: "displayName", @@ -33966,6 +34113,7 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "org.hisp.dhis.translation.Translation", }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "subjectTemplate", @@ -33973,7 +34121,6 @@ export const models: Record = { propertyType: "TEXT", klass: "java.lang.String", }, - { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, { name: "sendStrategy", fieldName: "sendStrategy", @@ -34002,6 +34149,7 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "org.hisp.dhis.validation.ValidationRule", }, + { name: "displaySubjectTemplate", propertyType: "TEXT", klass: "java.lang.String" }, { name: "created", fieldName: "created", @@ -34037,6 +34185,7 @@ export const models: Record = { itemKlass: "org.hisp.dhis.user.UserAccess", }, { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayMessageTemplate", propertyType: "TEXT", klass: "java.lang.String" }, { name: "user", fieldName: "user", @@ -34565,6 +34714,7 @@ export const models: Record = { propertyType: "BOOLEAN", klass: "java.lang.Boolean", }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, { name: "legendDisplayStyle", fieldName: "legendDisplayStyle", @@ -34596,6 +34746,8 @@ export const models: Record = { klass: "java.util.Date", }, { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayTargetLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, { name: "attributeDimension", fieldName: "attributeDimensions", @@ -34833,6 +34985,7 @@ export const models: Record = { propertyType: "BOOLEAN", klass: "java.lang.Boolean", }, + { name: "displayRangeAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, { name: "reportingParams", fieldName: "reportingParams", @@ -34859,6 +35012,7 @@ export const models: Record = { propertyType: "REFERENCE", klass: "org.hisp.dhis.color.ColorSet", }, + { name: "displayBaseLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, { name: "skipRounding", fieldName: "skipRounding", @@ -34909,6 +35063,7 @@ export const models: Record = { propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User", }, + { name: "displayDomainAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, { name: "programIndicatorDimension", fieldName: "programIndicatorDimensions", diff --git a/src/2.35/index.ts b/src/2.35/index.ts new file mode 100644 index 0000000..0411234 --- /dev/null +++ b/src/2.35/index.ts @@ -0,0 +1,21 @@ +import { D2ModelSchemas, models } from "./schemas"; +import { MetadataPickBase, MetadataPayloadBase } from "../api/metadata"; +import { D2ApiDefinitionBase, FilterBase } from "../api/common"; +import { D2ApiVersioned, D2ApiOptions } from "../api/d2Api"; + +export * from "../api/index"; +export * from "./schemas"; + +export interface D2ApiDefinition extends D2ApiDefinitionBase { + schemas: D2ModelSchemas; + filter: FilterBase; +} + +export type MetadataPick = MetadataPickBase; +export type MetadataPayload = MetadataPayloadBase; + +export class D2Api extends D2ApiVersioned { + public constructor(options?: D2ApiOptions) { + super(models, options); + } +} diff --git a/src/2.35/schemas.ts b/src/2.35/schemas.ts new file mode 100644 index 0000000..22e9d15 --- /dev/null +++ b/src/2.35/schemas.ts @@ -0,0 +1,35362 @@ +/* eslint-disable */ + +import { + Id, + Preset, + FieldPresets, + D2SchemaProperties, + D2Access, + D2Translation, + D2Geometry, + D2Style, + D2DimensionalKeywords, + D2Expression, + D2RelationshipConstraint, + D2ReportingParams, + D2Axis, + D2AttributeValueGeneric, + D2AttributeValueGenericSchema, +} from "../schemas/base"; + +export type D2AnalyticsPeriodBoundary = { + access: D2Access; + analyticsPeriodBoundaryType: + | "BEFORE_START_OF_REPORTING_PERIOD" + | "BEFORE_END_OF_REPORTING_PERIOD" + | "AFTER_START_OF_REPORTING_PERIOD" + | "AFTER_END_OF_REPORTING_PERIOD"; + attributeValues: D2AttributeValueGeneric[]; + boundaryTarget: string; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + offsetPeriodType: string; + offsetPeriods: number; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2AnalyticsTableHook = { + access: D2Access; + analyticsTableType: + | "DATA_VALUE" + | "COMPLETENESS" + | "COMPLETENESS_TARGET" + | "ORG_UNIT_TARGET" + | "EVENT" + | "ENROLLMENT" + | "VALIDATION_RESULT"; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + phase: "RESOURCE_TABLE_POPULATED" | "ANALYTICS_TABLE_POPULATED"; + publicAccess: string; + resourceTableType: + | "ORG_UNIT_STRUCTURE" + | "DATA_SET_ORG_UNIT_CATEGORY" + | "CATEGORY_OPTION_COMBO_NAME" + | "DATA_ELEMENT_GROUP_SET_STRUCTURE" + | "INDICATOR_GROUP_SET_STRUCTURE" + | "ORG_UNIT_GROUP_SET_STRUCTURE" + | "CATEGORY_STRUCTURE" + | "DATA_ELEMENT_STRUCTURE" + | "PERIOD_STRUCTURE" + | "DATE_PERIOD_STRUCTURE" + | "DATA_ELEMENT_CATEGORY_OPTION_COMBO" + | "DATA_APPROVAL_REMAP_LEVEL" + | "DATA_APPROVAL_MIN_LEVEL"; + sql: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Attribute = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + categoryAttribute: boolean; + categoryOptionAttribute: boolean; + categoryOptionComboAttribute: boolean; + categoryOptionGroupAttribute: boolean; + categoryOptionGroupSetAttribute: boolean; + code: Id; + constantAttribute: boolean; + created: string; + dataElementAttribute: boolean; + dataElementGroupAttribute: boolean; + dataElementGroupSetAttribute: boolean; + dataSetAttribute: boolean; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + documentAttribute: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + indicatorAttribute: boolean; + indicatorGroupAttribute: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSetAttribute: boolean; + mandatory: boolean; + name: string; + optionAttribute: boolean; + optionSet: D2OptionSet; + optionSetAttribute: boolean; + organisationUnitAttribute: boolean; + organisationUnitGroupAttribute: boolean; + organisationUnitGroupSetAttribute: boolean; + programAttribute: boolean; + programIndicatorAttribute: boolean; + programStageAttribute: boolean; + publicAccess: string; + sectionAttribute: boolean; + shortName: string; + sortOrder: number; + sqlViewAttribute: boolean; + trackedEntityAttributeAttribute: boolean; + trackedEntityTypeAttribute: boolean; + translations: D2Translation[]; + unique: boolean; + user: D2User; + userAccesses: D2UserAccess[]; + userAttribute: boolean; + userGroupAccesses: D2UserGroupAccess[]; + userGroupAttribute: boolean; + validationRuleAttribute: boolean; + validationRuleGroupAttribute: boolean; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; +}; + +export type D2Category = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueGeneric[]; + categoryCombos: D2CategoryCombo[]; + categoryOptions: D2CategoryOption[]; + code: Id; + created: string; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + name: string; + programStage: D2ProgramStage; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryCombo = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + categories: D2Category[]; + categoryOptionCombos: D2CategoryOptionCombo[]; + code: Id; + created: string; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + isDefault: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + skipTotal: boolean; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryDimension = { + category: D2Category; + categoryOptions: D2CategoryOption[]; +}; + +export type D2CategoryOption = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGeneric[]; + categories: D2Category[]; + categoryOptionCombos: D2CategoryOptionCombo[]; + categoryOptionGroups: D2CategoryOptionGroup[]; + code: Id; + created: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + isDefault: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + organisationUnits: D2OrganisationUnit[]; + periodOffset: number; + publicAccess: string; + shortName: string; + startDate: string; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryOptionCombo = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGeneric[]; + categoryCombo: D2CategoryCombo; + categoryOptions: D2CategoryOption[]; + code: Id; + created: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + ignoreApproval: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryOptionGroup = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGeneric[]; + categoryOptions: D2CategoryOption[]; + code: Id; + created: string; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + groupSets: D2CategoryOptionGroupSet[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryOptionGroupSet = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueGeneric[]; + categoryOptionGroups: D2CategoryOptionGroup[]; + code: Id; + created: string; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + name: string; + programStage: D2ProgramStage; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryOptionGroupSetDimension = { + categoryOptionGroupSet: D2CategoryOptionGroupSet; + categoryOptionGroups: D2CategoryOptionGroup[]; +}; + +export type D2Chart = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValues: D2AttributeValueGeneric[]; + baseLineLabel: string; + baseLineValue: number; + category: string; + categoryDimensions: D2CategoryDimension[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; + code: Id; + columns: any[]; + completedOnly: boolean; + created: string; + cumulativeValues: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimension[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; + displayDescription: string; + displayDomainAxisLabel: string; + displayFormName: string; + displayName: string; + displayRangeAxisLabel: string; + displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; + domainAxisLabel: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + formName: string; + hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; + hideLegend: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2Interpretation[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendSet: D2LegendSet; + name: string; + noSpaceBetweenColumns: boolean; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnit[]; + parentGraphMap: D2Map; + percentStackedValues: boolean; + periods: any[]; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; + publicAccess: string; + rangeAxisDecimals: number; + rangeAxisLabel: string; + rangeAxisMaxValue: number; + rangeAxisMinValue: number; + rangeAxisSteps: number; + regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; + relativePeriods: any; + rows: any[]; + series: string; + seriesItems: any[]; + shortName: string; + showData: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + targetLineLabel: string; + targetLineValue: number; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + type: + | "COLUMN" + | "STACKED_COLUMN" + | "BAR" + | "STACKED_BAR" + | "STACKED_AREA" + | "LINE" + | "AREA" + | "PIE" + | "RADAR" + | "GAUGE" + | "YEAR_OVER_YEAR_LINE" + | "YEAR_OVER_YEAR_COLUMN" + | "SINGLE_VALUE"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + yearlySeries: string[]; +}; + +export type D2Constant = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + value: number; +}; + +export type D2Dashboard = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + dashboardItems: D2DashboardItem[]; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + itemCount: number; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DashboardItem = { + access: D2Access; + appKey: string; + attributeValues: D2AttributeValueGeneric[]; + chart: D2Chart; + code: Id; + contentCount: number; + created: string; + displayName: string; + eventChart: D2EventChart; + eventReport: D2EventReport; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + height: number; + href: string; + id: Id; + interpretationCount: number; + interpretationLikeCount: number; + lastUpdated: string; + lastUpdatedBy: D2User; + map: D2Map; + messages: boolean; + name: string; + publicAccess: string; + reportTable: D2ReportTable; + reports: D2Report[]; + resources: D2Document[]; + shape: "NORMAL" | "DOUBLE_WIDTH" | "FULL_WIDTH"; + text: string; + translations: D2Translation[]; + type: + | "VISUALIZATION" + | "CHART" + | "EVENT_CHART" + | "MAP" + | "REPORT_TABLE" + | "EVENT_REPORT" + | "USERS" + | "REPORTS" + | "RESOURCES" + | "TEXT" + | "MESSAGES" + | "APP"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + users: D2User[]; + visualization: D2Visualization; + width: number; + x: number; + y: number; +}; + +export type D2DataApprovalLevel = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + categoryOptionGroupSet: D2CategoryOptionGroupSet; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + level: number; + name: string; + orgUnitLevel: number; + orgUnitLevelName: string; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataApprovalWorkflow = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + categoryCombo: D2CategoryCombo; + code: Id; + created: string; + dataApprovalLevels: D2DataApprovalLevel[]; + dataSets: D2DataSet[]; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + periodType: string; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataElement = { + access: D2Access; + aggregationLevels: number[]; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGeneric[]; + categoryCombo: D2CategoryCombo; + code: Id; + commentOptionSet: D2OptionSet; + created: string; + dataElementGroups: D2DataElementGroup[]; + dataSetElements: D2DataSetElement[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + domainType: "AGGREGATE" | "TRACKER"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldMask: string; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + optionSet: D2OptionSet; + optionSetValue: boolean; + periodOffset: number; + publicAccess: string; + shortName: string; + style: D2Style; + translations: D2Translation[]; + url: string; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + zeroIsSignificant: boolean; +}; + +export type D2DataElementGroup = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + dataElements: D2DataElement[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + groupSets: D2DataElementGroupSet[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataElementGroupSet = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + compulsory: boolean; + created: string; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + dataElementGroups: D2DataElementGroup[]; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + name: string; + programStage: D2ProgramStage; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataElementGroupSetDimension = { + dataElementGroupSet: D2DataElementGroupSet; + dataElementGroups: D2DataElementGroup[]; +}; + +export type D2DataElementOperand = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeOptionCombo: D2CategoryOptionCombo; + attributeValues: D2AttributeValueGeneric[]; + categoryOptionCombo: D2CategoryOptionCombo; + code: Id; + created: string; + dataElement: D2DataElement; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataEntryForm = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + format: number; + href: string; + htmlCode: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + style: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataInputPeriod = { + closingDate: string; + openingDate: string; + period: any; +}; + +export type D2DataSet = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGeneric[]; + categoryCombo: D2CategoryCombo; + code: Id; + compulsoryDataElementOperands: D2DataElementOperand[]; + compulsoryFieldsCompleteOnly: boolean; + created: string; + dataElementDecoration: boolean; + dataEntryForm: D2DataEntryForm; + dataInputPeriods: D2DataInputPeriod[]; + dataSetElements: D2DataSetElement[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + expiryDays: number; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldCombinationRequired: boolean; + formName: string; + formType: "DEFAULT" | "CUSTOM" | "SECTION" | "SECTION_MULTIORG"; + href: string; + id: Id; + indicators: D2Indicator[]; + interpretations: D2Interpretation[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + mobile: boolean; + name: string; + noValueRequiresComment: boolean; + notificationRecipients: D2UserGroup; + notifyCompletingUser: boolean; + openFuturePeriods: number; + openPeriodsAfterCoEndDate: number; + organisationUnits: D2OrganisationUnit[]; + periodOffset: number; + periodType: string; + publicAccess: string; + renderAsTabs: boolean; + renderHorizontally: boolean; + sections: D2Section[]; + shortName: string; + skipOffline: boolean; + style: D2Style; + timelyDays: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + validCompleteOnly: boolean; + version: number; + workflow: D2DataApprovalWorkflow; +}; + +export type D2DataSetElement = { + categoryCombo: D2CategoryCombo; + dataElement: D2DataElement; + dataSet: D2DataSet; +}; + +export type D2DataSetNotificationTemplate = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + dataSetNotificationTrigger: "DATA_SET_COMPLETION" | "SCHEDULED_DAYS"; + dataSets: D2DataSet[]; + deliveryChannels: never[]; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + messageTemplate: string; + name: string; + notificationRecipient: "ORGANISATION_UNIT_CONTACT" | "USER_GROUP"; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientUserGroup: D2UserGroup; + relativeScheduledDays: number; + sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; + subjectTemplate: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Document = { + access: D2Access; + attachment: boolean; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + contentType: string; + created: string; + displayName: string; + external: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + translations: D2Translation[]; + url: string; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2EventChart = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValueDimension: D2TrackedEntityAttribute; + attributeValues: D2AttributeValueGeneric[]; + baseLineLabel: string; + baseLineValue: number; + categoryDimensions: D2CategoryDimension[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; + code: Id; + collapseDataDimensions: boolean; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + cumulativeValues: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimension[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; + dataElementValueDimension: D2DataElement; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; + displayDescription: string; + displayDomainAxisLabel: string; + displayFormName: string; + displayName: string; + displayRangeAxisLabel: string; + displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; + domainAxisLabel: string; + endDate: string; + eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + formName: string; + hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; + hideLegend: boolean; + hideNaData: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2Interpretation[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendSet: D2LegendSet; + name: string; + noSpaceBetweenColumns: boolean; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnit[]; + outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; + parentGraphMap: D2Map; + percentStackedValues: boolean; + periods: any[]; + program: D2Program; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; + programStage: D2ProgramStage; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + rangeAxisDecimals: number; + rangeAxisLabel: string; + rangeAxisMaxValue: number; + rangeAxisMinValue: number; + rangeAxisSteps: number; + regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; + relativePeriods: any; + rowDimensions: string[]; + rows: any[]; + shortName: string; + showData: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + targetLineLabel: string; + targetLineValue: number; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + type: + | "COLUMN" + | "STACKED_COLUMN" + | "BAR" + | "STACKED_BAR" + | "STACKED_AREA" + | "LINE" + | "AREA" + | "PIE" + | "RADAR" + | "GAUGE" + | "YEAR_OVER_YEAR_LINE" + | "YEAR_OVER_YEAR_COLUMN" + | "SINGLE_VALUE"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + value: any; + yearlySeries: string[]; +}; + +export type D2EventReport = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValueDimension: D2TrackedEntityAttribute; + attributeValues: D2AttributeValueGeneric[]; + categoryDimensions: D2CategoryDimension[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; + code: Id; + colSubTotals: boolean; + colTotals: boolean; + collapseDataDimensions: boolean; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimension[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; + dataElementValueDimension: D2DataElement; + dataType: "AGGREGATED_VALUES" | "EVENTS"; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + displaySubtitle: string; + displayTitle: string; + endDate: string; + eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + fontSize: "LARGE" | "NORMAL" | "SMALL"; + formName: string; + hideEmptyRows: boolean; + hideNaData: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2Interpretation[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnit[]; + outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; + parentGraphMap: D2Map; + periods: any[]; + program: D2Program; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; + programStage: D2ProgramStage; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + relativePeriods: any; + rowDimensions: string[]; + rowSubTotals: boolean; + rowTotals: boolean; + rows: any[]; + shortName: string; + showDimensionLabels: boolean; + showHierarchy: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + value: any; +}; + +export type D2Expression = { + description: string; + expression: string; + missingValueStrategy: "SKIP_IF_ANY_VALUE_MISSING" | "SKIP_IF_ALL_VALUES_MISSING" | "NEVER_SKIP"; + slidingWindow: boolean; +}; + +export type D2ExternalFileResource = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ExternalMapLayer = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + attribution: string; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + imageFormat: "PNG" | "JPG"; + lastUpdated: string; + lastUpdatedBy: D2User; + layers: string; + legendSet: D2LegendSet; + legendSetUrl: string; + mapLayerPosition: "BASEMAP" | "OVERLAY"; + mapService: "WMS" | "TMS" | "XYZ"; + name: string; + publicAccess: string; + translations: D2Translation[]; + url: string; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2FileResource = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + contentLength: string; + contentMd5: string; + contentType: string; + created: string; + displayName: string; + domain: "DATA_VALUE" | "PUSH_ANALYSIS" | "DOCUMENT" | "MESSAGE_ATTACHMENT" | "USER_AVATAR"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + hasMultipleStorageFiles: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + storageStatus: "NONE" | "PENDING" | "FAILED" | "STORED"; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Icon = {}; + +export type D2Indicator = { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + annualized: boolean; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + dataSets: D2DataSet[]; + decimals: number; + denominator: string; + denominatorDescription: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDenominatorDescription: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayNumeratorDescription: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + indicatorGroups: D2IndicatorGroup[]; + indicatorType: D2IndicatorType; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + numerator: string; + numeratorDescription: string; + periodOffset: number; + publicAccess: string; + shortName: string; + style: D2Style; + translations: D2Translation[]; + url: string; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2IndicatorGroup = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + indicatorGroupSet: D2IndicatorGroupSet; + indicators: D2Indicator[]; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2IndicatorGroupSet = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + compulsory: boolean; + created: string; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + indicatorGroups: D2IndicatorGroup[]; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2IndicatorType = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + factor: number; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + number: boolean; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Interpretation = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + chart: D2Chart; + code: Id; + comments: D2InterpretationComment[]; + created: string; + dataSet: D2DataSet; + displayName: string; + eventChart: D2EventChart; + eventReport: D2EventReport; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + likedBy: D2User[]; + likes: number; + map: D2Map; + mentions: any[]; + name: string; + organisationUnit: D2OrganisationUnit; + period: any; + publicAccess: string; + reportTable: D2ReportTable; + text: string; + translations: D2Translation[]; + type: + | "VISUALIZATION" + | "REPORT_TABLE" + | "CHART" + | "MAP" + | "EVENT_REPORT" + | "EVENT_CHART" + | "DATASET_REPORT"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + visualization: D2Visualization; +}; + +export type D2InterpretationComment = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + mentions: any[]; + name: string; + publicAccess: string; + text: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2JobConfiguration = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + configurable: boolean; + created: string; + cronExpression: string; + delay: number; + displayName: string; + enabled: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + jobParameters: string; + jobStatus: + | "RUNNING" + | "COMPLETED" + | "STOPPED" + | "SCHEDULED" + | "DISABLED" + | "FAILED" + | "NOT_STARTED"; + jobType: + | "DATA_STATISTICS" + | "DATA_INTEGRITY" + | "RESOURCE_TABLE" + | "ANALYTICS_TABLE" + | "CONTINUOUS_ANALYTICS_TABLE" + | "DATA_SYNC" + | "TRACKER_PROGRAMS_DATA_SYNC" + | "EVENT_PROGRAMS_DATA_SYNC" + | "FILE_RESOURCE_CLEANUP" + | "IMAGE_PROCESSING" + | "META_DATA_SYNC" + | "SMS_SEND" + | "SEND_SCHEDULED_MESSAGE" + | "PROGRAM_NOTIFICATIONS" + | "VALIDATION_RESULTS_NOTIFICATION" + | "CREDENTIALS_EXPIRY_ALERT" + | "MONITORING" + | "PUSH_ANALYSIS" + | "PREDICTOR" + | "DATA_SET_NOTIFICATION" + | "REMOVE_USED_OR_EXPIRED_RESERVED_VALUES" + | "TRACKER_IMPORT_JOB" + | "TRACKER_IMPORT_NOTIFICATION_JOB" + | "TRACKER_IMPORT_RULE_ENGINE_JOB" + | "LEADER_ELECTION" + | "LEADER_RENEWAL" + | "COMPLETE_DATA_SET_REGISTRATION_IMPORT" + | "DATAVALUE_IMPORT_INTERNAL" + | "METADATA_IMPORT" + | "DATAVALUE_IMPORT" + | "EVENT_IMPORT" + | "ENROLLMENT_IMPORT" + | "TEI_IMPORT" + | "MOCK" + | "GML_IMPORT" + | "ANALYTICSTABLE_UPDATE" + | "PROGRAM_DATA_SYNC"; + lastExecuted: string; + lastExecutedStatus: + | "RUNNING" + | "COMPLETED" + | "STOPPED" + | "SCHEDULED" + | "DISABLED" + | "FAILED" + | "NOT_STARTED"; + lastRuntimeExecution: string; + lastUpdated: string; + lastUpdatedBy: D2User; + leaderOnlyJob: boolean; + name: string; + nextExecutionTime: string; + publicAccess: string; + schedulingType: "CRON" | "FIXED_DELAY"; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userUid: string; +}; + +export type D2KeyJsonValue = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + key: string; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + namespace: string; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + value: string; +}; + +export type D2Legend = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + color: string; + created: string; + displayName: string; + endValue: number; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + image: string; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + startValue: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2LegendSet = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legends: D2Legend[]; + name: string; + publicAccess: string; + symbolizer: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Map = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + basemap: string; + code: Id; + created: string; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + interpretations: D2Interpretation[]; + lastUpdated: string; + lastUpdatedBy: D2User; + latitude: number; + longitude: number; + mapViews: D2MapView[]; + name: string; + publicAccess: string; + shortName: string; + subscribed: boolean; + subscribers: string[]; + title: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + zoom: number; +}; + +export type D2MapView = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + areaRadius: number; + attributeDimensions: any[]; + attributeValues: D2AttributeValueGeneric[]; + categoryDimensions: D2CategoryDimension[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; + classes: number; + code: Id; + colorHigh: string; + colorLow: string; + colorScale: string; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + config: string; + created: string; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimension[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + displaySubtitle: string; + displayTitle: string; + endDate: string; + eventClustering: boolean; + eventCoordinateField: string; + eventPointColor: string; + eventPointRadius: number; + eventStatus: "ACTIVE" | "COMPLETED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + followUp: boolean; + formName: string; + hidden: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2Interpretation[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; + labelFontColor: string; + labelFontSize: string; + labelFontStyle: string; + labelFontWeight: string; + labels: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + layer: string; + legendSet: D2LegendSet; + method: number; + name: string; + noDataColor: string; + opacity: number; + orgUnitField: string; + organisationUnitGroupSet: D2OrganisationUnitGroupSet; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; + organisationUnitLevels: number[]; + organisationUnitSelectionMode: + | "SELECTED" + | "CHILDREN" + | "DESCENDANTS" + | "ACCESSIBLE" + | "CAPTURE" + | "ALL"; + organisationUnits: D2OrganisationUnit[]; + parentGraph: string; + parentGraphMap: D2Map; + parentLevel: number; + periods: any[]; + program: D2Program; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; + programStage: D2ProgramStage; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + radiusHigh: number; + radiusLow: number; + relativePeriods: any; + renderingStrategy: "SINGLE" | "SPLIT_BY_PERIOD" | "TIMELINE"; + rows: any[]; + shortName: string; + sortOrder: number; + startDate: string; + styleDataItem: object; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + thematicMapType: "CHOROPLETH" | "BUBBLE"; + timeField: string; + title: string; + topLimit: number; + trackedEntityType: D2TrackedEntityType; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; +}; + +export type D2MessageConversation = { + access: D2Access; + assignee: D2User; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followUp: boolean; + href: string; + id: Id; + lastMessage: string; + lastSender: D2User; + lastSenderFirstname: string; + lastSenderSurname: string; + lastUpdated: string; + lastUpdatedBy: D2User; + messageCount: number; + messageType: "PRIVATE" | "SYSTEM" | "VALIDATION_RESULT" | "TICKET"; + messages: any[]; + name: string; + priority: "NONE" | "LOW" | "MEDIUM" | "HIGH"; + publicAccess: string; + read: boolean; + status: "NONE" | "OPEN" | "PENDING" | "INVALID" | "SOLVED"; + subject: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userFirstname: string; + userGroupAccesses: D2UserGroupAccess[]; + userMessages: any[]; + userSurname: string; +}; + +export type D2MetadataVersion = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + hashCode: string; + href: string; + id: Id; + importDate: string; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + translations: D2Translation[]; + type: "BEST_EFFORT" | "ATOMIC"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2MinMaxDataElement = { + dataElement: D2DataElement; + generated: boolean; + max: number; + min: number; + optionCombo: D2CategoryOptionCombo; + source: D2OrganisationUnit; +}; + +export type D2OAuth2Client = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + cid: Id; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + grantTypes: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + redirectUris: string[]; + secret: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Option = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: string; + created: string; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + optionSet: D2OptionSet; + publicAccess: string; + shortName: string; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2OptionGroup = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + optionSet: D2OptionSet; + options: D2Option[]; + periodOffset: number; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2OptionGroupSet = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + name: string; + optionGroups: D2OptionGroup[]; + optionSet: D2OptionSet; + programStage: D2ProgramStage; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2OptionSet = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + options: D2Option[]; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + version: number; +}; + +export type D2OrganisationUnit = { + access: D2Access; + address: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + ancestors: D2OrganisationUnit[]; + attributeValues: D2AttributeValueGeneric[]; + children: D2OrganisationUnit[]; + closedDate: string; + code: Id; + comment: string; + contactPerson: string; + created: string; + dataSets: D2DataSet[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + email: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + geometry: D2Geometry; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + leaf: boolean; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + level: number; + memberCount: number; + name: string; + openingDate: string; + organisationUnitGroups: D2OrganisationUnitGroup[]; + parent: D2OrganisationUnit; + path: string; + periodOffset: number; + phoneNumber: string; + programs: D2Program[]; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + type: string; + url: string; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + users: D2User[]; +}; + +export type D2OrganisationUnitGroup = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + color: string; + created: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + geometry: D2Geometry; + groupSets: D2OrganisationUnitGroupSet[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + organisationUnits: D2OrganisationUnit[]; + periodOffset: number; + publicAccess: string; + shortName: string; + symbol: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2OrganisationUnitGroupSet = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + compulsory: boolean; + created: string; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + includeSubhierarchyInAnalytics: boolean; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + name: string; + organisationUnitGroups: D2OrganisationUnitGroup[]; + programStage: D2ProgramStage; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2OrganisationUnitGroupSetDimension = { + organisationUnitGroupSet: D2OrganisationUnitGroupSet; + organisationUnitGroups: D2OrganisationUnitGroup[]; +}; + +export type D2OrganisationUnitLevel = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + level: number; + name: string; + offlineLevels: number; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Predictor = { + access: D2Access; + annualSampleCount: number; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + generator: D2Expression; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + organisationUnitLevels: D2OrganisationUnitLevel[]; + output: D2DataElement; + outputCombo: D2CategoryOptionCombo; + periodType: string; + predictorGroups: D2PredictorGroup[]; + publicAccess: string; + sampleSkipTest: D2Expression; + sequentialSampleCount: number; + sequentialSkipCount: number; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2PredictorGroup = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + predictors: D2Predictor[]; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Program = { + access: D2Access; + accessLevel: "OPEN" | "AUDITED" | "PROTECTED" | "CLOSED"; + attributeValues: D2AttributeValueGeneric[]; + categoryCombo: D2CategoryCombo; + code: Id; + completeEventsExpiryDays: number; + created: string; + dataEntryForm: D2DataEntryForm; + description: string; + displayDescription: string; + displayFormName: string; + displayFrontPageList: boolean; + displayIncidentDate: boolean; + displayName: string; + displayShortName: string; + enrollmentDateLabel: string; + expiryDays: number; + expiryPeriodType: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + href: string; + id: Id; + ignoreOverdueEvents: boolean; + incidentDateLabel: string; + lastUpdated: string; + lastUpdatedBy: D2User; + maxTeiCountToReturn: number; + minAttributesRequiredToSearch: number; + name: string; + notificationTemplates: D2ProgramNotificationTemplate[]; + onlyEnrollOnce: boolean; + organisationUnits: D2OrganisationUnit[]; + programIndicators: D2ProgramIndicator[]; + programRuleVariables: D2ProgramRuleVariable[]; + programSections: D2ProgramSection[]; + programStages: D2ProgramStage[]; + programTrackedEntityAttributes: D2ProgramTrackedEntityAttribute[]; + programType: "WITH_REGISTRATION" | "WITHOUT_REGISTRATION"; + publicAccess: string; + registration: boolean; + relatedProgram: D2Program; + selectEnrollmentDatesInFuture: boolean; + selectIncidentDatesInFuture: boolean; + shortName: string; + skipOffline: boolean; + style: D2Style; + trackedEntityType: D2TrackedEntityType; + translations: D2Translation[]; + useFirstStageDuringRegistration: boolean; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userRoles: D2UserAuthorityGroup[]; + version: number; + withoutRegistration: boolean; +}; + +export type D2ProgramDataElementDimensionItem = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + dataElement: D2DataElement; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + program: D2Program; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; +}; + +export type D2ProgramIndicator = { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + analyticsPeriodBoundaries: D2AnalyticsPeriodBoundary[]; + analyticsType: "EVENT" | "ENROLLMENT"; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + decimals: number; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayInForm: boolean; + displayName: string; + displayShortName: string; + expression: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + program: D2Program; + programIndicatorGroups: D2ProgramIndicatorGroup[]; + publicAccess: string; + shortName: string; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramIndicatorGroup = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + programIndicators: D2ProgramIndicator[]; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramInstance = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + completedBy: string; + created: string; + createdAtClient: string; + deleted: boolean; + displayName: string; + endDate: string; + enrollmentDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followup: boolean; + geometry: D2Geometry; + href: string; + id: Id; + incidentDate: string; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2User; + messageConversations: D2MessageConversation[]; + name: string; + organisationUnit: D2OrganisationUnit; + program: D2Program; + programStageInstances: D2ProgramStageInstance[]; + publicAccess: string; + relationshipItems: any[]; + status: "ACTIVE" | "COMPLETED" | "CANCELLED"; + storedBy: string; + trackedEntityComments: any[]; + trackedEntityInstance: D2TrackedEntityInstance; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramNotificationTemplate = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + deliveryChannels: never[]; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + messageTemplate: string; + name: string; + notificationRecipient: + | "TRACKED_ENTITY_INSTANCE" + | "ORGANISATION_UNIT_CONTACT" + | "USERS_AT_ORGANISATION_UNIT" + | "USER_GROUP" + | "PROGRAM_ATTRIBUTE" + | "DATA_ELEMENT"; + notificationTrigger: + | "ENROLLMENT" + | "COMPLETION" + | "PROGRAM_RULE" + | "SCHEDULED_DAYS_DUE_DATE" + | "SCHEDULED_DAYS_INCIDENT_DATE" + | "SCHEDULED_DAYS_ENROLLMENT_DATE"; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientDataElement: D2DataElement; + recipientProgramAttribute: D2TrackedEntityAttribute; + recipientUserGroup: D2UserGroup; + relativeScheduledDays: number; + subjectTemplate: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramRule = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + condition: string; + created: string; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + priority: number; + program: D2Program; + programRuleActions: D2ProgramRuleAction[]; + programStage: D2ProgramStage; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramRuleAction = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + content: string; + created: string; + data: string; + dataElement: D2DataElement; + displayContent: string; + displayName: string; + evaluationEnvironments: never[]; + evaluationTime: "ON_DATA_ENTRY" | "ON_COMPLETE" | "ALWAYS"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + location: string; + name: string; + option: D2Option; + optionGroup: D2OptionGroup; + programIndicator: D2ProgramIndicator; + programRule: D2ProgramRule; + programRuleActionType: + | "DISPLAYTEXT" + | "DISPLAYKEYVALUEPAIR" + | "HIDEFIELD" + | "HIDESECTION" + | "HIDEPROGRAMSTAGE" + | "ASSIGN" + | "SHOWWARNING" + | "WARNINGONCOMPLETE" + | "SHOWERROR" + | "ERRORONCOMPLETE" + | "CREATEEVENT" + | "SETMANDATORYFIELD" + | "SENDMESSAGE" + | "SCHEDULEMESSAGE" + | "HIDEOPTION" + | "SHOWOPTIONGROUP" + | "HIDEOPTIONGROUP"; + programStage: D2ProgramStage; + programStageSection: D2ProgramStageSection; + publicAccess: string; + templateUid: string; + trackedEntityAttribute: D2TrackedEntityAttribute; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramRuleVariable = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + dataElement: D2DataElement; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + program: D2Program; + programRuleVariableSourceType: + | "DATAELEMENT_NEWEST_EVENT_PROGRAM_STAGE" + | "DATAELEMENT_NEWEST_EVENT_PROGRAM" + | "DATAELEMENT_CURRENT_EVENT" + | "DATAELEMENT_PREVIOUS_EVENT" + | "CALCULATED_VALUE" + | "TEI_ATTRIBUTE"; + programStage: D2ProgramStage; + publicAccess: string; + trackedEntityAttribute: D2TrackedEntityAttribute; + translations: D2Translation[]; + useCodeForOptionSet: boolean; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramSection = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + program: D2Program; + publicAccess: string; + renderType: any; + shortName: string; + sortOrder: number; + style: D2Style; + trackedEntityAttributes: D2TrackedEntityAttribute[]; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramStage = { + access: D2Access; + allowGenerateNextVisit: boolean; + attributeValues: D2AttributeValueGeneric[]; + autoGenerateEvent: boolean; + blockEntryForm: boolean; + code: Id; + created: string; + dataEntryForm: D2DataEntryForm; + description: string; + displayDescription: string; + displayFormName: string; + displayGenerateEventBox: boolean; + displayName: string; + displayShortName: string; + dueDateLabel: string; + enableUserAssignment: boolean; + executionDateLabel: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + formType: "DEFAULT" | "CUSTOM" | "SECTION" | "SECTION_MULTIORG"; + generatedByEnrollmentDate: boolean; + hideDueDate: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + minDaysFromStart: number; + name: string; + nextScheduleDate: D2DataElement; + notificationTemplates: D2ProgramNotificationTemplate[]; + openAfterEnrollment: boolean; + periodType: string; + preGenerateUID: boolean; + program: D2Program; + programStageDataElements: D2ProgramStageDataElement[]; + programStageSections: D2ProgramStageSection[]; + publicAccess: string; + remindCompleted: boolean; + repeatable: boolean; + reportDateToUse: string; + shortName: string; + sortOrder: number; + standardInterval: number; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + validationStrategy: "ON_COMPLETE" | "ON_UPDATE_AND_INSERT"; +}; + +export type D2ProgramStageDataElement = { + access: D2Access; + allowFutureDate: boolean; + allowProvidedElsewhere: boolean; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + compulsory: boolean; + created: string; + dataElement: D2DataElement; + displayInReports: boolean; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + programStage: D2ProgramStage; + publicAccess: string; + renderOptionsAsRadio: boolean; + renderType: any; + skipSynchronization: boolean; + sortOrder: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramStageInstance = { + access: D2Access; + assignedUser: D2User; + attributeOptionCombo: D2CategoryOptionCombo; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + comments: any[]; + completed: boolean; + completedBy: string; + completedDate: string; + creatableInSearchScope: boolean; + created: string; + createdAtClient: string; + createdByUserInfo: any; + deleted: boolean; + displayName: string; + dueDate: string; + eventDataValues: any[]; + eventDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + geometry: D2Geometry; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2User; + lastUpdatedByUserInfo: any; + messageConversations: D2MessageConversation[]; + name: string; + organisationUnit: D2OrganisationUnit; + programInstance: D2ProgramInstance; + programStage: D2ProgramStage; + publicAccess: string; + relationshipItems: any[]; + status: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + storedBy: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramStageInstanceFilter = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + description: string; + displayDescription: string; + displayName: string; + eventQueryCriteria: any; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + program: Id; + programStage: Id; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramStageSection = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + dataElements: D2DataElement[]; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + programIndicators: D2ProgramIndicator[]; + programStage: D2ProgramStage; + publicAccess: string; + renderType: any; + shortName: string; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramTrackedEntityAttribute = { + access: D2Access; + allowFutureDate: boolean; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + displayInList: boolean; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + mandatory: boolean; + name: string; + program: D2Program; + programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroup[]; + publicAccess: string; + renderOptionsAsRadio: boolean; + renderType: any; + searchable: boolean; + sortOrder: number; + trackedEntityAttribute: D2TrackedEntityAttribute; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; +}; + +export type D2ProgramTrackedEntityAttributeDimensionItem = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attribute: D2TrackedEntityAttribute; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + program: D2Program; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramTrackedEntityAttributeGroup = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + attributes: D2ProgramTrackedEntityAttribute[]; + code: Id; + created: string; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + uniqunessType: "NONE" | "STRICT" | "VALIDATION"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2PushAnalysis = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + dashboard: D2Dashboard; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + message: string; + name: string; + publicAccess: string; + recipientUserGroups: D2UserGroup[]; + title: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Relationship = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + from: any; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + relationshipType: D2RelationshipType; + shortName: string; + style: D2Style; + to: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2RelationshipType = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + bidirectional: boolean; + code: Id; + created: string; + description: string; + displayFromToName: string; + displayName: string; + displayToFromName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fromConstraint: D2RelationshipConstraint; + fromToName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + toConstraint: D2RelationshipConstraint; + toFromName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Report = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + cacheStrategy: + | "NO_CACHE" + | "CACHE_1_MINUTE" + | "CACHE_5_MINUTES" + | "CACHE_10_MINUTES" + | "CACHE_15_MINUTES" + | "CACHE_30_MINUTES" + | "CACHE_1_HOUR" + | "CACHE_6AM_TOMORROW" + | "CACHE_TWO_WEEKS" + | "RESPECT_SYSTEM_SETTING"; + code: Id; + created: string; + designContent: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + relativePeriods: any; + reportParams: D2ReportingParams; + translations: D2Translation[]; + type: "JASPER_REPORT_TABLE" | "JASPER_JDBC" | "HTML"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + visualization: D2Visualization; +}; + +export type D2ReportTable = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValues: D2AttributeValueGeneric[]; + categoryDimensions: D2CategoryDimension[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; + code: Id; + colSubTotals: boolean; + colTotals: boolean; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + cumulative: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimension[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + displaySubtitle: string; + displayTitle: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + fontSize: "LARGE" | "NORMAL" | "SMALL"; + formName: string; + hideEmptyColumns: boolean; + hideEmptyRows: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2Interpretation[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendDisplayStyle: "FILL" | "TEXT"; + legendSet: D2LegendSet; + measureCriteria: string; + name: string; + numberType: "VALUE" | "ROW_PERCENTAGE" | "COLUMN_PERCENTAGE"; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnit[]; + parentGraphMap: D2Map; + periods: any[]; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; + publicAccess: string; + regression: boolean; + relativePeriods: any; + reportParams: any; + rowDimensions: string[]; + rowSubTotals: boolean; + rowTotals: boolean; + rows: any[]; + shortName: string; + showDimensionLabels: boolean; + showHierarchy: boolean; + skipRounding: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; +}; + +export type D2ReportingRate = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + dataSet: D2DataSet; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + metric: + | "REPORTING_RATE" + | "REPORTING_RATE_ON_TIME" + | "ACTUAL_REPORTS" + | "ACTUAL_REPORTS_ON_TIME" + | "EXPECTED_REPORTS"; + name: string; + periodOffset: number; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2SMSCommand = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + codeValueSeparator: string; + completenessMethod: "ALL_DATAVALUE" | "AT_LEAST_ONE_DATAVALUE" | "DO_NOT_MARK_COMPLETE"; + created: string; + currentPeriodUsedForReporting: boolean; + dataset: D2DataSet; + defaultMessage: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + moreThanOneOrgUnitMessage: string; + name: string; + noUserMessage: string; + parserType: + | "KEY_VALUE_PARSER" + | "J2ME_PARSER" + | "ALERT_PARSER" + | "UNREGISTERED_PARSER" + | "TRACKED_ENTITY_REGISTRATION_PARSER" + | "PROGRAM_STAGE_DATAENTRY_PARSER" + | "EVENT_REGISTRATION_PARSER"; + program: D2Program; + programStage: D2ProgramStage; + publicAccess: string; + receivedMessage: string; + separator: string; + smsCodes: any[]; + specialCharacters: any[]; + successMessage: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroup: D2UserGroup; + userGroupAccesses: D2UserGroupAccess[]; + wrongFormatMessage: string; +}; + +export type D2Section = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + categoryCombos: D2CategoryCombo[]; + code: Id; + created: string; + dataElements: D2DataElement[]; + dataSet: D2DataSet; + description: string; + disableDataElementAutoGroup: boolean; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + greyedFields: D2DataElementOperand[]; + href: string; + id: Id; + indicators: D2Indicator[]; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + showColumnTotals: boolean; + showRowTotals: boolean; + sortOrder: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2SqlView = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + cacheStrategy: + | "NO_CACHE" + | "CACHE_1_MINUTE" + | "CACHE_5_MINUTES" + | "CACHE_10_MINUTES" + | "CACHE_15_MINUTES" + | "CACHE_30_MINUTES" + | "CACHE_1_HOUR" + | "CACHE_6AM_TOMORROW" + | "CACHE_TWO_WEEKS" + | "RESPECT_SYSTEM_SETTING"; + code: Id; + created: string; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sqlQuery: string; + translations: D2Translation[]; + type: "VIEW" | "MATERIALIZED_VIEW" | "QUERY"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2TrackedEntityAttribute = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + confidential: boolean; + created: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayInListNoProgram: boolean; + displayName: string; + displayOnVisitSchedule: boolean; + displayShortName: string; + expression: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldMask: string; + formName: string; + generated: boolean; + href: string; + id: Id; + inherit: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + optionSet: D2OptionSet; + optionSetValue: boolean; + orgunitScope: boolean; + pattern: string; + periodOffset: number; + publicAccess: string; + shortName: string; + skipSynchronization: boolean; + sortOrderInListNoProgram: number; + sortOrderInVisitSchedule: number; + style: D2Style; + translations: D2Translation[]; + unique: boolean; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; +}; + +export type D2TrackedEntityAttributeValue = { + created: string; + lastUpdated: string; + storedBy: string; + trackedEntityAttribute: D2TrackedEntityAttribute; + trackedEntityInstance: D2TrackedEntityInstance; + value: string; +}; + +export type D2TrackedEntityDataElementDimension = { + dataElement: D2DataElement; + filter: string; + legendSet: D2LegendSet; + programStage: D2ProgramStage; +}; + +export type D2TrackedEntityInstance = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + createdAtClient: string; + deleted: boolean; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + geometry: D2Geometry; + href: string; + id: Id; + inactive: boolean; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2User; + name: string; + organisationUnit: D2OrganisationUnit; + programInstances: D2ProgramInstance[]; + programOwners: any[]; + publicAccess: string; + relationshipItems: any[]; + storedBy: string; + trackedEntityAttributeValues: D2TrackedEntityAttributeValue[]; + trackedEntityType: D2TrackedEntityType; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2TrackedEntityInstanceFilter = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + description: string; + displayDescription: string; + displayName: string; + enrollmentCreatedPeriod: any; + enrollmentStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + eventFilters: any[]; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followup: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + program: D2Program; + publicAccess: string; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2TrackedEntityProgramIndicatorDimension = { + filter: string; + legendSet: D2LegendSet; + programIndicator: D2ProgramIndicator; +}; + +export type D2TrackedEntityType = { + access: D2Access; + allowAuditLog: boolean; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + maxTeiCountToReturn: number; + minAttributesRequiredToSearch: number; + name: string; + publicAccess: string; + shortName: string; + style: D2Style; + trackedEntityTypeAttributes: D2TrackedEntityTypeAttribute[]; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2TrackedEntityTypeAttribute = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + displayInList: boolean; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + mandatory: boolean; + name: string; + publicAccess: string; + searchable: boolean; + trackedEntityAttribute: D2TrackedEntityAttribute; + trackedEntityType: D2TrackedEntityType; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; +}; + +export type D2User = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + avatar: D2FileResource; + birthday: string; + code: Id; + created: string; + dataViewOrganisationUnits: D2OrganisationUnit[]; + displayName: string; + education: string; + email: string; + employer: string; + externalAccess: boolean; + facebookMessenger: string; + favorite: boolean; + favorites: string[]; + firstName: string; + gender: string; + href: string; + id: Id; + interests: string; + introduction: string; + jobTitle: string; + languages: string; + lastCheckedInterpretations: string; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + nationality: string; + organisationUnits: D2OrganisationUnit[]; + phoneNumber: string; + publicAccess: string; + skype: string; + surname: string; + teiSearchOrganisationUnits: D2OrganisationUnit[]; + telegram: string; + translations: D2Translation[]; + twitter: string; + user: D2User; + userAccesses: D2UserAccess[]; + userCredentials: D2UserCredentials; + userGroupAccesses: D2UserGroupAccess[]; + userGroups: D2UserGroup[]; + welcomeMessage: string; + whatsApp: string; +}; + +export type D2UserAccess = { + access: string; + displayName: string; + id: string; + userUid: string; +}; + +export type D2UserAuthorityGroup = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + authorities: string[]; + code: Id; + created: string; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + users: D2User[]; +}; + +export type D2UserCredentials = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + catDimensionConstraints: D2Category[]; + code: Id; + cogsDimensionConstraints: D2CategoryOptionGroupSet[]; + created: string; + disabled: boolean; + displayName: string; + externalAccess: boolean; + externalAuth: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + invitation: boolean; + lastLogin: string; + lastUpdated: string; + lastUpdatedBy: D2User; + ldapId: string; + name: string; + openId: string; + password: string; + passwordLastUpdated: string; + publicAccess: string; + selfRegistered: boolean; + translations: D2Translation[]; + twoFA: boolean; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userInfo: D2User; + userRoles: D2UserAuthorityGroup[]; + username: string; +}; + +export type D2UserGroup = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + managedByGroups: D2UserGroup[]; + managedGroups: D2UserGroup[]; + name: string; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + users: D2User[]; +}; + +export type D2UserGroupAccess = { + access: string; + displayName: string; + id: string; + userGroupUid: string; +}; + +export type D2ValidationNotificationTemplate = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + messageTemplate: string; + name: string; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientUserGroups: D2UserGroup[]; + sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; + subjectTemplate: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + validationRules: D2ValidationRule[]; +}; + +export type D2ValidationResult = { + attributeOptionCombo: D2CategoryOptionCombo; + created: string; + dayInPeriod: number; + id: string; + leftsideValue: number; + notificationSent: boolean; + organisationUnit: D2OrganisationUnit; + period: any; + rightsideValue: number; + validationRule: D2ValidationRule; +}; + +export type D2ValidationRule = { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + importance: "HIGH" | "MEDIUM" | "LOW"; + instruction: string; + lastUpdated: string; + lastUpdatedBy: D2User; + leftSide: D2Expression; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + notificationTemplates: D2ValidationNotificationTemplate[]; + operator: + | "equal_to" + | "not_equal_to" + | "greater_than" + | "greater_than_or_equal_to" + | "less_than" + | "less_than_or_equal_to" + | "compulsory_pair" + | "exclusive_pair"; + organisationUnitLevels: number[]; + periodOffset: number; + periodType: string; + publicAccess: string; + rightSide: D2Expression; + shortName: string; + skipFormValidation: boolean; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + validationRuleGroups: D2ValidationRuleGroup[]; +}; + +export type D2ValidationRuleGroup = { + access: D2Access; + attributeValues: D2AttributeValueGeneric[]; + code: Id; + created: string; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + validationRules: D2ValidationRule[]; +}; + +export type D2Visualization = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValues: D2AttributeValueGeneric[]; + baseLineLabel: string; + baseLineValue: number; + categoryDimensions: D2CategoryDimension[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; + code: Id; + colSubTotals: boolean; + colTotals: boolean; + colorSet: string; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + cumulativeValues: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimension[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; + displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + displayDescription: string; + displayDomainAxisLabel: string; + displayFormName: string; + displayName: string; + displayRangeAxisLabel: string; + displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; + domainAxisLabel: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + fontSize: "LARGE" | "NORMAL" | "SMALL"; + fontStyle: any; + formName: string; + hideEmptyColumns: boolean; + hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; + hideEmptyRows: boolean; + hideLegend: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2Interpretation[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendDisplayStyle: "FILL" | "TEXT"; + legendSet: D2LegendSet; + measureCriteria: string; + name: string; + noSpaceBetweenColumns: boolean; + numberType: "VALUE" | "ROW_PERCENTAGE" | "COLUMN_PERCENTAGE"; + optionalAxes: D2Axis[]; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnit[]; + parentGraphMap: D2Map; + percentStackedValues: boolean; + periods: any[]; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; + publicAccess: string; + rangeAxisDecimals: number; + rangeAxisLabel: string; + rangeAxisMaxValue: number; + rangeAxisMinValue: number; + rangeAxisSteps: number; + regression: boolean; + regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; + relativePeriods: any; + reportingParams: D2ReportingParams; + rowDimensions: string[]; + rowSubTotals: boolean; + rowTotals: boolean; + rows: any[]; + series: any[]; + shortName: string; + showData: boolean; + showDimensionLabels: boolean; + showHierarchy: boolean; + skipRounding: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + targetLineLabel: string; + targetLineValue: number; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + type: + | "COLUMN" + | "STACKED_COLUMN" + | "BAR" + | "STACKED_BAR" + | "LINE" + | "AREA" + | "STACKED_AREA" + | "PIE" + | "RADAR" + | "GAUGE" + | "YEAR_OVER_YEAR_LINE" + | "YEAR_OVER_YEAR_COLUMN" + | "SINGLE_VALUE" + | "PIVOT_TABLE"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + visualizationPeriodName: string; + yearlySeries: string[]; +}; + +export interface D2AnalyticsPeriodBoundarySchema { + name: "D2AnalyticsPeriodBoundary"; + model: D2AnalyticsPeriodBoundary; + fields: { + access: D2Access; + analyticsPeriodBoundaryType: + | "BEFORE_START_OF_REPORTING_PERIOD" + | "BEFORE_END_OF_REPORTING_PERIOD" + | "AFTER_START_OF_REPORTING_PERIOD" + | "AFTER_END_OF_REPORTING_PERIOD"; + attributeValues: D2AttributeValueGenericSchema[]; + boundaryTarget: string; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + offsetPeriodType: string; + offsetPeriods: number; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2AnalyticsPeriodBoundary, + | "lastUpdatedBy" + | "code" + | "created" + | "lastUpdated" + | "offsetPeriodType" + | "id" + | "analyticsPeriodBoundaryType" + | "boundaryTarget" + | "offsetPeriods" + >; + $owner: Preset< + D2AnalyticsPeriodBoundary, + | "lastUpdatedBy" + | "code" + | "created" + | "lastUpdated" + | "offsetPeriodType" + | "id" + | "analyticsPeriodBoundaryType" + | "boundaryTarget" + | "offsetPeriods" + >; + }; +} + +export interface D2AnalyticsTableHookSchema { + name: "D2AnalyticsTableHook"; + model: D2AnalyticsTableHook; + fields: { + access: D2Access; + analyticsTableType: + | "DATA_VALUE" + | "COMPLETENESS" + | "COMPLETENESS_TARGET" + | "ORG_UNIT_TARGET" + | "EVENT" + | "ENROLLMENT" + | "VALIDATION_RESULT"; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + phase: "RESOURCE_TABLE_POPULATED" | "ANALYTICS_TABLE_POPULATED"; + publicAccess: string; + resourceTableType: + | "ORG_UNIT_STRUCTURE" + | "DATA_SET_ORG_UNIT_CATEGORY" + | "CATEGORY_OPTION_COMBO_NAME" + | "DATA_ELEMENT_GROUP_SET_STRUCTURE" + | "INDICATOR_GROUP_SET_STRUCTURE" + | "ORG_UNIT_GROUP_SET_STRUCTURE" + | "CATEGORY_STRUCTURE" + | "DATA_ELEMENT_STRUCTURE" + | "PERIOD_STRUCTURE" + | "DATE_PERIOD_STRUCTURE" + | "DATA_ELEMENT_CATEGORY_OPTION_COMBO" + | "DATA_APPROVAL_REMAP_LEVEL" + | "DATA_APPROVAL_MIN_LEVEL"; + sql: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2AnalyticsTableHook, + | "phase" + | "lastUpdatedBy" + | "code" + | "created" + | "analyticsTableType" + | "sql" + | "lastUpdated" + | "name" + | "resourceTableType" + | "id" + >; + $owner: Preset< + D2AnalyticsTableHook, + | "phase" + | "lastUpdatedBy" + | "code" + | "created" + | "analyticsTableType" + | "sql" + | "lastUpdated" + | "name" + | "resourceTableType" + | "id" + >; + }; +} + +export interface D2AttributeSchema { + name: "D2Attribute"; + model: D2Attribute; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + categoryAttribute: boolean; + categoryOptionAttribute: boolean; + categoryOptionComboAttribute: boolean; + categoryOptionGroupAttribute: boolean; + categoryOptionGroupSetAttribute: boolean; + code: Id; + constantAttribute: boolean; + created: string; + dataElementAttribute: boolean; + dataElementGroupAttribute: boolean; + dataElementGroupSetAttribute: boolean; + dataSetAttribute: boolean; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + documentAttribute: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + indicatorAttribute: boolean; + indicatorGroupAttribute: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSetAttribute: boolean; + mandatory: boolean; + name: string; + optionAttribute: boolean; + optionSet: D2OptionSetSchema; + optionSetAttribute: boolean; + organisationUnitAttribute: boolean; + organisationUnitGroupAttribute: boolean; + organisationUnitGroupSetAttribute: boolean; + programAttribute: boolean; + programIndicatorAttribute: boolean; + programStageAttribute: boolean; + publicAccess: string; + sectionAttribute: boolean; + shortName: string; + sortOrder: number; + sqlViewAttribute: boolean; + trackedEntityAttributeAttribute: boolean; + trackedEntityTypeAttribute: boolean; + translations: D2Translation[]; + unique: boolean; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userAttribute: boolean; + userGroupAccesses: D2UserGroupAccessSchema[]; + userGroupAttribute: boolean; + validationRuleAttribute: boolean; + validationRuleGroupAttribute: boolean; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Attribute, + | "indicatorAttribute" + | "indicatorGroupAttribute" + | "publicAccess" + | "userGroupAttribute" + | "dataElementAttribute" + | "lastUpdated" + | "constantAttribute" + | "translations" + | "valueType" + | "categoryOptionAttribute" + | "id" + | "optionSetAttribute" + | "lastUpdatedBy" + | "sqlViewAttribute" + | "userGroupAccesses" + | "created" + | "legendSetAttribute" + | "trackedEntityAttributeAttribute" + | "organisationUnitAttribute" + | "dataSetAttribute" + | "documentAttribute" + | "unique" + | "sortOrder" + | "userAccesses" + | "name" + | "validationRuleGroupAttribute" + | "shortName" + | "dataElementGroupAttribute" + | "sectionAttribute" + | "trackedEntityTypeAttribute" + | "code" + | "userAttribute" + | "description" + | "mandatory" + | "categoryOptionGroupAttribute" + | "programStageAttribute" + | "programAttribute" + | "optionSet" + | "categoryAttribute" + | "categoryOptionComboAttribute" + | "categoryOptionGroupSetAttribute" + | "validationRuleAttribute" + | "programIndicatorAttribute" + | "organisationUnitGroupAttribute" + | "dataElementGroupSetAttribute" + | "organisationUnitGroupSetAttribute" + | "user" + | "optionAttribute" + >; + $owner: Preset< + D2Attribute, + | "indicatorAttribute" + | "indicatorGroupAttribute" + | "publicAccess" + | "userGroupAttribute" + | "dataElementAttribute" + | "lastUpdated" + | "constantAttribute" + | "translations" + | "valueType" + | "categoryOptionAttribute" + | "id" + | "optionSetAttribute" + | "lastUpdatedBy" + | "sqlViewAttribute" + | "userGroupAccesses" + | "created" + | "legendSetAttribute" + | "trackedEntityAttributeAttribute" + | "organisationUnitAttribute" + | "dataSetAttribute" + | "documentAttribute" + | "unique" + | "sortOrder" + | "userAccesses" + | "name" + | "validationRuleGroupAttribute" + | "shortName" + | "dataElementGroupAttribute" + | "sectionAttribute" + | "trackedEntityTypeAttribute" + | "code" + | "userAttribute" + | "description" + | "mandatory" + | "categoryOptionGroupAttribute" + | "programStageAttribute" + | "programAttribute" + | "optionSet" + | "categoryAttribute" + | "categoryOptionComboAttribute" + | "categoryOptionGroupSetAttribute" + | "validationRuleAttribute" + | "programIndicatorAttribute" + | "organisationUnitGroupAttribute" + | "dataElementGroupSetAttribute" + | "organisationUnitGroupSetAttribute" + | "user" + | "optionAttribute" + >; + }; +} + +export interface D2CategorySchema { + name: "D2Category"; + model: D2Category; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueGenericSchema[]; + categoryCombos: D2CategoryComboSchema[]; + categoryOptions: D2CategoryOptionSchema[]; + code: Id; + created: string; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + name: string; + programStage: D2ProgramStageSchema; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Category, + | "dataDimensionType" + | "code" + | "publicAccess" + | "lastUpdated" + | "translations" + | "categoryCombos" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "userAccesses" + | "name" + | "dataDimension" + | "user" + >; + $owner: Preset< + D2Category, + | "dataDimensionType" + | "code" + | "publicAccess" + | "lastUpdated" + | "translations" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "userAccesses" + | "name" + | "dataDimension" + | "user" + >; + }; +} + +export interface D2CategoryComboSchema { + name: "D2CategoryCombo"; + model: D2CategoryCombo; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + categories: D2CategorySchema[]; + categoryOptionCombos: D2CategoryOptionComboSchema[]; + code: Id; + created: string; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + isDefault: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + skipTotal: boolean; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryCombo, + | "dataDimensionType" + | "code" + | "publicAccess" + | "lastUpdated" + | "translations" + | "id" + | "categories" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "categoryOptionCombos" + | "userAccesses" + | "name" + | "skipTotal" + | "user" + >; + $owner: Preset< + D2CategoryCombo, + | "dataDimensionType" + | "code" + | "publicAccess" + | "lastUpdated" + | "translations" + | "id" + | "categories" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "userAccesses" + | "name" + | "skipTotal" + | "user" + >; + }; +} + +export interface D2CategoryDimensionSchema { + name: "D2CategoryDimension"; + model: D2CategoryDimension; + fields: { category: D2CategorySchema; categoryOptions: D2CategoryOptionSchema[] }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2CategoryOptionSchema { + name: "D2CategoryOption"; + model: D2CategoryOption; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGenericSchema[]; + categories: D2CategorySchema[]; + categoryOptionCombos: D2CategoryOptionComboSchema[]; + categoryOptionGroups: D2CategoryOptionGroupSchema[]; + code: Id; + created: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + isDefault: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + organisationUnits: D2OrganisationUnitSchema[]; + periodOffset: number; + publicAccess: string; + shortName: string; + startDate: string; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryOption, + | "code" + | "endDate" + | "publicAccess" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "categories" + | "organisationUnits" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "categoryOptionCombos" + | "categoryOptionGroups" + | "userAccesses" + | "name" + | "style" + | "shortName" + | "user" + | "startDate" + >; + $owner: Preset< + D2CategoryOption, + | "code" + | "endDate" + | "publicAccess" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "organisationUnits" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "userAccesses" + | "name" + | "style" + | "shortName" + | "user" + | "startDate" + >; + }; +} + +export interface D2CategoryOptionComboSchema { + name: "D2CategoryOptionCombo"; + model: D2CategoryOptionCombo; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGenericSchema[]; + categoryCombo: D2CategoryComboSchema; + categoryOptions: D2CategoryOptionSchema[]; + code: Id; + created: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + ignoreApproval: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryOptionCombo, + | "code" + | "lastUpdated" + | "ignoreApproval" + | "categoryCombo" + | "translations" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "name" + >; + $owner: Preset< + D2CategoryOptionCombo, + | "code" + | "lastUpdated" + | "ignoreApproval" + | "categoryCombo" + | "translations" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "name" + >; + }; +} + +export interface D2CategoryOptionGroupSchema { + name: "D2CategoryOptionGroup"; + model: D2CategoryOptionGroup; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGenericSchema[]; + categoryOptions: D2CategoryOptionSchema[]; + code: Id; + created: string; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + groupSets: D2CategoryOptionGroupSetSchema[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryOptionGroup, + | "dataDimensionType" + | "code" + | "publicAccess" + | "lastUpdated" + | "translations" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "groupSets" + | "userAccesses" + | "name" + | "shortName" + | "user" + >; + $owner: Preset< + D2CategoryOptionGroup, + | "dataDimensionType" + | "code" + | "publicAccess" + | "lastUpdated" + | "translations" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "userAccesses" + | "name" + | "shortName" + | "user" + >; + }; +} + +export interface D2CategoryOptionGroupSetSchema { + name: "D2CategoryOptionGroupSet"; + model: D2CategoryOptionGroupSet; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueGenericSchema[]; + categoryOptionGroups: D2CategoryOptionGroupSchema[]; + code: Id; + created: string; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + name: string; + programStage: D2ProgramStageSchema; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryOptionGroupSet, + | "dataDimensionType" + | "code" + | "publicAccess" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "categoryOptionGroups" + | "userAccesses" + | "name" + | "dataDimension" + | "user" + >; + $owner: Preset< + D2CategoryOptionGroupSet, + | "dataDimensionType" + | "code" + | "publicAccess" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "categoryOptionGroups" + | "userAccesses" + | "name" + | "dataDimension" + | "user" + >; + }; +} + +export interface D2CategoryOptionGroupSetDimensionSchema { + name: "D2CategoryOptionGroupSetDimension"; + model: D2CategoryOptionGroupSetDimension; + fields: { + categoryOptionGroupSet: D2CategoryOptionGroupSetSchema; + categoryOptionGroups: D2CategoryOptionGroupSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryOptionGroupSetDimension, + "categoryOptionGroups" | "categoryOptionGroupSet" + >; + $owner: Preset< + D2CategoryOptionGroupSetDimension, + "categoryOptionGroups" | "categoryOptionGroupSet" + >; + }; +} + +export interface D2ChartSchema { + name: "D2Chart"; + model: D2Chart; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValues: D2AttributeValueGenericSchema[]; + baseLineLabel: string; + baseLineValue: number; + category: string; + categoryDimensions: D2CategoryDimensionSchema[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; + code: Id; + columns: any[]; + completedOnly: boolean; + created: string; + cumulativeValues: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; + displayDescription: string; + displayDomainAxisLabel: string; + displayFormName: string; + displayName: string; + displayRangeAxisLabel: string; + displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; + domainAxisLabel: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + formName: string; + hideEmptyRowItems: + | "NONE" + | "BEFORE_FIRST" + | "AFTER_LAST" + | "BEFORE_FIRST_AFTER_LAST" + | "ALL"; + hideLegend: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendSet: D2LegendSetSchema; + name: string; + noSpaceBetweenColumns: boolean; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnitSchema[]; + parentGraphMap: D2MapSchema; + percentStackedValues: boolean; + periods: any[]; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; + publicAccess: string; + rangeAxisDecimals: number; + rangeAxisLabel: string; + rangeAxisMaxValue: number; + rangeAxisMinValue: number; + rangeAxisSteps: number; + regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; + relativePeriods: any; + rows: any[]; + series: string; + seriesItems: any[]; + shortName: string; + showData: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + targetLineLabel: string; + targetLineValue: number; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + type: + | "COLUMN" + | "STACKED_COLUMN" + | "BAR" + | "STACKED_BAR" + | "STACKED_AREA" + | "LINE" + | "AREA" + | "PIE" + | "RADAR" + | "GAUGE" + | "YEAR_OVER_YEAR_LINE" + | "YEAR_OVER_YEAR_COLUMN" + | "SINGLE_VALUE"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + yearlySeries: string[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2ConstantSchema { + name: "D2Constant"; + model: D2Constant; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + value: number; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Constant, + | "code" + | "publicAccess" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "value" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "userAccesses" + | "name" + | "shortName" + | "user" + >; + $owner: Preset< + D2Constant, + | "code" + | "publicAccess" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "value" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "userAccesses" + | "name" + | "shortName" + | "user" + >; + }; +} + +export interface D2DashboardSchema { + name: "D2Dashboard"; + model: D2Dashboard; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + dashboardItems: D2DashboardItemSchema[]; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + itemCount: number; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Dashboard, + | "favorites" + | "code" + | "publicAccess" + | "description" + | "externalAccess" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "dashboardItems" + | "userAccesses" + | "name" + | "user" + >; + $owner: Preset< + D2Dashboard, + | "favorites" + | "code" + | "publicAccess" + | "description" + | "externalAccess" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "dashboardItems" + | "userAccesses" + | "name" + | "user" + >; + }; +} + +export interface D2DashboardItemSchema { + name: "D2DashboardItem"; + model: D2DashboardItem; + fields: { + access: D2Access; + appKey: string; + attributeValues: D2AttributeValueGenericSchema[]; + chart: D2ChartSchema; + code: Id; + contentCount: number; + created: string; + displayName: string; + eventChart: D2EventChartSchema; + eventReport: D2EventReportSchema; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + height: number; + href: string; + id: Id; + interpretationCount: number; + interpretationLikeCount: number; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + map: D2MapSchema; + messages: boolean; + name: string; + publicAccess: string; + reportTable: D2ReportTableSchema; + reports: D2ReportSchema[]; + resources: D2DocumentSchema[]; + shape: "NORMAL" | "DOUBLE_WIDTH" | "FULL_WIDTH"; + text: string; + translations: D2Translation[]; + type: + | "VISUALIZATION" + | "CHART" + | "EVENT_CHART" + | "MAP" + | "REPORT_TABLE" + | "EVENT_REPORT" + | "USERS" + | "REPORTS" + | "RESOURCES" + | "TEXT" + | "MESSAGES" + | "APP"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + users: D2UserSchema[]; + visualization: D2VisualizationSchema; + width: number; + x: number; + y: number; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DashboardItem, + | "reports" + | "visualization" + | "code" + | "lastUpdated" + | "translations" + | "appKey" + | "id" + | "text" + | "map" + | "height" + | "lastUpdatedBy" + | "shape" + | "created" + | "resources" + | "users" + | "eventReport" + | "eventChart" + | "width" + | "x" + | "messages" + | "y" + >; + $owner: Preset< + D2DashboardItem, + | "reports" + | "visualization" + | "code" + | "lastUpdated" + | "translations" + | "appKey" + | "id" + | "text" + | "map" + | "height" + | "lastUpdatedBy" + | "shape" + | "created" + | "resources" + | "users" + | "eventReport" + | "eventChart" + | "width" + | "x" + | "messages" + | "y" + >; + }; +} + +export interface D2DataApprovalLevelSchema { + name: "D2DataApprovalLevel"; + model: D2DataApprovalLevel; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + categoryOptionGroupSet: D2CategoryOptionGroupSetSchema; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + level: number; + name: string; + orgUnitLevel: number; + orgUnitLevelName: string; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataApprovalLevel, + | "lastUpdatedBy" + | "categoryOptionGroupSet" + | "userGroupAccesses" + | "code" + | "level" + | "created" + | "publicAccess" + | "lastUpdated" + | "translations" + | "userAccesses" + | "name" + | "orgUnitLevel" + | "id" + | "user" + >; + $owner: Preset< + D2DataApprovalLevel, + | "lastUpdatedBy" + | "categoryOptionGroupSet" + | "userGroupAccesses" + | "code" + | "level" + | "created" + | "publicAccess" + | "lastUpdated" + | "translations" + | "userAccesses" + | "name" + | "orgUnitLevel" + | "id" + | "user" + >; + }; +} + +export interface D2DataApprovalWorkflowSchema { + name: "D2DataApprovalWorkflow"; + model: D2DataApprovalWorkflow; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + categoryCombo: D2CategoryComboSchema; + code: Id; + created: string; + dataApprovalLevels: D2DataApprovalLevelSchema[]; + dataSets: D2DataSetSchema[]; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + periodType: string; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataApprovalWorkflow, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "dataApprovalLevels" + | "lastUpdated" + | "periodType" + | "categoryCombo" + | "translations" + | "userAccesses" + | "name" + | "dataSets" + | "id" + | "user" + >; + $owner: Preset< + D2DataApprovalWorkflow, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "dataApprovalLevels" + | "lastUpdated" + | "periodType" + | "categoryCombo" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + }; +} + +export interface D2DataElementSchema { + name: "D2DataElement"; + model: D2DataElement; + fields: { + access: D2Access; + aggregationLevels: number[]; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGenericSchema[]; + categoryCombo: D2CategoryComboSchema; + code: Id; + commentOptionSet: D2OptionSetSchema; + created: string; + dataElementGroups: D2DataElementGroupSchema[]; + dataSetElements: D2DataSetElementSchema[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + domainType: "AGGREGATE" | "TRACKER"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldMask: string; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + optionSet: D2OptionSetSchema; + optionSetValue: boolean; + periodOffset: number; + publicAccess: string; + shortName: string; + style: D2Style; + translations: D2Translation[]; + url: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + zeroIsSignificant: boolean; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataElement, + | "aggregationType" + | "code" + | "domainType" + | "dataSetElements" + | "publicAccess" + | "description" + | "lastUpdated" + | "optionSet" + | "categoryCombo" + | "translations" + | "valueType" + | "formName" + | "commentOptionSet" + | "id" + | "fieldMask" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "dataElementGroups" + | "attributeValues" + | "zeroIsSignificant" + | "url" + | "userAccesses" + | "name" + | "legendSets" + | "aggregationLevels" + | "style" + | "shortName" + | "user" + >; + $owner: Preset< + D2DataElement, + | "aggregationType" + | "code" + | "domainType" + | "publicAccess" + | "description" + | "lastUpdated" + | "optionSet" + | "categoryCombo" + | "translations" + | "valueType" + | "formName" + | "commentOptionSet" + | "id" + | "fieldMask" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "zeroIsSignificant" + | "url" + | "userAccesses" + | "name" + | "legendSets" + | "aggregationLevels" + | "style" + | "shortName" + | "user" + >; + }; +} + +export interface D2DataElementGroupSchema { + name: "D2DataElementGroup"; + model: D2DataElementGroup; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + dataElements: D2DataElementSchema[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + groupSets: D2DataElementGroupSetSchema[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataElementGroup, + | "code" + | "publicAccess" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "dataElements" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "groupSets" + | "userAccesses" + | "name" + | "shortName" + | "user" + >; + $owner: Preset< + D2DataElementGroup, + | "code" + | "publicAccess" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "dataElements" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "userAccesses" + | "name" + | "shortName" + | "user" + >; + }; +} + +export interface D2DataElementGroupSetSchema { + name: "D2DataElementGroupSet"; + model: D2DataElementGroupSet; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + compulsory: boolean; + created: string; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + dataElementGroups: D2DataElementGroupSchema[]; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + name: string; + programStage: D2ProgramStageSchema; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataElementGroupSet, + | "code" + | "publicAccess" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "dataElementGroups" + | "compulsory" + | "userAccesses" + | "name" + | "dataDimension" + | "user" + >; + $owner: Preset< + D2DataElementGroupSet, + | "code" + | "publicAccess" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "dataElementGroups" + | "compulsory" + | "userAccesses" + | "name" + | "dataDimension" + | "user" + >; + }; +} + +export interface D2DataElementGroupSetDimensionSchema { + name: "D2DataElementGroupSetDimension"; + model: D2DataElementGroupSetDimension; + fields: { + dataElementGroupSet: D2DataElementGroupSetSchema; + dataElementGroups: D2DataElementGroupSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataElementGroupSetDimension, + "dataElementGroups" | "dataElementGroupSet" + >; + $owner: Preset; + }; +} + +export interface D2DataElementOperandSchema { + name: "D2DataElementOperand"; + model: D2DataElementOperand; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeOptionCombo: D2CategoryOptionComboSchema; + attributeValues: D2AttributeValueGenericSchema[]; + categoryOptionCombo: D2CategoryOptionComboSchema; + code: Id; + created: string; + dataElement: D2DataElementSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2DataEntryFormSchema { + name: "D2DataEntryForm"; + model: D2DataEntryForm; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + format: number; + href: string; + htmlCode: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + style: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataEntryForm, + | "lastUpdatedBy" + | "code" + | "created" + | "htmlCode" + | "format" + | "lastUpdated" + | "translations" + | "name" + | "style" + | "id" + >; + $owner: Preset< + D2DataEntryForm, + | "lastUpdatedBy" + | "code" + | "created" + | "htmlCode" + | "format" + | "lastUpdated" + | "translations" + | "name" + | "style" + | "id" + >; + }; +} + +export interface D2DataInputPeriodSchema { + name: "D2DataInputPeriod"; + model: D2DataInputPeriod; + fields: { closingDate: string; openingDate: string; period: any }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2DataSetSchema { + name: "D2DataSet"; + model: D2DataSet; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGenericSchema[]; + categoryCombo: D2CategoryComboSchema; + code: Id; + compulsoryDataElementOperands: D2DataElementOperandSchema[]; + compulsoryFieldsCompleteOnly: boolean; + created: string; + dataElementDecoration: boolean; + dataEntryForm: D2DataEntryFormSchema; + dataInputPeriods: D2DataInputPeriodSchema[]; + dataSetElements: D2DataSetElementSchema[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + expiryDays: number; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldCombinationRequired: boolean; + formName: string; + formType: "DEFAULT" | "CUSTOM" | "SECTION" | "SECTION_MULTIORG"; + href: string; + id: Id; + indicators: D2IndicatorSchema[]; + interpretations: D2InterpretationSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + mobile: boolean; + name: string; + noValueRequiresComment: boolean; + notificationRecipients: D2UserGroupSchema; + notifyCompletingUser: boolean; + openFuturePeriods: number; + openPeriodsAfterCoEndDate: number; + organisationUnits: D2OrganisationUnitSchema[]; + periodOffset: number; + periodType: string; + publicAccess: string; + renderAsTabs: boolean; + renderHorizontally: boolean; + sections: D2SectionSchema[]; + shortName: string; + skipOffline: boolean; + style: D2Style; + timelyDays: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + validCompleteOnly: boolean; + version: number; + workflow: D2DataApprovalWorkflowSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataSet, + | "dataEntryForm" + | "validCompleteOnly" + | "dataSetElements" + | "publicAccess" + | "skipOffline" + | "compulsoryFieldsCompleteOnly" + | "lastUpdated" + | "categoryCombo" + | "translations" + | "dataInputPeriods" + | "id" + | "interpretations" + | "lastUpdatedBy" + | "userGroupAccesses" + | "workflow" + | "created" + | "attributeValues" + | "indicators" + | "version" + | "sections" + | "timelyDays" + | "userAccesses" + | "name" + | "legendSets" + | "style" + | "notificationRecipients" + | "shortName" + | "code" + | "dataElementDecoration" + | "notifyCompletingUser" + | "noValueRequiresComment" + | "compulsoryDataElementOperands" + | "description" + | "fieldCombinationRequired" + | "formName" + | "organisationUnits" + | "renderHorizontally" + | "renderAsTabs" + | "mobile" + | "openPeriodsAfterCoEndDate" + | "periodType" + | "openFuturePeriods" + | "expiryDays" + | "user" + >; + $owner: Preset< + D2DataSet, + | "dataEntryForm" + | "validCompleteOnly" + | "dataSetElements" + | "publicAccess" + | "skipOffline" + | "compulsoryFieldsCompleteOnly" + | "lastUpdated" + | "categoryCombo" + | "translations" + | "dataInputPeriods" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "workflow" + | "created" + | "attributeValues" + | "indicators" + | "version" + | "timelyDays" + | "userAccesses" + | "name" + | "legendSets" + | "style" + | "notificationRecipients" + | "shortName" + | "code" + | "dataElementDecoration" + | "notifyCompletingUser" + | "noValueRequiresComment" + | "compulsoryDataElementOperands" + | "description" + | "fieldCombinationRequired" + | "formName" + | "organisationUnits" + | "renderHorizontally" + | "renderAsTabs" + | "mobile" + | "openPeriodsAfterCoEndDate" + | "periodType" + | "openFuturePeriods" + | "expiryDays" + | "user" + >; + }; +} + +export interface D2DataSetElementSchema { + name: "D2DataSetElement"; + model: D2DataSetElement; + fields: { + categoryCombo: D2CategoryComboSchema; + dataElement: D2DataElementSchema; + dataSet: D2DataSetSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2DataSetNotificationTemplateSchema { + name: "D2DataSetNotificationTemplate"; + model: D2DataSetNotificationTemplate; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + dataSetNotificationTrigger: "DATA_SET_COMPLETION" | "SCHEDULED_DAYS"; + dataSets: D2DataSetSchema[]; + deliveryChannels: never[]; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + messageTemplate: string; + name: string; + notificationRecipient: "ORGANISATION_UNIT_CONTACT" | "USER_GROUP"; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientUserGroup: D2UserGroupSchema; + relativeScheduledDays: number; + sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; + subjectTemplate: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataSetNotificationTemplate, + | "code" + | "lastUpdated" + | "translations" + | "relativeScheduledDays" + | "id" + | "subjectTemplate" + | "dataSetNotificationTrigger" + | "sendStrategy" + | "lastUpdatedBy" + | "deliveryChannels" + | "created" + | "notifyUsersInHierarchyOnly" + | "notificationRecipient" + | "notifyParentOrganisationUnitOnly" + | "name" + | "dataSets" + | "recipientUserGroup" + | "messageTemplate" + >; + $owner: Preset< + D2DataSetNotificationTemplate, + | "code" + | "lastUpdated" + | "translations" + | "relativeScheduledDays" + | "id" + | "subjectTemplate" + | "dataSetNotificationTrigger" + | "sendStrategy" + | "lastUpdatedBy" + | "deliveryChannels" + | "created" + | "notifyUsersInHierarchyOnly" + | "notificationRecipient" + | "notifyParentOrganisationUnitOnly" + | "name" + | "dataSets" + | "recipientUserGroup" + | "messageTemplate" + >; + }; +} + +export interface D2DocumentSchema { + name: "D2Document"; + model: D2Document; + fields: { + access: D2Access; + attachment: boolean; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + contentType: string; + created: string; + displayName: string; + external: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + translations: D2Translation[]; + url: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Document, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "attributeValues" + | "url" + | "externalAccess" + | "lastUpdated" + | "external" + | "attachment" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + | "contentType" + >; + $owner: Preset< + D2Document, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "attributeValues" + | "url" + | "externalAccess" + | "lastUpdated" + | "external" + | "attachment" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + | "contentType" + >; + }; +} + +export interface D2EventChartSchema { + name: "D2EventChart"; + model: D2EventChart; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValueDimension: D2TrackedEntityAttributeSchema; + attributeValues: D2AttributeValueGenericSchema[]; + baseLineLabel: string; + baseLineValue: number; + categoryDimensions: D2CategoryDimensionSchema[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; + code: Id; + collapseDataDimensions: boolean; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + cumulativeValues: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; + dataElementValueDimension: D2DataElementSchema; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; + displayDescription: string; + displayDomainAxisLabel: string; + displayFormName: string; + displayName: string; + displayRangeAxisLabel: string; + displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; + domainAxisLabel: string; + endDate: string; + eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + formName: string; + hideEmptyRowItems: + | "NONE" + | "BEFORE_FIRST" + | "AFTER_LAST" + | "BEFORE_FIRST_AFTER_LAST" + | "ALL"; + hideLegend: boolean; + hideNaData: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendSet: D2LegendSetSchema; + name: string; + noSpaceBetweenColumns: boolean; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnitSchema[]; + outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; + parentGraphMap: D2MapSchema; + percentStackedValues: boolean; + periods: any[]; + program: D2ProgramSchema; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; + programStage: D2ProgramStageSchema; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + rangeAxisDecimals: number; + rangeAxisLabel: string; + rangeAxisMaxValue: number; + rangeAxisMinValue: number; + rangeAxisSteps: number; + regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; + relativePeriods: any; + rowDimensions: string[]; + rows: any[]; + shortName: string; + showData: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + targetLineLabel: string; + targetLineValue: number; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + type: + | "COLUMN" + | "STACKED_COLUMN" + | "BAR" + | "STACKED_BAR" + | "STACKED_AREA" + | "LINE" + | "AREA" + | "PIE" + | "RADAR" + | "GAUGE" + | "YEAR_OVER_YEAR_LINE" + | "YEAR_OVER_YEAR_COLUMN" + | "SINGLE_VALUE"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + value: any; + yearlySeries: string[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2EventChart, + | "orgUnitField" + | "endDate" + | "baseLineValue" + | "publicAccess" + | "userOrganisationUnitChildren" + | "program" + | "type" + | "lastUpdated" + | "attributeDimensions" + | "translations" + | "userOrganisationUnit" + | "filterDimensions" + | "id" + | "interpretations" + | "attributeValueDimension" + | "userGroupAccesses" + | "domainAxisLabel" + | "subscribers" + | "cumulativeValues" + | "sortOrder" + | "subtitle" + | "rangeAxisDecimals" + | "startDate" + | "collapseDataDimensions" + | "userOrganisationUnitGrandChildren" + | "percentStackedValues" + | "noSpaceBetweenColumns" + | "dataElementDimensions" + | "rangeAxisSteps" + | "periods" + | "categoryDimensions" + | "hideTitle" + | "rowDimensions" + | "eventStatus" + | "showData" + | "hideNaData" + | "itemOrganisationUnitGroups" + | "lastUpdatedBy" + | "programIndicatorDimensions" + | "created" + | "rangeAxisLabel" + | "regressionType" + | "columnDimensions" + | "completedOnly" + | "userAccesses" + | "name" + | "programStatus" + | "hideEmptyRowItems" + | "favorites" + | "aggregationType" + | "code" + | "categoryOptionGroupSetDimensions" + | "hideSubtitle" + | "outputType" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "hideLegend" + | "externalAccess" + | "rangeAxisMinValue" + | "organisationUnitLevels" + | "dataElementValueDimension" + | "relativePeriods" + | "targetLineLabel" + | "organisationUnits" + | "programStage" + | "timeField" + | "targetLineValue" + | "baseLineLabel" + | "userOrgUnitType" + | "rangeAxisMaxValue" + | "user" + >; + $owner: Preset< + D2EventChart, + | "orgUnitField" + | "endDate" + | "baseLineValue" + | "publicAccess" + | "userOrganisationUnitChildren" + | "program" + | "type" + | "lastUpdated" + | "attributeDimensions" + | "translations" + | "userOrganisationUnit" + | "filterDimensions" + | "id" + | "attributeValueDimension" + | "userGroupAccesses" + | "domainAxisLabel" + | "subscribers" + | "cumulativeValues" + | "sortOrder" + | "subtitle" + | "rangeAxisDecimals" + | "startDate" + | "collapseDataDimensions" + | "userOrganisationUnitGrandChildren" + | "percentStackedValues" + | "noSpaceBetweenColumns" + | "dataElementDimensions" + | "rangeAxisSteps" + | "periods" + | "categoryDimensions" + | "hideTitle" + | "rowDimensions" + | "eventStatus" + | "showData" + | "hideNaData" + | "itemOrganisationUnitGroups" + | "lastUpdatedBy" + | "programIndicatorDimensions" + | "created" + | "rangeAxisLabel" + | "regressionType" + | "columnDimensions" + | "completedOnly" + | "userAccesses" + | "name" + | "programStatus" + | "hideEmptyRowItems" + | "favorites" + | "aggregationType" + | "code" + | "categoryOptionGroupSetDimensions" + | "hideSubtitle" + | "outputType" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "hideLegend" + | "externalAccess" + | "rangeAxisMinValue" + | "organisationUnitLevels" + | "dataElementValueDimension" + | "relativePeriods" + | "targetLineLabel" + | "organisationUnits" + | "programStage" + | "timeField" + | "targetLineValue" + | "baseLineLabel" + | "userOrgUnitType" + | "rangeAxisMaxValue" + | "user" + >; + }; +} + +export interface D2EventReportSchema { + name: "D2EventReport"; + model: D2EventReport; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValueDimension: D2TrackedEntityAttributeSchema; + attributeValues: D2AttributeValueGenericSchema[]; + categoryDimensions: D2CategoryDimensionSchema[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; + code: Id; + colSubTotals: boolean; + colTotals: boolean; + collapseDataDimensions: boolean; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; + dataElementValueDimension: D2DataElementSchema; + dataType: "AGGREGATED_VALUES" | "EVENTS"; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + displaySubtitle: string; + displayTitle: string; + endDate: string; + eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + fontSize: "LARGE" | "NORMAL" | "SMALL"; + formName: string; + hideEmptyRows: boolean; + hideNaData: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnitSchema[]; + outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; + parentGraphMap: D2MapSchema; + periods: any[]; + program: D2ProgramSchema; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; + programStage: D2ProgramStageSchema; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + relativePeriods: any; + rowDimensions: string[]; + rowSubTotals: boolean; + rowTotals: boolean; + rows: any[]; + shortName: string; + showDimensionLabels: boolean; + showHierarchy: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + value: any; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2EventReport, + | "orgUnitField" + | "endDate" + | "publicAccess" + | "userOrganisationUnitChildren" + | "program" + | "lastUpdated" + | "hideEmptyRows" + | "attributeDimensions" + | "translations" + | "userOrganisationUnit" + | "filterDimensions" + | "id" + | "rowSubTotals" + | "hideNaData" + | "interpretations" + | "itemOrganisationUnitGroups" + | "displayDensity" + | "attributeValueDimension" + | "lastUpdatedBy" + | "userGroupAccesses" + | "programIndicatorDimensions" + | "created" + | "subscribers" + | "dataType" + | "columnDimensions" + | "completedOnly" + | "colTotals" + | "showDimensionLabels" + | "subtitle" + | "sortOrder" + | "userAccesses" + | "name" + | "fontSize" + | "topLimit" + | "startDate" + | "collapseDataDimensions" + | "programStatus" + | "favorites" + | "aggregationType" + | "code" + | "categoryOptionGroupSetDimensions" + | "userOrganisationUnitGrandChildren" + | "hideSubtitle" + | "outputType" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "organisationUnitLevels" + | "externalAccess" + | "colSubTotals" + | "dataElementValueDimension" + | "relativePeriods" + | "dataElementDimensions" + | "periods" + | "organisationUnits" + | "categoryDimensions" + | "showHierarchy" + | "programStage" + | "rowTotals" + | "timeField" + | "digitGroupSeparator" + | "hideTitle" + | "rowDimensions" + | "eventStatus" + | "userOrgUnitType" + | "user" + >; + $owner: Preset< + D2EventReport, + | "orgUnitField" + | "endDate" + | "publicAccess" + | "userOrganisationUnitChildren" + | "program" + | "lastUpdated" + | "hideEmptyRows" + | "attributeDimensions" + | "translations" + | "userOrganisationUnit" + | "filterDimensions" + | "id" + | "rowSubTotals" + | "hideNaData" + | "itemOrganisationUnitGroups" + | "displayDensity" + | "attributeValueDimension" + | "lastUpdatedBy" + | "userGroupAccesses" + | "programIndicatorDimensions" + | "created" + | "subscribers" + | "dataType" + | "columnDimensions" + | "completedOnly" + | "colTotals" + | "showDimensionLabels" + | "subtitle" + | "sortOrder" + | "userAccesses" + | "name" + | "fontSize" + | "topLimit" + | "startDate" + | "collapseDataDimensions" + | "programStatus" + | "favorites" + | "aggregationType" + | "code" + | "categoryOptionGroupSetDimensions" + | "userOrganisationUnitGrandChildren" + | "hideSubtitle" + | "outputType" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "organisationUnitLevels" + | "externalAccess" + | "colSubTotals" + | "dataElementValueDimension" + | "relativePeriods" + | "dataElementDimensions" + | "periods" + | "organisationUnits" + | "categoryDimensions" + | "showHierarchy" + | "programStage" + | "rowTotals" + | "timeField" + | "digitGroupSeparator" + | "hideTitle" + | "rowDimensions" + | "eventStatus" + | "userOrgUnitType" + | "user" + >; + }; +} + +export interface D2ExpressionSchema { + name: "D2Expression"; + model: D2Expression; + fields: { + description: string; + expression: string; + missingValueStrategy: + | "SKIP_IF_ANY_VALUE_MISSING" + | "SKIP_IF_ALL_VALUES_MISSING" + | "NEVER_SKIP"; + slidingWindow: boolean; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Expression, + "description" | "expression" | "missingValueStrategy" | "slidingWindow" + >; + $owner: Preset< + D2Expression, + "description" | "expression" | "missingValueStrategy" | "slidingWindow" + >; + }; +} + +export interface D2ExternalFileResourceSchema { + name: "D2ExternalFileResource"; + model: D2ExternalFileResource; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ExternalFileResource, + "lastUpdatedBy" | "code" | "created" | "lastUpdated" | "id" + >; + $owner: Preset< + D2ExternalFileResource, + "lastUpdatedBy" | "code" | "created" | "lastUpdated" | "id" + >; + }; +} + +export interface D2ExternalMapLayerSchema { + name: "D2ExternalMapLayer"; + model: D2ExternalMapLayer; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + attribution: string; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + imageFormat: "PNG" | "JPG"; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + layers: string; + legendSet: D2LegendSetSchema; + legendSetUrl: string; + mapLayerPosition: "BASEMAP" | "OVERLAY"; + mapService: "WMS" | "TMS" | "XYZ"; + name: string; + publicAccess: string; + translations: D2Translation[]; + url: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ExternalMapLayer, + | "imageFormat" + | "code" + | "publicAccess" + | "legendSetUrl" + | "mapService" + | "lastUpdated" + | "translations" + | "layers" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "mapLayerPosition" + | "url" + | "userAccesses" + | "name" + | "legendSet" + | "attribution" + | "user" + >; + $owner: Preset< + D2ExternalMapLayer, + | "imageFormat" + | "code" + | "publicAccess" + | "legendSetUrl" + | "mapService" + | "lastUpdated" + | "translations" + | "layers" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "mapLayerPosition" + | "url" + | "userAccesses" + | "name" + | "legendSet" + | "attribution" + | "user" + >; + }; +} + +export interface D2FileResourceSchema { + name: "D2FileResource"; + model: D2FileResource; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + contentLength: string; + contentMd5: string; + contentType: string; + created: string; + displayName: string; + domain: "DATA_VALUE" | "PUSH_ANALYSIS" | "DOCUMENT" | "MESSAGE_ATTACHMENT" | "USER_AVATAR"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + hasMultipleStorageFiles: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + storageStatus: "NONE" | "PENDING" | "FAILED" | "STORED"; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2FileResource, + | "contentMd5" + | "code" + | "lastUpdated" + | "id" + | "contentType" + | "lastUpdatedBy" + | "created" + | "domain" + | "hasMultipleStorageFiles" + | "name" + | "contentLength" + | "user" + >; + $owner: Preset< + D2FileResource, + | "contentMd5" + | "code" + | "lastUpdated" + | "id" + | "contentType" + | "lastUpdatedBy" + | "created" + | "domain" + | "hasMultipleStorageFiles" + | "name" + | "contentLength" + | "user" + >; + }; +} + +export interface D2IconSchema { + name: "D2Icon"; + model: D2Icon; + fields: {}; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2IndicatorSchema { + name: "D2Indicator"; + model: D2Indicator; + fields: { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + annualized: boolean; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + dataSets: D2DataSetSchema[]; + decimals: number; + denominator: string; + denominatorDescription: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDenominatorDescription: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayNumeratorDescription: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + indicatorGroups: D2IndicatorGroupSchema[]; + indicatorType: D2IndicatorTypeSchema; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + numerator: string; + numeratorDescription: string; + periodOffset: number; + publicAccess: string; + shortName: string; + style: D2Style; + translations: D2Translation[]; + url: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Indicator, + | "code" + | "publicAccess" + | "aggregateExportCategoryOptionCombo" + | "description" + | "lastUpdated" + | "denominatorDescription" + | "indicatorType" + | "translations" + | "formName" + | "id" + | "numeratorDescription" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "indicatorGroups" + | "url" + | "numerator" + | "denominator" + | "annualized" + | "userAccesses" + | "decimals" + | "name" + | "dataSets" + | "legendSets" + | "style" + | "shortName" + | "user" + | "aggregateExportAttributeOptionCombo" + >; + $owner: Preset< + D2Indicator, + | "code" + | "publicAccess" + | "aggregateExportCategoryOptionCombo" + | "description" + | "lastUpdated" + | "denominatorDescription" + | "indicatorType" + | "translations" + | "formName" + | "id" + | "numeratorDescription" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "url" + | "numerator" + | "denominator" + | "annualized" + | "userAccesses" + | "decimals" + | "name" + | "legendSets" + | "style" + | "shortName" + | "user" + | "aggregateExportAttributeOptionCombo" + >; + }; +} + +export interface D2IndicatorGroupSchema { + name: "D2IndicatorGroup"; + model: D2IndicatorGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + indicatorGroupSet: D2IndicatorGroupSetSchema; + indicators: D2IndicatorSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2IndicatorGroup, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "attributeValues" + | "description" + | "indicators" + | "indicatorGroupSet" + | "lastUpdated" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + $owner: Preset< + D2IndicatorGroup, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "attributeValues" + | "description" + | "indicators" + | "indicatorGroupSet" + | "lastUpdated" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + }; +} + +export interface D2IndicatorGroupSetSchema { + name: "D2IndicatorGroupSet"; + model: D2IndicatorGroupSet; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + compulsory: boolean; + created: string; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + indicatorGroups: D2IndicatorGroupSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2IndicatorGroupSet, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "description" + | "indicatorGroups" + | "lastUpdated" + | "compulsory" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + $owner: Preset< + D2IndicatorGroupSet, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "description" + | "indicatorGroups" + | "lastUpdated" + | "compulsory" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + }; +} + +export interface D2IndicatorTypeSchema { + name: "D2IndicatorType"; + model: D2IndicatorType; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + factor: number; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + number: boolean; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2IndicatorType, + | "lastUpdatedBy" + | "code" + | "created" + | "lastUpdated" + | "number" + | "translations" + | "name" + | "id" + | "factor" + >; + $owner: Preset< + D2IndicatorType, + | "lastUpdatedBy" + | "code" + | "created" + | "lastUpdated" + | "number" + | "translations" + | "name" + | "id" + | "factor" + >; + }; +} + +export interface D2InterpretationSchema { + name: "D2Interpretation"; + model: D2Interpretation; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + chart: D2ChartSchema; + code: Id; + comments: D2InterpretationCommentSchema[]; + created: string; + dataSet: D2DataSetSchema; + displayName: string; + eventChart: D2EventChartSchema; + eventReport: D2EventReportSchema; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + likedBy: D2UserSchema[]; + likes: number; + map: D2MapSchema; + mentions: any[]; + name: string; + organisationUnit: D2OrganisationUnitSchema; + period: any; + publicAccess: string; + reportTable: D2ReportTableSchema; + text: string; + translations: D2Translation[]; + type: + | "VISUALIZATION" + | "REPORT_TABLE" + | "CHART" + | "MAP" + | "EVENT_REPORT" + | "EVENT_CHART" + | "DATASET_REPORT"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + visualization: D2VisualizationSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Interpretation, + | "visualization" + | "likedBy" + | "organisationUnit" + | "publicAccess" + | "lastUpdated" + | "id" + | "text" + | "map" + | "dataSet" + | "likes" + | "period" + | "userGroupAccesses" + | "comments" + | "created" + | "eventReport" + | "userAccesses" + | "mentions" + | "eventChart" + | "user" + >; + $owner: Preset< + D2Interpretation, + | "visualization" + | "likedBy" + | "organisationUnit" + | "publicAccess" + | "lastUpdated" + | "id" + | "text" + | "map" + | "dataSet" + | "likes" + | "period" + | "userGroupAccesses" + | "comments" + | "created" + | "eventReport" + | "userAccesses" + | "mentions" + | "eventChart" + | "user" + >; + }; +} + +export interface D2InterpretationCommentSchema { + name: "D2InterpretationComment"; + model: D2InterpretationComment; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + mentions: any[]; + name: string; + publicAccess: string; + text: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2InterpretationComment, + "created" | "lastUpdated" | "mentions" | "text" | "id" | "user" + >; + $owner: Preset< + D2InterpretationComment, + "created" | "lastUpdated" | "mentions" | "text" | "id" | "user" + >; + }; +} + +export interface D2JobConfigurationSchema { + name: "D2JobConfiguration"; + model: D2JobConfiguration; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + configurable: boolean; + created: string; + cronExpression: string; + delay: number; + displayName: string; + enabled: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + jobParameters: string; + jobStatus: + | "RUNNING" + | "COMPLETED" + | "STOPPED" + | "SCHEDULED" + | "DISABLED" + | "FAILED" + | "NOT_STARTED"; + jobType: + | "DATA_STATISTICS" + | "DATA_INTEGRITY" + | "RESOURCE_TABLE" + | "ANALYTICS_TABLE" + | "CONTINUOUS_ANALYTICS_TABLE" + | "DATA_SYNC" + | "TRACKER_PROGRAMS_DATA_SYNC" + | "EVENT_PROGRAMS_DATA_SYNC" + | "FILE_RESOURCE_CLEANUP" + | "IMAGE_PROCESSING" + | "META_DATA_SYNC" + | "SMS_SEND" + | "SEND_SCHEDULED_MESSAGE" + | "PROGRAM_NOTIFICATIONS" + | "VALIDATION_RESULTS_NOTIFICATION" + | "CREDENTIALS_EXPIRY_ALERT" + | "MONITORING" + | "PUSH_ANALYSIS" + | "PREDICTOR" + | "DATA_SET_NOTIFICATION" + | "REMOVE_USED_OR_EXPIRED_RESERVED_VALUES" + | "TRACKER_IMPORT_JOB" + | "TRACKER_IMPORT_NOTIFICATION_JOB" + | "TRACKER_IMPORT_RULE_ENGINE_JOB" + | "LEADER_ELECTION" + | "LEADER_RENEWAL" + | "COMPLETE_DATA_SET_REGISTRATION_IMPORT" + | "DATAVALUE_IMPORT_INTERNAL" + | "METADATA_IMPORT" + | "DATAVALUE_IMPORT" + | "EVENT_IMPORT" + | "ENROLLMENT_IMPORT" + | "TEI_IMPORT" + | "MOCK" + | "GML_IMPORT" + | "ANALYTICSTABLE_UPDATE" + | "PROGRAM_DATA_SYNC"; + lastExecuted: string; + lastExecutedStatus: + | "RUNNING" + | "COMPLETED" + | "STOPPED" + | "SCHEDULED" + | "DISABLED" + | "FAILED" + | "NOT_STARTED"; + lastRuntimeExecution: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + leaderOnlyJob: boolean; + name: string; + nextExecutionTime: string; + publicAccess: string; + schedulingType: "CRON" | "FIXED_DELAY"; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userUid: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2JobConfiguration, + | "jobStatus" + | "code" + | "enabled" + | "leaderOnlyJob" + | "lastUpdated" + | "id" + | "jobType" + | "lastUpdatedBy" + | "nextExecutionTime" + | "created" + | "cronExpression" + | "lastRuntimeExecution" + | "delay" + | "lastExecutedStatus" + | "name" + | "jobParameters" + | "lastExecuted" + >; + $owner: Preset< + D2JobConfiguration, + | "jobStatus" + | "code" + | "enabled" + | "leaderOnlyJob" + | "lastUpdated" + | "id" + | "jobType" + | "lastUpdatedBy" + | "nextExecutionTime" + | "created" + | "cronExpression" + | "lastRuntimeExecution" + | "delay" + | "lastExecutedStatus" + | "name" + | "jobParameters" + | "lastExecuted" + >; + }; +} + +export interface D2KeyJsonValueSchema { + name: "D2KeyJsonValue"; + model: D2KeyJsonValue; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + key: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + namespace: string; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + value: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2KeyJsonValue, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "lastUpdated" + | "userAccesses" + | "namespace" + | "id" + | "user" + | "key" + >; + $owner: Preset< + D2KeyJsonValue, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "lastUpdated" + | "userAccesses" + | "namespace" + | "id" + | "user" + | "key" + >; + }; +} + +export interface D2LegendSchema { + name: "D2Legend"; + model: D2Legend; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + color: string; + created: string; + displayName: string; + endValue: number; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + image: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + startValue: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Legend, + | "lastUpdatedBy" + | "image" + | "code" + | "endValue" + | "color" + | "created" + | "lastUpdated" + | "translations" + | "name" + | "startValue" + | "id" + >; + $owner: Preset< + D2Legend, + | "lastUpdatedBy" + | "image" + | "code" + | "endValue" + | "color" + | "created" + | "lastUpdated" + | "translations" + | "name" + | "startValue" + | "id" + >; + }; +} + +export interface D2LegendSetSchema { + name: "D2LegendSet"; + model: D2LegendSet; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legends: D2LegendSchema[]; + name: string; + publicAccess: string; + symbolizer: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2LegendSet, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "attributeValues" + | "symbolizer" + | "lastUpdated" + | "legends" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + $owner: Preset< + D2LegendSet, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "attributeValues" + | "symbolizer" + | "lastUpdated" + | "legends" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + }; +} + +export interface D2MapSchema { + name: "D2Map"; + model: D2Map; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + basemap: string; + code: Id; + created: string; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + latitude: number; + longitude: number; + mapViews: D2MapViewSchema[]; + name: string; + publicAccess: string; + shortName: string; + subscribed: boolean; + subscribers: string[]; + title: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + zoom: number; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Map, + | "favorites" + | "code" + | "publicAccess" + | "basemap" + | "latitude" + | "description" + | "title" + | "externalAccess" + | "lastUpdated" + | "translations" + | "mapViews" + | "id" + | "interpretations" + | "longitude" + | "lastUpdatedBy" + | "userGroupAccesses" + | "subscribers" + | "created" + | "zoom" + | "userAccesses" + | "name" + | "user" + >; + $owner: Preset< + D2Map, + | "favorites" + | "code" + | "publicAccess" + | "basemap" + | "latitude" + | "description" + | "title" + | "externalAccess" + | "lastUpdated" + | "translations" + | "mapViews" + | "id" + | "longitude" + | "lastUpdatedBy" + | "userGroupAccesses" + | "subscribers" + | "created" + | "zoom" + | "userAccesses" + | "name" + | "user" + >; + }; +} + +export interface D2MapViewSchema { + name: "D2MapView"; + model: D2MapView; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + areaRadius: number; + attributeDimensions: any[]; + attributeValues: D2AttributeValueGenericSchema[]; + categoryDimensions: D2CategoryDimensionSchema[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; + classes: number; + code: Id; + colorHigh: string; + colorLow: string; + colorScale: string; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + config: string; + created: string; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + displaySubtitle: string; + displayTitle: string; + endDate: string; + eventClustering: boolean; + eventCoordinateField: string; + eventPointColor: string; + eventPointRadius: number; + eventStatus: "ACTIVE" | "COMPLETED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + followUp: boolean; + formName: string; + hidden: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; + labelFontColor: string; + labelFontSize: string; + labelFontStyle: string; + labelFontWeight: string; + labels: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + layer: string; + legendSet: D2LegendSetSchema; + method: number; + name: string; + noDataColor: string; + opacity: number; + orgUnitField: string; + organisationUnitGroupSet: D2OrganisationUnitGroupSetSchema; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; + organisationUnitLevels: number[]; + organisationUnitSelectionMode: + | "SELECTED" + | "CHILDREN" + | "DESCENDANTS" + | "ACCESSIBLE" + | "CAPTURE" + | "ALL"; + organisationUnits: D2OrganisationUnitSchema[]; + parentGraph: string; + parentGraphMap: D2MapSchema; + parentLevel: number; + periods: any[]; + program: D2ProgramSchema; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; + programStage: D2ProgramStageSchema; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + radiusHigh: number; + radiusLow: number; + relativePeriods: any; + renderingStrategy: "SINGLE" | "SPLIT_BY_PERIOD" | "TIMELINE"; + rows: any[]; + shortName: string; + sortOrder: number; + startDate: string; + styleDataItem: object; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + thematicMapType: "CHOROPLETH" | "BUBBLE"; + timeField: string; + title: string; + topLimit: number; + trackedEntityType: D2TrackedEntityTypeSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2MapView, + | "endDate" + | "userOrganisationUnitChildren" + | "program" + | "lastUpdated" + | "attributeDimensions" + | "translations" + | "eventCoordinateField" + | "userOrganisationUnit" + | "organisationUnitSelectionMode" + | "filterDimensions" + | "id" + | "method" + | "renderingStrategy" + | "labels" + | "startDate" + | "noDataColor" + | "userOrganisationUnitGrandChildren" + | "styleDataItem" + | "labelFontColor" + | "layer" + | "dataElementDimensions" + | "periods" + | "categoryDimensions" + | "labelFontStyle" + | "radiusHigh" + | "eventClustering" + | "colorLow" + | "eventStatus" + | "opacity" + | "config" + | "colorScale" + | "itemOrganisationUnitGroups" + | "lastUpdatedBy" + | "labelFontSize" + | "created" + | "columnDimensions" + | "colorHigh" + | "eventPointRadius" + | "areaRadius" + | "programStatus" + | "aggregationType" + | "dataDimensionItems" + | "code" + | "categoryOptionGroupSetDimensions" + | "hidden" + | "thematicMapType" + | "classes" + | "description" + | "organisationUnitGroupSetDimensions" + | "organisationUnitLevels" + | "organisationUnitGroupSet" + | "followUp" + | "relativePeriods" + | "organisationUnits" + | "eventPointColor" + | "programStage" + | "labelFontWeight" + | "radiusLow" + | "trackedEntityType" + | "legendSet" + | "userOrgUnitType" + >; + $owner: Preset< + D2MapView, + | "endDate" + | "userOrganisationUnitChildren" + | "program" + | "lastUpdated" + | "attributeDimensions" + | "translations" + | "eventCoordinateField" + | "userOrganisationUnit" + | "organisationUnitSelectionMode" + | "filterDimensions" + | "id" + | "method" + | "renderingStrategy" + | "labels" + | "startDate" + | "noDataColor" + | "userOrganisationUnitGrandChildren" + | "styleDataItem" + | "labelFontColor" + | "layer" + | "dataElementDimensions" + | "periods" + | "categoryDimensions" + | "labelFontStyle" + | "radiusHigh" + | "eventClustering" + | "colorLow" + | "eventStatus" + | "opacity" + | "config" + | "colorScale" + | "itemOrganisationUnitGroups" + | "lastUpdatedBy" + | "labelFontSize" + | "created" + | "columnDimensions" + | "colorHigh" + | "eventPointRadius" + | "areaRadius" + | "programStatus" + | "aggregationType" + | "dataDimensionItems" + | "code" + | "categoryOptionGroupSetDimensions" + | "hidden" + | "thematicMapType" + | "classes" + | "description" + | "organisationUnitGroupSetDimensions" + | "organisationUnitLevels" + | "organisationUnitGroupSet" + | "followUp" + | "relativePeriods" + | "organisationUnits" + | "eventPointColor" + | "programStage" + | "labelFontWeight" + | "radiusLow" + | "trackedEntityType" + | "legendSet" + | "userOrgUnitType" + >; + }; +} + +export interface D2MessageConversationSchema { + name: "D2MessageConversation"; + model: D2MessageConversation; + fields: { + access: D2Access; + assignee: D2UserSchema; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followUp: boolean; + href: string; + id: Id; + lastMessage: string; + lastSender: D2UserSchema; + lastSenderFirstname: string; + lastSenderSurname: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + messageCount: number; + messageType: "PRIVATE" | "SYSTEM" | "VALIDATION_RESULT" | "TICKET"; + messages: any[]; + name: string; + priority: "NONE" | "LOW" | "MEDIUM" | "HIGH"; + publicAccess: string; + read: boolean; + status: "NONE" | "OPEN" | "PENDING" | "INVALID" | "SOLVED"; + subject: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userFirstname: string; + userGroupAccesses: D2UserGroupAccessSchema[]; + userMessages: any[]; + userSurname: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2MessageConversation, + | "messageCount" + | "subject" + | "lastUpdated" + | "messageType" + | "userMessages" + | "id" + | "lastSender" + | "created" + | "lastMessage" + | "priority" + | "messages" + | "assignee" + | "user" + | "status" + >; + $owner: Preset< + D2MessageConversation, + | "messageCount" + | "subject" + | "lastUpdated" + | "messageType" + | "userMessages" + | "id" + | "lastSender" + | "created" + | "lastMessage" + | "priority" + | "messages" + | "assignee" + | "user" + | "status" + >; + }; +} + +export interface D2MetadataVersionSchema { + name: "D2MetadataVersion"; + model: D2MetadataVersion; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + hashCode: string; + href: string; + id: Id; + importDate: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + translations: D2Translation[]; + type: "BEST_EFFORT" | "ATOMIC"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2MetadataVersion, + | "lastUpdatedBy" + | "code" + | "created" + | "type" + | "lastUpdated" + | "importDate" + | "hashCode" + | "name" + | "id" + >; + $owner: Preset< + D2MetadataVersion, + | "lastUpdatedBy" + | "code" + | "created" + | "type" + | "lastUpdated" + | "importDate" + | "hashCode" + | "name" + | "id" + >; + }; +} + +export interface D2MinMaxDataElementSchema { + name: "D2MinMaxDataElement"; + model: D2MinMaxDataElement; + fields: { + dataElement: D2DataElementSchema; + generated: boolean; + max: number; + min: number; + optionCombo: D2CategoryOptionComboSchema; + source: D2OrganisationUnitSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2MinMaxDataElement, + "min" | "generated" | "max" | "dataElement" | "source" | "optionCombo" + >; + $owner: Preset< + D2MinMaxDataElement, + "min" | "generated" | "max" | "dataElement" | "source" | "optionCombo" + >; + }; +} + +export interface D2OAuth2ClientSchema { + name: "D2OAuth2Client"; + model: D2OAuth2Client; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + cid: Id; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + grantTypes: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + redirectUris: string[]; + secret: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OAuth2Client, + | "lastUpdatedBy" + | "code" + | "created" + | "secret" + | "redirectUris" + | "lastUpdated" + | "grantTypes" + | "name" + | "id" + | "cid" + >; + $owner: Preset< + D2OAuth2Client, + | "lastUpdatedBy" + | "code" + | "created" + | "secret" + | "redirectUris" + | "lastUpdated" + | "grantTypes" + | "name" + | "id" + | "cid" + >; + }; +} + +export interface D2OptionSchema { + name: "D2Option"; + model: D2Option; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: string; + created: string; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + optionSet: D2OptionSetSchema; + publicAccess: string; + shortName: string; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Option, + | "code" + | "description" + | "lastUpdated" + | "optionSet" + | "translations" + | "formName" + | "id" + | "created" + | "attributeValues" + | "sortOrder" + | "name" + | "style" + >; + $owner: Preset< + D2Option, + | "code" + | "description" + | "lastUpdated" + | "optionSet" + | "translations" + | "formName" + | "id" + | "created" + | "attributeValues" + | "sortOrder" + | "name" + | "style" + >; + }; +} + +export interface D2OptionGroupSchema { + name: "D2OptionGroup"; + model: D2OptionGroup; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + optionSet: D2OptionSetSchema; + options: D2OptionSchema[]; + periodOffset: number; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OptionGroup, + | "code" + | "publicAccess" + | "lastUpdated" + | "optionSet" + | "translations" + | "options" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "userAccesses" + | "name" + | "shortName" + | "user" + >; + $owner: Preset< + D2OptionGroup, + | "code" + | "publicAccess" + | "lastUpdated" + | "optionSet" + | "translations" + | "options" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "userAccesses" + | "name" + | "shortName" + | "user" + >; + }; +} + +export interface D2OptionGroupSetSchema { + name: "D2OptionGroupSet"; + model: D2OptionGroupSet; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + name: string; + optionGroups: D2OptionGroupSchema[]; + optionSet: D2OptionSetSchema; + programStage: D2ProgramStageSchema; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OptionGroupSet, + | "code" + | "publicAccess" + | "description" + | "optionGroups" + | "lastUpdated" + | "optionSet" + | "translations" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "userAccesses" + | "name" + | "dataDimension" + | "user" + >; + $owner: Preset< + D2OptionGroupSet, + | "code" + | "publicAccess" + | "description" + | "optionGroups" + | "lastUpdated" + | "optionSet" + | "translations" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "userAccesses" + | "name" + | "dataDimension" + | "user" + >; + }; +} + +export interface D2OptionSetSchema { + name: "D2OptionSet"; + model: D2OptionSet; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + options: D2OptionSchema[]; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + version: number; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OptionSet, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "attributeValues" + | "version" + | "lastUpdated" + | "translations" + | "userAccesses" + | "valueType" + | "name" + | "options" + | "id" + | "user" + >; + $owner: Preset< + D2OptionSet, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "attributeValues" + | "version" + | "lastUpdated" + | "translations" + | "userAccesses" + | "valueType" + | "name" + | "options" + | "id" + | "user" + >; + }; +} + +export interface D2OrganisationUnitSchema { + name: "D2OrganisationUnit"; + model: D2OrganisationUnit; + fields: { + access: D2Access; + address: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + ancestors: D2OrganisationUnitSchema[]; + attributeValues: D2AttributeValueGenericSchema[]; + children: D2OrganisationUnitSchema[]; + closedDate: string; + code: Id; + comment: string; + contactPerson: string; + created: string; + dataSets: D2DataSetSchema[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + email: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + geometry: D2Geometry; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + leaf: boolean; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + level: number; + memberCount: number; + name: string; + openingDate: string; + organisationUnitGroups: D2OrganisationUnitGroupSchema[]; + parent: D2OrganisationUnitSchema; + path: string; + periodOffset: number; + phoneNumber: string; + programs: D2ProgramSchema[]; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + type: string; + url: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + users: D2UserSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OrganisationUnit, + | "parent" + | "path" + | "lastUpdated" + | "children" + | "translations" + | "id" + | "organisationUnitGroups" + | "lastUpdatedBy" + | "level" + | "created" + | "attributeValues" + | "users" + | "phoneNumber" + | "name" + | "dataSets" + | "programs" + | "shortName" + | "code" + | "description" + | "contactPerson" + | "openingDate" + | "email" + | "address" + | "url" + | "closedDate" + | "geometry" + | "comment" + | "user" + >; + $owner: Preset< + D2OrganisationUnit, + | "parent" + | "path" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "level" + | "created" + | "attributeValues" + | "phoneNumber" + | "name" + | "shortName" + | "code" + | "description" + | "contactPerson" + | "openingDate" + | "email" + | "address" + | "url" + | "closedDate" + | "geometry" + | "comment" + | "user" + >; + }; +} + +export interface D2OrganisationUnitGroupSchema { + name: "D2OrganisationUnitGroup"; + model: D2OrganisationUnitGroup; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + color: string; + created: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + geometry: D2Geometry; + groupSets: D2OrganisationUnitGroupSetSchema[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + organisationUnits: D2OrganisationUnitSchema[]; + periodOffset: number; + publicAccess: string; + shortName: string; + symbol: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OrganisationUnitGroup, + | "symbol" + | "code" + | "color" + | "publicAccess" + | "lastUpdated" + | "translations" + | "id" + | "organisationUnits" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "groupSets" + | "userAccesses" + | "name" + | "geometry" + | "shortName" + | "user" + >; + $owner: Preset< + D2OrganisationUnitGroup, + | "symbol" + | "code" + | "color" + | "publicAccess" + | "lastUpdated" + | "translations" + | "id" + | "organisationUnits" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "userAccesses" + | "name" + | "geometry" + | "shortName" + | "user" + >; + }; +} + +export interface D2OrganisationUnitGroupSetSchema { + name: "D2OrganisationUnitGroupSet"; + model: D2OrganisationUnitGroupSet; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + compulsory: boolean; + created: string; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + includeSubhierarchyInAnalytics: boolean; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + name: string; + organisationUnitGroups: D2OrganisationUnitGroupSchema[]; + programStage: D2ProgramStageSchema; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OrganisationUnitGroupSet, + | "code" + | "publicAccess" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "organisationUnitGroups" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "compulsory" + | "includeSubhierarchyInAnalytics" + | "userAccesses" + | "name" + | "dataDimension" + | "user" + >; + $owner: Preset< + D2OrganisationUnitGroupSet, + | "code" + | "publicAccess" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "organisationUnitGroups" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "compulsory" + | "includeSubhierarchyInAnalytics" + | "userAccesses" + | "name" + | "dataDimension" + | "user" + >; + }; +} + +export interface D2OrganisationUnitGroupSetDimensionSchema { + name: "D2OrganisationUnitGroupSetDimension"; + model: D2OrganisationUnitGroupSetDimension; + fields: { + organisationUnitGroupSet: D2OrganisationUnitGroupSetSchema; + organisationUnitGroups: D2OrganisationUnitGroupSchema[]; + }; + fieldPresets: { + $all: Preset< + D2OrganisationUnitGroupSetDimension, + keyof D2OrganisationUnitGroupSetDimension + >; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OrganisationUnitGroupSetDimension, + "organisationUnitGroupSet" | "organisationUnitGroups" + >; + $owner: Preset< + D2OrganisationUnitGroupSetDimension, + "organisationUnitGroupSet" | "organisationUnitGroups" + >; + }; +} + +export interface D2OrganisationUnitLevelSchema { + name: "D2OrganisationUnitLevel"; + model: D2OrganisationUnitLevel; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + level: number; + name: string; + offlineLevels: number; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OrganisationUnitLevel, + | "lastUpdatedBy" + | "offlineLevels" + | "code" + | "level" + | "created" + | "lastUpdated" + | "translations" + | "name" + | "id" + >; + $owner: Preset< + D2OrganisationUnitLevel, + | "lastUpdatedBy" + | "offlineLevels" + | "code" + | "level" + | "created" + | "lastUpdated" + | "translations" + | "name" + | "id" + >; + }; +} + +export interface D2PredictorSchema { + name: "D2Predictor"; + model: D2Predictor; + fields: { + access: D2Access; + annualSampleCount: number; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + generator: D2ExpressionSchema; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + organisationUnitLevels: D2OrganisationUnitLevelSchema[]; + output: D2DataElementSchema; + outputCombo: D2CategoryOptionComboSchema; + periodType: string; + predictorGroups: D2PredictorGroupSchema[]; + publicAccess: string; + sampleSkipTest: D2ExpressionSchema; + sequentialSampleCount: number; + sequentialSkipCount: number; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Predictor, + | "outputCombo" + | "code" + | "description" + | "generator" + | "organisationUnitLevels" + | "output" + | "lastUpdated" + | "sampleSkipTest" + | "id" + | "sequentialSampleCount" + | "annualSampleCount" + | "lastUpdatedBy" + | "created" + | "sequentialSkipCount" + | "predictorGroups" + | "periodType" + | "name" + >; + $owner: Preset< + D2Predictor, + | "outputCombo" + | "code" + | "description" + | "generator" + | "organisationUnitLevels" + | "output" + | "lastUpdated" + | "sampleSkipTest" + | "id" + | "sequentialSampleCount" + | "annualSampleCount" + | "lastUpdatedBy" + | "created" + | "sequentialSkipCount" + | "periodType" + | "name" + >; + }; +} + +export interface D2PredictorGroupSchema { + name: "D2PredictorGroup"; + model: D2PredictorGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + predictors: D2PredictorSchema[]; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2PredictorGroup, + | "predictors" + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "description" + | "lastUpdated" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + $owner: Preset< + D2PredictorGroup, + | "predictors" + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "description" + | "lastUpdated" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + }; +} + +export interface D2ProgramSchema { + name: "D2Program"; + model: D2Program; + fields: { + access: D2Access; + accessLevel: "OPEN" | "AUDITED" | "PROTECTED" | "CLOSED"; + attributeValues: D2AttributeValueGenericSchema[]; + categoryCombo: D2CategoryComboSchema; + code: Id; + completeEventsExpiryDays: number; + created: string; + dataEntryForm: D2DataEntryFormSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayFrontPageList: boolean; + displayIncidentDate: boolean; + displayName: string; + displayShortName: string; + enrollmentDateLabel: string; + expiryDays: number; + expiryPeriodType: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + href: string; + id: Id; + ignoreOverdueEvents: boolean; + incidentDateLabel: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + maxTeiCountToReturn: number; + minAttributesRequiredToSearch: number; + name: string; + notificationTemplates: D2ProgramNotificationTemplateSchema[]; + onlyEnrollOnce: boolean; + organisationUnits: D2OrganisationUnitSchema[]; + programIndicators: D2ProgramIndicatorSchema[]; + programRuleVariables: D2ProgramRuleVariableSchema[]; + programSections: D2ProgramSectionSchema[]; + programStages: D2ProgramStageSchema[]; + programTrackedEntityAttributes: D2ProgramTrackedEntityAttributeSchema[]; + programType: "WITH_REGISTRATION" | "WITHOUT_REGISTRATION"; + publicAccess: string; + registration: boolean; + relatedProgram: D2ProgramSchema; + selectEnrollmentDatesInFuture: boolean; + selectIncidentDatesInFuture: boolean; + shortName: string; + skipOffline: boolean; + style: D2Style; + trackedEntityType: D2TrackedEntityTypeSchema; + translations: D2Translation[]; + useFirstStageDuringRegistration: boolean; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userRoles: D2UserAuthorityGroupSchema[]; + version: number; + withoutRegistration: boolean; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Program, + | "dataEntryForm" + | "publicAccess" + | "ignoreOverdueEvents" + | "skipOffline" + | "programIndicators" + | "lastUpdated" + | "categoryCombo" + | "translations" + | "id" + | "enrollmentDateLabel" + | "lastUpdatedBy" + | "onlyEnrollOnce" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "version" + | "maxTeiCountToReturn" + | "selectIncidentDatesInFuture" + | "incidentDateLabel" + | "userRoles" + | "expiryPeriodType" + | "userAccesses" + | "name" + | "selectEnrollmentDatesInFuture" + | "style" + | "shortName" + | "useFirstStageDuringRegistration" + | "code" + | "programRuleVariables" + | "programTrackedEntityAttributes" + | "completeEventsExpiryDays" + | "description" + | "relatedProgram" + | "notificationTemplates" + | "formName" + | "featureType" + | "minAttributesRequiredToSearch" + | "displayFrontPageList" + | "organisationUnits" + | "programType" + | "accessLevel" + | "programSections" + | "programStages" + | "trackedEntityType" + | "displayIncidentDate" + | "expiryDays" + | "user" + >; + $owner: Preset< + D2Program, + | "dataEntryForm" + | "publicAccess" + | "ignoreOverdueEvents" + | "skipOffline" + | "lastUpdated" + | "categoryCombo" + | "translations" + | "id" + | "enrollmentDateLabel" + | "lastUpdatedBy" + | "onlyEnrollOnce" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "version" + | "maxTeiCountToReturn" + | "selectIncidentDatesInFuture" + | "incidentDateLabel" + | "expiryPeriodType" + | "userAccesses" + | "name" + | "selectEnrollmentDatesInFuture" + | "style" + | "shortName" + | "useFirstStageDuringRegistration" + | "code" + | "programTrackedEntityAttributes" + | "completeEventsExpiryDays" + | "description" + | "relatedProgram" + | "notificationTemplates" + | "formName" + | "featureType" + | "minAttributesRequiredToSearch" + | "displayFrontPageList" + | "organisationUnits" + | "programType" + | "accessLevel" + | "programSections" + | "programStages" + | "trackedEntityType" + | "displayIncidentDate" + | "expiryDays" + | "user" + >; + }; +} + +export interface D2ProgramDataElementDimensionItemSchema { + name: "D2ProgramDataElementDimensionItem"; + model: D2ProgramDataElementDimensionItem; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + dataElement: D2DataElementSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + program: D2ProgramSchema; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2ProgramIndicatorSchema { + name: "D2ProgramIndicator"; + model: D2ProgramIndicator; + fields: { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + analyticsPeriodBoundaries: D2AnalyticsPeriodBoundarySchema[]; + analyticsType: "EVENT" | "ENROLLMENT"; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + decimals: number; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayInForm: boolean; + displayName: string; + displayShortName: string; + expression: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + program: D2ProgramSchema; + programIndicatorGroups: D2ProgramIndicatorGroupSchema[]; + publicAccess: string; + shortName: string; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramIndicator, + | "aggregationType" + | "code" + | "displayInForm" + | "publicAccess" + | "aggregateExportCategoryOptionCombo" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "programIndicatorGroups" + | "analyticsPeriodBoundaries" + | "lastUpdatedBy" + | "userGroupAccesses" + | "expression" + | "created" + | "attributeValues" + | "filter" + | "userAccesses" + | "decimals" + | "name" + | "analyticsType" + | "legendSets" + | "style" + | "shortName" + | "user" + | "aggregateExportAttributeOptionCombo" + >; + $owner: Preset< + D2ProgramIndicator, + | "aggregationType" + | "code" + | "displayInForm" + | "publicAccess" + | "aggregateExportCategoryOptionCombo" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "analyticsPeriodBoundaries" + | "lastUpdatedBy" + | "userGroupAccesses" + | "expression" + | "created" + | "attributeValues" + | "filter" + | "userAccesses" + | "decimals" + | "name" + | "analyticsType" + | "legendSets" + | "style" + | "shortName" + | "user" + | "aggregateExportAttributeOptionCombo" + >; + }; +} + +export interface D2ProgramIndicatorGroupSchema { + name: "D2ProgramIndicatorGroup"; + model: D2ProgramIndicatorGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + programIndicators: D2ProgramIndicatorSchema[]; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramIndicatorGroup, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "description" + | "programIndicators" + | "lastUpdated" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + $owner: Preset< + D2ProgramIndicatorGroup, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "description" + | "programIndicators" + | "lastUpdated" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + }; +} + +export interface D2ProgramInstanceSchema { + name: "D2ProgramInstance"; + model: D2ProgramInstance; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + completedBy: string; + created: string; + createdAtClient: string; + deleted: boolean; + displayName: string; + endDate: string; + enrollmentDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followup: boolean; + geometry: D2Geometry; + href: string; + id: Id; + incidentDate: string; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2UserSchema; + messageConversations: D2MessageConversationSchema[]; + name: string; + organisationUnit: D2OrganisationUnitSchema; + program: D2ProgramSchema; + programStageInstances: D2ProgramStageInstanceSchema[]; + publicAccess: string; + relationshipItems: any[]; + status: "ACTIVE" | "COMPLETED" | "CANCELLED"; + storedBy: string; + trackedEntityComments: any[]; + trackedEntityInstance: D2TrackedEntityInstanceSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramInstance, + | "storedBy" + | "endDate" + | "organisationUnit" + | "enrollmentDate" + | "createdAtClient" + | "program" + | "messageConversations" + | "trackedEntityComments" + | "lastUpdated" + | "relationshipItems" + | "id" + | "created" + | "programStageInstances" + | "trackedEntityInstance" + | "followup" + | "deleted" + | "geometry" + | "incidentDate" + | "completedBy" + | "status" + | "lastUpdatedAtClient" + >; + $owner: Preset< + D2ProgramInstance, + | "storedBy" + | "endDate" + | "organisationUnit" + | "enrollmentDate" + | "createdAtClient" + | "program" + | "messageConversations" + | "trackedEntityComments" + | "lastUpdated" + | "id" + | "created" + | "trackedEntityInstance" + | "followup" + | "deleted" + | "geometry" + | "incidentDate" + | "completedBy" + | "status" + | "lastUpdatedAtClient" + >; + }; +} + +export interface D2ProgramNotificationTemplateSchema { + name: "D2ProgramNotificationTemplate"; + model: D2ProgramNotificationTemplate; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + deliveryChannels: never[]; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + messageTemplate: string; + name: string; + notificationRecipient: + | "TRACKED_ENTITY_INSTANCE" + | "ORGANISATION_UNIT_CONTACT" + | "USERS_AT_ORGANISATION_UNIT" + | "USER_GROUP" + | "PROGRAM_ATTRIBUTE" + | "DATA_ELEMENT"; + notificationTrigger: + | "ENROLLMENT" + | "COMPLETION" + | "PROGRAM_RULE" + | "SCHEDULED_DAYS_DUE_DATE" + | "SCHEDULED_DAYS_INCIDENT_DATE" + | "SCHEDULED_DAYS_ENROLLMENT_DATE"; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientDataElement: D2DataElementSchema; + recipientProgramAttribute: D2TrackedEntityAttributeSchema; + recipientUserGroup: D2UserGroupSchema; + relativeScheduledDays: number; + subjectTemplate: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramNotificationTemplate, + | "code" + | "notificationTrigger" + | "lastUpdated" + | "translations" + | "relativeScheduledDays" + | "id" + | "subjectTemplate" + | "lastUpdatedBy" + | "deliveryChannels" + | "recipientDataElement" + | "created" + | "notifyUsersInHierarchyOnly" + | "notificationRecipient" + | "recipientProgramAttribute" + | "notifyParentOrganisationUnitOnly" + | "name" + | "recipientUserGroup" + | "messageTemplate" + >; + $owner: Preset< + D2ProgramNotificationTemplate, + | "code" + | "notificationTrigger" + | "lastUpdated" + | "translations" + | "relativeScheduledDays" + | "id" + | "subjectTemplate" + | "lastUpdatedBy" + | "deliveryChannels" + | "recipientDataElement" + | "created" + | "notifyUsersInHierarchyOnly" + | "notificationRecipient" + | "recipientProgramAttribute" + | "notifyParentOrganisationUnitOnly" + | "name" + | "recipientUserGroup" + | "messageTemplate" + >; + }; +} + +export interface D2ProgramRuleSchema { + name: "D2ProgramRule"; + model: D2ProgramRule; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + condition: string; + created: string; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + priority: number; + program: D2ProgramSchema; + programRuleActions: D2ProgramRuleActionSchema[]; + programStage: D2ProgramStageSchema; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramRule, + | "code" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "created" + | "priority" + | "condition" + | "programRuleActions" + | "name" + >; + $owner: Preset< + D2ProgramRule, + | "code" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "created" + | "priority" + | "condition" + | "programRuleActions" + | "name" + >; + }; +} + +export interface D2ProgramRuleActionSchema { + name: "D2ProgramRuleAction"; + model: D2ProgramRuleAction; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + content: string; + created: string; + data: string; + dataElement: D2DataElementSchema; + displayContent: string; + displayName: string; + evaluationEnvironments: never[]; + evaluationTime: "ON_DATA_ENTRY" | "ON_COMPLETE" | "ALWAYS"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + location: string; + name: string; + option: D2OptionSchema; + optionGroup: D2OptionGroupSchema; + programIndicator: D2ProgramIndicatorSchema; + programRule: D2ProgramRuleSchema; + programRuleActionType: + | "DISPLAYTEXT" + | "DISPLAYKEYVALUEPAIR" + | "HIDEFIELD" + | "HIDESECTION" + | "HIDEPROGRAMSTAGE" + | "ASSIGN" + | "SHOWWARNING" + | "WARNINGONCOMPLETE" + | "SHOWERROR" + | "ERRORONCOMPLETE" + | "CREATEEVENT" + | "SETMANDATORYFIELD" + | "SENDMESSAGE" + | "SCHEDULEMESSAGE" + | "HIDEOPTION" + | "SHOWOPTIONGROUP" + | "HIDEOPTIONGROUP"; + programStage: D2ProgramStageSchema; + programStageSection: D2ProgramStageSectionSchema; + publicAccess: string; + templateUid: string; + trackedEntityAttribute: D2TrackedEntityAttributeSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramRuleAction, + | "evaluationEnvironments" + | "code" + | "data" + | "optionGroup" + | "templateUid" + | "content" + | "trackedEntityAttribute" + | "lastUpdated" + | "translations" + | "programIndicator" + | "id" + | "programRule" + | "programStageSection" + | "programRuleActionType" + | "lastUpdatedBy" + | "programStage" + | "created" + | "dataElement" + | "evaluationTime" + | "location" + | "option" + >; + $owner: Preset< + D2ProgramRuleAction, + | "evaluationEnvironments" + | "code" + | "data" + | "optionGroup" + | "templateUid" + | "content" + | "trackedEntityAttribute" + | "lastUpdated" + | "translations" + | "programIndicator" + | "id" + | "programRule" + | "programStageSection" + | "programRuleActionType" + | "lastUpdatedBy" + | "programStage" + | "created" + | "dataElement" + | "evaluationTime" + | "location" + | "option" + >; + }; +} + +export interface D2ProgramRuleVariableSchema { + name: "D2ProgramRuleVariable"; + model: D2ProgramRuleVariable; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + dataElement: D2DataElementSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + program: D2ProgramSchema; + programRuleVariableSourceType: + | "DATAELEMENT_NEWEST_EVENT_PROGRAM_STAGE" + | "DATAELEMENT_NEWEST_EVENT_PROGRAM" + | "DATAELEMENT_CURRENT_EVENT" + | "DATAELEMENT_PREVIOUS_EVENT" + | "CALCULATED_VALUE" + | "TEI_ATTRIBUTE"; + programStage: D2ProgramStageSchema; + publicAccess: string; + trackedEntityAttribute: D2TrackedEntityAttributeSchema; + translations: D2Translation[]; + useCodeForOptionSet: boolean; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramRuleVariable, + | "code" + | "programRuleVariableSourceType" + | "program" + | "trackedEntityAttribute" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "programStage" + | "created" + | "useCodeForOptionSet" + | "dataElement" + | "name" + >; + $owner: Preset< + D2ProgramRuleVariable, + | "code" + | "programRuleVariableSourceType" + | "program" + | "trackedEntityAttribute" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "programStage" + | "created" + | "useCodeForOptionSet" + | "dataElement" + | "name" + >; + }; +} + +export interface D2ProgramSectionSchema { + name: "D2ProgramSection"; + model: D2ProgramSection; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + program: D2ProgramSchema; + publicAccess: string; + renderType: any; + shortName: string; + sortOrder: number; + style: D2Style; + trackedEntityAttributes: D2TrackedEntityAttributeSchema[]; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramSection, + | "code" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "renderType" + | "lastUpdatedBy" + | "created" + | "sortOrder" + | "name" + | "trackedEntityAttributes" + | "style" + >; + $owner: Preset< + D2ProgramSection, + | "code" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "renderType" + | "lastUpdatedBy" + | "created" + | "sortOrder" + | "name" + | "trackedEntityAttributes" + | "style" + >; + }; +} + +export interface D2ProgramStageSchema { + name: "D2ProgramStage"; + model: D2ProgramStage; + fields: { + access: D2Access; + allowGenerateNextVisit: boolean; + attributeValues: D2AttributeValueGenericSchema[]; + autoGenerateEvent: boolean; + blockEntryForm: boolean; + code: Id; + created: string; + dataEntryForm: D2DataEntryFormSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayGenerateEventBox: boolean; + displayName: string; + displayShortName: string; + dueDateLabel: string; + enableUserAssignment: boolean; + executionDateLabel: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + formType: "DEFAULT" | "CUSTOM" | "SECTION" | "SECTION_MULTIORG"; + generatedByEnrollmentDate: boolean; + hideDueDate: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + minDaysFromStart: number; + name: string; + nextScheduleDate: D2DataElementSchema; + notificationTemplates: D2ProgramNotificationTemplateSchema[]; + openAfterEnrollment: boolean; + periodType: string; + preGenerateUID: boolean; + program: D2ProgramSchema; + programStageDataElements: D2ProgramStageDataElementSchema[]; + programStageSections: D2ProgramStageSectionSchema[]; + publicAccess: string; + remindCompleted: boolean; + repeatable: boolean; + reportDateToUse: string; + shortName: string; + sortOrder: number; + standardInterval: number; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + validationStrategy: "ON_COMPLETE" | "ON_UPDATE_AND_INSERT"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramStage, + | "dataEntryForm" + | "allowGenerateNextVisit" + | "publicAccess" + | "reportDateToUse" + | "program" + | "lastUpdated" + | "programStageDataElements" + | "translations" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "generatedByEnrollmentDate" + | "created" + | "attributeValues" + | "sortOrder" + | "userAccesses" + | "name" + | "hideDueDate" + | "enableUserAssignment" + | "style" + | "minDaysFromStart" + | "standardInterval" + | "dueDateLabel" + | "executionDateLabel" + | "code" + | "preGenerateUID" + | "description" + | "notificationTemplates" + | "openAfterEnrollment" + | "repeatable" + | "formName" + | "featureType" + | "remindCompleted" + | "displayGenerateEventBox" + | "nextScheduleDate" + | "validationStrategy" + | "autoGenerateEvent" + | "periodType" + | "blockEntryForm" + | "user" + | "programStageSections" + >; + $owner: Preset< + D2ProgramStage, + | "dataEntryForm" + | "allowGenerateNextVisit" + | "publicAccess" + | "reportDateToUse" + | "program" + | "lastUpdated" + | "programStageDataElements" + | "translations" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "generatedByEnrollmentDate" + | "created" + | "attributeValues" + | "sortOrder" + | "userAccesses" + | "name" + | "hideDueDate" + | "enableUserAssignment" + | "style" + | "minDaysFromStart" + | "standardInterval" + | "dueDateLabel" + | "executionDateLabel" + | "code" + | "preGenerateUID" + | "description" + | "notificationTemplates" + | "openAfterEnrollment" + | "repeatable" + | "formName" + | "featureType" + | "remindCompleted" + | "displayGenerateEventBox" + | "nextScheduleDate" + | "validationStrategy" + | "autoGenerateEvent" + | "periodType" + | "blockEntryForm" + | "user" + | "programStageSections" + >; + }; +} + +export interface D2ProgramStageDataElementSchema { + name: "D2ProgramStageDataElement"; + model: D2ProgramStageDataElement; + fields: { + access: D2Access; + allowFutureDate: boolean; + allowProvidedElsewhere: boolean; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + compulsory: boolean; + created: string; + dataElement: D2DataElementSchema; + displayInReports: boolean; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + programStage: D2ProgramStageSchema; + publicAccess: string; + renderOptionsAsRadio: boolean; + renderType: any; + skipSynchronization: boolean; + sortOrder: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramStageDataElement, + | "displayInReports" + | "code" + | "skipSynchronization" + | "lastUpdated" + | "renderOptionsAsRadio" + | "id" + | "allowFutureDate" + | "renderType" + | "lastUpdatedBy" + | "programStage" + | "created" + | "dataElement" + | "compulsory" + | "allowProvidedElsewhere" + | "sortOrder" + >; + $owner: Preset< + D2ProgramStageDataElement, + | "displayInReports" + | "code" + | "skipSynchronization" + | "lastUpdated" + | "renderOptionsAsRadio" + | "id" + | "allowFutureDate" + | "renderType" + | "lastUpdatedBy" + | "programStage" + | "created" + | "dataElement" + | "compulsory" + | "allowProvidedElsewhere" + | "sortOrder" + >; + }; +} + +export interface D2ProgramStageInstanceSchema { + name: "D2ProgramStageInstance"; + model: D2ProgramStageInstance; + fields: { + access: D2Access; + assignedUser: D2UserSchema; + attributeOptionCombo: D2CategoryOptionComboSchema; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + comments: any[]; + completed: boolean; + completedBy: string; + completedDate: string; + creatableInSearchScope: boolean; + created: string; + createdAtClient: string; + createdByUserInfo: any; + deleted: boolean; + displayName: string; + dueDate: string; + eventDataValues: any[]; + eventDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + geometry: D2Geometry; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2UserSchema; + lastUpdatedByUserInfo: any; + messageConversations: D2MessageConversationSchema[]; + name: string; + organisationUnit: D2OrganisationUnitSchema; + programInstance: D2ProgramInstanceSchema; + programStage: D2ProgramStageSchema; + publicAccess: string; + relationshipItems: any[]; + status: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + storedBy: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramStageInstance, + | "code" + | "storedBy" + | "organisationUnit" + | "dueDate" + | "createdAtClient" + | "messageConversations" + | "lastUpdatedByUserInfo" + | "lastUpdated" + | "eventDataValues" + | "relationshipItems" + | "id" + | "createdByUserInfo" + | "assignedUser" + | "programStage" + | "comments" + | "created" + | "completedDate" + | "programInstance" + | "deleted" + | "attributeOptionCombo" + | "geometry" + | "completedBy" + | "status" + | "lastUpdatedAtClient" + | "eventDate" + >; + $owner: Preset< + D2ProgramStageInstance, + | "code" + | "storedBy" + | "organisationUnit" + | "dueDate" + | "createdAtClient" + | "messageConversations" + | "lastUpdatedByUserInfo" + | "lastUpdated" + | "eventDataValues" + | "id" + | "createdByUserInfo" + | "assignedUser" + | "programStage" + | "comments" + | "created" + | "completedDate" + | "programInstance" + | "deleted" + | "attributeOptionCombo" + | "geometry" + | "completedBy" + | "status" + | "lastUpdatedAtClient" + | "eventDate" + >; + }; +} + +export interface D2ProgramStageInstanceFilterSchema { + name: "D2ProgramStageInstanceFilter"; + model: D2ProgramStageInstanceFilter; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + description: string; + displayDescription: string; + displayName: string; + eventQueryCriteria: any; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + program: Id; + programStage: Id; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramStageInstanceFilter, + | "eventQueryCriteria" + | "publicAccess" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "userGroupAccesses" + | "created" + | "userAccesses" + | "name" + | "user" + >; + $owner: Preset< + D2ProgramStageInstanceFilter, + | "eventQueryCriteria" + | "publicAccess" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "userGroupAccesses" + | "created" + | "userAccesses" + | "name" + | "user" + >; + }; +} + +export interface D2ProgramStageSectionSchema { + name: "D2ProgramStageSection"; + model: D2ProgramStageSection; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + dataElements: D2DataElementSchema[]; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + programIndicators: D2ProgramIndicatorSchema[]; + programStage: D2ProgramStageSchema; + publicAccess: string; + renderType: any; + shortName: string; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramStageSection, + | "code" + | "description" + | "programIndicators" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "renderType" + | "dataElements" + | "lastUpdatedBy" + | "programStage" + | "created" + | "sortOrder" + | "name" + | "style" + >; + $owner: Preset< + D2ProgramStageSection, + | "code" + | "description" + | "programIndicators" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "renderType" + | "dataElements" + | "lastUpdatedBy" + | "programStage" + | "created" + | "sortOrder" + | "name" + | "style" + >; + }; +} + +export interface D2ProgramTrackedEntityAttributeSchema { + name: "D2ProgramTrackedEntityAttribute"; + model: D2ProgramTrackedEntityAttribute; + fields: { + access: D2Access; + allowFutureDate: boolean; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + displayInList: boolean; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + mandatory: boolean; + name: string; + program: D2ProgramSchema; + programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroupSchema[]; + publicAccess: string; + renderOptionsAsRadio: boolean; + renderType: any; + searchable: boolean; + sortOrder: number; + trackedEntityAttribute: D2TrackedEntityAttributeSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramTrackedEntityAttribute, + | "code" + | "programTrackedEntityAttributeGroups" + | "program" + | "mandatory" + | "trackedEntityAttribute" + | "lastUpdated" + | "renderOptionsAsRadio" + | "id" + | "allowFutureDate" + | "renderType" + | "lastUpdatedBy" + | "created" + | "searchable" + | "displayInList" + | "sortOrder" + >; + $owner: Preset< + D2ProgramTrackedEntityAttribute, + | "code" + | "programTrackedEntityAttributeGroups" + | "program" + | "mandatory" + | "trackedEntityAttribute" + | "lastUpdated" + | "renderOptionsAsRadio" + | "id" + | "allowFutureDate" + | "renderType" + | "lastUpdatedBy" + | "created" + | "searchable" + | "displayInList" + | "sortOrder" + >; + }; +} + +export interface D2ProgramTrackedEntityAttributeDimensionItemSchema { + name: "D2ProgramTrackedEntityAttributeDimensionItem"; + model: D2ProgramTrackedEntityAttributeDimensionItem; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attribute: D2TrackedEntityAttributeSchema; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + program: D2ProgramSchema; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset< + D2ProgramTrackedEntityAttributeDimensionItem, + keyof D2ProgramTrackedEntityAttributeDimensionItem + >; + $identifiable: Preset< + D2ProgramTrackedEntityAttributeDimensionItem, + FieldPresets["identifiable"] + >; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2ProgramTrackedEntityAttributeGroupSchema { + name: "D2ProgramTrackedEntityAttributeGroup"; + model: D2ProgramTrackedEntityAttributeGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + attributes: D2ProgramTrackedEntityAttributeSchema[]; + code: Id; + created: string; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + uniqunessType: "NONE" | "STRICT" | "VALIDATION"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset< + D2ProgramTrackedEntityAttributeGroup, + keyof D2ProgramTrackedEntityAttributeGroup + >; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramTrackedEntityAttributeGroup, + | "code" + | "uniqunessType" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "name" + | "attributes" + | "shortName" + >; + $owner: Preset< + D2ProgramTrackedEntityAttributeGroup, + | "code" + | "uniqunessType" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "name" + | "shortName" + >; + }; +} + +export interface D2PushAnalysisSchema { + name: "D2PushAnalysis"; + model: D2PushAnalysis; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + dashboard: D2DashboardSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + message: string; + name: string; + publicAccess: string; + recipientUserGroups: D2UserGroupSchema[]; + title: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2PushAnalysis, + | "lastUpdatedBy" + | "code" + | "created" + | "recipientUserGroups" + | "message" + | "title" + | "lastUpdated" + | "name" + | "id" + | "dashboard" + >; + $owner: Preset< + D2PushAnalysis, + | "lastUpdatedBy" + | "code" + | "created" + | "recipientUserGroups" + | "message" + | "title" + | "lastUpdated" + | "name" + | "id" + | "dashboard" + >; + }; +} + +export interface D2RelationshipSchema { + name: "D2Relationship"; + model: D2Relationship; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + from: any; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + relationshipType: D2RelationshipTypeSchema; + shortName: string; + style: D2Style; + to: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Relationship, + | "code" + | "description" + | "lastUpdated" + | "formName" + | "from" + | "id" + | "lastUpdatedBy" + | "relationshipType" + | "created" + | "style" + | "to" + >; + $owner: Preset< + D2Relationship, + | "code" + | "description" + | "lastUpdated" + | "formName" + | "from" + | "id" + | "lastUpdatedBy" + | "relationshipType" + | "created" + | "style" + | "to" + >; + }; +} + +export interface D2RelationshipTypeSchema { + name: "D2RelationshipType"; + model: D2RelationshipType; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + bidirectional: boolean; + code: Id; + created: string; + description: string; + displayFromToName: string; + displayName: string; + displayToFromName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fromConstraint: D2RelationshipConstraint; + fromToName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + toConstraint: D2RelationshipConstraint; + toFromName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2RelationshipType, + | "bidirectional" + | "code" + | "publicAccess" + | "description" + | "fromToName" + | "lastUpdated" + | "translations" + | "toConstraint" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "toFromName" + | "fromConstraint" + | "userAccesses" + | "name" + | "user" + >; + $owner: Preset< + D2RelationshipType, + | "bidirectional" + | "code" + | "publicAccess" + | "description" + | "fromToName" + | "lastUpdated" + | "translations" + | "toConstraint" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "toFromName" + | "fromConstraint" + | "userAccesses" + | "name" + | "user" + >; + }; +} + +export interface D2ReportSchema { + name: "D2Report"; + model: D2Report; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + cacheStrategy: + | "NO_CACHE" + | "CACHE_1_MINUTE" + | "CACHE_5_MINUTES" + | "CACHE_10_MINUTES" + | "CACHE_15_MINUTES" + | "CACHE_30_MINUTES" + | "CACHE_1_HOUR" + | "CACHE_6AM_TOMORROW" + | "CACHE_TWO_WEEKS" + | "RESPECT_SYSTEM_SETTING"; + code: Id; + created: string; + designContent: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + relativePeriods: any; + reportParams: D2ReportingParams; + translations: D2Translation[]; + type: "JASPER_REPORT_TABLE" | "JASPER_JDBC" | "HTML"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + visualization: D2VisualizationSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Report, + | "designContent" + | "visualization" + | "code" + | "publicAccess" + | "type" + | "externalAccess" + | "lastUpdated" + | "relativePeriods" + | "reportParams" + | "translations" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "userAccesses" + | "name" + | "cacheStrategy" + | "user" + >; + $owner: Preset< + D2Report, + | "designContent" + | "visualization" + | "code" + | "publicAccess" + | "type" + | "externalAccess" + | "lastUpdated" + | "relativePeriods" + | "reportParams" + | "translations" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "userAccesses" + | "name" + | "cacheStrategy" + | "user" + >; + }; +} + +export interface D2ReportTableSchema { + name: "D2ReportTable"; + model: D2ReportTable; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValues: D2AttributeValueGenericSchema[]; + categoryDimensions: D2CategoryDimensionSchema[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; + code: Id; + colSubTotals: boolean; + colTotals: boolean; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + cumulative: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + displaySubtitle: string; + displayTitle: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + fontSize: "LARGE" | "NORMAL" | "SMALL"; + formName: string; + hideEmptyColumns: boolean; + hideEmptyRows: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendDisplayStyle: "FILL" | "TEXT"; + legendSet: D2LegendSetSchema; + measureCriteria: string; + name: string; + numberType: "VALUE" | "ROW_PERCENTAGE" | "COLUMN_PERCENTAGE"; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnitSchema[]; + parentGraphMap: D2MapSchema; + periods: any[]; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; + publicAccess: string; + regression: boolean; + relativePeriods: any; + reportParams: any; + rowDimensions: string[]; + rowSubTotals: boolean; + rowTotals: boolean; + rows: any[]; + shortName: string; + showDimensionLabels: boolean; + showHierarchy: boolean; + skipRounding: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2ReportingRateSchema { + name: "D2ReportingRate"; + model: D2ReportingRate; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + dataSet: D2DataSetSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + metric: + | "REPORTING_RATE" + | "REPORTING_RATE_ON_TIME" + | "ACTUAL_REPORTS" + | "ACTUAL_REPORTS_ON_TIME" + | "EXPECTED_REPORTS"; + name: string; + periodOffset: number; + publicAccess: string; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2SMSCommandSchema { + name: "D2SMSCommand"; + model: D2SMSCommand; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + codeValueSeparator: string; + completenessMethod: "ALL_DATAVALUE" | "AT_LEAST_ONE_DATAVALUE" | "DO_NOT_MARK_COMPLETE"; + created: string; + currentPeriodUsedForReporting: boolean; + dataset: D2DataSetSchema; + defaultMessage: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + moreThanOneOrgUnitMessage: string; + name: string; + noUserMessage: string; + parserType: + | "KEY_VALUE_PARSER" + | "J2ME_PARSER" + | "ALERT_PARSER" + | "UNREGISTERED_PARSER" + | "TRACKED_ENTITY_REGISTRATION_PARSER" + | "PROGRAM_STAGE_DATAENTRY_PARSER" + | "EVENT_REGISTRATION_PARSER"; + program: D2ProgramSchema; + programStage: D2ProgramStageSchema; + publicAccess: string; + receivedMessage: string; + separator: string; + smsCodes: any[]; + specialCharacters: any[]; + successMessage: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroup: D2UserGroupSchema; + userGroupAccesses: D2UserGroupAccessSchema[]; + wrongFormatMessage: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2SMSCommand, + | "moreThanOneOrgUnitMessage" + | "smsCodes" + | "specialCharacters" + | "currentPeriodUsedForReporting" + | "program" + | "noUserMessage" + | "lastUpdated" + | "receivedMessage" + | "defaultMessage" + | "id" + | "userGroup" + | "programStage" + | "completenessMethod" + | "created" + | "wrongFormatMessage" + | "separator" + | "successMessage" + | "codeValueSeparator" + | "parserType" + | "name" + | "dataset" + >; + $owner: Preset< + D2SMSCommand, + | "moreThanOneOrgUnitMessage" + | "smsCodes" + | "specialCharacters" + | "currentPeriodUsedForReporting" + | "program" + | "noUserMessage" + | "lastUpdated" + | "receivedMessage" + | "defaultMessage" + | "id" + | "userGroup" + | "programStage" + | "completenessMethod" + | "created" + | "wrongFormatMessage" + | "separator" + | "successMessage" + | "codeValueSeparator" + | "parserType" + | "name" + | "dataset" + >; + }; +} + +export interface D2SectionSchema { + name: "D2Section"; + model: D2Section; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + categoryCombos: D2CategoryComboSchema[]; + code: Id; + created: string; + dataElements: D2DataElementSchema[]; + dataSet: D2DataSetSchema; + description: string; + disableDataElementAutoGroup: boolean; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + greyedFields: D2DataElementOperandSchema[]; + href: string; + id: Id; + indicators: D2IndicatorSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + showColumnTotals: boolean; + showRowTotals: boolean; + sortOrder: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Section, + | "code" + | "greyedFields" + | "description" + | "disableDataElementAutoGroup" + | "lastUpdated" + | "translations" + | "id" + | "dataSet" + | "dataElements" + | "showColumnTotals" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "indicators" + | "sortOrder" + | "name" + | "showRowTotals" + >; + $owner: Preset< + D2Section, + | "code" + | "greyedFields" + | "description" + | "disableDataElementAutoGroup" + | "lastUpdated" + | "translations" + | "id" + | "dataSet" + | "dataElements" + | "showColumnTotals" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "indicators" + | "sortOrder" + | "name" + | "showRowTotals" + >; + }; +} + +export interface D2SqlViewSchema { + name: "D2SqlView"; + model: D2SqlView; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + cacheStrategy: + | "NO_CACHE" + | "CACHE_1_MINUTE" + | "CACHE_5_MINUTES" + | "CACHE_10_MINUTES" + | "CACHE_15_MINUTES" + | "CACHE_30_MINUTES" + | "CACHE_1_HOUR" + | "CACHE_6AM_TOMORROW" + | "CACHE_TWO_WEEKS" + | "RESPECT_SYSTEM_SETTING"; + code: Id; + created: string; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sqlQuery: string; + translations: D2Translation[]; + type: "VIEW" | "MATERIALIZED_VIEW" | "QUERY"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2SqlView, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "sqlQuery" + | "created" + | "publicAccess" + | "attributeValues" + | "description" + | "type" + | "externalAccess" + | "lastUpdated" + | "userAccesses" + | "name" + | "cacheStrategy" + | "id" + | "user" + >; + $owner: Preset< + D2SqlView, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "sqlQuery" + | "created" + | "publicAccess" + | "attributeValues" + | "description" + | "type" + | "externalAccess" + | "lastUpdated" + | "userAccesses" + | "name" + | "cacheStrategy" + | "id" + | "user" + >; + }; +} + +export interface D2TrackedEntityAttributeSchema { + name: "D2TrackedEntityAttribute"; + model: D2TrackedEntityAttribute; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + confidential: boolean; + created: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayInListNoProgram: boolean; + displayName: string; + displayOnVisitSchedule: boolean; + displayShortName: string; + expression: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldMask: string; + formName: string; + generated: boolean; + href: string; + id: Id; + inherit: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + optionSet: D2OptionSetSchema; + optionSetValue: boolean; + orgunitScope: boolean; + pattern: string; + periodOffset: number; + publicAccess: string; + shortName: string; + skipSynchronization: boolean; + sortOrderInListNoProgram: number; + sortOrderInVisitSchedule: number; + style: D2Style; + translations: D2Translation[]; + unique: boolean; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityAttribute, + | "publicAccess" + | "lastUpdated" + | "generated" + | "translations" + | "valueType" + | "id" + | "confidential" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "unique" + | "userAccesses" + | "name" + | "legendSets" + | "style" + | "shortName" + | "aggregationType" + | "code" + | "displayInListNoProgram" + | "pattern" + | "description" + | "skipSynchronization" + | "sortOrderInListNoProgram" + | "optionSet" + | "displayOnVisitSchedule" + | "formName" + | "sortOrderInVisitSchedule" + | "orgunitScope" + | "fieldMask" + | "expression" + | "inherit" + | "user" + >; + $owner: Preset< + D2TrackedEntityAttribute, + | "publicAccess" + | "lastUpdated" + | "generated" + | "translations" + | "valueType" + | "id" + | "confidential" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "unique" + | "userAccesses" + | "name" + | "legendSets" + | "style" + | "shortName" + | "aggregationType" + | "code" + | "displayInListNoProgram" + | "pattern" + | "description" + | "skipSynchronization" + | "sortOrderInListNoProgram" + | "optionSet" + | "displayOnVisitSchedule" + | "formName" + | "sortOrderInVisitSchedule" + | "orgunitScope" + | "fieldMask" + | "expression" + | "inherit" + | "user" + >; + }; +} + +export interface D2TrackedEntityAttributeValueSchema { + name: "D2TrackedEntityAttributeValue"; + model: D2TrackedEntityAttributeValue; + fields: { + created: string; + lastUpdated: string; + storedBy: string; + trackedEntityAttribute: D2TrackedEntityAttributeSchema; + trackedEntityInstance: D2TrackedEntityInstanceSchema; + value: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2TrackedEntityDataElementDimensionSchema { + name: "D2TrackedEntityDataElementDimension"; + model: D2TrackedEntityDataElementDimension; + fields: { + dataElement: D2DataElementSchema; + filter: string; + legendSet: D2LegendSetSchema; + programStage: D2ProgramStageSchema; + }; + fieldPresets: { + $all: Preset< + D2TrackedEntityDataElementDimension, + keyof D2TrackedEntityDataElementDimension + >; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityDataElementDimension, + "filter" | "legendSet" | "programStage" | "dataElement" + >; + $owner: Preset< + D2TrackedEntityDataElementDimension, + "filter" | "legendSet" | "programStage" | "dataElement" + >; + }; +} + +export interface D2TrackedEntityInstanceSchema { + name: "D2TrackedEntityInstance"; + model: D2TrackedEntityInstance; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + createdAtClient: string; + deleted: boolean; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + geometry: D2Geometry; + href: string; + id: Id; + inactive: boolean; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2UserSchema; + name: string; + organisationUnit: D2OrganisationUnitSchema; + programInstances: D2ProgramInstanceSchema[]; + programOwners: any[]; + publicAccess: string; + relationshipItems: any[]; + storedBy: string; + trackedEntityAttributeValues: D2TrackedEntityAttributeValueSchema[]; + trackedEntityType: D2TrackedEntityTypeSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityInstance, + | "programOwners" + | "code" + | "storedBy" + | "programInstances" + | "organisationUnit" + | "createdAtClient" + | "lastUpdated" + | "inactive" + | "relationshipItems" + | "id" + | "lastUpdatedBy" + | "created" + | "deleted" + | "trackedEntityType" + | "geometry" + | "trackedEntityAttributeValues" + | "lastUpdatedAtClient" + >; + $owner: Preset< + D2TrackedEntityInstance, + | "code" + | "storedBy" + | "organisationUnit" + | "createdAtClient" + | "lastUpdated" + | "inactive" + | "id" + | "lastUpdatedBy" + | "created" + | "deleted" + | "trackedEntityType" + | "geometry" + | "lastUpdatedAtClient" + >; + }; +} + +export interface D2TrackedEntityInstanceFilterSchema { + name: "D2TrackedEntityInstanceFilter"; + model: D2TrackedEntityInstanceFilter; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + description: string; + displayDescription: string; + displayName: string; + enrollmentCreatedPeriod: any; + enrollmentStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + eventFilters: any[]; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followup: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + program: D2ProgramSchema; + publicAccess: string; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityInstanceFilter, + | "code" + | "description" + | "program" + | "enrollmentCreatedPeriod" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "followup" + | "eventFilters" + | "enrollmentStatus" + | "sortOrder" + | "name" + | "style" + >; + $owner: Preset< + D2TrackedEntityInstanceFilter, + | "code" + | "description" + | "program" + | "enrollmentCreatedPeriod" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "followup" + | "eventFilters" + | "enrollmentStatus" + | "sortOrder" + | "name" + | "style" + >; + }; +} + +export interface D2TrackedEntityProgramIndicatorDimensionSchema { + name: "D2TrackedEntityProgramIndicatorDimension"; + model: D2TrackedEntityProgramIndicatorDimension; + fields: { + filter: string; + legendSet: D2LegendSetSchema; + programIndicator: D2ProgramIndicatorSchema; + }; + fieldPresets: { + $all: Preset< + D2TrackedEntityProgramIndicatorDimension, + keyof D2TrackedEntityProgramIndicatorDimension + >; + $identifiable: Preset< + D2TrackedEntityProgramIndicatorDimension, + FieldPresets["identifiable"] + >; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityProgramIndicatorDimension, + "filter" | "legendSet" | "programIndicator" + >; + $owner: Preset< + D2TrackedEntityProgramIndicatorDimension, + "filter" | "legendSet" | "programIndicator" + >; + }; +} + +export interface D2TrackedEntityTypeSchema { + name: "D2TrackedEntityType"; + model: D2TrackedEntityType; + fields: { + access: D2Access; + allowAuditLog: boolean; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + maxTeiCountToReturn: number; + minAttributesRequiredToSearch: number; + name: string; + publicAccess: string; + shortName: string; + style: D2Style; + trackedEntityTypeAttributes: D2TrackedEntityTypeAttributeSchema[]; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityType, + | "code" + | "publicAccess" + | "trackedEntityTypeAttributes" + | "description" + | "lastUpdated" + | "allowAuditLog" + | "translations" + | "formName" + | "featureType" + | "minAttributesRequiredToSearch" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "maxTeiCountToReturn" + | "userAccesses" + | "name" + | "style" + | "user" + >; + $owner: Preset< + D2TrackedEntityType, + | "code" + | "publicAccess" + | "trackedEntityTypeAttributes" + | "description" + | "lastUpdated" + | "allowAuditLog" + | "translations" + | "formName" + | "featureType" + | "minAttributesRequiredToSearch" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "maxTeiCountToReturn" + | "userAccesses" + | "name" + | "style" + | "user" + >; + }; +} + +export interface D2TrackedEntityTypeAttributeSchema { + name: "D2TrackedEntityTypeAttribute"; + model: D2TrackedEntityTypeAttribute; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + displayInList: boolean; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + mandatory: boolean; + name: string; + publicAccess: string; + searchable: boolean; + trackedEntityAttribute: D2TrackedEntityAttributeSchema; + trackedEntityType: D2TrackedEntityTypeSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityTypeAttribute, + | "code" + | "mandatory" + | "trackedEntityAttribute" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "created" + | "searchable" + | "displayInList" + | "trackedEntityType" + >; + $owner: Preset< + D2TrackedEntityTypeAttribute, + | "code" + | "mandatory" + | "trackedEntityAttribute" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "created" + | "searchable" + | "displayInList" + | "trackedEntityType" + >; + }; +} + +export interface D2UserSchema { + name: "D2User"; + model: D2User; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + avatar: D2FileResourceSchema; + birthday: string; + code: Id; + created: string; + dataViewOrganisationUnits: D2OrganisationUnitSchema[]; + displayName: string; + education: string; + email: string; + employer: string; + externalAccess: boolean; + facebookMessenger: string; + favorite: boolean; + favorites: string[]; + firstName: string; + gender: string; + href: string; + id: Id; + interests: string; + introduction: string; + jobTitle: string; + languages: string; + lastCheckedInterpretations: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + nationality: string; + organisationUnits: D2OrganisationUnitSchema[]; + phoneNumber: string; + publicAccess: string; + skype: string; + surname: string; + teiSearchOrganisationUnits: D2OrganisationUnitSchema[]; + telegram: string; + translations: D2Translation[]; + twitter: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userCredentials: D2UserCredentialsSchema; + userGroupAccesses: D2UserGroupAccessSchema[]; + userGroups: D2UserGroupSchema[]; + welcomeMessage: string; + whatsApp: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2User, + | "birthday" + | "code" + | "education" + | "gender" + | "jobTitle" + | "skype" + | "lastUpdated" + | "teiSearchOrganisationUnits" + | "twitter" + | "surname" + | "employer" + | "id" + | "organisationUnits" + | "facebookMessenger" + | "introduction" + | "email" + | "dataViewOrganisationUnits" + | "whatsApp" + | "languages" + | "created" + | "welcomeMessage" + | "userCredentials" + | "attributeValues" + | "telegram" + | "avatar" + | "lastCheckedInterpretations" + | "userGroups" + | "firstName" + | "phoneNumber" + | "nationality" + | "interests" + >; + $owner: Preset< + D2User, + | "birthday" + | "code" + | "education" + | "gender" + | "jobTitle" + | "skype" + | "lastUpdated" + | "teiSearchOrganisationUnits" + | "twitter" + | "surname" + | "employer" + | "id" + | "organisationUnits" + | "facebookMessenger" + | "introduction" + | "email" + | "dataViewOrganisationUnits" + | "whatsApp" + | "languages" + | "created" + | "welcomeMessage" + | "userCredentials" + | "attributeValues" + | "telegram" + | "avatar" + | "lastCheckedInterpretations" + | "firstName" + | "phoneNumber" + | "nationality" + | "interests" + >; + }; +} + +export interface D2UserAccessSchema { + name: "D2UserAccess"; + model: D2UserAccess; + fields: { access: string; displayName: string; id: string; userUid: string }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2UserAuthorityGroupSchema { + name: "D2UserAuthorityGroup"; + model: D2UserAuthorityGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + authorities: string[]; + code: Id; + created: string; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + users: D2UserSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2UserAuthorityGroup, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "description" + | "authorities" + | "lastUpdated" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + $owner: Preset< + D2UserAuthorityGroup, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "description" + | "authorities" + | "lastUpdated" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + }; +} + +export interface D2UserCredentialsSchema { + name: "D2UserCredentials"; + model: D2UserCredentials; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + catDimensionConstraints: D2CategorySchema[]; + code: Id; + cogsDimensionConstraints: D2CategoryOptionGroupSetSchema[]; + created: string; + disabled: boolean; + displayName: string; + externalAccess: boolean; + externalAuth: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + invitation: boolean; + lastLogin: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + ldapId: string; + name: string; + openId: string; + password: string; + passwordLastUpdated: string; + publicAccess: string; + selfRegistered: boolean; + translations: D2Translation[]; + twoFA: boolean; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userInfo: D2UserSchema; + userRoles: D2UserAuthorityGroupSchema[]; + username: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2UserCredentials, + | "lastLogin" + | "userInfo" + | "code" + | "openId" + | "externalAuth" + | "cogsDimensionConstraints" + | "catDimensionConstraints" + | "lastUpdated" + | "password" + | "ldapId" + | "disabled" + | "id" + | "twoFA" + | "passwordLastUpdated" + | "lastUpdatedBy" + | "invitation" + | "created" + | "selfRegistered" + | "userRoles" + | "user" + | "username" + >; + $owner: Preset< + D2UserCredentials, + | "lastLogin" + | "userInfo" + | "code" + | "openId" + | "externalAuth" + | "cogsDimensionConstraints" + | "catDimensionConstraints" + | "lastUpdated" + | "password" + | "ldapId" + | "disabled" + | "id" + | "twoFA" + | "passwordLastUpdated" + | "lastUpdatedBy" + | "invitation" + | "created" + | "selfRegistered" + | "userRoles" + | "user" + | "username" + >; + }; +} + +export interface D2UserGroupSchema { + name: "D2UserGroup"; + model: D2UserGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + managedByGroups: D2UserGroupSchema[]; + managedGroups: D2UserGroupSchema[]; + name: string; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + users: D2UserSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2UserGroup, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "managedByGroups" + | "attributeValues" + | "users" + | "managedGroups" + | "lastUpdated" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + $owner: Preset< + D2UserGroup, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "created" + | "publicAccess" + | "attributeValues" + | "users" + | "managedGroups" + | "lastUpdated" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + }; +} + +export interface D2UserGroupAccessSchema { + name: "D2UserGroupAccess"; + model: D2UserGroupAccess; + fields: { access: string; displayName: string; id: string; userGroupUid: string }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2ValidationNotificationTemplateSchema { + name: "D2ValidationNotificationTemplate"; + model: D2ValidationNotificationTemplate; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + messageTemplate: string; + name: string; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientUserGroups: D2UserGroupSchema[]; + sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; + subjectTemplate: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + validationRules: D2ValidationRuleSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ValidationNotificationTemplate, + | "code" + | "recipientUserGroups" + | "lastUpdated" + | "translations" + | "id" + | "subjectTemplate" + | "sendStrategy" + | "lastUpdatedBy" + | "validationRules" + | "created" + | "notifyUsersInHierarchyOnly" + | "name" + | "messageTemplate" + >; + $owner: Preset< + D2ValidationNotificationTemplate, + | "code" + | "recipientUserGroups" + | "lastUpdated" + | "translations" + | "id" + | "subjectTemplate" + | "sendStrategy" + | "lastUpdatedBy" + | "validationRules" + | "created" + | "notifyUsersInHierarchyOnly" + | "name" + | "messageTemplate" + >; + }; +} + +export interface D2ValidationResultSchema { + name: "D2ValidationResult"; + model: D2ValidationResult; + fields: { + attributeOptionCombo: D2CategoryOptionComboSchema; + created: string; + dayInPeriod: number; + id: string; + leftsideValue: number; + notificationSent: boolean; + organisationUnit: D2OrganisationUnitSchema; + period: any; + rightsideValue: number; + validationRule: D2ValidationRuleSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ValidationResult, + "created" | "rightsideValue" | "leftsideValue" | "notificationSent" + >; + $owner: Preset< + D2ValidationResult, + "created" | "rightsideValue" | "leftsideValue" | "notificationSent" + >; + }; +} + +export interface D2ValidationRuleSchema { + name: "D2ValidationRule"; + model: D2ValidationRule; + fields: { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + importance: "HIGH" | "MEDIUM" | "LOW"; + instruction: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + leftSide: D2ExpressionSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + notificationTemplates: D2ValidationNotificationTemplateSchema[]; + operator: + | "equal_to" + | "not_equal_to" + | "greater_than" + | "greater_than_or_equal_to" + | "less_than" + | "less_than_or_equal_to" + | "compulsory_pair" + | "exclusive_pair"; + organisationUnitLevels: number[]; + periodOffset: number; + periodType: string; + publicAccess: string; + rightSide: D2ExpressionSchema; + shortName: string; + skipFormValidation: boolean; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + validationRuleGroups: D2ValidationRuleGroupSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ValidationRule, + | "validationRuleGroups" + | "code" + | "importance" + | "publicAccess" + | "description" + | "operator" + | "organisationUnitLevels" + | "lastUpdated" + | "leftSide" + | "notificationTemplates" + | "translations" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "rightSide" + | "periodType" + | "instruction" + | "userAccesses" + | "name" + | "skipFormValidation" + | "user" + >; + $owner: Preset< + D2ValidationRule, + | "code" + | "importance" + | "publicAccess" + | "description" + | "operator" + | "organisationUnitLevels" + | "lastUpdated" + | "leftSide" + | "translations" + | "id" + | "lastUpdatedBy" + | "userGroupAccesses" + | "created" + | "attributeValues" + | "rightSide" + | "periodType" + | "instruction" + | "userAccesses" + | "name" + | "skipFormValidation" + | "user" + >; + }; +} + +export interface D2ValidationRuleGroupSchema { + name: "D2ValidationRuleGroup"; + model: D2ValidationRuleGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueGenericSchema[]; + code: Id; + created: string; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + validationRules: D2ValidationRuleSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ValidationRuleGroup, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "validationRules" + | "created" + | "publicAccess" + | "attributeValues" + | "description" + | "lastUpdated" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + $owner: Preset< + D2ValidationRuleGroup, + | "lastUpdatedBy" + | "userGroupAccesses" + | "code" + | "validationRules" + | "created" + | "publicAccess" + | "attributeValues" + | "description" + | "lastUpdated" + | "translations" + | "userAccesses" + | "name" + | "id" + | "user" + >; + }; +} + +export interface D2VisualizationSchema { + name: "D2Visualization"; + model: D2Visualization; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValues: D2AttributeValueGenericSchema[]; + baseLineLabel: string; + baseLineValue: number; + categoryDimensions: D2CategoryDimensionSchema[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; + code: Id; + colSubTotals: boolean; + colTotals: boolean; + colorSet: string; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + cumulativeValues: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; + displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + displayDescription: string; + displayDomainAxisLabel: string; + displayFormName: string; + displayName: string; + displayRangeAxisLabel: string; + displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; + domainAxisLabel: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + fontSize: "LARGE" | "NORMAL" | "SMALL"; + fontStyle: any; + formName: string; + hideEmptyColumns: boolean; + hideEmptyRowItems: + | "NONE" + | "BEFORE_FIRST" + | "AFTER_LAST" + | "BEFORE_FIRST_AFTER_LAST" + | "ALL"; + hideEmptyRows: boolean; + hideLegend: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendDisplayStyle: "FILL" | "TEXT"; + legendSet: D2LegendSetSchema; + measureCriteria: string; + name: string; + noSpaceBetweenColumns: boolean; + numberType: "VALUE" | "ROW_PERCENTAGE" | "COLUMN_PERCENTAGE"; + optionalAxes: D2Axis[]; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnitSchema[]; + parentGraphMap: D2MapSchema; + percentStackedValues: boolean; + periods: any[]; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; + publicAccess: string; + rangeAxisDecimals: number; + rangeAxisLabel: string; + rangeAxisMaxValue: number; + rangeAxisMinValue: number; + rangeAxisSteps: number; + regression: boolean; + regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; + relativePeriods: any; + reportingParams: D2ReportingParams; + rowDimensions: string[]; + rowSubTotals: boolean; + rowTotals: boolean; + rows: any[]; + series: any[]; + shortName: string; + showData: boolean; + showDimensionLabels: boolean; + showHierarchy: boolean; + skipRounding: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + targetLineLabel: string; + targetLineValue: number; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + type: + | "COLUMN" + | "STACKED_COLUMN" + | "BAR" + | "STACKED_BAR" + | "LINE" + | "AREA" + | "STACKED_AREA" + | "PIE" + | "RADAR" + | "GAUGE" + | "YEAR_OVER_YEAR_LINE" + | "YEAR_OVER_YEAR_COLUMN" + | "SINGLE_VALUE" + | "PIVOT_TABLE"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + visualizationPeriodName: string; + yearlySeries: string[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Visualization, + | "dataElementGroupSetDimensions" + | "endDate" + | "baseLineValue" + | "publicAccess" + | "userOrganisationUnitChildren" + | "legendDisplayStyle" + | "type" + | "hideEmptyColumns" + | "measureCriteria" + | "lastUpdated" + | "translations" + | "yearlySeries" + | "userOrganisationUnit" + | "rowSubTotals" + | "filterDimensions" + | "id" + | "interpretations" + | "userGroupAccesses" + | "domainAxisLabel" + | "subscribers" + | "cumulativeValues" + | "fontStyle" + | "optionalAxes" + | "showDimensionLabels" + | "sortOrder" + | "subtitle" + | "fontSize" + | "rangeAxisDecimals" + | "topLimit" + | "startDate" + | "userOrganisationUnitGrandChildren" + | "percentStackedValues" + | "noSpaceBetweenColumns" + | "rangeAxisSteps" + | "periods" + | "categoryDimensions" + | "showHierarchy" + | "reportingParams" + | "hideTitle" + | "rowDimensions" + | "series" + | "colorSet" + | "skipRounding" + | "showData" + | "numberType" + | "hideEmptyRows" + | "itemOrganisationUnitGroups" + | "displayDensity" + | "lastUpdatedBy" + | "created" + | "rangeAxisLabel" + | "regressionType" + | "columnDimensions" + | "completedOnly" + | "colTotals" + | "userAccesses" + | "name" + | "hideEmptyRowItems" + | "favorites" + | "aggregationType" + | "dataDimensionItems" + | "code" + | "categoryOptionGroupSetDimensions" + | "hideSubtitle" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "hideLegend" + | "externalAccess" + | "rangeAxisMinValue" + | "organisationUnitLevels" + | "legendDisplayStrategy" + | "colSubTotals" + | "relativePeriods" + | "targetLineLabel" + | "organisationUnits" + | "rowTotals" + | "targetLineValue" + | "baseLineLabel" + | "digitGroupSeparator" + | "regression" + | "legendSet" + | "userOrgUnitType" + | "rangeAxisMaxValue" + | "user" + >; + $owner: Preset< + D2Visualization, + | "dataElementGroupSetDimensions" + | "endDate" + | "baseLineValue" + | "publicAccess" + | "userOrganisationUnitChildren" + | "legendDisplayStyle" + | "type" + | "hideEmptyColumns" + | "measureCriteria" + | "lastUpdated" + | "translations" + | "yearlySeries" + | "userOrganisationUnit" + | "rowSubTotals" + | "filterDimensions" + | "id" + | "userGroupAccesses" + | "domainAxisLabel" + | "subscribers" + | "cumulativeValues" + | "fontStyle" + | "optionalAxes" + | "showDimensionLabels" + | "sortOrder" + | "subtitle" + | "fontSize" + | "rangeAxisDecimals" + | "topLimit" + | "startDate" + | "userOrganisationUnitGrandChildren" + | "percentStackedValues" + | "noSpaceBetweenColumns" + | "rangeAxisSteps" + | "periods" + | "categoryDimensions" + | "showHierarchy" + | "reportingParams" + | "hideTitle" + | "rowDimensions" + | "series" + | "colorSet" + | "skipRounding" + | "showData" + | "numberType" + | "hideEmptyRows" + | "itemOrganisationUnitGroups" + | "displayDensity" + | "lastUpdatedBy" + | "created" + | "rangeAxisLabel" + | "regressionType" + | "columnDimensions" + | "completedOnly" + | "colTotals" + | "userAccesses" + | "name" + | "hideEmptyRowItems" + | "favorites" + | "aggregationType" + | "dataDimensionItems" + | "code" + | "categoryOptionGroupSetDimensions" + | "hideSubtitle" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "hideLegend" + | "externalAccess" + | "rangeAxisMinValue" + | "organisationUnitLevels" + | "legendDisplayStrategy" + | "colSubTotals" + | "relativePeriods" + | "targetLineLabel" + | "organisationUnits" + | "rowTotals" + | "targetLineValue" + | "baseLineLabel" + | "digitGroupSeparator" + | "regression" + | "legendSet" + | "userOrgUnitType" + | "rangeAxisMaxValue" + | "user" + >; + }; +} + +export type D2Model = + | D2AnalyticsPeriodBoundary + | D2AnalyticsTableHook + | D2Attribute + | D2Category + | D2CategoryCombo + | D2CategoryDimension + | D2CategoryOption + | D2CategoryOptionCombo + | D2CategoryOptionGroup + | D2CategoryOptionGroupSet + | D2CategoryOptionGroupSetDimension + | D2Chart + | D2Constant + | D2Dashboard + | D2DashboardItem + | D2DataApprovalLevel + | D2DataApprovalWorkflow + | D2DataElement + | D2DataElementGroup + | D2DataElementGroupSet + | D2DataElementGroupSetDimension + | D2DataElementOperand + | D2DataEntryForm + | D2DataInputPeriod + | D2DataSet + | D2DataSetElement + | D2DataSetNotificationTemplate + | D2Document + | D2EventChart + | D2EventReport + | D2Expression + | D2ExternalFileResource + | D2ExternalMapLayer + | D2FileResource + | D2Icon + | D2Indicator + | D2IndicatorGroup + | D2IndicatorGroupSet + | D2IndicatorType + | D2Interpretation + | D2InterpretationComment + | D2JobConfiguration + | D2KeyJsonValue + | D2Legend + | D2LegendSet + | D2Map + | D2MapView + | D2MessageConversation + | D2MetadataVersion + | D2MinMaxDataElement + | D2OAuth2Client + | D2Option + | D2OptionGroup + | D2OptionGroupSet + | D2OptionSet + | D2OrganisationUnit + | D2OrganisationUnitGroup + | D2OrganisationUnitGroupSet + | D2OrganisationUnitGroupSetDimension + | D2OrganisationUnitLevel + | D2Predictor + | D2PredictorGroup + | D2Program + | D2ProgramDataElementDimensionItem + | D2ProgramIndicator + | D2ProgramIndicatorGroup + | D2ProgramInstance + | D2ProgramNotificationTemplate + | D2ProgramRule + | D2ProgramRuleAction + | D2ProgramRuleVariable + | D2ProgramSection + | D2ProgramStage + | D2ProgramStageDataElement + | D2ProgramStageInstance + | D2ProgramStageInstanceFilter + | D2ProgramStageSection + | D2ProgramTrackedEntityAttribute + | D2ProgramTrackedEntityAttributeDimensionItem + | D2ProgramTrackedEntityAttributeGroup + | D2PushAnalysis + | D2Relationship + | D2RelationshipType + | D2Report + | D2ReportTable + | D2ReportingRate + | D2SMSCommand + | D2Section + | D2SqlView + | D2TrackedEntityAttribute + | D2TrackedEntityAttributeValue + | D2TrackedEntityDataElementDimension + | D2TrackedEntityInstance + | D2TrackedEntityInstanceFilter + | D2TrackedEntityProgramIndicatorDimension + | D2TrackedEntityType + | D2TrackedEntityTypeAttribute + | D2User + | D2UserAccess + | D2UserAuthorityGroup + | D2UserCredentials + | D2UserGroup + | D2UserGroupAccess + | D2ValidationNotificationTemplate + | D2ValidationResult + | D2ValidationRule + | D2ValidationRuleGroup + | D2Visualization; + +export const models: Record = { + analyticsPeriodBoundaries: { + klass: "org.hisp.dhis.program.AnalyticsPeriodBoundary", + shareable: false, + metadata: false, + plural: "analyticsPeriodBoundaries", + displayName: "Analytics Period Boundary", + collectionName: "analyticsPeriodBoundaries", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "analyticsPeriodBoundary", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "offsetPeriodType", + fieldName: "offsetPeriodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "analyticsPeriodBoundaryType", + fieldName: "analyticsPeriodBoundaryType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.AnalyticsPeriodBoundaryType", + }, + { + name: "boundaryTarget", + fieldName: "boundaryTarget", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "offsetPeriods", + fieldName: "offsetPeriods", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + ], + }, + analyticsTableHooks: { + klass: "org.hisp.dhis.analytics.AnalyticsTableHook", + shareable: false, + metadata: true, + relativeApiEndpoint: "/analyticsTableHooks", + plural: "analyticsTableHooks", + displayName: "Analytics Table Hook", + collectionName: "analyticsTableHooks", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "analyticsTableHook", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "phase", + fieldName: "phase", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AnalyticsTablePhase", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "analyticsTableType", + fieldName: "analyticsTableType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AnalyticsTableType", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { name: "sql", fieldName: "sql", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "resourceTableType", + fieldName: "resourceTableType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.resourcetable.ResourceTableType", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + attributes: { + klass: "org.hisp.dhis.attribute.Attribute", + shareable: true, + metadata: true, + relativeApiEndpoint: "/attributes", + plural: "attributes", + displayName: "Attribute", + collectionName: "attributes", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "attribute", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "indicatorAttribute", + fieldName: "indicatorAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "indicatorGroupAttribute", + fieldName: "indicatorGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userGroupAttribute", + fieldName: "userGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElementAttribute", + fieldName: "dataElementAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "constantAttribute", + fieldName: "constantAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + fieldName: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { + name: "categoryOptionAttribute", + fieldName: "categoryOptionAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "optionSetAttribute", + fieldName: "optionSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "sqlViewAttribute", + fieldName: "sqlViewAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "legendSetAttribute", + fieldName: "legendSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "trackedEntityAttributeAttribute", + fieldName: "trackedEntityAttributeAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "organisationUnitAttribute", + fieldName: "organisationUnitAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataSetAttribute", + fieldName: "dataSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "documentAttribute", + fieldName: "documentAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "unique", + fieldName: "unique", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "validationRuleGroupAttribute", + fieldName: "validationRuleGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dataElementGroupAttribute", + fieldName: "dataElementGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sectionAttribute", + fieldName: "sectionAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "trackedEntityTypeAttribute", + fieldName: "trackedEntityTypeAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userAttribute", + fieldName: "userAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "mandatory", + fieldName: "mandatory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "categoryOptionGroupAttribute", + fieldName: "categoryOptionGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programStageAttribute", + fieldName: "programStageAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programAttribute", + fieldName: "programAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "categoryAttribute", + fieldName: "categoryAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "categoryOptionComboAttribute", + fieldName: "categoryOptionComboAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetAttribute", + fieldName: "categoryOptionGroupSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "validationRuleAttribute", + fieldName: "validationRuleAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programIndicatorAttribute", + fieldName: "programIndicatorAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "organisationUnitGroupAttribute", + fieldName: "organisationUnitGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElementGroupSetAttribute", + fieldName: "dataElementGroupSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "organisationUnitGroupSetAttribute", + fieldName: "organisationUnitGroupSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "optionAttribute", + fieldName: "optionAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + ], + }, + categories: { + klass: "org.hisp.dhis.category.Category", + shareable: true, + metadata: true, + relativeApiEndpoint: "/categories", + plural: "categories", + displayName: "Category", + collectionName: "categories", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "category", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dimensionType", + fieldName: "dimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "categoryCombo", + fieldName: "categoryCombos", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryCombo", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "categoryOption", + fieldName: "categoryOptions", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOption", + }, + { name: "dimension", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "allItems", + fieldName: "allItems", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dimensionalKeywords", + fieldName: "dimensionalKeywords", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.DimensionalKeywords", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "dataDimension", + fieldName: "dataDimension", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "item", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + categoryCombos: { + klass: "org.hisp.dhis.category.CategoryCombo", + shareable: true, + metadata: true, + relativeApiEndpoint: "/categoryCombos", + plural: "categoryCombos", + displayName: "Category Combo", + collectionName: "categoryCombos", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "categoryCombo", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "category", + fieldName: "categories", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.Category", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "categoryOptionCombo", + fieldName: "optionCombos", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { name: "isDefault", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "skipTotal", + fieldName: "skipTotal", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + categoryDimensions: { + klass: "org.hisp.dhis.category.CategoryDimension", + shareable: false, + metadata: false, + plural: "categoryDimensions", + displayName: "Category Dimension", + collectionName: "categoryDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "categoryDimension", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "categoryOption", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOption", + }, + { + name: "category", + fieldName: "dimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.Category", + }, + ], + }, + categoryOptions: { + klass: "org.hisp.dhis.category.CategoryOption", + shareable: true, + metadata: true, + relativeApiEndpoint: "/categoryOptions", + plural: "categoryOptions", + displayName: "Category Option", + collectionName: "categoryOptions", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "categoryOption", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "category", + fieldName: "categories", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.Category", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "categoryOptionCombo", + fieldName: "categoryOptionCombos", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { name: "isDefault", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "categoryOptionGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroup", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + categoryOptionCombos: { + klass: "org.hisp.dhis.category.CategoryOptionCombo", + shareable: false, + metadata: true, + relativeApiEndpoint: "/categoryOptionCombos", + plural: "categoryOptionCombos", + displayName: "Category Option Combo", + collectionName: "categoryOptionCombos", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "categoryOptionCombo", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "ignoreApproval", + fieldName: "ignoreApproval", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "categoryOption", + fieldName: "categoryOptions", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOption", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + categoryOptionGroups: { + klass: "org.hisp.dhis.category.CategoryOptionGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/categoryOptionGroups", + plural: "categoryOptionGroups", + displayName: "Category Option Group", + collectionName: "categoryOptionGroups", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "categoryOptionGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "categoryOption", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOption", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "groupSet", + fieldName: "groupSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSet", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + categoryOptionGroupSets: { + klass: "org.hisp.dhis.category.CategoryOptionGroupSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/categoryOptionGroupSets", + plural: "categoryOptionGroupSets", + displayName: "Category Option Group Set", + collectionName: "categoryOptionGroupSets", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "categoryOptionGroupSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dimensionType", + fieldName: "dimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "dimension", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "allItems", + fieldName: "allItems", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dimensionalKeywords", + fieldName: "dimensionalKeywords", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.DimensionalKeywords", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroup", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroup", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "dataDimension", + fieldName: "dataDimension", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "item", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + categoryOptionGroupSetDimensions: { + klass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + shareable: false, + metadata: false, + plural: "categoryOptionGroupSetDimensions", + displayName: "Category Option Group Set Dimension", + collectionName: "categoryOptionGroupSetDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "categoryOptionGroupSetDimension", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "categoryOptionGroup", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroup", + }, + { + name: "categoryOptionGroupSet", + fieldName: "dimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionGroupSet", + }, + ], + }, + charts: { + klass: "org.hisp.dhis.chart.Chart", + shareable: false, + metadata: true, + relativeApiEndpoint: "/charts", + plural: "charts", + displayName: "Chart", + collectionName: "charts", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "chart", + persisted: false, + embeddedObject: false, + properties: [ + { + name: "dataElementGroupSetDimension", + fieldName: "dataElementGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + }, + { + name: "showData", + fieldName: "showData", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "orgUnitField", + fieldName: "orgUnitField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "baseLineValue", + fieldName: "baseLineValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnitChildren", + fieldName: "userOrganisationUnitChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.chart.ChartType", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayTargetLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attributeDimension", + fieldName: "attributeDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "yearlySerie", + fieldName: "yearlySeries", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "parentGraphMap", + fieldName: "parentGraphMap", + propertyType: "COMPLEX", + klass: "java.util.Map", + }, + { + name: "userOrganisationUnit", + fieldName: "userOrganisationUnit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "filterDimension", + fieldName: "filterDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { + name: "itemOrganisationUnitGroup", + fieldName: "itemOrganisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "displayDomainAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "programIndicatorDimension", + fieldName: "programIndicatorDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + }, + { + name: "domainAxisLabel", + fieldName: "domainAxisLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "rangeAxisLabel", + fieldName: "rangeAxisLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "regressionType", + fieldName: "regressionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.RegressionType", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "completedOnly", + fieldName: "completedOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "cumulativeValues", + fieldName: "cumulativeValues", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "rangeAxisDecimals", + fieldName: "rangeAxisDecimals", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "topLimit", + fieldName: "topLimit", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "hideEmptyRowItems", + fieldName: "hideEmptyRowItems", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.HideEmptyItemStrategy", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionItem", + fieldName: "dataDimensionItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DataDimensionItem", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetDimension", + fieldName: "categoryOptionGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userOrganisationUnitGrandChildren", + fieldName: "userOrganisationUnitGrandChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "column", + fieldName: "columns", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "hideSubtitle", + fieldName: "hideSubtitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitGroupSetDimension", + fieldName: "organisationUnitGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideLegend", + fieldName: "hideLegend", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rangeAxisMinValue", + fieldName: "rangeAxisMinValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "percentStackedValues", + fieldName: "percentStackedValues", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "seriesItem", + fieldName: "seriesItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.chart.Series", + }, + { + name: "legendDisplayStrategy", + fieldName: "legendDisplayStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.legend.LegendDisplayStrategy", + }, + { + name: "noSpaceBetweenColumns", + fieldName: "noSpaceBetweenColumns", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "dataElementDimension", + fieldName: "dataElementDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + }, + { + name: "rangeAxisSteps", + fieldName: "rangeAxisSteps", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "targetLineLabel", + fieldName: "targetLineLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "period", + fieldName: "periods", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.period.Period", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "categoryDimension", + fieldName: "categoryDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryDimension", + }, + { name: "displayRangeAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "timeField", + fieldName: "timeField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "targetLineValue", + fieldName: "targetLineValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "filter", + fieldName: "filters", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "row", + fieldName: "rows", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "baseLineLabel", + fieldName: "baseLineLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "digitGroupSeparator", + fieldName: "digitGroupSeparator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DigitGroupSeparator", + }, + { + name: "hideTitle", + fieldName: "hideTitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "series", + fieldName: "series", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "userOrgUnitType", + fieldName: "userOrgUnitType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.UserOrgUnitType", + }, + { + name: "rangeAxisMaxValue", + fieldName: "rangeAxisMaxValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "category", + fieldName: "category", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayBaseLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + ], + }, + constants: { + klass: "org.hisp.dhis.constant.Constant", + shareable: true, + metadata: true, + relativeApiEndpoint: "/constants", + plural: "constants", + displayName: "Constant", + collectionName: "constants", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "constant", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "value", + fieldName: "value", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dashboards: { + klass: "org.hisp.dhis.dashboard.Dashboard", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dashboards", + plural: "dashboards", + displayName: "Dashboard", + collectionName: "dashboards", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dashboard", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "itemCount", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "dashboardItem", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dashboard.DashboardItem", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dashboardItems: { + klass: "org.hisp.dhis.dashboard.DashboardItem", + shareable: false, + metadata: false, + relativeApiEndpoint: "/dashboardItems", + plural: "dashboardItems", + displayName: "Dashboard Item", + collectionName: "dashboardItems", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dashboardItem", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "report", + fieldName: "reports", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.report.Report", + }, + { + name: "visualization", + fieldName: "visualization", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.visualization.Visualization", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.dashboard.DashboardItemType", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "reportTable", + fieldName: "reportTable", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.reporttable.ReportTable", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "appKey", + fieldName: "appKey", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "text", fieldName: "text", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "map", + fieldName: "map", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.mapping.Map", + }, + { name: "contentCount", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "height", + fieldName: "height", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "shape", + fieldName: "shape", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.dashboard.DashboardItemShape", + }, + { name: "interpretationCount", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "resource", + fieldName: "resources", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.document.Document", + }, + { + name: "user", + fieldName: "users", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.user.User", + }, + { + name: "eventReport", + fieldName: "eventReport", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.eventreport.EventReport", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "eventChart", + fieldName: "eventChart", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.eventchart.EventChart", + }, + { + name: "width", + fieldName: "width", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "x", fieldName: "x", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "messages", + fieldName: "messages", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "y", fieldName: "y", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "interpretationLikeCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "chart", + fieldName: "chart", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.chart.Chart", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataApprovalLevels: { + klass: "org.hisp.dhis.dataapproval.DataApprovalLevel", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataApprovalLevels", + plural: "dataApprovalLevels", + displayName: "Data Approval Level", + collectionName: "dataApprovalLevels", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataApprovalLevel", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "categoryOptionGroupSet", + fieldName: "categoryOptionGroupSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionGroupSet", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "level", + fieldName: "level", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "orgUnitLevelName", + fieldName: "orgUnitLevelName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "orgUnitLevel", + fieldName: "orgUnitLevel", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataApprovalWorkflows: { + klass: "org.hisp.dhis.dataapproval.DataApprovalWorkflow", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataApprovalWorkflows", + plural: "dataApprovalWorkflows", + displayName: "Data Approval Workflow", + collectionName: "dataApprovalWorkflows", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataApprovalWorkflow", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dataApprovalLevel", + fieldName: "levels", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataapproval.DataApprovalLevel", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodType", + fieldName: "periodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSet", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataElements: { + klass: "org.hisp.dhis.dataelement.DataElement", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataElements", + plural: "dataElements", + displayName: "Data Element", + collectionName: "dataElements", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataElement", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "domainType", + fieldName: "domainType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.dataelement.DataElementDomain", + }, + { + name: "dataSetElements", + fieldName: "dataSetElements", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSetElement", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + fieldName: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "commentOptionSet", + fieldName: "commentOptionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "fieldMask", + fieldName: "fieldMask", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "dataElementGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroup", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "zeroIsSignificant", + fieldName: "zeroIsSignificant", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "url", fieldName: "url", propertyType: "URL", klass: "java.lang.String" }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "aggregationLevels", + fieldName: "aggregationLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "optionSetValue", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + dataElementGroups: { + klass: "org.hisp.dhis.dataelement.DataElementGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataElementGroups", + plural: "dataElementGroups", + displayName: "Data Element Group", + collectionName: "dataElementGroups", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataElementGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "dataElement", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "groupSet", + fieldName: "groupSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSet", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + dataElementGroupSets: { + klass: "org.hisp.dhis.dataelement.DataElementGroupSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataElementGroupSets", + plural: "dataElementGroupSets", + displayName: "Data Element Group Set", + collectionName: "dataElementGroupSets", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataElementGroupSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dimensionType", + fieldName: "dimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "dimension", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "allItems", + fieldName: "allItems", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dataElementGroup", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroup", + }, + { + name: "dimensionalKeywords", + fieldName: "dimensionalKeywords", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.DimensionalKeywords", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "compulsory", + fieldName: "compulsory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "dataDimension", + fieldName: "dataDimension", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "item", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataElementGroupSetDimensions: { + klass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + shareable: false, + metadata: false, + plural: "dataElementGroupSetDimensions", + displayName: "Data Element Group Set Dimension", + collectionName: "dataElementGroupSetDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "dataElementGroupSetDimension", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "dataElementGroup", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroup", + }, + { + name: "dataElementGroupSet", + fieldName: "dimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElementGroupSet", + }, + ], + }, + dataElementOperands: { + klass: "org.hisp.dhis.dataelement.DataElementOperand", + shareable: false, + metadata: false, + relativeApiEndpoint: "/dataElementOperands", + plural: "dataElementOperands", + displayName: "Data Element Operand", + collectionName: "dataElementOperands", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "dataElementOperand", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "categoryOptionCombo", + fieldName: "categoryOptionCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "attributeOptionCombo", + fieldName: "attributeOptionCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + dataEntryForms: { + klass: "org.hisp.dhis.dataentryform.DataEntryForm", + shareable: false, + metadata: true, + relativeApiEndpoint: "/dataEntryForms", + plural: "dataEntryForms", + displayName: "Data Entry Form", + collectionName: "dataEntryForms", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataEntryForm", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "htmlCode", + fieldName: "htmlCode", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "format", + fieldName: "format", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DisplayDensity", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataInputPeriods: { + klass: "org.hisp.dhis.dataset.DataInputPeriod", + shareable: false, + metadata: false, + plural: "dataInputPeriods", + displayName: "Data Input Period", + collectionName: "dataInputPeriods", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "dataInputPeriods", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "period", + fieldName: "period", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.period.Period", + }, + { + name: "closingDate", + fieldName: "closingDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "openingDate", + fieldName: "openingDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + ], + }, + dataSets: { + klass: "org.hisp.dhis.dataset.DataSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataSets", + plural: "dataSets", + displayName: "Data Set", + collectionName: "dataSets", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "dataSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataEntryForm", + fieldName: "dataEntryForm", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataentryform.DataEntryForm", + }, + { + name: "validCompleteOnly", + fieldName: "validCompleteOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataSetElement", + fieldName: "dataSetElements", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSetElement", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "skipOffline", + fieldName: "skipOffline", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "compulsoryFieldsCompleteOnly", + fieldName: "compulsoryFieldsCompleteOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "dataInputPeriods", + fieldName: "dataInputPeriods", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataInputPeriod", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "formType", propertyType: "CONSTANT", klass: "org.hisp.dhis.dataset.FormType" }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "workflow", + fieldName: "workflow", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataapproval.DataApprovalWorkflow", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "indicator", + fieldName: "indicators", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.indicator.Indicator", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "version", + fieldName: "version", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "section", + fieldName: "sections", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.Section", + }, + { + name: "timelyDays", + fieldName: "timelyDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "notificationRecipients", + fieldName: "notificationRecipients", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "dataElementDecoration", + fieldName: "dataElementDecoration", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "notifyCompletingUser", + fieldName: "notifyCompletingUser", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "noValueRequiresComment", + fieldName: "noValueRequiresComment", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "compulsoryDataElementOperand", + fieldName: "compulsoryDataElementOperands", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataelement.DataElementOperand", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "fieldCombinationRequired", + fieldName: "fieldCombinationRequired", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnit", + fieldName: "sources", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "renderHorizontally", + fieldName: "renderHorizontally", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "renderAsTabs", + fieldName: "renderAsTabs", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "mobile", + fieldName: "mobile", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "openPeriodsAfterCoEndDate", + fieldName: "openPeriodsAfterCoEndDate", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "periodType", + fieldName: "periodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "openFuturePeriods", + fieldName: "openFuturePeriods", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "expiryDays", + fieldName: "expiryDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + ], + }, + dataSetElements: { + klass: "org.hisp.dhis.dataset.DataSetElement", + shareable: false, + metadata: false, + plural: "dataSetElements", + displayName: "Data Set Element", + collectionName: "dataSetElements", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "dataSetElement", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "dataSet", + fieldName: "dataSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataset.DataSet", + }, + ], + }, + dataSetNotificationTemplates: { + klass: "org.hisp.dhis.dataset.notifications.DataSetNotificationTemplate", + shareable: false, + metadata: true, + relativeApiEndpoint: "/dataSetNotificationTemplates", + plural: "dataSetNotificationTemplates", + displayName: "Data Set Notification Template", + collectionName: "dataSetNotificationTemplates", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataSetNotificationTemplate", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "relativeScheduledDays", + fieldName: "relativeScheduledDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "subjectTemplate", + fieldName: "subjectTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "dataSetNotificationTrigger", + fieldName: "dataSetNotificationTrigger", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.dataset.notifications.DataSetNotificationTrigger", + }, + { + name: "sendStrategy", + fieldName: "sendStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.notification.SendStrategy", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "deliveryChannels", + fieldName: "deliveryChannels", + propertyType: "COLLECTION", + itemPropertyType: "CONSTANT", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.common.DeliveryChannel", + }, + { name: "displaySubjectTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "notifyUsersInHierarchyOnly", + fieldName: "notifyUsersInHierarchyOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "notificationRecipient", + fieldName: "notificationRecipient", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.dataset.notifications.DataSetNotificationRecipient", + }, + { + name: "notifyParentOrganisationUnitOnly", + fieldName: "notifyParentOrganisationUnitOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSet", + }, + { name: "displayMessageTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "recipientUserGroup", + fieldName: "recipientUserGroup", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.UserGroup", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "messageTemplate", + fieldName: "messageTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + ], + }, + documents: { + klass: "org.hisp.dhis.document.Document", + shareable: true, + metadata: true, + relativeApiEndpoint: "/documents", + plural: "documents", + displayName: "Document", + collectionName: "documents", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "document", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { name: "url", fieldName: "url", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "external", + fieldName: "external", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attachment", + fieldName: "attachment", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "contentType", + fieldName: "contentType", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + eventCharts: { + klass: "org.hisp.dhis.eventchart.EventChart", + shareable: true, + metadata: true, + relativeApiEndpoint: "/eventCharts", + plural: "eventCharts", + displayName: "Event Chart", + collectionName: "eventCharts", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "eventChart", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataElementGroupSetDimension", + fieldName: "dataElementGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + }, + { + name: "orgUnitField", + fieldName: "orgUnitField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "baseLineValue", + fieldName: "baseLineValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnitChildren", + fieldName: "userOrganisationUnitChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.chart.ChartType", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayTargetLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attributeDimension", + fieldName: "attributeDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "yearlySerie", + fieldName: "yearlySeries", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "userOrganisationUnit", + fieldName: "userOrganisationUnit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "filterDimension", + fieldName: "filterDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValueDimension", + fieldName: "attributeValueDimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "domainAxisLabel", + fieldName: "domainAxisLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "cumulativeValues", + fieldName: "cumulativeValues", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "rangeAxisDecimals", + fieldName: "rangeAxisDecimals", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "topLimit", + fieldName: "topLimit", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "collapseDataDimensions", + fieldName: "collapseDataDimensions", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userOrganisationUnitGrandChildren", + fieldName: "userOrganisationUnitGrandChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "column", + fieldName: "columns", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "percentStackedValues", + fieldName: "percentStackedValues", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "noSpaceBetweenColumns", + fieldName: "noSpaceBetweenColumns", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElementDimension", + fieldName: "dataElementDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + }, + { + name: "rangeAxisSteps", + fieldName: "rangeAxisSteps", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "period", + fieldName: "periods", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.period.Period", + }, + { + name: "categoryDimension", + fieldName: "categoryDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryDimension", + }, + { name: "displayRangeAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideTitle", + fieldName: "hideTitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rowDimension", + fieldName: "rowDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "eventStatus", + fieldName: "eventStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.event.EventStatus", + }, + { name: "displayBaseLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "showData", + fieldName: "showData", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "parentGraphMap", + fieldName: "parentGraphMap", + propertyType: "COMPLEX", + klass: "java.util.Map", + }, + { + name: "hideNaData", + fieldName: "hideNaData", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "itemOrganisationUnitGroup", + fieldName: "itemOrganisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "displayDomainAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "programIndicatorDimension", + fieldName: "programIndicatorDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "rangeAxisLabel", + fieldName: "rangeAxisLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "regressionType", + fieldName: "regressionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.RegressionType", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "columnDimension", + fieldName: "columnDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "completedOnly", + fieldName: "completedOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "programStatus", + fieldName: "programStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramStatus", + }, + { + name: "hideEmptyRowItems", + fieldName: "hideEmptyRowItems", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.HideEmptyItemStrategy", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dataDimensionItem", + fieldName: "dataDimensionItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DataDimensionItem", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetDimension", + fieldName: "categoryOptionGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + }, + { + name: "hideSubtitle", + fieldName: "hideSubtitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "outputType", + fieldName: "outputType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.EventOutputType", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitGroupSetDimension", + fieldName: "organisationUnitGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideLegend", + fieldName: "hideLegend", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rangeAxisMinValue", + fieldName: "rangeAxisMinValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "legendDisplayStrategy", + fieldName: "legendDisplayStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.legend.LegendDisplayStrategy", + }, + { + name: "dataElementValueDimension", + fieldName: "dataElementValueDimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "targetLineLabel", + fieldName: "targetLineLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "value", + fieldName: "value", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "timeField", + fieldName: "timeField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "targetLineValue", + fieldName: "targetLineValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "filter", + fieldName: "filters", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "row", + fieldName: "rows", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "baseLineLabel", + fieldName: "baseLineLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "digitGroupSeparator", + fieldName: "digitGroupSeparator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DigitGroupSeparator", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "userOrgUnitType", + fieldName: "userOrgUnitType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.UserOrgUnitType", + }, + { + name: "rangeAxisMaxValue", + fieldName: "rangeAxisMaxValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + ], + }, + eventReports: { + klass: "org.hisp.dhis.eventreport.EventReport", + shareable: true, + metadata: true, + relativeApiEndpoint: "/eventReports", + plural: "eventReports", + displayName: "Event Report", + collectionName: "eventReports", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "eventReport", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataElementGroupSetDimension", + fieldName: "dataElementGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + }, + { + name: "orgUnitField", + fieldName: "orgUnitField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnitChildren", + fieldName: "userOrganisationUnitChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideEmptyRows", + fieldName: "hideEmptyRows", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeDimension", + fieldName: "attributeDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "parentGraphMap", + fieldName: "parentGraphMap", + propertyType: "COMPLEX", + klass: "java.util.Map", + }, + { + name: "userOrganisationUnit", + fieldName: "userOrganisationUnit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "filterDimension", + fieldName: "filterDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "rowSubTotals", + fieldName: "rowSubTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "hideNaData", + fieldName: "hideNaData", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { + name: "itemOrganisationUnitGroup", + fieldName: "itemOrganisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "displayDensity", + fieldName: "displayDensity", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DisplayDensity", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValueDimension", + fieldName: "attributeValueDimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "programIndicatorDimension", + fieldName: "programIndicatorDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataType", + fieldName: "dataType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.EventDataType", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "columnDimension", + fieldName: "columnDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "completedOnly", + fieldName: "completedOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "colTotals", + fieldName: "colTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "showDimensionLabels", + fieldName: "showDimensionLabels", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "fontSize", + fieldName: "fontSize", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.FontSize", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "topLimit", + fieldName: "topLimit", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "collapseDataDimensions", + fieldName: "collapseDataDimensions", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programStatus", + fieldName: "programStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramStatus", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionItem", + fieldName: "dataDimensionItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DataDimensionItem", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetDimension", + fieldName: "categoryOptionGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userOrganisationUnitGrandChildren", + fieldName: "userOrganisationUnitGrandChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "column", + fieldName: "columns", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "hideSubtitle", + fieldName: "hideSubtitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "outputType", + fieldName: "outputType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.EventOutputType", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitGroupSetDimension", + fieldName: "organisationUnitGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "colSubTotals", + fieldName: "colSubTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElementValueDimension", + fieldName: "dataElementValueDimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "dataElementDimension", + fieldName: "dataElementDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "period", + fieldName: "periods", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.period.Period", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "value", + fieldName: "value", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { + name: "categoryDimension", + fieldName: "categoryDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryDimension", + }, + { + name: "showHierarchy", + fieldName: "showHierarchy", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "rowTotals", + fieldName: "rowTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "timeField", + fieldName: "timeField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "filter", + fieldName: "filters", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "row", + fieldName: "rows", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "digitGroupSeparator", + fieldName: "digitGroupSeparator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DigitGroupSeparator", + }, + { + name: "hideTitle", + fieldName: "hideTitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rowDimension", + fieldName: "rowDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "eventStatus", + fieldName: "eventStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.event.EventStatus", + }, + { + name: "userOrgUnitType", + fieldName: "userOrgUnitType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.UserOrgUnitType", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + ], + }, + expressions: { + klass: "org.hisp.dhis.expression.Expression", + shareable: false, + metadata: false, + plural: "expressions", + displayName: "Expression", + collectionName: "expressions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "expression", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "expression", + fieldName: "expression", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "missingValueStrategy", + fieldName: "missingValueStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.expression.MissingValueStrategy", + }, + { + name: "slidingWindow", + fieldName: "slidingWindow", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + ], + }, + externalFileResources: { + klass: "org.hisp.dhis.fileresource.ExternalFileResource", + shareable: false, + metadata: true, + relativeApiEndpoint: "/externalFileResources", + plural: "externalFileResources", + displayName: "External File Resource", + collectionName: "externalFileResources", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "identifiableObject", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + externalMapLayers: { + klass: "org.hisp.dhis.mapping.ExternalMapLayer", + shareable: true, + metadata: true, + relativeApiEndpoint: "/externalMapLayers", + plural: "externalMapLayers", + displayName: "External Map Layer", + collectionName: "externalMapLayers", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "externalMapLayer", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "imageFormat", + fieldName: "imageFormat", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.ImageFormat", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "legendSetUrl", + fieldName: "legendSetUrl", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "mapService", + fieldName: "mapService", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.MapService", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "layers", + fieldName: "layers", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "mapLayerPosition", + fieldName: "mapLayerPosition", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.MapLayerPosition", + }, + { name: "url", fieldName: "url", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "attribution", + fieldName: "attribution", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + fileResources: { + klass: "org.hisp.dhis.fileresource.FileResource", + shareable: false, + metadata: false, + relativeApiEndpoint: "/fileResources", + plural: "fileResources", + displayName: "File Resource", + collectionName: "fileResources", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "identifiableObject", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "contentMd5", + fieldName: "contentMd5", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "storageStatus", + fieldName: "storageStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.fileresource.FileResourceStorageStatus", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "contentType", + fieldName: "contentType", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "domain", + fieldName: "domain", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.fileresource.FileResourceDomain", + }, + { + name: "hasMultipleStorageFiles", + fieldName: "hasMultipleStorageFiles", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "contentLength", + fieldName: "contentLength", + propertyType: "TEXT", + klass: "java.lang.Long", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + icons: { + klass: "org.hisp.dhis.icon.Icon", + shareable: false, + metadata: false, + relativeApiEndpoint: "/icons", + plural: "icons", + displayName: "Icon", + collectionName: "icons", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "icon", + persisted: false, + embeddedObject: false, + properties: [], + }, + indicators: { + klass: "org.hisp.dhis.indicator.Indicator", + shareable: true, + metadata: true, + relativeApiEndpoint: "/indicators", + plural: "indicators", + displayName: "Indicator", + collectionName: "indicators", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "indicator", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "aggregateExportCategoryOptionCombo", + fieldName: "aggregateExportCategoryOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayNumeratorDescription", + fieldName: "displayNumeratorDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "denominatorDescription", + fieldName: "denominatorDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "indicatorType", + fieldName: "indicatorType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.indicator.IndicatorType", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDenominatorDescription", + fieldName: "displayDenominatorDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "numeratorDescription", + fieldName: "numeratorDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "indicatorGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.indicator.IndicatorGroup", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "url", fieldName: "url", propertyType: "URL", klass: "java.lang.String" }, + { + name: "numerator", + fieldName: "numerator", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "denominator", + fieldName: "denominator", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "annualized", + fieldName: "annualized", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "decimals", + fieldName: "decimals", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "dataSet", + fieldName: "dataSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "aggregateExportAttributeOptionCombo", + fieldName: "aggregateExportAttributeOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + indicatorGroups: { + klass: "org.hisp.dhis.indicator.IndicatorGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/indicatorGroups", + plural: "indicatorGroups", + displayName: "Indicator Group", + collectionName: "indicatorGroups", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "indicatorGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "indicator", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.indicator.Indicator", + }, + { + name: "indicatorGroupSet", + fieldName: "groupSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.indicator.IndicatorGroupSet", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + indicatorGroupSets: { + klass: "org.hisp.dhis.indicator.IndicatorGroupSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/indicatorGroupSets", + plural: "indicatorGroupSets", + displayName: "Indicator Group Set", + collectionName: "indicatorGroupSets", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "indicatorGroupSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "indicatorGroup", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.indicator.IndicatorGroup", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "compulsory", + fieldName: "compulsory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + indicatorTypes: { + klass: "org.hisp.dhis.indicator.IndicatorType", + shareable: false, + metadata: true, + relativeApiEndpoint: "/indicatorTypes", + plural: "indicatorTypes", + displayName: "Indicator Type", + collectionName: "indicatorTypes", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "indicatorType", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "number", + fieldName: "number", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "factor", + fieldName: "factor", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + interpretations: { + klass: "org.hisp.dhis.interpretation.Interpretation", + shareable: true, + metadata: false, + relativeApiEndpoint: "/interpretations", + plural: "interpretations", + displayName: "Interpretation", + collectionName: "interpretations", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "interpretation", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "visualization", + fieldName: "visualization", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.visualization.Visualization", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "likeByUser", + fieldName: "likedBy", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.User", + }, + { + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AnalyticsFavoriteType", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "reportTable", + fieldName: "reportTable", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.reporttable.ReportTable", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "text", fieldName: "text", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "map", + fieldName: "map", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.mapping.Map", + }, + { + name: "dataSet", + fieldName: "dataSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataset.DataSet", + }, + { + name: "likes", + fieldName: "likes", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "period", + fieldName: "period", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.period.Period", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "comment", + fieldName: "comments", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.interpretation.InterpretationComment", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "eventReport", + fieldName: "eventReport", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.eventreport.EventReport", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "mentions", + fieldName: "mentions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.interpretation.Mention", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "eventChart", + fieldName: "eventChart", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.eventchart.EventChart", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "chart", + fieldName: "chart", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.chart.Chart", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + interpretationComments: { + klass: "org.hisp.dhis.interpretation.InterpretationComment", + shareable: false, + metadata: false, + plural: "interpretationComments", + displayName: "Interpretation Comment", + collectionName: "interpretationComments", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "interpretationComment", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "mentions", + fieldName: "mentions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.interpretation.Mention", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "text", fieldName: "text", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + jobConfigurations: { + klass: "org.hisp.dhis.scheduling.JobConfiguration", + shareable: false, + metadata: true, + relativeApiEndpoint: "/jobConfigurations", + plural: "jobConfigurations", + displayName: "Job Configuration", + collectionName: "jobConfigurations", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "jobConfiguration", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "jobStatus", + fieldName: "jobStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.scheduling.JobStatus", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "enabled", + fieldName: "enabled", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "leaderOnlyJob", + fieldName: "leaderOnlyJob", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "jobType", + fieldName: "jobType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.scheduling.JobType", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "nextExecutionTime", + fieldName: "nextExecutionTime", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "cronExpression", + fieldName: "cronExpression", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "schedulingType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.scheduling.SchedulingType", + }, + { + name: "lastRuntimeExecution", + fieldName: "lastRuntimeExecution", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "delay", + fieldName: "delay", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "lastExecutedStatus", + fieldName: "lastExecutedStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.scheduling.JobStatus", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "jobParameters", + fieldName: "jobParameters", + propertyType: "TEXT", + klass: "org.hisp.dhis.scheduling.JobParameters", + }, + { + name: "lastExecuted", + fieldName: "lastExecuted", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "configurable", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "userUid", + fieldName: "userUid", + propertyType: "TEXT", + klass: "java.lang.String", + }, + ], + }, + dataStores: { + klass: "org.hisp.dhis.keyjsonvalue.KeyJsonValue", + shareable: true, + metadata: false, + relativeApiEndpoint: "/dataStore", + plural: "dataStores", + displayName: "Key Json Value", + collectionName: "dataStores", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "identifiableObject", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "namespace", + fieldName: "namespace", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "value", fieldName: "value", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "key", fieldName: "key", propertyType: "TEXT", klass: "java.lang.String" }, + ], + }, + legends: { + klass: "org.hisp.dhis.legend.Legend", + shareable: false, + metadata: false, + plural: "legends", + displayName: "Legend", + collectionName: "legends", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "legend", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "image", fieldName: "image", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "endValue", + fieldName: "endValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "color", fieldName: "color", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "startValue", + fieldName: "startValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + legendSets: { + klass: "org.hisp.dhis.legend.LegendSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/legendSets", + plural: "legendSets", + displayName: "Legend Set", + collectionName: "legendSets", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "legendSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "symbolizer", + fieldName: "symbolizer", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "legend", + fieldName: "legends", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.legend.Legend", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + maps: { + klass: "org.hisp.dhis.mapping.Map", + shareable: true, + metadata: true, + relativeApiEndpoint: "/maps", + plural: "maps", + displayName: "Map", + collectionName: "maps", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "map", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "basemap", + fieldName: "basemap", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "latitude", + fieldName: "latitude", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "mapView", + fieldName: "mapViews", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.mapping.MapView", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { + name: "longitude", + fieldName: "longitude", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "zoom", + fieldName: "zoom", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + mapViews: { + klass: "org.hisp.dhis.mapping.MapView", + shareable: false, + metadata: true, + relativeApiEndpoint: "/mapViews", + plural: "mapViews", + displayName: "Map View", + collectionName: "mapViews", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "mapView", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "dataElementGroupSetDimension", + fieldName: "dataElementGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + }, + { + name: "orgUnitField", + fieldName: "orgUnitField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnitChildren", + fieldName: "userOrganisationUnitChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attributeDimension", + fieldName: "attributeDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "eventCoordinateField", + fieldName: "eventCoordinateField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnit", + fieldName: "userOrganisationUnit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "organisationUnitSelectionMode", + fieldName: "organisationUnitSelectionMode", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.OrganisationUnitSelectionMode", + }, + { + name: "filterDimension", + fieldName: "filterDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "method", + fieldName: "method", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "renderingStrategy", + fieldName: "renderingStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.MapViewRenderingStrategy", + }, + { + name: "labels", + fieldName: "labels", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "topLimit", + fieldName: "topLimit", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "noDataColor", + fieldName: "noDataColor", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userOrganisationUnitGrandChildren", + fieldName: "userOrganisationUnitGrandChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "column", + fieldName: "columns", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "styleDataItem", + fieldName: "styleDataItem", + propertyType: "COMPLEX", + klass: "java.lang.Object", + }, + { + name: "labelFontColor", + fieldName: "labelFontColor", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "layer", fieldName: "layer", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "dataElementDimension", + fieldName: "dataElementDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "period", + fieldName: "periods", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.period.Period", + }, + { + name: "categoryDimension", + fieldName: "categoryDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryDimension", + }, + { + name: "labelFontStyle", + fieldName: "labelFontStyle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "radiusHigh", + fieldName: "radiusHigh", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "hideTitle", + fieldName: "hideTitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "eventClustering", + fieldName: "eventClustering", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "colorLow", + fieldName: "colorLow", + propertyType: "COLOR", + klass: "java.lang.String", + }, + { + name: "eventStatus", + fieldName: "eventStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.EventStatus", + }, + { + name: "opacity", + fieldName: "opacity", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "config", + fieldName: "config", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "colorScale", + fieldName: "colorScale", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "parentLevel", + fieldName: "parentLevel", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "parentGraphMap", + fieldName: "parentGraphMap", + propertyType: "COMPLEX", + klass: "java.util.Map", + }, + { + name: "itemOrganisationUnitGroup", + fieldName: "itemOrganisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programIndicatorDimension", + fieldName: "programIndicatorDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + }, + { + name: "labelFontSize", + fieldName: "labelFontSize", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "columnDimension", + fieldName: "columnDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "colorHigh", + fieldName: "colorHigh", + propertyType: "COLOR", + klass: "java.lang.String", + }, + { + name: "completedOnly", + fieldName: "completedOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "eventPointRadius", + fieldName: "eventPointRadius", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "areaRadius", + fieldName: "areaRadius", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "programStatus", + fieldName: "programStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramStatus", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dataDimensionItem", + fieldName: "dataDimensionItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DataDimensionItem", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetDimension", + fieldName: "categoryOptionGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + }, + { + name: "hidden", + fieldName: "hidden", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "thematicMapType", + fieldName: "thematicMapType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.ThematicMapType", + }, + { + name: "classes", + fieldName: "classes", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "hideSubtitle", + fieldName: "hideSubtitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitGroupSetDimension", + fieldName: "organisationUnitGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "organisationUnitGroupSet", + fieldName: "organisationUnitGroupSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSet", + }, + { + name: "followUp", + fieldName: "followUp", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "eventPointColor", + fieldName: "eventPointColor", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "labelFontWeight", + fieldName: "labelFontWeight", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "timeField", + fieldName: "timeField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "filter", + fieldName: "filters", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "parentGraph", + fieldName: "parentGraph", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "row", + fieldName: "rows", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "radiusLow", + fieldName: "radiusLow", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "digitGroupSeparator", + fieldName: "digitGroupSeparator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DigitGroupSeparator", + }, + { + name: "trackedEntityType", + fieldName: "trackedEntityType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityType", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "userOrgUnitType", + fieldName: "userOrgUnitType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.UserOrgUnitType", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + ], + }, + messageConversations: { + klass: "org.hisp.dhis.message.MessageConversation", + shareable: false, + metadata: false, + relativeApiEndpoint: "/messageConversations", + plural: "messageConversations", + displayName: "Message Conversation", + collectionName: "messageConversations", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "messageConversation", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "messageCount", + fieldName: "messageCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "subject", + fieldName: "subject", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "followUp", + fieldName: "followUp", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "messageType", + fieldName: "messageType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.message.MessageType", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userMessage", + fieldName: "userMessages", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.message.UserMessage", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "userSurname", + fieldName: "userSurname", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "lastSenderSurname", + fieldName: "lastSenderSurname", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "read", + fieldName: "read", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "lastSender", + fieldName: "lastSender", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "lastMessage", + fieldName: "lastMessage", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "priority", + fieldName: "priority", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.message.MessageConversationPriority", + }, + { + name: "lastSenderFirstname", + fieldName: "lastSenderFirstname", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "message", + fieldName: "messages", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.message.Message", + }, + { + name: "userFirstname", + fieldName: "userFirstname", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "assignee", + fieldName: "assignee", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "status", + fieldName: "status", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.message.MessageConversationStatus", + }, + ], + }, + metadataVersions: { + klass: "org.hisp.dhis.metadata.version.MetadataVersion", + shareable: false, + metadata: false, + relativeApiEndpoint: "/metadata/version", + plural: "metadataVersions", + displayName: "Metadata Version", + collectionName: "metadataVersions", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "metadataVersion", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.metadata.version.VersionType", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "importDate", + fieldName: "importDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "hashCode", + fieldName: "hashCode", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + minMaxDataElements: { + klass: "org.hisp.dhis.minmax.MinMaxDataElement", + shareable: false, + metadata: false, + relativeApiEndpoint: "/minMaxDataElements", + plural: "minMaxDataElements", + displayName: "Min Max Data Element", + collectionName: "minMaxDataElements", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "minMaxDataElement", + persisted: true, + embeddedObject: false, + properties: [ + { name: "min", fieldName: "min", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "generated", + fieldName: "generated", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "max", fieldName: "max", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "source", + fieldName: "source", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "optionCombo", + fieldName: "optionCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + ], + }, + oAuth2Clients: { + klass: "org.hisp.dhis.security.oauth2.OAuth2Client", + shareable: false, + metadata: true, + relativeApiEndpoint: "/oAuth2Clients", + plural: "oAuth2Clients", + displayName: "O Auth2 Client", + collectionName: "oAuth2Clients", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "oAuth2Client", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "secret", + fieldName: "secret", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "redirectUri", + fieldName: "redirectUris", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "grantType", + fieldName: "grantTypes", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "cid", + fieldName: "cid", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + ], + }, + options: { + klass: "org.hisp.dhis.option.Option", + shareable: false, + metadata: true, + relativeApiEndpoint: "/options", + plural: "options", + displayName: "Option", + collectionName: "options", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "option", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { name: "code", fieldName: "code", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + optionGroups: { + klass: "org.hisp.dhis.option.OptionGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/optionGroups", + plural: "optionGroups", + displayName: "Option Group", + collectionName: "optionGroups", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "optionGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "option", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.option.Option", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + optionGroupSets: { + klass: "org.hisp.dhis.option.OptionGroupSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/optionGroupSets", + plural: "optionGroupSets", + displayName: "Option Group Set", + collectionName: "optionGroupSets", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "optionGroupSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dimensionType", + fieldName: "dimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "optionGroup", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.option.OptionGroup", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "dimension", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "allItems", + fieldName: "allItems", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dimensionalKeywords", + fieldName: "dimensionalKeywords", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.DimensionalKeywords", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "dataDimension", + fieldName: "dataDimension", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "item", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + optionSets: { + klass: "org.hisp.dhis.option.OptionSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/optionSets", + plural: "optionSets", + displayName: "Option Set", + collectionName: "optionSets", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "optionSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "version", + fieldName: "version", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "valueType", + fieldName: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "option", + fieldName: "options", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.option.Option", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + organisationUnits: { + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + shareable: false, + metadata: true, + relativeApiEndpoint: "/organisationUnits", + plural: "organisationUnits", + displayName: "Organisation Unit", + collectionName: "organisationUnits", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "organisationUnit", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "parent", + fieldName: "parent", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "type", fieldName: "type", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "path", fieldName: "path", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "child", + fieldName: "children", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "organisationUnitGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "organisationUnit", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "level", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userItem", + fieldName: "users", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.User", + }, + { + name: "phoneNumber", + fieldName: "phoneNumber", + propertyType: "PHONENUMBER", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "program", + fieldName: "programs", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.Program", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "contactPerson", + fieldName: "contactPerson", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "openingDate", + fieldName: "openingDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "email", fieldName: "email", propertyType: "EMAIL", klass: "java.lang.String" }, + { + name: "address", + fieldName: "address", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "memberCount", + fieldName: "memberCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "leaf", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "url", fieldName: "url", propertyType: "URL", klass: "java.lang.String" }, + { + name: "closedDate", + fieldName: "closedDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "geometry", + fieldName: "geometry", + propertyType: "COMPLEX", + klass: "com.vividsolutions.jts.geom.Geometry", + }, + { + name: "comment", + fieldName: "comment", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + ], + }, + organisationUnitGroups: { + klass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/organisationUnitGroups", + plural: "organisationUnitGroups", + displayName: "Organisation Unit Group", + collectionName: "organisationUnitGroups", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "organisationUnitGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "symbol", + fieldName: "symbol", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "color", fieldName: "color", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "featureType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.organisationunit.FeatureType", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "organisationUnit", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "groupSet", + fieldName: "groupSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSet", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "geometry", + fieldName: "geometry", + propertyType: "COMPLEX", + klass: "com.vividsolutions.jts.geom.Geometry", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + organisationUnitGroupSets: { + klass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/organisationUnitGroupSets", + plural: "organisationUnitGroupSets", + displayName: "Organisation Unit Group Set", + collectionName: "organisationUnitGroupSets", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "organisationUnitGroupSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dimensionType", + fieldName: "dimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "organisationUnitGroup", + fieldName: "organisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { name: "dimension", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "allItems", + fieldName: "allItems", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dimensionalKeywords", + fieldName: "dimensionalKeywords", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.DimensionalKeywords", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "compulsory", + fieldName: "compulsory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "includeSubhierarchyInAnalytics", + fieldName: "includeSubhierarchyInAnalytics", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "dataDimension", + fieldName: "dataDimension", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "item", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + organisationUnitGroupSetDimensions: { + klass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + shareable: false, + metadata: false, + plural: "organisationUnitGroupSetDimensions", + displayName: "Organisation Unit Group Set Dimension", + collectionName: "organisationUnitGroupSetDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "organisationUnitGroupSetDimension", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "organisationUnitGroupSet", + fieldName: "dimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSet", + }, + { + name: "organisationUnitGroup", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + ], + }, + organisationUnitLevels: { + klass: "org.hisp.dhis.organisationunit.OrganisationUnitLevel", + shareable: false, + metadata: true, + relativeApiEndpoint: "/organisationUnitLevels", + plural: "organisationUnitLevels", + displayName: "Organisation Unit Level", + collectionName: "organisationUnitLevels", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "organisationUnitLevel", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "offlineLevels", + fieldName: "offlineLevels", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "level", + fieldName: "level", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + predictors: { + klass: "org.hisp.dhis.predictor.Predictor", + shareable: false, + metadata: true, + relativeApiEndpoint: "/predictors", + plural: "predictors", + displayName: "Predictor", + collectionName: "predictors", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "Predictor", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "outputCombo", + fieldName: "outputCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "generator", + fieldName: "generator", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.expression.Expression", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitLevel", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "output", + fieldName: "output", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "sampleSkipTest", + fieldName: "sampleSkipTest", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.expression.Expression", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "sequentialSampleCount", + fieldName: "sequentialSampleCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "annualSampleCount", + fieldName: "annualSampleCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sequentialSkipCount", + fieldName: "sequentialSkipCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "predictorGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.predictor.PredictorGroup", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "periodType", + fieldName: "periodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + predictorGroups: { + klass: "org.hisp.dhis.predictor.PredictorGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/predictorGroups", + plural: "predictorGroups", + displayName: "Predictor Group", + collectionName: "predictorGroups", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "predictorGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "predictor", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.predictor.Predictor", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programs: { + klass: "org.hisp.dhis.program.Program", + shareable: true, + metadata: true, + relativeApiEndpoint: "/programs", + plural: "programs", + displayName: "Program", + collectionName: "programs", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "program", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataEntryForm", + fieldName: "dataEntryForm", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataentryform.DataEntryForm", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "ignoreOverdueEvents", + fieldName: "ignoreOverdueEvents", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "skipOffline", + fieldName: "skipOffline", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programIndicator", + fieldName: "programIndicators", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramIndicator", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "enrollmentDateLabel", + fieldName: "enrollmentDateLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "onlyEnrollOnce", + fieldName: "onlyEnrollOnce", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "version", + fieldName: "version", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "maxTeiCountToReturn", + fieldName: "maxTeiCountToReturn", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "selectIncidentDatesInFuture", + fieldName: "selectIncidentDatesInFuture", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "incidentDateLabel", + fieldName: "incidentDateLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userRole", + fieldName: "userRoles", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAuthorityGroup", + }, + { + name: "expiryPeriodType", + fieldName: "expiryPeriodType", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "selectEnrollmentDatesInFuture", + fieldName: "selectEnrollmentDatesInFuture", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "registration", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "useFirstStageDuringRegistration", + fieldName: "useFirstStageDuringRegistration", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "programRuleVariable", + fieldName: "programRuleVariables", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.programrule.ProgramRuleVariable", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "programTrackedEntityAttribute", + fieldName: "programAttributes", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.program.ProgramTrackedEntityAttribute", + }, + { + name: "completeEventsExpiryDays", + fieldName: "completeEventsExpiryDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "relatedProgram", + fieldName: "relatedProgram", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "withoutRegistration", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "notificationTemplate", + fieldName: "notificationTemplates", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.notification.ProgramNotificationTemplate", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "featureType", + fieldName: "featureType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.organisationunit.FeatureType", + }, + { + name: "minAttributesRequiredToSearch", + fieldName: "minAttributesRequiredToSearch", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "displayFrontPageList", + fieldName: "displayFrontPageList", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "programType", + fieldName: "programType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramType", + }, + { + name: "accessLevel", + fieldName: "accessLevel", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.AccessLevel", + }, + { + name: "programSection", + fieldName: "programSections", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramSection", + }, + { + name: "programStage", + fieldName: "programStages", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "trackedEntityType", + fieldName: "trackedEntityType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityType", + }, + { + name: "displayIncidentDate", + fieldName: "displayIncidentDate", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "expiryDays", + fieldName: "expiryDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + ], + }, + programDataElements: { + klass: "org.hisp.dhis.program.ProgramDataElementDimensionItem", + shareable: false, + metadata: false, + relativeApiEndpoint: "/programDataElements", + plural: "programDataElements", + displayName: "Program Data Element Dimension Item", + collectionName: "programDataElements", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "programDataElement", + persisted: false, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + programIndicators: { + klass: "org.hisp.dhis.program.ProgramIndicator", + shareable: true, + metadata: true, + relativeApiEndpoint: "/programIndicators", + plural: "programIndicators", + displayName: "Program Indicator", + collectionName: "programIndicators", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programIndicator", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayInForm", + fieldName: "displayInForm", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "aggregateExportCategoryOptionCombo", + fieldName: "aggregateExportCategoryOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "programIndicatorGroups", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramIndicatorGroup", + }, + { + name: "analyticsPeriodBoundary", + fieldName: "analyticsPeriodBoundaries", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.AnalyticsPeriodBoundary", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "expression", + fieldName: "expression", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "decimals", + fieldName: "decimals", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "analyticsType", + fieldName: "analyticsType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.AnalyticsType", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "aggregateExportAttributeOptionCombo", + fieldName: "aggregateExportAttributeOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + programIndicatorGroups: { + klass: "org.hisp.dhis.program.ProgramIndicatorGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/programIndicatorGroups", + plural: "programIndicatorGroups", + displayName: "Program Indicator Group", + collectionName: "programIndicatorGroups", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programIndicatorGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programIndicator", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramIndicator", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programInstances: { + klass: "org.hisp.dhis.program.ProgramInstance", + shareable: false, + metadata: false, + plural: "programInstances", + displayName: "Program Instance", + collectionName: "programInstances", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "programInstance", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "enrollmentDate", + fieldName: "enrollmentDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdAtClient", + fieldName: "createdAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "messageConversation", + fieldName: "messageConversations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.message.MessageConversation", + }, + { + name: "trackedEntityComment", + fieldName: "comments", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentitycomment.TrackedEntityComment", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "relationshipItem", + fieldName: "relationshipItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.relationship.RelationshipItem", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "programStageInstance", + fieldName: "programStageInstances", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramStageInstance", + }, + { + name: "trackedEntityInstance", + fieldName: "entityInstance", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityInstance", + }, + { + name: "followup", + fieldName: "followup", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "deleted", + fieldName: "deleted", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "geometry", + fieldName: "geometry", + propertyType: "COMPLEX", + klass: "com.vividsolutions.jts.geom.Geometry", + }, + { + name: "incidentDate", + fieldName: "incidentDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "completedBy", + fieldName: "completedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "status", + fieldName: "status", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramStatus", + }, + { + name: "lastUpdatedAtClient", + fieldName: "lastUpdatedAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + ], + }, + programNotificationTemplates: { + klass: "org.hisp.dhis.program.notification.ProgramNotificationTemplate", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programNotificationTemplates", + plural: "programNotificationTemplates", + displayName: "Program Notification Template", + collectionName: "programNotificationTemplates", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programNotificationTemplate", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "notificationTrigger", + fieldName: "notificationTrigger", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.notification.NotificationTrigger", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "relativeScheduledDays", + fieldName: "relativeScheduledDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "subjectTemplate", + fieldName: "subjectTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "deliveryChannels", + fieldName: "deliveryChannels", + propertyType: "COLLECTION", + itemPropertyType: "CONSTANT", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.common.DeliveryChannel", + }, + { + name: "recipientDataElement", + fieldName: "recipientDataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { name: "displaySubjectTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "notifyUsersInHierarchyOnly", + fieldName: "notifyUsersInHierarchyOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "notificationRecipient", + fieldName: "notificationRecipient", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.notification.ProgramNotificationRecipient", + }, + { + name: "recipientProgramAttribute", + fieldName: "recipientProgramAttribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "notifyParentOrganisationUnitOnly", + fieldName: "notifyParentOrganisationUnitOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayMessageTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "recipientUserGroup", + fieldName: "recipientUserGroup", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.UserGroup", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "messageTemplate", + fieldName: "messageTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + ], + }, + programRules: { + klass: "org.hisp.dhis.programrule.ProgramRule", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programRules", + plural: "programRules", + displayName: "Program Rule", + collectionName: "programRules", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programRule", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "priority", + fieldName: "priority", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "condition", + fieldName: "condition", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "programRuleAction", + fieldName: "programRuleActions", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.programrule.ProgramRuleAction", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programRuleActions: { + klass: "org.hisp.dhis.programrule.ProgramRuleAction", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programRuleActions", + plural: "programRuleActions", + displayName: "Program Rule Action", + collectionName: "programRuleActions", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programRuleAction", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "evaluationEnvironment", + fieldName: "programRuleActionEvaluationEnvironments", + propertyType: "COLLECTION", + itemPropertyType: "CONSTANT", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.programrule.ProgramRuleActionEvaluationEnvironment", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "data", fieldName: "data", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "optionGroup", + fieldName: "optionGroup", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionGroup", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "templateUid", + fieldName: "templateUid", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "content", + fieldName: "content", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "trackedEntityAttribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayContent", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "programIndicator", + fieldName: "programIndicator", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramIndicator", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "programRule", + fieldName: "programRule", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.programrule.ProgramRule", + }, + { + name: "programStageSection", + fieldName: "programStageSection", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStageSection", + }, + { + name: "programRuleActionType", + fieldName: "programRuleActionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.programrule.ProgramRuleActionType", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "evaluationTime", + fieldName: "programRuleActionEvaluationTime", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.programrule.ProgramRuleActionEvaluationTime", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "location", + fieldName: "location", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "option", + fieldName: "option", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.Option", + }, + ], + }, + programRuleVariables: { + klass: "org.hisp.dhis.programrule.ProgramRuleVariable", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programRuleVariables", + plural: "programRuleVariables", + displayName: "Program Rule Variable", + collectionName: "programRuleVariables", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "programRuleVariable", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "programRuleVariableSourceType", + fieldName: "sourceType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.programrule.ProgramRuleVariableSourceType", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "trackedEntityAttribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "useCodeForOptionSet", + fieldName: "useCodeForOptionSet", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programSections: { + klass: "org.hisp.dhis.program.ProgramSection", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programSections", + plural: "programSections", + displayName: "Program Section", + collectionName: "programSections", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programSection", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "renderType", + fieldName: "renderType", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.render.DeviceRenderTypeMap", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "trackedEntityAttributes", + fieldName: "trackedEntityAttributes", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programStages: { + klass: "org.hisp.dhis.program.ProgramStage", + shareable: true, + metadata: true, + relativeApiEndpoint: "/programStages", + plural: "programStages", + displayName: "Program Stage", + collectionName: "programStages", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "programStage", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataEntryForm", + fieldName: "dataEntryForm", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataentryform.DataEntryForm", + }, + { + name: "allowGenerateNextVisit", + fieldName: "allowGenerateNextVisit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "reportDateToUse", + fieldName: "reportDateToUse", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "programStageDataElement", + fieldName: "programStageDataElements", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramStageDataElement", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "formType", propertyType: "CONSTANT", klass: "org.hisp.dhis.dataset.FormType" }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "generatedByEnrollmentDate", + fieldName: "generatedByEnrollmentDate", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideDueDate", + fieldName: "hideDueDate", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "enableUserAssignment", + fieldName: "enableUserAssignment", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "minDaysFromStart", + fieldName: "minDaysFromStart", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "standardInterval", + fieldName: "standardInterval", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "dueDateLabel", + fieldName: "dueDateLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "executionDateLabel", + fieldName: "executionDateLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "preGenerateUID", + fieldName: "preGenerateUID", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "notificationTemplate", + fieldName: "notificationTemplates", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.notification.ProgramNotificationTemplate", + }, + { + name: "openAfterEnrollment", + fieldName: "openAfterEnrollment", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "repeatable", + fieldName: "repeatable", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "featureType", + fieldName: "featureType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.organisationunit.FeatureType", + }, + { + name: "remindCompleted", + fieldName: "remindCompleted", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayGenerateEventBox", + fieldName: "displayGenerateEventBox", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "nextScheduleDate", + fieldName: "nextScheduleDate", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "validationStrategy", + fieldName: "validationStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ValidationStrategy", + }, + { + name: "autoGenerateEvent", + fieldName: "autoGenerateEvent", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "periodType", + fieldName: "periodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "blockEntryForm", + fieldName: "blockEntryForm", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStageSection", + fieldName: "programStageSections", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramStageSection", + }, + ], + }, + programStageDataElements: { + klass: "org.hisp.dhis.program.ProgramStageDataElement", + shareable: false, + metadata: false, + plural: "programStageDataElements", + displayName: "Program Stage Data Element", + collectionName: "programStageDataElements", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "programStageDataElement", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "displayInReports", + fieldName: "displayInReports", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "skipSynchronization", + fieldName: "skipSynchronization", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "renderOptionsAsRadio", + fieldName: "renderOptionsAsRadio", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "allowFutureDate", + fieldName: "allowFutureDate", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "renderType", + fieldName: "renderType", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.render.DeviceRenderTypeMap", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "compulsory", + fieldName: "compulsory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "allowProvidedElsewhere", + fieldName: "allowProvidedElsewhere", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programStageInstances: { + klass: "org.hisp.dhis.program.ProgramStageInstance", + shareable: false, + metadata: false, + plural: "programStageInstances", + displayName: "Program Stage Instance", + collectionName: "programStageInstances", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "softDeletableObject", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "dueDate", + fieldName: "dueDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdAtClient", + fieldName: "createdAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "messageConversations", + fieldName: "messageConversations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.message.MessageConversation", + }, + { + name: "lastUpdatedByUserInfo", + fieldName: "lastUpdatedByUserInfo", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.program.UserInfoSnapshot", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "eventDataValues", + fieldName: "eventDataValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.eventdatavalue.EventDataValue", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "relationshipItem", + fieldName: "relationshipItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.relationship.RelationshipItem", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "createdByUserInfo", + fieldName: "createdByUserInfo", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.program.UserInfoSnapshot", + }, + { + name: "assignedUser", + fieldName: "assignedUser", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "comments", + fieldName: "comments", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentitycomment.TrackedEntityComment", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "creatableInSearchScope", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { name: "completed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "completedDate", + fieldName: "completedDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "programInstance", + fieldName: "programInstance", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramInstance", + }, + { + name: "deleted", + fieldName: "deleted", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "attributeOptionCombo", + fieldName: "attributeOptionCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "geometry", + fieldName: "geometry", + propertyType: "COMPLEX", + klass: "com.vividsolutions.jts.geom.Geometry", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "completedBy", + fieldName: "completedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "status", + fieldName: "status", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.event.EventStatus", + }, + { + name: "lastUpdatedAtClient", + fieldName: "lastUpdatedAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "eventDate", + fieldName: "executionDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + ], + }, + eventFilters: { + klass: "org.hisp.dhis.programstagefilter.ProgramStageInstanceFilter", + shareable: true, + metadata: true, + relativeApiEndpoint: "/eventFilters", + plural: "eventFilters", + displayName: "Program Stage Instance Filter", + collectionName: "eventFilters", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programStageInstanceFilter", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "eventQueryCriteria", + fieldName: "eventQueryCriteria", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.programstagefilter.EventQueryCriteria", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programStageSections: { + klass: "org.hisp.dhis.program.ProgramStageSection", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programStageSections", + plural: "programStageSections", + displayName: "Program Stage Section", + collectionName: "programStageSections", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programStageSection", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programIndicator", + fieldName: "programIndicators", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.program.ProgramIndicator", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "renderType", + fieldName: "renderType", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.render.DeviceRenderTypeMap", + }, + { + name: "dataElement", + fieldName: "dataElements", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programTrackedEntityAttributes: { + klass: "org.hisp.dhis.program.ProgramTrackedEntityAttribute", + shareable: false, + metadata: false, + plural: "programTrackedEntityAttributes", + displayName: "Program Tracked Entity Attribute", + collectionName: "programTrackedEntityAttributes", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "programTrackedEntityAttribute", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "programTrackedEntityAttributeGroups", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramTrackedEntityAttributeGroup", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "mandatory", + fieldName: "mandatory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "trackedEntityAttribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "renderOptionsAsRadio", + fieldName: "renderOptionsAsRadio", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "allowFutureDate", + fieldName: "allowFutureDate", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "renderType", + fieldName: "renderType", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.render.DeviceRenderTypeMap", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "searchable", + fieldName: "searchable", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayInList", + fieldName: "displayInList", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + ProgramTrackedEntityAttributeDimensionItems: { + klass: "org.hisp.dhis.program.ProgramTrackedEntityAttributeDimensionItem", + shareable: false, + metadata: false, + plural: "ProgramTrackedEntityAttributeDimensionItems", + displayName: "Program Tracked Entity Attribute Dimension Item", + collectionName: "ProgramTrackedEntityAttributeDimensionItems", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "programAttributeDimension", + persisted: false, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "attribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + programTrackedEntityAttributeGroups: { + klass: "org.hisp.dhis.program.ProgramTrackedEntityAttributeGroup", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programTrackedEntityAttributeGroups", + plural: "programTrackedEntityAttributeGroups", + displayName: "Program Tracked Entity Attribute Group", + collectionName: "programTrackedEntityAttributeGroups", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programTrackedEntityAttributeGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "uniqunessType", + fieldName: "uniqunessType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.UniqunessType", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attribute", + fieldName: "attributes", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramTrackedEntityAttribute", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + pushAnalysis: { + klass: "org.hisp.dhis.pushanalysis.PushAnalysis", + shareable: false, + metadata: true, + relativeApiEndpoint: "/pushAnalysis", + plural: "pushAnalysis", + displayName: "Push Analysis", + collectionName: "pushAnalysis", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "pushanalysis", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "recipientUserGroups", + fieldName: "recipientUserGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "message", + fieldName: "message", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dashboard", + fieldName: "dashboard", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dashboard.Dashboard", + }, + ], + }, + relationships: { + klass: "org.hisp.dhis.relationship.Relationship", + shareable: false, + metadata: false, + relativeApiEndpoint: "/relationships", + plural: "relationships", + displayName: "Relationship", + collectionName: "relationships", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "relationship", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "from", + fieldName: "from", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.relationship.RelationshipItem", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "relationshipType", + fieldName: "relationshipType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.relationship.RelationshipType", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "to", + fieldName: "to", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.relationship.RelationshipItem", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + relationshipTypes: { + klass: "org.hisp.dhis.relationship.RelationshipType", + shareable: true, + metadata: true, + relativeApiEndpoint: "/relationshipTypes", + plural: "relationshipTypes", + displayName: "Relationship Type", + collectionName: "relationshipTypes", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "relationshipType", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "bidirectional", + fieldName: "bidirectional", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "fromToName", + fieldName: "fromToName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayFromToName", + fieldName: "displayFromToName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "toConstraint", + fieldName: "toConstraint", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.relationship.RelationshipConstraint", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "toFromName", + fieldName: "toFromName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayToFromName", + fieldName: "displayToFromName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "fromConstraint", + fieldName: "fromConstraint", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.relationship.RelationshipConstraint", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + reports: { + klass: "org.hisp.dhis.report.Report", + shareable: true, + metadata: true, + relativeApiEndpoint: "/reports", + plural: "reports", + displayName: "Report", + collectionName: "reports", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "report", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "designContent", + fieldName: "designContent", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "visualization", + fieldName: "visualization", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.visualization.Visualization", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.report.ReportType", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "reportParams", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.visualization.ReportingParams", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "cacheStrategy", + fieldName: "cacheStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.cache.CacheStrategy", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + reportTables: { + klass: "org.hisp.dhis.reporttable.ReportTable", + shareable: false, + metadata: true, + relativeApiEndpoint: "/reportTables", + plural: "reportTables", + displayName: "Report Table", + collectionName: "reportTables", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "reportTable", + persisted: false, + embeddedObject: false, + properties: [ + { + name: "dataElementGroupSetDimension", + fieldName: "dataElementGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + }, + { + name: "orgUnitField", + fieldName: "orgUnitField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "numberType", + fieldName: "numberType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.NumberType", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnitChildren", + fieldName: "userOrganisationUnitChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendDisplayStyle", + fieldName: "legendDisplayStyle", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.legend.LegendDisplayStyle", + }, + { + name: "hideEmptyColumns", + fieldName: "hideEmptyColumns", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "measureCriteria", + fieldName: "measureCriteria", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideEmptyRows", + fieldName: "hideEmptyRows", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeDimension", + fieldName: "attributeDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "reportParams", + fieldName: "reportParams", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.reporttable.ReportParams", + }, + { + name: "parentGraphMap", + fieldName: "parentGraphMap", + propertyType: "COMPLEX", + klass: "java.util.Map", + }, + { + name: "userOrganisationUnit", + fieldName: "userOrganisationUnit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "filterDimension", + fieldName: "filterDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "rowSubTotals", + fieldName: "rowSubTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { + name: "itemOrganisationUnitGroup", + fieldName: "itemOrganisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "displayDensity", + fieldName: "displayDensity", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DisplayDensity", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "programIndicatorDimension", + fieldName: "programIndicatorDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "columnDimension", + fieldName: "columnDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "completedOnly", + fieldName: "completedOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "colTotals", + fieldName: "colTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "showDimensionLabels", + fieldName: "showDimensionLabels", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "fontSize", + fieldName: "fontSize", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.FontSize", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "topLimit", + fieldName: "topLimit", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionItem", + fieldName: "dataDimensionItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DataDimensionItem", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetDimension", + fieldName: "categoryOptionGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userOrganisationUnitGrandChildren", + fieldName: "userOrganisationUnitGrandChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "column", + fieldName: "columns", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "hideSubtitle", + fieldName: "hideSubtitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitGroupSetDimension", + fieldName: "organisationUnitGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "legendDisplayStrategy", + fieldName: "legendDisplayStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.legend.LegendDisplayStrategy", + }, + { + name: "colSubTotals", + fieldName: "colSubTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "dataElementDimension", + fieldName: "dataElementDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "period", + fieldName: "periods", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.period.Period", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "categoryDimension", + fieldName: "categoryDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryDimension", + }, + { + name: "showHierarchy", + fieldName: "showHierarchy", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rowTotals", + fieldName: "rowTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "timeField", + fieldName: "timeField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "filter", + fieldName: "filters", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "cumulative", + fieldName: "cumulative", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "row", + fieldName: "rows", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "digitGroupSeparator", + fieldName: "digitGroupSeparator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DigitGroupSeparator", + }, + { + name: "hideTitle", + fieldName: "hideTitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rowDimension", + fieldName: "rowDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "regression", + fieldName: "regression", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "userOrgUnitType", + fieldName: "userOrgUnitType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.UserOrgUnitType", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "skipRounding", + fieldName: "skipRounding", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + ], + }, + reportingRates: { + klass: "org.hisp.dhis.common.ReportingRate", + shareable: false, + metadata: false, + plural: "reportingRates", + displayName: "Reporting Rate", + collectionName: "reportingRates", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "reportingRate", + persisted: false, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataset.DataSet", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "metric", + fieldName: "metric", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ReportingRateMetric", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + smsCommands: { + klass: "org.hisp.dhis.sms.command.SMSCommand", + shareable: false, + metadata: true, + relativeApiEndpoint: "/smsCommands", + plural: "smsCommands", + displayName: "S M S Command", + collectionName: "smsCommands", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "smscommand", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "moreThanOneOrgUnitMessage", + fieldName: "moreThanOneOrgUnitMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "smsCode", + fieldName: "codes", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.sms.command.code.SMSCode", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "specialCharacter", + fieldName: "specialCharacters", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.sms.command.SMSSpecialCharacter", + }, + { + name: "currentPeriodUsedForReporting", + fieldName: "currentPeriodUsedForReporting", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "noUserMessage", + fieldName: "noUserMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "receivedMessage", + fieldName: "receivedMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "defaultMessage", + fieldName: "defaultMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "userGroup", + fieldName: "userGroup", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "completenessMethod", + fieldName: "completenessMethod", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.sms.command.CompletenessMethod", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "wrongFormatMessage", + fieldName: "wrongFormatMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "separator", + fieldName: "separator", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "successMessage", + fieldName: "successMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "codeValueSeparator", + fieldName: "codeValueSeparator", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "parserType", + fieldName: "parserType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.sms.parse.ParserType", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "dataset", + fieldName: "dataset", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataset.DataSet", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + sections: { + klass: "org.hisp.dhis.dataset.Section", + shareable: false, + metadata: true, + relativeApiEndpoint: "/sections", + plural: "sections", + displayName: "Section", + collectionName: "sections", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "section", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "greyedField", + fieldName: "greyedFields", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataelement.DataElementOperand", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "disableDataElementAutoGroup", + fieldName: "disableDataElementAutoGroup", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "categoryCombos", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryCombo", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataset.DataSet", + }, + { + name: "dataElement", + fieldName: "dataElements", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "showColumnTotals", + fieldName: "showColumnTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "indicator", + fieldName: "indicators", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.indicator.Indicator", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "showRowTotals", + fieldName: "showRowTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + sqlViews: { + klass: "org.hisp.dhis.sqlview.SqlView", + shareable: true, + metadata: true, + relativeApiEndpoint: "/sqlViews", + plural: "sqlViews", + displayName: "Sql View", + collectionName: "sqlViews", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "sqlView", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "sqlQuery", + fieldName: "sqlQuery", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.sqlview.SqlViewType", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "cacheStrategy", + fieldName: "cacheStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.cache.CacheStrategy", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + trackedEntityAttributes: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + shareable: true, + metadata: true, + relativeApiEndpoint: "/trackedEntityAttributes", + plural: "trackedEntityAttributes", + displayName: "Tracked Entity Attribute", + collectionName: "trackedEntityAttributes", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "trackedEntityAttribute", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "generated", + fieldName: "generated", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + fieldName: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "confidential", + fieldName: "confidential", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "unique", + fieldName: "unique", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayInListNoProgram", + fieldName: "displayInListNoProgram", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "pattern", + fieldName: "pattern", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "skipSynchronization", + fieldName: "skipSynchronization", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrderInListNoProgram", + fieldName: "sortOrderInListNoProgram", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "displayOnVisitSchedule", + fieldName: "displayOnVisitSchedule", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sortOrderInVisitSchedule", + fieldName: "sortOrderInVisitSchedule", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "orgunitScope", + fieldName: "orgunitScope", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "fieldMask", + fieldName: "fieldMask", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "expression", + fieldName: "expression", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "inherit", + fieldName: "inherit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "optionSetValue", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + trackedEntityAttributeValues: { + klass: "org.hisp.dhis.trackedentityattributevalue.TrackedEntityAttributeValue", + shareable: false, + metadata: false, + plural: "trackedEntityAttributeValues", + displayName: "Tracked Entity Attribute Value", + collectionName: "trackedEntityAttributeValues", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "trackedEntityAttributeValue", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "value", fieldName: "value", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "trackedEntityAttribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "trackedEntityInstance", + fieldName: "entityInstance", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityInstance", + }, + ], + }, + trackedEntityDataElementDimensions: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + shareable: false, + metadata: false, + plural: "trackedEntityDataElementDimensions", + displayName: "Tracked Entity Data Element Dimension", + collectionName: "trackedEntityDataElementDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "dataElementDimension", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + ], + }, + trackedEntityInstances: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityInstance", + shareable: false, + metadata: false, + relativeApiEndpoint: "/trackedEntityInstances", + plural: "trackedEntityInstances", + displayName: "Tracked Entity Instance", + collectionName: "trackedEntityInstances", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "trackedEntityInstance", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "programOwners", + fieldName: "programOwners", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramOwner", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "programInstance", + fieldName: "programInstances", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramInstance", + }, + { + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "createdAtClient", + fieldName: "createdAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "inactive", + fieldName: "inactive", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "relationshipItem", + fieldName: "relationshipItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.relationship.RelationshipItem", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "deleted", + fieldName: "deleted", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "trackedEntityType", + fieldName: "trackedEntityType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityType", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "geometry", + fieldName: "geometry", + propertyType: "COMPLEX", + klass: "com.vividsolutions.jts.geom.Geometry", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "trackedEntityAttributeValue", + fieldName: "trackedEntityAttributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.trackedentityattributevalue.TrackedEntityAttributeValue", + }, + { + name: "lastUpdatedAtClient", + fieldName: "lastUpdatedAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + ], + }, + trackedEntityInstanceFilters: { + klass: "org.hisp.dhis.trackedentityfilter.TrackedEntityInstanceFilter", + shareable: false, + metadata: true, + relativeApiEndpoint: "/trackedEntityInstanceFilters", + plural: "trackedEntityInstanceFilters", + displayName: "Tracked Entity Instance Filter", + collectionName: "trackedEntityInstanceFilters", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "trackedEntityInstanceFilter", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "enrollmentCreatedPeriod", + fieldName: "enrollmentCreatedPeriod", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.trackedentityfilter.FilterPeriod", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "followup", + fieldName: "followup", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "eventFilters", + fieldName: "eventFilters", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentityfilter.EventFilter", + }, + { + name: "enrollmentStatus", + fieldName: "enrollmentStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramStatus", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataElementDimensions: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + shareable: false, + metadata: false, + plural: "dataElementDimensions", + displayName: "Tracked Entity Program Indicator Dimension", + collectionName: "dataElementDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "programIndicatorDimension", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "programIndicator", + fieldName: "programIndicator", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramIndicator", + }, + ], + }, + trackedEntityTypes: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityType", + shareable: true, + metadata: true, + relativeApiEndpoint: "/trackedEntityTypes", + plural: "trackedEntityTypes", + displayName: "Tracked Entity Type", + collectionName: "trackedEntityTypes", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "trackedEntityType", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "trackedEntityTypeAttribute", + fieldName: "trackedEntityTypeAttributes", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityTypeAttribute", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "allowAuditLog", + fieldName: "allowAuditLog", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "featureType", + fieldName: "featureType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.organisationunit.FeatureType", + }, + { + name: "minAttributesRequiredToSearch", + fieldName: "minAttributesRequiredToSearch", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "maxTeiCountToReturn", + fieldName: "maxTeiCountToReturn", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + trackedEntityTypeAttributes: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityTypeAttribute", + shareable: false, + metadata: false, + plural: "trackedEntityTypeAttributes", + displayName: "Tracked Entity Type Attribute", + collectionName: "trackedEntityTypeAttributes", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "trackedEntityTypeAttribute", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "mandatory", + fieldName: "mandatory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "trackedEntityAttribute", + fieldName: "trackedEntityAttribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "searchable", + fieldName: "searchable", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayInList", + fieldName: "displayInList", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "trackedEntityType", + fieldName: "trackedEntityType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityType", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + users: { + klass: "org.hisp.dhis.user.User", + shareable: false, + metadata: true, + relativeApiEndpoint: "/users", + plural: "users", + displayName: "User", + collectionName: "users", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "user", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "birthday", + fieldName: "birthday", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "education", + fieldName: "education", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "gender", + fieldName: "gender", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "jobTitle", + fieldName: "jobTitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "skype", fieldName: "skype", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "teiSearchOrganisationUnit", + fieldName: "teiSearchOrganisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "twitter", + fieldName: "twitter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "surname", + fieldName: "surname", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "employer", + fieldName: "employer", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "facebookMessenger", + fieldName: "facebookMessenger", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "introduction", + fieldName: "introduction", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "email", fieldName: "email", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "dataViewOrganisationUnit", + fieldName: "dataViewOrganisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "whatsApp", + fieldName: "whatsApp", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "languages", + fieldName: "languages", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "welcomeMessage", + fieldName: "welcomeMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userCredentials", + fieldName: "userCredentials", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.UserCredentials", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "telegram", + fieldName: "telegram", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "avatar", + fieldName: "avatar", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.fileresource.FileResource", + }, + { + name: "lastCheckedInterpretations", + fieldName: "lastCheckedInterpretations", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "userGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "firstName", + fieldName: "firstName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "phoneNumber", + fieldName: "phoneNumber", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "nationality", + fieldName: "nationality", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "interests", + fieldName: "interests", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + userAccesses: { + klass: "org.hisp.dhis.user.UserAccess", + shareable: false, + metadata: false, + plural: "userAccesses", + displayName: "User Access", + collectionName: "userAccesses", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "userAccess", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "access", + fieldName: "access", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "userUid", propertyType: "TEXT", klass: "java.lang.String" }, + ], + }, + userRoles: { + klass: "org.hisp.dhis.user.UserAuthorityGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/userRoles", + plural: "userRoles", + displayName: "User Authority Group", + collectionName: "userRoles", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "userRole", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "authority", + fieldName: "authorities", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "userObject", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.user.User", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + userCredentials: { + klass: "org.hisp.dhis.user.UserCredentials", + shareable: false, + metadata: false, + plural: "userCredentials", + displayName: "User Credentials", + collectionName: "userCredentials", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "userCredentials", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastLogin", + fieldName: "lastLogin", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "userInfo", + fieldName: "userInfo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "openId", + fieldName: "openId", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAuth", + fieldName: "externalAuth", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "cogsDimensionConstraint", + fieldName: "cogsDimensionConstraints", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSet", + }, + { + name: "catDimensionConstraint", + fieldName: "catDimensionConstraints", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.Category", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "password", + fieldName: "password", + propertyType: "PASSWORD", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "ldapId", + fieldName: "ldapId", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "disabled", + fieldName: "disabled", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "twoFA", + fieldName: "twoFA", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "passwordLastUpdated", + fieldName: "passwordLastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "invitation", + fieldName: "invitation", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "selfRegistered", + fieldName: "selfRegistered", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userRole", + fieldName: "userAuthorityGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAuthorityGroup", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "username", + fieldName: "username", + propertyType: "TEXT", + klass: "java.lang.String", + }, + ], + }, + userGroups: { + klass: "org.hisp.dhis.user.UserGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/userGroups", + plural: "userGroups", + displayName: "User Group", + collectionName: "userGroups", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "userGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "managedByGroup", + fieldName: "managedByGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "user", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.User", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "managedGroup", + fieldName: "managedGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + userGroupAccesses: { + klass: "org.hisp.dhis.user.UserGroupAccess", + shareable: false, + metadata: false, + plural: "userGroupAccesses", + displayName: "User Group Access", + collectionName: "userGroupAccesses", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "userGroupAccess", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "access", + fieldName: "access", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "userGroupUid", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + ], + }, + validationNotificationTemplates: { + klass: "org.hisp.dhis.validation.notification.ValidationNotificationTemplate", + shareable: false, + metadata: true, + relativeApiEndpoint: "/validationNotificationTemplates", + plural: "validationNotificationTemplates", + displayName: "Validation Notification Template", + collectionName: "validationNotificationTemplates", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "identifiableObject", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "recipientUserGroups", + fieldName: "recipientUserGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "subjectTemplate", + fieldName: "subjectTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sendStrategy", + fieldName: "sendStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.notification.SendStrategy", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "validationRules", + fieldName: "validationRules", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.validation.ValidationRule", + }, + { name: "displaySubjectTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "notifyUsersInHierarchyOnly", + fieldName: "notifyUsersInHierarchyOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "notifyParentOrganisationUnitOnly", + fieldName: "notifyParentOrganisationUnitOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayMessageTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "messageTemplate", + fieldName: "messageTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + ], + }, + validationResults: { + klass: "org.hisp.dhis.validation.ValidationResult", + shareable: false, + metadata: false, + relativeApiEndpoint: "/validationResults", + plural: "validationResults", + displayName: "Validation Result", + collectionName: "validationResults", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "validationResult", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "period", + fieldName: "period", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.period.Period", + }, + { + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "validationRule", + fieldName: "validationRule", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.validation.ValidationRule", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeOptionCombo", + fieldName: "attributeOptionCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { + name: "rightsideValue", + fieldName: "rightsideValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "id", fieldName: "id", propertyType: "TEXT", klass: "java.lang.Long" }, + { + name: "leftsideValue", + fieldName: "leftsideValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "notificationSent", + fieldName: "notificationSent", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dayInPeriod", + fieldName: "dayInPeriod", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + ], + }, + validationRules: { + klass: "org.hisp.dhis.validation.ValidationRule", + shareable: true, + metadata: true, + relativeApiEndpoint: "/validationRules", + plural: "validationRules", + displayName: "Validation Rule", + collectionName: "validationRules", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "validationRule", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "validationRuleGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.validation.ValidationRuleGroup", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "importance", + fieldName: "importance", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.validation.Importance", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "aggregateExportCategoryOptionCombo", + fieldName: "aggregateExportCategoryOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "operator", + fieldName: "operator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.expression.Operator", + }, + { + name: "organisationUnitLevels", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.Set", + itemKlass: "java.lang.Integer", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "leftSide", + fieldName: "leftSide", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.expression.Expression", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "notificationTemplates", + fieldName: "notificationTemplates", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.validation.notification.ValidationNotificationTemplate", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "rightSide", + fieldName: "rightSide", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.expression.Expression", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "periodType", + fieldName: "periodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "instruction", + fieldName: "instruction", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "skipFormValidation", + fieldName: "skipFormValidation", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "aggregateExportAttributeOptionCombo", + fieldName: "aggregateExportAttributeOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + validationRuleGroups: { + klass: "org.hisp.dhis.validation.ValidationRuleGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/validationRuleGroups", + plural: "validationRuleGroups", + displayName: "Validation Rule Group", + collectionName: "validationRuleGroups", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "validationRuleGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "validationRule", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.validation.ValidationRule", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + visualizations: { + klass: "org.hisp.dhis.visualization.Visualization", + shareable: true, + metadata: true, + relativeApiEndpoint: "/visualizations", + plural: "visualizations", + displayName: "Visualization", + collectionName: "visualizations", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "visualization", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataElementGroupSetDimension", + fieldName: "dataElementGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + }, + { + name: "orgUnitField", + fieldName: "orgUnitField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "baseLineValue", + fieldName: "baseLineValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnitChildren", + fieldName: "userOrganisationUnitChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendDisplayStyle", + fieldName: "legendDisplayStyle", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.legend.LegendDisplayStyle", + }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.visualization.VisualizationType", + }, + { + name: "hideEmptyColumns", + fieldName: "hideEmptyColumns", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "measureCriteria", + fieldName: "measureCriteria", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayTargetLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attributeDimension", + fieldName: "attributeDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "yearlySerie", + fieldName: "yearlySeries", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "userOrganisationUnit", + fieldName: "userOrganisationUnit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "rowSubTotals", + fieldName: "rowSubTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "filterDimension", + fieldName: "filterDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "visualizationPeriodName", + fieldName: "visualizationPeriodName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "domainAxisLabel", + fieldName: "domainAxisLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "cumulativeValues", + fieldName: "cumulativeValues", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "fontStyle", + fieldName: "fontStyle", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.visualization.VisualizationFontStyle", + }, + { + name: "axis", + fieldName: "optionalAxes", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.visualization.Axis", + }, + { + name: "showDimensionLabels", + fieldName: "showDimensionLabels", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "fontSize", + fieldName: "fontSize", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.FontSize", + }, + { + name: "rangeAxisDecimals", + fieldName: "rangeAxisDecimals", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "topLimit", + fieldName: "topLimit", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userOrganisationUnitGrandChildren", + fieldName: "userOrganisationUnitGrandChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayName", + fieldName: "displayName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "column", + fieldName: "columns", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "displayShortName", + fieldName: "displayShortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "percentStackedValues", + fieldName: "percentStackedValues", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "noSpaceBetweenColumns", + fieldName: "noSpaceBetweenColumns", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElementDimension", + fieldName: "dataElementDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + }, + { + name: "rangeAxisSteps", + fieldName: "rangeAxisSteps", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "period", + fieldName: "periods", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.period.Period", + }, + { + name: "categoryDimension", + fieldName: "categoryDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryDimension", + }, + { + name: "showHierarchy", + fieldName: "showHierarchy", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayRangeAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "reportingParams", + fieldName: "reportingParams", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.visualization.ReportingParams", + }, + { + name: "hideTitle", + fieldName: "hideTitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rowDimension", + fieldName: "rowDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "seriesItem", + fieldName: "series", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.visualization.Series", + }, + { + name: "colorSet", + fieldName: "colorSet", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayBaseLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "skipRounding", + fieldName: "skipRounding", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "showData", + fieldName: "showData", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "numberType", + fieldName: "numberType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.NumberType", + }, + { + name: "hideEmptyRows", + fieldName: "hideEmptyRows", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "parentGraphMap", + fieldName: "parentGraphMap", + propertyType: "COMPLEX", + klass: "java.util.Map", + }, + { + name: "itemOrganisationUnitGroup", + fieldName: "itemOrganisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "displayDensity", + fieldName: "displayDensity", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DisplayDensity", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "displayDomainAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "programIndicatorDimension", + fieldName: "programIndicatorDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "rangeAxisLabel", + fieldName: "rangeAxisLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "regressionType", + fieldName: "regressionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.RegressionType", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "columnDimension", + fieldName: "columnDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "completedOnly", + fieldName: "completedOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "colTotals", + fieldName: "colTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayFormName", + fieldName: "displayFormName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideEmptyRowItems", + fieldName: "hideEmptyRowItems", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.HideEmptyItemStrategy", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dataDimensionItem", + fieldName: "dataDimensionItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DataDimensionItem", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetDimension", + fieldName: "categoryOptionGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + }, + { + name: "hideSubtitle", + fieldName: "hideSubtitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitGroupSetDimension", + fieldName: "organisationUnitGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideLegend", + fieldName: "hideLegend", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rangeAxisMinValue", + fieldName: "rangeAxisMinValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "legendDisplayStrategy", + fieldName: "legendDisplayStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.legend.LegendDisplayStrategy", + }, + { + name: "colSubTotals", + fieldName: "colSubTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "targetLineLabel", + fieldName: "targetLineLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "rowTotals", + fieldName: "rowTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "timeField", + fieldName: "timeField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "targetLineValue", + fieldName: "targetLineValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "filter", + fieldName: "filters", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "row", + fieldName: "rows", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "baseLineLabel", + fieldName: "baseLineLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "digitGroupSeparator", + fieldName: "digitGroupSeparator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DigitGroupSeparator", + }, + { + name: "regression", + fieldName: "regression", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "userOrgUnitType", + fieldName: "userOrgUnitType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.UserOrgUnitType", + }, + { + name: "rangeAxisMaxValue", + fieldName: "rangeAxisMaxValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "user", + fieldName: "user", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + ], + }, +}; + +export type D2ModelSchemas = { + analyticsPeriodBoundaries: D2AnalyticsPeriodBoundarySchema; + analyticsTableHooks: D2AnalyticsTableHookSchema; + attributes: D2AttributeSchema; + categories: D2CategorySchema; + categoryCombos: D2CategoryComboSchema; + categoryDimensions: D2CategoryDimensionSchema; + categoryOptions: D2CategoryOptionSchema; + categoryOptionCombos: D2CategoryOptionComboSchema; + categoryOptionGroups: D2CategoryOptionGroupSchema; + categoryOptionGroupSets: D2CategoryOptionGroupSetSchema; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema; + charts: D2ChartSchema; + constants: D2ConstantSchema; + dashboards: D2DashboardSchema; + dashboardItems: D2DashboardItemSchema; + dataApprovalLevels: D2DataApprovalLevelSchema; + dataApprovalWorkflows: D2DataApprovalWorkflowSchema; + dataElements: D2DataElementSchema; + dataElementGroups: D2DataElementGroupSchema; + dataElementGroupSets: D2DataElementGroupSetSchema; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema; + dataElementOperands: D2DataElementOperandSchema; + dataEntryForms: D2DataEntryFormSchema; + dataInputPeriods: D2DataInputPeriodSchema; + dataSets: D2DataSetSchema; + dataSetElements: D2DataSetElementSchema; + dataSetNotificationTemplates: D2DataSetNotificationTemplateSchema; + documents: D2DocumentSchema; + eventCharts: D2EventChartSchema; + eventReports: D2EventReportSchema; + expressions: D2ExpressionSchema; + externalFileResources: D2ExternalFileResourceSchema; + externalMapLayers: D2ExternalMapLayerSchema; + fileResources: D2FileResourceSchema; + icons: D2IconSchema; + indicators: D2IndicatorSchema; + indicatorGroups: D2IndicatorGroupSchema; + indicatorGroupSets: D2IndicatorGroupSetSchema; + indicatorTypes: D2IndicatorTypeSchema; + interpretations: D2InterpretationSchema; + interpretationComments: D2InterpretationCommentSchema; + jobConfigurations: D2JobConfigurationSchema; + dataStores: D2KeyJsonValueSchema; + legends: D2LegendSchema; + legendSets: D2LegendSetSchema; + maps: D2MapSchema; + mapViews: D2MapViewSchema; + messageConversations: D2MessageConversationSchema; + metadataVersions: D2MetadataVersionSchema; + minMaxDataElements: D2MinMaxDataElementSchema; + oAuth2Clients: D2OAuth2ClientSchema; + options: D2OptionSchema; + optionGroups: D2OptionGroupSchema; + optionGroupSets: D2OptionGroupSetSchema; + optionSets: D2OptionSetSchema; + organisationUnits: D2OrganisationUnitSchema; + organisationUnitGroups: D2OrganisationUnitGroupSchema; + organisationUnitGroupSets: D2OrganisationUnitGroupSetSchema; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema; + organisationUnitLevels: D2OrganisationUnitLevelSchema; + predictors: D2PredictorSchema; + predictorGroups: D2PredictorGroupSchema; + programs: D2ProgramSchema; + programDataElements: D2ProgramDataElementDimensionItemSchema; + programIndicators: D2ProgramIndicatorSchema; + programIndicatorGroups: D2ProgramIndicatorGroupSchema; + programInstances: D2ProgramInstanceSchema; + programNotificationTemplates: D2ProgramNotificationTemplateSchema; + programRules: D2ProgramRuleSchema; + programRuleActions: D2ProgramRuleActionSchema; + programRuleVariables: D2ProgramRuleVariableSchema; + programSections: D2ProgramSectionSchema; + programStages: D2ProgramStageSchema; + programStageDataElements: D2ProgramStageDataElementSchema; + programStageInstances: D2ProgramStageInstanceSchema; + eventFilters: D2ProgramStageInstanceFilterSchema; + programStageSections: D2ProgramStageSectionSchema; + programTrackedEntityAttributes: D2ProgramTrackedEntityAttributeSchema; + ProgramTrackedEntityAttributeDimensionItems: D2ProgramTrackedEntityAttributeDimensionItemSchema; + programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroupSchema; + pushAnalysis: D2PushAnalysisSchema; + relationships: D2RelationshipSchema; + relationshipTypes: D2RelationshipTypeSchema; + reports: D2ReportSchema; + reportTables: D2ReportTableSchema; + reportingRates: D2ReportingRateSchema; + smsCommands: D2SMSCommandSchema; + sections: D2SectionSchema; + sqlViews: D2SqlViewSchema; + trackedEntityAttributes: D2TrackedEntityAttributeSchema; + trackedEntityAttributeValues: D2TrackedEntityAttributeValueSchema; + trackedEntityDataElementDimensions: D2TrackedEntityDataElementDimensionSchema; + trackedEntityInstances: D2TrackedEntityInstanceSchema; + trackedEntityInstanceFilters: D2TrackedEntityInstanceFilterSchema; + dataElementDimensions: D2TrackedEntityProgramIndicatorDimensionSchema; + trackedEntityTypes: D2TrackedEntityTypeSchema; + trackedEntityTypeAttributes: D2TrackedEntityTypeAttributeSchema; + users: D2UserSchema; + userAccesses: D2UserAccessSchema; + userRoles: D2UserAuthorityGroupSchema; + userCredentials: D2UserCredentialsSchema; + userGroups: D2UserGroupSchema; + userGroupAccesses: D2UserGroupAccessSchema; + validationNotificationTemplates: D2ValidationNotificationTemplateSchema; + validationResults: D2ValidationResultSchema; + validationRules: D2ValidationRuleSchema; + validationRuleGroups: D2ValidationRuleGroupSchema; + visualizations: D2VisualizationSchema; +}; diff --git a/src/2.36/index.ts b/src/2.36/index.ts new file mode 100644 index 0000000..0411234 --- /dev/null +++ b/src/2.36/index.ts @@ -0,0 +1,21 @@ +import { D2ModelSchemas, models } from "./schemas"; +import { MetadataPickBase, MetadataPayloadBase } from "../api/metadata"; +import { D2ApiDefinitionBase, FilterBase } from "../api/common"; +import { D2ApiVersioned, D2ApiOptions } from "../api/d2Api"; + +export * from "../api/index"; +export * from "./schemas"; + +export interface D2ApiDefinition extends D2ApiDefinitionBase { + schemas: D2ModelSchemas; + filter: FilterBase; +} + +export type MetadataPick = MetadataPickBase; +export type MetadataPayload = MetadataPayloadBase; + +export class D2Api extends D2ApiVersioned { + public constructor(options?: D2ApiOptions) { + super(models, options); + } +} diff --git a/src/2.36/schemas.ts b/src/2.36/schemas.ts new file mode 100644 index 0000000..dc335e5 --- /dev/null +++ b/src/2.36/schemas.ts @@ -0,0 +1,35245 @@ +/* eslint-disable */ + +import { + Id, + Preset, + FieldPresets, + D2SchemaProperties, + D2Access, + D2Translation, + D2Geometry, + D2Style, + D2DimensionalKeywords, + D2Expression, + D2RelationshipConstraint, + D2ReportingParams, + D2Axis, + D2AttributeValueGeneric, + D2AttributeValueGenericSchema, +} from "../schemas/base"; + +export type D2AnalyticsPeriodBoundary = { + access: D2Access; + analyticsPeriodBoundaryType: + | "BEFORE_START_OF_REPORTING_PERIOD" + | "BEFORE_END_OF_REPORTING_PERIOD" + | "AFTER_START_OF_REPORTING_PERIOD" + | "AFTER_END_OF_REPORTING_PERIOD"; + attributeValues: D2AttributeValue[]; + boundaryTarget: string; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + offsetPeriodType: string; + offsetPeriods: number; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2AnalyticsTableHook = { + access: D2Access; + analyticsTableType: + | "DATA_VALUE" + | "COMPLETENESS" + | "COMPLETENESS_TARGET" + | "ORG_UNIT_TARGET" + | "EVENT" + | "ENROLLMENT" + | "VALIDATION_RESULT"; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + phase: "RESOURCE_TABLE_POPULATED" | "ANALYTICS_TABLE_POPULATED"; + publicAccess: string; + resourceTableType: + | "ORG_UNIT_STRUCTURE" + | "DATA_SET_ORG_UNIT_CATEGORY" + | "CATEGORY_OPTION_COMBO_NAME" + | "DATA_ELEMENT_GROUP_SET_STRUCTURE" + | "INDICATOR_GROUP_SET_STRUCTURE" + | "ORG_UNIT_GROUP_SET_STRUCTURE" + | "CATEGORY_STRUCTURE" + | "DATA_ELEMENT_STRUCTURE" + | "PERIOD_STRUCTURE" + | "DATE_PERIOD_STRUCTURE" + | "DATA_ELEMENT_CATEGORY_OPTION_COMBO" + | "DATA_APPROVAL_REMAP_LEVEL" + | "DATA_APPROVAL_MIN_LEVEL"; + sharing: any; + sql: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Attribute = { + access: D2Access; + attributeValues: D2AttributeValue[]; + categoryAttribute: boolean; + categoryOptionAttribute: boolean; + categoryOptionComboAttribute: boolean; + categoryOptionGroupAttribute: boolean; + categoryOptionGroupSetAttribute: boolean; + code: Id; + constantAttribute: boolean; + created: string; + createdBy: D2User; + dataElementAttribute: boolean; + dataElementGroupAttribute: boolean; + dataElementGroupSetAttribute: boolean; + dataSetAttribute: boolean; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + documentAttribute: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + indicatorAttribute: boolean; + indicatorGroupAttribute: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSetAttribute: boolean; + mandatory: boolean; + name: string; + optionAttribute: boolean; + optionSet: D2OptionSet; + optionSetAttribute: boolean; + organisationUnitAttribute: boolean; + organisationUnitGroupAttribute: boolean; + organisationUnitGroupSetAttribute: boolean; + programAttribute: boolean; + programIndicatorAttribute: boolean; + programStageAttribute: boolean; + publicAccess: string; + sectionAttribute: boolean; + sharing: any; + shortName: string; + sortOrder: number; + sqlViewAttribute: boolean; + trackedEntityAttributeAttribute: boolean; + trackedEntityTypeAttribute: boolean; + translations: D2Translation[]; + unique: boolean; + user: D2User; + userAccesses: D2UserAccess[]; + userAttribute: boolean; + userGroupAccesses: D2UserGroupAccess[]; + userGroupAttribute: boolean; + validationRuleAttribute: boolean; + validationRuleGroupAttribute: boolean; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; +}; + +export type D2AttributeValue = { + attribute: D2Attribute; + value: string; +}; + +export type D2Category = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValue[]; + categoryCombos: D2CategoryCombo[]; + categoryOptions: D2CategoryOption[]; + code: Id; + created: string; + createdBy: D2User; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + name: string; + programStage: D2ProgramStage; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryCombo = { + access: D2Access; + attributeValues: D2AttributeValue[]; + categories: D2Category[]; + categoryOptionCombos: D2CategoryOptionCombo[]; + code: Id; + created: string; + createdBy: D2User; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + isDefault: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + skipTotal: boolean; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryDimension = { + category: D2Category; + categoryOptions: any; +}; + +export type D2CategoryOption = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + categories: D2Category[]; + categoryOptionCombos: D2CategoryOptionCombo[]; + categoryOptionGroups: D2CategoryOptionGroup[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + isDefault: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + organisationUnits: D2OrganisationUnit[]; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + startDate: string; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryOptionCombo = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + categoryCombo: D2CategoryCombo; + categoryOptions: D2CategoryOption[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + ignoreApproval: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryOptionGroup = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + categoryOptions: D2CategoryOption[]; + code: Id; + created: string; + createdBy: D2User; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + groupSets: D2CategoryOptionGroupSet[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryOptionGroupSet = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValue[]; + categoryOptionGroups: D2CategoryOptionGroup[]; + code: Id; + created: string; + createdBy: D2User; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + name: string; + programStage: D2ProgramStage; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryOptionGroupSetDimension = { + categoryOptionGroupSet: D2CategoryOptionGroupSet; + categoryOptionGroups: any; +}; + +export type D2Chart = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValues: D2AttributeValue[]; + baseLineLabel: string; + baseLineValue: number; + category: string; + categoryDimensions: D2CategoryDimension[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; + code: Id; + columns: any[]; + completedOnly: boolean; + created: string; + createdBy: D2User; + cumulativeValues: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimension[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; + displayDescription: string; + displayDomainAxisLabel: string; + displayFormName: string; + displayName: string; + displayRangeAxisLabel: string; + displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; + domainAxisLabel: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + formName: string; + hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; + hideLegend: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2Interpretation[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendSet: D2LegendSet; + name: string; + noSpaceBetweenColumns: boolean; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnit[]; + parentGraphMap: D2Map; + percentStackedValues: boolean; + periods: any[]; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; + publicAccess: string; + rangeAxisDecimals: number; + rangeAxisLabel: string; + rangeAxisMaxValue: number; + rangeAxisMinValue: number; + rangeAxisSteps: number; + regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; + relativePeriods: any; + rows: any[]; + series: string; + seriesItems: any[]; + sharing: any; + shortName: string; + showData: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + targetLineLabel: string; + targetLineValue: number; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + type: + | "COLUMN" + | "STACKED_COLUMN" + | "BAR" + | "STACKED_BAR" + | "STACKED_AREA" + | "LINE" + | "AREA" + | "PIE" + | "RADAR" + | "GAUGE" + | "YEAR_OVER_YEAR_LINE" + | "YEAR_OVER_YEAR_COLUMN" + | "SINGLE_VALUE" + | "SCATTER" + | "BUBBLE"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + yearlySeries: string[]; +}; + +export type D2Constant = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + value: number; +}; + +export type D2Dashboard = { + access: D2Access; + allowedFilters: string[]; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dashboardItems: D2DashboardItem[]; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + itemCount: number; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + restrictFilters: boolean; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DashboardItem = { + access: D2Access; + appKey: string; + attributeValues: D2AttributeValue[]; + chart: D2Chart; + code: Id; + contentCount: number; + created: string; + createdBy: D2User; + displayName: string; + eventChart: D2EventChart; + eventReport: D2EventReport; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + height: number; + href: string; + id: Id; + interpretationCount: number; + interpretationLikeCount: number; + lastUpdated: string; + lastUpdatedBy: D2User; + map: D2Map; + messages: boolean; + name: string; + publicAccess: string; + reportTable: D2ReportTable; + reports: D2Report[]; + resources: D2Document[]; + shape: "NORMAL" | "DOUBLE_WIDTH" | "FULL_WIDTH"; + sharing: any; + text: string; + translations: D2Translation[]; + type: + | "VISUALIZATION" + | "CHART" + | "EVENT_CHART" + | "MAP" + | "REPORT_TABLE" + | "EVENT_REPORT" + | "USERS" + | "REPORTS" + | "RESOURCES" + | "TEXT" + | "MESSAGES" + | "APP"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + users: D2User[]; + visualization: D2Visualization; + width: number; + x: number; + y: number; +}; + +export type D2DataApprovalLevel = { + access: D2Access; + attributeValues: D2AttributeValue[]; + categoryOptionGroupSet: D2CategoryOptionGroupSet; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + level: number; + name: string; + orgUnitLevel: number; + orgUnitLevelName: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataApprovalWorkflow = { + access: D2Access; + attributeValues: D2AttributeValue[]; + categoryCombo: D2CategoryCombo; + code: Id; + created: string; + createdBy: D2User; + dataApprovalLevels: D2DataApprovalLevel[]; + dataSets: D2DataSet[]; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + periodType: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataElement = { + access: D2Access; + aggregationLevels: number[]; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + categoryCombo: D2CategoryCombo; + code: Id; + commentOptionSet: D2OptionSet; + created: string; + createdBy: D2User; + dataElementGroups: D2DataElementGroup[]; + dataSetElements: D2DataSetElement[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + domainType: "AGGREGATE" | "TRACKER"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldMask: string; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + optionSet: D2OptionSet; + optionSetValue: boolean; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + style: D2Style; + translations: D2Translation[]; + url: string; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + valueTypeOptions: any; + zeroIsSignificant: boolean; +}; + +export type D2DataElementGroup = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dataElements: D2DataElement[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + groupSets: D2DataElementGroupSet[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataElementGroupSet = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValue[]; + code: Id; + compulsory: boolean; + created: string; + createdBy: D2User; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + dataElementGroups: D2DataElementGroup[]; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + name: string; + programStage: D2ProgramStage; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataElementGroupSetDimension = { + dataElementGroupSet: D2DataElementGroupSet; + dataElementGroups: any; +}; + +export type D2DataElementOperand = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeOptionCombo: D2CategoryOptionCombo; + attributeValues: D2AttributeValue[]; + categoryOptionCombo: D2CategoryOptionCombo; + code: Id; + created: string; + createdBy: D2User; + dataElement: D2DataElement; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataEntryForm = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + format: number; + href: string; + htmlCode: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + style: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataInputPeriod = { + closingDate: string; + openingDate: string; + period: any; +}; + +export type D2DataSet = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + categoryCombo: D2CategoryCombo; + code: Id; + compulsoryDataElementOperands: D2DataElementOperand[]; + compulsoryFieldsCompleteOnly: boolean; + created: string; + createdBy: D2User; + dataElementDecoration: boolean; + dataEntryForm: D2DataEntryForm; + dataInputPeriods: D2DataInputPeriod[]; + dataSetElements: D2DataSetElement[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + expiryDays: number; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldCombinationRequired: boolean; + formName: string; + formType: "DEFAULT" | "CUSTOM" | "SECTION" | "SECTION_MULTIORG"; + href: string; + id: Id; + indicators: D2Indicator[]; + interpretations: D2Interpretation[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + mobile: boolean; + name: string; + noValueRequiresComment: boolean; + notificationRecipients: D2UserGroup; + notifyCompletingUser: boolean; + openFuturePeriods: number; + openPeriodsAfterCoEndDate: number; + organisationUnits: D2OrganisationUnit[]; + periodOffset: number; + periodType: string; + publicAccess: string; + renderAsTabs: boolean; + renderHorizontally: boolean; + sections: D2Section[]; + sharing: any; + shortName: string; + skipOffline: boolean; + style: D2Style; + timelyDays: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + validCompleteOnly: boolean; + version: number; + workflow: D2DataApprovalWorkflow; +}; + +export type D2DataSetElement = { + categoryCombo: D2CategoryCombo; + dataElement: D2DataElement; + dataSet: D2DataSet; +}; + +export type D2DataSetNotificationTemplate = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dataSetNotificationTrigger: "DATA_SET_COMPLETION" | "SCHEDULED_DAYS"; + dataSets: D2DataSet[]; + deliveryChannels: never[]; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + messageTemplate: string; + name: string; + notificationRecipient: "ORGANISATION_UNIT_CONTACT" | "USER_GROUP"; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientUserGroup: D2UserGroup; + relativeScheduledDays: number; + sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; + sharing: any; + subjectTemplate: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Document = { + access: D2Access; + attachment: boolean; + attributeValues: D2AttributeValue[]; + code: Id; + contentType: string; + created: string; + createdBy: D2User; + displayName: string; + external: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + url: string; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2EventChart = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValueDimension: D2TrackedEntityAttribute; + attributeValues: D2AttributeValue[]; + baseLineLabel: string; + baseLineValue: number; + categoryDimensions: D2CategoryDimension[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; + code: Id; + collapseDataDimensions: boolean; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + createdBy: D2User; + cumulativeValues: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimension[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; + dataElementValueDimension: D2DataElement; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; + displayDescription: string; + displayDomainAxisLabel: string; + displayFormName: string; + displayName: string; + displayRangeAxisLabel: string; + displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; + domainAxisLabel: string; + endDate: string; + eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + formName: string; + hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; + hideLegend: boolean; + hideNaData: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2Interpretation[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendSet: D2LegendSet; + name: string; + noSpaceBetweenColumns: boolean; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnit[]; + outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; + parentGraphMap: D2Map; + percentStackedValues: boolean; + periods: any[]; + program: D2Program; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; + programStage: D2ProgramStage; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + rangeAxisDecimals: number; + rangeAxisLabel: string; + rangeAxisMaxValue: number; + rangeAxisMinValue: number; + rangeAxisSteps: number; + regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; + relativePeriods: any; + rowDimensions: string[]; + rows: any[]; + sharing: any; + shortName: string; + showData: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + targetLineLabel: string; + targetLineValue: number; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + type: + | "COLUMN" + | "STACKED_COLUMN" + | "BAR" + | "STACKED_BAR" + | "STACKED_AREA" + | "LINE" + | "AREA" + | "PIE" + | "RADAR" + | "GAUGE" + | "YEAR_OVER_YEAR_LINE" + | "YEAR_OVER_YEAR_COLUMN" + | "SINGLE_VALUE" + | "SCATTER" + | "BUBBLE"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + value: any; + yearlySeries: string[]; +}; + +export type D2EventReport = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValueDimension: D2TrackedEntityAttribute; + attributeValues: D2AttributeValue[]; + categoryDimensions: D2CategoryDimension[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; + code: Id; + colSubTotals: boolean; + colTotals: boolean; + collapseDataDimensions: boolean; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + createdBy: D2User; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimension[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; + dataElementValueDimension: D2DataElement; + dataType: "AGGREGATED_VALUES" | "EVENTS"; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + displaySubtitle: string; + displayTitle: string; + endDate: string; + eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + fontSize: "LARGE" | "NORMAL" | "SMALL"; + formName: string; + hideEmptyRows: boolean; + hideNaData: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2Interpretation[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnit[]; + outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; + parentGraphMap: D2Map; + periods: any[]; + program: D2Program; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; + programStage: D2ProgramStage; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + relativePeriods: any; + rowDimensions: string[]; + rowSubTotals: boolean; + rowTotals: boolean; + rows: any[]; + sharing: any; + shortName: string; + showDimensionLabels: boolean; + showHierarchy: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + value: any; +}; + +export type D2Expression = { + description: string; + expression: string; + missingValueStrategy: "SKIP_IF_ANY_VALUE_MISSING" | "SKIP_IF_ALL_VALUES_MISSING" | "NEVER_SKIP"; + slidingWindow: boolean; +}; + +export type D2ExternalFileResource = { + access: D2Access; + accessToken: string; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + expires: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fileResource: D2FileResource; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ExternalMapLayer = { + access: D2Access; + attributeValues: D2AttributeValue[]; + attribution: string; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + imageFormat: "PNG" | "JPG"; + lastUpdated: string; + lastUpdatedBy: D2User; + layers: string; + legendSet: D2LegendSet; + legendSetUrl: string; + mapLayerPosition: "BASEMAP" | "OVERLAY"; + mapService: "WMS" | "TMS" | "XYZ"; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + url: string; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2FileResource = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + contentLength: string; + contentMd5: string; + contentType: string; + created: string; + createdBy: D2User; + displayName: string; + domain: "DATA_VALUE" | "PUSH_ANALYSIS" | "DOCUMENT" | "MESSAGE_ATTACHMENT" | "USER_AVATAR"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + hasMultipleStorageFiles: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + storageStatus: "NONE" | "PENDING" | "FAILED" | "STORED"; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Icon = {}; + +export type D2Indicator = { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + annualized: boolean; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dataSets: D2DataSet[]; + decimals: number; + denominator: string; + denominatorDescription: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDenominatorDescription: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayNumeratorDescription: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + indicatorGroups: D2IndicatorGroup[]; + indicatorType: D2IndicatorType; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + numerator: string; + numeratorDescription: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + style: D2Style; + translations: D2Translation[]; + url: string; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2IndicatorGroup = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + indicatorGroupSet: D2IndicatorGroupSet; + indicators: D2Indicator[]; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2IndicatorGroupSet = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + compulsory: boolean; + created: string; + createdBy: D2User; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + indicatorGroups: D2IndicatorGroup[]; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2IndicatorType = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + factor: number; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + number: boolean; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Interpretation = { + access: D2Access; + attributeValues: D2AttributeValue[]; + chart: D2Chart; + code: Id; + comments: D2InterpretationComment[]; + created: string; + createdBy: D2User; + dataSet: D2DataSet; + displayName: string; + eventChart: D2EventChart; + eventReport: D2EventReport; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + likedBy: D2User[]; + likes: number; + map: D2Map; + mentions: any[]; + name: string; + organisationUnit: D2OrganisationUnit; + period: any; + publicAccess: string; + reportTable: D2ReportTable; + sharing: any; + text: string; + translations: D2Translation[]; + type: + | "VISUALIZATION" + | "REPORT_TABLE" + | "CHART" + | "MAP" + | "EVENT_REPORT" + | "EVENT_CHART" + | "DATASET_REPORT"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + visualization: D2Visualization; +}; + +export type D2InterpretationComment = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + mentions: any[]; + name: string; + publicAccess: string; + sharing: any; + text: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2JobConfiguration = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + configurable: boolean; + created: string; + createdBy: D2User; + cronExpression: string; + delay: number; + displayName: string; + enabled: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + jobParameters: any; + jobStatus: + | "RUNNING" + | "COMPLETED" + | "STOPPED" + | "SCHEDULED" + | "DISABLED" + | "FAILED" + | "NOT_STARTED"; + jobType: + | "DATA_STATISTICS" + | "DATA_INTEGRITY" + | "RESOURCE_TABLE" + | "ANALYTICS_TABLE" + | "CONTINUOUS_ANALYTICS_TABLE" + | "DATA_SYNC" + | "TRACKER_PROGRAMS_DATA_SYNC" + | "EVENT_PROGRAMS_DATA_SYNC" + | "FILE_RESOURCE_CLEANUP" + | "IMAGE_PROCESSING" + | "META_DATA_SYNC" + | "SMS_SEND" + | "SEND_SCHEDULED_MESSAGE" + | "PROGRAM_NOTIFICATIONS" + | "VALIDATION_RESULTS_NOTIFICATION" + | "CREDENTIALS_EXPIRY_ALERT" + | "MONITORING" + | "PUSH_ANALYSIS" + | "PREDICTOR" + | "DATA_SET_NOTIFICATION" + | "REMOVE_USED_OR_EXPIRED_RESERVED_VALUES" + | "TRACKER_IMPORT_JOB" + | "TRACKER_IMPORT_NOTIFICATION_JOB" + | "TRACKER_IMPORT_RULE_ENGINE_JOB" + | "LEADER_ELECTION" + | "LEADER_RENEWAL" + | "COMPLETE_DATA_SET_REGISTRATION_IMPORT" + | "DATAVALUE_IMPORT_INTERNAL" + | "METADATA_IMPORT" + | "DATAVALUE_IMPORT" + | "EVENT_IMPORT" + | "ENROLLMENT_IMPORT" + | "TEI_IMPORT" + | "DISABLE_INACTIVE_USERS" + | "MOCK" + | "GML_IMPORT" + | "ANALYTICSTABLE_UPDATE" + | "PROGRAM_DATA_SYNC"; + lastExecuted: string; + lastExecutedStatus: + | "RUNNING" + | "COMPLETED" + | "STOPPED" + | "SCHEDULED" + | "DISABLED" + | "FAILED" + | "NOT_STARTED"; + lastRuntimeExecution: string; + lastUpdated: string; + lastUpdatedBy: D2User; + leaderOnlyJob: boolean; + name: string; + nextExecutionTime: string; + publicAccess: string; + schedulingType: "CRON" | "FIXED_DELAY"; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userUid: string; +}; + +export type D2KeyJsonValue = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + key: string; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + namespace: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + value: string; +}; + +export type D2Legend = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + color: string; + created: string; + createdBy: D2User; + displayName: string; + endValue: number; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + image: string; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + startValue: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2LegendSet = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legends: D2Legend[]; + name: string; + publicAccess: string; + sharing: any; + symbolizer: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Map = { + access: D2Access; + attributeValues: D2AttributeValue[]; + basemap: string; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + interpretations: D2Interpretation[]; + lastUpdated: string; + lastUpdatedBy: D2User; + latitude: number; + longitude: number; + mapViews: D2MapView[]; + name: string; + publicAccess: string; + sharing: any; + shortName: string; + subscribed: boolean; + subscribers: string[]; + title: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + zoom: number; +}; + +export type D2MapView = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + areaRadius: number; + attributeDimensions: any[]; + attributeValues: D2AttributeValue[]; + categoryDimensions: D2CategoryDimension[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; + classes: number; + code: Id; + colorHigh: string; + colorLow: string; + colorScale: string; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + config: string; + created: string; + createdBy: D2User; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimension[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + displaySubtitle: string; + displayTitle: string; + endDate: string; + eventClustering: boolean; + eventCoordinateField: string; + eventPointColor: string; + eventPointRadius: number; + eventStatus: "ACTIVE" | "COMPLETED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + followUp: boolean; + formName: string; + hidden: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2Interpretation[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; + labelFontColor: string; + labelFontSize: string; + labelFontStyle: string; + labelFontWeight: string; + labels: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + layer: string; + legendSet: D2LegendSet; + method: number; + name: string; + noDataColor: string; + opacity: number; + orgUnitField: string; + organisationUnitGroupSet: D2OrganisationUnitGroupSet; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; + organisationUnitLevels: number[]; + organisationUnitSelectionMode: + | "SELECTED" + | "CHILDREN" + | "DESCENDANTS" + | "ACCESSIBLE" + | "CAPTURE" + | "ALL"; + organisationUnits: D2OrganisationUnit[]; + parentGraph: string; + parentGraphMap: D2Map; + parentLevel: number; + periods: any[]; + program: D2Program; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; + programStage: D2ProgramStage; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + radiusHigh: number; + radiusLow: number; + relativePeriods: any; + renderingStrategy: "SINGLE" | "SPLIT_BY_PERIOD" | "TIMELINE"; + rows: any[]; + sharing: any; + shortName: string; + sortOrder: number; + startDate: string; + styleDataItem: object; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + thematicMapType: "CHOROPLETH" | "BUBBLE"; + timeField: string; + title: string; + topLimit: number; + trackedEntityType: D2TrackedEntityType; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; +}; + +export type D2MessageConversation = { + access: D2Access; + assignee: D2User; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followUp: boolean; + href: string; + id: Id; + lastMessage: string; + lastSender: D2User; + lastSenderFirstname: string; + lastSenderSurname: string; + lastUpdated: string; + lastUpdatedBy: D2User; + messageCount: number; + messageType: "PRIVATE" | "SYSTEM" | "VALIDATION_RESULT" | "TICKET"; + messages: any[]; + name: string; + priority: "NONE" | "LOW" | "MEDIUM" | "HIGH"; + publicAccess: string; + read: boolean; + sharing: any; + status: "NONE" | "OPEN" | "PENDING" | "INVALID" | "SOLVED"; + subject: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userFirstname: string; + userGroupAccesses: D2UserGroupAccess[]; + userMessages: any[]; + userSurname: string; +}; + +export type D2MetadataVersion = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + hashCode: string; + href: string; + id: Id; + importDate: string; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + type: "BEST_EFFORT" | "ATOMIC"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2MinMaxDataElement = { + dataElement: D2DataElement; + generated: boolean; + max: number; + min: number; + optionCombo: D2CategoryOptionCombo; + source: D2OrganisationUnit; +}; + +export type D2OAuth2Client = { + access: D2Access; + attributeValues: D2AttributeValue[]; + cid: Id; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + grantTypes: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + redirectUris: string[]; + secret: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Option = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: string; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + optionSet: D2OptionSet; + publicAccess: string; + sharing: any; + shortName: string; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2OptionGroup = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + optionSet: D2OptionSet; + options: D2Option[]; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2OptionGroupSet = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + name: string; + optionGroups: D2OptionGroup[]; + optionSet: D2OptionSet; + programStage: D2ProgramStage; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2OptionSet = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + options: D2Option[]; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + version: number; +}; + +export type D2OrganisationUnit = { + access: D2Access; + address: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + ancestors: D2OrganisationUnit[]; + attributeValues: D2AttributeValue[]; + children: D2OrganisationUnit[]; + closedDate: string; + code: Id; + comment: string; + contactPerson: string; + created: string; + createdBy: D2User; + dataSets: D2DataSet[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + email: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + geometry: any; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + leaf: boolean; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + level: number; + memberCount: number; + name: string; + openingDate: string; + organisationUnitGroups: D2OrganisationUnitGroup[]; + parent: D2OrganisationUnit; + path: string; + periodOffset: number; + phoneNumber: string; + programs: D2Program[]; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + type: string; + url: string; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + users: D2User[]; +}; + +export type D2OrganisationUnitGroup = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + code: Id; + color: string; + created: string; + createdBy: D2User; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + geometry: any; + groupSets: D2OrganisationUnitGroupSet[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + organisationUnits: D2OrganisationUnit[]; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + symbol: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2OrganisationUnitGroupSet = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValue[]; + code: Id; + compulsory: boolean; + created: string; + createdBy: D2User; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + includeSubhierarchyInAnalytics: boolean; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + name: string; + organisationUnitGroups: D2OrganisationUnitGroup[]; + programStage: D2ProgramStage; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2OrganisationUnitGroupSetDimension = { + organisationUnitGroupSet: D2OrganisationUnitGroupSet; + organisationUnitGroups: any; +}; + +export type D2OrganisationUnitLevel = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + level: number; + name: string; + offlineLevels: number; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Predictor = { + access: D2Access; + annualSampleCount: number; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + generator: D2Expression; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + organisationUnitLevels: D2OrganisationUnitLevel[]; + output: D2DataElement; + outputCombo: D2CategoryOptionCombo; + periodType: string; + predictorGroups: D2PredictorGroup[]; + publicAccess: string; + sampleSkipTest: D2Expression; + sequentialSampleCount: number; + sequentialSkipCount: number; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2PredictorGroup = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + predictors: D2Predictor[]; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Program = { + access: D2Access; + accessLevel: "OPEN" | "AUDITED" | "PROTECTED" | "CLOSED"; + attributeValues: D2AttributeValue[]; + categoryCombo: D2CategoryCombo; + code: Id; + completeEventsExpiryDays: number; + created: string; + createdBy: D2User; + dataEntryForm: D2DataEntryForm; + description: string; + displayDescription: string; + displayEnrollmentDateLabel: string; + displayFormName: string; + displayFrontPageList: boolean; + displayIncidentDate: boolean; + displayIncidentDateLabel: string; + displayName: string; + displayShortName: string; + enrollmentDateLabel: string; + expiryDays: number; + expiryPeriodType: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + href: string; + id: Id; + ignoreOverdueEvents: boolean; + incidentDateLabel: string; + lastUpdated: string; + lastUpdatedBy: D2User; + maxTeiCountToReturn: number; + minAttributesRequiredToSearch: number; + name: string; + notificationTemplates: D2ProgramNotificationTemplate[]; + onlyEnrollOnce: boolean; + organisationUnits: D2OrganisationUnit[]; + programIndicators: D2ProgramIndicator[]; + programRuleVariables: D2ProgramRuleVariable[]; + programSections: D2ProgramSection[]; + programStages: D2ProgramStage[]; + programTrackedEntityAttributes: D2ProgramTrackedEntityAttribute[]; + programType: "WITH_REGISTRATION" | "WITHOUT_REGISTRATION"; + publicAccess: string; + registration: boolean; + relatedProgram: D2Program; + selectEnrollmentDatesInFuture: boolean; + selectIncidentDatesInFuture: boolean; + sharing: any; + shortName: string; + skipOffline: boolean; + style: D2Style; + trackedEntityType: D2TrackedEntityType; + translations: D2Translation[]; + useFirstStageDuringRegistration: boolean; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userRoles: D2UserAuthorityGroup[]; + version: number; + withoutRegistration: boolean; +}; + +export type D2ProgramDataElementDimensionItem = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dataElement: D2DataElement; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + program: D2Program; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; +}; + +export type D2ProgramIndicator = { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + analyticsPeriodBoundaries: D2AnalyticsPeriodBoundary[]; + analyticsType: "EVENT" | "ENROLLMENT"; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + decimals: number; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayInForm: boolean; + displayName: string; + displayShortName: string; + expression: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + program: D2Program; + programIndicatorGroups: D2ProgramIndicatorGroup[]; + publicAccess: string; + sharing: any; + shortName: string; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramIndicatorGroup = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + programIndicators: D2ProgramIndicator[]; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramInstance = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + completedBy: string; + created: string; + createdAtClient: string; + createdBy: D2User; + deleted: boolean; + displayName: string; + endDate: string; + enrollmentDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followup: boolean; + geometry: any; + href: string; + id: Id; + incidentDate: string; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2User; + messageConversations: D2MessageConversation[]; + name: string; + organisationUnit: D2OrganisationUnit; + program: D2Program; + programStageInstances: D2ProgramStageInstance[]; + publicAccess: string; + relationshipItems: any[]; + sharing: any; + status: "ACTIVE" | "COMPLETED" | "CANCELLED"; + storedBy: string; + trackedEntityComments: any[]; + trackedEntityInstance: D2TrackedEntityInstance; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramNotificationTemplate = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + deliveryChannels: never[]; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + messageTemplate: string; + name: string; + notificationRecipient: + | "TRACKED_ENTITY_INSTANCE" + | "ORGANISATION_UNIT_CONTACT" + | "USERS_AT_ORGANISATION_UNIT" + | "USER_GROUP" + | "PROGRAM_ATTRIBUTE" + | "DATA_ELEMENT"; + notificationTrigger: + | "ENROLLMENT" + | "COMPLETION" + | "PROGRAM_RULE" + | "SCHEDULED_DAYS_DUE_DATE" + | "SCHEDULED_DAYS_INCIDENT_DATE" + | "SCHEDULED_DAYS_ENROLLMENT_DATE"; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientDataElement: D2DataElement; + recipientProgramAttribute: D2TrackedEntityAttribute; + recipientUserGroup: D2UserGroup; + relativeScheduledDays: number; + sharing: any; + subjectTemplate: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramRule = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + condition: string; + created: string; + createdBy: D2User; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + priority: number; + program: D2Program; + programRuleActions: D2ProgramRuleAction[]; + programStage: D2ProgramStage; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramRuleAction = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + content: string; + created: string; + createdBy: D2User; + data: string; + dataElement: D2DataElement; + displayContent: string; + displayName: string; + evaluationEnvironments: never[]; + evaluationTime: "ON_DATA_ENTRY" | "ON_COMPLETE" | "ALWAYS"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + location: string; + name: string; + option: D2Option; + optionGroup: D2OptionGroup; + programIndicator: D2ProgramIndicator; + programRule: D2ProgramRule; + programRuleActionType: + | "DISPLAYTEXT" + | "DISPLAYKEYVALUEPAIR" + | "HIDEFIELD" + | "HIDESECTION" + | "HIDEPROGRAMSTAGE" + | "ASSIGN" + | "SHOWWARNING" + | "WARNINGONCOMPLETE" + | "SHOWERROR" + | "ERRORONCOMPLETE" + | "CREATEEVENT" + | "SETMANDATORYFIELD" + | "SENDMESSAGE" + | "SCHEDULEMESSAGE" + | "HIDEOPTION" + | "SHOWOPTIONGROUP" + | "HIDEOPTIONGROUP"; + programStage: D2ProgramStage; + programStageSection: D2ProgramStageSection; + publicAccess: string; + sharing: any; + templateUid: string; + trackedEntityAttribute: D2TrackedEntityAttribute; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramRuleVariable = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dataElement: D2DataElement; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + program: D2Program; + programRuleVariableSourceType: + | "DATAELEMENT_NEWEST_EVENT_PROGRAM_STAGE" + | "DATAELEMENT_NEWEST_EVENT_PROGRAM" + | "DATAELEMENT_CURRENT_EVENT" + | "DATAELEMENT_PREVIOUS_EVENT" + | "CALCULATED_VALUE" + | "TEI_ATTRIBUTE"; + programStage: D2ProgramStage; + publicAccess: string; + sharing: any; + trackedEntityAttribute: D2TrackedEntityAttribute; + translations: D2Translation[]; + useCodeForOptionSet: boolean; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramSection = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + program: D2Program; + publicAccess: string; + renderType: any; + sharing: any; + shortName: string; + sortOrder: number; + style: D2Style; + trackedEntityAttributes: D2TrackedEntityAttribute[]; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramStage = { + access: D2Access; + allowGenerateNextVisit: boolean; + attributeValues: D2AttributeValue[]; + autoGenerateEvent: boolean; + blockEntryForm: boolean; + code: Id; + created: string; + createdBy: D2User; + dataEntryForm: D2DataEntryForm; + description: string; + displayDescription: string; + displayDueDateLabel: string; + displayExecutionDateLabel: string; + displayFormName: string; + displayGenerateEventBox: boolean; + displayName: string; + displayShortName: string; + dueDateLabel: string; + enableUserAssignment: boolean; + executionDateLabel: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + formType: "DEFAULT" | "CUSTOM" | "SECTION" | "SECTION_MULTIORG"; + generatedByEnrollmentDate: boolean; + hideDueDate: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + minDaysFromStart: number; + name: string; + nextScheduleDate: D2DataElement; + notificationTemplates: D2ProgramNotificationTemplate[]; + openAfterEnrollment: boolean; + periodType: string; + preGenerateUID: boolean; + program: D2Program; + programStageDataElements: D2ProgramStageDataElement[]; + programStageSections: D2ProgramStageSection[]; + publicAccess: string; + remindCompleted: boolean; + repeatable: boolean; + reportDateToUse: string; + sharing: any; + shortName: string; + sortOrder: number; + standardInterval: number; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + validationStrategy: "ON_COMPLETE" | "ON_UPDATE_AND_INSERT"; +}; + +export type D2ProgramStageDataElement = { + access: D2Access; + allowFutureDate: boolean; + allowProvidedElsewhere: boolean; + attributeValues: D2AttributeValue[]; + code: Id; + compulsory: boolean; + created: string; + createdBy: D2User; + dataElement: D2DataElement; + displayInReports: boolean; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + programStage: D2ProgramStage; + publicAccess: string; + renderOptionsAsRadio: boolean; + renderType: any; + sharing: any; + skipSynchronization: boolean; + sortOrder: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramStageInstance = { + access: D2Access; + assignedUser: D2User; + attributeOptionCombo: D2CategoryOptionCombo; + attributeValues: D2AttributeValue[]; + code: Id; + comments: any[]; + completed: boolean; + completedBy: string; + completedDate: string; + creatableInSearchScope: boolean; + created: string; + createdAtClient: string; + createdBy: D2User; + createdByUserInfo: any; + deleted: boolean; + displayName: string; + dueDate: string; + eventDataValues: any[]; + eventDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + geometry: any; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2User; + lastUpdatedByUserInfo: any; + messageConversations: D2MessageConversation[]; + name: string; + organisationUnit: D2OrganisationUnit; + programInstance: D2ProgramInstance; + programStage: D2ProgramStage; + publicAccess: string; + relationshipItems: any[]; + sharing: any; + status: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + storedBy: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramStageInstanceFilter = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayName: string; + eventQueryCriteria: any; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + program: Id; + programStage: Id; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramStageSection = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dataElements: D2DataElement[]; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + programIndicators: D2ProgramIndicator[]; + programStage: D2ProgramStage; + publicAccess: string; + renderType: any; + sharing: any; + shortName: string; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramTrackedEntityAttribute = { + access: D2Access; + allowFutureDate: boolean; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayInList: boolean; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + mandatory: boolean; + name: string; + program: D2Program; + programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroup[]; + publicAccess: string; + renderOptionsAsRadio: boolean; + renderType: any; + searchable: boolean; + sharing: any; + sortOrder: number; + trackedEntityAttribute: D2TrackedEntityAttribute; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; +}; + +export type D2ProgramTrackedEntityAttributeDimensionItem = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attribute: D2TrackedEntityAttribute; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + program: D2Program; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramTrackedEntityAttributeGroup = { + access: D2Access; + attributeValues: D2AttributeValue[]; + attributes: D2ProgramTrackedEntityAttribute[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + uniqunessType: "NONE" | "STRICT" | "VALIDATION"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2PushAnalysis = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dashboard: D2Dashboard; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + message: string; + name: string; + publicAccess: string; + recipientUserGroups: D2UserGroup[]; + sharing: any; + title: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Relationship = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + from: any; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + relationshipType: D2RelationshipType; + sharing: any; + shortName: string; + style: D2Style; + to: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2RelationshipType = { + access: D2Access; + attributeValues: D2AttributeValue[]; + bidirectional: boolean; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayFromToName: string; + displayName: string; + displayToFromName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fromConstraint: D2RelationshipConstraint; + fromToName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + toConstraint: D2RelationshipConstraint; + toFromName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Report = { + access: D2Access; + attributeValues: D2AttributeValue[]; + cacheStrategy: + | "NO_CACHE" + | "CACHE_1_MINUTE" + | "CACHE_5_MINUTES" + | "CACHE_10_MINUTES" + | "CACHE_15_MINUTES" + | "CACHE_30_MINUTES" + | "CACHE_1_HOUR" + | "CACHE_6AM_TOMORROW" + | "CACHE_TWO_WEEKS" + | "RESPECT_SYSTEM_SETTING"; + code: Id; + created: string; + createdBy: D2User; + designContent: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + relativePeriods: any; + reportParams: D2ReportingParams; + sharing: any; + translations: D2Translation[]; + type: "JASPER_REPORT_TABLE" | "JASPER_JDBC" | "HTML"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + visualization: D2Visualization; +}; + +export type D2ReportTable = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValues: D2AttributeValue[]; + categoryDimensions: D2CategoryDimension[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; + code: Id; + colSubTotals: boolean; + colTotals: boolean; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + createdBy: D2User; + cumulative: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimension[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + displaySubtitle: string; + displayTitle: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + fontSize: "LARGE" | "NORMAL" | "SMALL"; + formName: string; + hideEmptyColumns: boolean; + hideEmptyRows: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2Interpretation[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendDisplayStyle: "FILL" | "TEXT"; + legendSet: D2LegendSet; + measureCriteria: string; + name: string; + numberType: "VALUE" | "ROW_PERCENTAGE" | "COLUMN_PERCENTAGE"; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnit[]; + parentGraphMap: D2Map; + periods: any[]; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; + publicAccess: string; + regression: boolean; + relativePeriods: any; + reportParams: any; + rowDimensions: string[]; + rowSubTotals: boolean; + rowTotals: boolean; + rows: any[]; + sharing: any; + shortName: string; + showDimensionLabels: boolean; + showHierarchy: boolean; + skipRounding: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; +}; + +export type D2ReportingRate = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dataSet: D2DataSet; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + metric: + | "REPORTING_RATE" + | "REPORTING_RATE_ON_TIME" + | "ACTUAL_REPORTS" + | "ACTUAL_REPORTS_ON_TIME" + | "EXPECTED_REPORTS"; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2SMSCommand = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + codeValueSeparator: string; + completenessMethod: "ALL_DATAVALUE" | "AT_LEAST_ONE_DATAVALUE" | "DO_NOT_MARK_COMPLETE"; + created: string; + createdBy: D2User; + currentPeriodUsedForReporting: boolean; + dataset: D2DataSet; + defaultMessage: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + moreThanOneOrgUnitMessage: string; + name: string; + noUserMessage: string; + parserType: + | "KEY_VALUE_PARSER" + | "J2ME_PARSER" + | "ALERT_PARSER" + | "UNREGISTERED_PARSER" + | "TRACKED_ENTITY_REGISTRATION_PARSER" + | "PROGRAM_STAGE_DATAENTRY_PARSER" + | "EVENT_REGISTRATION_PARSER"; + program: D2Program; + programStage: D2ProgramStage; + publicAccess: string; + receivedMessage: string; + separator: string; + sharing: any; + smsCodes: any[]; + specialCharacters: any[]; + successMessage: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroup: D2UserGroup; + userGroupAccesses: D2UserGroupAccess[]; + wrongFormatMessage: string; +}; + +export type D2Section = { + access: D2Access; + attributeValues: D2AttributeValue[]; + categoryCombos: D2CategoryCombo[]; + code: Id; + created: string; + createdBy: D2User; + dataElements: D2DataElement[]; + dataSet: D2DataSet; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + greyedFields: D2DataElementOperand[]; + href: string; + id: Id; + indicators: D2Indicator[]; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + showColumnTotals: boolean; + showRowTotals: boolean; + sortOrder: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2SqlView = { + access: D2Access; + attributeValues: D2AttributeValue[]; + cacheStrategy: + | "NO_CACHE" + | "CACHE_1_MINUTE" + | "CACHE_5_MINUTES" + | "CACHE_10_MINUTES" + | "CACHE_15_MINUTES" + | "CACHE_30_MINUTES" + | "CACHE_1_HOUR" + | "CACHE_6AM_TOMORROW" + | "CACHE_TWO_WEEKS" + | "RESPECT_SYSTEM_SETTING"; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + sqlQuery: string; + translations: D2Translation[]; + type: "VIEW" | "MATERIALIZED_VIEW" | "QUERY"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2TrackedEntityAttribute = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + code: Id; + confidential: boolean; + created: string; + createdBy: D2User; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayInListNoProgram: boolean; + displayName: string; + displayOnVisitSchedule: boolean; + displayShortName: string; + expression: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldMask: string; + formName: string; + generated: boolean; + href: string; + id: Id; + inherit: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + optionSet: D2OptionSet; + optionSetValue: boolean; + orgunitScope: boolean; + pattern: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + skipSynchronization: boolean; + sortOrderInListNoProgram: number; + sortOrderInVisitSchedule: number; + style: D2Style; + translations: D2Translation[]; + unique: boolean; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; +}; + +export type D2TrackedEntityAttributeValue = { + created: string; + lastUpdated: string; + storedBy: string; + trackedEntityAttribute: D2TrackedEntityAttribute; + trackedEntityInstance: D2TrackedEntityInstance; + value: string; +}; + +export type D2TrackedEntityDataElementDimension = { + dataElement: D2DataElement; + filter: string; + legendSet: D2LegendSet; + programStage: D2ProgramStage; +}; + +export type D2TrackedEntityInstance = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdAtClient: string; + createdBy: D2User; + deleted: boolean; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + geometry: any; + href: string; + id: Id; + inactive: boolean; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2User; + name: string; + organisationUnit: D2OrganisationUnit; + programInstances: D2ProgramInstance[]; + programOwners: any[]; + publicAccess: string; + relationshipItems: any[]; + sharing: any; + storedBy: string; + trackedEntityAttributeValues: D2TrackedEntityAttributeValue[]; + trackedEntityType: D2TrackedEntityType; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2TrackedEntityInstanceFilter = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayName: string; + enrollmentCreatedPeriod: any; + enrollmentStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + eventFilters: any[]; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followup: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + program: D2Program; + publicAccess: string; + sharing: any; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2TrackedEntityProgramIndicatorDimension = { + filter: string; + legendSet: D2LegendSet; + programIndicator: D2ProgramIndicator; +}; + +export type D2TrackedEntityType = { + access: D2Access; + allowAuditLog: boolean; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + maxTeiCountToReturn: number; + minAttributesRequiredToSearch: number; + name: string; + publicAccess: string; + sharing: any; + shortName: string; + style: D2Style; + trackedEntityTypeAttributes: D2TrackedEntityTypeAttribute[]; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2TrackedEntityTypeAttribute = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayInList: boolean; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + mandatory: boolean; + name: string; + publicAccess: string; + searchable: boolean; + sharing: any; + trackedEntityAttribute: D2TrackedEntityAttribute; + trackedEntityType: D2TrackedEntityType; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; +}; + +export type D2User = { + access: D2Access; + attributeValues: D2AttributeValue[]; + avatar: D2FileResource; + birthday: string; + code: Id; + created: string; + createdBy: D2User; + dataViewOrganisationUnits: D2OrganisationUnit[]; + displayName: string; + education: string; + email: string; + employer: string; + externalAccess: boolean; + facebookMessenger: string; + favorite: boolean; + favorites: string[]; + firstName: string; + gender: string; + href: string; + id: Id; + interests: string; + introduction: string; + jobTitle: string; + languages: string; + lastCheckedInterpretations: string; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + nationality: string; + organisationUnits: D2OrganisationUnit[]; + phoneNumber: string; + publicAccess: string; + sharing: any; + skype: string; + surname: string; + teiSearchOrganisationUnits: D2OrganisationUnit[]; + telegram: string; + translations: D2Translation[]; + twitter: string; + user: D2User; + userAccesses: D2UserAccess[]; + userCredentials: D2UserCredentials; + userGroupAccesses: D2UserGroupAccess[]; + userGroups: D2UserGroup[]; + welcomeMessage: string; + whatsApp: string; +}; + +export type D2UserAccess = { + access: string; + displayName: string; + id: string; + userUid: string; +}; + +export type D2UserAuthorityGroup = { + access: D2Access; + attributeValues: D2AttributeValue[]; + authorities: string[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + users: D2User[]; +}; + +export type D2UserCredentials = { + access: D2Access; + accountExpiry: string; + attributeValues: D2AttributeValue[]; + catDimensionConstraints: D2Category[]; + code: Id; + cogsDimensionConstraints: D2CategoryOptionGroupSet[]; + created: string; + createdBy: D2User; + disabled: boolean; + displayName: string; + externalAccess: boolean; + externalAuth: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + invitation: boolean; + lastLogin: string; + lastUpdated: string; + lastUpdatedBy: D2User; + ldapId: string; + name: string; + openId: string; + password: string; + passwordLastUpdated: string; + publicAccess: string; + selfRegistered: boolean; + sharing: any; + translations: D2Translation[]; + twoFA: boolean; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userInfo: D2User; + userRoles: D2UserAuthorityGroup[]; + username: string; +}; + +export type D2UserGroup = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + managedByGroups: D2UserGroup[]; + managedGroups: D2UserGroup[]; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + users: D2User[]; +}; + +export type D2UserGroupAccess = { + access: string; + displayName: string; + id: string; + userGroupUid: string; +}; + +export type D2ValidationNotificationTemplate = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + messageTemplate: string; + name: string; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientUserGroups: D2UserGroup[]; + sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; + sharing: any; + subjectTemplate: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + validationRules: D2ValidationRule[]; +}; + +export type D2ValidationResult = { + attributeOptionCombo: D2CategoryOptionCombo; + created: string; + dayInPeriod: number; + id: string; + leftsideValue: number; + notificationSent: boolean; + organisationUnit: D2OrganisationUnit; + period: any; + rightsideValue: number; + validationRule: D2ValidationRule; +}; + +export type D2ValidationRule = { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayInstruction: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + importance: "HIGH" | "MEDIUM" | "LOW"; + instruction: string; + lastUpdated: string; + lastUpdatedBy: D2User; + leftSide: D2Expression; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + notificationTemplates: D2ValidationNotificationTemplate[]; + operator: + | "equal_to" + | "not_equal_to" + | "greater_than" + | "greater_than_or_equal_to" + | "less_than" + | "less_than_or_equal_to" + | "compulsory_pair" + | "exclusive_pair"; + organisationUnitLevels: number[]; + periodOffset: number; + periodType: string; + publicAccess: string; + rightSide: D2Expression; + sharing: any; + shortName: string; + skipFormValidation: boolean; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + validationRuleGroups: D2ValidationRuleGroup[]; +}; + +export type D2ValidationRuleGroup = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + validationRules: D2ValidationRule[]; +}; + +export type D2Visualization = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValues: D2AttributeValue[]; + axes: any[]; + baseLineLabel: string; + baseLineValue: number; + categoryDimensions: D2CategoryDimension[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; + code: Id; + colSubTotals: boolean; + colTotals: boolean; + colorSet: string; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + createdBy: D2User; + cumulativeValues: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimension[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; + displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + displayDescription: string; + displayDomainAxisLabel: string; + displayFormName: string; + displayName: string; + displayRangeAxisLabel: string; + displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; + domainAxisLabel: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + fontSize: "LARGE" | "NORMAL" | "SMALL"; + fontStyle: any; + formName: string; + hideEmptyColumns: boolean; + hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; + hideEmptyRows: boolean; + hideLegend: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2Interpretation[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legend: any; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendDisplayStyle: "FILL" | "TEXT"; + legendSet: D2LegendSet; + measureCriteria: string; + name: string; + noSpaceBetweenColumns: boolean; + numberType: "VALUE" | "ROW_PERCENTAGE" | "COLUMN_PERCENTAGE"; + optionalAxes: D2Axis[]; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnit[]; + outlierAnalysis: any; + parentGraphMap: D2Map; + percentStackedValues: boolean; + periods: any[]; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; + publicAccess: string; + rangeAxisDecimals: number; + rangeAxisLabel: string; + rangeAxisMaxValue: number; + rangeAxisMinValue: number; + rangeAxisSteps: number; + regression: boolean; + regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; + relativePeriods: any; + reportingParams: D2ReportingParams; + rowDimensions: string[]; + rowSubTotals: boolean; + rowTotals: boolean; + rows: any[]; + series: any[]; + sharing: any; + shortName: string; + showData: boolean; + showDimensionLabels: boolean; + showHierarchy: boolean; + skipRounding: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + targetLineLabel: string; + targetLineValue: number; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + type: + | "COLUMN" + | "STACKED_COLUMN" + | "BAR" + | "STACKED_BAR" + | "LINE" + | "AREA" + | "STACKED_AREA" + | "PIE" + | "RADAR" + | "GAUGE" + | "YEAR_OVER_YEAR_LINE" + | "YEAR_OVER_YEAR_COLUMN" + | "SINGLE_VALUE" + | "PIVOT_TABLE" + | "SCATTER" + | "BUBBLE"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + visualizationPeriodName: string; + yearlySeries: string[]; +}; + +export interface D2AnalyticsPeriodBoundarySchema { + name: "D2AnalyticsPeriodBoundary"; + model: D2AnalyticsPeriodBoundary; + fields: { + access: D2Access; + analyticsPeriodBoundaryType: + | "BEFORE_START_OF_REPORTING_PERIOD" + | "BEFORE_END_OF_REPORTING_PERIOD" + | "AFTER_START_OF_REPORTING_PERIOD" + | "AFTER_END_OF_REPORTING_PERIOD"; + attributeValues: D2AttributeValueSchema[]; + boundaryTarget: string; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + offsetPeriodType: string; + offsetPeriods: number; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2AnalyticsPeriodBoundary, + | "code" + | "lastUpdated" + | "offsetPeriodType" + | "id" + | "analyticsPeriodBoundaryType" + | "boundaryTarget" + | "lastUpdatedBy" + | "created" + | "offsetPeriods" + >; + $owner: Preset< + D2AnalyticsPeriodBoundary, + | "code" + | "lastUpdated" + | "offsetPeriodType" + | "id" + | "analyticsPeriodBoundaryType" + | "boundaryTarget" + | "lastUpdatedBy" + | "created" + | "offsetPeriods" + >; + }; +} + +export interface D2AnalyticsTableHookSchema { + name: "D2AnalyticsTableHook"; + model: D2AnalyticsTableHook; + fields: { + access: D2Access; + analyticsTableType: + | "DATA_VALUE" + | "COMPLETENESS" + | "COMPLETENESS_TARGET" + | "ORG_UNIT_TARGET" + | "EVENT" + | "ENROLLMENT" + | "VALIDATION_RESULT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + phase: "RESOURCE_TABLE_POPULATED" | "ANALYTICS_TABLE_POPULATED"; + publicAccess: string; + resourceTableType: + | "ORG_UNIT_STRUCTURE" + | "DATA_SET_ORG_UNIT_CATEGORY" + | "CATEGORY_OPTION_COMBO_NAME" + | "DATA_ELEMENT_GROUP_SET_STRUCTURE" + | "INDICATOR_GROUP_SET_STRUCTURE" + | "ORG_UNIT_GROUP_SET_STRUCTURE" + | "CATEGORY_STRUCTURE" + | "DATA_ELEMENT_STRUCTURE" + | "PERIOD_STRUCTURE" + | "DATE_PERIOD_STRUCTURE" + | "DATA_ELEMENT_CATEGORY_OPTION_COMBO" + | "DATA_APPROVAL_REMAP_LEVEL" + | "DATA_APPROVAL_MIN_LEVEL"; + sharing: any; + sql: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2AnalyticsTableHook, + | "code" + | "analyticsTableType" + | "sql" + | "lastUpdated" + | "id" + | "phase" + | "lastUpdatedBy" + | "created" + | "name" + | "resourceTableType" + >; + $owner: Preset< + D2AnalyticsTableHook, + | "code" + | "analyticsTableType" + | "sql" + | "lastUpdated" + | "id" + | "phase" + | "lastUpdatedBy" + | "created" + | "name" + | "resourceTableType" + >; + }; +} + +export interface D2AttributeSchema { + name: "D2Attribute"; + model: D2Attribute; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + categoryAttribute: boolean; + categoryOptionAttribute: boolean; + categoryOptionComboAttribute: boolean; + categoryOptionGroupAttribute: boolean; + categoryOptionGroupSetAttribute: boolean; + code: Id; + constantAttribute: boolean; + created: string; + createdBy: D2UserSchema; + dataElementAttribute: boolean; + dataElementGroupAttribute: boolean; + dataElementGroupSetAttribute: boolean; + dataSetAttribute: boolean; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + documentAttribute: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + indicatorAttribute: boolean; + indicatorGroupAttribute: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSetAttribute: boolean; + mandatory: boolean; + name: string; + optionAttribute: boolean; + optionSet: D2OptionSetSchema; + optionSetAttribute: boolean; + organisationUnitAttribute: boolean; + organisationUnitGroupAttribute: boolean; + organisationUnitGroupSetAttribute: boolean; + programAttribute: boolean; + programIndicatorAttribute: boolean; + programStageAttribute: boolean; + publicAccess: string; + sectionAttribute: boolean; + sharing: any; + shortName: string; + sortOrder: number; + sqlViewAttribute: boolean; + trackedEntityAttributeAttribute: boolean; + trackedEntityTypeAttribute: boolean; + translations: D2Translation[]; + unique: boolean; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userAttribute: boolean; + userGroupAccesses: D2UserGroupAccessSchema[]; + userGroupAttribute: boolean; + validationRuleAttribute: boolean; + validationRuleGroupAttribute: boolean; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Attribute, + | "indicatorAttribute" + | "indicatorGroupAttribute" + | "userGroupAttribute" + | "dataElementAttribute" + | "lastUpdated" + | "constantAttribute" + | "translations" + | "valueType" + | "categoryOptionAttribute" + | "id" + | "optionSetAttribute" + | "lastUpdatedBy" + | "sqlViewAttribute" + | "created" + | "legendSetAttribute" + | "sharing" + | "trackedEntityAttributeAttribute" + | "organisationUnitAttribute" + | "dataSetAttribute" + | "documentAttribute" + | "unique" + | "sortOrder" + | "name" + | "validationRuleGroupAttribute" + | "shortName" + | "dataElementGroupAttribute" + | "sectionAttribute" + | "trackedEntityTypeAttribute" + | "code" + | "userAttribute" + | "description" + | "mandatory" + | "categoryOptionGroupAttribute" + | "programStageAttribute" + | "programAttribute" + | "optionSet" + | "categoryAttribute" + | "categoryOptionComboAttribute" + | "categoryOptionGroupSetAttribute" + | "validationRuleAttribute" + | "programIndicatorAttribute" + | "organisationUnitGroupAttribute" + | "dataElementGroupSetAttribute" + | "organisationUnitGroupSetAttribute" + | "createdBy" + | "optionAttribute" + >; + $owner: Preset< + D2Attribute, + | "indicatorAttribute" + | "indicatorGroupAttribute" + | "userGroupAttribute" + | "dataElementAttribute" + | "lastUpdated" + | "constantAttribute" + | "translations" + | "valueType" + | "categoryOptionAttribute" + | "id" + | "optionSetAttribute" + | "lastUpdatedBy" + | "sqlViewAttribute" + | "created" + | "legendSetAttribute" + | "sharing" + | "trackedEntityAttributeAttribute" + | "organisationUnitAttribute" + | "dataSetAttribute" + | "documentAttribute" + | "unique" + | "sortOrder" + | "name" + | "validationRuleGroupAttribute" + | "shortName" + | "dataElementGroupAttribute" + | "sectionAttribute" + | "trackedEntityTypeAttribute" + | "code" + | "userAttribute" + | "description" + | "mandatory" + | "categoryOptionGroupAttribute" + | "programStageAttribute" + | "programAttribute" + | "optionSet" + | "categoryAttribute" + | "categoryOptionComboAttribute" + | "categoryOptionGroupSetAttribute" + | "validationRuleAttribute" + | "programIndicatorAttribute" + | "organisationUnitGroupAttribute" + | "dataElementGroupSetAttribute" + | "organisationUnitGroupSetAttribute" + | "createdBy" + | "optionAttribute" + >; + }; +} + +export interface D2AttributeValueSchema { + name: "D2AttributeValue"; + model: D2AttributeValue; + fields: { attribute: D2AttributeSchema; value: string }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2CategorySchema { + name: "D2Category"; + model: D2Category; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueSchema[]; + categoryCombos: D2CategoryComboSchema[]; + categoryOptions: D2CategoryOptionSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + name: string; + programStage: D2ProgramStageSchema; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Category, + | "dataDimensionType" + | "code" + | "lastUpdated" + | "translations" + | "categoryCombos" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "dataDimension" + | "shortName" + >; + $owner: Preset< + D2Category, + | "dataDimensionType" + | "code" + | "lastUpdated" + | "translations" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "dataDimension" + | "shortName" + >; + }; +} + +export interface D2CategoryComboSchema { + name: "D2CategoryCombo"; + model: D2CategoryCombo; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + categories: D2CategorySchema[]; + categoryOptionCombos: D2CategoryOptionComboSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + isDefault: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + skipTotal: boolean; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryCombo, + | "dataDimensionType" + | "code" + | "lastUpdated" + | "translations" + | "id" + | "categories" + | "lastUpdatedBy" + | "created" + | "sharing" + | "categoryOptionCombos" + | "createdBy" + | "name" + | "skipTotal" + >; + $owner: Preset< + D2CategoryCombo, + | "dataDimensionType" + | "code" + | "lastUpdated" + | "translations" + | "id" + | "categories" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "name" + | "skipTotal" + >; + }; +} + +export interface D2CategoryDimensionSchema { + name: "D2CategoryDimension"; + model: D2CategoryDimension; + fields: { category: D2CategorySchema; categoryOptions: any }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2CategoryOptionSchema { + name: "D2CategoryOption"; + model: D2CategoryOption; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + categories: D2CategorySchema[]; + categoryOptionCombos: D2CategoryOptionComboSchema[]; + categoryOptionGroups: D2CategoryOptionGroupSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + isDefault: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + organisationUnits: D2OrganisationUnitSchema[]; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + startDate: string; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryOption, + | "code" + | "endDate" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "categories" + | "organisationUnits" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "categoryOptionCombos" + | "categoryOptionGroups" + | "createdBy" + | "name" + | "style" + | "shortName" + | "startDate" + >; + $owner: Preset< + D2CategoryOption, + | "code" + | "endDate" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "organisationUnits" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "style" + | "shortName" + | "startDate" + >; + }; +} + +export interface D2CategoryOptionComboSchema { + name: "D2CategoryOptionCombo"; + model: D2CategoryOptionCombo; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + categoryCombo: D2CategoryComboSchema; + categoryOptions: D2CategoryOptionSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + ignoreApproval: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryOptionCombo, + | "code" + | "lastUpdated" + | "ignoreApproval" + | "categoryCombo" + | "translations" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "name" + >; + $owner: Preset< + D2CategoryOptionCombo, + | "code" + | "lastUpdated" + | "ignoreApproval" + | "categoryCombo" + | "translations" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "name" + >; + }; +} + +export interface D2CategoryOptionGroupSchema { + name: "D2CategoryOptionGroup"; + model: D2CategoryOptionGroup; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + categoryOptions: D2CategoryOptionSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + groupSets: D2CategoryOptionGroupSetSchema[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryOptionGroup, + | "dataDimensionType" + | "code" + | "lastUpdated" + | "translations" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "groupSets" + | "sharing" + | "createdBy" + | "name" + | "shortName" + >; + $owner: Preset< + D2CategoryOptionGroup, + | "dataDimensionType" + | "code" + | "lastUpdated" + | "translations" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "shortName" + >; + }; +} + +export interface D2CategoryOptionGroupSetSchema { + name: "D2CategoryOptionGroupSet"; + model: D2CategoryOptionGroupSet; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueSchema[]; + categoryOptionGroups: D2CategoryOptionGroupSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + name: string; + programStage: D2ProgramStageSchema; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryOptionGroupSet, + | "dataDimensionType" + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "categoryOptionGroups" + | "createdBy" + | "name" + | "dataDimension" + >; + $owner: Preset< + D2CategoryOptionGroupSet, + | "dataDimensionType" + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "categoryOptionGroups" + | "createdBy" + | "name" + | "dataDimension" + >; + }; +} + +export interface D2CategoryOptionGroupSetDimensionSchema { + name: "D2CategoryOptionGroupSetDimension"; + model: D2CategoryOptionGroupSetDimension; + fields: { categoryOptionGroupSet: D2CategoryOptionGroupSetSchema; categoryOptionGroups: any }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryOptionGroupSetDimension, + "categoryOptionGroups" | "categoryOptionGroupSet" + >; + $owner: Preset< + D2CategoryOptionGroupSetDimension, + "categoryOptionGroups" | "categoryOptionGroupSet" + >; + }; +} + +export interface D2ChartSchema { + name: "D2Chart"; + model: D2Chart; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValues: D2AttributeValueSchema[]; + baseLineLabel: string; + baseLineValue: number; + category: string; + categoryDimensions: D2CategoryDimensionSchema[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; + code: Id; + columns: any[]; + completedOnly: boolean; + created: string; + createdBy: D2UserSchema; + cumulativeValues: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; + displayDescription: string; + displayDomainAxisLabel: string; + displayFormName: string; + displayName: string; + displayRangeAxisLabel: string; + displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; + domainAxisLabel: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + formName: string; + hideEmptyRowItems: + | "NONE" + | "BEFORE_FIRST" + | "AFTER_LAST" + | "BEFORE_FIRST_AFTER_LAST" + | "ALL"; + hideLegend: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendSet: D2LegendSetSchema; + name: string; + noSpaceBetweenColumns: boolean; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnitSchema[]; + parentGraphMap: D2MapSchema; + percentStackedValues: boolean; + periods: any[]; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; + publicAccess: string; + rangeAxisDecimals: number; + rangeAxisLabel: string; + rangeAxisMaxValue: number; + rangeAxisMinValue: number; + rangeAxisSteps: number; + regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; + relativePeriods: any; + rows: any[]; + series: string; + seriesItems: any[]; + sharing: any; + shortName: string; + showData: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + targetLineLabel: string; + targetLineValue: number; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + type: + | "COLUMN" + | "STACKED_COLUMN" + | "BAR" + | "STACKED_BAR" + | "STACKED_AREA" + | "LINE" + | "AREA" + | "PIE" + | "RADAR" + | "GAUGE" + | "YEAR_OVER_YEAR_LINE" + | "YEAR_OVER_YEAR_COLUMN" + | "SINGLE_VALUE" + | "SCATTER" + | "BUBBLE"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + yearlySeries: string[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2ConstantSchema { + name: "D2Constant"; + model: D2Constant; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + value: number; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Constant, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "value" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "shortName" + >; + $owner: Preset< + D2Constant, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "value" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "shortName" + >; + }; +} + +export interface D2DashboardSchema { + name: "D2Dashboard"; + model: D2Dashboard; + fields: { + access: D2Access; + allowedFilters: string[]; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dashboardItems: D2DashboardItemSchema[]; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + itemCount: number; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + restrictFilters: boolean; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Dashboard, + | "favorites" + | "code" + | "description" + | "restrictFilters" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "dashboardItems" + | "createdBy" + | "name" + | "allowedFilters" + >; + $owner: Preset< + D2Dashboard, + | "favorites" + | "code" + | "description" + | "restrictFilters" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "dashboardItems" + | "createdBy" + | "name" + | "allowedFilters" + >; + }; +} + +export interface D2DashboardItemSchema { + name: "D2DashboardItem"; + model: D2DashboardItem; + fields: { + access: D2Access; + appKey: string; + attributeValues: D2AttributeValueSchema[]; + chart: D2ChartSchema; + code: Id; + contentCount: number; + created: string; + createdBy: D2UserSchema; + displayName: string; + eventChart: D2EventChartSchema; + eventReport: D2EventReportSchema; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + height: number; + href: string; + id: Id; + interpretationCount: number; + interpretationLikeCount: number; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + map: D2MapSchema; + messages: boolean; + name: string; + publicAccess: string; + reportTable: D2ReportTableSchema; + reports: D2ReportSchema[]; + resources: D2DocumentSchema[]; + shape: "NORMAL" | "DOUBLE_WIDTH" | "FULL_WIDTH"; + sharing: any; + text: string; + translations: D2Translation[]; + type: + | "VISUALIZATION" + | "CHART" + | "EVENT_CHART" + | "MAP" + | "REPORT_TABLE" + | "EVENT_REPORT" + | "USERS" + | "REPORTS" + | "RESOURCES" + | "TEXT" + | "MESSAGES" + | "APP"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + users: D2UserSchema[]; + visualization: D2VisualizationSchema; + width: number; + x: number; + y: number; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DashboardItem, + | "reports" + | "visualization" + | "code" + | "lastUpdated" + | "translations" + | "appKey" + | "id" + | "text" + | "map" + | "height" + | "lastUpdatedBy" + | "shape" + | "created" + | "resources" + | "users" + | "eventReport" + | "eventChart" + | "width" + | "x" + | "messages" + | "y" + >; + $owner: Preset< + D2DashboardItem, + | "reports" + | "visualization" + | "code" + | "lastUpdated" + | "translations" + | "appKey" + | "id" + | "text" + | "map" + | "height" + | "lastUpdatedBy" + | "shape" + | "created" + | "resources" + | "users" + | "eventReport" + | "eventChart" + | "width" + | "x" + | "messages" + | "y" + >; + }; +} + +export interface D2DataApprovalLevelSchema { + name: "D2DataApprovalLevel"; + model: D2DataApprovalLevel; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + categoryOptionGroupSet: D2CategoryOptionGroupSetSchema; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + level: number; + name: string; + orgUnitLevel: number; + orgUnitLevelName: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataApprovalLevel, + | "categoryOptionGroupSet" + | "code" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "level" + | "created" + | "sharing" + | "createdBy" + | "name" + | "orgUnitLevel" + >; + $owner: Preset< + D2DataApprovalLevel, + | "categoryOptionGroupSet" + | "code" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "level" + | "created" + | "sharing" + | "createdBy" + | "name" + | "orgUnitLevel" + >; + }; +} + +export interface D2DataApprovalWorkflowSchema { + name: "D2DataApprovalWorkflow"; + model: D2DataApprovalWorkflow; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + categoryCombo: D2CategoryComboSchema; + code: Id; + created: string; + createdBy: D2UserSchema; + dataApprovalLevels: D2DataApprovalLevelSchema[]; + dataSets: D2DataSetSchema[]; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + periodType: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataApprovalWorkflow, + | "code" + | "dataApprovalLevels" + | "lastUpdated" + | "categoryCombo" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "periodType" + | "createdBy" + | "name" + | "dataSets" + >; + $owner: Preset< + D2DataApprovalWorkflow, + | "code" + | "dataApprovalLevels" + | "lastUpdated" + | "categoryCombo" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "periodType" + | "createdBy" + | "name" + >; + }; +} + +export interface D2DataElementSchema { + name: "D2DataElement"; + model: D2DataElement; + fields: { + access: D2Access; + aggregationLevels: number[]; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + categoryCombo: D2CategoryComboSchema; + code: Id; + commentOptionSet: D2OptionSetSchema; + created: string; + createdBy: D2UserSchema; + dataElementGroups: D2DataElementGroupSchema[]; + dataSetElements: D2DataSetElementSchema[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + domainType: "AGGREGATE" | "TRACKER"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldMask: string; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + optionSet: D2OptionSetSchema; + optionSetValue: boolean; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + style: D2Style; + translations: D2Translation[]; + url: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + valueTypeOptions: any; + zeroIsSignificant: boolean; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataElement, + | "aggregationType" + | "code" + | "domainType" + | "dataSetElements" + | "description" + | "lastUpdated" + | "optionSet" + | "categoryCombo" + | "translations" + | "valueType" + | "formName" + | "commentOptionSet" + | "id" + | "fieldMask" + | "lastUpdatedBy" + | "valueTypeOptions" + | "created" + | "dataElementGroups" + | "attributeValues" + | "sharing" + | "zeroIsSignificant" + | "url" + | "createdBy" + | "name" + | "legendSets" + | "aggregationLevels" + | "style" + | "shortName" + >; + $owner: Preset< + D2DataElement, + | "aggregationType" + | "code" + | "domainType" + | "description" + | "lastUpdated" + | "optionSet" + | "categoryCombo" + | "translations" + | "valueType" + | "formName" + | "commentOptionSet" + | "id" + | "fieldMask" + | "lastUpdatedBy" + | "valueTypeOptions" + | "created" + | "attributeValues" + | "sharing" + | "zeroIsSignificant" + | "url" + | "createdBy" + | "name" + | "legendSets" + | "aggregationLevels" + | "style" + | "shortName" + >; + }; +} + +export interface D2DataElementGroupSchema { + name: "D2DataElementGroup"; + model: D2DataElementGroup; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataElements: D2DataElementSchema[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + groupSets: D2DataElementGroupSetSchema[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataElementGroup, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "dataElements" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "groupSets" + | "sharing" + | "createdBy" + | "name" + | "shortName" + >; + $owner: Preset< + D2DataElementGroup, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "dataElements" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "shortName" + >; + }; +} + +export interface D2DataElementGroupSetSchema { + name: "D2DataElementGroupSet"; + model: D2DataElementGroupSet; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueSchema[]; + code: Id; + compulsory: boolean; + created: string; + createdBy: D2UserSchema; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + dataElementGroups: D2DataElementGroupSchema[]; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + name: string; + programStage: D2ProgramStageSchema; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataElementGroupSet, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "dataElementGroups" + | "sharing" + | "compulsory" + | "createdBy" + | "name" + | "dataDimension" + | "shortName" + >; + $owner: Preset< + D2DataElementGroupSet, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "dataElementGroups" + | "sharing" + | "compulsory" + | "createdBy" + | "name" + | "dataDimension" + | "shortName" + >; + }; +} + +export interface D2DataElementGroupSetDimensionSchema { + name: "D2DataElementGroupSetDimension"; + model: D2DataElementGroupSetDimension; + fields: { dataElementGroupSet: D2DataElementGroupSetSchema; dataElementGroups: any }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataElementGroupSetDimension, + "dataElementGroups" | "dataElementGroupSet" + >; + $owner: Preset; + }; +} + +export interface D2DataElementOperandSchema { + name: "D2DataElementOperand"; + model: D2DataElementOperand; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeOptionCombo: D2CategoryOptionComboSchema; + attributeValues: D2AttributeValueSchema[]; + categoryOptionCombo: D2CategoryOptionComboSchema; + code: Id; + created: string; + createdBy: D2UserSchema; + dataElement: D2DataElementSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2DataEntryFormSchema { + name: "D2DataEntryForm"; + model: D2DataEntryForm; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + format: number; + href: string; + htmlCode: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + style: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataEntryForm, + | "code" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "htmlCode" + | "format" + | "name" + | "style" + >; + $owner: Preset< + D2DataEntryForm, + | "code" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "htmlCode" + | "format" + | "name" + | "style" + >; + }; +} + +export interface D2DataInputPeriodSchema { + name: "D2DataInputPeriod"; + model: D2DataInputPeriod; + fields: { closingDate: string; openingDate: string; period: any }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2DataSetSchema { + name: "D2DataSet"; + model: D2DataSet; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + categoryCombo: D2CategoryComboSchema; + code: Id; + compulsoryDataElementOperands: D2DataElementOperandSchema[]; + compulsoryFieldsCompleteOnly: boolean; + created: string; + createdBy: D2UserSchema; + dataElementDecoration: boolean; + dataEntryForm: D2DataEntryFormSchema; + dataInputPeriods: D2DataInputPeriodSchema[]; + dataSetElements: D2DataSetElementSchema[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + expiryDays: number; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldCombinationRequired: boolean; + formName: string; + formType: "DEFAULT" | "CUSTOM" | "SECTION" | "SECTION_MULTIORG"; + href: string; + id: Id; + indicators: D2IndicatorSchema[]; + interpretations: D2InterpretationSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + mobile: boolean; + name: string; + noValueRequiresComment: boolean; + notificationRecipients: D2UserGroupSchema; + notifyCompletingUser: boolean; + openFuturePeriods: number; + openPeriodsAfterCoEndDate: number; + organisationUnits: D2OrganisationUnitSchema[]; + periodOffset: number; + periodType: string; + publicAccess: string; + renderAsTabs: boolean; + renderHorizontally: boolean; + sections: D2SectionSchema[]; + sharing: any; + shortName: string; + skipOffline: boolean; + style: D2Style; + timelyDays: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + validCompleteOnly: boolean; + version: number; + workflow: D2DataApprovalWorkflowSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataSet, + | "dataEntryForm" + | "validCompleteOnly" + | "dataSetElements" + | "skipOffline" + | "compulsoryFieldsCompleteOnly" + | "lastUpdated" + | "categoryCombo" + | "translations" + | "dataInputPeriods" + | "id" + | "interpretations" + | "lastUpdatedBy" + | "workflow" + | "created" + | "attributeValues" + | "indicators" + | "sharing" + | "version" + | "sections" + | "timelyDays" + | "name" + | "legendSets" + | "style" + | "notificationRecipients" + | "shortName" + | "code" + | "dataElementDecoration" + | "notifyCompletingUser" + | "noValueRequiresComment" + | "compulsoryDataElementOperands" + | "description" + | "fieldCombinationRequired" + | "formName" + | "organisationUnits" + | "renderHorizontally" + | "renderAsTabs" + | "mobile" + | "openPeriodsAfterCoEndDate" + | "periodType" + | "createdBy" + | "openFuturePeriods" + | "expiryDays" + >; + $owner: Preset< + D2DataSet, + | "dataEntryForm" + | "validCompleteOnly" + | "dataSetElements" + | "skipOffline" + | "compulsoryFieldsCompleteOnly" + | "lastUpdated" + | "categoryCombo" + | "translations" + | "dataInputPeriods" + | "id" + | "lastUpdatedBy" + | "workflow" + | "created" + | "attributeValues" + | "indicators" + | "sharing" + | "version" + | "timelyDays" + | "name" + | "legendSets" + | "style" + | "notificationRecipients" + | "shortName" + | "code" + | "dataElementDecoration" + | "notifyCompletingUser" + | "noValueRequiresComment" + | "compulsoryDataElementOperands" + | "description" + | "fieldCombinationRequired" + | "formName" + | "organisationUnits" + | "renderHorizontally" + | "renderAsTabs" + | "mobile" + | "openPeriodsAfterCoEndDate" + | "periodType" + | "createdBy" + | "openFuturePeriods" + | "expiryDays" + >; + }; +} + +export interface D2DataSetElementSchema { + name: "D2DataSetElement"; + model: D2DataSetElement; + fields: { + categoryCombo: D2CategoryComboSchema; + dataElement: D2DataElementSchema; + dataSet: D2DataSetSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2DataSetNotificationTemplateSchema { + name: "D2DataSetNotificationTemplate"; + model: D2DataSetNotificationTemplate; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataSetNotificationTrigger: "DATA_SET_COMPLETION" | "SCHEDULED_DAYS"; + dataSets: D2DataSetSchema[]; + deliveryChannels: never[]; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + messageTemplate: string; + name: string; + notificationRecipient: "ORGANISATION_UNIT_CONTACT" | "USER_GROUP"; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientUserGroup: D2UserGroupSchema; + relativeScheduledDays: number; + sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; + sharing: any; + subjectTemplate: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataSetNotificationTemplate, + | "code" + | "lastUpdated" + | "translations" + | "relativeScheduledDays" + | "id" + | "subjectTemplate" + | "dataSetNotificationTrigger" + | "sendStrategy" + | "lastUpdatedBy" + | "deliveryChannels" + | "created" + | "notifyUsersInHierarchyOnly" + | "notificationRecipient" + | "notifyParentOrganisationUnitOnly" + | "name" + | "dataSets" + | "recipientUserGroup" + | "messageTemplate" + >; + $owner: Preset< + D2DataSetNotificationTemplate, + | "code" + | "lastUpdated" + | "translations" + | "relativeScheduledDays" + | "id" + | "subjectTemplate" + | "dataSetNotificationTrigger" + | "sendStrategy" + | "lastUpdatedBy" + | "deliveryChannels" + | "created" + | "notifyUsersInHierarchyOnly" + | "notificationRecipient" + | "notifyParentOrganisationUnitOnly" + | "name" + | "dataSets" + | "recipientUserGroup" + | "messageTemplate" + >; + }; +} + +export interface D2DocumentSchema { + name: "D2Document"; + model: D2Document; + fields: { + access: D2Access; + attachment: boolean; + attributeValues: D2AttributeValueSchema[]; + code: Id; + contentType: string; + created: string; + createdBy: D2UserSchema; + displayName: string; + external: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + url: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Document, + | "code" + | "lastUpdated" + | "attachment" + | "translations" + | "id" + | "contentType" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "url" + | "external" + | "createdBy" + | "name" + >; + $owner: Preset< + D2Document, + | "code" + | "lastUpdated" + | "attachment" + | "translations" + | "id" + | "contentType" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "url" + | "external" + | "createdBy" + | "name" + >; + }; +} + +export interface D2EventChartSchema { + name: "D2EventChart"; + model: D2EventChart; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValueDimension: D2TrackedEntityAttributeSchema; + attributeValues: D2AttributeValueSchema[]; + baseLineLabel: string; + baseLineValue: number; + categoryDimensions: D2CategoryDimensionSchema[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; + code: Id; + collapseDataDimensions: boolean; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + createdBy: D2UserSchema; + cumulativeValues: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; + dataElementValueDimension: D2DataElementSchema; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; + displayDescription: string; + displayDomainAxisLabel: string; + displayFormName: string; + displayName: string; + displayRangeAxisLabel: string; + displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; + domainAxisLabel: string; + endDate: string; + eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + formName: string; + hideEmptyRowItems: + | "NONE" + | "BEFORE_FIRST" + | "AFTER_LAST" + | "BEFORE_FIRST_AFTER_LAST" + | "ALL"; + hideLegend: boolean; + hideNaData: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendSet: D2LegendSetSchema; + name: string; + noSpaceBetweenColumns: boolean; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnitSchema[]; + outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; + parentGraphMap: D2MapSchema; + percentStackedValues: boolean; + periods: any[]; + program: D2ProgramSchema; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; + programStage: D2ProgramStageSchema; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + rangeAxisDecimals: number; + rangeAxisLabel: string; + rangeAxisMaxValue: number; + rangeAxisMinValue: number; + rangeAxisSteps: number; + regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; + relativePeriods: any; + rowDimensions: string[]; + rows: any[]; + sharing: any; + shortName: string; + showData: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + targetLineLabel: string; + targetLineValue: number; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + type: + | "COLUMN" + | "STACKED_COLUMN" + | "BAR" + | "STACKED_BAR" + | "STACKED_AREA" + | "LINE" + | "AREA" + | "PIE" + | "RADAR" + | "GAUGE" + | "YEAR_OVER_YEAR_LINE" + | "YEAR_OVER_YEAR_COLUMN" + | "SINGLE_VALUE" + | "SCATTER" + | "BUBBLE"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + value: any; + yearlySeries: string[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2EventChart, + | "orgUnitField" + | "endDate" + | "baseLineValue" + | "userOrganisationUnitChildren" + | "program" + | "type" + | "lastUpdated" + | "attributeDimensions" + | "translations" + | "userOrganisationUnit" + | "filterDimensions" + | "id" + | "interpretations" + | "attributeValueDimension" + | "domainAxisLabel" + | "subscribers" + | "cumulativeValues" + | "sortOrder" + | "subtitle" + | "rangeAxisDecimals" + | "startDate" + | "collapseDataDimensions" + | "userOrganisationUnitGrandChildren" + | "percentStackedValues" + | "noSpaceBetweenColumns" + | "dataElementDimensions" + | "rangeAxisSteps" + | "periods" + | "categoryDimensions" + | "hideTitle" + | "rowDimensions" + | "eventStatus" + | "showData" + | "hideNaData" + | "itemOrganisationUnitGroups" + | "lastUpdatedBy" + | "programIndicatorDimensions" + | "created" + | "rangeAxisLabel" + | "regressionType" + | "columnDimensions" + | "completedOnly" + | "sharing" + | "name" + | "programStatus" + | "hideEmptyRowItems" + | "favorites" + | "aggregationType" + | "code" + | "categoryOptionGroupSetDimensions" + | "hideSubtitle" + | "outputType" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "hideLegend" + | "rangeAxisMinValue" + | "organisationUnitLevels" + | "dataElementValueDimension" + | "relativePeriods" + | "targetLineLabel" + | "organisationUnits" + | "programStage" + | "timeField" + | "targetLineValue" + | "baseLineLabel" + | "createdBy" + | "userOrgUnitType" + | "rangeAxisMaxValue" + >; + $owner: Preset< + D2EventChart, + | "orgUnitField" + | "endDate" + | "baseLineValue" + | "userOrganisationUnitChildren" + | "program" + | "type" + | "lastUpdated" + | "attributeDimensions" + | "translations" + | "userOrganisationUnit" + | "filterDimensions" + | "id" + | "attributeValueDimension" + | "domainAxisLabel" + | "subscribers" + | "cumulativeValues" + | "sortOrder" + | "subtitle" + | "rangeAxisDecimals" + | "startDate" + | "collapseDataDimensions" + | "userOrganisationUnitGrandChildren" + | "percentStackedValues" + | "noSpaceBetweenColumns" + | "dataElementDimensions" + | "rangeAxisSteps" + | "periods" + | "categoryDimensions" + | "hideTitle" + | "rowDimensions" + | "eventStatus" + | "showData" + | "hideNaData" + | "itemOrganisationUnitGroups" + | "lastUpdatedBy" + | "programIndicatorDimensions" + | "created" + | "rangeAxisLabel" + | "regressionType" + | "columnDimensions" + | "completedOnly" + | "sharing" + | "name" + | "programStatus" + | "hideEmptyRowItems" + | "favorites" + | "aggregationType" + | "code" + | "categoryOptionGroupSetDimensions" + | "hideSubtitle" + | "outputType" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "hideLegend" + | "rangeAxisMinValue" + | "organisationUnitLevels" + | "dataElementValueDimension" + | "relativePeriods" + | "targetLineLabel" + | "organisationUnits" + | "programStage" + | "timeField" + | "targetLineValue" + | "baseLineLabel" + | "createdBy" + | "userOrgUnitType" + | "rangeAxisMaxValue" + >; + }; +} + +export interface D2EventReportSchema { + name: "D2EventReport"; + model: D2EventReport; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValueDimension: D2TrackedEntityAttributeSchema; + attributeValues: D2AttributeValueSchema[]; + categoryDimensions: D2CategoryDimensionSchema[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; + code: Id; + colSubTotals: boolean; + colTotals: boolean; + collapseDataDimensions: boolean; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + createdBy: D2UserSchema; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; + dataElementValueDimension: D2DataElementSchema; + dataType: "AGGREGATED_VALUES" | "EVENTS"; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + displaySubtitle: string; + displayTitle: string; + endDate: string; + eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + fontSize: "LARGE" | "NORMAL" | "SMALL"; + formName: string; + hideEmptyRows: boolean; + hideNaData: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnitSchema[]; + outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; + parentGraphMap: D2MapSchema; + periods: any[]; + program: D2ProgramSchema; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; + programStage: D2ProgramStageSchema; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + relativePeriods: any; + rowDimensions: string[]; + rowSubTotals: boolean; + rowTotals: boolean; + rows: any[]; + sharing: any; + shortName: string; + showDimensionLabels: boolean; + showHierarchy: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + value: any; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2EventReport, + | "orgUnitField" + | "endDate" + | "userOrganisationUnitChildren" + | "program" + | "lastUpdated" + | "hideEmptyRows" + | "attributeDimensions" + | "translations" + | "userOrganisationUnit" + | "filterDimensions" + | "id" + | "rowSubTotals" + | "hideNaData" + | "interpretations" + | "itemOrganisationUnitGroups" + | "displayDensity" + | "attributeValueDimension" + | "lastUpdatedBy" + | "programIndicatorDimensions" + | "created" + | "subscribers" + | "dataType" + | "columnDimensions" + | "completedOnly" + | "sharing" + | "colTotals" + | "showDimensionLabels" + | "subtitle" + | "sortOrder" + | "name" + | "fontSize" + | "topLimit" + | "startDate" + | "collapseDataDimensions" + | "programStatus" + | "favorites" + | "aggregationType" + | "code" + | "categoryOptionGroupSetDimensions" + | "userOrganisationUnitGrandChildren" + | "hideSubtitle" + | "outputType" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "organisationUnitLevels" + | "colSubTotals" + | "dataElementValueDimension" + | "relativePeriods" + | "dataElementDimensions" + | "periods" + | "organisationUnits" + | "categoryDimensions" + | "showHierarchy" + | "programStage" + | "rowTotals" + | "timeField" + | "digitGroupSeparator" + | "hideTitle" + | "rowDimensions" + | "createdBy" + | "eventStatus" + | "userOrgUnitType" + >; + $owner: Preset< + D2EventReport, + | "orgUnitField" + | "endDate" + | "userOrganisationUnitChildren" + | "program" + | "lastUpdated" + | "hideEmptyRows" + | "attributeDimensions" + | "translations" + | "userOrganisationUnit" + | "filterDimensions" + | "id" + | "rowSubTotals" + | "hideNaData" + | "itemOrganisationUnitGroups" + | "displayDensity" + | "attributeValueDimension" + | "lastUpdatedBy" + | "programIndicatorDimensions" + | "created" + | "subscribers" + | "dataType" + | "columnDimensions" + | "completedOnly" + | "sharing" + | "colTotals" + | "showDimensionLabels" + | "subtitle" + | "sortOrder" + | "name" + | "fontSize" + | "topLimit" + | "startDate" + | "collapseDataDimensions" + | "programStatus" + | "favorites" + | "aggregationType" + | "code" + | "categoryOptionGroupSetDimensions" + | "userOrganisationUnitGrandChildren" + | "hideSubtitle" + | "outputType" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "organisationUnitLevels" + | "colSubTotals" + | "dataElementValueDimension" + | "relativePeriods" + | "dataElementDimensions" + | "periods" + | "organisationUnits" + | "categoryDimensions" + | "showHierarchy" + | "programStage" + | "rowTotals" + | "timeField" + | "digitGroupSeparator" + | "hideTitle" + | "rowDimensions" + | "createdBy" + | "eventStatus" + | "userOrgUnitType" + >; + }; +} + +export interface D2ExpressionSchema { + name: "D2Expression"; + model: D2Expression; + fields: { + description: string; + expression: string; + missingValueStrategy: + | "SKIP_IF_ANY_VALUE_MISSING" + | "SKIP_IF_ALL_VALUES_MISSING" + | "NEVER_SKIP"; + slidingWindow: boolean; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Expression, + "description" | "expression" | "missingValueStrategy" | "slidingWindow" + >; + $owner: Preset< + D2Expression, + "description" | "expression" | "missingValueStrategy" | "slidingWindow" + >; + }; +} + +export interface D2ExternalFileResourceSchema { + name: "D2ExternalFileResource"; + model: D2ExternalFileResource; + fields: { + access: D2Access; + accessToken: string; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + expires: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fileResource: D2FileResourceSchema; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ExternalFileResource, + | "expires" + | "code" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "created" + | "accessToken" + | "fileResource" + >; + $owner: Preset< + D2ExternalFileResource, + | "expires" + | "code" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "created" + | "accessToken" + | "fileResource" + >; + }; +} + +export interface D2ExternalMapLayerSchema { + name: "D2ExternalMapLayer"; + model: D2ExternalMapLayer; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + attribution: string; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + imageFormat: "PNG" | "JPG"; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + layers: string; + legendSet: D2LegendSetSchema; + legendSetUrl: string; + mapLayerPosition: "BASEMAP" | "OVERLAY"; + mapService: "WMS" | "TMS" | "XYZ"; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + url: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ExternalMapLayer, + | "imageFormat" + | "code" + | "legendSetUrl" + | "mapService" + | "lastUpdated" + | "translations" + | "layers" + | "id" + | "lastUpdatedBy" + | "created" + | "mapLayerPosition" + | "sharing" + | "url" + | "createdBy" + | "name" + | "legendSet" + | "attribution" + >; + $owner: Preset< + D2ExternalMapLayer, + | "imageFormat" + | "code" + | "legendSetUrl" + | "mapService" + | "lastUpdated" + | "translations" + | "layers" + | "id" + | "lastUpdatedBy" + | "created" + | "mapLayerPosition" + | "sharing" + | "url" + | "createdBy" + | "name" + | "legendSet" + | "attribution" + >; + }; +} + +export interface D2FileResourceSchema { + name: "D2FileResource"; + model: D2FileResource; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + contentLength: string; + contentMd5: string; + contentType: string; + created: string; + createdBy: D2UserSchema; + displayName: string; + domain: "DATA_VALUE" | "PUSH_ANALYSIS" | "DOCUMENT" | "MESSAGE_ATTACHMENT" | "USER_AVATAR"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + hasMultipleStorageFiles: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + storageStatus: "NONE" | "PENDING" | "FAILED" | "STORED"; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2FileResource, + | "contentMd5" + | "code" + | "lastUpdated" + | "id" + | "contentType" + | "lastUpdatedBy" + | "created" + | "createdBy" + | "domain" + | "hasMultipleStorageFiles" + | "name" + | "contentLength" + >; + $owner: Preset< + D2FileResource, + | "contentMd5" + | "code" + | "lastUpdated" + | "id" + | "contentType" + | "lastUpdatedBy" + | "created" + | "createdBy" + | "domain" + | "hasMultipleStorageFiles" + | "name" + | "contentLength" + >; + }; +} + +export interface D2IconSchema { + name: "D2Icon"; + model: D2Icon; + fields: {}; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2IndicatorSchema { + name: "D2Indicator"; + model: D2Indicator; + fields: { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + annualized: boolean; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataSets: D2DataSetSchema[]; + decimals: number; + denominator: string; + denominatorDescription: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDenominatorDescription: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayNumeratorDescription: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + indicatorGroups: D2IndicatorGroupSchema[]; + indicatorType: D2IndicatorTypeSchema; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + numerator: string; + numeratorDescription: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + style: D2Style; + translations: D2Translation[]; + url: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Indicator, + | "aggregateExportCategoryOptionCombo" + | "lastUpdated" + | "denominatorDescription" + | "indicatorType" + | "translations" + | "id" + | "numeratorDescription" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "indicatorGroups" + | "sharing" + | "numerator" + | "denominator" + | "annualized" + | "name" + | "dataSets" + | "legendSets" + | "style" + | "shortName" + | "aggregateExportAttributeOptionCombo" + | "code" + | "description" + | "formName" + | "url" + | "createdBy" + | "decimals" + >; + $owner: Preset< + D2Indicator, + | "aggregateExportCategoryOptionCombo" + | "lastUpdated" + | "denominatorDescription" + | "indicatorType" + | "translations" + | "id" + | "numeratorDescription" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "numerator" + | "denominator" + | "annualized" + | "name" + | "legendSets" + | "style" + | "shortName" + | "aggregateExportAttributeOptionCombo" + | "code" + | "description" + | "formName" + | "url" + | "createdBy" + | "decimals" + >; + }; +} + +export interface D2IndicatorGroupSchema { + name: "D2IndicatorGroup"; + model: D2IndicatorGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + indicatorGroupSet: D2IndicatorGroupSetSchema; + indicators: D2IndicatorSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2IndicatorGroup, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "indicators" + | "indicatorGroupSet" + | "createdBy" + | "name" + >; + $owner: Preset< + D2IndicatorGroup, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "indicators" + | "indicatorGroupSet" + | "createdBy" + | "name" + >; + }; +} + +export interface D2IndicatorGroupSetSchema { + name: "D2IndicatorGroupSet"; + model: D2IndicatorGroupSet; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + compulsory: boolean; + created: string; + createdBy: D2UserSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + indicatorGroups: D2IndicatorGroupSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2IndicatorGroupSet, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "indicatorGroups" + | "sharing" + | "compulsory" + | "createdBy" + | "name" + >; + $owner: Preset< + D2IndicatorGroupSet, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "indicatorGroups" + | "sharing" + | "compulsory" + | "createdBy" + | "name" + >; + }; +} + +export interface D2IndicatorTypeSchema { + name: "D2IndicatorType"; + model: D2IndicatorType; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + factor: number; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + number: boolean; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2IndicatorType, + | "lastUpdatedBy" + | "code" + | "created" + | "lastUpdated" + | "number" + | "translations" + | "name" + | "id" + | "factor" + >; + $owner: Preset< + D2IndicatorType, + | "lastUpdatedBy" + | "code" + | "created" + | "lastUpdated" + | "number" + | "translations" + | "name" + | "id" + | "factor" + >; + }; +} + +export interface D2InterpretationSchema { + name: "D2Interpretation"; + model: D2Interpretation; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + chart: D2ChartSchema; + code: Id; + comments: D2InterpretationCommentSchema[]; + created: string; + createdBy: D2UserSchema; + dataSet: D2DataSetSchema; + displayName: string; + eventChart: D2EventChartSchema; + eventReport: D2EventReportSchema; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + likedBy: D2UserSchema[]; + likes: number; + map: D2MapSchema; + mentions: any[]; + name: string; + organisationUnit: D2OrganisationUnitSchema; + period: any; + publicAccess: string; + reportTable: D2ReportTableSchema; + sharing: any; + text: string; + translations: D2Translation[]; + type: + | "VISUALIZATION" + | "REPORT_TABLE" + | "CHART" + | "MAP" + | "EVENT_REPORT" + | "EVENT_CHART" + | "DATASET_REPORT"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + visualization: D2VisualizationSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Interpretation, + | "visualization" + | "likedBy" + | "organisationUnit" + | "lastUpdated" + | "id" + | "text" + | "map" + | "dataSet" + | "likes" + | "period" + | "comments" + | "created" + | "sharing" + | "createdBy" + | "eventReport" + | "mentions" + | "eventChart" + >; + $owner: Preset< + D2Interpretation, + | "visualization" + | "likedBy" + | "organisationUnit" + | "lastUpdated" + | "id" + | "text" + | "map" + | "dataSet" + | "likes" + | "period" + | "comments" + | "created" + | "sharing" + | "createdBy" + | "eventReport" + | "mentions" + | "eventChart" + >; + }; +} + +export interface D2InterpretationCommentSchema { + name: "D2InterpretationComment"; + model: D2InterpretationComment; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + mentions: any[]; + name: string; + publicAccess: string; + sharing: any; + text: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2InterpretationComment, + "created" | "lastUpdated" | "createdBy" | "mentions" | "text" | "id" + >; + $owner: Preset< + D2InterpretationComment, + "created" | "lastUpdated" | "createdBy" | "mentions" | "text" | "id" + >; + }; +} + +export interface D2JobConfigurationSchema { + name: "D2JobConfiguration"; + model: D2JobConfiguration; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + configurable: boolean; + created: string; + createdBy: D2UserSchema; + cronExpression: string; + delay: number; + displayName: string; + enabled: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + jobParameters: any; + jobStatus: + | "RUNNING" + | "COMPLETED" + | "STOPPED" + | "SCHEDULED" + | "DISABLED" + | "FAILED" + | "NOT_STARTED"; + jobType: + | "DATA_STATISTICS" + | "DATA_INTEGRITY" + | "RESOURCE_TABLE" + | "ANALYTICS_TABLE" + | "CONTINUOUS_ANALYTICS_TABLE" + | "DATA_SYNC" + | "TRACKER_PROGRAMS_DATA_SYNC" + | "EVENT_PROGRAMS_DATA_SYNC" + | "FILE_RESOURCE_CLEANUP" + | "IMAGE_PROCESSING" + | "META_DATA_SYNC" + | "SMS_SEND" + | "SEND_SCHEDULED_MESSAGE" + | "PROGRAM_NOTIFICATIONS" + | "VALIDATION_RESULTS_NOTIFICATION" + | "CREDENTIALS_EXPIRY_ALERT" + | "MONITORING" + | "PUSH_ANALYSIS" + | "PREDICTOR" + | "DATA_SET_NOTIFICATION" + | "REMOVE_USED_OR_EXPIRED_RESERVED_VALUES" + | "TRACKER_IMPORT_JOB" + | "TRACKER_IMPORT_NOTIFICATION_JOB" + | "TRACKER_IMPORT_RULE_ENGINE_JOB" + | "LEADER_ELECTION" + | "LEADER_RENEWAL" + | "COMPLETE_DATA_SET_REGISTRATION_IMPORT" + | "DATAVALUE_IMPORT_INTERNAL" + | "METADATA_IMPORT" + | "DATAVALUE_IMPORT" + | "EVENT_IMPORT" + | "ENROLLMENT_IMPORT" + | "TEI_IMPORT" + | "DISABLE_INACTIVE_USERS" + | "MOCK" + | "GML_IMPORT" + | "ANALYTICSTABLE_UPDATE" + | "PROGRAM_DATA_SYNC"; + lastExecuted: string; + lastExecutedStatus: + | "RUNNING" + | "COMPLETED" + | "STOPPED" + | "SCHEDULED" + | "DISABLED" + | "FAILED" + | "NOT_STARTED"; + lastRuntimeExecution: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + leaderOnlyJob: boolean; + name: string; + nextExecutionTime: string; + publicAccess: string; + schedulingType: "CRON" | "FIXED_DELAY"; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userUid: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2JobConfiguration, + | "jobStatus" + | "code" + | "enabled" + | "leaderOnlyJob" + | "lastUpdated" + | "id" + | "jobType" + | "lastUpdatedBy" + | "nextExecutionTime" + | "created" + | "cronExpression" + | "lastRuntimeExecution" + | "delay" + | "lastExecutedStatus" + | "name" + | "jobParameters" + | "lastExecuted" + >; + $owner: Preset< + D2JobConfiguration, + | "jobStatus" + | "code" + | "enabled" + | "leaderOnlyJob" + | "lastUpdated" + | "id" + | "jobType" + | "lastUpdatedBy" + | "nextExecutionTime" + | "created" + | "cronExpression" + | "lastRuntimeExecution" + | "delay" + | "lastExecutedStatus" + | "name" + | "jobParameters" + | "lastExecuted" + >; + }; +} + +export interface D2KeyJsonValueSchema { + name: "D2KeyJsonValue"; + model: D2KeyJsonValue; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + key: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + namespace: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + value: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2KeyJsonValue, + | "code" + | "lastUpdated" + | "id" + | "key" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "namespace" + >; + $owner: Preset< + D2KeyJsonValue, + | "code" + | "lastUpdated" + | "id" + | "key" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "namespace" + >; + }; +} + +export interface D2LegendSchema { + name: "D2Legend"; + model: D2Legend; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + color: string; + created: string; + createdBy: D2UserSchema; + displayName: string; + endValue: number; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + image: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + startValue: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Legend, + | "code" + | "endValue" + | "color" + | "lastUpdated" + | "translations" + | "startValue" + | "id" + | "lastUpdatedBy" + | "image" + | "created" + | "name" + >; + $owner: Preset< + D2Legend, + | "code" + | "endValue" + | "color" + | "lastUpdated" + | "translations" + | "startValue" + | "id" + | "lastUpdatedBy" + | "image" + | "created" + | "name" + >; + }; +} + +export interface D2LegendSetSchema { + name: "D2LegendSet"; + model: D2LegendSet; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legends: D2LegendSchema[]; + name: string; + publicAccess: string; + sharing: any; + symbolizer: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2LegendSet, + | "lastUpdatedBy" + | "code" + | "created" + | "attributeValues" + | "sharing" + | "symbolizer" + | "lastUpdated" + | "legends" + | "createdBy" + | "translations" + | "name" + | "id" + >; + $owner: Preset< + D2LegendSet, + | "lastUpdatedBy" + | "code" + | "created" + | "attributeValues" + | "sharing" + | "symbolizer" + | "lastUpdated" + | "legends" + | "createdBy" + | "translations" + | "name" + | "id" + >; + }; +} + +export interface D2MapSchema { + name: "D2Map"; + model: D2Map; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + basemap: string; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + latitude: number; + longitude: number; + mapViews: D2MapViewSchema[]; + name: string; + publicAccess: string; + sharing: any; + shortName: string; + subscribed: boolean; + subscribers: string[]; + title: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + zoom: number; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Map, + | "favorites" + | "code" + | "basemap" + | "latitude" + | "description" + | "title" + | "lastUpdated" + | "translations" + | "mapViews" + | "id" + | "interpretations" + | "longitude" + | "lastUpdatedBy" + | "subscribers" + | "created" + | "zoom" + | "sharing" + | "createdBy" + | "name" + >; + $owner: Preset< + D2Map, + | "favorites" + | "code" + | "basemap" + | "latitude" + | "description" + | "title" + | "lastUpdated" + | "translations" + | "mapViews" + | "id" + | "longitude" + | "lastUpdatedBy" + | "subscribers" + | "created" + | "zoom" + | "sharing" + | "createdBy" + | "name" + >; + }; +} + +export interface D2MapViewSchema { + name: "D2MapView"; + model: D2MapView; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + areaRadius: number; + attributeDimensions: any[]; + attributeValues: D2AttributeValueSchema[]; + categoryDimensions: D2CategoryDimensionSchema[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; + classes: number; + code: Id; + colorHigh: string; + colorLow: string; + colorScale: string; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + config: string; + created: string; + createdBy: D2UserSchema; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + displaySubtitle: string; + displayTitle: string; + endDate: string; + eventClustering: boolean; + eventCoordinateField: string; + eventPointColor: string; + eventPointRadius: number; + eventStatus: "ACTIVE" | "COMPLETED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + followUp: boolean; + formName: string; + hidden: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; + labelFontColor: string; + labelFontSize: string; + labelFontStyle: string; + labelFontWeight: string; + labels: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + layer: string; + legendSet: D2LegendSetSchema; + method: number; + name: string; + noDataColor: string; + opacity: number; + orgUnitField: string; + organisationUnitGroupSet: D2OrganisationUnitGroupSetSchema; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; + organisationUnitLevels: number[]; + organisationUnitSelectionMode: + | "SELECTED" + | "CHILDREN" + | "DESCENDANTS" + | "ACCESSIBLE" + | "CAPTURE" + | "ALL"; + organisationUnits: D2OrganisationUnitSchema[]; + parentGraph: string; + parentGraphMap: D2MapSchema; + parentLevel: number; + periods: any[]; + program: D2ProgramSchema; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; + programStage: D2ProgramStageSchema; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + radiusHigh: number; + radiusLow: number; + relativePeriods: any; + renderingStrategy: "SINGLE" | "SPLIT_BY_PERIOD" | "TIMELINE"; + rows: any[]; + sharing: any; + shortName: string; + sortOrder: number; + startDate: string; + styleDataItem: object; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + thematicMapType: "CHOROPLETH" | "BUBBLE"; + timeField: string; + title: string; + topLimit: number; + trackedEntityType: D2TrackedEntityTypeSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2MapView, + | "endDate" + | "userOrganisationUnitChildren" + | "program" + | "lastUpdated" + | "attributeDimensions" + | "translations" + | "eventCoordinateField" + | "userOrganisationUnit" + | "organisationUnitSelectionMode" + | "filterDimensions" + | "id" + | "method" + | "renderingStrategy" + | "labels" + | "startDate" + | "noDataColor" + | "userOrganisationUnitGrandChildren" + | "styleDataItem" + | "labelFontColor" + | "layer" + | "dataElementDimensions" + | "periods" + | "categoryDimensions" + | "labelFontStyle" + | "radiusHigh" + | "eventClustering" + | "colorLow" + | "eventStatus" + | "opacity" + | "config" + | "colorScale" + | "itemOrganisationUnitGroups" + | "lastUpdatedBy" + | "labelFontSize" + | "created" + | "columnDimensions" + | "colorHigh" + | "eventPointRadius" + | "areaRadius" + | "programStatus" + | "aggregationType" + | "dataDimensionItems" + | "code" + | "categoryOptionGroupSetDimensions" + | "hidden" + | "thematicMapType" + | "classes" + | "description" + | "organisationUnitGroupSetDimensions" + | "organisationUnitLevels" + | "organisationUnitGroupSet" + | "followUp" + | "relativePeriods" + | "organisationUnits" + | "eventPointColor" + | "programStage" + | "labelFontWeight" + | "radiusLow" + | "trackedEntityType" + | "legendSet" + | "userOrgUnitType" + >; + $owner: Preset< + D2MapView, + | "endDate" + | "userOrganisationUnitChildren" + | "program" + | "lastUpdated" + | "attributeDimensions" + | "translations" + | "eventCoordinateField" + | "userOrganisationUnit" + | "organisationUnitSelectionMode" + | "filterDimensions" + | "id" + | "method" + | "renderingStrategy" + | "labels" + | "startDate" + | "noDataColor" + | "userOrganisationUnitGrandChildren" + | "styleDataItem" + | "labelFontColor" + | "layer" + | "dataElementDimensions" + | "periods" + | "categoryDimensions" + | "labelFontStyle" + | "radiusHigh" + | "eventClustering" + | "colorLow" + | "eventStatus" + | "opacity" + | "config" + | "colorScale" + | "itemOrganisationUnitGroups" + | "lastUpdatedBy" + | "labelFontSize" + | "created" + | "columnDimensions" + | "colorHigh" + | "eventPointRadius" + | "areaRadius" + | "programStatus" + | "aggregationType" + | "dataDimensionItems" + | "code" + | "categoryOptionGroupSetDimensions" + | "hidden" + | "thematicMapType" + | "classes" + | "description" + | "organisationUnitGroupSetDimensions" + | "organisationUnitLevels" + | "organisationUnitGroupSet" + | "followUp" + | "relativePeriods" + | "organisationUnits" + | "eventPointColor" + | "programStage" + | "labelFontWeight" + | "radiusLow" + | "trackedEntityType" + | "legendSet" + | "userOrgUnitType" + >; + }; +} + +export interface D2MessageConversationSchema { + name: "D2MessageConversation"; + model: D2MessageConversation; + fields: { + access: D2Access; + assignee: D2UserSchema; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followUp: boolean; + href: string; + id: Id; + lastMessage: string; + lastSender: D2UserSchema; + lastSenderFirstname: string; + lastSenderSurname: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + messageCount: number; + messageType: "PRIVATE" | "SYSTEM" | "VALIDATION_RESULT" | "TICKET"; + messages: any[]; + name: string; + priority: "NONE" | "LOW" | "MEDIUM" | "HIGH"; + publicAccess: string; + read: boolean; + sharing: any; + status: "NONE" | "OPEN" | "PENDING" | "INVALID" | "SOLVED"; + subject: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userFirstname: string; + userGroupAccesses: D2UserGroupAccessSchema[]; + userMessages: any[]; + userSurname: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2MessageConversation, + | "messageCount" + | "subject" + | "lastUpdated" + | "messageType" + | "userMessages" + | "id" + | "lastSender" + | "created" + | "lastMessage" + | "priority" + | "createdBy" + | "messages" + | "assignee" + | "status" + >; + $owner: Preset< + D2MessageConversation, + | "messageCount" + | "subject" + | "lastUpdated" + | "messageType" + | "userMessages" + | "id" + | "lastSender" + | "created" + | "lastMessage" + | "priority" + | "createdBy" + | "messages" + | "assignee" + | "status" + >; + }; +} + +export interface D2MetadataVersionSchema { + name: "D2MetadataVersion"; + model: D2MetadataVersion; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + hashCode: string; + href: string; + id: Id; + importDate: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + type: "BEST_EFFORT" | "ATOMIC"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2MetadataVersion, + | "code" + | "type" + | "lastUpdated" + | "importDate" + | "hashCode" + | "id" + | "lastUpdatedBy" + | "created" + | "name" + >; + $owner: Preset< + D2MetadataVersion, + | "code" + | "type" + | "lastUpdated" + | "importDate" + | "hashCode" + | "id" + | "lastUpdatedBy" + | "created" + | "name" + >; + }; +} + +export interface D2MinMaxDataElementSchema { + name: "D2MinMaxDataElement"; + model: D2MinMaxDataElement; + fields: { + dataElement: D2DataElementSchema; + generated: boolean; + max: number; + min: number; + optionCombo: D2CategoryOptionComboSchema; + source: D2OrganisationUnitSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2MinMaxDataElement, + "min" | "generated" | "max" | "dataElement" | "source" | "optionCombo" + >; + $owner: Preset< + D2MinMaxDataElement, + "min" | "generated" | "max" | "dataElement" | "source" | "optionCombo" + >; + }; +} + +export interface D2OAuth2ClientSchema { + name: "D2OAuth2Client"; + model: D2OAuth2Client; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + cid: Id; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + grantTypes: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + redirectUris: string[]; + secret: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OAuth2Client, + | "code" + | "secret" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "created" + | "redirectUris" + | "grantTypes" + | "name" + | "cid" + >; + $owner: Preset< + D2OAuth2Client, + | "code" + | "secret" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "created" + | "redirectUris" + | "grantTypes" + | "name" + | "cid" + >; + }; +} + +export interface D2OptionSchema { + name: "D2Option"; + model: D2Option; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: string; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + optionSet: D2OptionSetSchema; + publicAccess: string; + sharing: any; + shortName: string; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Option, + | "code" + | "description" + | "lastUpdated" + | "optionSet" + | "translations" + | "formName" + | "id" + | "created" + | "attributeValues" + | "sortOrder" + | "name" + | "style" + >; + $owner: Preset< + D2Option, + | "code" + | "description" + | "lastUpdated" + | "optionSet" + | "translations" + | "formName" + | "id" + | "created" + | "attributeValues" + | "sortOrder" + | "name" + | "style" + >; + }; +} + +export interface D2OptionGroupSchema { + name: "D2OptionGroup"; + model: D2OptionGroup; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + optionSet: D2OptionSetSchema; + options: D2OptionSchema[]; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OptionGroup, + | "code" + | "lastUpdated" + | "optionSet" + | "translations" + | "options" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "name" + | "shortName" + >; + $owner: Preset< + D2OptionGroup, + | "code" + | "lastUpdated" + | "optionSet" + | "translations" + | "options" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "name" + | "shortName" + >; + }; +} + +export interface D2OptionGroupSetSchema { + name: "D2OptionGroupSet"; + model: D2OptionGroupSet; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + name: string; + optionGroups: D2OptionGroupSchema[]; + optionSet: D2OptionSetSchema; + programStage: D2ProgramStageSchema; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OptionGroupSet, + | "code" + | "description" + | "optionGroups" + | "lastUpdated" + | "optionSet" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "name" + | "dataDimension" + >; + $owner: Preset< + D2OptionGroupSet, + | "code" + | "description" + | "optionGroups" + | "lastUpdated" + | "optionSet" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "name" + | "dataDimension" + >; + }; +} + +export interface D2OptionSetSchema { + name: "D2OptionSet"; + model: D2OptionSet; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + options: D2OptionSchema[]; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + version: number; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OptionSet, + | "code" + | "lastUpdated" + | "translations" + | "valueType" + | "options" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "version" + | "createdBy" + | "name" + >; + $owner: Preset< + D2OptionSet, + | "code" + | "lastUpdated" + | "translations" + | "valueType" + | "options" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "version" + | "createdBy" + | "name" + >; + }; +} + +export interface D2OrganisationUnitSchema { + name: "D2OrganisationUnit"; + model: D2OrganisationUnit; + fields: { + access: D2Access; + address: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + ancestors: D2OrganisationUnitSchema[]; + attributeValues: D2AttributeValueSchema[]; + children: D2OrganisationUnitSchema[]; + closedDate: string; + code: Id; + comment: string; + contactPerson: string; + created: string; + createdBy: D2UserSchema; + dataSets: D2DataSetSchema[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + email: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + geometry: any; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + leaf: boolean; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + level: number; + memberCount: number; + name: string; + openingDate: string; + organisationUnitGroups: D2OrganisationUnitGroupSchema[]; + parent: D2OrganisationUnitSchema; + path: string; + periodOffset: number; + phoneNumber: string; + programs: D2ProgramSchema[]; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + type: string; + url: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + users: D2UserSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OrganisationUnit, + | "parent" + | "path" + | "lastUpdated" + | "children" + | "translations" + | "id" + | "organisationUnitGroups" + | "lastUpdatedBy" + | "level" + | "created" + | "attributeValues" + | "users" + | "phoneNumber" + | "name" + | "dataSets" + | "programs" + | "shortName" + | "code" + | "description" + | "contactPerson" + | "openingDate" + | "email" + | "address" + | "url" + | "closedDate" + | "createdBy" + | "geometry" + | "comment" + >; + $owner: Preset< + D2OrganisationUnit, + | "parent" + | "path" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "level" + | "created" + | "attributeValues" + | "phoneNumber" + | "name" + | "shortName" + | "code" + | "description" + | "contactPerson" + | "openingDate" + | "email" + | "address" + | "url" + | "closedDate" + | "createdBy" + | "geometry" + | "comment" + >; + }; +} + +export interface D2OrganisationUnitGroupSchema { + name: "D2OrganisationUnitGroup"; + model: D2OrganisationUnitGroup; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + color: string; + created: string; + createdBy: D2UserSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + geometry: any; + groupSets: D2OrganisationUnitGroupSetSchema[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + organisationUnits: D2OrganisationUnitSchema[]; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + symbol: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OrganisationUnitGroup, + | "symbol" + | "code" + | "color" + | "lastUpdated" + | "translations" + | "id" + | "organisationUnits" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "groupSets" + | "sharing" + | "createdBy" + | "name" + | "geometry" + | "shortName" + >; + $owner: Preset< + D2OrganisationUnitGroup, + | "symbol" + | "code" + | "color" + | "lastUpdated" + | "translations" + | "id" + | "organisationUnits" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "geometry" + | "shortName" + >; + }; +} + +export interface D2OrganisationUnitGroupSetSchema { + name: "D2OrganisationUnitGroupSet"; + model: D2OrganisationUnitGroupSet; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueSchema[]; + code: Id; + compulsory: boolean; + created: string; + createdBy: D2UserSchema; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + dimensionalKeywords: D2DimensionalKeywords; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + includeSubhierarchyInAnalytics: boolean; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + name: string; + organisationUnitGroups: D2OrganisationUnitGroupSchema[]; + programStage: D2ProgramStageSchema; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OrganisationUnitGroupSet, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "organisationUnitGroups" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "compulsory" + | "createdBy" + | "includeSubhierarchyInAnalytics" + | "name" + | "dataDimension" + | "shortName" + >; + $owner: Preset< + D2OrganisationUnitGroupSet, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "organisationUnitGroups" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "compulsory" + | "createdBy" + | "includeSubhierarchyInAnalytics" + | "name" + | "dataDimension" + | "shortName" + >; + }; +} + +export interface D2OrganisationUnitGroupSetDimensionSchema { + name: "D2OrganisationUnitGroupSetDimension"; + model: D2OrganisationUnitGroupSetDimension; + fields: { + organisationUnitGroupSet: D2OrganisationUnitGroupSetSchema; + organisationUnitGroups: any; + }; + fieldPresets: { + $all: Preset< + D2OrganisationUnitGroupSetDimension, + keyof D2OrganisationUnitGroupSetDimension + >; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OrganisationUnitGroupSetDimension, + "organisationUnitGroupSet" | "organisationUnitGroups" + >; + $owner: Preset< + D2OrganisationUnitGroupSetDimension, + "organisationUnitGroupSet" | "organisationUnitGroups" + >; + }; +} + +export interface D2OrganisationUnitLevelSchema { + name: "D2OrganisationUnitLevel"; + model: D2OrganisationUnitLevel; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + level: number; + name: string; + offlineLevels: number; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OrganisationUnitLevel, + | "lastUpdatedBy" + | "offlineLevels" + | "code" + | "level" + | "created" + | "lastUpdated" + | "translations" + | "name" + | "id" + >; + $owner: Preset< + D2OrganisationUnitLevel, + | "lastUpdatedBy" + | "offlineLevels" + | "code" + | "level" + | "created" + | "lastUpdated" + | "translations" + | "name" + | "id" + >; + }; +} + +export interface D2PredictorSchema { + name: "D2Predictor"; + model: D2Predictor; + fields: { + access: D2Access; + annualSampleCount: number; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + generator: D2ExpressionSchema; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + organisationUnitLevels: D2OrganisationUnitLevelSchema[]; + output: D2DataElementSchema; + outputCombo: D2CategoryOptionComboSchema; + periodType: string; + predictorGroups: D2PredictorGroupSchema[]; + publicAccess: string; + sampleSkipTest: D2ExpressionSchema; + sequentialSampleCount: number; + sequentialSkipCount: number; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Predictor, + | "outputCombo" + | "code" + | "description" + | "generator" + | "organisationUnitLevels" + | "output" + | "lastUpdated" + | "sampleSkipTest" + | "id" + | "sequentialSampleCount" + | "annualSampleCount" + | "lastUpdatedBy" + | "created" + | "sequentialSkipCount" + | "predictorGroups" + | "periodType" + | "name" + >; + $owner: Preset< + D2Predictor, + | "outputCombo" + | "code" + | "description" + | "generator" + | "organisationUnitLevels" + | "output" + | "lastUpdated" + | "sampleSkipTest" + | "id" + | "sequentialSampleCount" + | "annualSampleCount" + | "lastUpdatedBy" + | "created" + | "sequentialSkipCount" + | "periodType" + | "name" + >; + }; +} + +export interface D2PredictorGroupSchema { + name: "D2PredictorGroup"; + model: D2PredictorGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + predictors: D2PredictorSchema[]; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2PredictorGroup, + | "predictors" + | "lastUpdatedBy" + | "code" + | "created" + | "description" + | "sharing" + | "lastUpdated" + | "createdBy" + | "translations" + | "name" + | "id" + >; + $owner: Preset< + D2PredictorGroup, + | "predictors" + | "lastUpdatedBy" + | "code" + | "created" + | "description" + | "sharing" + | "lastUpdated" + | "createdBy" + | "translations" + | "name" + | "id" + >; + }; +} + +export interface D2ProgramSchema { + name: "D2Program"; + model: D2Program; + fields: { + access: D2Access; + accessLevel: "OPEN" | "AUDITED" | "PROTECTED" | "CLOSED"; + attributeValues: D2AttributeValueSchema[]; + categoryCombo: D2CategoryComboSchema; + code: Id; + completeEventsExpiryDays: number; + created: string; + createdBy: D2UserSchema; + dataEntryForm: D2DataEntryFormSchema; + description: string; + displayDescription: string; + displayEnrollmentDateLabel: string; + displayFormName: string; + displayFrontPageList: boolean; + displayIncidentDate: boolean; + displayIncidentDateLabel: string; + displayName: string; + displayShortName: string; + enrollmentDateLabel: string; + expiryDays: number; + expiryPeriodType: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + href: string; + id: Id; + ignoreOverdueEvents: boolean; + incidentDateLabel: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + maxTeiCountToReturn: number; + minAttributesRequiredToSearch: number; + name: string; + notificationTemplates: D2ProgramNotificationTemplateSchema[]; + onlyEnrollOnce: boolean; + organisationUnits: D2OrganisationUnitSchema[]; + programIndicators: D2ProgramIndicatorSchema[]; + programRuleVariables: D2ProgramRuleVariableSchema[]; + programSections: D2ProgramSectionSchema[]; + programStages: D2ProgramStageSchema[]; + programTrackedEntityAttributes: D2ProgramTrackedEntityAttributeSchema[]; + programType: "WITH_REGISTRATION" | "WITHOUT_REGISTRATION"; + publicAccess: string; + registration: boolean; + relatedProgram: D2ProgramSchema; + selectEnrollmentDatesInFuture: boolean; + selectIncidentDatesInFuture: boolean; + sharing: any; + shortName: string; + skipOffline: boolean; + style: D2Style; + trackedEntityType: D2TrackedEntityTypeSchema; + translations: D2Translation[]; + useFirstStageDuringRegistration: boolean; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userRoles: D2UserAuthorityGroupSchema[]; + version: number; + withoutRegistration: boolean; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Program, + | "dataEntryForm" + | "ignoreOverdueEvents" + | "skipOffline" + | "programIndicators" + | "lastUpdated" + | "categoryCombo" + | "translations" + | "id" + | "enrollmentDateLabel" + | "lastUpdatedBy" + | "onlyEnrollOnce" + | "created" + | "attributeValues" + | "sharing" + | "version" + | "maxTeiCountToReturn" + | "selectIncidentDatesInFuture" + | "incidentDateLabel" + | "userRoles" + | "expiryPeriodType" + | "name" + | "selectEnrollmentDatesInFuture" + | "style" + | "shortName" + | "useFirstStageDuringRegistration" + | "code" + | "programRuleVariables" + | "programTrackedEntityAttributes" + | "completeEventsExpiryDays" + | "description" + | "relatedProgram" + | "notificationTemplates" + | "formName" + | "featureType" + | "minAttributesRequiredToSearch" + | "displayFrontPageList" + | "organisationUnits" + | "programType" + | "accessLevel" + | "programSections" + | "programStages" + | "createdBy" + | "trackedEntityType" + | "displayIncidentDate" + | "expiryDays" + >; + $owner: Preset< + D2Program, + | "dataEntryForm" + | "ignoreOverdueEvents" + | "skipOffline" + | "lastUpdated" + | "categoryCombo" + | "translations" + | "id" + | "enrollmentDateLabel" + | "lastUpdatedBy" + | "onlyEnrollOnce" + | "created" + | "attributeValues" + | "sharing" + | "version" + | "maxTeiCountToReturn" + | "selectIncidentDatesInFuture" + | "incidentDateLabel" + | "expiryPeriodType" + | "name" + | "selectEnrollmentDatesInFuture" + | "style" + | "shortName" + | "useFirstStageDuringRegistration" + | "code" + | "programTrackedEntityAttributes" + | "completeEventsExpiryDays" + | "description" + | "relatedProgram" + | "notificationTemplates" + | "formName" + | "featureType" + | "minAttributesRequiredToSearch" + | "displayFrontPageList" + | "organisationUnits" + | "programType" + | "accessLevel" + | "programSections" + | "programStages" + | "createdBy" + | "trackedEntityType" + | "displayIncidentDate" + | "expiryDays" + >; + }; +} + +export interface D2ProgramDataElementDimensionItemSchema { + name: "D2ProgramDataElementDimensionItem"; + model: D2ProgramDataElementDimensionItem; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataElement: D2DataElementSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + program: D2ProgramSchema; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2ProgramIndicatorSchema { + name: "D2ProgramIndicator"; + model: D2ProgramIndicator; + fields: { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + analyticsPeriodBoundaries: D2AnalyticsPeriodBoundarySchema[]; + analyticsType: "EVENT" | "ENROLLMENT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + decimals: number; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayInForm: boolean; + displayName: string; + displayShortName: string; + expression: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + program: D2ProgramSchema; + programIndicatorGroups: D2ProgramIndicatorGroupSchema[]; + publicAccess: string; + sharing: any; + shortName: string; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramIndicator, + | "aggregationType" + | "code" + | "displayInForm" + | "aggregateExportCategoryOptionCombo" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "programIndicatorGroups" + | "analyticsPeriodBoundaries" + | "lastUpdatedBy" + | "expression" + | "created" + | "attributeValues" + | "sharing" + | "filter" + | "createdBy" + | "decimals" + | "name" + | "analyticsType" + | "legendSets" + | "style" + | "shortName" + | "aggregateExportAttributeOptionCombo" + >; + $owner: Preset< + D2ProgramIndicator, + | "aggregationType" + | "code" + | "displayInForm" + | "aggregateExportCategoryOptionCombo" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "analyticsPeriodBoundaries" + | "lastUpdatedBy" + | "expression" + | "created" + | "attributeValues" + | "sharing" + | "filter" + | "createdBy" + | "decimals" + | "name" + | "analyticsType" + | "legendSets" + | "style" + | "shortName" + | "aggregateExportAttributeOptionCombo" + >; + }; +} + +export interface D2ProgramIndicatorGroupSchema { + name: "D2ProgramIndicatorGroup"; + model: D2ProgramIndicatorGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + programIndicators: D2ProgramIndicatorSchema[]; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramIndicatorGroup, + | "lastUpdatedBy" + | "code" + | "created" + | "description" + | "sharing" + | "programIndicators" + | "lastUpdated" + | "createdBy" + | "translations" + | "name" + | "id" + >; + $owner: Preset< + D2ProgramIndicatorGroup, + | "lastUpdatedBy" + | "code" + | "created" + | "description" + | "sharing" + | "programIndicators" + | "lastUpdated" + | "createdBy" + | "translations" + | "name" + | "id" + >; + }; +} + +export interface D2ProgramInstanceSchema { + name: "D2ProgramInstance"; + model: D2ProgramInstance; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + completedBy: string; + created: string; + createdAtClient: string; + createdBy: D2UserSchema; + deleted: boolean; + displayName: string; + endDate: string; + enrollmentDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followup: boolean; + geometry: any; + href: string; + id: Id; + incidentDate: string; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2UserSchema; + messageConversations: D2MessageConversationSchema[]; + name: string; + organisationUnit: D2OrganisationUnitSchema; + program: D2ProgramSchema; + programStageInstances: D2ProgramStageInstanceSchema[]; + publicAccess: string; + relationshipItems: any[]; + sharing: any; + status: "ACTIVE" | "COMPLETED" | "CANCELLED"; + storedBy: string; + trackedEntityComments: any[]; + trackedEntityInstance: D2TrackedEntityInstanceSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramInstance, + | "storedBy" + | "endDate" + | "organisationUnit" + | "enrollmentDate" + | "createdAtClient" + | "program" + | "messageConversations" + | "trackedEntityComments" + | "lastUpdated" + | "relationshipItems" + | "id" + | "created" + | "programStageInstances" + | "trackedEntityInstance" + | "followup" + | "deleted" + | "geometry" + | "incidentDate" + | "completedBy" + | "status" + | "lastUpdatedAtClient" + >; + $owner: Preset< + D2ProgramInstance, + | "storedBy" + | "endDate" + | "organisationUnit" + | "enrollmentDate" + | "createdAtClient" + | "program" + | "messageConversations" + | "trackedEntityComments" + | "lastUpdated" + | "id" + | "created" + | "trackedEntityInstance" + | "followup" + | "deleted" + | "geometry" + | "incidentDate" + | "completedBy" + | "status" + | "lastUpdatedAtClient" + >; + }; +} + +export interface D2ProgramNotificationTemplateSchema { + name: "D2ProgramNotificationTemplate"; + model: D2ProgramNotificationTemplate; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + deliveryChannels: never[]; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + messageTemplate: string; + name: string; + notificationRecipient: + | "TRACKED_ENTITY_INSTANCE" + | "ORGANISATION_UNIT_CONTACT" + | "USERS_AT_ORGANISATION_UNIT" + | "USER_GROUP" + | "PROGRAM_ATTRIBUTE" + | "DATA_ELEMENT"; + notificationTrigger: + | "ENROLLMENT" + | "COMPLETION" + | "PROGRAM_RULE" + | "SCHEDULED_DAYS_DUE_DATE" + | "SCHEDULED_DAYS_INCIDENT_DATE" + | "SCHEDULED_DAYS_ENROLLMENT_DATE"; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientDataElement: D2DataElementSchema; + recipientProgramAttribute: D2TrackedEntityAttributeSchema; + recipientUserGroup: D2UserGroupSchema; + relativeScheduledDays: number; + sharing: any; + subjectTemplate: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramNotificationTemplate, + | "code" + | "notificationTrigger" + | "lastUpdated" + | "translations" + | "relativeScheduledDays" + | "id" + | "subjectTemplate" + | "lastUpdatedBy" + | "deliveryChannels" + | "recipientDataElement" + | "created" + | "notifyUsersInHierarchyOnly" + | "notificationRecipient" + | "recipientProgramAttribute" + | "notifyParentOrganisationUnitOnly" + | "name" + | "recipientUserGroup" + | "messageTemplate" + >; + $owner: Preset< + D2ProgramNotificationTemplate, + | "code" + | "notificationTrigger" + | "lastUpdated" + | "translations" + | "relativeScheduledDays" + | "id" + | "subjectTemplate" + | "lastUpdatedBy" + | "deliveryChannels" + | "recipientDataElement" + | "created" + | "notifyUsersInHierarchyOnly" + | "notificationRecipient" + | "recipientProgramAttribute" + | "notifyParentOrganisationUnitOnly" + | "name" + | "recipientUserGroup" + | "messageTemplate" + >; + }; +} + +export interface D2ProgramRuleSchema { + name: "D2ProgramRule"; + model: D2ProgramRule; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + condition: string; + created: string; + createdBy: D2UserSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + priority: number; + program: D2ProgramSchema; + programRuleActions: D2ProgramRuleActionSchema[]; + programStage: D2ProgramStageSchema; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramRule, + | "code" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "created" + | "priority" + | "condition" + | "programRuleActions" + | "name" + >; + $owner: Preset< + D2ProgramRule, + | "code" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "created" + | "priority" + | "condition" + | "programRuleActions" + | "name" + >; + }; +} + +export interface D2ProgramRuleActionSchema { + name: "D2ProgramRuleAction"; + model: D2ProgramRuleAction; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + content: string; + created: string; + createdBy: D2UserSchema; + data: string; + dataElement: D2DataElementSchema; + displayContent: string; + displayName: string; + evaluationEnvironments: never[]; + evaluationTime: "ON_DATA_ENTRY" | "ON_COMPLETE" | "ALWAYS"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + location: string; + name: string; + option: D2OptionSchema; + optionGroup: D2OptionGroupSchema; + programIndicator: D2ProgramIndicatorSchema; + programRule: D2ProgramRuleSchema; + programRuleActionType: + | "DISPLAYTEXT" + | "DISPLAYKEYVALUEPAIR" + | "HIDEFIELD" + | "HIDESECTION" + | "HIDEPROGRAMSTAGE" + | "ASSIGN" + | "SHOWWARNING" + | "WARNINGONCOMPLETE" + | "SHOWERROR" + | "ERRORONCOMPLETE" + | "CREATEEVENT" + | "SETMANDATORYFIELD" + | "SENDMESSAGE" + | "SCHEDULEMESSAGE" + | "HIDEOPTION" + | "SHOWOPTIONGROUP" + | "HIDEOPTIONGROUP"; + programStage: D2ProgramStageSchema; + programStageSection: D2ProgramStageSectionSchema; + publicAccess: string; + sharing: any; + templateUid: string; + trackedEntityAttribute: D2TrackedEntityAttributeSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramRuleAction, + | "evaluationEnvironments" + | "code" + | "data" + | "optionGroup" + | "templateUid" + | "content" + | "trackedEntityAttribute" + | "lastUpdated" + | "translations" + | "programIndicator" + | "id" + | "programRule" + | "programStageSection" + | "programRuleActionType" + | "lastUpdatedBy" + | "programStage" + | "created" + | "dataElement" + | "evaluationTime" + | "location" + | "option" + >; + $owner: Preset< + D2ProgramRuleAction, + | "evaluationEnvironments" + | "code" + | "data" + | "optionGroup" + | "templateUid" + | "content" + | "trackedEntityAttribute" + | "lastUpdated" + | "translations" + | "programIndicator" + | "id" + | "programRule" + | "programStageSection" + | "programRuleActionType" + | "lastUpdatedBy" + | "programStage" + | "created" + | "dataElement" + | "evaluationTime" + | "location" + | "option" + >; + }; +} + +export interface D2ProgramRuleVariableSchema { + name: "D2ProgramRuleVariable"; + model: D2ProgramRuleVariable; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataElement: D2DataElementSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + program: D2ProgramSchema; + programRuleVariableSourceType: + | "DATAELEMENT_NEWEST_EVENT_PROGRAM_STAGE" + | "DATAELEMENT_NEWEST_EVENT_PROGRAM" + | "DATAELEMENT_CURRENT_EVENT" + | "DATAELEMENT_PREVIOUS_EVENT" + | "CALCULATED_VALUE" + | "TEI_ATTRIBUTE"; + programStage: D2ProgramStageSchema; + publicAccess: string; + sharing: any; + trackedEntityAttribute: D2TrackedEntityAttributeSchema; + translations: D2Translation[]; + useCodeForOptionSet: boolean; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramRuleVariable, + | "code" + | "programRuleVariableSourceType" + | "program" + | "trackedEntityAttribute" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "created" + | "useCodeForOptionSet" + | "dataElement" + | "name" + >; + $owner: Preset< + D2ProgramRuleVariable, + | "code" + | "programRuleVariableSourceType" + | "program" + | "trackedEntityAttribute" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "created" + | "useCodeForOptionSet" + | "dataElement" + | "name" + >; + }; +} + +export interface D2ProgramSectionSchema { + name: "D2ProgramSection"; + model: D2ProgramSection; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + program: D2ProgramSchema; + publicAccess: string; + renderType: any; + sharing: any; + shortName: string; + sortOrder: number; + style: D2Style; + trackedEntityAttributes: D2TrackedEntityAttributeSchema[]; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramSection, + | "code" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "renderType" + | "lastUpdatedBy" + | "created" + | "sortOrder" + | "name" + | "trackedEntityAttributes" + | "style" + >; + $owner: Preset< + D2ProgramSection, + | "code" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "renderType" + | "lastUpdatedBy" + | "created" + | "sortOrder" + | "name" + | "trackedEntityAttributes" + | "style" + >; + }; +} + +export interface D2ProgramStageSchema { + name: "D2ProgramStage"; + model: D2ProgramStage; + fields: { + access: D2Access; + allowGenerateNextVisit: boolean; + attributeValues: D2AttributeValueSchema[]; + autoGenerateEvent: boolean; + blockEntryForm: boolean; + code: Id; + created: string; + createdBy: D2UserSchema; + dataEntryForm: D2DataEntryFormSchema; + description: string; + displayDescription: string; + displayDueDateLabel: string; + displayExecutionDateLabel: string; + displayFormName: string; + displayGenerateEventBox: boolean; + displayName: string; + displayShortName: string; + dueDateLabel: string; + enableUserAssignment: boolean; + executionDateLabel: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + formType: "DEFAULT" | "CUSTOM" | "SECTION" | "SECTION_MULTIORG"; + generatedByEnrollmentDate: boolean; + hideDueDate: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + minDaysFromStart: number; + name: string; + nextScheduleDate: D2DataElementSchema; + notificationTemplates: D2ProgramNotificationTemplateSchema[]; + openAfterEnrollment: boolean; + periodType: string; + preGenerateUID: boolean; + program: D2ProgramSchema; + programStageDataElements: D2ProgramStageDataElementSchema[]; + programStageSections: D2ProgramStageSectionSchema[]; + publicAccess: string; + remindCompleted: boolean; + repeatable: boolean; + reportDateToUse: string; + sharing: any; + shortName: string; + sortOrder: number; + standardInterval: number; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + validationStrategy: "ON_COMPLETE" | "ON_UPDATE_AND_INSERT"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramStage, + | "dataEntryForm" + | "allowGenerateNextVisit" + | "reportDateToUse" + | "program" + | "lastUpdated" + | "programStageDataElements" + | "translations" + | "id" + | "lastUpdatedBy" + | "generatedByEnrollmentDate" + | "created" + | "attributeValues" + | "sharing" + | "sortOrder" + | "name" + | "hideDueDate" + | "enableUserAssignment" + | "style" + | "minDaysFromStart" + | "standardInterval" + | "dueDateLabel" + | "executionDateLabel" + | "code" + | "preGenerateUID" + | "description" + | "notificationTemplates" + | "openAfterEnrollment" + | "repeatable" + | "formName" + | "featureType" + | "remindCompleted" + | "displayGenerateEventBox" + | "nextScheduleDate" + | "validationStrategy" + | "autoGenerateEvent" + | "periodType" + | "createdBy" + | "blockEntryForm" + | "programStageSections" + >; + $owner: Preset< + D2ProgramStage, + | "dataEntryForm" + | "allowGenerateNextVisit" + | "reportDateToUse" + | "program" + | "lastUpdated" + | "programStageDataElements" + | "translations" + | "id" + | "lastUpdatedBy" + | "generatedByEnrollmentDate" + | "created" + | "attributeValues" + | "sharing" + | "sortOrder" + | "name" + | "hideDueDate" + | "enableUserAssignment" + | "style" + | "minDaysFromStart" + | "standardInterval" + | "dueDateLabel" + | "executionDateLabel" + | "code" + | "preGenerateUID" + | "description" + | "notificationTemplates" + | "openAfterEnrollment" + | "repeatable" + | "formName" + | "featureType" + | "remindCompleted" + | "displayGenerateEventBox" + | "nextScheduleDate" + | "validationStrategy" + | "autoGenerateEvent" + | "periodType" + | "createdBy" + | "blockEntryForm" + | "programStageSections" + >; + }; +} + +export interface D2ProgramStageDataElementSchema { + name: "D2ProgramStageDataElement"; + model: D2ProgramStageDataElement; + fields: { + access: D2Access; + allowFutureDate: boolean; + allowProvidedElsewhere: boolean; + attributeValues: D2AttributeValueSchema[]; + code: Id; + compulsory: boolean; + created: string; + createdBy: D2UserSchema; + dataElement: D2DataElementSchema; + displayInReports: boolean; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + programStage: D2ProgramStageSchema; + publicAccess: string; + renderOptionsAsRadio: boolean; + renderType: any; + sharing: any; + skipSynchronization: boolean; + sortOrder: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramStageDataElement, + | "displayInReports" + | "code" + | "skipSynchronization" + | "lastUpdated" + | "renderOptionsAsRadio" + | "id" + | "allowFutureDate" + | "renderType" + | "lastUpdatedBy" + | "programStage" + | "created" + | "dataElement" + | "compulsory" + | "allowProvidedElsewhere" + | "sortOrder" + >; + $owner: Preset< + D2ProgramStageDataElement, + | "displayInReports" + | "code" + | "skipSynchronization" + | "lastUpdated" + | "renderOptionsAsRadio" + | "id" + | "allowFutureDate" + | "renderType" + | "lastUpdatedBy" + | "programStage" + | "created" + | "dataElement" + | "compulsory" + | "allowProvidedElsewhere" + | "sortOrder" + >; + }; +} + +export interface D2ProgramStageInstanceSchema { + name: "D2ProgramStageInstance"; + model: D2ProgramStageInstance; + fields: { + access: D2Access; + assignedUser: D2UserSchema; + attributeOptionCombo: D2CategoryOptionComboSchema; + attributeValues: D2AttributeValueSchema[]; + code: Id; + comments: any[]; + completed: boolean; + completedBy: string; + completedDate: string; + creatableInSearchScope: boolean; + created: string; + createdAtClient: string; + createdBy: D2UserSchema; + createdByUserInfo: any; + deleted: boolean; + displayName: string; + dueDate: string; + eventDataValues: any[]; + eventDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + geometry: any; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2UserSchema; + lastUpdatedByUserInfo: any; + messageConversations: D2MessageConversationSchema[]; + name: string; + organisationUnit: D2OrganisationUnitSchema; + programInstance: D2ProgramInstanceSchema; + programStage: D2ProgramStageSchema; + publicAccess: string; + relationshipItems: any[]; + sharing: any; + status: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + storedBy: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramStageInstance, + | "code" + | "storedBy" + | "organisationUnit" + | "dueDate" + | "createdAtClient" + | "messageConversations" + | "lastUpdatedByUserInfo" + | "lastUpdated" + | "eventDataValues" + | "relationshipItems" + | "id" + | "createdByUserInfo" + | "assignedUser" + | "programStage" + | "comments" + | "created" + | "completedDate" + | "programInstance" + | "deleted" + | "attributeOptionCombo" + | "geometry" + | "completedBy" + | "status" + | "lastUpdatedAtClient" + | "eventDate" + >; + $owner: Preset< + D2ProgramStageInstance, + | "code" + | "storedBy" + | "organisationUnit" + | "dueDate" + | "createdAtClient" + | "messageConversations" + | "lastUpdatedByUserInfo" + | "lastUpdated" + | "eventDataValues" + | "id" + | "createdByUserInfo" + | "assignedUser" + | "programStage" + | "comments" + | "created" + | "completedDate" + | "programInstance" + | "deleted" + | "attributeOptionCombo" + | "geometry" + | "completedBy" + | "status" + | "lastUpdatedAtClient" + | "eventDate" + >; + }; +} + +export interface D2ProgramStageInstanceFilterSchema { + name: "D2ProgramStageInstanceFilter"; + model: D2ProgramStageInstanceFilter; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayName: string; + eventQueryCriteria: any; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + program: Id; + programStage: Id; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramStageInstanceFilter, + | "eventQueryCriteria" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "created" + | "sharing" + | "createdBy" + | "name" + >; + $owner: Preset< + D2ProgramStageInstanceFilter, + | "eventQueryCriteria" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "created" + | "sharing" + | "createdBy" + | "name" + >; + }; +} + +export interface D2ProgramStageSectionSchema { + name: "D2ProgramStageSection"; + model: D2ProgramStageSection; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataElements: D2DataElementSchema[]; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + programIndicators: D2ProgramIndicatorSchema[]; + programStage: D2ProgramStageSchema; + publicAccess: string; + renderType: any; + sharing: any; + shortName: string; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramStageSection, + | "code" + | "description" + | "programIndicators" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "renderType" + | "dataElements" + | "lastUpdatedBy" + | "programStage" + | "created" + | "sortOrder" + | "name" + | "style" + >; + $owner: Preset< + D2ProgramStageSection, + | "code" + | "description" + | "programIndicators" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "renderType" + | "dataElements" + | "lastUpdatedBy" + | "programStage" + | "created" + | "sortOrder" + | "name" + | "style" + >; + }; +} + +export interface D2ProgramTrackedEntityAttributeSchema { + name: "D2ProgramTrackedEntityAttribute"; + model: D2ProgramTrackedEntityAttribute; + fields: { + access: D2Access; + allowFutureDate: boolean; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayInList: boolean; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + mandatory: boolean; + name: string; + program: D2ProgramSchema; + programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroupSchema[]; + publicAccess: string; + renderOptionsAsRadio: boolean; + renderType: any; + searchable: boolean; + sharing: any; + sortOrder: number; + trackedEntityAttribute: D2TrackedEntityAttributeSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramTrackedEntityAttribute, + | "code" + | "programTrackedEntityAttributeGroups" + | "program" + | "mandatory" + | "trackedEntityAttribute" + | "lastUpdated" + | "renderOptionsAsRadio" + | "id" + | "allowFutureDate" + | "renderType" + | "lastUpdatedBy" + | "created" + | "searchable" + | "displayInList" + | "sortOrder" + >; + $owner: Preset< + D2ProgramTrackedEntityAttribute, + | "code" + | "programTrackedEntityAttributeGroups" + | "program" + | "mandatory" + | "trackedEntityAttribute" + | "lastUpdated" + | "renderOptionsAsRadio" + | "id" + | "allowFutureDate" + | "renderType" + | "lastUpdatedBy" + | "created" + | "searchable" + | "displayInList" + | "sortOrder" + >; + }; +} + +export interface D2ProgramTrackedEntityAttributeDimensionItemSchema { + name: "D2ProgramTrackedEntityAttributeDimensionItem"; + model: D2ProgramTrackedEntityAttributeDimensionItem; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attribute: D2TrackedEntityAttributeSchema; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + program: D2ProgramSchema; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset< + D2ProgramTrackedEntityAttributeDimensionItem, + keyof D2ProgramTrackedEntityAttributeDimensionItem + >; + $identifiable: Preset< + D2ProgramTrackedEntityAttributeDimensionItem, + FieldPresets["identifiable"] + >; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2ProgramTrackedEntityAttributeGroupSchema { + name: "D2ProgramTrackedEntityAttributeGroup"; + model: D2ProgramTrackedEntityAttributeGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + attributes: D2ProgramTrackedEntityAttributeSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + uniqunessType: "NONE" | "STRICT" | "VALIDATION"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset< + D2ProgramTrackedEntityAttributeGroup, + keyof D2ProgramTrackedEntityAttributeGroup + >; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramTrackedEntityAttributeGroup, + | "code" + | "uniqunessType" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "name" + | "attributes" + | "shortName" + >; + $owner: Preset< + D2ProgramTrackedEntityAttributeGroup, + | "code" + | "uniqunessType" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "name" + | "shortName" + >; + }; +} + +export interface D2PushAnalysisSchema { + name: "D2PushAnalysis"; + model: D2PushAnalysis; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dashboard: D2DashboardSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + message: string; + name: string; + publicAccess: string; + recipientUserGroups: D2UserGroupSchema[]; + sharing: any; + title: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2PushAnalysis, + | "code" + | "recipientUserGroups" + | "title" + | "lastUpdated" + | "id" + | "dashboard" + | "lastUpdatedBy" + | "created" + | "message" + | "name" + >; + $owner: Preset< + D2PushAnalysis, + | "code" + | "recipientUserGroups" + | "title" + | "lastUpdated" + | "id" + | "dashboard" + | "lastUpdatedBy" + | "created" + | "message" + | "name" + >; + }; +} + +export interface D2RelationshipSchema { + name: "D2Relationship"; + model: D2Relationship; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + from: any; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + relationshipType: D2RelationshipTypeSchema; + sharing: any; + shortName: string; + style: D2Style; + to: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Relationship, + | "code" + | "description" + | "lastUpdated" + | "formName" + | "from" + | "id" + | "lastUpdatedBy" + | "relationshipType" + | "created" + | "style" + | "to" + >; + $owner: Preset< + D2Relationship, + | "code" + | "description" + | "lastUpdated" + | "formName" + | "from" + | "id" + | "lastUpdatedBy" + | "relationshipType" + | "created" + | "style" + | "to" + >; + }; +} + +export interface D2RelationshipTypeSchema { + name: "D2RelationshipType"; + model: D2RelationshipType; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + bidirectional: boolean; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayFromToName: string; + displayName: string; + displayToFromName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fromConstraint: D2RelationshipConstraint; + fromToName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + toConstraint: D2RelationshipConstraint; + toFromName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2RelationshipType, + | "bidirectional" + | "code" + | "description" + | "fromToName" + | "lastUpdated" + | "translations" + | "toConstraint" + | "id" + | "lastUpdatedBy" + | "created" + | "toFromName" + | "sharing" + | "fromConstraint" + | "createdBy" + | "name" + >; + $owner: Preset< + D2RelationshipType, + | "bidirectional" + | "code" + | "description" + | "fromToName" + | "lastUpdated" + | "translations" + | "toConstraint" + | "id" + | "lastUpdatedBy" + | "created" + | "toFromName" + | "sharing" + | "fromConstraint" + | "createdBy" + | "name" + >; + }; +} + +export interface D2ReportSchema { + name: "D2Report"; + model: D2Report; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + cacheStrategy: + | "NO_CACHE" + | "CACHE_1_MINUTE" + | "CACHE_5_MINUTES" + | "CACHE_10_MINUTES" + | "CACHE_15_MINUTES" + | "CACHE_30_MINUTES" + | "CACHE_1_HOUR" + | "CACHE_6AM_TOMORROW" + | "CACHE_TWO_WEEKS" + | "RESPECT_SYSTEM_SETTING"; + code: Id; + created: string; + createdBy: D2UserSchema; + designContent: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + relativePeriods: any; + reportParams: D2ReportingParams; + sharing: any; + translations: D2Translation[]; + type: "JASPER_REPORT_TABLE" | "JASPER_JDBC" | "HTML"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + visualization: D2VisualizationSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Report, + | "designContent" + | "visualization" + | "code" + | "type" + | "lastUpdated" + | "relativePeriods" + | "reportParams" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "name" + | "cacheStrategy" + >; + $owner: Preset< + D2Report, + | "designContent" + | "visualization" + | "code" + | "type" + | "lastUpdated" + | "relativePeriods" + | "reportParams" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "name" + | "cacheStrategy" + >; + }; +} + +export interface D2ReportTableSchema { + name: "D2ReportTable"; + model: D2ReportTable; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValues: D2AttributeValueSchema[]; + categoryDimensions: D2CategoryDimensionSchema[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; + code: Id; + colSubTotals: boolean; + colTotals: boolean; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + createdBy: D2UserSchema; + cumulative: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + displaySubtitle: string; + displayTitle: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + fontSize: "LARGE" | "NORMAL" | "SMALL"; + formName: string; + hideEmptyColumns: boolean; + hideEmptyRows: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendDisplayStyle: "FILL" | "TEXT"; + legendSet: D2LegendSetSchema; + measureCriteria: string; + name: string; + numberType: "VALUE" | "ROW_PERCENTAGE" | "COLUMN_PERCENTAGE"; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnitSchema[]; + parentGraphMap: D2MapSchema; + periods: any[]; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; + publicAccess: string; + regression: boolean; + relativePeriods: any; + reportParams: any; + rowDimensions: string[]; + rowSubTotals: boolean; + rowTotals: boolean; + rows: any[]; + sharing: any; + shortName: string; + showDimensionLabels: boolean; + showHierarchy: boolean; + skipRounding: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2ReportingRateSchema { + name: "D2ReportingRate"; + model: D2ReportingRate; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataSet: D2DataSetSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + metric: + | "REPORTING_RATE" + | "REPORTING_RATE_ON_TIME" + | "ACTUAL_REPORTS" + | "ACTUAL_REPORTS_ON_TIME" + | "EXPECTED_REPORTS"; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2SMSCommandSchema { + name: "D2SMSCommand"; + model: D2SMSCommand; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + codeValueSeparator: string; + completenessMethod: "ALL_DATAVALUE" | "AT_LEAST_ONE_DATAVALUE" | "DO_NOT_MARK_COMPLETE"; + created: string; + createdBy: D2UserSchema; + currentPeriodUsedForReporting: boolean; + dataset: D2DataSetSchema; + defaultMessage: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + moreThanOneOrgUnitMessage: string; + name: string; + noUserMessage: string; + parserType: + | "KEY_VALUE_PARSER" + | "J2ME_PARSER" + | "ALERT_PARSER" + | "UNREGISTERED_PARSER" + | "TRACKED_ENTITY_REGISTRATION_PARSER" + | "PROGRAM_STAGE_DATAENTRY_PARSER" + | "EVENT_REGISTRATION_PARSER"; + program: D2ProgramSchema; + programStage: D2ProgramStageSchema; + publicAccess: string; + receivedMessage: string; + separator: string; + sharing: any; + smsCodes: any[]; + specialCharacters: any[]; + successMessage: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroup: D2UserGroupSchema; + userGroupAccesses: D2UserGroupAccessSchema[]; + wrongFormatMessage: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2SMSCommand, + | "moreThanOneOrgUnitMessage" + | "smsCodes" + | "specialCharacters" + | "currentPeriodUsedForReporting" + | "program" + | "noUserMessage" + | "lastUpdated" + | "receivedMessage" + | "defaultMessage" + | "id" + | "userGroup" + | "programStage" + | "completenessMethod" + | "created" + | "wrongFormatMessage" + | "separator" + | "successMessage" + | "codeValueSeparator" + | "parserType" + | "name" + | "dataset" + >; + $owner: Preset< + D2SMSCommand, + | "moreThanOneOrgUnitMessage" + | "smsCodes" + | "specialCharacters" + | "currentPeriodUsedForReporting" + | "program" + | "noUserMessage" + | "lastUpdated" + | "receivedMessage" + | "defaultMessage" + | "id" + | "userGroup" + | "programStage" + | "completenessMethod" + | "created" + | "wrongFormatMessage" + | "separator" + | "successMessage" + | "codeValueSeparator" + | "parserType" + | "name" + | "dataset" + >; + }; +} + +export interface D2SectionSchema { + name: "D2Section"; + model: D2Section; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + categoryCombos: D2CategoryComboSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataElements: D2DataElementSchema[]; + dataSet: D2DataSetSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + greyedFields: D2DataElementOperandSchema[]; + href: string; + id: Id; + indicators: D2IndicatorSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + showColumnTotals: boolean; + showRowTotals: boolean; + sortOrder: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Section, + | "code" + | "greyedFields" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "dataSet" + | "dataElements" + | "showColumnTotals" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "indicators" + | "sortOrder" + | "name" + | "showRowTotals" + >; + $owner: Preset< + D2Section, + | "code" + | "greyedFields" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "dataSet" + | "dataElements" + | "showColumnTotals" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "indicators" + | "sortOrder" + | "name" + | "showRowTotals" + >; + }; +} + +export interface D2SqlViewSchema { + name: "D2SqlView"; + model: D2SqlView; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + cacheStrategy: + | "NO_CACHE" + | "CACHE_1_MINUTE" + | "CACHE_5_MINUTES" + | "CACHE_10_MINUTES" + | "CACHE_15_MINUTES" + | "CACHE_30_MINUTES" + | "CACHE_1_HOUR" + | "CACHE_6AM_TOMORROW" + | "CACHE_TWO_WEEKS" + | "RESPECT_SYSTEM_SETTING"; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + sqlQuery: string; + translations: D2Translation[]; + type: "VIEW" | "MATERIALIZED_VIEW" | "QUERY"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2SqlView, + | "code" + | "description" + | "type" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "sqlQuery" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "cacheStrategy" + >; + $owner: Preset< + D2SqlView, + | "code" + | "description" + | "type" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "sqlQuery" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "cacheStrategy" + >; + }; +} + +export interface D2TrackedEntityAttributeSchema { + name: "D2TrackedEntityAttribute"; + model: D2TrackedEntityAttribute; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + confidential: boolean; + created: string; + createdBy: D2UserSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayInListNoProgram: boolean; + displayName: string; + displayOnVisitSchedule: boolean; + displayShortName: string; + expression: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldMask: string; + formName: string; + generated: boolean; + href: string; + id: Id; + inherit: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + optionSet: D2OptionSetSchema; + optionSetValue: boolean; + orgunitScope: boolean; + pattern: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + skipSynchronization: boolean; + sortOrderInListNoProgram: number; + sortOrderInVisitSchedule: number; + style: D2Style; + translations: D2Translation[]; + unique: boolean; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityAttribute, + | "lastUpdated" + | "generated" + | "translations" + | "valueType" + | "id" + | "confidential" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "unique" + | "name" + | "legendSets" + | "style" + | "shortName" + | "aggregationType" + | "code" + | "displayInListNoProgram" + | "pattern" + | "description" + | "skipSynchronization" + | "sortOrderInListNoProgram" + | "optionSet" + | "displayOnVisitSchedule" + | "formName" + | "sortOrderInVisitSchedule" + | "orgunitScope" + | "fieldMask" + | "expression" + | "createdBy" + | "inherit" + >; + $owner: Preset< + D2TrackedEntityAttribute, + | "lastUpdated" + | "generated" + | "translations" + | "valueType" + | "id" + | "confidential" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "unique" + | "name" + | "legendSets" + | "style" + | "shortName" + | "aggregationType" + | "code" + | "displayInListNoProgram" + | "pattern" + | "description" + | "skipSynchronization" + | "sortOrderInListNoProgram" + | "optionSet" + | "displayOnVisitSchedule" + | "formName" + | "sortOrderInVisitSchedule" + | "orgunitScope" + | "fieldMask" + | "expression" + | "createdBy" + | "inherit" + >; + }; +} + +export interface D2TrackedEntityAttributeValueSchema { + name: "D2TrackedEntityAttributeValue"; + model: D2TrackedEntityAttributeValue; + fields: { + created: string; + lastUpdated: string; + storedBy: string; + trackedEntityAttribute: D2TrackedEntityAttributeSchema; + trackedEntityInstance: D2TrackedEntityInstanceSchema; + value: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2TrackedEntityDataElementDimensionSchema { + name: "D2TrackedEntityDataElementDimension"; + model: D2TrackedEntityDataElementDimension; + fields: { + dataElement: D2DataElementSchema; + filter: string; + legendSet: D2LegendSetSchema; + programStage: D2ProgramStageSchema; + }; + fieldPresets: { + $all: Preset< + D2TrackedEntityDataElementDimension, + keyof D2TrackedEntityDataElementDimension + >; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityDataElementDimension, + "filter" | "legendSet" | "programStage" | "dataElement" + >; + $owner: Preset< + D2TrackedEntityDataElementDimension, + "filter" | "legendSet" | "programStage" | "dataElement" + >; + }; +} + +export interface D2TrackedEntityInstanceSchema { + name: "D2TrackedEntityInstance"; + model: D2TrackedEntityInstance; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdAtClient: string; + createdBy: D2UserSchema; + deleted: boolean; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + geometry: any; + href: string; + id: Id; + inactive: boolean; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2UserSchema; + name: string; + organisationUnit: D2OrganisationUnitSchema; + programInstances: D2ProgramInstanceSchema[]; + programOwners: any[]; + publicAccess: string; + relationshipItems: any[]; + sharing: any; + storedBy: string; + trackedEntityAttributeValues: D2TrackedEntityAttributeValueSchema[]; + trackedEntityType: D2TrackedEntityTypeSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityInstance, + | "programOwners" + | "code" + | "storedBy" + | "programInstances" + | "organisationUnit" + | "createdAtClient" + | "lastUpdated" + | "inactive" + | "relationshipItems" + | "id" + | "lastUpdatedBy" + | "created" + | "deleted" + | "trackedEntityType" + | "geometry" + | "trackedEntityAttributeValues" + | "lastUpdatedAtClient" + >; + $owner: Preset< + D2TrackedEntityInstance, + | "code" + | "storedBy" + | "organisationUnit" + | "createdAtClient" + | "lastUpdated" + | "inactive" + | "id" + | "lastUpdatedBy" + | "created" + | "deleted" + | "trackedEntityType" + | "geometry" + | "lastUpdatedAtClient" + >; + }; +} + +export interface D2TrackedEntityInstanceFilterSchema { + name: "D2TrackedEntityInstanceFilter"; + model: D2TrackedEntityInstanceFilter; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayName: string; + enrollmentCreatedPeriod: any; + enrollmentStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + eventFilters: any[]; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followup: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + program: D2ProgramSchema; + publicAccess: string; + sharing: any; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityInstanceFilter, + | "code" + | "description" + | "program" + | "enrollmentCreatedPeriod" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "followup" + | "eventFilters" + | "enrollmentStatus" + | "sortOrder" + | "name" + | "style" + >; + $owner: Preset< + D2TrackedEntityInstanceFilter, + | "code" + | "description" + | "program" + | "enrollmentCreatedPeriod" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "followup" + | "eventFilters" + | "enrollmentStatus" + | "sortOrder" + | "name" + | "style" + >; + }; +} + +export interface D2TrackedEntityProgramIndicatorDimensionSchema { + name: "D2TrackedEntityProgramIndicatorDimension"; + model: D2TrackedEntityProgramIndicatorDimension; + fields: { + filter: string; + legendSet: D2LegendSetSchema; + programIndicator: D2ProgramIndicatorSchema; + }; + fieldPresets: { + $all: Preset< + D2TrackedEntityProgramIndicatorDimension, + keyof D2TrackedEntityProgramIndicatorDimension + >; + $identifiable: Preset< + D2TrackedEntityProgramIndicatorDimension, + FieldPresets["identifiable"] + >; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityProgramIndicatorDimension, + "filter" | "legendSet" | "programIndicator" + >; + $owner: Preset< + D2TrackedEntityProgramIndicatorDimension, + "filter" | "legendSet" | "programIndicator" + >; + }; +} + +export interface D2TrackedEntityTypeSchema { + name: "D2TrackedEntityType"; + model: D2TrackedEntityType; + fields: { + access: D2Access; + allowAuditLog: boolean; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + maxTeiCountToReturn: number; + minAttributesRequiredToSearch: number; + name: string; + publicAccess: string; + sharing: any; + shortName: string; + style: D2Style; + trackedEntityTypeAttributes: D2TrackedEntityTypeAttributeSchema[]; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityType, + | "code" + | "trackedEntityTypeAttributes" + | "description" + | "lastUpdated" + | "allowAuditLog" + | "translations" + | "formName" + | "featureType" + | "minAttributesRequiredToSearch" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "maxTeiCountToReturn" + | "createdBy" + | "name" + | "style" + >; + $owner: Preset< + D2TrackedEntityType, + | "code" + | "trackedEntityTypeAttributes" + | "description" + | "lastUpdated" + | "allowAuditLog" + | "translations" + | "formName" + | "featureType" + | "minAttributesRequiredToSearch" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "maxTeiCountToReturn" + | "createdBy" + | "name" + | "style" + >; + }; +} + +export interface D2TrackedEntityTypeAttributeSchema { + name: "D2TrackedEntityTypeAttribute"; + model: D2TrackedEntityTypeAttribute; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayInList: boolean; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + mandatory: boolean; + name: string; + publicAccess: string; + searchable: boolean; + sharing: any; + trackedEntityAttribute: D2TrackedEntityAttributeSchema; + trackedEntityType: D2TrackedEntityTypeSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityTypeAttribute, + | "code" + | "mandatory" + | "trackedEntityAttribute" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "created" + | "searchable" + | "displayInList" + | "trackedEntityType" + >; + $owner: Preset< + D2TrackedEntityTypeAttribute, + | "code" + | "mandatory" + | "trackedEntityAttribute" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "created" + | "searchable" + | "displayInList" + | "trackedEntityType" + >; + }; +} + +export interface D2UserSchema { + name: "D2User"; + model: D2User; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + avatar: D2FileResourceSchema; + birthday: string; + code: Id; + created: string; + createdBy: D2UserSchema; + dataViewOrganisationUnits: D2OrganisationUnitSchema[]; + displayName: string; + education: string; + email: string; + employer: string; + externalAccess: boolean; + facebookMessenger: string; + favorite: boolean; + favorites: string[]; + firstName: string; + gender: string; + href: string; + id: Id; + interests: string; + introduction: string; + jobTitle: string; + languages: string; + lastCheckedInterpretations: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + nationality: string; + organisationUnits: D2OrganisationUnitSchema[]; + phoneNumber: string; + publicAccess: string; + sharing: any; + skype: string; + surname: string; + teiSearchOrganisationUnits: D2OrganisationUnitSchema[]; + telegram: string; + translations: D2Translation[]; + twitter: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userCredentials: D2UserCredentialsSchema; + userGroupAccesses: D2UserGroupAccessSchema[]; + userGroups: D2UserGroupSchema[]; + welcomeMessage: string; + whatsApp: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2User, + | "birthday" + | "code" + | "education" + | "gender" + | "jobTitle" + | "skype" + | "lastUpdated" + | "teiSearchOrganisationUnits" + | "twitter" + | "surname" + | "employer" + | "id" + | "organisationUnits" + | "facebookMessenger" + | "introduction" + | "email" + | "dataViewOrganisationUnits" + | "whatsApp" + | "languages" + | "created" + | "welcomeMessage" + | "userCredentials" + | "attributeValues" + | "telegram" + | "avatar" + | "lastCheckedInterpretations" + | "userGroups" + | "firstName" + | "phoneNumber" + | "nationality" + | "interests" + >; + $owner: Preset< + D2User, + | "birthday" + | "code" + | "education" + | "gender" + | "jobTitle" + | "skype" + | "lastUpdated" + | "teiSearchOrganisationUnits" + | "twitter" + | "surname" + | "employer" + | "id" + | "organisationUnits" + | "facebookMessenger" + | "introduction" + | "email" + | "dataViewOrganisationUnits" + | "whatsApp" + | "languages" + | "created" + | "welcomeMessage" + | "userCredentials" + | "attributeValues" + | "telegram" + | "avatar" + | "lastCheckedInterpretations" + | "firstName" + | "phoneNumber" + | "nationality" + | "interests" + >; + }; +} + +export interface D2UserAccessSchema { + name: "D2UserAccess"; + model: D2UserAccess; + fields: { access: string; displayName: string; id: string; userUid: string }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2UserAuthorityGroupSchema { + name: "D2UserAuthorityGroup"; + model: D2UserAuthorityGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + authorities: string[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + users: D2UserSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2UserAuthorityGroup, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "authorities" + | "createdBy" + | "name" + >; + $owner: Preset< + D2UserAuthorityGroup, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "authorities" + | "createdBy" + | "name" + >; + }; +} + +export interface D2UserCredentialsSchema { + name: "D2UserCredentials"; + model: D2UserCredentials; + fields: { + access: D2Access; + accountExpiry: string; + attributeValues: D2AttributeValueSchema[]; + catDimensionConstraints: D2CategorySchema[]; + code: Id; + cogsDimensionConstraints: D2CategoryOptionGroupSetSchema[]; + created: string; + createdBy: D2UserSchema; + disabled: boolean; + displayName: string; + externalAccess: boolean; + externalAuth: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + invitation: boolean; + lastLogin: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + ldapId: string; + name: string; + openId: string; + password: string; + passwordLastUpdated: string; + publicAccess: string; + selfRegistered: boolean; + sharing: any; + translations: D2Translation[]; + twoFA: boolean; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userInfo: D2UserSchema; + userRoles: D2UserAuthorityGroupSchema[]; + username: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2UserCredentials, + | "lastLogin" + | "userInfo" + | "code" + | "openId" + | "externalAuth" + | "cogsDimensionConstraints" + | "accountExpiry" + | "catDimensionConstraints" + | "lastUpdated" + | "password" + | "ldapId" + | "disabled" + | "id" + | "twoFA" + | "passwordLastUpdated" + | "lastUpdatedBy" + | "invitation" + | "created" + | "selfRegistered" + | "userRoles" + | "createdBy" + | "username" + >; + $owner: Preset< + D2UserCredentials, + | "lastLogin" + | "userInfo" + | "code" + | "openId" + | "externalAuth" + | "cogsDimensionConstraints" + | "accountExpiry" + | "catDimensionConstraints" + | "lastUpdated" + | "password" + | "ldapId" + | "disabled" + | "id" + | "twoFA" + | "passwordLastUpdated" + | "lastUpdatedBy" + | "invitation" + | "created" + | "selfRegistered" + | "userRoles" + | "createdBy" + | "username" + >; + }; +} + +export interface D2UserGroupSchema { + name: "D2UserGroup"; + model: D2UserGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + managedByGroups: D2UserGroupSchema[]; + managedGroups: D2UserGroupSchema[]; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + users: D2UserSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2UserGroup, + | "code" + | "managedByGroups" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "users" + | "managedGroups" + | "createdBy" + | "name" + >; + $owner: Preset< + D2UserGroup, + | "code" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "users" + | "managedGroups" + | "createdBy" + | "name" + >; + }; +} + +export interface D2UserGroupAccessSchema { + name: "D2UserGroupAccess"; + model: D2UserGroupAccess; + fields: { access: string; displayName: string; id: string; userGroupUid: string }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2ValidationNotificationTemplateSchema { + name: "D2ValidationNotificationTemplate"; + model: D2ValidationNotificationTemplate; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + messageTemplate: string; + name: string; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientUserGroups: D2UserGroupSchema[]; + sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; + sharing: any; + subjectTemplate: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + validationRules: D2ValidationRuleSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ValidationNotificationTemplate, + | "code" + | "recipientUserGroups" + | "lastUpdated" + | "translations" + | "id" + | "subjectTemplate" + | "sendStrategy" + | "lastUpdatedBy" + | "validationRules" + | "created" + | "notifyUsersInHierarchyOnly" + | "name" + | "messageTemplate" + >; + $owner: Preset< + D2ValidationNotificationTemplate, + | "code" + | "recipientUserGroups" + | "lastUpdated" + | "translations" + | "id" + | "subjectTemplate" + | "sendStrategy" + | "lastUpdatedBy" + | "validationRules" + | "created" + | "notifyUsersInHierarchyOnly" + | "name" + | "messageTemplate" + >; + }; +} + +export interface D2ValidationResultSchema { + name: "D2ValidationResult"; + model: D2ValidationResult; + fields: { + attributeOptionCombo: D2CategoryOptionComboSchema; + created: string; + dayInPeriod: number; + id: string; + leftsideValue: number; + notificationSent: boolean; + organisationUnit: D2OrganisationUnitSchema; + period: any; + rightsideValue: number; + validationRule: D2ValidationRuleSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ValidationResult, + "created" | "rightsideValue" | "leftsideValue" | "notificationSent" + >; + $owner: Preset< + D2ValidationResult, + "created" | "rightsideValue" | "leftsideValue" | "notificationSent" + >; + }; +} + +export interface D2ValidationRuleSchema { + name: "D2ValidationRule"; + model: D2ValidationRule; + fields: { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayInstruction: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + importance: "HIGH" | "MEDIUM" | "LOW"; + instruction: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + leftSide: D2ExpressionSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + notificationTemplates: D2ValidationNotificationTemplateSchema[]; + operator: + | "equal_to" + | "not_equal_to" + | "greater_than" + | "greater_than_or_equal_to" + | "less_than" + | "less_than_or_equal_to" + | "compulsory_pair" + | "exclusive_pair"; + organisationUnitLevels: number[]; + periodOffset: number; + periodType: string; + publicAccess: string; + rightSide: D2ExpressionSchema; + sharing: any; + shortName: string; + skipFormValidation: boolean; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + validationRuleGroups: D2ValidationRuleGroupSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ValidationRule, + | "validationRuleGroups" + | "code" + | "importance" + | "description" + | "operator" + | "organisationUnitLevels" + | "lastUpdated" + | "leftSide" + | "notificationTemplates" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "rightSide" + | "sharing" + | "periodType" + | "createdBy" + | "instruction" + | "name" + | "skipFormValidation" + >; + $owner: Preset< + D2ValidationRule, + | "code" + | "importance" + | "description" + | "operator" + | "organisationUnitLevels" + | "lastUpdated" + | "leftSide" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "rightSide" + | "sharing" + | "periodType" + | "createdBy" + | "instruction" + | "name" + | "skipFormValidation" + >; + }; +} + +export interface D2ValidationRuleGroupSchema { + name: "D2ValidationRuleGroup"; + model: D2ValidationRuleGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + validationRules: D2ValidationRuleSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ValidationRuleGroup, + | "lastUpdatedBy" + | "code" + | "validationRules" + | "created" + | "attributeValues" + | "description" + | "sharing" + | "lastUpdated" + | "createdBy" + | "translations" + | "name" + | "id" + >; + $owner: Preset< + D2ValidationRuleGroup, + | "lastUpdatedBy" + | "code" + | "validationRules" + | "created" + | "attributeValues" + | "description" + | "sharing" + | "lastUpdated" + | "createdBy" + | "translations" + | "name" + | "id" + >; + }; +} + +export interface D2VisualizationSchema { + name: "D2Visualization"; + model: D2Visualization; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValues: D2AttributeValueSchema[]; + axes: any[]; + baseLineLabel: string; + baseLineValue: number; + categoryDimensions: D2CategoryDimensionSchema[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; + code: Id; + colSubTotals: boolean; + colTotals: boolean; + colorSet: string; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + createdBy: D2UserSchema; + cumulativeValues: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; + displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + displayDescription: string; + displayDomainAxisLabel: string; + displayFormName: string; + displayName: string; + displayRangeAxisLabel: string; + displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; + domainAxisLabel: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + fontSize: "LARGE" | "NORMAL" | "SMALL"; + fontStyle: any; + formName: string; + hideEmptyColumns: boolean; + hideEmptyRowItems: + | "NONE" + | "BEFORE_FIRST" + | "AFTER_LAST" + | "BEFORE_FIRST_AFTER_LAST" + | "ALL"; + hideEmptyRows: boolean; + hideLegend: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legend: any; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendDisplayStyle: "FILL" | "TEXT"; + legendSet: D2LegendSetSchema; + measureCriteria: string; + name: string; + noSpaceBetweenColumns: boolean; + numberType: "VALUE" | "ROW_PERCENTAGE" | "COLUMN_PERCENTAGE"; + optionalAxes: D2Axis[]; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnitSchema[]; + outlierAnalysis: any; + parentGraphMap: D2MapSchema; + percentStackedValues: boolean; + periods: any[]; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; + publicAccess: string; + rangeAxisDecimals: number; + rangeAxisLabel: string; + rangeAxisMaxValue: number; + rangeAxisMinValue: number; + rangeAxisSteps: number; + regression: boolean; + regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; + relativePeriods: any; + reportingParams: D2ReportingParams; + rowDimensions: string[]; + rowSubTotals: boolean; + rowTotals: boolean; + rows: any[]; + series: any[]; + sharing: any; + shortName: string; + showData: boolean; + showDimensionLabels: boolean; + showHierarchy: boolean; + skipRounding: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + targetLineLabel: string; + targetLineValue: number; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + type: + | "COLUMN" + | "STACKED_COLUMN" + | "BAR" + | "STACKED_BAR" + | "LINE" + | "AREA" + | "STACKED_AREA" + | "PIE" + | "RADAR" + | "GAUGE" + | "YEAR_OVER_YEAR_LINE" + | "YEAR_OVER_YEAR_COLUMN" + | "SINGLE_VALUE" + | "PIVOT_TABLE" + | "SCATTER" + | "BUBBLE"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + visualizationPeriodName: string; + yearlySeries: string[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Visualization, + | "dataElementGroupSetDimensions" + | "endDate" + | "legend" + | "baseLineValue" + | "userOrganisationUnitChildren" + | "axes" + | "legendDisplayStyle" + | "type" + | "hideEmptyColumns" + | "measureCriteria" + | "lastUpdated" + | "translations" + | "yearlySeries" + | "userOrganisationUnit" + | "rowSubTotals" + | "filterDimensions" + | "id" + | "interpretations" + | "domainAxisLabel" + | "subscribers" + | "cumulativeValues" + | "fontStyle" + | "optionalAxes" + | "showDimensionLabels" + | "sortOrder" + | "subtitle" + | "fontSize" + | "rangeAxisDecimals" + | "topLimit" + | "startDate" + | "userOrganisationUnitGrandChildren" + | "percentStackedValues" + | "noSpaceBetweenColumns" + | "rangeAxisSteps" + | "periods" + | "categoryDimensions" + | "showHierarchy" + | "reportingParams" + | "hideTitle" + | "rowDimensions" + | "series" + | "colorSet" + | "skipRounding" + | "showData" + | "numberType" + | "hideEmptyRows" + | "itemOrganisationUnitGroups" + | "displayDensity" + | "lastUpdatedBy" + | "created" + | "rangeAxisLabel" + | "regressionType" + | "columnDimensions" + | "completedOnly" + | "colTotals" + | "sharing" + | "name" + | "hideEmptyRowItems" + | "favorites" + | "aggregationType" + | "dataDimensionItems" + | "code" + | "categoryOptionGroupSetDimensions" + | "hideSubtitle" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "hideLegend" + | "rangeAxisMinValue" + | "organisationUnitLevels" + | "legendDisplayStrategy" + | "colSubTotals" + | "relativePeriods" + | "targetLineLabel" + | "organisationUnits" + | "rowTotals" + | "targetLineValue" + | "outlierAnalysis" + | "baseLineLabel" + | "digitGroupSeparator" + | "createdBy" + | "regression" + | "legendSet" + | "userOrgUnitType" + | "rangeAxisMaxValue" + >; + $owner: Preset< + D2Visualization, + | "dataElementGroupSetDimensions" + | "endDate" + | "legend" + | "baseLineValue" + | "userOrganisationUnitChildren" + | "axes" + | "legendDisplayStyle" + | "type" + | "hideEmptyColumns" + | "measureCriteria" + | "lastUpdated" + | "translations" + | "yearlySeries" + | "userOrganisationUnit" + | "rowSubTotals" + | "filterDimensions" + | "id" + | "domainAxisLabel" + | "subscribers" + | "cumulativeValues" + | "fontStyle" + | "optionalAxes" + | "showDimensionLabels" + | "sortOrder" + | "subtitle" + | "fontSize" + | "rangeAxisDecimals" + | "topLimit" + | "startDate" + | "userOrganisationUnitGrandChildren" + | "percentStackedValues" + | "noSpaceBetweenColumns" + | "rangeAxisSteps" + | "periods" + | "categoryDimensions" + | "showHierarchy" + | "reportingParams" + | "hideTitle" + | "rowDimensions" + | "series" + | "colorSet" + | "skipRounding" + | "showData" + | "numberType" + | "hideEmptyRows" + | "itemOrganisationUnitGroups" + | "displayDensity" + | "lastUpdatedBy" + | "created" + | "rangeAxisLabel" + | "regressionType" + | "columnDimensions" + | "completedOnly" + | "colTotals" + | "sharing" + | "name" + | "hideEmptyRowItems" + | "favorites" + | "aggregationType" + | "dataDimensionItems" + | "code" + | "categoryOptionGroupSetDimensions" + | "hideSubtitle" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "hideLegend" + | "rangeAxisMinValue" + | "organisationUnitLevels" + | "legendDisplayStrategy" + | "colSubTotals" + | "relativePeriods" + | "targetLineLabel" + | "organisationUnits" + | "rowTotals" + | "targetLineValue" + | "outlierAnalysis" + | "baseLineLabel" + | "digitGroupSeparator" + | "createdBy" + | "regression" + | "legendSet" + | "userOrgUnitType" + | "rangeAxisMaxValue" + >; + }; +} + +export type D2Model = + | D2AnalyticsPeriodBoundary + | D2AnalyticsTableHook + | D2Attribute + | D2AttributeValue + | D2Category + | D2CategoryCombo + | D2CategoryDimension + | D2CategoryOption + | D2CategoryOptionCombo + | D2CategoryOptionGroup + | D2CategoryOptionGroupSet + | D2CategoryOptionGroupSetDimension + | D2Chart + | D2Constant + | D2Dashboard + | D2DashboardItem + | D2DataApprovalLevel + | D2DataApprovalWorkflow + | D2DataElement + | D2DataElementGroup + | D2DataElementGroupSet + | D2DataElementGroupSetDimension + | D2DataElementOperand + | D2DataEntryForm + | D2DataInputPeriod + | D2DataSet + | D2DataSetElement + | D2DataSetNotificationTemplate + | D2Document + | D2EventChart + | D2EventReport + | D2Expression + | D2ExternalFileResource + | D2ExternalMapLayer + | D2FileResource + | D2Icon + | D2Indicator + | D2IndicatorGroup + | D2IndicatorGroupSet + | D2IndicatorType + | D2Interpretation + | D2InterpretationComment + | D2JobConfiguration + | D2KeyJsonValue + | D2Legend + | D2LegendSet + | D2Map + | D2MapView + | D2MessageConversation + | D2MetadataVersion + | D2MinMaxDataElement + | D2OAuth2Client + | D2Option + | D2OptionGroup + | D2OptionGroupSet + | D2OptionSet + | D2OrganisationUnit + | D2OrganisationUnitGroup + | D2OrganisationUnitGroupSet + | D2OrganisationUnitGroupSetDimension + | D2OrganisationUnitLevel + | D2Predictor + | D2PredictorGroup + | D2Program + | D2ProgramDataElementDimensionItem + | D2ProgramIndicator + | D2ProgramIndicatorGroup + | D2ProgramInstance + | D2ProgramNotificationTemplate + | D2ProgramRule + | D2ProgramRuleAction + | D2ProgramRuleVariable + | D2ProgramSection + | D2ProgramStage + | D2ProgramStageDataElement + | D2ProgramStageInstance + | D2ProgramStageInstanceFilter + | D2ProgramStageSection + | D2ProgramTrackedEntityAttribute + | D2ProgramTrackedEntityAttributeDimensionItem + | D2ProgramTrackedEntityAttributeGroup + | D2PushAnalysis + | D2Relationship + | D2RelationshipType + | D2Report + | D2ReportTable + | D2ReportingRate + | D2SMSCommand + | D2Section + | D2SqlView + | D2TrackedEntityAttribute + | D2TrackedEntityAttributeValue + | D2TrackedEntityDataElementDimension + | D2TrackedEntityInstance + | D2TrackedEntityInstanceFilter + | D2TrackedEntityProgramIndicatorDimension + | D2TrackedEntityType + | D2TrackedEntityTypeAttribute + | D2User + | D2UserAccess + | D2UserAuthorityGroup + | D2UserCredentials + | D2UserGroup + | D2UserGroupAccess + | D2ValidationNotificationTemplate + | D2ValidationResult + | D2ValidationRule + | D2ValidationRuleGroup + | D2Visualization; + +export const models: Record = { + analyticsPeriodBoundaries: { + klass: "org.hisp.dhis.program.AnalyticsPeriodBoundary", + shareable: false, + metadata: false, + plural: "analyticsPeriodBoundaries", + displayName: "Analytics Period Boundary", + collectionName: "analyticsPeriodBoundaries", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "analyticsPeriodBoundary", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "offsetPeriodType", + fieldName: "offsetPeriodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "analyticsPeriodBoundaryType", + fieldName: "analyticsPeriodBoundaryType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.AnalyticsPeriodBoundaryType", + }, + { + name: "boundaryTarget", + fieldName: "boundaryTarget", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "offsetPeriods", + fieldName: "offsetPeriods", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + ], + }, + analyticsTableHooks: { + klass: "org.hisp.dhis.analytics.AnalyticsTableHook", + shareable: false, + metadata: true, + relativeApiEndpoint: "/analyticsTableHooks", + plural: "analyticsTableHooks", + displayName: "Analytics Table Hook", + collectionName: "analyticsTableHooks", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "analyticsTableHook", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "analyticsTableType", + fieldName: "analyticsTableType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AnalyticsTableType", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "sql", fieldName: "sql", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "phase", + fieldName: "phase", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AnalyticsTablePhase", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "resourceTableType", + fieldName: "resourceTableType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.resourcetable.ResourceTableType", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + attributes: { + klass: "org.hisp.dhis.attribute.Attribute", + shareable: true, + metadata: true, + relativeApiEndpoint: "/attributes", + plural: "attributes", + displayName: "Attribute", + collectionName: "attributes", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "attribute", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "indicatorAttribute", + fieldName: "indicatorAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "indicatorGroupAttribute", + fieldName: "indicatorGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userGroupAttribute", + fieldName: "userGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElementAttribute", + fieldName: "dataElementAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "constantAttribute", + fieldName: "constantAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + fieldName: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { + name: "categoryOptionAttribute", + fieldName: "categoryOptionAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "optionSetAttribute", + fieldName: "optionSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "sqlViewAttribute", + fieldName: "sqlViewAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "legendSetAttribute", + fieldName: "legendSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "trackedEntityAttributeAttribute", + fieldName: "trackedEntityAttributeAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "organisationUnitAttribute", + fieldName: "organisationUnitAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataSetAttribute", + fieldName: "dataSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "documentAttribute", + fieldName: "documentAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "unique", + fieldName: "unique", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "validationRuleGroupAttribute", + fieldName: "validationRuleGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dataElementGroupAttribute", + fieldName: "dataElementGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sectionAttribute", + fieldName: "sectionAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "trackedEntityTypeAttribute", + fieldName: "trackedEntityTypeAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userAttribute", + fieldName: "userAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "mandatory", + fieldName: "mandatory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "categoryOptionGroupAttribute", + fieldName: "categoryOptionGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programStageAttribute", + fieldName: "programStageAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programAttribute", + fieldName: "programAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "categoryAttribute", + fieldName: "categoryAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "categoryOptionComboAttribute", + fieldName: "categoryOptionComboAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetAttribute", + fieldName: "categoryOptionGroupSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "validationRuleAttribute", + fieldName: "validationRuleAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programIndicatorAttribute", + fieldName: "programIndicatorAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "organisationUnitGroupAttribute", + fieldName: "organisationUnitGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElementGroupSetAttribute", + fieldName: "dataElementGroupSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "organisationUnitGroupSetAttribute", + fieldName: "organisationUnitGroupSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "optionAttribute", + fieldName: "optionAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + ], + }, + attributeValues: { + klass: "org.hisp.dhis.attribute.AttributeValue", + shareable: false, + metadata: false, + plural: "attributeValues", + displayName: "Attribute Value", + collectionName: "attributeValues", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "attributeValues", + persisted: false, + embeddedObject: true, + properties: [ + { + name: "attribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.attribute.Attribute", + }, + { name: "value", fieldName: "value", propertyType: "TEXT", klass: "java.lang.String" }, + ], + }, + categories: { + klass: "org.hisp.dhis.category.Category", + shareable: true, + metadata: true, + relativeApiEndpoint: "/categories", + plural: "categories", + displayName: "Category", + collectionName: "categories", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "category", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dimensionType", + fieldName: "dimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "categoryCombo", + fieldName: "categoryCombos", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryCombo", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "categoryOption", + fieldName: "categoryOptions", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOption", + }, + { name: "dimension", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "allItems", + fieldName: "allItems", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dimensionalKeywords", + fieldName: "dimensionalKeywords", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.DimensionalKeywords", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "dataDimension", + fieldName: "dataDimension", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "item", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + categoryCombos: { + klass: "org.hisp.dhis.category.CategoryCombo", + shareable: true, + metadata: true, + relativeApiEndpoint: "/categoryCombos", + plural: "categoryCombos", + displayName: "Category Combo", + collectionName: "categoryCombos", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "categoryCombo", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "category", + fieldName: "categories", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.Category", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "categoryOptionCombo", + fieldName: "optionCombos", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { name: "isDefault", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "skipTotal", + fieldName: "skipTotal", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + categoryDimensions: { + klass: "org.hisp.dhis.category.CategoryDimension", + shareable: false, + metadata: false, + plural: "categoryDimensions", + displayName: "Category Dimension", + collectionName: "categoryDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "categoryDimension", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "categoryOption", + fieldName: "items", + propertyType: "REFERENCE", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOption", + }, + { + name: "category", + fieldName: "dimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.Category", + }, + ], + }, + categoryOptions: { + klass: "org.hisp.dhis.category.CategoryOption", + shareable: true, + metadata: true, + relativeApiEndpoint: "/categoryOptions", + plural: "categoryOptions", + displayName: "Category Option", + collectionName: "categoryOptions", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "categoryOption", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "category", + fieldName: "categories", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.Category", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "categoryOptionCombo", + fieldName: "categoryOptionCombos", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { name: "isDefault", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "categoryOptionGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroup", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + categoryOptionCombos: { + klass: "org.hisp.dhis.category.CategoryOptionCombo", + shareable: false, + metadata: true, + relativeApiEndpoint: "/categoryOptionCombos", + plural: "categoryOptionCombos", + displayName: "Category Option Combo", + collectionName: "categoryOptionCombos", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "categoryOptionCombo", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "ignoreApproval", + fieldName: "ignoreApproval", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "categoryOption", + fieldName: "categoryOptions", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOption", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + categoryOptionGroups: { + klass: "org.hisp.dhis.category.CategoryOptionGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/categoryOptionGroups", + plural: "categoryOptionGroups", + displayName: "Category Option Group", + collectionName: "categoryOptionGroups", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "categoryOptionGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "categoryOption", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOption", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "groupSet", + fieldName: "groupSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSet", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + categoryOptionGroupSets: { + klass: "org.hisp.dhis.category.CategoryOptionGroupSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/categoryOptionGroupSets", + plural: "categoryOptionGroupSets", + displayName: "Category Option Group Set", + collectionName: "categoryOptionGroupSets", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "categoryOptionGroupSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dimensionType", + fieldName: "dimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "dimension", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "allItems", + fieldName: "allItems", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dimensionalKeywords", + fieldName: "dimensionalKeywords", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.DimensionalKeywords", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroup", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroup", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "dataDimension", + fieldName: "dataDimension", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "item", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + categoryOptionGroupSetDimensions: { + klass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + shareable: false, + metadata: false, + plural: "categoryOptionGroupSetDimensions", + displayName: "Category Option Group Set Dimension", + collectionName: "categoryOptionGroupSetDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "categoryOptionGroupSetDimension", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "categoryOptionGroup", + fieldName: "items", + propertyType: "REFERENCE", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroup", + }, + { + name: "categoryOptionGroupSet", + fieldName: "dimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionGroupSet", + }, + ], + }, + charts: { + klass: "org.hisp.dhis.chart.Chart", + shareable: false, + metadata: true, + relativeApiEndpoint: "/charts", + plural: "charts", + displayName: "Chart", + collectionName: "charts", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "chart", + persisted: false, + embeddedObject: false, + properties: [ + { + name: "dataElementGroupSetDimension", + fieldName: "dataElementGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + }, + { + name: "showData", + fieldName: "showData", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "orgUnitField", + fieldName: "orgUnitField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "baseLineValue", + fieldName: "baseLineValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnitChildren", + fieldName: "userOrganisationUnitChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.chart.ChartType", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayTargetLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attributeDimension", + fieldName: "attributeDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "yearlySerie", + fieldName: "yearlySeries", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "parentGraphMap", + fieldName: "parentGraphMap", + propertyType: "COMPLEX", + klass: "java.util.Map", + }, + { + name: "userOrganisationUnit", + fieldName: "userOrganisationUnit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "filterDimension", + fieldName: "filterDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { + name: "itemOrganisationUnitGroup", + fieldName: "itemOrganisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "displayDomainAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "programIndicatorDimension", + fieldName: "programIndicatorDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + }, + { + name: "domainAxisLabel", + fieldName: "domainAxisLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "rangeAxisLabel", + fieldName: "rangeAxisLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "regressionType", + fieldName: "regressionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.RegressionType", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "completedOnly", + fieldName: "completedOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "cumulativeValues", + fieldName: "cumulativeValues", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "rangeAxisDecimals", + fieldName: "rangeAxisDecimals", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "topLimit", + fieldName: "topLimit", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "hideEmptyRowItems", + fieldName: "hideEmptyRowItems", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.HideEmptyItemStrategy", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionItem", + fieldName: "dataDimensionItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DataDimensionItem", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetDimension", + fieldName: "categoryOptionGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userOrganisationUnitGrandChildren", + fieldName: "userOrganisationUnitGrandChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "column", + fieldName: "columns", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "hideSubtitle", + fieldName: "hideSubtitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitGroupSetDimension", + fieldName: "organisationUnitGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideLegend", + fieldName: "hideLegend", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rangeAxisMinValue", + fieldName: "rangeAxisMinValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "percentStackedValues", + fieldName: "percentStackedValues", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "seriesItem", + fieldName: "seriesItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.chart.Series", + }, + { + name: "legendDisplayStrategy", + fieldName: "legendDisplayStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.legend.LegendDisplayStrategy", + }, + { + name: "noSpaceBetweenColumns", + fieldName: "noSpaceBetweenColumns", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "dataElementDimension", + fieldName: "dataElementDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + }, + { + name: "rangeAxisSteps", + fieldName: "rangeAxisSteps", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "targetLineLabel", + fieldName: "targetLineLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "period", + fieldName: "periods", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.period.Period", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "categoryDimension", + fieldName: "categoryDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryDimension", + }, + { name: "displayRangeAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "timeField", + fieldName: "timeField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "targetLineValue", + fieldName: "targetLineValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "filter", + fieldName: "filters", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "row", + fieldName: "rows", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "baseLineLabel", + fieldName: "baseLineLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "digitGroupSeparator", + fieldName: "digitGroupSeparator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DigitGroupSeparator", + }, + { + name: "hideTitle", + fieldName: "hideTitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "series", + fieldName: "series", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "userOrgUnitType", + fieldName: "userOrgUnitType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.UserOrgUnitType", + }, + { + name: "rangeAxisMaxValue", + fieldName: "rangeAxisMaxValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "category", + fieldName: "category", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayBaseLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, + constants: { + klass: "org.hisp.dhis.constant.Constant", + shareable: true, + metadata: true, + relativeApiEndpoint: "/constants", + plural: "constants", + displayName: "Constant", + collectionName: "constants", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "constant", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "value", + fieldName: "value", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dashboards: { + klass: "org.hisp.dhis.dashboard.Dashboard", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dashboards", + plural: "dashboards", + displayName: "Dashboard", + collectionName: "dashboards", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dashboard", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "restrictFilters", + fieldName: "restrictFilters", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "itemCount", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "dashboardItem", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dashboard.DashboardItem", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "allowedFilter", + fieldName: "allowedFilters", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + ], + }, + dashboardItems: { + klass: "org.hisp.dhis.dashboard.DashboardItem", + shareable: false, + metadata: false, + relativeApiEndpoint: "/dashboardItems", + plural: "dashboardItems", + displayName: "Dashboard Item", + collectionName: "dashboardItems", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dashboardItem", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "report", + fieldName: "reports", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.report.Report", + }, + { + name: "visualization", + fieldName: "visualization", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.visualization.Visualization", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.dashboard.DashboardItemType", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "reportTable", + fieldName: "reportTable", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.reporttable.ReportTable", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "appKey", + fieldName: "appKey", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "text", fieldName: "text", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "map", + fieldName: "map", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.mapping.Map", + }, + { name: "contentCount", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "height", + fieldName: "height", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "shape", + fieldName: "shape", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.dashboard.DashboardItemShape", + }, + { name: "interpretationCount", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "resource", + fieldName: "resources", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.document.Document", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "user", + fieldName: "users", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.user.User", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "eventReport", + fieldName: "eventReport", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.eventreport.EventReport", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "eventChart", + fieldName: "eventChart", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.eventchart.EventChart", + }, + { + name: "width", + fieldName: "width", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "x", fieldName: "x", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "messages", + fieldName: "messages", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "y", fieldName: "y", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "interpretationLikeCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "chart", + fieldName: "chart", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.chart.Chart", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataApprovalLevels: { + klass: "org.hisp.dhis.dataapproval.DataApprovalLevel", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataApprovalLevels", + plural: "dataApprovalLevels", + displayName: "Data Approval Level", + collectionName: "dataApprovalLevels", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataApprovalLevel", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "categoryOptionGroupSet", + fieldName: "categoryOptionGroupSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionGroupSet", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "orgUnitLevelName", + fieldName: "orgUnitLevelName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "level", + fieldName: "level", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "orgUnitLevel", + fieldName: "orgUnitLevel", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataApprovalWorkflows: { + klass: "org.hisp.dhis.dataapproval.DataApprovalWorkflow", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataApprovalWorkflows", + plural: "dataApprovalWorkflows", + displayName: "Data Approval Workflow", + collectionName: "dataApprovalWorkflows", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataApprovalWorkflow", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "dataApprovalLevel", + fieldName: "levels", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataapproval.DataApprovalLevel", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "periodType", + fieldName: "periodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSet", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataElements: { + klass: "org.hisp.dhis.dataelement.DataElement", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataElements", + plural: "dataElements", + displayName: "Data Element", + collectionName: "dataElements", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataElement", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "domainType", + fieldName: "domainType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.dataelement.DataElementDomain", + }, + { + name: "dataSetElements", + fieldName: "dataSetElements", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSetElement", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + fieldName: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "commentOptionSet", + fieldName: "commentOptionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "fieldMask", + fieldName: "fieldMask", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "valueTypeOptions", + fieldName: "valueTypeOptions", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ValueTypeOptions", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "dataElementGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroup", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "zeroIsSignificant", + fieldName: "zeroIsSignificant", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "url", fieldName: "url", propertyType: "URL", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "aggregationLevels", + fieldName: "aggregationLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "optionSetValue", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + dataElementGroups: { + klass: "org.hisp.dhis.dataelement.DataElementGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataElementGroups", + plural: "dataElementGroups", + displayName: "Data Element Group", + collectionName: "dataElementGroups", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataElementGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "dataElement", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataelement.DataElement", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "groupSet", + fieldName: "groupSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSet", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + dataElementGroupSets: { + klass: "org.hisp.dhis.dataelement.DataElementGroupSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataElementGroupSets", + plural: "dataElementGroupSets", + displayName: "Data Element Group Set", + collectionName: "dataElementGroupSets", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataElementGroupSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dimensionType", + fieldName: "dimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "dimension", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "allItems", + fieldName: "allItems", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dataElementGroup", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroup", + }, + { + name: "dimensionalKeywords", + fieldName: "dimensionalKeywords", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.DimensionalKeywords", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "compulsory", + fieldName: "compulsory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "dataDimension", + fieldName: "dataDimension", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "item", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataElementGroupSetDimensions: { + klass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + shareable: false, + metadata: false, + plural: "dataElementGroupSetDimensions", + displayName: "Data Element Group Set Dimension", + collectionName: "dataElementGroupSetDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "dataElementGroupSetDimension", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "dataElementGroup", + fieldName: "items", + propertyType: "REFERENCE", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroup", + }, + { + name: "dataElementGroupSet", + fieldName: "dimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElementGroupSet", + }, + ], + }, + dataElementOperands: { + klass: "org.hisp.dhis.dataelement.DataElementOperand", + shareable: false, + metadata: false, + relativeApiEndpoint: "/dataElementOperands", + plural: "dataElementOperands", + displayName: "Data Element Operand", + collectionName: "dataElementOperands", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "dataElementOperand", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "categoryOptionCombo", + fieldName: "categoryOptionCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "attributeOptionCombo", + fieldName: "attributeOptionCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + dataEntryForms: { + klass: "org.hisp.dhis.dataentryform.DataEntryForm", + shareable: false, + metadata: true, + relativeApiEndpoint: "/dataEntryForms", + plural: "dataEntryForms", + displayName: "Data Entry Form", + collectionName: "dataEntryForms", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataEntryForm", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "htmlCode", + fieldName: "htmlCode", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "format", + fieldName: "format", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DisplayDensity", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataInputPeriods: { + klass: "org.hisp.dhis.dataset.DataInputPeriod", + shareable: false, + metadata: false, + plural: "dataInputPeriods", + displayName: "Data Input Period", + collectionName: "dataInputPeriods", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "dataInputPeriods", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "period", + fieldName: "period", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.period.Period", + }, + { + name: "closingDate", + fieldName: "closingDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "openingDate", + fieldName: "openingDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + ], + }, + dataSets: { + klass: "org.hisp.dhis.dataset.DataSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataSets", + plural: "dataSets", + displayName: "Data Set", + collectionName: "dataSets", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "dataSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataEntryForm", + fieldName: "dataEntryForm", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataentryform.DataEntryForm", + }, + { + name: "validCompleteOnly", + fieldName: "validCompleteOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataSetElement", + fieldName: "dataSetElements", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSetElement", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "skipOffline", + fieldName: "skipOffline", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "compulsoryFieldsCompleteOnly", + fieldName: "compulsoryFieldsCompleteOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "dataInputPeriods", + fieldName: "dataInputPeriods", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataInputPeriod", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "formType", propertyType: "CONSTANT", klass: "org.hisp.dhis.dataset.FormType" }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "workflow", + fieldName: "workflow", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataapproval.DataApprovalWorkflow", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "indicator", + fieldName: "indicators", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.indicator.Indicator", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "version", + fieldName: "version", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "section", + fieldName: "sections", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.Section", + }, + { + name: "timelyDays", + fieldName: "timelyDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "notificationRecipients", + fieldName: "notificationRecipients", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "dataElementDecoration", + fieldName: "dataElementDecoration", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "notifyCompletingUser", + fieldName: "notifyCompletingUser", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "noValueRequiresComment", + fieldName: "noValueRequiresComment", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "compulsoryDataElementOperand", + fieldName: "compulsoryDataElementOperands", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataelement.DataElementOperand", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "fieldCombinationRequired", + fieldName: "fieldCombinationRequired", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnit", + fieldName: "sources", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "renderHorizontally", + fieldName: "renderHorizontally", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "renderAsTabs", + fieldName: "renderAsTabs", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "mobile", + fieldName: "mobile", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "openPeriodsAfterCoEndDate", + fieldName: "openPeriodsAfterCoEndDate", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "periodType", + fieldName: "periodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "openFuturePeriods", + fieldName: "openFuturePeriods", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "expiryDays", + fieldName: "expiryDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, + dataSetElements: { + klass: "org.hisp.dhis.dataset.DataSetElement", + shareable: false, + metadata: false, + plural: "dataSetElements", + displayName: "Data Set Element", + collectionName: "dataSetElements", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "dataSetElement", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "dataSet", + fieldName: "dataSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataset.DataSet", + }, + ], + }, + dataSetNotificationTemplates: { + klass: "org.hisp.dhis.dataset.notifications.DataSetNotificationTemplate", + shareable: false, + metadata: true, + relativeApiEndpoint: "/dataSetNotificationTemplates", + plural: "dataSetNotificationTemplates", + displayName: "Data Set Notification Template", + collectionName: "dataSetNotificationTemplates", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataSetNotificationTemplate", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "relativeScheduledDays", + fieldName: "relativeScheduledDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "subjectTemplate", + fieldName: "subjectTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "dataSetNotificationTrigger", + fieldName: "dataSetNotificationTrigger", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.dataset.notifications.DataSetNotificationTrigger", + }, + { + name: "sendStrategy", + fieldName: "sendStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.notification.SendStrategy", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "deliveryChannels", + fieldName: "deliveryChannels", + propertyType: "COLLECTION", + itemPropertyType: "CONSTANT", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.common.DeliveryChannel", + }, + { name: "displaySubjectTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "notifyUsersInHierarchyOnly", + fieldName: "notifyUsersInHierarchyOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "notificationRecipient", + fieldName: "notificationRecipient", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.dataset.notifications.DataSetNotificationRecipient", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "notifyParentOrganisationUnitOnly", + fieldName: "notifyParentOrganisationUnitOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSet", + }, + { name: "displayMessageTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "recipientUserGroup", + fieldName: "recipientUserGroup", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.UserGroup", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "messageTemplate", + fieldName: "messageTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + ], + }, + documents: { + klass: "org.hisp.dhis.document.Document", + shareable: true, + metadata: true, + relativeApiEndpoint: "/documents", + plural: "documents", + displayName: "Document", + collectionName: "documents", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "document", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attachment", + fieldName: "attachment", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "contentType", + fieldName: "contentType", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "url", fieldName: "url", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "external", + fieldName: "external", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + eventCharts: { + klass: "org.hisp.dhis.eventchart.EventChart", + shareable: true, + metadata: true, + relativeApiEndpoint: "/eventCharts", + plural: "eventCharts", + displayName: "Event Chart", + collectionName: "eventCharts", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "eventChart", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataElementGroupSetDimension", + fieldName: "dataElementGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + }, + { + name: "orgUnitField", + fieldName: "orgUnitField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "baseLineValue", + fieldName: "baseLineValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnitChildren", + fieldName: "userOrganisationUnitChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.chart.ChartType", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayTargetLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attributeDimension", + fieldName: "attributeDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "yearlySerie", + fieldName: "yearlySeries", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "userOrganisationUnit", + fieldName: "userOrganisationUnit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "filterDimension", + fieldName: "filterDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attributeValueDimension", + fieldName: "attributeValueDimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "domainAxisLabel", + fieldName: "domainAxisLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "cumulativeValues", + fieldName: "cumulativeValues", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "rangeAxisDecimals", + fieldName: "rangeAxisDecimals", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "topLimit", + fieldName: "topLimit", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "collapseDataDimensions", + fieldName: "collapseDataDimensions", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userOrganisationUnitGrandChildren", + fieldName: "userOrganisationUnitGrandChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "column", + fieldName: "columns", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "percentStackedValues", + fieldName: "percentStackedValues", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "noSpaceBetweenColumns", + fieldName: "noSpaceBetweenColumns", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElementDimension", + fieldName: "dataElementDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + }, + { + name: "rangeAxisSteps", + fieldName: "rangeAxisSteps", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "period", + fieldName: "periods", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.period.Period", + }, + { + name: "categoryDimension", + fieldName: "categoryDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryDimension", + }, + { name: "displayRangeAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideTitle", + fieldName: "hideTitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rowDimension", + fieldName: "rowDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "eventStatus", + fieldName: "eventStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.event.EventStatus", + }, + { name: "displayBaseLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "showData", + fieldName: "showData", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "parentGraphMap", + fieldName: "parentGraphMap", + propertyType: "COMPLEX", + klass: "java.util.Map", + }, + { + name: "hideNaData", + fieldName: "hideNaData", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "itemOrganisationUnitGroup", + fieldName: "itemOrganisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "displayDomainAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "programIndicatorDimension", + fieldName: "programIndicatorDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "rangeAxisLabel", + fieldName: "rangeAxisLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "regressionType", + fieldName: "regressionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.RegressionType", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "columnDimension", + fieldName: "columnDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "completedOnly", + fieldName: "completedOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "programStatus", + fieldName: "programStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramStatus", + }, + { + name: "hideEmptyRowItems", + fieldName: "hideEmptyRowItems", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.HideEmptyItemStrategy", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dataDimensionItem", + fieldName: "dataDimensionItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DataDimensionItem", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetDimension", + fieldName: "categoryOptionGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + }, + { + name: "hideSubtitle", + fieldName: "hideSubtitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "outputType", + fieldName: "outputType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.EventOutputType", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitGroupSetDimension", + fieldName: "organisationUnitGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideLegend", + fieldName: "hideLegend", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rangeAxisMinValue", + fieldName: "rangeAxisMinValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "legendDisplayStrategy", + fieldName: "legendDisplayStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.legend.LegendDisplayStrategy", + }, + { + name: "dataElementValueDimension", + fieldName: "dataElementValueDimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "targetLineLabel", + fieldName: "targetLineLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "value", + fieldName: "value", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "timeField", + fieldName: "timeField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "targetLineValue", + fieldName: "targetLineValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "filter", + fieldName: "filters", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "row", + fieldName: "rows", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "baseLineLabel", + fieldName: "baseLineLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "digitGroupSeparator", + fieldName: "digitGroupSeparator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DigitGroupSeparator", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "userOrgUnitType", + fieldName: "userOrgUnitType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.UserOrgUnitType", + }, + { + name: "rangeAxisMaxValue", + fieldName: "rangeAxisMaxValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, + eventReports: { + klass: "org.hisp.dhis.eventreport.EventReport", + shareable: true, + metadata: true, + relativeApiEndpoint: "/eventReports", + plural: "eventReports", + displayName: "Event Report", + collectionName: "eventReports", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "eventReport", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataElementGroupSetDimension", + fieldName: "dataElementGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + }, + { + name: "orgUnitField", + fieldName: "orgUnitField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnitChildren", + fieldName: "userOrganisationUnitChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideEmptyRows", + fieldName: "hideEmptyRows", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeDimension", + fieldName: "attributeDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "parentGraphMap", + fieldName: "parentGraphMap", + propertyType: "COMPLEX", + klass: "java.util.Map", + }, + { + name: "userOrganisationUnit", + fieldName: "userOrganisationUnit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "filterDimension", + fieldName: "filterDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "rowSubTotals", + fieldName: "rowSubTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "hideNaData", + fieldName: "hideNaData", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { + name: "itemOrganisationUnitGroup", + fieldName: "itemOrganisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "displayDensity", + fieldName: "displayDensity", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DisplayDensity", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attributeValueDimension", + fieldName: "attributeValueDimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "programIndicatorDimension", + fieldName: "programIndicatorDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataType", + fieldName: "dataType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.EventDataType", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "columnDimension", + fieldName: "columnDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "completedOnly", + fieldName: "completedOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "colTotals", + fieldName: "colTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "showDimensionLabels", + fieldName: "showDimensionLabels", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "fontSize", + fieldName: "fontSize", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.FontSize", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "topLimit", + fieldName: "topLimit", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "collapseDataDimensions", + fieldName: "collapseDataDimensions", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programStatus", + fieldName: "programStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramStatus", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionItem", + fieldName: "dataDimensionItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DataDimensionItem", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetDimension", + fieldName: "categoryOptionGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userOrganisationUnitGrandChildren", + fieldName: "userOrganisationUnitGrandChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "column", + fieldName: "columns", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "hideSubtitle", + fieldName: "hideSubtitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "outputType", + fieldName: "outputType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.EventOutputType", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitGroupSetDimension", + fieldName: "organisationUnitGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "colSubTotals", + fieldName: "colSubTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElementValueDimension", + fieldName: "dataElementValueDimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "dataElementDimension", + fieldName: "dataElementDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "period", + fieldName: "periods", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.period.Period", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "value", + fieldName: "value", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { + name: "categoryDimension", + fieldName: "categoryDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryDimension", + }, + { + name: "showHierarchy", + fieldName: "showHierarchy", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "rowTotals", + fieldName: "rowTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "timeField", + fieldName: "timeField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "filter", + fieldName: "filters", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "row", + fieldName: "rows", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "digitGroupSeparator", + fieldName: "digitGroupSeparator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DigitGroupSeparator", + }, + { + name: "hideTitle", + fieldName: "hideTitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rowDimension", + fieldName: "rowDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "eventStatus", + fieldName: "eventStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.event.EventStatus", + }, + { + name: "userOrgUnitType", + fieldName: "userOrgUnitType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.UserOrgUnitType", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, + expressions: { + klass: "org.hisp.dhis.expression.Expression", + shareable: false, + metadata: false, + plural: "expressions", + displayName: "Expression", + collectionName: "expressions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "expression", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "expression", + fieldName: "expression", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "missingValueStrategy", + fieldName: "missingValueStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.expression.MissingValueStrategy", + }, + { + name: "slidingWindow", + fieldName: "slidingWindow", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + ], + }, + externalFileResources: { + klass: "org.hisp.dhis.fileresource.ExternalFileResource", + shareable: false, + metadata: false, + relativeApiEndpoint: "/externalFileResources", + plural: "externalFileResources", + displayName: "External File Resource", + collectionName: "externalFileResources", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "externalFileResource", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "expires", + fieldName: "expires", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "accessToken", + fieldName: "accessToken", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "fileResource", + fieldName: "fileResource", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.fileresource.FileResource", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + externalMapLayers: { + klass: "org.hisp.dhis.mapping.ExternalMapLayer", + shareable: true, + metadata: true, + relativeApiEndpoint: "/externalMapLayers", + plural: "externalMapLayers", + displayName: "External Map Layer", + collectionName: "externalMapLayers", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "externalMapLayer", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "imageFormat", + fieldName: "imageFormat", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.ImageFormat", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "legendSetUrl", + fieldName: "legendSetUrl", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "mapService", + fieldName: "mapService", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.MapService", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "layers", + fieldName: "layers", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "mapLayerPosition", + fieldName: "mapLayerPosition", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.MapLayerPosition", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "url", fieldName: "url", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "attribution", + fieldName: "attribution", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + fileResources: { + klass: "org.hisp.dhis.fileresource.FileResource", + shareable: false, + metadata: false, + relativeApiEndpoint: "/fileResources", + plural: "fileResources", + displayName: "File Resource", + collectionName: "fileResources", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "identifiableObject", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "contentMd5", + fieldName: "contentMd5", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "storageStatus", + fieldName: "storageStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.fileresource.FileResourceStorageStatus", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "contentType", + fieldName: "contentType", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "domain", + fieldName: "domain", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.fileresource.FileResourceDomain", + }, + { + name: "hasMultipleStorageFiles", + fieldName: "hasMultipleStorageFiles", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "contentLength", + fieldName: "contentLength", + propertyType: "TEXT", + klass: "java.lang.Long", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + icons: { + klass: "org.hisp.dhis.icon.Icon", + shareable: false, + metadata: false, + relativeApiEndpoint: "/icons", + plural: "icons", + displayName: "Icon", + collectionName: "icons", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "icon", + persisted: false, + embeddedObject: false, + properties: [], + }, + indicators: { + klass: "org.hisp.dhis.indicator.Indicator", + shareable: true, + metadata: true, + relativeApiEndpoint: "/indicators", + plural: "indicators", + displayName: "Indicator", + collectionName: "indicators", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "indicator", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "aggregateExportCategoryOptionCombo", + fieldName: "aggregateExportCategoryOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayNumeratorDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "denominatorDescription", + fieldName: "denominatorDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "indicatorType", + fieldName: "indicatorType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.indicator.IndicatorType", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "numeratorDescription", + fieldName: "numeratorDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "indicatorGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.indicator.IndicatorGroup", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "numerator", + fieldName: "numerator", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "denominator", + fieldName: "denominator", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "annualized", + fieldName: "annualized", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "aggregateExportAttributeOptionCombo", + fieldName: "aggregateExportAttributeOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayDenominatorDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "url", fieldName: "url", propertyType: "URL", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "decimals", + fieldName: "decimals", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, + indicatorGroups: { + klass: "org.hisp.dhis.indicator.IndicatorGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/indicatorGroups", + plural: "indicatorGroups", + displayName: "Indicator Group", + collectionName: "indicatorGroups", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "indicatorGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "indicator", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.indicator.Indicator", + }, + { + name: "indicatorGroupSet", + fieldName: "groupSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.indicator.IndicatorGroupSet", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + indicatorGroupSets: { + klass: "org.hisp.dhis.indicator.IndicatorGroupSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/indicatorGroupSets", + plural: "indicatorGroupSets", + displayName: "Indicator Group Set", + collectionName: "indicatorGroupSets", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "indicatorGroupSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "indicatorGroup", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.indicator.IndicatorGroup", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "compulsory", + fieldName: "compulsory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + indicatorTypes: { + klass: "org.hisp.dhis.indicator.IndicatorType", + shareable: false, + metadata: true, + relativeApiEndpoint: "/indicatorTypes", + plural: "indicatorTypes", + displayName: "Indicator Type", + collectionName: "indicatorTypes", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "indicatorType", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "number", + fieldName: "number", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "factor", + fieldName: "factor", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + interpretations: { + klass: "org.hisp.dhis.interpretation.Interpretation", + shareable: true, + metadata: false, + relativeApiEndpoint: "/interpretations", + plural: "interpretations", + displayName: "Interpretation", + collectionName: "interpretations", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "interpretation", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "visualization", + fieldName: "visualization", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.visualization.Visualization", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "likeByUser", + fieldName: "likedBy", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.User", + }, + { + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AnalyticsFavoriteType", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "reportTable", + fieldName: "reportTable", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.reporttable.ReportTable", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "text", fieldName: "text", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "map", + fieldName: "map", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.mapping.Map", + }, + { + name: "dataSet", + fieldName: "dataSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataset.DataSet", + }, + { + name: "likes", + fieldName: "likes", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "period", + fieldName: "period", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.period.Period", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "comment", + fieldName: "comments", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.interpretation.InterpretationComment", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "eventReport", + fieldName: "eventReport", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.eventreport.EventReport", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "mentions", + fieldName: "mentions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.interpretation.Mention", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "eventChart", + fieldName: "eventChart", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.eventchart.EventChart", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "chart", + fieldName: "chart", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.chart.Chart", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + interpretationComments: { + klass: "org.hisp.dhis.interpretation.InterpretationComment", + shareable: false, + metadata: false, + plural: "interpretationComments", + displayName: "Interpretation Comment", + collectionName: "interpretationComments", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "interpretationComment", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "mentions", + fieldName: "mentions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.interpretation.Mention", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "text", fieldName: "text", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + jobConfigurations: { + klass: "org.hisp.dhis.scheduling.JobConfiguration", + shareable: false, + metadata: true, + relativeApiEndpoint: "/jobConfigurations", + plural: "jobConfigurations", + displayName: "Job Configuration", + collectionName: "jobConfigurations", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "jobConfiguration", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "jobStatus", + fieldName: "jobStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.scheduling.JobStatus", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "enabled", + fieldName: "enabled", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "leaderOnlyJob", + fieldName: "leaderOnlyJob", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "jobType", + fieldName: "jobType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.scheduling.JobType", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "nextExecutionTime", + fieldName: "nextExecutionTime", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "cronExpression", + fieldName: "cronExpression", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "schedulingType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.scheduling.SchedulingType", + }, + { + name: "lastRuntimeExecution", + fieldName: "lastRuntimeExecution", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "delay", + fieldName: "delay", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "lastExecutedStatus", + fieldName: "lastExecutedStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.scheduling.JobStatus", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "jobParameters", + fieldName: "jobParameters", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.scheduling.JobParameters", + }, + { + name: "lastExecuted", + fieldName: "lastExecuted", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "configurable", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "userUid", + fieldName: "userUid", + propertyType: "TEXT", + klass: "java.lang.String", + }, + ], + }, + dataStores: { + klass: "org.hisp.dhis.keyjsonvalue.KeyJsonValue", + shareable: true, + metadata: false, + relativeApiEndpoint: "/dataStore", + plural: "dataStores", + displayName: "Key Json Value", + collectionName: "dataStores", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "identifiableObject", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "value", fieldName: "value", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "key", fieldName: "key", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "namespace", + fieldName: "namespace", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + legends: { + klass: "org.hisp.dhis.legend.Legend", + shareable: false, + metadata: false, + plural: "legends", + displayName: "Legend", + collectionName: "legends", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "legend", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "endValue", + fieldName: "endValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "color", fieldName: "color", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "startValue", + fieldName: "startValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "image", fieldName: "image", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + legendSets: { + klass: "org.hisp.dhis.legend.LegendSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/legendSets", + plural: "legendSets", + displayName: "Legend Set", + collectionName: "legendSets", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "legendSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "symbolizer", + fieldName: "symbolizer", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "legend", + fieldName: "legends", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.legend.Legend", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + maps: { + klass: "org.hisp.dhis.mapping.Map", + shareable: true, + metadata: true, + relativeApiEndpoint: "/maps", + plural: "maps", + displayName: "Map", + collectionName: "maps", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "map", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "basemap", + fieldName: "basemap", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "latitude", + fieldName: "latitude", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "mapView", + fieldName: "mapViews", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.mapping.MapView", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { + name: "longitude", + fieldName: "longitude", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "zoom", + fieldName: "zoom", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + mapViews: { + klass: "org.hisp.dhis.mapping.MapView", + shareable: false, + metadata: true, + relativeApiEndpoint: "/mapViews", + plural: "mapViews", + displayName: "Map View", + collectionName: "mapViews", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "mapView", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "dataElementGroupSetDimension", + fieldName: "dataElementGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + }, + { + name: "orgUnitField", + fieldName: "orgUnitField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnitChildren", + fieldName: "userOrganisationUnitChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attributeDimension", + fieldName: "attributeDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "eventCoordinateField", + fieldName: "eventCoordinateField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnit", + fieldName: "userOrganisationUnit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "organisationUnitSelectionMode", + fieldName: "organisationUnitSelectionMode", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.OrganisationUnitSelectionMode", + }, + { + name: "filterDimension", + fieldName: "filterDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "method", + fieldName: "method", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "renderingStrategy", + fieldName: "renderingStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.MapViewRenderingStrategy", + }, + { + name: "labels", + fieldName: "labels", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "topLimit", + fieldName: "topLimit", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "noDataColor", + fieldName: "noDataColor", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userOrganisationUnitGrandChildren", + fieldName: "userOrganisationUnitGrandChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "column", + fieldName: "columns", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "styleDataItem", + fieldName: "styleDataItem", + propertyType: "COMPLEX", + klass: "java.lang.Object", + }, + { + name: "labelFontColor", + fieldName: "labelFontColor", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "layer", fieldName: "layer", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "dataElementDimension", + fieldName: "dataElementDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "period", + fieldName: "periods", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.period.Period", + }, + { + name: "categoryDimension", + fieldName: "categoryDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryDimension", + }, + { + name: "labelFontStyle", + fieldName: "labelFontStyle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "radiusHigh", + fieldName: "radiusHigh", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "hideTitle", + fieldName: "hideTitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "eventClustering", + fieldName: "eventClustering", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "colorLow", + fieldName: "colorLow", + propertyType: "COLOR", + klass: "java.lang.String", + }, + { + name: "eventStatus", + fieldName: "eventStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.EventStatus", + }, + { + name: "opacity", + fieldName: "opacity", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "config", + fieldName: "config", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "colorScale", + fieldName: "colorScale", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "parentLevel", + fieldName: "parentLevel", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "parentGraphMap", + fieldName: "parentGraphMap", + propertyType: "COMPLEX", + klass: "java.util.Map", + }, + { + name: "itemOrganisationUnitGroup", + fieldName: "itemOrganisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programIndicatorDimension", + fieldName: "programIndicatorDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + }, + { + name: "labelFontSize", + fieldName: "labelFontSize", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "columnDimension", + fieldName: "columnDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "colorHigh", + fieldName: "colorHigh", + propertyType: "COLOR", + klass: "java.lang.String", + }, + { + name: "completedOnly", + fieldName: "completedOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "eventPointRadius", + fieldName: "eventPointRadius", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "areaRadius", + fieldName: "areaRadius", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "programStatus", + fieldName: "programStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramStatus", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dataDimensionItem", + fieldName: "dataDimensionItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DataDimensionItem", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetDimension", + fieldName: "categoryOptionGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + }, + { + name: "hidden", + fieldName: "hidden", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "thematicMapType", + fieldName: "thematicMapType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.ThematicMapType", + }, + { + name: "classes", + fieldName: "classes", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "hideSubtitle", + fieldName: "hideSubtitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitGroupSetDimension", + fieldName: "organisationUnitGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "organisationUnitGroupSet", + fieldName: "organisationUnitGroupSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSet", + }, + { + name: "followUp", + fieldName: "followUp", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "eventPointColor", + fieldName: "eventPointColor", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "labelFontWeight", + fieldName: "labelFontWeight", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "timeField", + fieldName: "timeField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "filter", + fieldName: "filters", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "parentGraph", + fieldName: "parentGraph", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "row", + fieldName: "rows", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "radiusLow", + fieldName: "radiusLow", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "digitGroupSeparator", + fieldName: "digitGroupSeparator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DigitGroupSeparator", + }, + { + name: "trackedEntityType", + fieldName: "trackedEntityType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "userOrgUnitType", + fieldName: "userOrgUnitType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.UserOrgUnitType", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, + messageConversations: { + klass: "org.hisp.dhis.message.MessageConversation", + shareable: false, + metadata: false, + relativeApiEndpoint: "/messageConversations", + plural: "messageConversations", + displayName: "Message Conversation", + collectionName: "messageConversations", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "messageConversation", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "messageCount", + fieldName: "messageCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "subject", + fieldName: "subject", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "followUp", + fieldName: "followUp", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "messageType", + fieldName: "messageType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.message.MessageType", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userMessage", + fieldName: "userMessages", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.message.UserMessage", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "userSurname", + fieldName: "userSurname", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "lastSenderSurname", + fieldName: "lastSenderSurname", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "read", + fieldName: "read", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "lastSender", + fieldName: "lastSender", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "lastMessage", + fieldName: "lastMessage", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "priority", + fieldName: "priority", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.message.MessageConversationPriority", + }, + { + name: "lastSenderFirstname", + fieldName: "lastSenderFirstname", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "message", + fieldName: "messages", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.message.Message", + }, + { + name: "userFirstname", + fieldName: "userFirstname", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "assignee", + fieldName: "assignee", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "status", + fieldName: "status", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.message.MessageConversationStatus", + }, + ], + }, + metadataVersions: { + klass: "org.hisp.dhis.metadata.version.MetadataVersion", + shareable: false, + metadata: false, + relativeApiEndpoint: "/metadata/version", + plural: "metadataVersions", + displayName: "Metadata Version", + collectionName: "metadataVersions", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "metadataVersion", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.metadata.version.VersionType", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "importDate", + fieldName: "importDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "hashCode", + fieldName: "hashCode", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + minMaxDataElements: { + klass: "org.hisp.dhis.minmax.MinMaxDataElement", + shareable: false, + metadata: false, + relativeApiEndpoint: "/minMaxDataElements", + plural: "minMaxDataElements", + displayName: "Min Max Data Element", + collectionName: "minMaxDataElements", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "minMaxDataElement", + persisted: true, + embeddedObject: false, + properties: [ + { name: "min", fieldName: "min", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "generated", + fieldName: "generated", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "max", fieldName: "max", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "source", + fieldName: "source", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "optionCombo", + fieldName: "optionCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + ], + }, + oAuth2Clients: { + klass: "org.hisp.dhis.security.oauth2.OAuth2Client", + shareable: false, + metadata: true, + relativeApiEndpoint: "/oAuth2Clients", + plural: "oAuth2Clients", + displayName: "O Auth2 Client", + collectionName: "oAuth2Clients", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "oAuth2Client", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "secret", + fieldName: "secret", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "redirectUri", + fieldName: "redirectUris", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "grantType", + fieldName: "grantTypes", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "cid", + fieldName: "cid", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + ], + }, + options: { + klass: "org.hisp.dhis.option.Option", + shareable: false, + metadata: true, + relativeApiEndpoint: "/options", + plural: "options", + displayName: "Option", + collectionName: "options", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "option", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { name: "code", fieldName: "code", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + optionGroups: { + klass: "org.hisp.dhis.option.OptionGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/optionGroups", + plural: "optionGroups", + displayName: "Option Group", + collectionName: "optionGroups", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "optionGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "option", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.option.Option", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + optionGroupSets: { + klass: "org.hisp.dhis.option.OptionGroupSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/optionGroupSets", + plural: "optionGroupSets", + displayName: "Option Group Set", + collectionName: "optionGroupSets", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "optionGroupSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dimensionType", + fieldName: "dimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "optionGroup", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.option.OptionGroup", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "dimension", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "allItems", + fieldName: "allItems", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dimensionalKeywords", + fieldName: "dimensionalKeywords", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.DimensionalKeywords", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "dataDimension", + fieldName: "dataDimension", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "item", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + optionSets: { + klass: "org.hisp.dhis.option.OptionSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/optionSets", + plural: "optionSets", + displayName: "Option Set", + collectionName: "optionSets", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "optionSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + fieldName: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { + name: "option", + fieldName: "options", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.option.Option", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "version", + fieldName: "version", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + organisationUnits: { + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + shareable: false, + metadata: true, + relativeApiEndpoint: "/organisationUnits", + plural: "organisationUnits", + displayName: "Organisation Unit", + collectionName: "organisationUnits", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "organisationUnit", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "parent", + fieldName: "parent", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "type", fieldName: "type", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "path", fieldName: "path", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "child", + fieldName: "children", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "organisationUnitGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "organisationUnit", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "level", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "userItem", + fieldName: "users", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.User", + }, + { + name: "phoneNumber", + fieldName: "phoneNumber", + propertyType: "PHONENUMBER", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "program", + fieldName: "programs", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.Program", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "contactPerson", + fieldName: "contactPerson", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "openingDate", + fieldName: "openingDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "email", fieldName: "email", propertyType: "EMAIL", klass: "java.lang.String" }, + { + name: "address", + fieldName: "address", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "memberCount", + fieldName: "memberCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "leaf", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "url", fieldName: "url", propertyType: "URL", klass: "java.lang.String" }, + { + name: "closedDate", + fieldName: "closedDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "geometry", + fieldName: "geometry", + propertyType: "COMPLEX", + klass: "org.locationtech.jts.geom.Geometry", + }, + { + name: "comment", + fieldName: "comment", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, + organisationUnitGroups: { + klass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/organisationUnitGroups", + plural: "organisationUnitGroups", + displayName: "Organisation Unit Group", + collectionName: "organisationUnitGroups", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "organisationUnitGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "symbol", + fieldName: "symbol", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "color", fieldName: "color", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "featureType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.organisationunit.FeatureType", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "organisationUnit", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "groupSet", + fieldName: "groupSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSet", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "geometry", + fieldName: "geometry", + propertyType: "COMPLEX", + klass: "org.locationtech.jts.geom.Geometry", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + organisationUnitGroupSets: { + klass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/organisationUnitGroupSets", + plural: "organisationUnitGroupSets", + displayName: "Organisation Unit Group Set", + collectionName: "organisationUnitGroupSets", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "organisationUnitGroupSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dimensionType", + fieldName: "dimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "organisationUnitGroup", + fieldName: "organisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { name: "dimension", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "allItems", + fieldName: "allItems", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dimensionalKeywords", + fieldName: "dimensionalKeywords", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.DimensionalKeywords", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "compulsory", + fieldName: "compulsory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "includeSubhierarchyInAnalytics", + fieldName: "includeSubhierarchyInAnalytics", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "dataDimension", + fieldName: "dataDimension", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "item", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + organisationUnitGroupSetDimensions: { + klass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + shareable: false, + metadata: false, + plural: "organisationUnitGroupSetDimensions", + displayName: "Organisation Unit Group Set Dimension", + collectionName: "organisationUnitGroupSetDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "organisationUnitGroupSetDimension", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "organisationUnitGroupSet", + fieldName: "dimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSet", + }, + { + name: "organisationUnitGroup", + fieldName: "items", + propertyType: "REFERENCE", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + ], + }, + organisationUnitLevels: { + klass: "org.hisp.dhis.organisationunit.OrganisationUnitLevel", + shareable: false, + metadata: true, + relativeApiEndpoint: "/organisationUnitLevels", + plural: "organisationUnitLevels", + displayName: "Organisation Unit Level", + collectionName: "organisationUnitLevels", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "organisationUnitLevel", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "offlineLevels", + fieldName: "offlineLevels", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "level", + fieldName: "level", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + predictors: { + klass: "org.hisp.dhis.predictor.Predictor", + shareable: false, + metadata: true, + relativeApiEndpoint: "/predictors", + plural: "predictors", + displayName: "Predictor", + collectionName: "predictors", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "Predictor", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "outputCombo", + fieldName: "outputCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "generator", + fieldName: "generator", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.expression.Expression", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitLevel", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "output", + fieldName: "output", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "sampleSkipTest", + fieldName: "sampleSkipTest", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.expression.Expression", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "sequentialSampleCount", + fieldName: "sequentialSampleCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "annualSampleCount", + fieldName: "annualSampleCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sequentialSkipCount", + fieldName: "sequentialSkipCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "predictorGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.predictor.PredictorGroup", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "periodType", + fieldName: "periodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + predictorGroups: { + klass: "org.hisp.dhis.predictor.PredictorGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/predictorGroups", + plural: "predictorGroups", + displayName: "Predictor Group", + collectionName: "predictorGroups", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "predictorGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "predictor", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.predictor.Predictor", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programs: { + klass: "org.hisp.dhis.program.Program", + shareable: true, + metadata: true, + relativeApiEndpoint: "/programs", + plural: "programs", + displayName: "Program", + collectionName: "programs", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "program", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataEntryForm", + fieldName: "dataEntryForm", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataentryform.DataEntryForm", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "ignoreOverdueEvents", + fieldName: "ignoreOverdueEvents", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "skipOffline", + fieldName: "skipOffline", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programIndicator", + fieldName: "programIndicators", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramIndicator", + }, + { name: "displayIncidentDateLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "enrollmentDateLabel", + fieldName: "enrollmentDateLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "onlyEnrollOnce", + fieldName: "onlyEnrollOnce", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "version", + fieldName: "version", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "displayEnrollmentDateLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "maxTeiCountToReturn", + fieldName: "maxTeiCountToReturn", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "selectIncidentDatesInFuture", + fieldName: "selectIncidentDatesInFuture", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "incidentDateLabel", + fieldName: "incidentDateLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userRole", + fieldName: "userRoles", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAuthorityGroup", + }, + { + name: "expiryPeriodType", + fieldName: "expiryPeriodType", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "selectEnrollmentDatesInFuture", + fieldName: "selectEnrollmentDatesInFuture", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "registration", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "useFirstStageDuringRegistration", + fieldName: "useFirstStageDuringRegistration", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "programRuleVariable", + fieldName: "programRuleVariables", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.programrule.ProgramRuleVariable", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "programTrackedEntityAttribute", + fieldName: "programAttributes", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.program.ProgramTrackedEntityAttribute", + }, + { + name: "completeEventsExpiryDays", + fieldName: "completeEventsExpiryDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "relatedProgram", + fieldName: "relatedProgram", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "withoutRegistration", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "notificationTemplate", + fieldName: "notificationTemplates", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.notification.ProgramNotificationTemplate", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "featureType", + fieldName: "featureType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.organisationunit.FeatureType", + }, + { + name: "minAttributesRequiredToSearch", + fieldName: "minAttributesRequiredToSearch", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "displayFrontPageList", + fieldName: "displayFrontPageList", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "programType", + fieldName: "programType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramType", + }, + { + name: "accessLevel", + fieldName: "accessLevel", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.AccessLevel", + }, + { + name: "programSection", + fieldName: "programSections", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramSection", + }, + { + name: "programStage", + fieldName: "programStages", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "trackedEntityType", + fieldName: "trackedEntityType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityType", + }, + { + name: "displayIncidentDate", + fieldName: "displayIncidentDate", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "expiryDays", + fieldName: "expiryDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, + programDataElements: { + klass: "org.hisp.dhis.program.ProgramDataElementDimensionItem", + shareable: false, + metadata: false, + relativeApiEndpoint: "/programDataElements", + plural: "programDataElements", + displayName: "Program Data Element Dimension Item", + collectionName: "programDataElements", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "programDataElement", + persisted: false, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + programIndicators: { + klass: "org.hisp.dhis.program.ProgramIndicator", + shareable: true, + metadata: true, + relativeApiEndpoint: "/programIndicators", + plural: "programIndicators", + displayName: "Program Indicator", + collectionName: "programIndicators", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programIndicator", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "displayInForm", + fieldName: "displayInForm", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "aggregateExportCategoryOptionCombo", + fieldName: "aggregateExportCategoryOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "programIndicatorGroups", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramIndicatorGroup", + }, + { + name: "analyticsPeriodBoundary", + fieldName: "analyticsPeriodBoundaries", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.AnalyticsPeriodBoundary", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "expression", + fieldName: "expression", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "decimals", + fieldName: "decimals", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "analyticsType", + fieldName: "analyticsType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.AnalyticsType", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "aggregateExportAttributeOptionCombo", + fieldName: "aggregateExportAttributeOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + programIndicatorGroups: { + klass: "org.hisp.dhis.program.ProgramIndicatorGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/programIndicatorGroups", + plural: "programIndicatorGroups", + displayName: "Program Indicator Group", + collectionName: "programIndicatorGroups", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programIndicatorGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programIndicator", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramIndicator", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programInstances: { + klass: "org.hisp.dhis.program.ProgramInstance", + shareable: false, + metadata: false, + plural: "programInstances", + displayName: "Program Instance", + collectionName: "programInstances", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "programInstance", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "enrollmentDate", + fieldName: "enrollmentDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdAtClient", + fieldName: "createdAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "messageConversation", + fieldName: "messageConversations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.message.MessageConversation", + }, + { + name: "trackedEntityComment", + fieldName: "comments", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentitycomment.TrackedEntityComment", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "relationshipItem", + fieldName: "relationshipItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.relationship.RelationshipItem", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "programStageInstance", + fieldName: "programStageInstances", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramStageInstance", + }, + { + name: "trackedEntityInstance", + fieldName: "entityInstance", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityInstance", + }, + { + name: "followup", + fieldName: "followup", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "deleted", + fieldName: "deleted", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "geometry", + fieldName: "geometry", + propertyType: "COMPLEX", + klass: "org.locationtech.jts.geom.Geometry", + }, + { + name: "incidentDate", + fieldName: "incidentDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "completedBy", + fieldName: "completedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "status", + fieldName: "status", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramStatus", + }, + { + name: "lastUpdatedAtClient", + fieldName: "lastUpdatedAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + ], + }, + programNotificationTemplates: { + klass: "org.hisp.dhis.program.notification.ProgramNotificationTemplate", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programNotificationTemplates", + plural: "programNotificationTemplates", + displayName: "Program Notification Template", + collectionName: "programNotificationTemplates", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programNotificationTemplate", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "notificationTrigger", + fieldName: "notificationTrigger", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.notification.NotificationTrigger", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "relativeScheduledDays", + fieldName: "relativeScheduledDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "subjectTemplate", + fieldName: "subjectTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "deliveryChannels", + fieldName: "deliveryChannels", + propertyType: "COLLECTION", + itemPropertyType: "CONSTANT", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.common.DeliveryChannel", + }, + { + name: "recipientDataElement", + fieldName: "recipientDataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { name: "displaySubjectTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "notifyUsersInHierarchyOnly", + fieldName: "notifyUsersInHierarchyOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "notificationRecipient", + fieldName: "notificationRecipient", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.notification.ProgramNotificationRecipient", + }, + { + name: "recipientProgramAttribute", + fieldName: "recipientProgramAttribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "notifyParentOrganisationUnitOnly", + fieldName: "notifyParentOrganisationUnitOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayMessageTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "recipientUserGroup", + fieldName: "recipientUserGroup", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.UserGroup", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "messageTemplate", + fieldName: "messageTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + ], + }, + programRules: { + klass: "org.hisp.dhis.programrule.ProgramRule", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programRules", + plural: "programRules", + displayName: "Program Rule", + collectionName: "programRules", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programRule", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "priority", + fieldName: "priority", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "condition", + fieldName: "condition", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programRuleAction", + fieldName: "programRuleActions", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.programrule.ProgramRuleAction", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programRuleActions: { + klass: "org.hisp.dhis.programrule.ProgramRuleAction", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programRuleActions", + plural: "programRuleActions", + displayName: "Program Rule Action", + collectionName: "programRuleActions", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programRuleAction", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "evaluationEnvironment", + fieldName: "programRuleActionEvaluationEnvironments", + propertyType: "COLLECTION", + itemPropertyType: "CONSTANT", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.programrule.ProgramRuleActionEvaluationEnvironment", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "data", fieldName: "data", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "optionGroup", + fieldName: "optionGroup", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionGroup", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "templateUid", + fieldName: "templateUid", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "content", + fieldName: "content", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "trackedEntityAttribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayContent", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "programIndicator", + fieldName: "programIndicator", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramIndicator", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "programRule", + fieldName: "programRule", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.programrule.ProgramRule", + }, + { + name: "programStageSection", + fieldName: "programStageSection", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStageSection", + }, + { + name: "programRuleActionType", + fieldName: "programRuleActionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.programrule.ProgramRuleActionType", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "evaluationTime", + fieldName: "programRuleActionEvaluationTime", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.programrule.ProgramRuleActionEvaluationTime", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "location", + fieldName: "location", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "option", + fieldName: "option", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.Option", + }, + ], + }, + programRuleVariables: { + klass: "org.hisp.dhis.programrule.ProgramRuleVariable", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programRuleVariables", + plural: "programRuleVariables", + displayName: "Program Rule Variable", + collectionName: "programRuleVariables", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programRuleVariable", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "programRuleVariableSourceType", + fieldName: "sourceType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.programrule.ProgramRuleVariableSourceType", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "trackedEntityAttribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "useCodeForOptionSet", + fieldName: "useCodeForOptionSet", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programSections: { + klass: "org.hisp.dhis.program.ProgramSection", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programSections", + plural: "programSections", + displayName: "Program Section", + collectionName: "programSections", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programSection", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "renderType", + fieldName: "renderType", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.render.DeviceRenderTypeMap", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "trackedEntityAttributes", + fieldName: "trackedEntityAttributes", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programStages: { + klass: "org.hisp.dhis.program.ProgramStage", + shareable: true, + metadata: true, + relativeApiEndpoint: "/programStages", + plural: "programStages", + displayName: "Program Stage", + collectionName: "programStages", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "programStage", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataEntryForm", + fieldName: "dataEntryForm", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataentryform.DataEntryForm", + }, + { + name: "allowGenerateNextVisit", + fieldName: "allowGenerateNextVisit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "reportDateToUse", + fieldName: "reportDateToUse", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "programStageDataElement", + fieldName: "programStageDataElements", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramStageDataElement", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "formType", propertyType: "CONSTANT", klass: "org.hisp.dhis.dataset.FormType" }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "generatedByEnrollmentDate", + fieldName: "generatedByEnrollmentDate", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideDueDate", + fieldName: "hideDueDate", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "enableUserAssignment", + fieldName: "enableUserAssignment", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "minDaysFromStart", + fieldName: "minDaysFromStart", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "standardInterval", + fieldName: "standardInterval", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "dueDateLabel", + fieldName: "dueDateLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "executionDateLabel", + fieldName: "executionDateLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "preGenerateUID", + fieldName: "preGenerateUID", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayExecutionDateLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "notificationTemplate", + fieldName: "notificationTemplates", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.notification.ProgramNotificationTemplate", + }, + { + name: "openAfterEnrollment", + fieldName: "openAfterEnrollment", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "repeatable", + fieldName: "repeatable", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "featureType", + fieldName: "featureType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.organisationunit.FeatureType", + }, + { + name: "remindCompleted", + fieldName: "remindCompleted", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayGenerateEventBox", + fieldName: "displayGenerateEventBox", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "nextScheduleDate", + fieldName: "nextScheduleDate", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "validationStrategy", + fieldName: "validationStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ValidationStrategy", + }, + { + name: "autoGenerateEvent", + fieldName: "autoGenerateEvent", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "periodType", + fieldName: "periodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "displayDueDateLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "blockEntryForm", + fieldName: "blockEntryForm", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "programStageSection", + fieldName: "programStageSections", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramStageSection", + }, + ], + }, + programStageDataElements: { + klass: "org.hisp.dhis.program.ProgramStageDataElement", + shareable: false, + metadata: false, + plural: "programStageDataElements", + displayName: "Program Stage Data Element", + collectionName: "programStageDataElements", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "programStageDataElement", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "displayInReports", + fieldName: "displayInReports", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "skipSynchronization", + fieldName: "skipSynchronization", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "renderOptionsAsRadio", + fieldName: "renderOptionsAsRadio", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "allowFutureDate", + fieldName: "allowFutureDate", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "renderType", + fieldName: "renderType", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.render.DeviceRenderTypeMap", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "compulsory", + fieldName: "compulsory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "allowProvidedElsewhere", + fieldName: "allowProvidedElsewhere", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programStageInstances: { + klass: "org.hisp.dhis.program.ProgramStageInstance", + shareable: false, + metadata: false, + plural: "programStageInstances", + displayName: "Program Stage Instance", + collectionName: "programStageInstances", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "softDeletableObject", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "dueDate", + fieldName: "dueDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdAtClient", + fieldName: "createdAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "messageConversations", + fieldName: "messageConversations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.message.MessageConversation", + }, + { + name: "lastUpdatedByUserInfo", + fieldName: "lastUpdatedByUserInfo", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.program.UserInfoSnapshot", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "eventDataValues", + fieldName: "eventDataValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.eventdatavalue.EventDataValue", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "relationshipItem", + fieldName: "relationshipItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.relationship.RelationshipItem", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "createdByUserInfo", + fieldName: "createdByUserInfo", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.program.UserInfoSnapshot", + }, + { + name: "assignedUser", + fieldName: "assignedUser", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "comments", + fieldName: "comments", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentitycomment.TrackedEntityComment", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "creatableInSearchScope", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { name: "completed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "completedDate", + fieldName: "completedDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "programInstance", + fieldName: "programInstance", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramInstance", + }, + { + name: "deleted", + fieldName: "deleted", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "attributeOptionCombo", + fieldName: "attributeOptionCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "geometry", + fieldName: "geometry", + propertyType: "COMPLEX", + klass: "org.locationtech.jts.geom.Geometry", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "completedBy", + fieldName: "completedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "status", + fieldName: "status", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.event.EventStatus", + }, + { + name: "lastUpdatedAtClient", + fieldName: "lastUpdatedAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "eventDate", + fieldName: "executionDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + ], + }, + eventFilters: { + klass: "org.hisp.dhis.programstagefilter.ProgramStageInstanceFilter", + shareable: true, + metadata: true, + relativeApiEndpoint: "/eventFilters", + plural: "eventFilters", + displayName: "Program Stage Instance Filter", + collectionName: "eventFilters", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programStageInstanceFilter", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "eventQueryCriteria", + fieldName: "eventQueryCriteria", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.programstagefilter.EventQueryCriteria", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programStageSections: { + klass: "org.hisp.dhis.program.ProgramStageSection", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programStageSections", + plural: "programStageSections", + displayName: "Program Stage Section", + collectionName: "programStageSections", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programStageSection", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programIndicator", + fieldName: "programIndicators", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.program.ProgramIndicator", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "renderType", + fieldName: "renderType", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.render.DeviceRenderTypeMap", + }, + { + name: "dataElement", + fieldName: "dataElements", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElement", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programTrackedEntityAttributes: { + klass: "org.hisp.dhis.program.ProgramTrackedEntityAttribute", + shareable: false, + metadata: false, + plural: "programTrackedEntityAttributes", + displayName: "Program Tracked Entity Attribute", + collectionName: "programTrackedEntityAttributes", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "programTrackedEntityAttribute", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "programTrackedEntityAttributeGroups", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramTrackedEntityAttributeGroup", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "mandatory", + fieldName: "mandatory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "trackedEntityAttribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "renderOptionsAsRadio", + fieldName: "renderOptionsAsRadio", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "allowFutureDate", + fieldName: "allowFutureDate", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "renderType", + fieldName: "renderType", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.render.DeviceRenderTypeMap", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "searchable", + fieldName: "searchable", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayInList", + fieldName: "displayInList", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programTrackedEntityAttributeDimensionItems: { + klass: "org.hisp.dhis.program.ProgramTrackedEntityAttributeDimensionItem", + shareable: false, + metadata: false, + plural: "programTrackedEntityAttributeDimensionItems", + displayName: "Program Tracked Entity Attribute Dimension Item", + collectionName: "programTrackedEntityAttributeDimensionItems", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "programAttributeDimension", + persisted: false, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "attribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + programTrackedEntityAttributeGroups: { + klass: "org.hisp.dhis.program.ProgramTrackedEntityAttributeGroup", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programTrackedEntityAttributeGroups", + plural: "programTrackedEntityAttributeGroups", + displayName: "Program Tracked Entity Attribute Group", + collectionName: "programTrackedEntityAttributeGroups", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programTrackedEntityAttributeGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "uniqunessType", + fieldName: "uniqunessType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.UniqunessType", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attribute", + fieldName: "attributes", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramTrackedEntityAttribute", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + pushAnalysis: { + klass: "org.hisp.dhis.pushanalysis.PushAnalysis", + shareable: false, + metadata: true, + relativeApiEndpoint: "/pushAnalysis", + plural: "pushAnalysis", + displayName: "Push Analysis", + collectionName: "pushAnalysis", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "pushanalysis", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "recipientUserGroups", + fieldName: "recipientUserGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroup", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "dashboard", + fieldName: "dashboard", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dashboard.Dashboard", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "message", + fieldName: "message", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + relationships: { + klass: "org.hisp.dhis.relationship.Relationship", + shareable: false, + metadata: false, + relativeApiEndpoint: "/relationships", + plural: "relationships", + displayName: "Relationship", + collectionName: "relationships", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "relationship", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "from", + fieldName: "from", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.relationship.RelationshipItem", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "relationshipType", + fieldName: "relationshipType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.relationship.RelationshipType", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "to", + fieldName: "to", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.relationship.RelationshipItem", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + relationshipTypes: { + klass: "org.hisp.dhis.relationship.RelationshipType", + shareable: true, + metadata: true, + relativeApiEndpoint: "/relationshipTypes", + plural: "relationshipTypes", + displayName: "Relationship Type", + collectionName: "relationshipTypes", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "relationshipType", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "bidirectional", + fieldName: "bidirectional", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "fromToName", + fieldName: "fromToName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayFromToName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "toConstraint", + fieldName: "toConstraint", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.relationship.RelationshipConstraint", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "toFromName", + fieldName: "toFromName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayToFromName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "fromConstraint", + fieldName: "fromConstraint", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.relationship.RelationshipConstraint", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + reports: { + klass: "org.hisp.dhis.report.Report", + shareable: true, + metadata: true, + relativeApiEndpoint: "/reports", + plural: "reports", + displayName: "Report", + collectionName: "reports", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "report", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "designContent", + fieldName: "designContent", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "visualization", + fieldName: "visualization", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.visualization.Visualization", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.report.ReportType", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "reportParams", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.visualization.ReportingParams", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "cacheStrategy", + fieldName: "cacheStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.cache.CacheStrategy", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + reportTables: { + klass: "org.hisp.dhis.reporttable.ReportTable", + shareable: false, + metadata: true, + relativeApiEndpoint: "/reportTables", + plural: "reportTables", + displayName: "Report Table", + collectionName: "reportTables", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "reportTable", + persisted: false, + embeddedObject: false, + properties: [ + { + name: "dataElementGroupSetDimension", + fieldName: "dataElementGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + }, + { + name: "orgUnitField", + fieldName: "orgUnitField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "numberType", + fieldName: "numberType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.NumberType", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnitChildren", + fieldName: "userOrganisationUnitChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendDisplayStyle", + fieldName: "legendDisplayStyle", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.legend.LegendDisplayStyle", + }, + { + name: "hideEmptyColumns", + fieldName: "hideEmptyColumns", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "measureCriteria", + fieldName: "measureCriteria", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideEmptyRows", + fieldName: "hideEmptyRows", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeDimension", + fieldName: "attributeDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "reportParams", + fieldName: "reportParams", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.reporttable.ReportParams", + }, + { + name: "parentGraphMap", + fieldName: "parentGraphMap", + propertyType: "COMPLEX", + klass: "java.util.Map", + }, + { + name: "userOrganisationUnit", + fieldName: "userOrganisationUnit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "filterDimension", + fieldName: "filterDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "rowSubTotals", + fieldName: "rowSubTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { + name: "itemOrganisationUnitGroup", + fieldName: "itemOrganisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "displayDensity", + fieldName: "displayDensity", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DisplayDensity", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "programIndicatorDimension", + fieldName: "programIndicatorDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "columnDimension", + fieldName: "columnDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "completedOnly", + fieldName: "completedOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "colTotals", + fieldName: "colTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "showDimensionLabels", + fieldName: "showDimensionLabels", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "fontSize", + fieldName: "fontSize", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.FontSize", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "topLimit", + fieldName: "topLimit", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionItem", + fieldName: "dataDimensionItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DataDimensionItem", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetDimension", + fieldName: "categoryOptionGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userOrganisationUnitGrandChildren", + fieldName: "userOrganisationUnitGrandChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "column", + fieldName: "columns", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "hideSubtitle", + fieldName: "hideSubtitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitGroupSetDimension", + fieldName: "organisationUnitGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "legendDisplayStrategy", + fieldName: "legendDisplayStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.legend.LegendDisplayStrategy", + }, + { + name: "colSubTotals", + fieldName: "colSubTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "dataElementDimension", + fieldName: "dataElementDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "period", + fieldName: "periods", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.period.Period", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "categoryDimension", + fieldName: "categoryDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryDimension", + }, + { + name: "showHierarchy", + fieldName: "showHierarchy", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rowTotals", + fieldName: "rowTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "timeField", + fieldName: "timeField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "filter", + fieldName: "filters", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "cumulative", + fieldName: "cumulative", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "row", + fieldName: "rows", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "digitGroupSeparator", + fieldName: "digitGroupSeparator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DigitGroupSeparator", + }, + { + name: "hideTitle", + fieldName: "hideTitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rowDimension", + fieldName: "rowDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "regression", + fieldName: "regression", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "userOrgUnitType", + fieldName: "userOrgUnitType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.UserOrgUnitType", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "skipRounding", + fieldName: "skipRounding", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + ], + }, + reportingRates: { + klass: "org.hisp.dhis.common.ReportingRate", + shareable: false, + metadata: false, + plural: "reportingRates", + displayName: "Reporting Rate", + collectionName: "reportingRates", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "reportingRate", + persisted: false, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataset.DataSet", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "metric", + fieldName: "metric", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ReportingRateMetric", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + smsCommands: { + klass: "org.hisp.dhis.sms.command.SMSCommand", + shareable: false, + metadata: true, + relativeApiEndpoint: "/smsCommands", + plural: "smsCommands", + displayName: "S M S Command", + collectionName: "smsCommands", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "smscommand", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "moreThanOneOrgUnitMessage", + fieldName: "moreThanOneOrgUnitMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "smsCode", + fieldName: "codes", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.sms.command.code.SMSCode", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "specialCharacter", + fieldName: "specialCharacters", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.sms.command.SMSSpecialCharacter", + }, + { + name: "currentPeriodUsedForReporting", + fieldName: "currentPeriodUsedForReporting", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "noUserMessage", + fieldName: "noUserMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "receivedMessage", + fieldName: "receivedMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "defaultMessage", + fieldName: "defaultMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "userGroup", + fieldName: "userGroup", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "completenessMethod", + fieldName: "completenessMethod", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.sms.command.CompletenessMethod", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "wrongFormatMessage", + fieldName: "wrongFormatMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "separator", + fieldName: "separator", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "successMessage", + fieldName: "successMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "codeValueSeparator", + fieldName: "codeValueSeparator", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "parserType", + fieldName: "parserType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.sms.parse.ParserType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "dataset", + fieldName: "dataset", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataset.DataSet", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + sections: { + klass: "org.hisp.dhis.dataset.Section", + shareable: false, + metadata: true, + relativeApiEndpoint: "/sections", + plural: "sections", + displayName: "Section", + collectionName: "sections", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "section", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "greyedField", + fieldName: "greyedFields", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataelement.DataElementOperand", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "categoryCombos", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryCombo", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataset.DataSet", + }, + { + name: "dataElement", + fieldName: "dataElements", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "showColumnTotals", + fieldName: "showColumnTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "indicator", + fieldName: "indicators", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.indicator.Indicator", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "showRowTotals", + fieldName: "showRowTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + sqlViews: { + klass: "org.hisp.dhis.sqlview.SqlView", + shareable: true, + metadata: true, + relativeApiEndpoint: "/sqlViews", + plural: "sqlViews", + displayName: "Sql View", + collectionName: "sqlViews", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: true, + name: "sqlView", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.sqlview.SqlViewType", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "sqlQuery", + fieldName: "sqlQuery", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "cacheStrategy", + fieldName: "cacheStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.cache.CacheStrategy", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + trackedEntityAttributes: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + shareable: true, + metadata: true, + relativeApiEndpoint: "/trackedEntityAttributes", + plural: "trackedEntityAttributes", + displayName: "Tracked Entity Attribute", + collectionName: "trackedEntityAttributes", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "trackedEntityAttribute", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "generated", + fieldName: "generated", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + fieldName: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "confidential", + fieldName: "confidential", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "unique", + fieldName: "unique", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayInListNoProgram", + fieldName: "displayInListNoProgram", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "pattern", + fieldName: "pattern", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "skipSynchronization", + fieldName: "skipSynchronization", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrderInListNoProgram", + fieldName: "sortOrderInListNoProgram", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "displayOnVisitSchedule", + fieldName: "displayOnVisitSchedule", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sortOrderInVisitSchedule", + fieldName: "sortOrderInVisitSchedule", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "orgunitScope", + fieldName: "orgunitScope", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "fieldMask", + fieldName: "fieldMask", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "expression", + fieldName: "expression", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "inherit", + fieldName: "inherit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "optionSetValue", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + trackedEntityAttributeValues: { + klass: "org.hisp.dhis.trackedentityattributevalue.TrackedEntityAttributeValue", + shareable: false, + metadata: false, + plural: "trackedEntityAttributeValues", + displayName: "Tracked Entity Attribute Value", + collectionName: "trackedEntityAttributeValues", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "trackedEntityAttributeValue", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "value", fieldName: "value", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "trackedEntityAttribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "trackedEntityInstance", + fieldName: "entityInstance", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityInstance", + }, + ], + }, + trackedEntityDataElementDimensions: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + shareable: false, + metadata: false, + plural: "trackedEntityDataElementDimensions", + displayName: "Tracked Entity Data Element Dimension", + collectionName: "trackedEntityDataElementDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "dataElementDimension", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + ], + }, + trackedEntityInstances: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityInstance", + shareable: false, + metadata: false, + relativeApiEndpoint: "/trackedEntityInstances", + plural: "trackedEntityInstances", + displayName: "Tracked Entity Instance", + collectionName: "trackedEntityInstances", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "trackedEntityInstance", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "programOwners", + fieldName: "programOwners", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramOwner", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "programInstance", + fieldName: "programInstances", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramInstance", + }, + { + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "createdAtClient", + fieldName: "createdAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "inactive", + fieldName: "inactive", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "relationshipItem", + fieldName: "relationshipItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.relationship.RelationshipItem", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "deleted", + fieldName: "deleted", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "trackedEntityType", + fieldName: "trackedEntityType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "geometry", + fieldName: "geometry", + propertyType: "COMPLEX", + klass: "org.locationtech.jts.geom.Geometry", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "trackedEntityAttributeValue", + fieldName: "trackedEntityAttributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.trackedentityattributevalue.TrackedEntityAttributeValue", + }, + { + name: "lastUpdatedAtClient", + fieldName: "lastUpdatedAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + ], + }, + trackedEntityInstanceFilters: { + klass: "org.hisp.dhis.trackedentityfilter.TrackedEntityInstanceFilter", + shareable: false, + metadata: true, + relativeApiEndpoint: "/trackedEntityInstanceFilters", + plural: "trackedEntityInstanceFilters", + displayName: "Tracked Entity Instance Filter", + collectionName: "trackedEntityInstanceFilters", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "trackedEntityInstanceFilter", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "enrollmentCreatedPeriod", + fieldName: "enrollmentCreatedPeriod", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.trackedentityfilter.FilterPeriod", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "followup", + fieldName: "followup", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "eventFilters", + fieldName: "eventFilters", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentityfilter.EventFilter", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "enrollmentStatus", + fieldName: "enrollmentStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramStatus", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataElementDimensions: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + shareable: false, + metadata: false, + plural: "dataElementDimensions", + displayName: "Tracked Entity Program Indicator Dimension", + collectionName: "dataElementDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "programIndicatorDimension", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "programIndicator", + fieldName: "programIndicator", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramIndicator", + }, + ], + }, + trackedEntityTypes: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityType", + shareable: true, + metadata: true, + relativeApiEndpoint: "/trackedEntityTypes", + plural: "trackedEntityTypes", + displayName: "Tracked Entity Type", + collectionName: "trackedEntityTypes", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "trackedEntityType", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "trackedEntityTypeAttribute", + fieldName: "trackedEntityTypeAttributes", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityTypeAttribute", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "allowAuditLog", + fieldName: "allowAuditLog", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "featureType", + fieldName: "featureType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.organisationunit.FeatureType", + }, + { + name: "minAttributesRequiredToSearch", + fieldName: "minAttributesRequiredToSearch", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "maxTeiCountToReturn", + fieldName: "maxTeiCountToReturn", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + trackedEntityTypeAttributes: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityTypeAttribute", + shareable: false, + metadata: false, + plural: "trackedEntityTypeAttributes", + displayName: "Tracked Entity Type Attribute", + collectionName: "trackedEntityTypeAttributes", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "trackedEntityTypeAttribute", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "mandatory", + fieldName: "mandatory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "trackedEntityAttribute", + fieldName: "trackedEntityAttribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "searchable", + fieldName: "searchable", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayInList", + fieldName: "displayInList", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "trackedEntityType", + fieldName: "trackedEntityType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + users: { + klass: "org.hisp.dhis.user.User", + shareable: false, + metadata: true, + relativeApiEndpoint: "/users", + plural: "users", + displayName: "User", + collectionName: "users", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "user", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "birthday", + fieldName: "birthday", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "education", + fieldName: "education", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "gender", + fieldName: "gender", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "jobTitle", + fieldName: "jobTitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "skype", fieldName: "skype", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "teiSearchOrganisationUnit", + fieldName: "teiSearchOrganisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "twitter", + fieldName: "twitter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "surname", + fieldName: "surname", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "employer", + fieldName: "employer", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "facebookMessenger", + fieldName: "facebookMessenger", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "introduction", + fieldName: "introduction", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "email", fieldName: "email", propertyType: "EMAIL", klass: "java.lang.String" }, + { + name: "dataViewOrganisationUnit", + fieldName: "dataViewOrganisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "whatsApp", + fieldName: "whatsApp", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "languages", + fieldName: "languages", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "welcomeMessage", + fieldName: "welcomeMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userCredentials", + fieldName: "userCredentials", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.UserCredentials", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "telegram", + fieldName: "telegram", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "avatar", + fieldName: "avatar", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.fileresource.FileResource", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "lastCheckedInterpretations", + fieldName: "lastCheckedInterpretations", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "userGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "firstName", + fieldName: "firstName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "phoneNumber", + fieldName: "phoneNumber", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "nationality", + fieldName: "nationality", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "interests", + fieldName: "interests", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + userAccesses: { + klass: "org.hisp.dhis.user.sharing.UserAccess", + shareable: false, + metadata: false, + plural: "userAccesses", + displayName: "User Access", + collectionName: "userAccesses", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "userAccess", + persisted: false, + embeddedObject: false, + properties: [], + }, + userRoles: { + klass: "org.hisp.dhis.user.UserAuthorityGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/userRoles", + plural: "userRoles", + displayName: "User Authority Group", + collectionName: "userRoles", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "userRole", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "authority", + fieldName: "authorities", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "userObject", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.user.User", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + userCredentials: { + klass: "org.hisp.dhis.user.UserCredentials", + shareable: false, + metadata: false, + plural: "userCredentials", + displayName: "User Credentials", + collectionName: "userCredentials", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "userCredentials", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastLogin", + fieldName: "lastLogin", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "userInfo", + fieldName: "userInfo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "openId", + fieldName: "openId", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAuth", + fieldName: "externalAuth", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "cogsDimensionConstraint", + fieldName: "cogsDimensionConstraints", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSet", + }, + { + name: "accountExpiry", + fieldName: "accountExpiry", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "catDimensionConstraint", + fieldName: "catDimensionConstraints", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.Category", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "password", + fieldName: "password", + propertyType: "PASSWORD", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "ldapId", + fieldName: "ldapId", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "disabled", + fieldName: "disabled", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "twoFA", + fieldName: "twoFA", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "passwordLastUpdated", + fieldName: "passwordLastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "invitation", + fieldName: "invitation", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "selfRegistered", + fieldName: "selfRegistered", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userRole", + fieldName: "userAuthorityGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAuthorityGroup", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "username", + fieldName: "username", + propertyType: "TEXT", + klass: "java.lang.String", + }, + ], + }, + userGroups: { + klass: "org.hisp.dhis.user.UserGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/userGroups", + plural: "userGroups", + displayName: "User Group", + collectionName: "userGroups", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "userGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "managedByGroup", + fieldName: "managedByGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "user", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.User", + }, + { + name: "managedGroup", + fieldName: "managedGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + userGroupAccesses: { + klass: "org.hisp.dhis.user.sharing.UserGroupAccess", + shareable: false, + metadata: false, + plural: "userGroupAccesses", + displayName: "User Group Access", + collectionName: "userGroupAccesses", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "userGroupAccess", + persisted: false, + embeddedObject: false, + properties: [], + }, + validationNotificationTemplates: { + klass: "org.hisp.dhis.validation.notification.ValidationNotificationTemplate", + shareable: false, + metadata: true, + relativeApiEndpoint: "/validationNotificationTemplates", + plural: "validationNotificationTemplates", + displayName: "Validation Notification Template", + collectionName: "validationNotificationTemplates", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "identifiableObject", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "recipientUserGroups", + fieldName: "recipientUserGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "subjectTemplate", + fieldName: "subjectTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sendStrategy", + fieldName: "sendStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.notification.SendStrategy", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "validationRules", + fieldName: "validationRules", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.validation.ValidationRule", + }, + { name: "displaySubjectTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "notifyUsersInHierarchyOnly", + fieldName: "notifyUsersInHierarchyOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "notifyParentOrganisationUnitOnly", + fieldName: "notifyParentOrganisationUnitOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayMessageTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "messageTemplate", + fieldName: "messageTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + ], + }, + validationResults: { + klass: "org.hisp.dhis.validation.ValidationResult", + shareable: false, + metadata: false, + relativeApiEndpoint: "/validationResults", + plural: "validationResults", + displayName: "Validation Result", + collectionName: "validationResults", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "validationResult", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "period", + fieldName: "period", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.period.Period", + }, + { + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "validationRule", + fieldName: "validationRule", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.validation.ValidationRule", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeOptionCombo", + fieldName: "attributeOptionCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { + name: "rightsideValue", + fieldName: "rightsideValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "id", fieldName: "id", propertyType: "TEXT", klass: "java.lang.Long" }, + { + name: "leftsideValue", + fieldName: "leftsideValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "notificationSent", + fieldName: "notificationSent", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dayInPeriod", + fieldName: "dayInPeriod", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + ], + }, + validationRules: { + klass: "org.hisp.dhis.validation.ValidationRule", + shareable: true, + metadata: true, + relativeApiEndpoint: "/validationRules", + plural: "validationRules", + displayName: "Validation Rule", + collectionName: "validationRules", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "validationRule", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "validationRuleGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.validation.ValidationRuleGroup", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "importance", + fieldName: "importance", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.validation.Importance", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "aggregateExportCategoryOptionCombo", + fieldName: "aggregateExportCategoryOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "operator", + fieldName: "operator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.expression.Operator", + }, + { + name: "organisationUnitLevels", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.Set", + itemKlass: "java.lang.Integer", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayInstruction", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "leftSide", + fieldName: "leftSide", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.expression.Expression", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "notificationTemplates", + fieldName: "notificationTemplates", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.validation.notification.ValidationNotificationTemplate", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "rightSide", + fieldName: "rightSide", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.expression.Expression", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "periodType", + fieldName: "periodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "instruction", + fieldName: "instruction", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "skipFormValidation", + fieldName: "skipFormValidation", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "aggregateExportAttributeOptionCombo", + fieldName: "aggregateExportAttributeOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + validationRuleGroups: { + klass: "org.hisp.dhis.validation.ValidationRuleGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/validationRuleGroups", + plural: "validationRuleGroups", + displayName: "Validation Rule Group", + collectionName: "validationRuleGroups", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "validationRuleGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "validationRule", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.validation.ValidationRule", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + visualizations: { + klass: "org.hisp.dhis.visualization.Visualization", + shareable: true, + metadata: true, + relativeApiEndpoint: "/visualizations", + plural: "visualizations", + displayName: "Visualization", + collectionName: "visualizations", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "visualization", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataElementGroupSetDimension", + fieldName: "dataElementGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + }, + { + name: "orgUnitField", + fieldName: "orgUnitField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "legend", + fieldName: "legend", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.visualization.LegendDefinitions", + }, + { + name: "baseLineValue", + fieldName: "baseLineValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnitChildren", + fieldName: "userOrganisationUnitChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "axes", + fieldName: "axes", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.visualization.AxisV2", + }, + { + name: "legendDisplayStyle", + fieldName: "legendDisplayStyle", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.legend.LegendDisplayStyle", + }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.visualization.VisualizationType", + }, + { + name: "hideEmptyColumns", + fieldName: "hideEmptyColumns", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "measureCriteria", + fieldName: "measureCriteria", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayTargetLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attributeDimension", + fieldName: "attributeDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "yearlySerie", + fieldName: "yearlySeries", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "userOrganisationUnit", + fieldName: "userOrganisationUnit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "rowSubTotals", + fieldName: "rowSubTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "filterDimension", + fieldName: "filterDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "visualizationPeriodName", + fieldName: "visualizationPeriodName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "domainAxisLabel", + fieldName: "domainAxisLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "cumulativeValues", + fieldName: "cumulativeValues", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "fontStyle", + fieldName: "fontStyle", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.visualization.VisualizationFontStyle", + }, + { + name: "axis", + fieldName: "optionalAxes", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.visualization.Axis", + }, + { + name: "showDimensionLabels", + fieldName: "showDimensionLabels", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "fontSize", + fieldName: "fontSize", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.FontSize", + }, + { + name: "rangeAxisDecimals", + fieldName: "rangeAxisDecimals", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "topLimit", + fieldName: "topLimit", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userOrganisationUnitGrandChildren", + fieldName: "userOrganisationUnitGrandChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "column", + fieldName: "columns", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "percentStackedValues", + fieldName: "percentStackedValues", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "noSpaceBetweenColumns", + fieldName: "noSpaceBetweenColumns", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElementDimension", + fieldName: "dataElementDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + }, + { + name: "rangeAxisSteps", + fieldName: "rangeAxisSteps", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "period", + fieldName: "periods", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.period.Period", + }, + { + name: "categoryDimension", + fieldName: "categoryDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryDimension", + }, + { + name: "showHierarchy", + fieldName: "showHierarchy", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayRangeAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "reportingParams", + fieldName: "reportingParams", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.visualization.ReportingParams", + }, + { + name: "hideTitle", + fieldName: "hideTitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rowDimension", + fieldName: "rowDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "seriesItem", + fieldName: "series", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.visualization.Series", + }, + { + name: "colorSet", + fieldName: "colorSet", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayBaseLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "skipRounding", + fieldName: "skipRounding", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "showData", + fieldName: "showData", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "numberType", + fieldName: "numberType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.NumberType", + }, + { + name: "hideEmptyRows", + fieldName: "hideEmptyRows", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "parentGraphMap", + fieldName: "parentGraphMap", + propertyType: "COMPLEX", + klass: "java.util.Map", + }, + { + name: "itemOrganisationUnitGroup", + fieldName: "itemOrganisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "displayDensity", + fieldName: "displayDensity", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DisplayDensity", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "displayDomainAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "programIndicatorDimension", + fieldName: "programIndicatorDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "rangeAxisLabel", + fieldName: "rangeAxisLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "regressionType", + fieldName: "regressionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.RegressionType", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "columnDimension", + fieldName: "columnDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "completedOnly", + fieldName: "completedOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "colTotals", + fieldName: "colTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideEmptyRowItems", + fieldName: "hideEmptyRowItems", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.HideEmptyItemStrategy", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dataDimensionItem", + fieldName: "dataDimensionItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DataDimensionItem", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetDimension", + fieldName: "categoryOptionGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + }, + { + name: "hideSubtitle", + fieldName: "hideSubtitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitGroupSetDimension", + fieldName: "organisationUnitGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideLegend", + fieldName: "hideLegend", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rangeAxisMinValue", + fieldName: "rangeAxisMinValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "legendDisplayStrategy", + fieldName: "legendDisplayStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.legend.LegendDisplayStrategy", + }, + { + name: "colSubTotals", + fieldName: "colSubTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "targetLineLabel", + fieldName: "targetLineLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "rowTotals", + fieldName: "rowTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "timeField", + fieldName: "timeField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "targetLineValue", + fieldName: "targetLineValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "filter", + fieldName: "filters", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "row", + fieldName: "rows", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "outlierAnalysis", + fieldName: "outlierAnalysis", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.visualization.OutlierAnalysis", + }, + { + name: "baseLineLabel", + fieldName: "baseLineLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "digitGroupSeparator", + fieldName: "digitGroupSeparator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DigitGroupSeparator", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "regression", + fieldName: "regression", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "userOrgUnitType", + fieldName: "userOrgUnitType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.UserOrgUnitType", + }, + { + name: "rangeAxisMaxValue", + fieldName: "rangeAxisMaxValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, +}; + +export type D2ModelSchemas = { + analyticsPeriodBoundaries: D2AnalyticsPeriodBoundarySchema; + analyticsTableHooks: D2AnalyticsTableHookSchema; + attributes: D2AttributeSchema; + attributeValues: D2AttributeValueSchema; + categories: D2CategorySchema; + categoryCombos: D2CategoryComboSchema; + categoryDimensions: D2CategoryDimensionSchema; + categoryOptions: D2CategoryOptionSchema; + categoryOptionCombos: D2CategoryOptionComboSchema; + categoryOptionGroups: D2CategoryOptionGroupSchema; + categoryOptionGroupSets: D2CategoryOptionGroupSetSchema; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema; + charts: D2ChartSchema; + constants: D2ConstantSchema; + dashboards: D2DashboardSchema; + dashboardItems: D2DashboardItemSchema; + dataApprovalLevels: D2DataApprovalLevelSchema; + dataApprovalWorkflows: D2DataApprovalWorkflowSchema; + dataElements: D2DataElementSchema; + dataElementGroups: D2DataElementGroupSchema; + dataElementGroupSets: D2DataElementGroupSetSchema; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema; + dataElementOperands: D2DataElementOperandSchema; + dataEntryForms: D2DataEntryFormSchema; + dataInputPeriods: D2DataInputPeriodSchema; + dataSets: D2DataSetSchema; + dataSetElements: D2DataSetElementSchema; + dataSetNotificationTemplates: D2DataSetNotificationTemplateSchema; + documents: D2DocumentSchema; + eventCharts: D2EventChartSchema; + eventReports: D2EventReportSchema; + expressions: D2ExpressionSchema; + externalFileResources: D2ExternalFileResourceSchema; + externalMapLayers: D2ExternalMapLayerSchema; + fileResources: D2FileResourceSchema; + icons: D2IconSchema; + indicators: D2IndicatorSchema; + indicatorGroups: D2IndicatorGroupSchema; + indicatorGroupSets: D2IndicatorGroupSetSchema; + indicatorTypes: D2IndicatorTypeSchema; + interpretations: D2InterpretationSchema; + interpretationComments: D2InterpretationCommentSchema; + jobConfigurations: D2JobConfigurationSchema; + dataStores: D2KeyJsonValueSchema; + legends: D2LegendSchema; + legendSets: D2LegendSetSchema; + maps: D2MapSchema; + mapViews: D2MapViewSchema; + messageConversations: D2MessageConversationSchema; + metadataVersions: D2MetadataVersionSchema; + minMaxDataElements: D2MinMaxDataElementSchema; + oAuth2Clients: D2OAuth2ClientSchema; + options: D2OptionSchema; + optionGroups: D2OptionGroupSchema; + optionGroupSets: D2OptionGroupSetSchema; + optionSets: D2OptionSetSchema; + organisationUnits: D2OrganisationUnitSchema; + organisationUnitGroups: D2OrganisationUnitGroupSchema; + organisationUnitGroupSets: D2OrganisationUnitGroupSetSchema; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema; + organisationUnitLevels: D2OrganisationUnitLevelSchema; + predictors: D2PredictorSchema; + predictorGroups: D2PredictorGroupSchema; + programs: D2ProgramSchema; + programDataElements: D2ProgramDataElementDimensionItemSchema; + programIndicators: D2ProgramIndicatorSchema; + programIndicatorGroups: D2ProgramIndicatorGroupSchema; + programInstances: D2ProgramInstanceSchema; + programNotificationTemplates: D2ProgramNotificationTemplateSchema; + programRules: D2ProgramRuleSchema; + programRuleActions: D2ProgramRuleActionSchema; + programRuleVariables: D2ProgramRuleVariableSchema; + programSections: D2ProgramSectionSchema; + programStages: D2ProgramStageSchema; + programStageDataElements: D2ProgramStageDataElementSchema; + programStageInstances: D2ProgramStageInstanceSchema; + eventFilters: D2ProgramStageInstanceFilterSchema; + programStageSections: D2ProgramStageSectionSchema; + programTrackedEntityAttributes: D2ProgramTrackedEntityAttributeSchema; + programTrackedEntityAttributeDimensionItems: D2ProgramTrackedEntityAttributeDimensionItemSchema; + programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroupSchema; + pushAnalysis: D2PushAnalysisSchema; + relationships: D2RelationshipSchema; + relationshipTypes: D2RelationshipTypeSchema; + reports: D2ReportSchema; + reportTables: D2ReportTableSchema; + reportingRates: D2ReportingRateSchema; + smsCommands: D2SMSCommandSchema; + sections: D2SectionSchema; + sqlViews: D2SqlViewSchema; + trackedEntityAttributes: D2TrackedEntityAttributeSchema; + trackedEntityAttributeValues: D2TrackedEntityAttributeValueSchema; + trackedEntityDataElementDimensions: D2TrackedEntityDataElementDimensionSchema; + trackedEntityInstances: D2TrackedEntityInstanceSchema; + trackedEntityInstanceFilters: D2TrackedEntityInstanceFilterSchema; + dataElementDimensions: D2TrackedEntityProgramIndicatorDimensionSchema; + trackedEntityTypes: D2TrackedEntityTypeSchema; + trackedEntityTypeAttributes: D2TrackedEntityTypeAttributeSchema; + users: D2UserSchema; + userAccesses: D2UserAccessSchema; + userRoles: D2UserAuthorityGroupSchema; + userCredentials: D2UserCredentialsSchema; + userGroups: D2UserGroupSchema; + userGroupAccesses: D2UserGroupAccessSchema; + validationNotificationTemplates: D2ValidationNotificationTemplateSchema; + validationResults: D2ValidationResultSchema; + validationRules: D2ValidationRuleSchema; + validationRuleGroups: D2ValidationRuleGroupSchema; + visualizations: D2VisualizationSchema; +}; diff --git a/src/2.37/schemas.ts b/src/2.37/schemas.ts new file mode 100644 index 0000000..fefc9a9 --- /dev/null +++ b/src/2.37/schemas.ts @@ -0,0 +1,34031 @@ +/* eslint-disable */ + +import { + Id, + Preset, + FieldPresets, + D2SchemaProperties, + D2Access, + D2Translation, + D2Geometry, + D2Style, + D2DimensionalKeywords, + D2Expression, + D2RelationshipConstraint, + D2ReportingParams, + D2Axis, + D2AttributeValueGeneric, + D2AttributeValueGenericSchema, +} from "../schemas/base"; + +export type D2AnalyticsPeriodBoundary = { + access: D2Access; + analyticsPeriodBoundaryType: + | "BEFORE_START_OF_REPORTING_PERIOD" + | "BEFORE_END_OF_REPORTING_PERIOD" + | "AFTER_START_OF_REPORTING_PERIOD" + | "AFTER_END_OF_REPORTING_PERIOD"; + attributeValues: D2AttributeValue[]; + boundaryTarget: string; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + offsetPeriodType: string; + offsetPeriods: number; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2AnalyticsTableHook = { + access: D2Access; + analyticsTableType: + | "DATA_VALUE" + | "COMPLETENESS" + | "COMPLETENESS_TARGET" + | "ORG_UNIT_TARGET" + | "EVENT" + | "ENROLLMENT" + | "VALIDATION_RESULT"; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + phase: "RESOURCE_TABLE_POPULATED" | "ANALYTICS_TABLE_POPULATED"; + publicAccess: string; + resourceTableType: + | "ORG_UNIT_STRUCTURE" + | "DATA_SET_ORG_UNIT_CATEGORY" + | "CATEGORY_OPTION_COMBO_NAME" + | "DATA_ELEMENT_GROUP_SET_STRUCTURE" + | "INDICATOR_GROUP_SET_STRUCTURE" + | "ORG_UNIT_GROUP_SET_STRUCTURE" + | "CATEGORY_STRUCTURE" + | "DATA_ELEMENT_STRUCTURE" + | "PERIOD_STRUCTURE" + | "DATE_PERIOD_STRUCTURE" + | "DATA_ELEMENT_CATEGORY_OPTION_COMBO" + | "DATA_APPROVAL_REMAP_LEVEL" + | "DATA_APPROVAL_MIN_LEVEL"; + sharing: any; + sql: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ApiToken = { + access: D2Access; + attributeValues: D2AttributeValue[]; + attributes: any[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + expire: number; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + key: string; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + type: "PERSONAL_ACCESS_TOKEN"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + version: number; +}; + +export type D2Attribute = { + access: D2Access; + attributeValues: D2AttributeValue[]; + categoryAttribute: boolean; + categoryOptionAttribute: boolean; + categoryOptionComboAttribute: boolean; + categoryOptionGroupAttribute: boolean; + categoryOptionGroupSetAttribute: boolean; + code: Id; + constantAttribute: boolean; + created: string; + createdBy: D2User; + dataElementAttribute: boolean; + dataElementGroupAttribute: boolean; + dataElementGroupSetAttribute: boolean; + dataSetAttribute: boolean; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + documentAttribute: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + indicatorAttribute: boolean; + indicatorGroupAttribute: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSetAttribute: boolean; + mandatory: boolean; + name: string; + optionAttribute: boolean; + optionSet: D2OptionSet; + optionSetAttribute: boolean; + organisationUnitAttribute: boolean; + organisationUnitGroupAttribute: boolean; + organisationUnitGroupSetAttribute: boolean; + programAttribute: boolean; + programIndicatorAttribute: boolean; + programStageAttribute: boolean; + publicAccess: string; + sectionAttribute: boolean; + sharing: any; + shortName: string; + sortOrder: number; + sqlViewAttribute: boolean; + trackedEntityAttributeAttribute: boolean; + trackedEntityTypeAttribute: boolean; + translations: D2Translation[]; + unique: boolean; + user: D2User; + userAccesses: D2UserAccess[]; + userAttribute: boolean; + userGroupAccesses: D2UserGroupAccess[]; + userGroupAttribute: boolean; + validationRuleAttribute: boolean; + validationRuleGroupAttribute: boolean; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; +}; + +export type D2AttributeValue = { + attribute: D2Attribute; + value: string; +}; + +export type D2Category = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValue[]; + categoryCombos: D2CategoryCombo[]; + categoryOptions: D2CategoryOption[]; + code: Id; + created: string; + createdBy: D2User; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionItemKeywords: any; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + name: string; + programStage: D2ProgramStage; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryCombo = { + access: D2Access; + attributeValues: D2AttributeValue[]; + categories: D2Category[]; + categoryOptionCombos: D2CategoryOptionCombo[]; + code: Id; + created: string; + createdBy: D2User; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + isDefault: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + skipTotal: boolean; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryDimension = { + category: D2Category; + categoryOptions: any; +}; + +export type D2CategoryOption = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + categories: D2Category[]; + categoryOptionCombos: D2CategoryOptionCombo[]; + categoryOptionGroups: D2CategoryOptionGroup[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + isDefault: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + organisationUnits: D2OrganisationUnit[]; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + startDate: string; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryOptionCombo = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + categoryCombo: D2CategoryCombo; + categoryOptions: D2CategoryOption[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + ignoreApproval: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryOptionGroup = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + categoryOptions: D2CategoryOption[]; + code: Id; + created: string; + createdBy: D2User; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + groupSets: D2CategoryOptionGroupSet[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryOptionGroupSet = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValue[]; + categoryOptionGroups: D2CategoryOptionGroup[]; + code: Id; + created: string; + createdBy: D2User; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionItemKeywords: any; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + name: string; + programStage: D2ProgramStage; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2CategoryOptionGroupSetDimension = { + categoryOptionGroupSet: D2CategoryOptionGroupSet; + categoryOptionGroups: any; +}; + +export type D2Constant = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + value: number; +}; + +export type D2Dashboard = { + access: D2Access; + allowedFilters: string[]; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dashboardItems: D2DashboardItem[]; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + itemConfig: any; + itemCount: number; + lastUpdated: string; + lastUpdatedBy: D2User; + layout: any; + name: string; + publicAccess: string; + restrictFilters: boolean; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DashboardItem = { + access: D2Access; + appKey: string; + attributeValues: D2AttributeValue[]; + code: Id; + contentCount: number; + created: string; + createdBy: D2User; + displayName: string; + eventChart: D2EventChart; + eventReport: D2EventReport; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + height: number; + href: string; + id: Id; + interpretationCount: number; + interpretationLikeCount: number; + lastUpdated: string; + lastUpdatedBy: D2User; + map: D2Map; + messages: boolean; + name: string; + publicAccess: string; + reports: D2Report[]; + resources: D2Document[]; + shape: "NORMAL" | "DOUBLE_WIDTH" | "FULL_WIDTH"; + sharing: any; + text: string; + translations: D2Translation[]; + type: + | "VISUALIZATION" + | "EVENT_CHART" + | "MAP" + | "EVENT_REPORT" + | "USERS" + | "REPORTS" + | "RESOURCES" + | "TEXT" + | "MESSAGES" + | "APP"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + users: D2User[]; + visualization: D2Visualization; + width: number; + x: number; + y: number; +}; + +export type D2DataApprovalLevel = { + access: D2Access; + attributeValues: D2AttributeValue[]; + categoryOptionGroupSet: D2CategoryOptionGroupSet; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + level: number; + name: string; + orgUnitLevel: number; + orgUnitLevelName: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataApprovalWorkflow = { + access: D2Access; + attributeValues: D2AttributeValue[]; + categoryCombo: D2CategoryCombo; + code: Id; + created: string; + createdBy: D2User; + dataApprovalLevels: D2DataApprovalLevel[]; + dataSets: D2DataSet[]; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + periodType: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataElement = { + access: D2Access; + aggregationLevels: number[]; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + categoryCombo: D2CategoryCombo; + code: Id; + commentOptionSet: D2OptionSet; + created: string; + createdBy: D2User; + dataElementGroups: D2DataElementGroup[]; + dataSetElements: D2DataSetElement[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + domainType: "AGGREGATE" | "TRACKER"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldMask: string; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + optionSet: D2OptionSet; + optionSetValue: boolean; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + style: D2Style; + translations: D2Translation[]; + url: string; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + valueTypeOptions: any; + zeroIsSignificant: boolean; +}; + +export type D2DataElementGroup = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dataElements: D2DataElement[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + groupSets: D2DataElementGroupSet[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataElementGroupSet = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValue[]; + code: Id; + compulsory: boolean; + created: string; + createdBy: D2User; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + dataElementGroups: D2DataElementGroup[]; + description: string; + dimension: string; + dimensionItemKeywords: any; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + name: string; + programStage: D2ProgramStage; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataElementGroupSetDimension = { + dataElementGroupSet: D2DataElementGroupSet; + dataElementGroups: any; +}; + +export type D2DataElementOperand = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeOptionCombo: D2CategoryOptionCombo; + attributeValues: D2AttributeValue[]; + categoryOptionCombo: D2CategoryOptionCombo; + code: Id; + created: string; + createdBy: D2User; + dataElement: D2DataElement; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataEntryForm = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + format: number; + href: string; + htmlCode: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + style: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2DataInputPeriod = { + closingDate: string; + openingDate: string; + period: any; +}; + +export type D2DataSet = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + categoryCombo: D2CategoryCombo; + code: Id; + compulsoryDataElementOperands: D2DataElementOperand[]; + compulsoryFieldsCompleteOnly: boolean; + created: string; + createdBy: D2User; + dataElementDecoration: boolean; + dataEntryForm: D2DataEntryForm; + dataInputPeriods: D2DataInputPeriod[]; + dataSetElements: D2DataSetElement[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + expiryDays: number; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldCombinationRequired: boolean; + formName: string; + formType: "DEFAULT" | "CUSTOM" | "SECTION" | "SECTION_MULTIORG"; + href: string; + id: Id; + indicators: D2Indicator[]; + interpretations: D2Interpretation[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + mobile: boolean; + name: string; + noValueRequiresComment: boolean; + notificationRecipients: D2UserGroup; + notifyCompletingUser: boolean; + openFuturePeriods: number; + openPeriodsAfterCoEndDate: number; + organisationUnits: D2OrganisationUnit[]; + periodOffset: number; + periodType: string; + publicAccess: string; + renderAsTabs: boolean; + renderHorizontally: boolean; + sections: D2Section[]; + sharing: any; + shortName: string; + skipOffline: boolean; + style: D2Style; + timelyDays: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + validCompleteOnly: boolean; + version: number; + workflow: D2DataApprovalWorkflow; +}; + +export type D2DataSetElement = { + categoryCombo: D2CategoryCombo; + dataElement: D2DataElement; + dataSet: D2DataSet; +}; + +export type D2DataSetNotificationTemplate = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dataSetNotificationTrigger: "DATA_SET_COMPLETION" | "SCHEDULED_DAYS"; + dataSets: D2DataSet[]; + deliveryChannels: never[]; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + messageTemplate: string; + name: string; + notificationRecipient: "ORGANISATION_UNIT_CONTACT" | "USER_GROUP"; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientUserGroup: D2UserGroup; + relativeScheduledDays: number; + sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; + sharing: any; + subjectTemplate: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Document = { + access: D2Access; + attachment: boolean; + attributeValues: D2AttributeValue[]; + code: Id; + contentType: string; + created: string; + createdBy: D2User; + displayName: string; + external: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + url: string; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2EventChart = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValueDimension: D2TrackedEntityAttribute; + attributeValues: D2AttributeValue[]; + baseLineLabel: string; + baseLineValue: number; + categoryDimensions: D2CategoryDimension[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; + code: Id; + collapseDataDimensions: boolean; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + createdBy: D2User; + cumulativeValues: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimension[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; + dataElementValueDimension: D2DataElement; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; + displayDescription: string; + displayDomainAxisLabel: string; + displayFormName: string; + displayName: string; + displayRangeAxisLabel: string; + displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; + domainAxisLabel: string; + endDate: string; + eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + formName: string; + hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; + hideLegend: boolean; + hideNaData: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2Interpretation[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendSet: D2LegendSet; + name: string; + noSpaceBetweenColumns: boolean; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnit[]; + outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; + parentGraphMap: D2Map; + percentStackedValues: boolean; + periods: any[]; + program: D2Program; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; + programStage: D2ProgramStage; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + rangeAxisDecimals: number; + rangeAxisLabel: string; + rangeAxisMaxValue: number; + rangeAxisMinValue: number; + rangeAxisSteps: number; + regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; + relativePeriods: any; + rowDimensions: string[]; + rows: any[]; + sharing: any; + shortName: string; + showData: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + targetLineLabel: string; + targetLineValue: number; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + type: + | "COLUMN" + | "STACKED_COLUMN" + | "BAR" + | "STACKED_BAR" + | "LINE" + | "AREA" + | "STACKED_AREA" + | "PIE" + | "RADAR" + | "GAUGE" + | "YEAR_OVER_YEAR_LINE" + | "YEAR_OVER_YEAR_COLUMN" + | "SINGLE_VALUE" + | "PIVOT_TABLE" + | "SCATTER" + | "BUBBLE"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + value: any; + yearlySeries: string[]; +}; + +export type D2EventReport = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValueDimension: D2TrackedEntityAttribute; + attributeValues: D2AttributeValue[]; + categoryDimensions: D2CategoryDimension[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; + code: Id; + colSubTotals: boolean; + colTotals: boolean; + collapseDataDimensions: boolean; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + createdBy: D2User; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimension[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; + dataElementValueDimension: D2DataElement; + dataType: "AGGREGATED_VALUES" | "EVENTS"; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + displaySubtitle: string; + displayTitle: string; + endDate: string; + eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + fontSize: "LARGE" | "NORMAL" | "SMALL"; + formName: string; + hideEmptyRows: boolean; + hideNaData: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2Interpretation[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnit[]; + outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; + parentGraphMap: D2Map; + periods: any[]; + program: D2Program; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; + programStage: D2ProgramStage; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + relativePeriods: any; + rowDimensions: string[]; + rowSubTotals: boolean; + rowTotals: boolean; + rows: any[]; + sharing: any; + shortName: string; + showDimensionLabels: boolean; + showHierarchy: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + value: any; +}; + +export type D2Expression = { + description: string; + displayDescription: string; + expression: string; + missingValueStrategy: "SKIP_IF_ANY_VALUE_MISSING" | "SKIP_IF_ALL_VALUES_MISSING" | "NEVER_SKIP"; + slidingWindow: boolean; + translations: D2Translation[]; +}; + +export type D2ExternalFileResource = { + access: D2Access; + accessToken: string; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + expires: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fileResource: D2FileResource; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ExternalMapLayer = { + access: D2Access; + attributeValues: D2AttributeValue[]; + attribution: string; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + imageFormat: "PNG" | "JPG"; + lastUpdated: string; + lastUpdatedBy: D2User; + layers: string; + legendSet: D2LegendSet; + legendSetUrl: string; + mapLayerPosition: "BASEMAP" | "OVERLAY"; + mapService: "WMS" | "TMS" | "XYZ"; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + url: string; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2FileResource = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + contentLength: string; + contentMd5: string; + contentType: string; + created: string; + createdBy: D2User; + displayName: string; + domain: + | "DATA_VALUE" + | "PUSH_ANALYSIS" + | "DOCUMENT" + | "MESSAGE_ATTACHMENT" + | "USER_AVATAR" + | "ORG_UNIT"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + hasMultipleStorageFiles: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + storageStatus: "NONE" | "PENDING" | "FAILED" | "STORED"; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Icon = {}; + +export type D2Indicator = { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + annualized: boolean; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dataSets: D2DataSet[]; + decimals: number; + denominator: string; + denominatorDescription: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDenominatorDescription: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayNumeratorDescription: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + indicatorGroups: D2IndicatorGroup[]; + indicatorType: D2IndicatorType; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + numerator: string; + numeratorDescription: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + style: D2Style; + translations: D2Translation[]; + url: string; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2IndicatorGroup = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + indicatorGroupSet: D2IndicatorGroupSet; + indicators: D2Indicator[]; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2IndicatorGroupSet = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + compulsory: boolean; + created: string; + createdBy: D2User; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + indicatorGroups: D2IndicatorGroup[]; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2IndicatorType = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + factor: number; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + number: boolean; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Interpretation = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + comments: D2InterpretationComment[]; + created: string; + createdBy: D2User; + dataSet: D2DataSet; + displayName: string; + eventChart: D2EventChart; + eventReport: D2EventReport; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + likedBy: D2User[]; + likes: number; + map: D2Map; + mentions: any[]; + name: string; + organisationUnit: D2OrganisationUnit; + period: any; + publicAccess: string; + sharing: any; + text: string; + translations: D2Translation[]; + type: + | "VISUALIZATION" + | "REPORT_TABLE" + | "CHART" + | "MAP" + | "EVENT_REPORT" + | "EVENT_CHART" + | "DATASET_REPORT"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + visualization: D2Visualization; +}; + +export type D2InterpretationComment = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + mentions: any[]; + name: string; + publicAccess: string; + sharing: any; + text: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2JobConfiguration = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + configurable: boolean; + created: string; + createdBy: D2User; + cronExpression: string; + delay: number; + displayName: string; + enabled: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + jobParameters: any; + jobStatus: + | "RUNNING" + | "COMPLETED" + | "STOPPED" + | "SCHEDULED" + | "DISABLED" + | "FAILED" + | "NOT_STARTED"; + jobType: + | "DATA_STATISTICS" + | "DATA_INTEGRITY" + | "RESOURCE_TABLE" + | "ANALYTICS_TABLE" + | "CONTINUOUS_ANALYTICS_TABLE" + | "DATA_SYNC" + | "TRACKER_PROGRAMS_DATA_SYNC" + | "EVENT_PROGRAMS_DATA_SYNC" + | "FILE_RESOURCE_CLEANUP" + | "IMAGE_PROCESSING" + | "META_DATA_SYNC" + | "SMS_SEND" + | "SEND_SCHEDULED_MESSAGE" + | "PROGRAM_NOTIFICATIONS" + | "VALIDATION_RESULTS_NOTIFICATION" + | "CREDENTIALS_EXPIRY_ALERT" + | "MONITORING" + | "PUSH_ANALYSIS" + | "PREDICTOR" + | "DATA_SET_NOTIFICATION" + | "REMOVE_USED_OR_EXPIRED_RESERVED_VALUES" + | "TRACKER_IMPORT_JOB" + | "TRACKER_IMPORT_NOTIFICATION_JOB" + | "TRACKER_IMPORT_RULE_ENGINE_JOB" + | "LEADER_ELECTION" + | "LEADER_RENEWAL" + | "COMPLETE_DATA_SET_REGISTRATION_IMPORT" + | "DATAVALUE_IMPORT_INTERNAL" + | "METADATA_IMPORT" + | "DATAVALUE_IMPORT" + | "EVENT_IMPORT" + | "ENROLLMENT_IMPORT" + | "TEI_IMPORT" + | "DISABLE_INACTIVE_USERS" + | "ACCOUNT_EXPIRY_ALERT" + | "MOCK" + | "GML_IMPORT" + | "ANALYTICSTABLE_UPDATE" + | "PROGRAM_DATA_SYNC"; + lastExecuted: string; + lastExecutedStatus: + | "RUNNING" + | "COMPLETED" + | "STOPPED" + | "SCHEDULED" + | "DISABLED" + | "FAILED" + | "NOT_STARTED"; + lastRuntimeExecution: string; + lastUpdated: string; + lastUpdatedBy: D2User; + leaderOnlyJob: boolean; + name: string; + nextExecutionTime: string; + publicAccess: string; + schedulingType: "CRON" | "FIXED_DELAY"; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userUid: string; +}; + +export type D2KeyJsonValue = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + key: string; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + namespace: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + value: string; +}; + +export type D2Legend = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + color: string; + created: string; + createdBy: D2User; + displayName: string; + endValue: number; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + image: string; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + startValue: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2LegendSet = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legends: D2Legend[]; + name: string; + publicAccess: string; + sharing: any; + symbolizer: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Map = { + access: D2Access; + attributeValues: D2AttributeValue[]; + basemap: string; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + interpretations: D2Interpretation[]; + lastUpdated: string; + lastUpdatedBy: D2User; + latitude: number; + longitude: number; + mapViews: D2MapView[]; + name: string; + publicAccess: string; + sharing: any; + shortName: string; + subscribed: boolean; + subscribers: string[]; + title: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + zoom: number; +}; + +export type D2MapView = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + areaRadius: number; + attributeDimensions: any[]; + attributeValues: D2AttributeValue[]; + categoryDimensions: D2CategoryDimension[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; + classes: number; + code: Id; + colorHigh: string; + colorLow: string; + colorScale: string; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + config: string; + created: string; + createdBy: D2User; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimension[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + displaySubtitle: string; + displayTitle: string; + endDate: string; + eventClustering: boolean; + eventCoordinateField: string; + eventPointColor: string; + eventPointRadius: number; + eventStatus: "ACTIVE" | "COMPLETED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + followUp: boolean; + formName: string; + hidden: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2Interpretation[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; + labelFontColor: string; + labelFontSize: string; + labelFontStyle: string; + labelFontWeight: string; + labels: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + layer: string; + legendSet: D2LegendSet; + method: number; + name: string; + noDataColor: string; + opacity: number; + orgUnitField: string; + organisationUnitColor: string; + organisationUnitGroupSet: D2OrganisationUnitGroupSet; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; + organisationUnitLevels: number[]; + organisationUnitSelectionMode: + | "SELECTED" + | "CHILDREN" + | "DESCENDANTS" + | "ACCESSIBLE" + | "CAPTURE" + | "ALL"; + organisationUnits: D2OrganisationUnit[]; + parentGraph: string; + parentGraphMap: D2Map; + parentLevel: number; + periods: any[]; + program: D2Program; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; + programStage: D2ProgramStage; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + radiusHigh: number; + radiusLow: number; + relativePeriods: any; + renderingStrategy: "SINGLE" | "SPLIT_BY_PERIOD" | "TIMELINE"; + rows: any[]; + sharing: any; + shortName: string; + sortOrder: number; + startDate: string; + styleDataItem: object; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + thematicMapType: "CHOROPLETH" | "BUBBLE"; + timeField: string; + title: string; + topLimit: number; + trackedEntityType: D2TrackedEntityType; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; +}; + +export type D2MessageConversation = { + access: D2Access; + assignee: D2User; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followUp: boolean; + href: string; + id: Id; + lastMessage: string; + lastSender: D2User; + lastSenderFirstname: string; + lastSenderSurname: string; + lastUpdated: string; + lastUpdatedBy: D2User; + messageCount: number; + messageType: "PRIVATE" | "SYSTEM" | "VALIDATION_RESULT" | "TICKET"; + messages: any[]; + name: string; + priority: "NONE" | "LOW" | "MEDIUM" | "HIGH"; + publicAccess: string; + read: boolean; + sharing: any; + status: "NONE" | "OPEN" | "PENDING" | "INVALID" | "SOLVED"; + subject: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userFirstname: string; + userGroupAccesses: D2UserGroupAccess[]; + userMessages: any[]; + userSurname: string; +}; + +export type D2MetadataVersion = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + hashCode: string; + href: string; + id: Id; + importDate: string; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + type: "BEST_EFFORT" | "ATOMIC"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2MinMaxDataElement = { + dataElement: D2DataElement; + generated: boolean; + max: number; + min: number; + optionCombo: D2CategoryOptionCombo; + source: D2OrganisationUnit; +}; + +export type D2OAuth2Client = { + access: D2Access; + attributeValues: D2AttributeValue[]; + cid: Id; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + grantTypes: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + redirectUris: string[]; + secret: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Option = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: string; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + optionSet: D2OptionSet; + publicAccess: string; + sharing: any; + shortName: string; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2OptionGroup = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + optionSet: D2OptionSet; + options: D2Option[]; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2OptionGroupSet = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionItemKeywords: any; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + name: string; + optionGroups: D2OptionGroup[]; + optionSet: D2OptionSet; + programStage: D2ProgramStage; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2OptionSet = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + options: D2Option[]; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + version: number; +}; + +export type D2OrganisationUnit = { + access: D2Access; + address: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + ancestors: D2OrganisationUnit[]; + attributeValues: D2AttributeValue[]; + children: D2OrganisationUnit[]; + closedDate: string; + code: Id; + comment: string; + contactPerson: string; + created: string; + createdBy: D2User; + dataSets: D2DataSet[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + email: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + geometry: any; + href: string; + id: Id; + image: D2FileResource; + lastUpdated: string; + lastUpdatedBy: D2User; + leaf: boolean; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + level: string; + memberCount: number; + name: string; + openingDate: string; + organisationUnitGroups: D2OrganisationUnitGroup[]; + parent: D2OrganisationUnit; + path: string; + periodOffset: number; + phoneNumber: string; + programs: D2Program[]; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + type: string; + url: string; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + users: D2User[]; +}; + +export type D2OrganisationUnitGroup = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + code: Id; + color: string; + created: string; + createdBy: D2User; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + geometry: any; + groupSets: D2OrganisationUnitGroupSet[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + organisationUnits: D2OrganisationUnit[]; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + symbol: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2OrganisationUnitGroupSet = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValue[]; + code: Id; + compulsory: boolean; + created: string; + createdBy: D2User; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionItemKeywords: any; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + includeSubhierarchyInAnalytics: boolean; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + name: string; + organisationUnitGroups: D2OrganisationUnitGroup[]; + programStage: D2ProgramStage; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2OrganisationUnitGroupSetDimension = { + organisationUnitGroupSet: D2OrganisationUnitGroupSet; + organisationUnitGroups: any; +}; + +export type D2OrganisationUnitLevel = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + level: number; + name: string; + offlineLevels: number; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Predictor = { + access: D2Access; + annualSampleCount: number; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + generator: D2Expression; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + organisationUnitLevels: D2OrganisationUnitLevel[]; + output: D2DataElement; + outputCombo: D2CategoryOptionCombo; + periodType: string; + predictorGroups: D2PredictorGroup[]; + publicAccess: string; + sampleSkipTest: D2Expression; + sequentialSampleCount: number; + sequentialSkipCount: number; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2PredictorGroup = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + predictors: D2Predictor[]; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Program = { + access: D2Access; + accessLevel: "OPEN" | "AUDITED" | "PROTECTED" | "CLOSED"; + attributeValues: D2AttributeValue[]; + categoryCombo: D2CategoryCombo; + code: Id; + completeEventsExpiryDays: number; + created: string; + createdBy: D2User; + dataEntryForm: D2DataEntryForm; + description: string; + displayDescription: string; + displayEnrollmentDateLabel: string; + displayFormName: string; + displayFrontPageList: boolean; + displayIncidentDate: boolean; + displayIncidentDateLabel: string; + displayName: string; + displayShortName: string; + enrollmentDateLabel: string; + expiryDays: number; + expiryPeriodType: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + href: string; + id: Id; + ignoreOverdueEvents: boolean; + incidentDateLabel: string; + lastUpdated: string; + lastUpdatedBy: D2User; + maxTeiCountToReturn: number; + minAttributesRequiredToSearch: number; + name: string; + notificationTemplates: D2ProgramNotificationTemplate[]; + onlyEnrollOnce: boolean; + organisationUnits: D2OrganisationUnit[]; + programIndicators: D2ProgramIndicator[]; + programRuleVariables: D2ProgramRuleVariable[]; + programSections: D2ProgramSection[]; + programStages: D2ProgramStage[]; + programTrackedEntityAttributes: D2ProgramTrackedEntityAttribute[]; + programType: "WITH_REGISTRATION" | "WITHOUT_REGISTRATION"; + publicAccess: string; + registration: boolean; + relatedProgram: D2Program; + selectEnrollmentDatesInFuture: boolean; + selectIncidentDatesInFuture: boolean; + sharing: any; + shortName: string; + skipOffline: boolean; + style: D2Style; + trackedEntityType: D2TrackedEntityType; + translations: D2Translation[]; + useFirstStageDuringRegistration: boolean; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userRoles: D2UserAuthorityGroup[]; + version: number; + withoutRegistration: boolean; +}; + +export type D2ProgramDataElementDimensionItem = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dataElement: D2DataElement; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + program: D2Program; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; +}; + +export type D2ProgramIndicator = { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + analyticsPeriodBoundaries: D2AnalyticsPeriodBoundary[]; + analyticsType: "EVENT" | "ENROLLMENT"; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + decimals: number; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayInForm: boolean; + displayName: string; + displayShortName: string; + expression: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + program: D2Program; + programIndicatorGroups: D2ProgramIndicatorGroup[]; + publicAccess: string; + sharing: any; + shortName: string; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramIndicatorGroup = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + programIndicators: D2ProgramIndicator[]; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramInstance = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + completedBy: string; + created: string; + createdAtClient: string; + createdBy: D2User; + createdByUserInfo: any; + deleted: boolean; + displayName: string; + endDate: string; + enrollmentDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followup: boolean; + geometry: any; + href: string; + id: Id; + incidentDate: string; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2User; + lastUpdatedByUserInfo: any; + messageConversations: D2MessageConversation[]; + name: string; + organisationUnit: D2OrganisationUnit; + program: D2Program; + programStageInstances: D2ProgramStageInstance[]; + publicAccess: string; + relationshipItems: any[]; + sharing: any; + status: "ACTIVE" | "COMPLETED" | "CANCELLED"; + storedBy: string; + trackedEntityComments: any[]; + trackedEntityInstance: D2TrackedEntityInstance; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramNotificationTemplate = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + deliveryChannels: never[]; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + messageTemplate: string; + name: string; + notificationRecipient: + | "TRACKED_ENTITY_INSTANCE" + | "ORGANISATION_UNIT_CONTACT" + | "USERS_AT_ORGANISATION_UNIT" + | "USER_GROUP" + | "PROGRAM_ATTRIBUTE" + | "DATA_ELEMENT" + | "WEB_HOOK"; + notificationTrigger: + | "ENROLLMENT" + | "COMPLETION" + | "PROGRAM_RULE" + | "SCHEDULED_DAYS_DUE_DATE" + | "SCHEDULED_DAYS_INCIDENT_DATE" + | "SCHEDULED_DAYS_ENROLLMENT_DATE"; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientDataElement: D2DataElement; + recipientProgramAttribute: D2TrackedEntityAttribute; + recipientUserGroup: D2UserGroup; + relativeScheduledDays: number; + sendRepeatable: boolean; + sharing: any; + subjectTemplate: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramRule = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + condition: string; + created: string; + createdBy: D2User; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + priority: number; + program: D2Program; + programRuleActions: D2ProgramRuleAction[]; + programStage: D2ProgramStage; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramRuleAction = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + content: string; + created: string; + createdBy: D2User; + data: string; + dataElement: D2DataElement; + displayContent: string; + displayName: string; + evaluationEnvironments: never[]; + evaluationTime: "ON_DATA_ENTRY" | "ON_COMPLETE" | "ALWAYS"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + location: string; + name: string; + option: D2Option; + optionGroup: D2OptionGroup; + programIndicator: D2ProgramIndicator; + programRule: D2ProgramRule; + programRuleActionType: + | "DISPLAYTEXT" + | "DISPLAYKEYVALUEPAIR" + | "HIDEFIELD" + | "HIDESECTION" + | "HIDEPROGRAMSTAGE" + | "ASSIGN" + | "SHOWWARNING" + | "WARNINGONCOMPLETE" + | "SHOWERROR" + | "ERRORONCOMPLETE" + | "CREATEEVENT" + | "SETMANDATORYFIELD" + | "SENDMESSAGE" + | "SCHEDULEMESSAGE" + | "HIDEOPTION" + | "SHOWOPTIONGROUP" + | "HIDEOPTIONGROUP"; + programStage: D2ProgramStage; + programStageSection: D2ProgramStageSection; + publicAccess: string; + sharing: any; + templateUid: string; + trackedEntityAttribute: D2TrackedEntityAttribute; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramRuleVariable = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dataElement: D2DataElement; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + program: D2Program; + programRuleVariableSourceType: + | "DATAELEMENT_NEWEST_EVENT_PROGRAM_STAGE" + | "DATAELEMENT_NEWEST_EVENT_PROGRAM" + | "DATAELEMENT_CURRENT_EVENT" + | "DATAELEMENT_PREVIOUS_EVENT" + | "CALCULATED_VALUE" + | "TEI_ATTRIBUTE"; + programStage: D2ProgramStage; + publicAccess: string; + sharing: any; + trackedEntityAttribute: D2TrackedEntityAttribute; + translations: D2Translation[]; + useCodeForOptionSet: boolean; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramSection = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + program: D2Program; + publicAccess: string; + renderType: any; + sharing: any; + shortName: string; + sortOrder: number; + style: D2Style; + trackedEntityAttributes: D2TrackedEntityAttribute[]; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramStage = { + access: D2Access; + allowGenerateNextVisit: boolean; + attributeValues: D2AttributeValue[]; + autoGenerateEvent: boolean; + blockEntryForm: boolean; + code: Id; + created: string; + createdBy: D2User; + dataEntryForm: D2DataEntryForm; + description: string; + displayDescription: string; + displayDueDateLabel: string; + displayExecutionDateLabel: string; + displayFormName: string; + displayGenerateEventBox: boolean; + displayName: string; + displayShortName: string; + dueDateLabel: string; + enableUserAssignment: boolean; + executionDateLabel: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + formType: "DEFAULT" | "CUSTOM" | "SECTION" | "SECTION_MULTIORG"; + generatedByEnrollmentDate: boolean; + hideDueDate: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + minDaysFromStart: number; + name: string; + nextScheduleDate: D2DataElement; + notificationTemplates: D2ProgramNotificationTemplate[]; + openAfterEnrollment: boolean; + periodType: string; + preGenerateUID: boolean; + program: D2Program; + programStageDataElements: D2ProgramStageDataElement[]; + programStageSections: D2ProgramStageSection[]; + publicAccess: string; + remindCompleted: boolean; + repeatable: boolean; + reportDateToUse: string; + sharing: any; + shortName: string; + sortOrder: number; + standardInterval: number; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + validationStrategy: "ON_COMPLETE" | "ON_UPDATE_AND_INSERT"; +}; + +export type D2ProgramStageDataElement = { + access: D2Access; + allowFutureDate: boolean; + allowProvidedElsewhere: boolean; + attributeValues: D2AttributeValue[]; + code: Id; + compulsory: boolean; + created: string; + createdBy: D2User; + dataElement: D2DataElement; + displayInReports: boolean; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + programStage: D2ProgramStage; + publicAccess: string; + renderOptionsAsRadio: boolean; + renderType: any; + sharing: any; + skipAnalytics: boolean; + skipSynchronization: boolean; + sortOrder: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramStageInstance = { + access: D2Access; + assignedUser: D2User; + attributeOptionCombo: D2CategoryOptionCombo; + attributeValues: D2AttributeValue[]; + code: Id; + comments: any[]; + completed: boolean; + completedBy: string; + completedDate: string; + creatableInSearchScope: boolean; + created: string; + createdAtClient: string; + createdBy: D2User; + createdByUserInfo: any; + deleted: boolean; + displayName: string; + dueDate: string; + eventDataValues: any[]; + eventDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + geometry: any; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2User; + lastUpdatedByUserInfo: any; + messageConversations: D2MessageConversation[]; + name: string; + organisationUnit: D2OrganisationUnit; + programInstance: D2ProgramInstance; + programStage: D2ProgramStage; + publicAccess: string; + relationshipItems: any[]; + sharing: any; + status: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + storedBy: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramStageInstanceFilter = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayName: string; + eventQueryCriteria: any; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + program: Id; + programStage: Id; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramStageSection = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dataElements: D2DataElement[]; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + programIndicators: D2ProgramIndicator[]; + programStage: D2ProgramStage; + publicAccess: string; + renderType: any; + sharing: any; + shortName: string; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramTrackedEntityAttribute = { + access: D2Access; + allowFutureDate: boolean; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayInList: boolean; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + mandatory: boolean; + name: string; + program: D2Program; + programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroup[]; + publicAccess: string; + renderOptionsAsRadio: boolean; + renderType: any; + searchable: boolean; + sharing: any; + sortOrder: number; + trackedEntityAttribute: D2TrackedEntityAttribute; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; +}; + +export type D2ProgramTrackedEntityAttributeDimensionItem = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attribute: D2TrackedEntityAttribute; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + periodOffset: number; + program: D2Program; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2ProgramTrackedEntityAttributeGroup = { + access: D2Access; + attributeValues: D2AttributeValue[]; + attributes: D2ProgramTrackedEntityAttribute[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + uniqunessType: "NONE" | "STRICT" | "VALIDATION"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2PushAnalysis = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dashboard: D2Dashboard; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + message: string; + name: string; + publicAccess: string; + recipientUserGroups: D2UserGroup[]; + sharing: any; + title: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Relationship = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + from: any; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + relationshipType: D2RelationshipType; + sharing: any; + shortName: string; + style: D2Style; + to: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2RelationshipType = { + access: D2Access; + attributeValues: D2AttributeValue[]; + bidirectional: boolean; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayFromToName: string; + displayName: string; + displayToFromName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fromConstraint: D2RelationshipConstraint; + fromToName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + toConstraint: D2RelationshipConstraint; + toFromName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2Report = { + access: D2Access; + attributeValues: D2AttributeValue[]; + cacheStrategy: + | "NO_CACHE" + | "CACHE_1_MINUTE" + | "CACHE_5_MINUTES" + | "CACHE_10_MINUTES" + | "CACHE_15_MINUTES" + | "CACHE_30_MINUTES" + | "CACHE_1_HOUR" + | "CACHE_6AM_TOMORROW" + | "CACHE_TWO_WEEKS" + | "RESPECT_SYSTEM_SETTING"; + code: Id; + created: string; + createdBy: D2User; + designContent: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + relativePeriods: any; + reportParams: D2ReportingParams; + sharing: any; + translations: D2Translation[]; + type: "JASPER_REPORT_TABLE" | "JASPER_JDBC" | "HTML"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + visualization: D2Visualization; +}; + +export type D2ReportingRate = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + dataSet: D2DataSet; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + metric: + | "REPORTING_RATE" + | "REPORTING_RATE_ON_TIME" + | "ACTUAL_REPORTS" + | "ACTUAL_REPORTS_ON_TIME" + | "EXPECTED_REPORTS"; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2SMSCommand = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + codeValueSeparator: string; + completenessMethod: "ALL_DATAVALUE" | "AT_LEAST_ONE_DATAVALUE" | "DO_NOT_MARK_COMPLETE"; + created: string; + createdBy: D2User; + currentPeriodUsedForReporting: boolean; + dataset: D2DataSet; + defaultMessage: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + moreThanOneOrgUnitMessage: string; + name: string; + noUserMessage: string; + parserType: + | "KEY_VALUE_PARSER" + | "J2ME_PARSER" + | "ALERT_PARSER" + | "UNREGISTERED_PARSER" + | "TRACKED_ENTITY_REGISTRATION_PARSER" + | "PROGRAM_STAGE_DATAENTRY_PARSER" + | "EVENT_REGISTRATION_PARSER"; + program: D2Program; + programStage: D2ProgramStage; + publicAccess: string; + receivedMessage: string; + separator: string; + sharing: any; + smsCodes: any[]; + specialCharacters: any[]; + successMessage: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroup: D2UserGroup; + userGroupAccesses: D2UserGroupAccess[]; + wrongFormatMessage: string; +}; + +export type D2Section = { + access: D2Access; + attributeValues: D2AttributeValue[]; + categoryCombos: D2CategoryCombo[]; + code: Id; + created: string; + createdBy: D2User; + dataElements: D2DataElement[]; + dataSet: D2DataSet; + description: string; + disableDataElementAutoGroup: boolean; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + greyedFields: D2DataElementOperand[]; + href: string; + id: Id; + indicators: D2Indicator[]; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + showColumnTotals: boolean; + showRowTotals: boolean; + sortOrder: number; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2SqlView = { + access: D2Access; + attributeValues: D2AttributeValue[]; + cacheStrategy: + | "NO_CACHE" + | "CACHE_1_MINUTE" + | "CACHE_5_MINUTES" + | "CACHE_10_MINUTES" + | "CACHE_15_MINUTES" + | "CACHE_30_MINUTES" + | "CACHE_1_HOUR" + | "CACHE_6AM_TOMORROW" + | "CACHE_TWO_WEEKS" + | "RESPECT_SYSTEM_SETTING"; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + sqlQuery: string; + translations: D2Translation[]; + type: "VIEW" | "MATERIALIZED_VIEW" | "QUERY"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2TrackedEntityAttribute = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + code: Id; + confidential: boolean; + created: string; + createdBy: D2User; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayInListNoProgram: boolean; + displayName: string; + displayOnVisitSchedule: boolean; + displayShortName: string; + expression: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldMask: string; + formName: string; + generated: boolean; + href: string; + id: Id; + inherit: boolean; + lastUpdated: string; + lastUpdatedBy: D2User; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + optionSet: D2OptionSet; + optionSetValue: boolean; + orgunitScope: boolean; + pattern: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + skipSynchronization: boolean; + sortOrderInListNoProgram: number; + sortOrderInVisitSchedule: number; + style: D2Style; + translations: D2Translation[]; + unique: boolean; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; +}; + +export type D2TrackedEntityAttributeValue = { + created: string; + lastUpdated: string; + storedBy: string; + trackedEntityAttribute: D2TrackedEntityAttribute; + trackedEntityInstance: D2TrackedEntityInstance; + value: string; +}; + +export type D2TrackedEntityDataElementDimension = { + dataElement: D2DataElement; + filter: string; + legendSet: D2LegendSet; + programStage: D2ProgramStage; +}; + +export type D2TrackedEntityInstance = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdAtClient: string; + createdBy: D2User; + createdByUserInfo: any; + deleted: boolean; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + geometry: any; + href: string; + id: Id; + inactive: boolean; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2User; + lastUpdatedByUserInfo: any; + name: string; + organisationUnit: D2OrganisationUnit; + potentialDuplicate: boolean; + programInstances: D2ProgramInstance[]; + programOwners: any[]; + publicAccess: string; + relationshipItems: any[]; + sharing: any; + storedBy: string; + trackedEntityAttributeValues: D2TrackedEntityAttributeValue[]; + trackedEntityType: D2TrackedEntityType; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2TrackedEntityInstanceFilter = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayName: string; + enrollmentCreatedPeriod: any; + enrollmentStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + eventFilters: any[]; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followup: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + program: D2Program; + publicAccess: string; + sharing: any; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2TrackedEntityProgramIndicatorDimension = { + filter: string; + legendSet: D2LegendSet; + programIndicator: D2ProgramIndicator; +}; + +export type D2TrackedEntityType = { + access: D2Access; + allowAuditLog: boolean; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + maxTeiCountToReturn: number; + minAttributesRequiredToSearch: number; + name: string; + publicAccess: string; + sharing: any; + shortName: string; + style: D2Style; + trackedEntityTypeAttributes: D2TrackedEntityTypeAttribute[]; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; +}; + +export type D2TrackedEntityTypeAttribute = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayInList: boolean; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + mandatory: boolean; + name: string; + publicAccess: string; + searchable: boolean; + sharing: any; + trackedEntityAttribute: D2TrackedEntityAttribute; + trackedEntityType: D2TrackedEntityType; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; +}; + +export type D2User = { + access: D2Access; + attributeValues: D2AttributeValue[]; + avatar: D2FileResource; + birthday: string; + code: Id; + created: string; + createdBy: D2User; + dataViewMaxOrganisationUnitLevel: number; + dataViewOrganisationUnits: D2OrganisationUnit[]; + displayName: string; + education: string; + email: string; + employer: string; + externalAccess: boolean; + facebookMessenger: string; + favorite: boolean; + favorites: string[]; + firstName: string; + gender: string; + href: string; + id: Id; + interests: string; + introduction: string; + jobTitle: string; + languages: string; + lastCheckedInterpretations: string; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + nationality: string; + organisationUnits: D2OrganisationUnit[]; + phoneNumber: string; + publicAccess: string; + sharing: any; + skype: string; + surname: string; + teiSearchOrganisationUnits: D2OrganisationUnit[]; + telegram: string; + translations: D2Translation[]; + twitter: string; + user: D2User; + userAccesses: D2UserAccess[]; + userCredentials: D2UserCredentials; + userGroupAccesses: D2UserGroupAccess[]; + userGroups: D2UserGroup[]; + welcomeMessage: string; + whatsApp: string; +}; + +export type D2UserAccess = { + access: string; + id: string; +}; + +export type D2UserAuthorityGroup = { + access: D2Access; + attributeValues: D2AttributeValue[]; + authorities: string[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + users: D2User[]; +}; + +export type D2UserCredentials = { + access: D2Access; + accountExpiry: string; + attributeValues: D2AttributeValue[]; + catDimensionConstraints: D2Category[]; + code: Id; + cogsDimensionConstraints: D2CategoryOptionGroupSet[]; + created: string; + createdBy: D2User; + disabled: boolean; + displayName: string; + externalAccess: boolean; + externalAuth: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + invitation: boolean; + lastLogin: string; + lastUpdated: string; + lastUpdatedBy: D2User; + ldapId: string; + name: string; + openId: string; + password: string; + passwordLastUpdated: string; + publicAccess: string; + selfRegistered: boolean; + sharing: any; + translations: D2Translation[]; + twoFA: boolean; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userInfo: D2User; + userRoles: D2UserAuthorityGroup[]; + username: string; +}; + +export type D2UserGroup = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + managedByGroups: D2UserGroup[]; + managedGroups: D2UserGroup[]; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + users: D2User[]; +}; + +export type D2UserGroupAccess = { + access: string; + id: string; +}; + +export type D2ValidationNotificationTemplate = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + messageTemplate: string; + name: string; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientUserGroups: D2UserGroup[]; + sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; + sharing: any; + subjectTemplate: string; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + validationRules: D2ValidationRule[]; +}; + +export type D2ValidationResult = { + attributeOptionCombo: D2CategoryOptionCombo; + created: string; + dayInPeriod: number; + id: string; + leftsideValue: number; + notificationSent: boolean; + organisationUnit: D2OrganisationUnit; + period: any; + rightsideValue: number; + validationRule: D2ValidationRule; +}; + +export type D2ValidationRule = { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayInstruction: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + importance: "HIGH" | "MEDIUM" | "LOW"; + instruction: string; + lastUpdated: string; + lastUpdatedBy: D2User; + leftSide: D2Expression; + legendSet: D2LegendSet; + legendSets: D2LegendSet[]; + name: string; + notificationTemplates: D2ValidationNotificationTemplate[]; + operator: + | "equal_to" + | "not_equal_to" + | "greater_than" + | "greater_than_or_equal_to" + | "less_than" + | "less_than_or_equal_to" + | "compulsory_pair" + | "exclusive_pair"; + organisationUnitLevels: number[]; + periodOffset: number; + periodType: string; + publicAccess: string; + rightSide: D2Expression; + sharing: any; + shortName: string; + skipFormValidation: boolean; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + validationRuleGroups: D2ValidationRuleGroup[]; +}; + +export type D2ValidationRuleGroup = { + access: D2Access; + attributeValues: D2AttributeValue[]; + code: Id; + created: string; + createdBy: D2User; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2User; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + validationRules: D2ValidationRule[]; +}; + +export type D2Visualization = { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValues: D2AttributeValue[]; + axes: any[]; + baseLineLabel: string; + baseLineValue: number; + categoryDimensions: D2CategoryDimension[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; + code: Id; + colSubTotals: boolean; + colTotals: boolean; + colorSet: string; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + createdBy: D2User; + cumulativeValues: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimension[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; + displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + displayDescription: string; + displayDomainAxisLabel: string; + displayFormName: string; + displayName: string; + displayRangeAxisLabel: string; + displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; + domainAxisLabel: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + fixColumnHeaders: boolean; + fixRowHeaders: boolean; + fontSize: "LARGE" | "NORMAL" | "SMALL"; + fontStyle: any; + formName: string; + hideEmptyColumns: boolean; + hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; + hideEmptyRows: boolean; + hideLegend: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2Interpretation[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; + lastUpdated: string; + lastUpdatedBy: D2User; + legend: any; + measureCriteria: string; + name: string; + noSpaceBetweenColumns: boolean; + numberType: "VALUE" | "ROW_PERCENTAGE" | "COLUMN_PERCENTAGE"; + optionalAxes: D2Axis[]; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnit[]; + outlierAnalysis: any; + parentGraphMap: D2Map; + percentStackedValues: boolean; + periods: any[]; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; + publicAccess: string; + rangeAxisDecimals: number; + rangeAxisLabel: string; + rangeAxisMaxValue: number; + rangeAxisMinValue: number; + rangeAxisSteps: number; + regression: boolean; + regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; + relativePeriods: any; + reportingParams: D2ReportingParams; + rowDimensions: string[]; + rowSubTotals: boolean; + rowTotals: boolean; + rows: any[]; + series: any[]; + seriesKey: any; + sharing: any; + shortName: string; + showData: boolean; + showDimensionLabels: boolean; + showHierarchy: boolean; + skipRounding: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + targetLineLabel: string; + targetLineValue: number; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + type: + | "COLUMN" + | "STACKED_COLUMN" + | "BAR" + | "STACKED_BAR" + | "LINE" + | "AREA" + | "STACKED_AREA" + | "PIE" + | "RADAR" + | "GAUGE" + | "YEAR_OVER_YEAR_LINE" + | "YEAR_OVER_YEAR_COLUMN" + | "SINGLE_VALUE" + | "PIVOT_TABLE" + | "SCATTER" + | "BUBBLE"; + user: D2User; + userAccesses: D2UserAccess[]; + userGroupAccesses: D2UserGroupAccess[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + visualizationPeriodName: string; + yearlySeries: string[]; +}; + +export interface D2AnalyticsPeriodBoundarySchema { + name: "D2AnalyticsPeriodBoundary"; + model: D2AnalyticsPeriodBoundary; + fields: { + access: D2Access; + analyticsPeriodBoundaryType: + | "BEFORE_START_OF_REPORTING_PERIOD" + | "BEFORE_END_OF_REPORTING_PERIOD" + | "AFTER_START_OF_REPORTING_PERIOD" + | "AFTER_END_OF_REPORTING_PERIOD"; + attributeValues: D2AttributeValueSchema[]; + boundaryTarget: string; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + offsetPeriodType: string; + offsetPeriods: number; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2AnalyticsPeriodBoundary, + | "code" + | "lastUpdated" + | "offsetPeriodType" + | "id" + | "analyticsPeriodBoundaryType" + | "boundaryTarget" + | "lastUpdatedBy" + | "created" + | "offsetPeriods" + >; + $owner: Preset< + D2AnalyticsPeriodBoundary, + | "code" + | "lastUpdated" + | "offsetPeriodType" + | "id" + | "analyticsPeriodBoundaryType" + | "boundaryTarget" + | "lastUpdatedBy" + | "created" + | "offsetPeriods" + >; + }; +} + +export interface D2AnalyticsTableHookSchema { + name: "D2AnalyticsTableHook"; + model: D2AnalyticsTableHook; + fields: { + access: D2Access; + analyticsTableType: + | "DATA_VALUE" + | "COMPLETENESS" + | "COMPLETENESS_TARGET" + | "ORG_UNIT_TARGET" + | "EVENT" + | "ENROLLMENT" + | "VALIDATION_RESULT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + phase: "RESOURCE_TABLE_POPULATED" | "ANALYTICS_TABLE_POPULATED"; + publicAccess: string; + resourceTableType: + | "ORG_UNIT_STRUCTURE" + | "DATA_SET_ORG_UNIT_CATEGORY" + | "CATEGORY_OPTION_COMBO_NAME" + | "DATA_ELEMENT_GROUP_SET_STRUCTURE" + | "INDICATOR_GROUP_SET_STRUCTURE" + | "ORG_UNIT_GROUP_SET_STRUCTURE" + | "CATEGORY_STRUCTURE" + | "DATA_ELEMENT_STRUCTURE" + | "PERIOD_STRUCTURE" + | "DATE_PERIOD_STRUCTURE" + | "DATA_ELEMENT_CATEGORY_OPTION_COMBO" + | "DATA_APPROVAL_REMAP_LEVEL" + | "DATA_APPROVAL_MIN_LEVEL"; + sharing: any; + sql: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2AnalyticsTableHook, + | "code" + | "analyticsTableType" + | "sql" + | "lastUpdated" + | "id" + | "phase" + | "lastUpdatedBy" + | "created" + | "name" + | "resourceTableType" + >; + $owner: Preset< + D2AnalyticsTableHook, + | "code" + | "analyticsTableType" + | "sql" + | "lastUpdated" + | "id" + | "phase" + | "lastUpdatedBy" + | "created" + | "name" + | "resourceTableType" + >; + }; +} + +export interface D2ApiTokenSchema { + name: "D2ApiToken"; + model: D2ApiToken; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + attributes: any[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + expire: number; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + key: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + type: "PERSONAL_ACCESS_TOKEN"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + version: number; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ApiToken, + | "code" + | "type" + | "lastUpdated" + | "id" + | "key" + | "lastUpdatedBy" + | "created" + | "sharing" + | "version" + | "createdBy" + | "expire" + | "attributes" + >; + $owner: Preset< + D2ApiToken, + | "code" + | "type" + | "lastUpdated" + | "id" + | "key" + | "lastUpdatedBy" + | "created" + | "sharing" + | "version" + | "createdBy" + | "expire" + | "attributes" + >; + }; +} + +export interface D2AttributeSchema { + name: "D2Attribute"; + model: D2Attribute; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + categoryAttribute: boolean; + categoryOptionAttribute: boolean; + categoryOptionComboAttribute: boolean; + categoryOptionGroupAttribute: boolean; + categoryOptionGroupSetAttribute: boolean; + code: Id; + constantAttribute: boolean; + created: string; + createdBy: D2UserSchema; + dataElementAttribute: boolean; + dataElementGroupAttribute: boolean; + dataElementGroupSetAttribute: boolean; + dataSetAttribute: boolean; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + documentAttribute: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + indicatorAttribute: boolean; + indicatorGroupAttribute: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSetAttribute: boolean; + mandatory: boolean; + name: string; + optionAttribute: boolean; + optionSet: D2OptionSetSchema; + optionSetAttribute: boolean; + organisationUnitAttribute: boolean; + organisationUnitGroupAttribute: boolean; + organisationUnitGroupSetAttribute: boolean; + programAttribute: boolean; + programIndicatorAttribute: boolean; + programStageAttribute: boolean; + publicAccess: string; + sectionAttribute: boolean; + sharing: any; + shortName: string; + sortOrder: number; + sqlViewAttribute: boolean; + trackedEntityAttributeAttribute: boolean; + trackedEntityTypeAttribute: boolean; + translations: D2Translation[]; + unique: boolean; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userAttribute: boolean; + userGroupAccesses: D2UserGroupAccessSchema[]; + userGroupAttribute: boolean; + validationRuleAttribute: boolean; + validationRuleGroupAttribute: boolean; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Attribute, + | "indicatorAttribute" + | "indicatorGroupAttribute" + | "userGroupAttribute" + | "dataElementAttribute" + | "lastUpdated" + | "constantAttribute" + | "translations" + | "valueType" + | "categoryOptionAttribute" + | "id" + | "optionSetAttribute" + | "lastUpdatedBy" + | "sqlViewAttribute" + | "created" + | "legendSetAttribute" + | "sharing" + | "trackedEntityAttributeAttribute" + | "organisationUnitAttribute" + | "dataSetAttribute" + | "documentAttribute" + | "unique" + | "sortOrder" + | "name" + | "validationRuleGroupAttribute" + | "shortName" + | "dataElementGroupAttribute" + | "sectionAttribute" + | "trackedEntityTypeAttribute" + | "code" + | "userAttribute" + | "description" + | "mandatory" + | "categoryOptionGroupAttribute" + | "programStageAttribute" + | "programAttribute" + | "optionSet" + | "categoryAttribute" + | "categoryOptionComboAttribute" + | "categoryOptionGroupSetAttribute" + | "validationRuleAttribute" + | "programIndicatorAttribute" + | "organisationUnitGroupAttribute" + | "dataElementGroupSetAttribute" + | "organisationUnitGroupSetAttribute" + | "createdBy" + | "optionAttribute" + >; + $owner: Preset< + D2Attribute, + | "indicatorAttribute" + | "indicatorGroupAttribute" + | "userGroupAttribute" + | "dataElementAttribute" + | "lastUpdated" + | "constantAttribute" + | "translations" + | "valueType" + | "categoryOptionAttribute" + | "id" + | "optionSetAttribute" + | "lastUpdatedBy" + | "sqlViewAttribute" + | "created" + | "legendSetAttribute" + | "sharing" + | "trackedEntityAttributeAttribute" + | "organisationUnitAttribute" + | "dataSetAttribute" + | "documentAttribute" + | "unique" + | "sortOrder" + | "name" + | "validationRuleGroupAttribute" + | "shortName" + | "dataElementGroupAttribute" + | "sectionAttribute" + | "trackedEntityTypeAttribute" + | "code" + | "userAttribute" + | "description" + | "mandatory" + | "categoryOptionGroupAttribute" + | "programStageAttribute" + | "programAttribute" + | "optionSet" + | "categoryAttribute" + | "categoryOptionComboAttribute" + | "categoryOptionGroupSetAttribute" + | "validationRuleAttribute" + | "programIndicatorAttribute" + | "organisationUnitGroupAttribute" + | "dataElementGroupSetAttribute" + | "organisationUnitGroupSetAttribute" + | "createdBy" + | "optionAttribute" + >; + }; +} + +export interface D2AttributeValueSchema { + name: "D2AttributeValue"; + model: D2AttributeValue; + fields: { attribute: D2AttributeSchema; value: string }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2CategorySchema { + name: "D2Category"; + model: D2Category; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueSchema[]; + categoryCombos: D2CategoryComboSchema[]; + categoryOptions: D2CategoryOptionSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionItemKeywords: any; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + name: string; + programStage: D2ProgramStageSchema; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Category, + | "dataDimensionType" + | "code" + | "lastUpdated" + | "translations" + | "categoryCombos" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "dataDimension" + | "shortName" + >; + $owner: Preset< + D2Category, + | "dataDimensionType" + | "code" + | "lastUpdated" + | "translations" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "dataDimension" + | "shortName" + >; + }; +} + +export interface D2CategoryComboSchema { + name: "D2CategoryCombo"; + model: D2CategoryCombo; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + categories: D2CategorySchema[]; + categoryOptionCombos: D2CategoryOptionComboSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + isDefault: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + skipTotal: boolean; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryCombo, + | "dataDimensionType" + | "code" + | "lastUpdated" + | "translations" + | "id" + | "categories" + | "lastUpdatedBy" + | "created" + | "sharing" + | "categoryOptionCombos" + | "createdBy" + | "name" + | "skipTotal" + >; + $owner: Preset< + D2CategoryCombo, + | "dataDimensionType" + | "code" + | "lastUpdated" + | "translations" + | "id" + | "categories" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "name" + | "skipTotal" + >; + }; +} + +export interface D2CategoryDimensionSchema { + name: "D2CategoryDimension"; + model: D2CategoryDimension; + fields: { category: D2CategorySchema; categoryOptions: any }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2CategoryOptionSchema { + name: "D2CategoryOption"; + model: D2CategoryOption; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + categories: D2CategorySchema[]; + categoryOptionCombos: D2CategoryOptionComboSchema[]; + categoryOptionGroups: D2CategoryOptionGroupSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + isDefault: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + organisationUnits: D2OrganisationUnitSchema[]; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + startDate: string; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryOption, + | "code" + | "endDate" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "categories" + | "organisationUnits" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "categoryOptionCombos" + | "categoryOptionGroups" + | "createdBy" + | "name" + | "style" + | "shortName" + | "startDate" + >; + $owner: Preset< + D2CategoryOption, + | "code" + | "endDate" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "organisationUnits" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "style" + | "shortName" + | "startDate" + >; + }; +} + +export interface D2CategoryOptionComboSchema { + name: "D2CategoryOptionCombo"; + model: D2CategoryOptionCombo; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + categoryCombo: D2CategoryComboSchema; + categoryOptions: D2CategoryOptionSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + ignoreApproval: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryOptionCombo, + | "code" + | "lastUpdated" + | "ignoreApproval" + | "categoryCombo" + | "translations" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "name" + >; + $owner: Preset< + D2CategoryOptionCombo, + | "code" + | "lastUpdated" + | "ignoreApproval" + | "categoryCombo" + | "translations" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "name" + >; + }; +} + +export interface D2CategoryOptionGroupSchema { + name: "D2CategoryOptionGroup"; + model: D2CategoryOptionGroup; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + categoryOptions: D2CategoryOptionSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + groupSets: D2CategoryOptionGroupSetSchema[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryOptionGroup, + | "dataDimensionType" + | "code" + | "lastUpdated" + | "translations" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "groupSets" + | "sharing" + | "createdBy" + | "name" + | "shortName" + >; + $owner: Preset< + D2CategoryOptionGroup, + | "dataDimensionType" + | "code" + | "lastUpdated" + | "translations" + | "id" + | "categoryOptions" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "shortName" + >; + }; +} + +export interface D2CategoryOptionGroupSetSchema { + name: "D2CategoryOptionGroupSet"; + model: D2CategoryOptionGroupSet; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueSchema[]; + categoryOptionGroups: D2CategoryOptionGroupSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionItemKeywords: any; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + name: string; + programStage: D2ProgramStageSchema; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryOptionGroupSet, + | "dataDimensionType" + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "categoryOptionGroups" + | "createdBy" + | "name" + | "dataDimension" + >; + $owner: Preset< + D2CategoryOptionGroupSet, + | "dataDimensionType" + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "categoryOptionGroups" + | "createdBy" + | "name" + | "dataDimension" + >; + }; +} + +export interface D2CategoryOptionGroupSetDimensionSchema { + name: "D2CategoryOptionGroupSetDimension"; + model: D2CategoryOptionGroupSetDimension; + fields: { categoryOptionGroupSet: D2CategoryOptionGroupSetSchema; categoryOptionGroups: any }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2CategoryOptionGroupSetDimension, + "categoryOptionGroups" | "categoryOptionGroupSet" + >; + $owner: Preset< + D2CategoryOptionGroupSetDimension, + "categoryOptionGroups" | "categoryOptionGroupSet" + >; + }; +} + +export interface D2ConstantSchema { + name: "D2Constant"; + model: D2Constant; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + value: number; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Constant, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "value" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "shortName" + >; + $owner: Preset< + D2Constant, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "value" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "shortName" + >; + }; +} + +export interface D2DashboardSchema { + name: "D2Dashboard"; + model: D2Dashboard; + fields: { + access: D2Access; + allowedFilters: string[]; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dashboardItems: D2DashboardItemSchema[]; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + itemConfig: any; + itemCount: number; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + layout: any; + name: string; + publicAccess: string; + restrictFilters: boolean; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Dashboard, + | "favorites" + | "code" + | "description" + | "restrictFilters" + | "itemConfig" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "layout" + | "dashboardItems" + | "createdBy" + | "name" + | "allowedFilters" + >; + $owner: Preset< + D2Dashboard, + | "favorites" + | "code" + | "description" + | "restrictFilters" + | "itemConfig" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "layout" + | "dashboardItems" + | "createdBy" + | "name" + | "allowedFilters" + >; + }; +} + +export interface D2DashboardItemSchema { + name: "D2DashboardItem"; + model: D2DashboardItem; + fields: { + access: D2Access; + appKey: string; + attributeValues: D2AttributeValueSchema[]; + code: Id; + contentCount: number; + created: string; + createdBy: D2UserSchema; + displayName: string; + eventChart: D2EventChartSchema; + eventReport: D2EventReportSchema; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + height: number; + href: string; + id: Id; + interpretationCount: number; + interpretationLikeCount: number; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + map: D2MapSchema; + messages: boolean; + name: string; + publicAccess: string; + reports: D2ReportSchema[]; + resources: D2DocumentSchema[]; + shape: "NORMAL" | "DOUBLE_WIDTH" | "FULL_WIDTH"; + sharing: any; + text: string; + translations: D2Translation[]; + type: + | "VISUALIZATION" + | "EVENT_CHART" + | "MAP" + | "EVENT_REPORT" + | "USERS" + | "REPORTS" + | "RESOURCES" + | "TEXT" + | "MESSAGES" + | "APP"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + users: D2UserSchema[]; + visualization: D2VisualizationSchema; + width: number; + x: number; + y: number; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DashboardItem, + | "reports" + | "visualization" + | "code" + | "lastUpdated" + | "translations" + | "appKey" + | "id" + | "text" + | "map" + | "height" + | "lastUpdatedBy" + | "shape" + | "created" + | "resources" + | "users" + | "eventReport" + | "eventChart" + | "width" + | "x" + | "messages" + | "y" + >; + $owner: Preset< + D2DashboardItem, + | "reports" + | "visualization" + | "code" + | "lastUpdated" + | "translations" + | "appKey" + | "id" + | "text" + | "map" + | "height" + | "lastUpdatedBy" + | "shape" + | "created" + | "resources" + | "users" + | "eventReport" + | "eventChart" + | "width" + | "x" + | "messages" + | "y" + >; + }; +} + +export interface D2DataApprovalLevelSchema { + name: "D2DataApprovalLevel"; + model: D2DataApprovalLevel; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + categoryOptionGroupSet: D2CategoryOptionGroupSetSchema; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + level: number; + name: string; + orgUnitLevel: number; + orgUnitLevelName: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataApprovalLevel, + | "categoryOptionGroupSet" + | "code" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "level" + | "created" + | "sharing" + | "createdBy" + | "name" + | "orgUnitLevel" + >; + $owner: Preset< + D2DataApprovalLevel, + | "categoryOptionGroupSet" + | "code" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "level" + | "created" + | "sharing" + | "createdBy" + | "name" + | "orgUnitLevel" + >; + }; +} + +export interface D2DataApprovalWorkflowSchema { + name: "D2DataApprovalWorkflow"; + model: D2DataApprovalWorkflow; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + categoryCombo: D2CategoryComboSchema; + code: Id; + created: string; + createdBy: D2UserSchema; + dataApprovalLevels: D2DataApprovalLevelSchema[]; + dataSets: D2DataSetSchema[]; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + periodType: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataApprovalWorkflow, + | "code" + | "dataApprovalLevels" + | "lastUpdated" + | "categoryCombo" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "periodType" + | "createdBy" + | "name" + | "dataSets" + >; + $owner: Preset< + D2DataApprovalWorkflow, + | "code" + | "dataApprovalLevels" + | "lastUpdated" + | "categoryCombo" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "periodType" + | "createdBy" + | "name" + >; + }; +} + +export interface D2DataElementSchema { + name: "D2DataElement"; + model: D2DataElement; + fields: { + access: D2Access; + aggregationLevels: number[]; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + categoryCombo: D2CategoryComboSchema; + code: Id; + commentOptionSet: D2OptionSetSchema; + created: string; + createdBy: D2UserSchema; + dataElementGroups: D2DataElementGroupSchema[]; + dataSetElements: D2DataSetElementSchema[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + domainType: "AGGREGATE" | "TRACKER"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldMask: string; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + optionSet: D2OptionSetSchema; + optionSetValue: boolean; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + style: D2Style; + translations: D2Translation[]; + url: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + valueTypeOptions: any; + zeroIsSignificant: boolean; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataElement, + | "aggregationType" + | "code" + | "domainType" + | "dataSetElements" + | "description" + | "lastUpdated" + | "optionSet" + | "categoryCombo" + | "translations" + | "valueType" + | "formName" + | "commentOptionSet" + | "id" + | "fieldMask" + | "lastUpdatedBy" + | "valueTypeOptions" + | "created" + | "dataElementGroups" + | "attributeValues" + | "sharing" + | "zeroIsSignificant" + | "url" + | "createdBy" + | "name" + | "legendSets" + | "aggregationLevels" + | "style" + | "shortName" + >; + $owner: Preset< + D2DataElement, + | "aggregationType" + | "code" + | "domainType" + | "description" + | "lastUpdated" + | "optionSet" + | "categoryCombo" + | "translations" + | "valueType" + | "formName" + | "commentOptionSet" + | "id" + | "fieldMask" + | "lastUpdatedBy" + | "valueTypeOptions" + | "created" + | "attributeValues" + | "sharing" + | "zeroIsSignificant" + | "url" + | "createdBy" + | "name" + | "legendSets" + | "aggregationLevels" + | "style" + | "shortName" + >; + }; +} + +export interface D2DataElementGroupSchema { + name: "D2DataElementGroup"; + model: D2DataElementGroup; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataElements: D2DataElementSchema[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + groupSets: D2DataElementGroupSetSchema[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataElementGroup, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "dataElements" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "groupSets" + | "sharing" + | "createdBy" + | "name" + | "shortName" + >; + $owner: Preset< + D2DataElementGroup, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "dataElements" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "shortName" + >; + }; +} + +export interface D2DataElementGroupSetSchema { + name: "D2DataElementGroupSet"; + model: D2DataElementGroupSet; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueSchema[]; + code: Id; + compulsory: boolean; + created: string; + createdBy: D2UserSchema; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + dataElementGroups: D2DataElementGroupSchema[]; + description: string; + dimension: string; + dimensionItemKeywords: any; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + name: string; + programStage: D2ProgramStageSchema; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataElementGroupSet, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "dataElementGroups" + | "sharing" + | "compulsory" + | "createdBy" + | "name" + | "dataDimension" + | "shortName" + >; + $owner: Preset< + D2DataElementGroupSet, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "dataElementGroups" + | "sharing" + | "compulsory" + | "createdBy" + | "name" + | "dataDimension" + | "shortName" + >; + }; +} + +export interface D2DataElementGroupSetDimensionSchema { + name: "D2DataElementGroupSetDimension"; + model: D2DataElementGroupSetDimension; + fields: { dataElementGroupSet: D2DataElementGroupSetSchema; dataElementGroups: any }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataElementGroupSetDimension, + "dataElementGroups" | "dataElementGroupSet" + >; + $owner: Preset; + }; +} + +export interface D2DataElementOperandSchema { + name: "D2DataElementOperand"; + model: D2DataElementOperand; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeOptionCombo: D2CategoryOptionComboSchema; + attributeValues: D2AttributeValueSchema[]; + categoryOptionCombo: D2CategoryOptionComboSchema; + code: Id; + created: string; + createdBy: D2UserSchema; + dataElement: D2DataElementSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2DataEntryFormSchema { + name: "D2DataEntryForm"; + model: D2DataEntryForm; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + format: number; + href: string; + htmlCode: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + style: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataEntryForm, + | "code" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "htmlCode" + | "format" + | "name" + | "style" + >; + $owner: Preset< + D2DataEntryForm, + | "code" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "htmlCode" + | "format" + | "name" + | "style" + >; + }; +} + +export interface D2DataInputPeriodSchema { + name: "D2DataInputPeriod"; + model: D2DataInputPeriod; + fields: { closingDate: string; openingDate: string; period: any }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2DataSetSchema { + name: "D2DataSet"; + model: D2DataSet; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + categoryCombo: D2CategoryComboSchema; + code: Id; + compulsoryDataElementOperands: D2DataElementOperandSchema[]; + compulsoryFieldsCompleteOnly: boolean; + created: string; + createdBy: D2UserSchema; + dataElementDecoration: boolean; + dataEntryForm: D2DataEntryFormSchema; + dataInputPeriods: D2DataInputPeriodSchema[]; + dataSetElements: D2DataSetElementSchema[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + expiryDays: number; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldCombinationRequired: boolean; + formName: string; + formType: "DEFAULT" | "CUSTOM" | "SECTION" | "SECTION_MULTIORG"; + href: string; + id: Id; + indicators: D2IndicatorSchema[]; + interpretations: D2InterpretationSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + mobile: boolean; + name: string; + noValueRequiresComment: boolean; + notificationRecipients: D2UserGroupSchema; + notifyCompletingUser: boolean; + openFuturePeriods: number; + openPeriodsAfterCoEndDate: number; + organisationUnits: D2OrganisationUnitSchema[]; + periodOffset: number; + periodType: string; + publicAccess: string; + renderAsTabs: boolean; + renderHorizontally: boolean; + sections: D2SectionSchema[]; + sharing: any; + shortName: string; + skipOffline: boolean; + style: D2Style; + timelyDays: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + validCompleteOnly: boolean; + version: number; + workflow: D2DataApprovalWorkflowSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataSet, + | "dataEntryForm" + | "validCompleteOnly" + | "dataSetElements" + | "skipOffline" + | "compulsoryFieldsCompleteOnly" + | "lastUpdated" + | "categoryCombo" + | "translations" + | "dataInputPeriods" + | "id" + | "interpretations" + | "lastUpdatedBy" + | "workflow" + | "created" + | "attributeValues" + | "indicators" + | "sharing" + | "version" + | "sections" + | "timelyDays" + | "name" + | "legendSets" + | "style" + | "notificationRecipients" + | "shortName" + | "code" + | "dataElementDecoration" + | "notifyCompletingUser" + | "noValueRequiresComment" + | "compulsoryDataElementOperands" + | "description" + | "fieldCombinationRequired" + | "formName" + | "organisationUnits" + | "renderHorizontally" + | "renderAsTabs" + | "mobile" + | "openPeriodsAfterCoEndDate" + | "periodType" + | "createdBy" + | "openFuturePeriods" + | "expiryDays" + >; + $owner: Preset< + D2DataSet, + | "dataEntryForm" + | "validCompleteOnly" + | "dataSetElements" + | "skipOffline" + | "compulsoryFieldsCompleteOnly" + | "lastUpdated" + | "categoryCombo" + | "translations" + | "dataInputPeriods" + | "id" + | "lastUpdatedBy" + | "workflow" + | "created" + | "attributeValues" + | "indicators" + | "sharing" + | "version" + | "timelyDays" + | "name" + | "legendSets" + | "style" + | "notificationRecipients" + | "shortName" + | "code" + | "dataElementDecoration" + | "notifyCompletingUser" + | "noValueRequiresComment" + | "compulsoryDataElementOperands" + | "description" + | "fieldCombinationRequired" + | "formName" + | "organisationUnits" + | "renderHorizontally" + | "renderAsTabs" + | "mobile" + | "openPeriodsAfterCoEndDate" + | "periodType" + | "createdBy" + | "openFuturePeriods" + | "expiryDays" + >; + }; +} + +export interface D2DataSetElementSchema { + name: "D2DataSetElement"; + model: D2DataSetElement; + fields: { + categoryCombo: D2CategoryComboSchema; + dataElement: D2DataElementSchema; + dataSet: D2DataSetSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2DataSetNotificationTemplateSchema { + name: "D2DataSetNotificationTemplate"; + model: D2DataSetNotificationTemplate; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataSetNotificationTrigger: "DATA_SET_COMPLETION" | "SCHEDULED_DAYS"; + dataSets: D2DataSetSchema[]; + deliveryChannels: never[]; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + messageTemplate: string; + name: string; + notificationRecipient: "ORGANISATION_UNIT_CONTACT" | "USER_GROUP"; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientUserGroup: D2UserGroupSchema; + relativeScheduledDays: number; + sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; + sharing: any; + subjectTemplate: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2DataSetNotificationTemplate, + | "code" + | "lastUpdated" + | "translations" + | "relativeScheduledDays" + | "id" + | "subjectTemplate" + | "dataSetNotificationTrigger" + | "sendStrategy" + | "lastUpdatedBy" + | "deliveryChannels" + | "created" + | "notifyUsersInHierarchyOnly" + | "notificationRecipient" + | "notifyParentOrganisationUnitOnly" + | "name" + | "dataSets" + | "recipientUserGroup" + | "messageTemplate" + >; + $owner: Preset< + D2DataSetNotificationTemplate, + | "code" + | "lastUpdated" + | "translations" + | "relativeScheduledDays" + | "id" + | "subjectTemplate" + | "dataSetNotificationTrigger" + | "sendStrategy" + | "lastUpdatedBy" + | "deliveryChannels" + | "created" + | "notifyUsersInHierarchyOnly" + | "notificationRecipient" + | "notifyParentOrganisationUnitOnly" + | "name" + | "dataSets" + | "recipientUserGroup" + | "messageTemplate" + >; + }; +} + +export interface D2DocumentSchema { + name: "D2Document"; + model: D2Document; + fields: { + access: D2Access; + attachment: boolean; + attributeValues: D2AttributeValueSchema[]; + code: Id; + contentType: string; + created: string; + createdBy: D2UserSchema; + displayName: string; + external: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + url: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Document, + | "code" + | "lastUpdated" + | "attachment" + | "translations" + | "id" + | "contentType" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "url" + | "external" + | "createdBy" + | "name" + >; + $owner: Preset< + D2Document, + | "code" + | "lastUpdated" + | "attachment" + | "translations" + | "id" + | "contentType" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "url" + | "external" + | "createdBy" + | "name" + >; + }; +} + +export interface D2EventChartSchema { + name: "D2EventChart"; + model: D2EventChart; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValueDimension: D2TrackedEntityAttributeSchema; + attributeValues: D2AttributeValueSchema[]; + baseLineLabel: string; + baseLineValue: number; + categoryDimensions: D2CategoryDimensionSchema[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; + code: Id; + collapseDataDimensions: boolean; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + createdBy: D2UserSchema; + cumulativeValues: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; + dataElementValueDimension: D2DataElementSchema; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; + displayDescription: string; + displayDomainAxisLabel: string; + displayFormName: string; + displayName: string; + displayRangeAxisLabel: string; + displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; + domainAxisLabel: string; + endDate: string; + eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + formName: string; + hideEmptyRowItems: + | "NONE" + | "BEFORE_FIRST" + | "AFTER_LAST" + | "BEFORE_FIRST_AFTER_LAST" + | "ALL"; + hideLegend: boolean; + hideNaData: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; + legendSet: D2LegendSetSchema; + name: string; + noSpaceBetweenColumns: boolean; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnitSchema[]; + outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; + parentGraphMap: D2MapSchema; + percentStackedValues: boolean; + periods: any[]; + program: D2ProgramSchema; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; + programStage: D2ProgramStageSchema; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + rangeAxisDecimals: number; + rangeAxisLabel: string; + rangeAxisMaxValue: number; + rangeAxisMinValue: number; + rangeAxisSteps: number; + regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; + relativePeriods: any; + rowDimensions: string[]; + rows: any[]; + sharing: any; + shortName: string; + showData: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + targetLineLabel: string; + targetLineValue: number; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + type: + | "COLUMN" + | "STACKED_COLUMN" + | "BAR" + | "STACKED_BAR" + | "LINE" + | "AREA" + | "STACKED_AREA" + | "PIE" + | "RADAR" + | "GAUGE" + | "YEAR_OVER_YEAR_LINE" + | "YEAR_OVER_YEAR_COLUMN" + | "SINGLE_VALUE" + | "PIVOT_TABLE" + | "SCATTER" + | "BUBBLE"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + value: any; + yearlySeries: string[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2EventChart, + | "orgUnitField" + | "endDate" + | "baseLineValue" + | "userOrganisationUnitChildren" + | "program" + | "type" + | "lastUpdated" + | "attributeDimensions" + | "translations" + | "userOrganisationUnit" + | "filterDimensions" + | "id" + | "interpretations" + | "attributeValueDimension" + | "domainAxisLabel" + | "subscribers" + | "cumulativeValues" + | "sortOrder" + | "subtitle" + | "rangeAxisDecimals" + | "startDate" + | "collapseDataDimensions" + | "userOrganisationUnitGrandChildren" + | "percentStackedValues" + | "noSpaceBetweenColumns" + | "dataElementDimensions" + | "rangeAxisSteps" + | "periods" + | "categoryDimensions" + | "hideTitle" + | "rowDimensions" + | "eventStatus" + | "showData" + | "hideNaData" + | "itemOrganisationUnitGroups" + | "lastUpdatedBy" + | "programIndicatorDimensions" + | "created" + | "rangeAxisLabel" + | "regressionType" + | "columnDimensions" + | "completedOnly" + | "sharing" + | "name" + | "programStatus" + | "hideEmptyRowItems" + | "favorites" + | "aggregationType" + | "code" + | "categoryOptionGroupSetDimensions" + | "hideSubtitle" + | "outputType" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "hideLegend" + | "rangeAxisMinValue" + | "organisationUnitLevels" + | "dataElementValueDimension" + | "relativePeriods" + | "targetLineLabel" + | "organisationUnits" + | "programStage" + | "timeField" + | "targetLineValue" + | "baseLineLabel" + | "createdBy" + | "userOrgUnitType" + | "rangeAxisMaxValue" + >; + $owner: Preset< + D2EventChart, + | "orgUnitField" + | "endDate" + | "baseLineValue" + | "userOrganisationUnitChildren" + | "program" + | "type" + | "lastUpdated" + | "attributeDimensions" + | "translations" + | "userOrganisationUnit" + | "filterDimensions" + | "id" + | "attributeValueDimension" + | "domainAxisLabel" + | "subscribers" + | "cumulativeValues" + | "sortOrder" + | "subtitle" + | "rangeAxisDecimals" + | "startDate" + | "collapseDataDimensions" + | "userOrganisationUnitGrandChildren" + | "percentStackedValues" + | "noSpaceBetweenColumns" + | "dataElementDimensions" + | "rangeAxisSteps" + | "periods" + | "categoryDimensions" + | "hideTitle" + | "rowDimensions" + | "eventStatus" + | "showData" + | "hideNaData" + | "itemOrganisationUnitGroups" + | "lastUpdatedBy" + | "programIndicatorDimensions" + | "created" + | "rangeAxisLabel" + | "regressionType" + | "columnDimensions" + | "completedOnly" + | "sharing" + | "name" + | "programStatus" + | "hideEmptyRowItems" + | "favorites" + | "aggregationType" + | "code" + | "categoryOptionGroupSetDimensions" + | "hideSubtitle" + | "outputType" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "hideLegend" + | "rangeAxisMinValue" + | "organisationUnitLevels" + | "dataElementValueDimension" + | "relativePeriods" + | "targetLineLabel" + | "organisationUnits" + | "programStage" + | "timeField" + | "targetLineValue" + | "baseLineLabel" + | "createdBy" + | "userOrgUnitType" + | "rangeAxisMaxValue" + >; + }; +} + +export interface D2EventReportSchema { + name: "D2EventReport"; + model: D2EventReport; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValueDimension: D2TrackedEntityAttributeSchema; + attributeValues: D2AttributeValueSchema[]; + categoryDimensions: D2CategoryDimensionSchema[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; + code: Id; + colSubTotals: boolean; + colTotals: boolean; + collapseDataDimensions: boolean; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + createdBy: D2UserSchema; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; + dataElementValueDimension: D2DataElementSchema; + dataType: "AGGREGATED_VALUES" | "EVENTS"; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + displaySubtitle: string; + displayTitle: string; + endDate: string; + eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + fontSize: "LARGE" | "NORMAL" | "SMALL"; + formName: string; + hideEmptyRows: boolean; + hideNaData: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnitSchema[]; + outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; + parentGraphMap: D2MapSchema; + periods: any[]; + program: D2ProgramSchema; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; + programStage: D2ProgramStageSchema; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + relativePeriods: any; + rowDimensions: string[]; + rowSubTotals: boolean; + rowTotals: boolean; + rows: any[]; + sharing: any; + shortName: string; + showDimensionLabels: boolean; + showHierarchy: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + value: any; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2EventReport, + | "orgUnitField" + | "endDate" + | "userOrganisationUnitChildren" + | "program" + | "lastUpdated" + | "hideEmptyRows" + | "attributeDimensions" + | "translations" + | "userOrganisationUnit" + | "filterDimensions" + | "id" + | "rowSubTotals" + | "hideNaData" + | "interpretations" + | "itemOrganisationUnitGroups" + | "displayDensity" + | "attributeValueDimension" + | "lastUpdatedBy" + | "programIndicatorDimensions" + | "created" + | "subscribers" + | "dataType" + | "columnDimensions" + | "completedOnly" + | "sharing" + | "colTotals" + | "showDimensionLabels" + | "subtitle" + | "sortOrder" + | "name" + | "fontSize" + | "topLimit" + | "startDate" + | "collapseDataDimensions" + | "programStatus" + | "favorites" + | "aggregationType" + | "code" + | "categoryOptionGroupSetDimensions" + | "userOrganisationUnitGrandChildren" + | "hideSubtitle" + | "outputType" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "organisationUnitLevels" + | "colSubTotals" + | "dataElementValueDimension" + | "relativePeriods" + | "dataElementDimensions" + | "periods" + | "organisationUnits" + | "categoryDimensions" + | "showHierarchy" + | "programStage" + | "rowTotals" + | "timeField" + | "digitGroupSeparator" + | "hideTitle" + | "rowDimensions" + | "createdBy" + | "eventStatus" + | "userOrgUnitType" + >; + $owner: Preset< + D2EventReport, + | "orgUnitField" + | "endDate" + | "userOrganisationUnitChildren" + | "program" + | "lastUpdated" + | "hideEmptyRows" + | "attributeDimensions" + | "translations" + | "userOrganisationUnit" + | "filterDimensions" + | "id" + | "rowSubTotals" + | "hideNaData" + | "itemOrganisationUnitGroups" + | "displayDensity" + | "attributeValueDimension" + | "lastUpdatedBy" + | "programIndicatorDimensions" + | "created" + | "subscribers" + | "dataType" + | "columnDimensions" + | "completedOnly" + | "sharing" + | "colTotals" + | "showDimensionLabels" + | "subtitle" + | "sortOrder" + | "name" + | "fontSize" + | "topLimit" + | "startDate" + | "collapseDataDimensions" + | "programStatus" + | "favorites" + | "aggregationType" + | "code" + | "categoryOptionGroupSetDimensions" + | "userOrganisationUnitGrandChildren" + | "hideSubtitle" + | "outputType" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "organisationUnitLevels" + | "colSubTotals" + | "dataElementValueDimension" + | "relativePeriods" + | "dataElementDimensions" + | "periods" + | "organisationUnits" + | "categoryDimensions" + | "showHierarchy" + | "programStage" + | "rowTotals" + | "timeField" + | "digitGroupSeparator" + | "hideTitle" + | "rowDimensions" + | "createdBy" + | "eventStatus" + | "userOrgUnitType" + >; + }; +} + +export interface D2ExpressionSchema { + name: "D2Expression"; + model: D2Expression; + fields: { + description: string; + displayDescription: string; + expression: string; + missingValueStrategy: + | "SKIP_IF_ANY_VALUE_MISSING" + | "SKIP_IF_ALL_VALUES_MISSING" + | "NEVER_SKIP"; + slidingWindow: boolean; + translations: D2Translation[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Expression, + "expression" | "translations" | "description" | "missingValueStrategy" | "slidingWindow" + >; + $owner: Preset< + D2Expression, + "expression" | "translations" | "description" | "missingValueStrategy" | "slidingWindow" + >; + }; +} + +export interface D2ExternalFileResourceSchema { + name: "D2ExternalFileResource"; + model: D2ExternalFileResource; + fields: { + access: D2Access; + accessToken: string; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + expires: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fileResource: D2FileResourceSchema; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ExternalFileResource, + | "expires" + | "code" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "created" + | "accessToken" + | "fileResource" + >; + $owner: Preset< + D2ExternalFileResource, + | "expires" + | "code" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "created" + | "accessToken" + | "fileResource" + >; + }; +} + +export interface D2ExternalMapLayerSchema { + name: "D2ExternalMapLayer"; + model: D2ExternalMapLayer; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + attribution: string; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + imageFormat: "PNG" | "JPG"; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + layers: string; + legendSet: D2LegendSetSchema; + legendSetUrl: string; + mapLayerPosition: "BASEMAP" | "OVERLAY"; + mapService: "WMS" | "TMS" | "XYZ"; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + url: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ExternalMapLayer, + | "imageFormat" + | "code" + | "legendSetUrl" + | "mapService" + | "lastUpdated" + | "translations" + | "layers" + | "id" + | "lastUpdatedBy" + | "created" + | "mapLayerPosition" + | "sharing" + | "url" + | "createdBy" + | "name" + | "legendSet" + | "attribution" + >; + $owner: Preset< + D2ExternalMapLayer, + | "imageFormat" + | "code" + | "legendSetUrl" + | "mapService" + | "lastUpdated" + | "translations" + | "layers" + | "id" + | "lastUpdatedBy" + | "created" + | "mapLayerPosition" + | "sharing" + | "url" + | "createdBy" + | "name" + | "legendSet" + | "attribution" + >; + }; +} + +export interface D2FileResourceSchema { + name: "D2FileResource"; + model: D2FileResource; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + contentLength: string; + contentMd5: string; + contentType: string; + created: string; + createdBy: D2UserSchema; + displayName: string; + domain: + | "DATA_VALUE" + | "PUSH_ANALYSIS" + | "DOCUMENT" + | "MESSAGE_ATTACHMENT" + | "USER_AVATAR" + | "ORG_UNIT"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + hasMultipleStorageFiles: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + storageStatus: "NONE" | "PENDING" | "FAILED" | "STORED"; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2FileResource, + | "contentMd5" + | "code" + | "lastUpdated" + | "id" + | "contentType" + | "lastUpdatedBy" + | "created" + | "createdBy" + | "domain" + | "hasMultipleStorageFiles" + | "name" + | "contentLength" + >; + $owner: Preset< + D2FileResource, + | "contentMd5" + | "code" + | "lastUpdated" + | "id" + | "contentType" + | "lastUpdatedBy" + | "created" + | "createdBy" + | "domain" + | "hasMultipleStorageFiles" + | "name" + | "contentLength" + >; + }; +} + +export interface D2IconSchema { + name: "D2Icon"; + model: D2Icon; + fields: {}; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2IndicatorSchema { + name: "D2Indicator"; + model: D2Indicator; + fields: { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + annualized: boolean; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataSets: D2DataSetSchema[]; + decimals: number; + denominator: string; + denominatorDescription: string; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDenominatorDescription: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayNumeratorDescription: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + indicatorGroups: D2IndicatorGroupSchema[]; + indicatorType: D2IndicatorTypeSchema; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + numerator: string; + numeratorDescription: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + style: D2Style; + translations: D2Translation[]; + url: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Indicator, + | "aggregateExportCategoryOptionCombo" + | "lastUpdated" + | "denominatorDescription" + | "indicatorType" + | "translations" + | "id" + | "numeratorDescription" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "indicatorGroups" + | "sharing" + | "numerator" + | "denominator" + | "annualized" + | "name" + | "dataSets" + | "legendSets" + | "style" + | "shortName" + | "aggregateExportAttributeOptionCombo" + | "code" + | "description" + | "formName" + | "url" + | "createdBy" + | "decimals" + >; + $owner: Preset< + D2Indicator, + | "aggregateExportCategoryOptionCombo" + | "lastUpdated" + | "denominatorDescription" + | "indicatorType" + | "translations" + | "id" + | "numeratorDescription" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "numerator" + | "denominator" + | "annualized" + | "name" + | "legendSets" + | "style" + | "shortName" + | "aggregateExportAttributeOptionCombo" + | "code" + | "description" + | "formName" + | "url" + | "createdBy" + | "decimals" + >; + }; +} + +export interface D2IndicatorGroupSchema { + name: "D2IndicatorGroup"; + model: D2IndicatorGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + indicatorGroupSet: D2IndicatorGroupSetSchema; + indicators: D2IndicatorSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2IndicatorGroup, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "indicators" + | "indicatorGroupSet" + | "createdBy" + | "name" + >; + $owner: Preset< + D2IndicatorGroup, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "indicators" + | "indicatorGroupSet" + | "createdBy" + | "name" + >; + }; +} + +export interface D2IndicatorGroupSetSchema { + name: "D2IndicatorGroupSet"; + model: D2IndicatorGroupSet; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + compulsory: boolean; + created: string; + createdBy: D2UserSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + indicatorGroups: D2IndicatorGroupSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2IndicatorGroupSet, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "indicatorGroups" + | "sharing" + | "compulsory" + | "createdBy" + | "name" + >; + $owner: Preset< + D2IndicatorGroupSet, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "indicatorGroups" + | "sharing" + | "compulsory" + | "createdBy" + | "name" + >; + }; +} + +export interface D2IndicatorTypeSchema { + name: "D2IndicatorType"; + model: D2IndicatorType; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + factor: number; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + number: boolean; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2IndicatorType, + | "lastUpdatedBy" + | "code" + | "created" + | "lastUpdated" + | "number" + | "translations" + | "name" + | "id" + | "factor" + >; + $owner: Preset< + D2IndicatorType, + | "lastUpdatedBy" + | "code" + | "created" + | "lastUpdated" + | "number" + | "translations" + | "name" + | "id" + | "factor" + >; + }; +} + +export interface D2InterpretationSchema { + name: "D2Interpretation"; + model: D2Interpretation; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + comments: D2InterpretationCommentSchema[]; + created: string; + createdBy: D2UserSchema; + dataSet: D2DataSetSchema; + displayName: string; + eventChart: D2EventChartSchema; + eventReport: D2EventReportSchema; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + likedBy: D2UserSchema[]; + likes: number; + map: D2MapSchema; + mentions: any[]; + name: string; + organisationUnit: D2OrganisationUnitSchema; + period: any; + publicAccess: string; + sharing: any; + text: string; + translations: D2Translation[]; + type: + | "VISUALIZATION" + | "REPORT_TABLE" + | "CHART" + | "MAP" + | "EVENT_REPORT" + | "EVENT_CHART" + | "DATASET_REPORT"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + visualization: D2VisualizationSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Interpretation, + | "visualization" + | "likedBy" + | "organisationUnit" + | "lastUpdated" + | "id" + | "text" + | "map" + | "dataSet" + | "likes" + | "period" + | "comments" + | "created" + | "sharing" + | "createdBy" + | "eventReport" + | "mentions" + | "eventChart" + >; + $owner: Preset< + D2Interpretation, + | "visualization" + | "likedBy" + | "organisationUnit" + | "lastUpdated" + | "id" + | "text" + | "map" + | "dataSet" + | "likes" + | "period" + | "comments" + | "created" + | "sharing" + | "createdBy" + | "eventReport" + | "mentions" + | "eventChart" + >; + }; +} + +export interface D2InterpretationCommentSchema { + name: "D2InterpretationComment"; + model: D2InterpretationComment; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + mentions: any[]; + name: string; + publicAccess: string; + sharing: any; + text: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2InterpretationComment, + "created" | "lastUpdated" | "createdBy" | "mentions" | "text" | "id" + >; + $owner: Preset< + D2InterpretationComment, + "created" | "lastUpdated" | "createdBy" | "mentions" | "text" | "id" + >; + }; +} + +export interface D2JobConfigurationSchema { + name: "D2JobConfiguration"; + model: D2JobConfiguration; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + configurable: boolean; + created: string; + createdBy: D2UserSchema; + cronExpression: string; + delay: number; + displayName: string; + enabled: boolean; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + jobParameters: any; + jobStatus: + | "RUNNING" + | "COMPLETED" + | "STOPPED" + | "SCHEDULED" + | "DISABLED" + | "FAILED" + | "NOT_STARTED"; + jobType: + | "DATA_STATISTICS" + | "DATA_INTEGRITY" + | "RESOURCE_TABLE" + | "ANALYTICS_TABLE" + | "CONTINUOUS_ANALYTICS_TABLE" + | "DATA_SYNC" + | "TRACKER_PROGRAMS_DATA_SYNC" + | "EVENT_PROGRAMS_DATA_SYNC" + | "FILE_RESOURCE_CLEANUP" + | "IMAGE_PROCESSING" + | "META_DATA_SYNC" + | "SMS_SEND" + | "SEND_SCHEDULED_MESSAGE" + | "PROGRAM_NOTIFICATIONS" + | "VALIDATION_RESULTS_NOTIFICATION" + | "CREDENTIALS_EXPIRY_ALERT" + | "MONITORING" + | "PUSH_ANALYSIS" + | "PREDICTOR" + | "DATA_SET_NOTIFICATION" + | "REMOVE_USED_OR_EXPIRED_RESERVED_VALUES" + | "TRACKER_IMPORT_JOB" + | "TRACKER_IMPORT_NOTIFICATION_JOB" + | "TRACKER_IMPORT_RULE_ENGINE_JOB" + | "LEADER_ELECTION" + | "LEADER_RENEWAL" + | "COMPLETE_DATA_SET_REGISTRATION_IMPORT" + | "DATAVALUE_IMPORT_INTERNAL" + | "METADATA_IMPORT" + | "DATAVALUE_IMPORT" + | "EVENT_IMPORT" + | "ENROLLMENT_IMPORT" + | "TEI_IMPORT" + | "DISABLE_INACTIVE_USERS" + | "ACCOUNT_EXPIRY_ALERT" + | "MOCK" + | "GML_IMPORT" + | "ANALYTICSTABLE_UPDATE" + | "PROGRAM_DATA_SYNC"; + lastExecuted: string; + lastExecutedStatus: + | "RUNNING" + | "COMPLETED" + | "STOPPED" + | "SCHEDULED" + | "DISABLED" + | "FAILED" + | "NOT_STARTED"; + lastRuntimeExecution: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + leaderOnlyJob: boolean; + name: string; + nextExecutionTime: string; + publicAccess: string; + schedulingType: "CRON" | "FIXED_DELAY"; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userUid: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2JobConfiguration, + | "jobStatus" + | "code" + | "enabled" + | "leaderOnlyJob" + | "lastUpdated" + | "id" + | "jobType" + | "lastUpdatedBy" + | "nextExecutionTime" + | "created" + | "cronExpression" + | "lastRuntimeExecution" + | "delay" + | "lastExecutedStatus" + | "name" + | "jobParameters" + | "lastExecuted" + >; + $owner: Preset< + D2JobConfiguration, + | "jobStatus" + | "code" + | "enabled" + | "leaderOnlyJob" + | "lastUpdated" + | "id" + | "jobType" + | "lastUpdatedBy" + | "nextExecutionTime" + | "created" + | "cronExpression" + | "lastRuntimeExecution" + | "delay" + | "lastExecutedStatus" + | "name" + | "jobParameters" + | "lastExecuted" + >; + }; +} + +export interface D2KeyJsonValueSchema { + name: "D2KeyJsonValue"; + model: D2KeyJsonValue; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + key: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + namespace: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + value: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2KeyJsonValue, + | "code" + | "lastUpdated" + | "id" + | "key" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "namespace" + >; + $owner: Preset< + D2KeyJsonValue, + | "code" + | "lastUpdated" + | "id" + | "key" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "namespace" + >; + }; +} + +export interface D2LegendSchema { + name: "D2Legend"; + model: D2Legend; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + color: string; + created: string; + createdBy: D2UserSchema; + displayName: string; + endValue: number; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + image: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + startValue: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Legend, + | "code" + | "endValue" + | "color" + | "lastUpdated" + | "translations" + | "startValue" + | "id" + | "lastUpdatedBy" + | "image" + | "created" + | "name" + >; + $owner: Preset< + D2Legend, + | "code" + | "endValue" + | "color" + | "lastUpdated" + | "translations" + | "startValue" + | "id" + | "lastUpdatedBy" + | "image" + | "created" + | "name" + >; + }; +} + +export interface D2LegendSetSchema { + name: "D2LegendSet"; + model: D2LegendSet; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legends: D2LegendSchema[]; + name: string; + publicAccess: string; + sharing: any; + symbolizer: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2LegendSet, + | "lastUpdatedBy" + | "code" + | "created" + | "attributeValues" + | "sharing" + | "symbolizer" + | "lastUpdated" + | "legends" + | "createdBy" + | "translations" + | "name" + | "id" + >; + $owner: Preset< + D2LegendSet, + | "lastUpdatedBy" + | "code" + | "created" + | "attributeValues" + | "sharing" + | "symbolizer" + | "lastUpdated" + | "legends" + | "createdBy" + | "translations" + | "name" + | "id" + >; + }; +} + +export interface D2MapSchema { + name: "D2Map"; + model: D2Map; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + basemap: string; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + latitude: number; + longitude: number; + mapViews: D2MapViewSchema[]; + name: string; + publicAccess: string; + sharing: any; + shortName: string; + subscribed: boolean; + subscribers: string[]; + title: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + zoom: number; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Map, + | "favorites" + | "code" + | "basemap" + | "latitude" + | "description" + | "title" + | "lastUpdated" + | "translations" + | "mapViews" + | "id" + | "interpretations" + | "longitude" + | "lastUpdatedBy" + | "subscribers" + | "created" + | "zoom" + | "sharing" + | "createdBy" + | "name" + >; + $owner: Preset< + D2Map, + | "favorites" + | "code" + | "basemap" + | "latitude" + | "description" + | "title" + | "lastUpdated" + | "translations" + | "mapViews" + | "id" + | "longitude" + | "lastUpdatedBy" + | "subscribers" + | "created" + | "zoom" + | "sharing" + | "createdBy" + | "name" + >; + }; +} + +export interface D2MapViewSchema { + name: "D2MapView"; + model: D2MapView; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + areaRadius: number; + attributeDimensions: any[]; + attributeValues: D2AttributeValueSchema[]; + categoryDimensions: D2CategoryDimensionSchema[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; + classes: number; + code: Id; + colorHigh: string; + colorLow: string; + colorScale: string; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + config: string; + created: string; + createdBy: D2UserSchema; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + displaySubtitle: string; + displayTitle: string; + endDate: string; + eventClustering: boolean; + eventCoordinateField: string; + eventPointColor: string; + eventPointRadius: number; + eventStatus: "ACTIVE" | "COMPLETED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + followUp: boolean; + formName: string; + hidden: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; + labelFontColor: string; + labelFontSize: string; + labelFontStyle: string; + labelFontWeight: string; + labels: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + layer: string; + legendSet: D2LegendSetSchema; + method: number; + name: string; + noDataColor: string; + opacity: number; + orgUnitField: string; + organisationUnitColor: string; + organisationUnitGroupSet: D2OrganisationUnitGroupSetSchema; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; + organisationUnitLevels: number[]; + organisationUnitSelectionMode: + | "SELECTED" + | "CHILDREN" + | "DESCENDANTS" + | "ACCESSIBLE" + | "CAPTURE" + | "ALL"; + organisationUnits: D2OrganisationUnitSchema[]; + parentGraph: string; + parentGraphMap: D2MapSchema; + parentLevel: number; + periods: any[]; + program: D2ProgramSchema; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; + programStage: D2ProgramStageSchema; + programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + publicAccess: string; + radiusHigh: number; + radiusLow: number; + relativePeriods: any; + renderingStrategy: "SINGLE" | "SPLIT_BY_PERIOD" | "TIMELINE"; + rows: any[]; + sharing: any; + shortName: string; + sortOrder: number; + startDate: string; + styleDataItem: object; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + thematicMapType: "CHOROPLETH" | "BUBBLE"; + timeField: string; + title: string; + topLimit: number; + trackedEntityType: D2TrackedEntityTypeSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2MapView, + | "endDate" + | "userOrganisationUnitChildren" + | "program" + | "lastUpdated" + | "attributeDimensions" + | "translations" + | "eventCoordinateField" + | "userOrganisationUnit" + | "organisationUnitSelectionMode" + | "filterDimensions" + | "id" + | "method" + | "renderingStrategy" + | "labels" + | "startDate" + | "noDataColor" + | "userOrganisationUnitGrandChildren" + | "styleDataItem" + | "labelFontColor" + | "layer" + | "dataElementDimensions" + | "periods" + | "categoryDimensions" + | "labelFontStyle" + | "radiusHigh" + | "eventClustering" + | "colorLow" + | "eventStatus" + | "opacity" + | "config" + | "colorScale" + | "itemOrganisationUnitGroups" + | "lastUpdatedBy" + | "labelFontSize" + | "created" + | "columnDimensions" + | "colorHigh" + | "eventPointRadius" + | "areaRadius" + | "programStatus" + | "aggregationType" + | "dataDimensionItems" + | "code" + | "categoryOptionGroupSetDimensions" + | "hidden" + | "thematicMapType" + | "classes" + | "description" + | "organisationUnitGroupSetDimensions" + | "organisationUnitLevels" + | "organisationUnitGroupSet" + | "followUp" + | "organisationUnitColor" + | "relativePeriods" + | "organisationUnits" + | "eventPointColor" + | "programStage" + | "labelFontWeight" + | "radiusLow" + | "trackedEntityType" + | "legendSet" + | "userOrgUnitType" + >; + $owner: Preset< + D2MapView, + | "endDate" + | "userOrganisationUnitChildren" + | "program" + | "lastUpdated" + | "attributeDimensions" + | "translations" + | "eventCoordinateField" + | "userOrganisationUnit" + | "organisationUnitSelectionMode" + | "filterDimensions" + | "id" + | "method" + | "renderingStrategy" + | "labels" + | "startDate" + | "noDataColor" + | "userOrganisationUnitGrandChildren" + | "styleDataItem" + | "labelFontColor" + | "layer" + | "dataElementDimensions" + | "periods" + | "categoryDimensions" + | "labelFontStyle" + | "radiusHigh" + | "eventClustering" + | "colorLow" + | "eventStatus" + | "opacity" + | "config" + | "colorScale" + | "itemOrganisationUnitGroups" + | "lastUpdatedBy" + | "labelFontSize" + | "created" + | "columnDimensions" + | "colorHigh" + | "eventPointRadius" + | "areaRadius" + | "programStatus" + | "aggregationType" + | "dataDimensionItems" + | "code" + | "categoryOptionGroupSetDimensions" + | "hidden" + | "thematicMapType" + | "classes" + | "description" + | "organisationUnitGroupSetDimensions" + | "organisationUnitLevels" + | "organisationUnitGroupSet" + | "followUp" + | "organisationUnitColor" + | "relativePeriods" + | "organisationUnits" + | "eventPointColor" + | "programStage" + | "labelFontWeight" + | "radiusLow" + | "trackedEntityType" + | "legendSet" + | "userOrgUnitType" + >; + }; +} + +export interface D2MessageConversationSchema { + name: "D2MessageConversation"; + model: D2MessageConversation; + fields: { + access: D2Access; + assignee: D2UserSchema; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followUp: boolean; + href: string; + id: Id; + lastMessage: string; + lastSender: D2UserSchema; + lastSenderFirstname: string; + lastSenderSurname: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + messageCount: number; + messageType: "PRIVATE" | "SYSTEM" | "VALIDATION_RESULT" | "TICKET"; + messages: any[]; + name: string; + priority: "NONE" | "LOW" | "MEDIUM" | "HIGH"; + publicAccess: string; + read: boolean; + sharing: any; + status: "NONE" | "OPEN" | "PENDING" | "INVALID" | "SOLVED"; + subject: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userFirstname: string; + userGroupAccesses: D2UserGroupAccessSchema[]; + userMessages: any[]; + userSurname: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2MessageConversation, + | "messageCount" + | "subject" + | "lastUpdated" + | "messageType" + | "userMessages" + | "id" + | "lastSender" + | "created" + | "lastMessage" + | "priority" + | "createdBy" + | "messages" + | "assignee" + | "status" + >; + $owner: Preset< + D2MessageConversation, + | "messageCount" + | "subject" + | "lastUpdated" + | "messageType" + | "userMessages" + | "id" + | "lastSender" + | "created" + | "lastMessage" + | "priority" + | "createdBy" + | "messages" + | "assignee" + | "status" + >; + }; +} + +export interface D2MetadataVersionSchema { + name: "D2MetadataVersion"; + model: D2MetadataVersion; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + hashCode: string; + href: string; + id: Id; + importDate: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + type: "BEST_EFFORT" | "ATOMIC"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2MetadataVersion, + | "code" + | "type" + | "lastUpdated" + | "importDate" + | "hashCode" + | "id" + | "lastUpdatedBy" + | "created" + | "name" + >; + $owner: Preset< + D2MetadataVersion, + | "code" + | "type" + | "lastUpdated" + | "importDate" + | "hashCode" + | "id" + | "lastUpdatedBy" + | "created" + | "name" + >; + }; +} + +export interface D2MinMaxDataElementSchema { + name: "D2MinMaxDataElement"; + model: D2MinMaxDataElement; + fields: { + dataElement: D2DataElementSchema; + generated: boolean; + max: number; + min: number; + optionCombo: D2CategoryOptionComboSchema; + source: D2OrganisationUnitSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2MinMaxDataElement, + "min" | "generated" | "max" | "dataElement" | "source" | "optionCombo" + >; + $owner: Preset< + D2MinMaxDataElement, + "min" | "generated" | "max" | "dataElement" | "source" | "optionCombo" + >; + }; +} + +export interface D2OAuth2ClientSchema { + name: "D2OAuth2Client"; + model: D2OAuth2Client; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + cid: Id; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + grantTypes: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + redirectUris: string[]; + secret: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OAuth2Client, + | "code" + | "secret" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "created" + | "redirectUris" + | "grantTypes" + | "name" + | "cid" + >; + $owner: Preset< + D2OAuth2Client, + | "code" + | "secret" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "created" + | "redirectUris" + | "grantTypes" + | "name" + | "cid" + >; + }; +} + +export interface D2OptionSchema { + name: "D2Option"; + model: D2Option; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: string; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + optionSet: D2OptionSetSchema; + publicAccess: string; + sharing: any; + shortName: string; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Option, + | "code" + | "description" + | "lastUpdated" + | "optionSet" + | "translations" + | "formName" + | "id" + | "created" + | "attributeValues" + | "sortOrder" + | "name" + | "style" + >; + $owner: Preset< + D2Option, + | "code" + | "description" + | "lastUpdated" + | "optionSet" + | "translations" + | "formName" + | "id" + | "created" + | "attributeValues" + | "sortOrder" + | "name" + | "style" + >; + }; +} + +export interface D2OptionGroupSchema { + name: "D2OptionGroup"; + model: D2OptionGroup; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + optionSet: D2OptionSetSchema; + options: D2OptionSchema[]; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OptionGroup, + | "code" + | "lastUpdated" + | "optionSet" + | "translations" + | "options" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "name" + | "shortName" + >; + $owner: Preset< + D2OptionGroup, + | "code" + | "lastUpdated" + | "optionSet" + | "translations" + | "options" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "name" + | "shortName" + >; + }; +} + +export interface D2OptionGroupSetSchema { + name: "D2OptionGroupSet"; + model: D2OptionGroupSet; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionItemKeywords: any; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + name: string; + optionGroups: D2OptionGroupSchema[]; + optionSet: D2OptionSetSchema; + programStage: D2ProgramStageSchema; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OptionGroupSet, + | "code" + | "description" + | "optionGroups" + | "lastUpdated" + | "optionSet" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "name" + | "dataDimension" + >; + $owner: Preset< + D2OptionGroupSet, + | "code" + | "description" + | "optionGroups" + | "lastUpdated" + | "optionSet" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "name" + | "dataDimension" + >; + }; +} + +export interface D2OptionSetSchema { + name: "D2OptionSet"; + model: D2OptionSet; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + options: D2OptionSchema[]; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + version: number; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OptionSet, + | "code" + | "lastUpdated" + | "translations" + | "valueType" + | "options" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "version" + | "createdBy" + | "name" + >; + $owner: Preset< + D2OptionSet, + | "code" + | "lastUpdated" + | "translations" + | "valueType" + | "options" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "version" + | "createdBy" + | "name" + >; + }; +} + +export interface D2OrganisationUnitSchema { + name: "D2OrganisationUnit"; + model: D2OrganisationUnit; + fields: { + access: D2Access; + address: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + ancestors: D2OrganisationUnitSchema[]; + attributeValues: D2AttributeValueSchema[]; + children: D2OrganisationUnitSchema[]; + closedDate: string; + code: Id; + comment: string; + contactPerson: string; + created: string; + createdBy: D2UserSchema; + dataSets: D2DataSetSchema[]; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + email: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + geometry: any; + href: string; + id: Id; + image: D2FileResourceSchema; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + leaf: boolean; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + level: string; + memberCount: number; + name: string; + openingDate: string; + organisationUnitGroups: D2OrganisationUnitGroupSchema[]; + parent: D2OrganisationUnitSchema; + path: string; + periodOffset: number; + phoneNumber: string; + programs: D2ProgramSchema[]; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + type: string; + url: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + users: D2UserSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OrganisationUnit, + | "parent" + | "path" + | "lastUpdated" + | "children" + | "translations" + | "id" + | "organisationUnitGroups" + | "image" + | "lastUpdatedBy" + | "level" + | "created" + | "attributeValues" + | "users" + | "phoneNumber" + | "name" + | "dataSets" + | "programs" + | "shortName" + | "code" + | "description" + | "contactPerson" + | "openingDate" + | "email" + | "address" + | "url" + | "closedDate" + | "createdBy" + | "geometry" + | "comment" + >; + $owner: Preset< + D2OrganisationUnit, + | "parent" + | "path" + | "lastUpdated" + | "translations" + | "id" + | "image" + | "lastUpdatedBy" + | "level" + | "created" + | "attributeValues" + | "phoneNumber" + | "name" + | "shortName" + | "code" + | "description" + | "contactPerson" + | "openingDate" + | "email" + | "address" + | "url" + | "closedDate" + | "createdBy" + | "geometry" + | "comment" + >; + }; +} + +export interface D2OrganisationUnitGroupSchema { + name: "D2OrganisationUnitGroup"; + model: D2OrganisationUnitGroup; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + color: string; + created: string; + createdBy: D2UserSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + geometry: any; + groupSets: D2OrganisationUnitGroupSetSchema[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + organisationUnits: D2OrganisationUnitSchema[]; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + symbol: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OrganisationUnitGroup, + | "symbol" + | "code" + | "color" + | "lastUpdated" + | "translations" + | "id" + | "organisationUnits" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "groupSets" + | "sharing" + | "createdBy" + | "name" + | "geometry" + | "shortName" + >; + $owner: Preset< + D2OrganisationUnitGroup, + | "symbol" + | "code" + | "color" + | "lastUpdated" + | "translations" + | "id" + | "organisationUnits" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "geometry" + | "shortName" + >; + }; +} + +export interface D2OrganisationUnitGroupSetSchema { + name: "D2OrganisationUnitGroupSet"; + model: D2OrganisationUnitGroupSet; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + allItems: boolean; + attributeValues: D2AttributeValueSchema[]; + code: Id; + compulsory: boolean; + created: string; + createdBy: D2UserSchema; + dataDimension: boolean; + dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; + description: string; + dimension: string; + dimensionItemKeywords: any; + dimensionType: + | "DATA_X" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "DATA_COLLAPSED" + | "CATEGORY_OPTION_COMBO" + | "ATTRIBUTE_OPTION_COMBO" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION_GROUP_SET" + | "DATA_ELEMENT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP_SET" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY" + | "OPTION_GROUP_SET" + | "VALIDATION_RULE" + | "STATIC" + | "ORGANISATION_UNIT_LEVEL"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + includeSubhierarchyInAnalytics: boolean; + items: any[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + name: string; + organisationUnitGroups: D2OrganisationUnitGroupSchema[]; + programStage: D2ProgramStageSchema; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OrganisationUnitGroupSet, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "organisationUnitGroups" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "compulsory" + | "createdBy" + | "includeSubhierarchyInAnalytics" + | "name" + | "dataDimension" + | "shortName" + >; + $owner: Preset< + D2OrganisationUnitGroupSet, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "organisationUnitGroups" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "compulsory" + | "createdBy" + | "includeSubhierarchyInAnalytics" + | "name" + | "dataDimension" + | "shortName" + >; + }; +} + +export interface D2OrganisationUnitGroupSetDimensionSchema { + name: "D2OrganisationUnitGroupSetDimension"; + model: D2OrganisationUnitGroupSetDimension; + fields: { + organisationUnitGroupSet: D2OrganisationUnitGroupSetSchema; + organisationUnitGroups: any; + }; + fieldPresets: { + $all: Preset< + D2OrganisationUnitGroupSetDimension, + keyof D2OrganisationUnitGroupSetDimension + >; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OrganisationUnitGroupSetDimension, + "organisationUnitGroupSet" | "organisationUnitGroups" + >; + $owner: Preset< + D2OrganisationUnitGroupSetDimension, + "organisationUnitGroupSet" | "organisationUnitGroups" + >; + }; +} + +export interface D2OrganisationUnitLevelSchema { + name: "D2OrganisationUnitLevel"; + model: D2OrganisationUnitLevel; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + level: number; + name: string; + offlineLevels: number; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2OrganisationUnitLevel, + | "lastUpdatedBy" + | "offlineLevels" + | "code" + | "level" + | "created" + | "lastUpdated" + | "translations" + | "name" + | "id" + >; + $owner: Preset< + D2OrganisationUnitLevel, + | "lastUpdatedBy" + | "offlineLevels" + | "code" + | "level" + | "created" + | "lastUpdated" + | "translations" + | "name" + | "id" + >; + }; +} + +export interface D2PredictorSchema { + name: "D2Predictor"; + model: D2Predictor; + fields: { + access: D2Access; + annualSampleCount: number; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + generator: D2ExpressionSchema; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + organisationUnitLevels: D2OrganisationUnitLevelSchema[]; + output: D2DataElementSchema; + outputCombo: D2CategoryOptionComboSchema; + periodType: string; + predictorGroups: D2PredictorGroupSchema[]; + publicAccess: string; + sampleSkipTest: D2ExpressionSchema; + sequentialSampleCount: number; + sequentialSkipCount: number; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Predictor, + | "outputCombo" + | "code" + | "description" + | "generator" + | "organisationUnitLevels" + | "output" + | "lastUpdated" + | "sampleSkipTest" + | "translations" + | "id" + | "sequentialSampleCount" + | "annualSampleCount" + | "lastUpdatedBy" + | "created" + | "sequentialSkipCount" + | "predictorGroups" + | "periodType" + | "name" + >; + $owner: Preset< + D2Predictor, + | "outputCombo" + | "code" + | "description" + | "generator" + | "organisationUnitLevels" + | "output" + | "lastUpdated" + | "sampleSkipTest" + | "translations" + | "id" + | "sequentialSampleCount" + | "annualSampleCount" + | "lastUpdatedBy" + | "created" + | "sequentialSkipCount" + | "periodType" + | "name" + >; + }; +} + +export interface D2PredictorGroupSchema { + name: "D2PredictorGroup"; + model: D2PredictorGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + predictors: D2PredictorSchema[]; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2PredictorGroup, + | "predictors" + | "lastUpdatedBy" + | "code" + | "created" + | "description" + | "sharing" + | "lastUpdated" + | "createdBy" + | "translations" + | "name" + | "id" + >; + $owner: Preset< + D2PredictorGroup, + | "predictors" + | "lastUpdatedBy" + | "code" + | "created" + | "description" + | "sharing" + | "lastUpdated" + | "createdBy" + | "translations" + | "name" + | "id" + >; + }; +} + +export interface D2ProgramSchema { + name: "D2Program"; + model: D2Program; + fields: { + access: D2Access; + accessLevel: "OPEN" | "AUDITED" | "PROTECTED" | "CLOSED"; + attributeValues: D2AttributeValueSchema[]; + categoryCombo: D2CategoryComboSchema; + code: Id; + completeEventsExpiryDays: number; + created: string; + createdBy: D2UserSchema; + dataEntryForm: D2DataEntryFormSchema; + description: string; + displayDescription: string; + displayEnrollmentDateLabel: string; + displayFormName: string; + displayFrontPageList: boolean; + displayIncidentDate: boolean; + displayIncidentDateLabel: string; + displayName: string; + displayShortName: string; + enrollmentDateLabel: string; + expiryDays: number; + expiryPeriodType: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + href: string; + id: Id; + ignoreOverdueEvents: boolean; + incidentDateLabel: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + maxTeiCountToReturn: number; + minAttributesRequiredToSearch: number; + name: string; + notificationTemplates: D2ProgramNotificationTemplateSchema[]; + onlyEnrollOnce: boolean; + organisationUnits: D2OrganisationUnitSchema[]; + programIndicators: D2ProgramIndicatorSchema[]; + programRuleVariables: D2ProgramRuleVariableSchema[]; + programSections: D2ProgramSectionSchema[]; + programStages: D2ProgramStageSchema[]; + programTrackedEntityAttributes: D2ProgramTrackedEntityAttributeSchema[]; + programType: "WITH_REGISTRATION" | "WITHOUT_REGISTRATION"; + publicAccess: string; + registration: boolean; + relatedProgram: D2ProgramSchema; + selectEnrollmentDatesInFuture: boolean; + selectIncidentDatesInFuture: boolean; + sharing: any; + shortName: string; + skipOffline: boolean; + style: D2Style; + trackedEntityType: D2TrackedEntityTypeSchema; + translations: D2Translation[]; + useFirstStageDuringRegistration: boolean; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userRoles: D2UserAuthorityGroupSchema[]; + version: number; + withoutRegistration: boolean; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Program, + | "dataEntryForm" + | "ignoreOverdueEvents" + | "skipOffline" + | "programIndicators" + | "lastUpdated" + | "categoryCombo" + | "translations" + | "id" + | "enrollmentDateLabel" + | "lastUpdatedBy" + | "onlyEnrollOnce" + | "created" + | "attributeValues" + | "sharing" + | "version" + | "maxTeiCountToReturn" + | "selectIncidentDatesInFuture" + | "incidentDateLabel" + | "userRoles" + | "expiryPeriodType" + | "name" + | "selectEnrollmentDatesInFuture" + | "style" + | "shortName" + | "useFirstStageDuringRegistration" + | "code" + | "programRuleVariables" + | "programTrackedEntityAttributes" + | "completeEventsExpiryDays" + | "description" + | "relatedProgram" + | "notificationTemplates" + | "formName" + | "featureType" + | "minAttributesRequiredToSearch" + | "displayFrontPageList" + | "organisationUnits" + | "programType" + | "accessLevel" + | "programSections" + | "programStages" + | "createdBy" + | "trackedEntityType" + | "displayIncidentDate" + | "expiryDays" + >; + $owner: Preset< + D2Program, + | "dataEntryForm" + | "ignoreOverdueEvents" + | "skipOffline" + | "lastUpdated" + | "categoryCombo" + | "translations" + | "id" + | "enrollmentDateLabel" + | "lastUpdatedBy" + | "onlyEnrollOnce" + | "created" + | "attributeValues" + | "sharing" + | "version" + | "maxTeiCountToReturn" + | "selectIncidentDatesInFuture" + | "incidentDateLabel" + | "expiryPeriodType" + | "name" + | "selectEnrollmentDatesInFuture" + | "style" + | "shortName" + | "useFirstStageDuringRegistration" + | "code" + | "programTrackedEntityAttributes" + | "completeEventsExpiryDays" + | "description" + | "relatedProgram" + | "notificationTemplates" + | "formName" + | "featureType" + | "minAttributesRequiredToSearch" + | "displayFrontPageList" + | "organisationUnits" + | "programType" + | "accessLevel" + | "programSections" + | "programStages" + | "createdBy" + | "trackedEntityType" + | "displayIncidentDate" + | "expiryDays" + >; + }; +} + +export interface D2ProgramDataElementDimensionItemSchema { + name: "D2ProgramDataElementDimensionItem"; + model: D2ProgramDataElementDimensionItem; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataElement: D2DataElementSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + program: D2ProgramSchema; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2ProgramIndicatorSchema { + name: "D2ProgramIndicator"; + model: D2ProgramIndicator; + fields: { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + analyticsPeriodBoundaries: D2AnalyticsPeriodBoundarySchema[]; + analyticsType: "EVENT" | "ENROLLMENT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + decimals: number; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayInForm: boolean; + displayName: string; + displayShortName: string; + expression: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filter: string; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + program: D2ProgramSchema; + programIndicatorGroups: D2ProgramIndicatorGroupSchema[]; + publicAccess: string; + sharing: any; + shortName: string; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramIndicator, + | "aggregationType" + | "code" + | "displayInForm" + | "aggregateExportCategoryOptionCombo" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "programIndicatorGroups" + | "analyticsPeriodBoundaries" + | "lastUpdatedBy" + | "expression" + | "created" + | "attributeValues" + | "sharing" + | "filter" + | "createdBy" + | "decimals" + | "name" + | "analyticsType" + | "legendSets" + | "style" + | "shortName" + | "aggregateExportAttributeOptionCombo" + >; + $owner: Preset< + D2ProgramIndicator, + | "aggregationType" + | "code" + | "displayInForm" + | "aggregateExportCategoryOptionCombo" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "analyticsPeriodBoundaries" + | "lastUpdatedBy" + | "expression" + | "created" + | "attributeValues" + | "sharing" + | "filter" + | "createdBy" + | "decimals" + | "name" + | "analyticsType" + | "legendSets" + | "style" + | "shortName" + | "aggregateExportAttributeOptionCombo" + >; + }; +} + +export interface D2ProgramIndicatorGroupSchema { + name: "D2ProgramIndicatorGroup"; + model: D2ProgramIndicatorGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + programIndicators: D2ProgramIndicatorSchema[]; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramIndicatorGroup, + | "lastUpdatedBy" + | "code" + | "created" + | "description" + | "sharing" + | "programIndicators" + | "lastUpdated" + | "createdBy" + | "translations" + | "name" + | "id" + >; + $owner: Preset< + D2ProgramIndicatorGroup, + | "lastUpdatedBy" + | "code" + | "created" + | "description" + | "sharing" + | "programIndicators" + | "lastUpdated" + | "createdBy" + | "translations" + | "name" + | "id" + >; + }; +} + +export interface D2ProgramInstanceSchema { + name: "D2ProgramInstance"; + model: D2ProgramInstance; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + completedBy: string; + created: string; + createdAtClient: string; + createdBy: D2UserSchema; + createdByUserInfo: any; + deleted: boolean; + displayName: string; + endDate: string; + enrollmentDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followup: boolean; + geometry: any; + href: string; + id: Id; + incidentDate: string; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2UserSchema; + lastUpdatedByUserInfo: any; + messageConversations: D2MessageConversationSchema[]; + name: string; + organisationUnit: D2OrganisationUnitSchema; + program: D2ProgramSchema; + programStageInstances: D2ProgramStageInstanceSchema[]; + publicAccess: string; + relationshipItems: any[]; + sharing: any; + status: "ACTIVE" | "COMPLETED" | "CANCELLED"; + storedBy: string; + trackedEntityComments: any[]; + trackedEntityInstance: D2TrackedEntityInstanceSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramInstance, + | "storedBy" + | "endDate" + | "organisationUnit" + | "enrollmentDate" + | "createdAtClient" + | "program" + | "messageConversations" + | "trackedEntityComments" + | "lastUpdatedByUserInfo" + | "lastUpdated" + | "relationshipItems" + | "id" + | "createdByUserInfo" + | "created" + | "programStageInstances" + | "trackedEntityInstance" + | "followup" + | "deleted" + | "geometry" + | "incidentDate" + | "completedBy" + | "status" + | "lastUpdatedAtClient" + >; + $owner: Preset< + D2ProgramInstance, + | "storedBy" + | "endDate" + | "organisationUnit" + | "enrollmentDate" + | "createdAtClient" + | "program" + | "messageConversations" + | "trackedEntityComments" + | "lastUpdatedByUserInfo" + | "lastUpdated" + | "id" + | "createdByUserInfo" + | "created" + | "trackedEntityInstance" + | "followup" + | "deleted" + | "geometry" + | "incidentDate" + | "completedBy" + | "status" + | "lastUpdatedAtClient" + >; + }; +} + +export interface D2ProgramNotificationTemplateSchema { + name: "D2ProgramNotificationTemplate"; + model: D2ProgramNotificationTemplate; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + deliveryChannels: never[]; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + messageTemplate: string; + name: string; + notificationRecipient: + | "TRACKED_ENTITY_INSTANCE" + | "ORGANISATION_UNIT_CONTACT" + | "USERS_AT_ORGANISATION_UNIT" + | "USER_GROUP" + | "PROGRAM_ATTRIBUTE" + | "DATA_ELEMENT" + | "WEB_HOOK"; + notificationTrigger: + | "ENROLLMENT" + | "COMPLETION" + | "PROGRAM_RULE" + | "SCHEDULED_DAYS_DUE_DATE" + | "SCHEDULED_DAYS_INCIDENT_DATE" + | "SCHEDULED_DAYS_ENROLLMENT_DATE"; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientDataElement: D2DataElementSchema; + recipientProgramAttribute: D2TrackedEntityAttributeSchema; + recipientUserGroup: D2UserGroupSchema; + relativeScheduledDays: number; + sendRepeatable: boolean; + sharing: any; + subjectTemplate: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramNotificationTemplate, + | "code" + | "notificationTrigger" + | "lastUpdated" + | "translations" + | "relativeScheduledDays" + | "id" + | "subjectTemplate" + | "lastUpdatedBy" + | "deliveryChannels" + | "recipientDataElement" + | "created" + | "notifyUsersInHierarchyOnly" + | "sendRepeatable" + | "notificationRecipient" + | "recipientProgramAttribute" + | "notifyParentOrganisationUnitOnly" + | "name" + | "recipientUserGroup" + | "messageTemplate" + >; + $owner: Preset< + D2ProgramNotificationTemplate, + | "code" + | "notificationTrigger" + | "lastUpdated" + | "translations" + | "relativeScheduledDays" + | "id" + | "subjectTemplate" + | "lastUpdatedBy" + | "deliveryChannels" + | "recipientDataElement" + | "created" + | "notifyUsersInHierarchyOnly" + | "sendRepeatable" + | "notificationRecipient" + | "recipientProgramAttribute" + | "notifyParentOrganisationUnitOnly" + | "name" + | "recipientUserGroup" + | "messageTemplate" + >; + }; +} + +export interface D2ProgramRuleSchema { + name: "D2ProgramRule"; + model: D2ProgramRule; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + condition: string; + created: string; + createdBy: D2UserSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + priority: number; + program: D2ProgramSchema; + programRuleActions: D2ProgramRuleActionSchema[]; + programStage: D2ProgramStageSchema; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramRule, + | "code" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "created" + | "priority" + | "condition" + | "programRuleActions" + | "name" + >; + $owner: Preset< + D2ProgramRule, + | "code" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "created" + | "priority" + | "condition" + | "programRuleActions" + | "name" + >; + }; +} + +export interface D2ProgramRuleActionSchema { + name: "D2ProgramRuleAction"; + model: D2ProgramRuleAction; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + content: string; + created: string; + createdBy: D2UserSchema; + data: string; + dataElement: D2DataElementSchema; + displayContent: string; + displayName: string; + evaluationEnvironments: never[]; + evaluationTime: "ON_DATA_ENTRY" | "ON_COMPLETE" | "ALWAYS"; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + location: string; + name: string; + option: D2OptionSchema; + optionGroup: D2OptionGroupSchema; + programIndicator: D2ProgramIndicatorSchema; + programRule: D2ProgramRuleSchema; + programRuleActionType: + | "DISPLAYTEXT" + | "DISPLAYKEYVALUEPAIR" + | "HIDEFIELD" + | "HIDESECTION" + | "HIDEPROGRAMSTAGE" + | "ASSIGN" + | "SHOWWARNING" + | "WARNINGONCOMPLETE" + | "SHOWERROR" + | "ERRORONCOMPLETE" + | "CREATEEVENT" + | "SETMANDATORYFIELD" + | "SENDMESSAGE" + | "SCHEDULEMESSAGE" + | "HIDEOPTION" + | "SHOWOPTIONGROUP" + | "HIDEOPTIONGROUP"; + programStage: D2ProgramStageSchema; + programStageSection: D2ProgramStageSectionSchema; + publicAccess: string; + sharing: any; + templateUid: string; + trackedEntityAttribute: D2TrackedEntityAttributeSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramRuleAction, + | "evaluationEnvironments" + | "code" + | "data" + | "optionGroup" + | "templateUid" + | "content" + | "trackedEntityAttribute" + | "lastUpdated" + | "translations" + | "programIndicator" + | "id" + | "programRule" + | "programStageSection" + | "programRuleActionType" + | "lastUpdatedBy" + | "programStage" + | "created" + | "dataElement" + | "evaluationTime" + | "location" + | "option" + >; + $owner: Preset< + D2ProgramRuleAction, + | "evaluationEnvironments" + | "code" + | "data" + | "optionGroup" + | "templateUid" + | "content" + | "trackedEntityAttribute" + | "lastUpdated" + | "translations" + | "programIndicator" + | "id" + | "programRule" + | "programStageSection" + | "programRuleActionType" + | "lastUpdatedBy" + | "programStage" + | "created" + | "dataElement" + | "evaluationTime" + | "location" + | "option" + >; + }; +} + +export interface D2ProgramRuleVariableSchema { + name: "D2ProgramRuleVariable"; + model: D2ProgramRuleVariable; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataElement: D2DataElementSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + program: D2ProgramSchema; + programRuleVariableSourceType: + | "DATAELEMENT_NEWEST_EVENT_PROGRAM_STAGE" + | "DATAELEMENT_NEWEST_EVENT_PROGRAM" + | "DATAELEMENT_CURRENT_EVENT" + | "DATAELEMENT_PREVIOUS_EVENT" + | "CALCULATED_VALUE" + | "TEI_ATTRIBUTE"; + programStage: D2ProgramStageSchema; + publicAccess: string; + sharing: any; + trackedEntityAttribute: D2TrackedEntityAttributeSchema; + translations: D2Translation[]; + useCodeForOptionSet: boolean; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramRuleVariable, + | "code" + | "programRuleVariableSourceType" + | "program" + | "trackedEntityAttribute" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "created" + | "useCodeForOptionSet" + | "dataElement" + | "name" + >; + $owner: Preset< + D2ProgramRuleVariable, + | "code" + | "programRuleVariableSourceType" + | "program" + | "trackedEntityAttribute" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "created" + | "useCodeForOptionSet" + | "dataElement" + | "name" + >; + }; +} + +export interface D2ProgramSectionSchema { + name: "D2ProgramSection"; + model: D2ProgramSection; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + program: D2ProgramSchema; + publicAccess: string; + renderType: any; + sharing: any; + shortName: string; + sortOrder: number; + style: D2Style; + trackedEntityAttributes: D2TrackedEntityAttributeSchema[]; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramSection, + | "code" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "renderType" + | "lastUpdatedBy" + | "created" + | "sortOrder" + | "name" + | "trackedEntityAttributes" + | "style" + >; + $owner: Preset< + D2ProgramSection, + | "code" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "renderType" + | "lastUpdatedBy" + | "created" + | "sortOrder" + | "name" + | "trackedEntityAttributes" + | "style" + >; + }; +} + +export interface D2ProgramStageSchema { + name: "D2ProgramStage"; + model: D2ProgramStage; + fields: { + access: D2Access; + allowGenerateNextVisit: boolean; + attributeValues: D2AttributeValueSchema[]; + autoGenerateEvent: boolean; + blockEntryForm: boolean; + code: Id; + created: string; + createdBy: D2UserSchema; + dataEntryForm: D2DataEntryFormSchema; + description: string; + displayDescription: string; + displayDueDateLabel: string; + displayExecutionDateLabel: string; + displayFormName: string; + displayGenerateEventBox: boolean; + displayName: string; + displayShortName: string; + dueDateLabel: string; + enableUserAssignment: boolean; + executionDateLabel: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + formType: "DEFAULT" | "CUSTOM" | "SECTION" | "SECTION_MULTIORG"; + generatedByEnrollmentDate: boolean; + hideDueDate: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + minDaysFromStart: number; + name: string; + nextScheduleDate: D2DataElementSchema; + notificationTemplates: D2ProgramNotificationTemplateSchema[]; + openAfterEnrollment: boolean; + periodType: string; + preGenerateUID: boolean; + program: D2ProgramSchema; + programStageDataElements: D2ProgramStageDataElementSchema[]; + programStageSections: D2ProgramStageSectionSchema[]; + publicAccess: string; + remindCompleted: boolean; + repeatable: boolean; + reportDateToUse: string; + sharing: any; + shortName: string; + sortOrder: number; + standardInterval: number; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + validationStrategy: "ON_COMPLETE" | "ON_UPDATE_AND_INSERT"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramStage, + | "dataEntryForm" + | "allowGenerateNextVisit" + | "reportDateToUse" + | "program" + | "lastUpdated" + | "programStageDataElements" + | "translations" + | "id" + | "lastUpdatedBy" + | "generatedByEnrollmentDate" + | "created" + | "attributeValues" + | "sharing" + | "sortOrder" + | "name" + | "hideDueDate" + | "enableUserAssignment" + | "style" + | "minDaysFromStart" + | "standardInterval" + | "dueDateLabel" + | "executionDateLabel" + | "code" + | "preGenerateUID" + | "description" + | "notificationTemplates" + | "openAfterEnrollment" + | "repeatable" + | "formName" + | "featureType" + | "remindCompleted" + | "displayGenerateEventBox" + | "nextScheduleDate" + | "validationStrategy" + | "autoGenerateEvent" + | "periodType" + | "createdBy" + | "blockEntryForm" + | "programStageSections" + >; + $owner: Preset< + D2ProgramStage, + | "dataEntryForm" + | "allowGenerateNextVisit" + | "reportDateToUse" + | "program" + | "lastUpdated" + | "programStageDataElements" + | "translations" + | "id" + | "lastUpdatedBy" + | "generatedByEnrollmentDate" + | "created" + | "attributeValues" + | "sharing" + | "sortOrder" + | "name" + | "hideDueDate" + | "enableUserAssignment" + | "style" + | "minDaysFromStart" + | "standardInterval" + | "dueDateLabel" + | "executionDateLabel" + | "code" + | "preGenerateUID" + | "description" + | "notificationTemplates" + | "openAfterEnrollment" + | "repeatable" + | "formName" + | "featureType" + | "remindCompleted" + | "displayGenerateEventBox" + | "nextScheduleDate" + | "validationStrategy" + | "autoGenerateEvent" + | "periodType" + | "createdBy" + | "blockEntryForm" + | "programStageSections" + >; + }; +} + +export interface D2ProgramStageDataElementSchema { + name: "D2ProgramStageDataElement"; + model: D2ProgramStageDataElement; + fields: { + access: D2Access; + allowFutureDate: boolean; + allowProvidedElsewhere: boolean; + attributeValues: D2AttributeValueSchema[]; + code: Id; + compulsory: boolean; + created: string; + createdBy: D2UserSchema; + dataElement: D2DataElementSchema; + displayInReports: boolean; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + programStage: D2ProgramStageSchema; + publicAccess: string; + renderOptionsAsRadio: boolean; + renderType: any; + sharing: any; + skipAnalytics: boolean; + skipSynchronization: boolean; + sortOrder: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramStageDataElement, + | "displayInReports" + | "code" + | "skipSynchronization" + | "lastUpdated" + | "renderOptionsAsRadio" + | "skipAnalytics" + | "id" + | "allowFutureDate" + | "renderType" + | "lastUpdatedBy" + | "programStage" + | "created" + | "dataElement" + | "compulsory" + | "allowProvidedElsewhere" + | "sortOrder" + >; + $owner: Preset< + D2ProgramStageDataElement, + | "displayInReports" + | "code" + | "skipSynchronization" + | "lastUpdated" + | "renderOptionsAsRadio" + | "skipAnalytics" + | "id" + | "allowFutureDate" + | "renderType" + | "lastUpdatedBy" + | "programStage" + | "created" + | "dataElement" + | "compulsory" + | "allowProvidedElsewhere" + | "sortOrder" + >; + }; +} + +export interface D2ProgramStageInstanceSchema { + name: "D2ProgramStageInstance"; + model: D2ProgramStageInstance; + fields: { + access: D2Access; + assignedUser: D2UserSchema; + attributeOptionCombo: D2CategoryOptionComboSchema; + attributeValues: D2AttributeValueSchema[]; + code: Id; + comments: any[]; + completed: boolean; + completedBy: string; + completedDate: string; + creatableInSearchScope: boolean; + created: string; + createdAtClient: string; + createdBy: D2UserSchema; + createdByUserInfo: any; + deleted: boolean; + displayName: string; + dueDate: string; + eventDataValues: any[]; + eventDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + geometry: any; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2UserSchema; + lastUpdatedByUserInfo: any; + messageConversations: D2MessageConversationSchema[]; + name: string; + organisationUnit: D2OrganisationUnitSchema; + programInstance: D2ProgramInstanceSchema; + programStage: D2ProgramStageSchema; + publicAccess: string; + relationshipItems: any[]; + sharing: any; + status: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; + storedBy: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramStageInstance, + | "code" + | "storedBy" + | "organisationUnit" + | "dueDate" + | "createdAtClient" + | "messageConversations" + | "lastUpdatedByUserInfo" + | "lastUpdated" + | "eventDataValues" + | "relationshipItems" + | "id" + | "createdByUserInfo" + | "assignedUser" + | "programStage" + | "comments" + | "created" + | "completedDate" + | "programInstance" + | "deleted" + | "attributeOptionCombo" + | "geometry" + | "completedBy" + | "status" + | "lastUpdatedAtClient" + | "eventDate" + >; + $owner: Preset< + D2ProgramStageInstance, + | "code" + | "storedBy" + | "organisationUnit" + | "dueDate" + | "createdAtClient" + | "messageConversations" + | "lastUpdatedByUserInfo" + | "lastUpdated" + | "eventDataValues" + | "id" + | "createdByUserInfo" + | "assignedUser" + | "programStage" + | "comments" + | "created" + | "completedDate" + | "programInstance" + | "deleted" + | "attributeOptionCombo" + | "geometry" + | "completedBy" + | "status" + | "lastUpdatedAtClient" + | "eventDate" + >; + }; +} + +export interface D2ProgramStageInstanceFilterSchema { + name: "D2ProgramStageInstanceFilter"; + model: D2ProgramStageInstanceFilter; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayName: string; + eventQueryCriteria: any; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + program: Id; + programStage: Id; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramStageInstanceFilter, + | "eventQueryCriteria" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "created" + | "sharing" + | "createdBy" + | "name" + >; + $owner: Preset< + D2ProgramStageInstanceFilter, + | "eventQueryCriteria" + | "description" + | "program" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "programStage" + | "created" + | "sharing" + | "createdBy" + | "name" + >; + }; +} + +export interface D2ProgramStageSectionSchema { + name: "D2ProgramStageSection"; + model: D2ProgramStageSection; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataElements: D2DataElementSchema[]; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + programIndicators: D2ProgramIndicatorSchema[]; + programStage: D2ProgramStageSchema; + publicAccess: string; + renderType: any; + sharing: any; + shortName: string; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramStageSection, + | "code" + | "description" + | "programIndicators" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "renderType" + | "dataElements" + | "lastUpdatedBy" + | "programStage" + | "created" + | "sortOrder" + | "name" + | "style" + >; + $owner: Preset< + D2ProgramStageSection, + | "code" + | "description" + | "programIndicators" + | "lastUpdated" + | "translations" + | "formName" + | "id" + | "renderType" + | "dataElements" + | "lastUpdatedBy" + | "programStage" + | "created" + | "sortOrder" + | "name" + | "style" + >; + }; +} + +export interface D2ProgramTrackedEntityAttributeSchema { + name: "D2ProgramTrackedEntityAttribute"; + model: D2ProgramTrackedEntityAttribute; + fields: { + access: D2Access; + allowFutureDate: boolean; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayInList: boolean; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + mandatory: boolean; + name: string; + program: D2ProgramSchema; + programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroupSchema[]; + publicAccess: string; + renderOptionsAsRadio: boolean; + renderType: any; + searchable: boolean; + sharing: any; + sortOrder: number; + trackedEntityAttribute: D2TrackedEntityAttributeSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramTrackedEntityAttribute, + | "code" + | "programTrackedEntityAttributeGroups" + | "program" + | "mandatory" + | "trackedEntityAttribute" + | "lastUpdated" + | "renderOptionsAsRadio" + | "id" + | "allowFutureDate" + | "renderType" + | "lastUpdatedBy" + | "created" + | "searchable" + | "displayInList" + | "sortOrder" + >; + $owner: Preset< + D2ProgramTrackedEntityAttribute, + | "code" + | "programTrackedEntityAttributeGroups" + | "program" + | "mandatory" + | "trackedEntityAttribute" + | "lastUpdated" + | "renderOptionsAsRadio" + | "id" + | "allowFutureDate" + | "renderType" + | "lastUpdatedBy" + | "created" + | "searchable" + | "displayInList" + | "sortOrder" + >; + }; +} + +export interface D2ProgramTrackedEntityAttributeDimensionItemSchema { + name: "D2ProgramTrackedEntityAttributeDimensionItem"; + model: D2ProgramTrackedEntityAttributeDimensionItem; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attribute: D2TrackedEntityAttributeSchema; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + periodOffset: number; + program: D2ProgramSchema; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset< + D2ProgramTrackedEntityAttributeDimensionItem, + keyof D2ProgramTrackedEntityAttributeDimensionItem + >; + $identifiable: Preset< + D2ProgramTrackedEntityAttributeDimensionItem, + FieldPresets["identifiable"] + >; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2ProgramTrackedEntityAttributeGroupSchema { + name: "D2ProgramTrackedEntityAttributeGroup"; + model: D2ProgramTrackedEntityAttributeGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + attributes: D2ProgramTrackedEntityAttributeSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + uniqunessType: "NONE" | "STRICT" | "VALIDATION"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset< + D2ProgramTrackedEntityAttributeGroup, + keyof D2ProgramTrackedEntityAttributeGroup + >; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ProgramTrackedEntityAttributeGroup, + | "code" + | "uniqunessType" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "name" + | "attributes" + | "shortName" + >; + $owner: Preset< + D2ProgramTrackedEntityAttributeGroup, + | "code" + | "uniqunessType" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "name" + | "shortName" + >; + }; +} + +export interface D2PushAnalysisSchema { + name: "D2PushAnalysis"; + model: D2PushAnalysis; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dashboard: D2DashboardSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + message: string; + name: string; + publicAccess: string; + recipientUserGroups: D2UserGroupSchema[]; + sharing: any; + title: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2PushAnalysis, + | "code" + | "recipientUserGroups" + | "title" + | "lastUpdated" + | "id" + | "dashboard" + | "lastUpdatedBy" + | "created" + | "message" + | "name" + >; + $owner: Preset< + D2PushAnalysis, + | "code" + | "recipientUserGroups" + | "title" + | "lastUpdated" + | "id" + | "dashboard" + | "lastUpdatedBy" + | "created" + | "message" + | "name" + >; + }; +} + +export interface D2RelationshipSchema { + name: "D2Relationship"; + model: D2Relationship; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + from: any; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + relationshipType: D2RelationshipTypeSchema; + sharing: any; + shortName: string; + style: D2Style; + to: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Relationship, + | "code" + | "description" + | "lastUpdated" + | "formName" + | "from" + | "id" + | "lastUpdatedBy" + | "relationshipType" + | "created" + | "style" + | "to" + >; + $owner: Preset< + D2Relationship, + | "code" + | "description" + | "lastUpdated" + | "formName" + | "from" + | "id" + | "lastUpdatedBy" + | "relationshipType" + | "created" + | "style" + | "to" + >; + }; +} + +export interface D2RelationshipTypeSchema { + name: "D2RelationshipType"; + model: D2RelationshipType; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + bidirectional: boolean; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayFromToName: string; + displayName: string; + displayToFromName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fromConstraint: D2RelationshipConstraint; + fromToName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + toConstraint: D2RelationshipConstraint; + toFromName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2RelationshipType, + | "bidirectional" + | "code" + | "description" + | "fromToName" + | "lastUpdated" + | "translations" + | "toConstraint" + | "id" + | "lastUpdatedBy" + | "created" + | "toFromName" + | "sharing" + | "fromConstraint" + | "createdBy" + | "name" + >; + $owner: Preset< + D2RelationshipType, + | "bidirectional" + | "code" + | "description" + | "fromToName" + | "lastUpdated" + | "translations" + | "toConstraint" + | "id" + | "lastUpdatedBy" + | "created" + | "toFromName" + | "sharing" + | "fromConstraint" + | "createdBy" + | "name" + >; + }; +} + +export interface D2ReportSchema { + name: "D2Report"; + model: D2Report; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + cacheStrategy: + | "NO_CACHE" + | "CACHE_1_MINUTE" + | "CACHE_5_MINUTES" + | "CACHE_10_MINUTES" + | "CACHE_15_MINUTES" + | "CACHE_30_MINUTES" + | "CACHE_1_HOUR" + | "CACHE_6AM_TOMORROW" + | "CACHE_TWO_WEEKS" + | "RESPECT_SYSTEM_SETTING"; + code: Id; + created: string; + createdBy: D2UserSchema; + designContent: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + relativePeriods: any; + reportParams: D2ReportingParams; + sharing: any; + translations: D2Translation[]; + type: "JASPER_REPORT_TABLE" | "JASPER_JDBC" | "HTML"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + visualization: D2VisualizationSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Report, + | "designContent" + | "visualization" + | "code" + | "type" + | "lastUpdated" + | "relativePeriods" + | "reportParams" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "name" + | "cacheStrategy" + >; + $owner: Preset< + D2Report, + | "designContent" + | "visualization" + | "code" + | "type" + | "lastUpdated" + | "relativePeriods" + | "reportParams" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "createdBy" + | "name" + | "cacheStrategy" + >; + }; +} + +export interface D2ReportingRateSchema { + name: "D2ReportingRate"; + model: D2ReportingRate; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataSet: D2DataSetSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + metric: + | "REPORTING_RATE" + | "REPORTING_RATE_ON_TIME" + | "ACTUAL_REPORTS" + | "ACTUAL_REPORTS_ON_TIME" + | "EXPECTED_REPORTS"; + name: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2SMSCommandSchema { + name: "D2SMSCommand"; + model: D2SMSCommand; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + codeValueSeparator: string; + completenessMethod: "ALL_DATAVALUE" | "AT_LEAST_ONE_DATAVALUE" | "DO_NOT_MARK_COMPLETE"; + created: string; + createdBy: D2UserSchema; + currentPeriodUsedForReporting: boolean; + dataset: D2DataSetSchema; + defaultMessage: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + moreThanOneOrgUnitMessage: string; + name: string; + noUserMessage: string; + parserType: + | "KEY_VALUE_PARSER" + | "J2ME_PARSER" + | "ALERT_PARSER" + | "UNREGISTERED_PARSER" + | "TRACKED_ENTITY_REGISTRATION_PARSER" + | "PROGRAM_STAGE_DATAENTRY_PARSER" + | "EVENT_REGISTRATION_PARSER"; + program: D2ProgramSchema; + programStage: D2ProgramStageSchema; + publicAccess: string; + receivedMessage: string; + separator: string; + sharing: any; + smsCodes: any[]; + specialCharacters: any[]; + successMessage: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroup: D2UserGroupSchema; + userGroupAccesses: D2UserGroupAccessSchema[]; + wrongFormatMessage: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2SMSCommand, + | "moreThanOneOrgUnitMessage" + | "smsCodes" + | "specialCharacters" + | "currentPeriodUsedForReporting" + | "program" + | "noUserMessage" + | "lastUpdated" + | "receivedMessage" + | "defaultMessage" + | "id" + | "userGroup" + | "programStage" + | "completenessMethod" + | "created" + | "wrongFormatMessage" + | "separator" + | "successMessage" + | "codeValueSeparator" + | "parserType" + | "name" + | "dataset" + >; + $owner: Preset< + D2SMSCommand, + | "moreThanOneOrgUnitMessage" + | "smsCodes" + | "specialCharacters" + | "currentPeriodUsedForReporting" + | "program" + | "noUserMessage" + | "lastUpdated" + | "receivedMessage" + | "defaultMessage" + | "id" + | "userGroup" + | "programStage" + | "completenessMethod" + | "created" + | "wrongFormatMessage" + | "separator" + | "successMessage" + | "codeValueSeparator" + | "parserType" + | "name" + | "dataset" + >; + }; +} + +export interface D2SectionSchema { + name: "D2Section"; + model: D2Section; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + categoryCombos: D2CategoryComboSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + dataElements: D2DataElementSchema[]; + dataSet: D2DataSetSchema; + description: string; + disableDataElementAutoGroup: boolean; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + greyedFields: D2DataElementOperandSchema[]; + href: string; + id: Id; + indicators: D2IndicatorSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + showColumnTotals: boolean; + showRowTotals: boolean; + sortOrder: number; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Section, + | "code" + | "greyedFields" + | "description" + | "disableDataElementAutoGroup" + | "lastUpdated" + | "translations" + | "id" + | "dataSet" + | "dataElements" + | "showColumnTotals" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "indicators" + | "sortOrder" + | "name" + | "showRowTotals" + >; + $owner: Preset< + D2Section, + | "code" + | "greyedFields" + | "description" + | "disableDataElementAutoGroup" + | "lastUpdated" + | "translations" + | "id" + | "dataSet" + | "dataElements" + | "showColumnTotals" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "indicators" + | "sortOrder" + | "name" + | "showRowTotals" + >; + }; +} + +export interface D2SqlViewSchema { + name: "D2SqlView"; + model: D2SqlView; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + cacheStrategy: + | "NO_CACHE" + | "CACHE_1_MINUTE" + | "CACHE_5_MINUTES" + | "CACHE_10_MINUTES" + | "CACHE_15_MINUTES" + | "CACHE_30_MINUTES" + | "CACHE_1_HOUR" + | "CACHE_6AM_TOMORROW" + | "CACHE_TWO_WEEKS" + | "RESPECT_SYSTEM_SETTING"; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + sqlQuery: string; + translations: D2Translation[]; + type: "VIEW" | "MATERIALIZED_VIEW" | "QUERY"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2SqlView, + | "code" + | "description" + | "type" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "sqlQuery" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "cacheStrategy" + >; + $owner: Preset< + D2SqlView, + | "code" + | "description" + | "type" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "sqlQuery" + | "created" + | "attributeValues" + | "sharing" + | "createdBy" + | "name" + | "cacheStrategy" + >; + }; +} + +export interface D2TrackedEntityAttributeSchema { + name: "D2TrackedEntityAttribute"; + model: D2TrackedEntityAttribute; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + confidential: boolean; + created: string; + createdBy: D2UserSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayInListNoProgram: boolean; + displayName: string; + displayOnVisitSchedule: boolean; + displayShortName: string; + expression: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + fieldMask: string; + formName: string; + generated: boolean; + href: string; + id: Id; + inherit: boolean; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + optionSet: D2OptionSetSchema; + optionSetValue: boolean; + orgunitScope: boolean; + pattern: string; + periodOffset: number; + publicAccess: string; + sharing: any; + shortName: string; + skipSynchronization: boolean; + sortOrderInListNoProgram: number; + sortOrderInVisitSchedule: number; + style: D2Style; + translations: D2Translation[]; + unique: boolean; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityAttribute, + | "lastUpdated" + | "generated" + | "translations" + | "valueType" + | "id" + | "confidential" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "unique" + | "name" + | "legendSets" + | "style" + | "shortName" + | "aggregationType" + | "code" + | "displayInListNoProgram" + | "pattern" + | "description" + | "skipSynchronization" + | "sortOrderInListNoProgram" + | "optionSet" + | "displayOnVisitSchedule" + | "formName" + | "sortOrderInVisitSchedule" + | "orgunitScope" + | "fieldMask" + | "expression" + | "createdBy" + | "inherit" + >; + $owner: Preset< + D2TrackedEntityAttribute, + | "lastUpdated" + | "generated" + | "translations" + | "valueType" + | "id" + | "confidential" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "unique" + | "name" + | "legendSets" + | "style" + | "shortName" + | "aggregationType" + | "code" + | "displayInListNoProgram" + | "pattern" + | "description" + | "skipSynchronization" + | "sortOrderInListNoProgram" + | "optionSet" + | "displayOnVisitSchedule" + | "formName" + | "sortOrderInVisitSchedule" + | "orgunitScope" + | "fieldMask" + | "expression" + | "createdBy" + | "inherit" + >; + }; +} + +export interface D2TrackedEntityAttributeValueSchema { + name: "D2TrackedEntityAttributeValue"; + model: D2TrackedEntityAttributeValue; + fields: { + created: string; + lastUpdated: string; + storedBy: string; + trackedEntityAttribute: D2TrackedEntityAttributeSchema; + trackedEntityInstance: D2TrackedEntityInstanceSchema; + value: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2TrackedEntityDataElementDimensionSchema { + name: "D2TrackedEntityDataElementDimension"; + model: D2TrackedEntityDataElementDimension; + fields: { + dataElement: D2DataElementSchema; + filter: string; + legendSet: D2LegendSetSchema; + programStage: D2ProgramStageSchema; + }; + fieldPresets: { + $all: Preset< + D2TrackedEntityDataElementDimension, + keyof D2TrackedEntityDataElementDimension + >; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityDataElementDimension, + "filter" | "legendSet" | "programStage" | "dataElement" + >; + $owner: Preset< + D2TrackedEntityDataElementDimension, + "filter" | "legendSet" | "programStage" | "dataElement" + >; + }; +} + +export interface D2TrackedEntityInstanceSchema { + name: "D2TrackedEntityInstance"; + model: D2TrackedEntityInstance; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdAtClient: string; + createdBy: D2UserSchema; + createdByUserInfo: any; + deleted: boolean; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + geometry: any; + href: string; + id: Id; + inactive: boolean; + lastUpdated: string; + lastUpdatedAtClient: string; + lastUpdatedBy: D2UserSchema; + lastUpdatedByUserInfo: any; + name: string; + organisationUnit: D2OrganisationUnitSchema; + potentialDuplicate: boolean; + programInstances: D2ProgramInstanceSchema[]; + programOwners: any[]; + publicAccess: string; + relationshipItems: any[]; + sharing: any; + storedBy: string; + trackedEntityAttributeValues: D2TrackedEntityAttributeValueSchema[]; + trackedEntityType: D2TrackedEntityTypeSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityInstance, + | "programOwners" + | "code" + | "storedBy" + | "programInstances" + | "organisationUnit" + | "createdAtClient" + | "lastUpdatedByUserInfo" + | "lastUpdated" + | "inactive" + | "relationshipItems" + | "id" + | "createdByUserInfo" + | "lastUpdatedBy" + | "created" + | "potentialDuplicate" + | "deleted" + | "trackedEntityType" + | "geometry" + | "trackedEntityAttributeValues" + | "lastUpdatedAtClient" + >; + $owner: Preset< + D2TrackedEntityInstance, + | "code" + | "storedBy" + | "organisationUnit" + | "createdAtClient" + | "lastUpdatedByUserInfo" + | "lastUpdated" + | "inactive" + | "id" + | "createdByUserInfo" + | "lastUpdatedBy" + | "created" + | "potentialDuplicate" + | "deleted" + | "trackedEntityType" + | "geometry" + | "lastUpdatedAtClient" + >; + }; +} + +export interface D2TrackedEntityInstanceFilterSchema { + name: "D2TrackedEntityInstanceFilter"; + model: D2TrackedEntityInstanceFilter; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayName: string; + enrollmentCreatedPeriod: any; + enrollmentStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; + eventFilters: any[]; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + followup: boolean; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + program: D2ProgramSchema; + publicAccess: string; + sharing: any; + sortOrder: number; + style: D2Style; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityInstanceFilter, + | "code" + | "description" + | "program" + | "enrollmentCreatedPeriod" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "followup" + | "eventFilters" + | "enrollmentStatus" + | "sortOrder" + | "name" + | "style" + >; + $owner: Preset< + D2TrackedEntityInstanceFilter, + | "code" + | "description" + | "program" + | "enrollmentCreatedPeriod" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "followup" + | "eventFilters" + | "enrollmentStatus" + | "sortOrder" + | "name" + | "style" + >; + }; +} + +export interface D2TrackedEntityProgramIndicatorDimensionSchema { + name: "D2TrackedEntityProgramIndicatorDimension"; + model: D2TrackedEntityProgramIndicatorDimension; + fields: { + filter: string; + legendSet: D2LegendSetSchema; + programIndicator: D2ProgramIndicatorSchema; + }; + fieldPresets: { + $all: Preset< + D2TrackedEntityProgramIndicatorDimension, + keyof D2TrackedEntityProgramIndicatorDimension + >; + $identifiable: Preset< + D2TrackedEntityProgramIndicatorDimension, + FieldPresets["identifiable"] + >; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityProgramIndicatorDimension, + "filter" | "legendSet" | "programIndicator" + >; + $owner: Preset< + D2TrackedEntityProgramIndicatorDimension, + "filter" | "legendSet" | "programIndicator" + >; + }; +} + +export interface D2TrackedEntityTypeSchema { + name: "D2TrackedEntityType"; + model: D2TrackedEntityType; + fields: { + access: D2Access; + allowAuditLog: boolean; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayDescription: string; + displayFormName: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; + formName: string; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + maxTeiCountToReturn: number; + minAttributesRequiredToSearch: number; + name: string; + publicAccess: string; + sharing: any; + shortName: string; + style: D2Style; + trackedEntityTypeAttributes: D2TrackedEntityTypeAttributeSchema[]; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityType, + | "code" + | "trackedEntityTypeAttributes" + | "description" + | "lastUpdated" + | "allowAuditLog" + | "translations" + | "formName" + | "featureType" + | "minAttributesRequiredToSearch" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "maxTeiCountToReturn" + | "createdBy" + | "name" + | "style" + >; + $owner: Preset< + D2TrackedEntityType, + | "code" + | "trackedEntityTypeAttributes" + | "description" + | "lastUpdated" + | "allowAuditLog" + | "translations" + | "formName" + | "featureType" + | "minAttributesRequiredToSearch" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "maxTeiCountToReturn" + | "createdBy" + | "name" + | "style" + >; + }; +} + +export interface D2TrackedEntityTypeAttributeSchema { + name: "D2TrackedEntityTypeAttribute"; + model: D2TrackedEntityTypeAttribute; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayInList: boolean; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + mandatory: boolean; + name: string; + publicAccess: string; + searchable: boolean; + sharing: any; + trackedEntityAttribute: D2TrackedEntityAttributeSchema; + trackedEntityType: D2TrackedEntityTypeSchema; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + valueType: + | "TEXT" + | "LONG_TEXT" + | "LETTER" + | "PHONE_NUMBER" + | "EMAIL" + | "BOOLEAN" + | "TRUE_ONLY" + | "DATE" + | "DATETIME" + | "TIME" + | "NUMBER" + | "UNIT_INTERVAL" + | "PERCENTAGE" + | "INTEGER" + | "INTEGER_POSITIVE" + | "INTEGER_NEGATIVE" + | "INTEGER_ZERO_OR_POSITIVE" + | "TRACKER_ASSOCIATE" + | "USERNAME" + | "COORDINATE" + | "ORGANISATION_UNIT" + | "AGE" + | "URL" + | "FILE_RESOURCE" + | "IMAGE"; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2TrackedEntityTypeAttribute, + | "code" + | "mandatory" + | "trackedEntityAttribute" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "created" + | "searchable" + | "displayInList" + | "trackedEntityType" + >; + $owner: Preset< + D2TrackedEntityTypeAttribute, + | "code" + | "mandatory" + | "trackedEntityAttribute" + | "lastUpdated" + | "id" + | "lastUpdatedBy" + | "created" + | "searchable" + | "displayInList" + | "trackedEntityType" + >; + }; +} + +export interface D2UserSchema { + name: "D2User"; + model: D2User; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + avatar: D2FileResourceSchema; + birthday: string; + code: Id; + created: string; + createdBy: D2UserSchema; + dataViewMaxOrganisationUnitLevel: number; + dataViewOrganisationUnits: D2OrganisationUnitSchema[]; + displayName: string; + education: string; + email: string; + employer: string; + externalAccess: boolean; + facebookMessenger: string; + favorite: boolean; + favorites: string[]; + firstName: string; + gender: string; + href: string; + id: Id; + interests: string; + introduction: string; + jobTitle: string; + languages: string; + lastCheckedInterpretations: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + nationality: string; + organisationUnits: D2OrganisationUnitSchema[]; + phoneNumber: string; + publicAccess: string; + sharing: any; + skype: string; + surname: string; + teiSearchOrganisationUnits: D2OrganisationUnitSchema[]; + telegram: string; + translations: D2Translation[]; + twitter: string; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userCredentials: D2UserCredentialsSchema; + userGroupAccesses: D2UserGroupAccessSchema[]; + userGroups: D2UserGroupSchema[]; + welcomeMessage: string; + whatsApp: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2User, + | "education" + | "jobTitle" + | "lastUpdated" + | "twitter" + | "employer" + | "id" + | "dataViewOrganisationUnits" + | "whatsApp" + | "created" + | "attributeValues" + | "userGroups" + | "firstName" + | "phoneNumber" + | "nationality" + | "birthday" + | "code" + | "gender" + | "skype" + | "teiSearchOrganisationUnits" + | "surname" + | "organisationUnits" + | "facebookMessenger" + | "introduction" + | "email" + | "languages" + | "welcomeMessage" + | "userCredentials" + | "telegram" + | "avatar" + | "dataViewMaxOrganisationUnitLevel" + | "lastCheckedInterpretations" + | "interests" + >; + $owner: Preset< + D2User, + | "education" + | "jobTitle" + | "lastUpdated" + | "twitter" + | "employer" + | "id" + | "dataViewOrganisationUnits" + | "whatsApp" + | "created" + | "attributeValues" + | "firstName" + | "phoneNumber" + | "nationality" + | "birthday" + | "code" + | "gender" + | "skype" + | "teiSearchOrganisationUnits" + | "surname" + | "organisationUnits" + | "facebookMessenger" + | "introduction" + | "email" + | "languages" + | "welcomeMessage" + | "userCredentials" + | "telegram" + | "avatar" + | "dataViewMaxOrganisationUnitLevel" + | "lastCheckedInterpretations" + | "interests" + >; + }; +} + +export interface D2UserAccessSchema { + name: "D2UserAccess"; + model: D2UserAccess; + fields: { access: string; id: string }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2UserAuthorityGroupSchema { + name: "D2UserAuthorityGroup"; + model: D2UserAuthorityGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + authorities: string[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + users: D2UserSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2UserAuthorityGroup, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "authorities" + | "createdBy" + | "name" + >; + $owner: Preset< + D2UserAuthorityGroup, + | "code" + | "description" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "sharing" + | "authorities" + | "createdBy" + | "name" + >; + }; +} + +export interface D2UserCredentialsSchema { + name: "D2UserCredentials"; + model: D2UserCredentials; + fields: { + access: D2Access; + accountExpiry: string; + attributeValues: D2AttributeValueSchema[]; + catDimensionConstraints: D2CategorySchema[]; + code: Id; + cogsDimensionConstraints: D2CategoryOptionGroupSetSchema[]; + created: string; + createdBy: D2UserSchema; + disabled: boolean; + displayName: string; + externalAccess: boolean; + externalAuth: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + invitation: boolean; + lastLogin: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + ldapId: string; + name: string; + openId: string; + password: string; + passwordLastUpdated: string; + publicAccess: string; + selfRegistered: boolean; + sharing: any; + translations: D2Translation[]; + twoFA: boolean; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userInfo: D2UserSchema; + userRoles: D2UserAuthorityGroupSchema[]; + username: string; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2UserCredentials, + | "lastLogin" + | "userInfo" + | "code" + | "openId" + | "externalAuth" + | "cogsDimensionConstraints" + | "accountExpiry" + | "catDimensionConstraints" + | "lastUpdated" + | "password" + | "ldapId" + | "disabled" + | "id" + | "twoFA" + | "passwordLastUpdated" + | "lastUpdatedBy" + | "invitation" + | "created" + | "selfRegistered" + | "userRoles" + | "createdBy" + | "username" + >; + $owner: Preset< + D2UserCredentials, + | "lastLogin" + | "userInfo" + | "code" + | "openId" + | "externalAuth" + | "cogsDimensionConstraints" + | "accountExpiry" + | "catDimensionConstraints" + | "lastUpdated" + | "password" + | "ldapId" + | "disabled" + | "id" + | "twoFA" + | "passwordLastUpdated" + | "lastUpdatedBy" + | "invitation" + | "created" + | "selfRegistered" + | "userRoles" + | "createdBy" + | "username" + >; + }; +} + +export interface D2UserGroupSchema { + name: "D2UserGroup"; + model: D2UserGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + managedByGroups: D2UserGroupSchema[]; + managedGroups: D2UserGroupSchema[]; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + users: D2UserSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2UserGroup, + | "code" + | "managedByGroups" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "users" + | "managedGroups" + | "createdBy" + | "name" + >; + $owner: Preset< + D2UserGroup, + | "code" + | "lastUpdated" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "sharing" + | "users" + | "managedGroups" + | "createdBy" + | "name" + >; + }; +} + +export interface D2UserGroupAccessSchema { + name: "D2UserGroupAccess"; + model: D2UserGroupAccess; + fields: { access: string; id: string }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset; + $owner: Preset; + }; +} + +export interface D2ValidationNotificationTemplateSchema { + name: "D2ValidationNotificationTemplate"; + model: D2ValidationNotificationTemplate; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + displayMessageTemplate: string; + displayName: string; + displaySubjectTemplate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + messageTemplate: string; + name: string; + notifyParentOrganisationUnitOnly: boolean; + notifyUsersInHierarchyOnly: boolean; + publicAccess: string; + recipientUserGroups: D2UserGroupSchema[]; + sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; + sharing: any; + subjectTemplate: string; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + validationRules: D2ValidationRuleSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ValidationNotificationTemplate, + | "code" + | "recipientUserGroups" + | "lastUpdated" + | "translations" + | "id" + | "subjectTemplate" + | "sendStrategy" + | "lastUpdatedBy" + | "validationRules" + | "created" + | "notifyUsersInHierarchyOnly" + | "name" + | "messageTemplate" + >; + $owner: Preset< + D2ValidationNotificationTemplate, + | "code" + | "recipientUserGroups" + | "lastUpdated" + | "translations" + | "id" + | "subjectTemplate" + | "sendStrategy" + | "lastUpdatedBy" + | "validationRules" + | "created" + | "notifyUsersInHierarchyOnly" + | "name" + | "messageTemplate" + >; + }; +} + +export interface D2ValidationResultSchema { + name: "D2ValidationResult"; + model: D2ValidationResult; + fields: { + attributeOptionCombo: D2CategoryOptionComboSchema; + created: string; + dayInPeriod: number; + id: string; + leftsideValue: number; + notificationSent: boolean; + organisationUnit: D2OrganisationUnitSchema; + period: any; + rightsideValue: number; + validationRule: D2ValidationRuleSchema; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ValidationResult, + "created" | "rightsideValue" | "leftsideValue" | "notificationSent" + >; + $owner: Preset< + D2ValidationResult, + "created" | "rightsideValue" | "leftsideValue" | "notificationSent" + >; + }; +} + +export interface D2ValidationRuleSchema { + name: "D2ValidationRule"; + model: D2ValidationRule; + fields: { + access: D2Access; + aggregateExportAttributeOptionCombo: string; + aggregateExportCategoryOptionCombo: string; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + dimensionItem: string; + dimensionItemType: + | "DATA_ELEMENT" + | "DATA_ELEMENT_OPERAND" + | "INDICATOR" + | "REPORTING_RATE" + | "PROGRAM_DATA_ELEMENT" + | "PROGRAM_ATTRIBUTE" + | "PROGRAM_INDICATOR" + | "PERIOD" + | "ORGANISATION_UNIT" + | "CATEGORY_OPTION" + | "OPTION_GROUP" + | "DATA_ELEMENT_GROUP" + | "ORGANISATION_UNIT_GROUP" + | "CATEGORY_OPTION_GROUP"; + displayDescription: string; + displayFormName: string; + displayInstruction: string; + displayName: string; + displayShortName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + formName: string; + href: string; + id: Id; + importance: "HIGH" | "MEDIUM" | "LOW"; + instruction: string; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + leftSide: D2ExpressionSchema; + legendSet: D2LegendSetSchema; + legendSets: D2LegendSetSchema[]; + name: string; + notificationTemplates: D2ValidationNotificationTemplateSchema[]; + operator: + | "equal_to" + | "not_equal_to" + | "greater_than" + | "greater_than_or_equal_to" + | "less_than" + | "less_than_or_equal_to" + | "compulsory_pair" + | "exclusive_pair"; + organisationUnitLevels: number[]; + periodOffset: number; + periodType: string; + publicAccess: string; + rightSide: D2ExpressionSchema; + sharing: any; + shortName: string; + skipFormValidation: boolean; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + validationRuleGroups: D2ValidationRuleGroupSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ValidationRule, + | "validationRuleGroups" + | "code" + | "importance" + | "description" + | "operator" + | "organisationUnitLevels" + | "lastUpdated" + | "leftSide" + | "notificationTemplates" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "rightSide" + | "sharing" + | "periodType" + | "createdBy" + | "instruction" + | "name" + | "skipFormValidation" + >; + $owner: Preset< + D2ValidationRule, + | "code" + | "importance" + | "description" + | "operator" + | "organisationUnitLevels" + | "lastUpdated" + | "leftSide" + | "translations" + | "id" + | "lastUpdatedBy" + | "created" + | "attributeValues" + | "rightSide" + | "sharing" + | "periodType" + | "createdBy" + | "instruction" + | "name" + | "skipFormValidation" + >; + }; +} + +export interface D2ValidationRuleGroupSchema { + name: "D2ValidationRuleGroup"; + model: D2ValidationRuleGroup; + fields: { + access: D2Access; + attributeValues: D2AttributeValueSchema[]; + code: Id; + created: string; + createdBy: D2UserSchema; + description: string; + displayName: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + href: string; + id: Id; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + name: string; + publicAccess: string; + sharing: any; + translations: D2Translation[]; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + validationRules: D2ValidationRuleSchema[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2ValidationRuleGroup, + | "lastUpdatedBy" + | "code" + | "validationRules" + | "created" + | "attributeValues" + | "description" + | "sharing" + | "lastUpdated" + | "createdBy" + | "translations" + | "name" + | "id" + >; + $owner: Preset< + D2ValidationRuleGroup, + | "lastUpdatedBy" + | "code" + | "validationRules" + | "created" + | "attributeValues" + | "description" + | "sharing" + | "lastUpdated" + | "createdBy" + | "translations" + | "name" + | "id" + >; + }; +} + +export interface D2VisualizationSchema { + name: "D2Visualization"; + model: D2Visualization; + fields: { + access: D2Access; + aggregationType: + | "SUM" + | "AVERAGE" + | "AVERAGE_SUM_ORG_UNIT" + | "LAST" + | "LAST_AVERAGE_ORG_UNIT" + | "LAST_IN_PERIOD" + | "LAST_IN_PERIOD_AVERAGE_ORG_UNIT" + | "FIRST" + | "FIRST_AVERAGE_ORG_UNIT" + | "COUNT" + | "STDDEV" + | "VARIANCE" + | "MIN" + | "MAX" + | "NONE" + | "CUSTOM" + | "DEFAULT"; + attributeDimensions: any[]; + attributeValues: D2AttributeValueSchema[]; + axes: any[]; + baseLineLabel: string; + baseLineValue: number; + categoryDimensions: D2CategoryDimensionSchema[]; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; + code: Id; + colSubTotals: boolean; + colTotals: boolean; + colorSet: string; + columnDimensions: string[]; + columns: any[]; + completedOnly: boolean; + created: string; + createdBy: D2UserSchema; + cumulativeValues: boolean; + dataDimensionItems: any[]; + dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; + description: string; + digitGroupSeparator: "COMMA" | "SPACE" | "NONE"; + displayBaseLineLabel: string; + displayDensity: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; + displayDescription: string; + displayDomainAxisLabel: string; + displayFormName: string; + displayName: string; + displayRangeAxisLabel: string; + displayShortName: string; + displaySubtitle: string; + displayTargetLineLabel: string; + displayTitle: string; + domainAxisLabel: string; + endDate: string; + externalAccess: boolean; + favorite: boolean; + favorites: string[]; + filterDimensions: string[]; + filters: any[]; + fixColumnHeaders: boolean; + fixRowHeaders: boolean; + fontSize: "LARGE" | "NORMAL" | "SMALL"; + fontStyle: any; + formName: string; + hideEmptyColumns: boolean; + hideEmptyRowItems: + | "NONE" + | "BEFORE_FIRST" + | "AFTER_LAST" + | "BEFORE_FIRST_AFTER_LAST" + | "ALL"; + hideEmptyRows: boolean; + hideLegend: boolean; + hideSubtitle: boolean; + hideTitle: boolean; + href: string; + id: Id; + interpretations: D2InterpretationSchema[]; + itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; + lastUpdated: string; + lastUpdatedBy: D2UserSchema; + legend: any; + measureCriteria: string; + name: string; + noSpaceBetweenColumns: boolean; + numberType: "VALUE" | "ROW_PERCENTAGE" | "COLUMN_PERCENTAGE"; + optionalAxes: D2Axis[]; + orgUnitField: string; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; + organisationUnitLevels: number[]; + organisationUnits: D2OrganisationUnitSchema[]; + outlierAnalysis: any; + parentGraphMap: D2MapSchema; + percentStackedValues: boolean; + periods: any[]; + programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; + publicAccess: string; + rangeAxisDecimals: number; + rangeAxisLabel: string; + rangeAxisMaxValue: number; + rangeAxisMinValue: number; + rangeAxisSteps: number; + regression: boolean; + regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; + relativePeriods: any; + reportingParams: D2ReportingParams; + rowDimensions: string[]; + rowSubTotals: boolean; + rowTotals: boolean; + rows: any[]; + series: any[]; + seriesKey: any; + sharing: any; + shortName: string; + showData: boolean; + showDimensionLabels: boolean; + showHierarchy: boolean; + skipRounding: boolean; + sortOrder: number; + startDate: string; + subscribed: boolean; + subscribers: string[]; + subtitle: string; + targetLineLabel: string; + targetLineValue: number; + timeField: string; + title: string; + topLimit: number; + translations: D2Translation[]; + type: + | "COLUMN" + | "STACKED_COLUMN" + | "BAR" + | "STACKED_BAR" + | "LINE" + | "AREA" + | "STACKED_AREA" + | "PIE" + | "RADAR" + | "GAUGE" + | "YEAR_OVER_YEAR_LINE" + | "YEAR_OVER_YEAR_COLUMN" + | "SINGLE_VALUE" + | "PIVOT_TABLE" + | "SCATTER" + | "BUBBLE"; + user: D2UserSchema; + userAccesses: D2UserAccessSchema[]; + userGroupAccesses: D2UserGroupAccessSchema[]; + userOrgUnitType: "DATA_CAPTURE" | "DATA_OUTPUT" | "TEI_SEARCH"; + userOrganisationUnit: boolean; + userOrganisationUnitChildren: boolean; + userOrganisationUnitGrandChildren: boolean; + visualizationPeriodName: string; + yearlySeries: string[]; + }; + fieldPresets: { + $all: Preset; + $identifiable: Preset; + $nameable: Preset; + $persisted: Preset< + D2Visualization, + | "dataElementGroupSetDimensions" + | "endDate" + | "legend" + | "userOrganisationUnitChildren" + | "axes" + | "type" + | "hideEmptyColumns" + | "measureCriteria" + | "lastUpdated" + | "translations" + | "yearlySeries" + | "userOrganisationUnit" + | "rowSubTotals" + | "filterDimensions" + | "id" + | "interpretations" + | "subscribers" + | "cumulativeValues" + | "fontStyle" + | "optionalAxes" + | "showDimensionLabels" + | "sortOrder" + | "subtitle" + | "fontSize" + | "topLimit" + | "startDate" + | "userOrganisationUnitGrandChildren" + | "percentStackedValues" + | "noSpaceBetweenColumns" + | "periods" + | "categoryDimensions" + | "showHierarchy" + | "seriesKey" + | "reportingParams" + | "hideTitle" + | "rowDimensions" + | "series" + | "colorSet" + | "skipRounding" + | "showData" + | "fixRowHeaders" + | "numberType" + | "hideEmptyRows" + | "itemOrganisationUnitGroups" + | "displayDensity" + | "lastUpdatedBy" + | "created" + | "regressionType" + | "columnDimensions" + | "completedOnly" + | "colTotals" + | "sharing" + | "name" + | "hideEmptyRowItems" + | "favorites" + | "aggregationType" + | "dataDimensionItems" + | "code" + | "categoryOptionGroupSetDimensions" + | "hideSubtitle" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "hideLegend" + | "fixColumnHeaders" + | "organisationUnitLevels" + | "colSubTotals" + | "relativePeriods" + | "organisationUnits" + | "rowTotals" + | "outlierAnalysis" + | "digitGroupSeparator" + | "createdBy" + | "regression" + | "userOrgUnitType" + >; + $owner: Preset< + D2Visualization, + | "dataElementGroupSetDimensions" + | "endDate" + | "legend" + | "userOrganisationUnitChildren" + | "axes" + | "type" + | "hideEmptyColumns" + | "measureCriteria" + | "lastUpdated" + | "translations" + | "yearlySeries" + | "userOrganisationUnit" + | "rowSubTotals" + | "filterDimensions" + | "id" + | "subscribers" + | "cumulativeValues" + | "fontStyle" + | "optionalAxes" + | "showDimensionLabels" + | "sortOrder" + | "subtitle" + | "fontSize" + | "topLimit" + | "startDate" + | "userOrganisationUnitGrandChildren" + | "percentStackedValues" + | "noSpaceBetweenColumns" + | "periods" + | "categoryDimensions" + | "showHierarchy" + | "seriesKey" + | "reportingParams" + | "hideTitle" + | "rowDimensions" + | "series" + | "colorSet" + | "skipRounding" + | "showData" + | "fixRowHeaders" + | "numberType" + | "hideEmptyRows" + | "itemOrganisationUnitGroups" + | "displayDensity" + | "lastUpdatedBy" + | "created" + | "regressionType" + | "columnDimensions" + | "completedOnly" + | "colTotals" + | "sharing" + | "name" + | "hideEmptyRowItems" + | "favorites" + | "aggregationType" + | "dataDimensionItems" + | "code" + | "categoryOptionGroupSetDimensions" + | "hideSubtitle" + | "description" + | "organisationUnitGroupSetDimensions" + | "title" + | "hideLegend" + | "fixColumnHeaders" + | "organisationUnitLevels" + | "colSubTotals" + | "relativePeriods" + | "organisationUnits" + | "rowTotals" + | "outlierAnalysis" + | "digitGroupSeparator" + | "createdBy" + | "regression" + | "userOrgUnitType" + >; + }; +} + +export type D2Model = + | D2AnalyticsPeriodBoundary + | D2AnalyticsTableHook + | D2ApiToken + | D2Attribute + | D2AttributeValue + | D2Category + | D2CategoryCombo + | D2CategoryDimension + | D2CategoryOption + | D2CategoryOptionCombo + | D2CategoryOptionGroup + | D2CategoryOptionGroupSet + | D2CategoryOptionGroupSetDimension + | D2Constant + | D2Dashboard + | D2DashboardItem + | D2DataApprovalLevel + | D2DataApprovalWorkflow + | D2DataElement + | D2DataElementGroup + | D2DataElementGroupSet + | D2DataElementGroupSetDimension + | D2DataElementOperand + | D2DataEntryForm + | D2DataInputPeriod + | D2DataSet + | D2DataSetElement + | D2DataSetNotificationTemplate + | D2Document + | D2EventChart + | D2EventReport + | D2Expression + | D2ExternalFileResource + | D2ExternalMapLayer + | D2FileResource + | D2Icon + | D2Indicator + | D2IndicatorGroup + | D2IndicatorGroupSet + | D2IndicatorType + | D2Interpretation + | D2InterpretationComment + | D2JobConfiguration + | D2KeyJsonValue + | D2Legend + | D2LegendSet + | D2Map + | D2MapView + | D2MessageConversation + | D2MetadataVersion + | D2MinMaxDataElement + | D2OAuth2Client + | D2Option + | D2OptionGroup + | D2OptionGroupSet + | D2OptionSet + | D2OrganisationUnit + | D2OrganisationUnitGroup + | D2OrganisationUnitGroupSet + | D2OrganisationUnitGroupSetDimension + | D2OrganisationUnitLevel + | D2Predictor + | D2PredictorGroup + | D2Program + | D2ProgramDataElementDimensionItem + | D2ProgramIndicator + | D2ProgramIndicatorGroup + | D2ProgramInstance + | D2ProgramNotificationTemplate + | D2ProgramRule + | D2ProgramRuleAction + | D2ProgramRuleVariable + | D2ProgramSection + | D2ProgramStage + | D2ProgramStageDataElement + | D2ProgramStageInstance + | D2ProgramStageInstanceFilter + | D2ProgramStageSection + | D2ProgramTrackedEntityAttribute + | D2ProgramTrackedEntityAttributeDimensionItem + | D2ProgramTrackedEntityAttributeGroup + | D2PushAnalysis + | D2Relationship + | D2RelationshipType + | D2Report + | D2ReportingRate + | D2SMSCommand + | D2Section + | D2SqlView + | D2TrackedEntityAttribute + | D2TrackedEntityAttributeValue + | D2TrackedEntityDataElementDimension + | D2TrackedEntityInstance + | D2TrackedEntityInstanceFilter + | D2TrackedEntityProgramIndicatorDimension + | D2TrackedEntityType + | D2TrackedEntityTypeAttribute + | D2User + | D2UserAccess + | D2UserAuthorityGroup + | D2UserCredentials + | D2UserGroup + | D2UserGroupAccess + | D2ValidationNotificationTemplate + | D2ValidationResult + | D2ValidationRule + | D2ValidationRuleGroup + | D2Visualization; + +export const models: Record = { + analyticsPeriodBoundaries: { + klass: "org.hisp.dhis.program.AnalyticsPeriodBoundary", + shareable: false, + metadata: false, + plural: "analyticsPeriodBoundaries", + displayName: "Analytics Period Boundary", + collectionName: "analyticsPeriodBoundaries", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "analyticsPeriodBoundary", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "offsetPeriodType", + fieldName: "offsetPeriodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "analyticsPeriodBoundaryType", + fieldName: "analyticsPeriodBoundaryType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.AnalyticsPeriodBoundaryType", + }, + { + name: "boundaryTarget", + fieldName: "boundaryTarget", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "offsetPeriods", + fieldName: "offsetPeriods", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + ], + }, + analyticsTableHooks: { + klass: "org.hisp.dhis.analytics.AnalyticsTableHook", + shareable: false, + metadata: true, + relativeApiEndpoint: "/analyticsTableHooks", + plural: "analyticsTableHooks", + displayName: "Analytics Table Hook", + collectionName: "analyticsTableHooks", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "analyticsTableHook", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "analyticsTableType", + fieldName: "analyticsTableType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AnalyticsTableType", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "sql", fieldName: "sql", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "phase", + fieldName: "phase", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AnalyticsTablePhase", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "resourceTableType", + fieldName: "resourceTableType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.resourcetable.ResourceTableType", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + apiToken: { + klass: "org.hisp.dhis.security.apikey.ApiToken", + shareable: true, + metadata: true, + relativeApiEndpoint: "/apiToken", + plural: "apiToken", + displayName: "Api Token", + collectionName: "apiToken", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "apiToken", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.security.apikey.ApiTokenType", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "key", fieldName: "key", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "version", + fieldName: "version", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "expire", + fieldName: "expire", + propertyType: "NUMBER", + klass: "java.lang.Long", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attributes", + fieldName: "attributes", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.security.apikey.ApiTokenAttribute", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + attributes: { + klass: "org.hisp.dhis.attribute.Attribute", + shareable: true, + metadata: true, + relativeApiEndpoint: "/attributes", + plural: "attributes", + displayName: "Attribute", + collectionName: "attributes", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "attribute", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "indicatorAttribute", + fieldName: "indicatorAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "indicatorGroupAttribute", + fieldName: "indicatorGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userGroupAttribute", + fieldName: "userGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElementAttribute", + fieldName: "dataElementAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "constantAttribute", + fieldName: "constantAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + fieldName: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { + name: "categoryOptionAttribute", + fieldName: "categoryOptionAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "optionSetAttribute", + fieldName: "optionSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "sqlViewAttribute", + fieldName: "sqlViewAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "legendSetAttribute", + fieldName: "legendSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "trackedEntityAttributeAttribute", + fieldName: "trackedEntityAttributeAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "organisationUnitAttribute", + fieldName: "organisationUnitAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataSetAttribute", + fieldName: "dataSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "documentAttribute", + fieldName: "documentAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "unique", + fieldName: "unique", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "validationRuleGroupAttribute", + fieldName: "validationRuleGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dataElementGroupAttribute", + fieldName: "dataElementGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sectionAttribute", + fieldName: "sectionAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "trackedEntityTypeAttribute", + fieldName: "trackedEntityTypeAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userAttribute", + fieldName: "userAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "mandatory", + fieldName: "mandatory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "categoryOptionGroupAttribute", + fieldName: "categoryOptionGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programStageAttribute", + fieldName: "programStageAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programAttribute", + fieldName: "programAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "categoryAttribute", + fieldName: "categoryAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "categoryOptionComboAttribute", + fieldName: "categoryOptionComboAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetAttribute", + fieldName: "categoryOptionGroupSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "validationRuleAttribute", + fieldName: "validationRuleAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programIndicatorAttribute", + fieldName: "programIndicatorAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "organisationUnitGroupAttribute", + fieldName: "organisationUnitGroupAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElementGroupSetAttribute", + fieldName: "dataElementGroupSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "organisationUnitGroupSetAttribute", + fieldName: "organisationUnitGroupSetAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "optionAttribute", + fieldName: "optionAttribute", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + ], + }, + attributeValues: { + klass: "org.hisp.dhis.attribute.AttributeValue", + shareable: false, + metadata: false, + plural: "attributeValues", + displayName: "Attribute Value", + collectionName: "attributeValues", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "attributeValues", + persisted: false, + embeddedObject: true, + properties: [ + { + name: "attribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.attribute.Attribute", + }, + { name: "value", fieldName: "value", propertyType: "TEXT", klass: "java.lang.String" }, + ], + }, + categories: { + klass: "org.hisp.dhis.category.Category", + shareable: true, + metadata: true, + relativeApiEndpoint: "/categories", + plural: "categories", + displayName: "Category", + collectionName: "categories", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "category", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dimensionItemKeywords", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.DimensionItemKeywords", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dimensionType", + fieldName: "dimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "categoryCombo", + fieldName: "categoryCombos", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryCombo", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "categoryOption", + fieldName: "categoryOptions", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOption", + }, + { name: "dimension", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "allItems", + fieldName: "allItems", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "dataDimension", + fieldName: "dataDimension", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "item", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + categoryCombos: { + klass: "org.hisp.dhis.category.CategoryCombo", + shareable: true, + metadata: true, + relativeApiEndpoint: "/categoryCombos", + plural: "categoryCombos", + displayName: "Category Combo", + collectionName: "categoryCombos", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "categoryCombo", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "category", + fieldName: "categories", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.Category", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "categoryOptionCombo", + fieldName: "optionCombos", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { name: "isDefault", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "skipTotal", + fieldName: "skipTotal", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + categoryDimensions: { + klass: "org.hisp.dhis.category.CategoryDimension", + shareable: false, + metadata: false, + plural: "categoryDimensions", + displayName: "Category Dimension", + collectionName: "categoryDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "categoryDimension", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "categoryOption", + fieldName: "items", + propertyType: "REFERENCE", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOption", + }, + { + name: "category", + fieldName: "dimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.Category", + }, + ], + }, + categoryOptions: { + klass: "org.hisp.dhis.category.CategoryOption", + shareable: true, + metadata: true, + relativeApiEndpoint: "/categoryOptions", + plural: "categoryOptions", + displayName: "Category Option", + collectionName: "categoryOptions", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "categoryOption", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "category", + fieldName: "categories", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.Category", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "categoryOptionCombo", + fieldName: "categoryOptionCombos", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { name: "isDefault", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "categoryOptionGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroup", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + categoryOptionCombos: { + klass: "org.hisp.dhis.category.CategoryOptionCombo", + shareable: false, + metadata: true, + relativeApiEndpoint: "/categoryOptionCombos", + plural: "categoryOptionCombos", + displayName: "Category Option Combo", + collectionName: "categoryOptionCombos", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "categoryOptionCombo", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "ignoreApproval", + fieldName: "ignoreApproval", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "categoryOption", + fieldName: "categoryOptions", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOption", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + categoryOptionGroups: { + klass: "org.hisp.dhis.category.CategoryOptionGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/categoryOptionGroups", + plural: "categoryOptionGroups", + displayName: "Category Option Group", + collectionName: "categoryOptionGroups", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "categoryOptionGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "categoryOption", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOption", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "groupSet", + fieldName: "groupSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSet", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + categoryOptionGroupSets: { + klass: "org.hisp.dhis.category.CategoryOptionGroupSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/categoryOptionGroupSets", + plural: "categoryOptionGroupSets", + displayName: "Category Option Group Set", + collectionName: "categoryOptionGroupSets", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "categoryOptionGroupSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dimensionItemKeywords", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.DimensionItemKeywords", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dimensionType", + fieldName: "dimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "dimension", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "allItems", + fieldName: "allItems", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroup", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroup", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "dataDimension", + fieldName: "dataDimension", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "item", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + categoryOptionGroupSetDimensions: { + klass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + shareable: false, + metadata: false, + plural: "categoryOptionGroupSetDimensions", + displayName: "Category Option Group Set Dimension", + collectionName: "categoryOptionGroupSetDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "categoryOptionGroupSetDimension", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "categoryOptionGroup", + fieldName: "items", + propertyType: "REFERENCE", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroup", + }, + { + name: "categoryOptionGroupSet", + fieldName: "dimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionGroupSet", + }, + ], + }, + constants: { + klass: "org.hisp.dhis.constant.Constant", + shareable: true, + metadata: true, + relativeApiEndpoint: "/constants", + plural: "constants", + displayName: "Constant", + collectionName: "constants", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "constant", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "value", + fieldName: "value", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dashboards: { + klass: "org.hisp.dhis.dashboard.Dashboard", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dashboards", + plural: "dashboards", + displayName: "Dashboard", + collectionName: "dashboards", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dashboard", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "restrictFilters", + fieldName: "restrictFilters", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "itemConfig", + fieldName: "itemConfig", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.dashboard.design.ItemConfig", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "itemCount", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "layout", + fieldName: "layout", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.dashboard.design.Layout", + }, + { + name: "dashboardItem", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dashboard.DashboardItem", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "allowedFilter", + fieldName: "allowedFilters", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + ], + }, + dashboardItems: { + klass: "org.hisp.dhis.dashboard.DashboardItem", + shareable: false, + metadata: false, + relativeApiEndpoint: "/dashboardItems", + plural: "dashboardItems", + displayName: "Dashboard Item", + collectionName: "dashboardItems", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dashboardItem", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "report", + fieldName: "reports", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.report.Report", + }, + { + name: "visualization", + fieldName: "visualization", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.visualization.Visualization", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.dashboard.DashboardItemType", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "appKey", + fieldName: "appKey", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "text", fieldName: "text", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "map", + fieldName: "map", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.mapping.Map", + }, + { name: "contentCount", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "height", + fieldName: "height", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "shape", + fieldName: "shape", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.dashboard.DashboardItemShape", + }, + { name: "interpretationCount", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "resource", + fieldName: "resources", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.document.Document", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "user", + fieldName: "users", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.user.User", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "eventReport", + fieldName: "eventReport", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.eventreport.EventReport", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "eventChart", + fieldName: "eventChart", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.eventchart.EventChart", + }, + { + name: "width", + fieldName: "width", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "x", fieldName: "x", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "messages", + fieldName: "messages", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "y", fieldName: "y", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "interpretationLikeCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataApprovalLevels: { + klass: "org.hisp.dhis.dataapproval.DataApprovalLevel", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataApprovalLevels", + plural: "dataApprovalLevels", + displayName: "Data Approval Level", + collectionName: "dataApprovalLevels", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataApprovalLevel", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "categoryOptionGroupSet", + fieldName: "categoryOptionGroupSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionGroupSet", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "orgUnitLevelName", + fieldName: "orgUnitLevelName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "level", + fieldName: "level", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "orgUnitLevel", + fieldName: "orgUnitLevel", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataApprovalWorkflows: { + klass: "org.hisp.dhis.dataapproval.DataApprovalWorkflow", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataApprovalWorkflows", + plural: "dataApprovalWorkflows", + displayName: "Data Approval Workflow", + collectionName: "dataApprovalWorkflows", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataApprovalWorkflow", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "dataApprovalLevel", + fieldName: "levels", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataapproval.DataApprovalLevel", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "periodType", + fieldName: "periodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSet", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataElements: { + klass: "org.hisp.dhis.dataelement.DataElement", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataElements", + plural: "dataElements", + displayName: "Data Element", + collectionName: "dataElements", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataElement", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "domainType", + fieldName: "domainType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.dataelement.DataElementDomain", + }, + { + name: "dataSetElements", + fieldName: "dataSetElements", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSetElement", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + fieldName: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "commentOptionSet", + fieldName: "commentOptionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "fieldMask", + fieldName: "fieldMask", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "valueTypeOptions", + fieldName: "valueTypeOptions", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ValueTypeOptions", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "dataElementGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroup", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "zeroIsSignificant", + fieldName: "zeroIsSignificant", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "url", fieldName: "url", propertyType: "URL", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "aggregationLevels", + fieldName: "aggregationLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "optionSetValue", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + dataElementGroups: { + klass: "org.hisp.dhis.dataelement.DataElementGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataElementGroups", + plural: "dataElementGroups", + displayName: "Data Element Group", + collectionName: "dataElementGroups", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataElementGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "dataElement", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataelement.DataElement", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "groupSet", + fieldName: "groupSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSet", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + dataElementGroupSets: { + klass: "org.hisp.dhis.dataelement.DataElementGroupSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataElementGroupSets", + plural: "dataElementGroupSets", + displayName: "Data Element Group Set", + collectionName: "dataElementGroupSets", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataElementGroupSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dimensionItemKeywords", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.DimensionItemKeywords", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dimensionType", + fieldName: "dimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "dimension", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "allItems", + fieldName: "allItems", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dataElementGroup", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroup", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "compulsory", + fieldName: "compulsory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "dataDimension", + fieldName: "dataDimension", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "item", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataElementGroupSetDimensions: { + klass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + shareable: false, + metadata: false, + plural: "dataElementGroupSetDimensions", + displayName: "Data Element Group Set Dimension", + collectionName: "dataElementGroupSetDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "dataElementGroupSetDimension", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "dataElementGroup", + fieldName: "items", + propertyType: "REFERENCE", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroup", + }, + { + name: "dataElementGroupSet", + fieldName: "dimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElementGroupSet", + }, + ], + }, + dataElementOperands: { + klass: "org.hisp.dhis.dataelement.DataElementOperand", + shareable: false, + metadata: false, + relativeApiEndpoint: "/dataElementOperands", + plural: "dataElementOperands", + displayName: "Data Element Operand", + collectionName: "dataElementOperands", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "dataElementOperand", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "categoryOptionCombo", + fieldName: "categoryOptionCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "attributeOptionCombo", + fieldName: "attributeOptionCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + dataEntryForms: { + klass: "org.hisp.dhis.dataentryform.DataEntryForm", + shareable: false, + metadata: true, + relativeApiEndpoint: "/dataEntryForms", + plural: "dataEntryForms", + displayName: "Data Entry Form", + collectionName: "dataEntryForms", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataEntryForm", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "htmlCode", + fieldName: "htmlCode", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "format", + fieldName: "format", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DisplayDensity", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataInputPeriods: { + klass: "org.hisp.dhis.dataset.DataInputPeriod", + shareable: false, + metadata: false, + plural: "dataInputPeriods", + displayName: "Data Input Period", + collectionName: "dataInputPeriods", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "dataInputPeriods", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "period", + fieldName: "period", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.period.Period", + }, + { + name: "closingDate", + fieldName: "closingDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "openingDate", + fieldName: "openingDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + ], + }, + dataSets: { + klass: "org.hisp.dhis.dataset.DataSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/dataSets", + plural: "dataSets", + displayName: "Data Set", + collectionName: "dataSets", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "dataSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataEntryForm", + fieldName: "dataEntryForm", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataentryform.DataEntryForm", + }, + { + name: "validCompleteOnly", + fieldName: "validCompleteOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataSetElement", + fieldName: "dataSetElements", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSetElement", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "skipOffline", + fieldName: "skipOffline", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "compulsoryFieldsCompleteOnly", + fieldName: "compulsoryFieldsCompleteOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "dataInputPeriods", + fieldName: "dataInputPeriods", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataInputPeriod", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "formType", propertyType: "CONSTANT", klass: "org.hisp.dhis.dataset.FormType" }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "workflow", + fieldName: "workflow", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataapproval.DataApprovalWorkflow", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "indicator", + fieldName: "indicators", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.indicator.Indicator", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "version", + fieldName: "version", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "section", + fieldName: "sections", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.Section", + }, + { + name: "timelyDays", + fieldName: "timelyDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "notificationRecipients", + fieldName: "notificationRecipients", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "dataElementDecoration", + fieldName: "dataElementDecoration", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "notifyCompletingUser", + fieldName: "notifyCompletingUser", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "noValueRequiresComment", + fieldName: "noValueRequiresComment", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "compulsoryDataElementOperand", + fieldName: "compulsoryDataElementOperands", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataelement.DataElementOperand", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "fieldCombinationRequired", + fieldName: "fieldCombinationRequired", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnit", + fieldName: "sources", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "renderHorizontally", + fieldName: "renderHorizontally", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "renderAsTabs", + fieldName: "renderAsTabs", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "mobile", + fieldName: "mobile", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "openPeriodsAfterCoEndDate", + fieldName: "openPeriodsAfterCoEndDate", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "periodType", + fieldName: "periodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "openFuturePeriods", + fieldName: "openFuturePeriods", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "expiryDays", + fieldName: "expiryDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, + dataSetElements: { + klass: "org.hisp.dhis.dataset.DataSetElement", + shareable: false, + metadata: false, + plural: "dataSetElements", + displayName: "Data Set Element", + collectionName: "dataSetElements", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "dataSetElement", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "dataSet", + fieldName: "dataSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataset.DataSet", + }, + ], + }, + dataSetNotificationTemplates: { + klass: "org.hisp.dhis.dataset.notifications.DataSetNotificationTemplate", + shareable: false, + metadata: true, + relativeApiEndpoint: "/dataSetNotificationTemplates", + plural: "dataSetNotificationTemplates", + displayName: "Data Set Notification Template", + collectionName: "dataSetNotificationTemplates", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "dataSetNotificationTemplate", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "relativeScheduledDays", + fieldName: "relativeScheduledDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "subjectTemplate", + fieldName: "subjectTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "dataSetNotificationTrigger", + fieldName: "dataSetNotificationTrigger", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.dataset.notifications.DataSetNotificationTrigger", + }, + { + name: "sendStrategy", + fieldName: "sendStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.notification.SendStrategy", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "deliveryChannels", + fieldName: "deliveryChannels", + propertyType: "COLLECTION", + itemPropertyType: "CONSTANT", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.common.DeliveryChannel", + }, + { name: "displaySubjectTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "notifyUsersInHierarchyOnly", + fieldName: "notifyUsersInHierarchyOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "notificationRecipient", + fieldName: "notificationRecipient", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.dataset.notifications.DataSetNotificationRecipient", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "notifyParentOrganisationUnitOnly", + fieldName: "notifyParentOrganisationUnitOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSet", + }, + { name: "displayMessageTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "recipientUserGroup", + fieldName: "recipientUserGroup", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.UserGroup", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "messageTemplate", + fieldName: "messageTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + ], + }, + documents: { + klass: "org.hisp.dhis.document.Document", + shareable: true, + metadata: true, + relativeApiEndpoint: "/documents", + plural: "documents", + displayName: "Document", + collectionName: "documents", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "document", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attachment", + fieldName: "attachment", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "contentType", + fieldName: "contentType", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "url", fieldName: "url", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "external", + fieldName: "external", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + eventCharts: { + klass: "org.hisp.dhis.eventchart.EventChart", + shareable: true, + metadata: true, + relativeApiEndpoint: "/eventCharts", + plural: "eventCharts", + displayName: "Event Chart", + collectionName: "eventCharts", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "eventChart", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataElementGroupSetDimension", + fieldName: "dataElementGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + }, + { + name: "orgUnitField", + fieldName: "orgUnitField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "baseLineValue", + fieldName: "baseLineValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnitChildren", + fieldName: "userOrganisationUnitChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.visualization.VisualizationType", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayTargetLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attributeDimension", + fieldName: "attributeDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "yearlySerie", + fieldName: "yearlySeries", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "userOrganisationUnit", + fieldName: "userOrganisationUnit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "filterDimension", + fieldName: "filterDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attributeValueDimension", + fieldName: "attributeValueDimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "domainAxisLabel", + fieldName: "domainAxisLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "cumulativeValues", + fieldName: "cumulativeValues", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "rangeAxisDecimals", + fieldName: "rangeAxisDecimals", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "topLimit", + fieldName: "topLimit", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "collapseDataDimensions", + fieldName: "collapseDataDimensions", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userOrganisationUnitGrandChildren", + fieldName: "userOrganisationUnitGrandChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "column", + fieldName: "columns", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "percentStackedValues", + fieldName: "percentStackedValues", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "noSpaceBetweenColumns", + fieldName: "noSpaceBetweenColumns", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElementDimension", + fieldName: "dataElementDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + }, + { + name: "rangeAxisSteps", + fieldName: "rangeAxisSteps", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "period", + fieldName: "periods", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.period.Period", + }, + { + name: "categoryDimension", + fieldName: "categoryDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryDimension", + }, + { name: "displayRangeAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideTitle", + fieldName: "hideTitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rowDimension", + fieldName: "rowDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "eventStatus", + fieldName: "eventStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.event.EventStatus", + }, + { name: "displayBaseLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "showData", + fieldName: "showData", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "parentGraphMap", + fieldName: "parentGraphMap", + propertyType: "COMPLEX", + klass: "java.util.Map", + }, + { + name: "hideNaData", + fieldName: "hideNaData", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "itemOrganisationUnitGroup", + fieldName: "itemOrganisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "displayDomainAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "programIndicatorDimension", + fieldName: "programIndicatorDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "rangeAxisLabel", + fieldName: "rangeAxisLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "regressionType", + fieldName: "regressionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.RegressionType", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "columnDimension", + fieldName: "columnDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "completedOnly", + fieldName: "completedOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "programStatus", + fieldName: "programStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramStatus", + }, + { + name: "hideEmptyRowItems", + fieldName: "hideEmptyRowItems", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.HideEmptyItemStrategy", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dataDimensionItem", + fieldName: "dataDimensionItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DataDimensionItem", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetDimension", + fieldName: "categoryOptionGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + }, + { + name: "hideSubtitle", + fieldName: "hideSubtitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "outputType", + fieldName: "outputType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.EventOutputType", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitGroupSetDimension", + fieldName: "organisationUnitGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideLegend", + fieldName: "hideLegend", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rangeAxisMinValue", + fieldName: "rangeAxisMinValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "legendDisplayStrategy", + fieldName: "legendDisplayStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.legend.LegendDisplayStrategy", + }, + { + name: "dataElementValueDimension", + fieldName: "dataElementValueDimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "targetLineLabel", + fieldName: "targetLineLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "value", + fieldName: "value", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "timeField", + fieldName: "timeField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "targetLineValue", + fieldName: "targetLineValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "filter", + fieldName: "filters", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "row", + fieldName: "rows", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "baseLineLabel", + fieldName: "baseLineLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "digitGroupSeparator", + fieldName: "digitGroupSeparator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DigitGroupSeparator", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "userOrgUnitType", + fieldName: "userOrgUnitType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.UserOrgUnitType", + }, + { + name: "rangeAxisMaxValue", + fieldName: "rangeAxisMaxValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, + eventReports: { + klass: "org.hisp.dhis.eventreport.EventReport", + shareable: true, + metadata: true, + relativeApiEndpoint: "/eventReports", + plural: "eventReports", + displayName: "Event Report", + collectionName: "eventReports", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "eventReport", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataElementGroupSetDimension", + fieldName: "dataElementGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + }, + { + name: "orgUnitField", + fieldName: "orgUnitField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnitChildren", + fieldName: "userOrganisationUnitChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideEmptyRows", + fieldName: "hideEmptyRows", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeDimension", + fieldName: "attributeDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "parentGraphMap", + fieldName: "parentGraphMap", + propertyType: "COMPLEX", + klass: "java.util.Map", + }, + { + name: "userOrganisationUnit", + fieldName: "userOrganisationUnit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "filterDimension", + fieldName: "filterDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "rowSubTotals", + fieldName: "rowSubTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "hideNaData", + fieldName: "hideNaData", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { + name: "itemOrganisationUnitGroup", + fieldName: "itemOrganisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "displayDensity", + fieldName: "displayDensity", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DisplayDensity", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attributeValueDimension", + fieldName: "attributeValueDimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "programIndicatorDimension", + fieldName: "programIndicatorDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataType", + fieldName: "dataType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.EventDataType", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "columnDimension", + fieldName: "columnDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "completedOnly", + fieldName: "completedOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "colTotals", + fieldName: "colTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "showDimensionLabels", + fieldName: "showDimensionLabels", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "fontSize", + fieldName: "fontSize", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.FontSize", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "topLimit", + fieldName: "topLimit", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "collapseDataDimensions", + fieldName: "collapseDataDimensions", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programStatus", + fieldName: "programStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramStatus", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionItem", + fieldName: "dataDimensionItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DataDimensionItem", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetDimension", + fieldName: "categoryOptionGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userOrganisationUnitGrandChildren", + fieldName: "userOrganisationUnitGrandChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "column", + fieldName: "columns", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "hideSubtitle", + fieldName: "hideSubtitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "outputType", + fieldName: "outputType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.EventOutputType", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitGroupSetDimension", + fieldName: "organisationUnitGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "colSubTotals", + fieldName: "colSubTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElementValueDimension", + fieldName: "dataElementValueDimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "dataElementDimension", + fieldName: "dataElementDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "period", + fieldName: "periods", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.period.Period", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "value", + fieldName: "value", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { + name: "categoryDimension", + fieldName: "categoryDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryDimension", + }, + { + name: "showHierarchy", + fieldName: "showHierarchy", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "rowTotals", + fieldName: "rowTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "timeField", + fieldName: "timeField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "filter", + fieldName: "filters", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "row", + fieldName: "rows", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "digitGroupSeparator", + fieldName: "digitGroupSeparator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DigitGroupSeparator", + }, + { + name: "hideTitle", + fieldName: "hideTitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rowDimension", + fieldName: "rowDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "eventStatus", + fieldName: "eventStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.event.EventStatus", + }, + { + name: "userOrgUnitType", + fieldName: "userOrgUnitType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.UserOrgUnitType", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, + expressions: { + klass: "org.hisp.dhis.expression.Expression", + shareable: false, + metadata: false, + plural: "expressions", + displayName: "Expression", + collectionName: "expressions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "expression", + persisted: true, + embeddedObject: true, + properties: [ + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "expression", + fieldName: "expression", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "missingValueStrategy", + fieldName: "missingValueStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.expression.MissingValueStrategy", + }, + { + name: "slidingWindow", + fieldName: "slidingWindow", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + ], + }, + externalFileResources: { + klass: "org.hisp.dhis.fileresource.ExternalFileResource", + shareable: false, + metadata: false, + relativeApiEndpoint: "/externalFileResources", + plural: "externalFileResources", + displayName: "External File Resource", + collectionName: "externalFileResources", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "externalFileResource", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "expires", + fieldName: "expires", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "accessToken", + fieldName: "accessToken", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "fileResource", + fieldName: "fileResource", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.fileresource.FileResource", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + externalMapLayers: { + klass: "org.hisp.dhis.mapping.ExternalMapLayer", + shareable: true, + metadata: true, + relativeApiEndpoint: "/externalMapLayers", + plural: "externalMapLayers", + displayName: "External Map Layer", + collectionName: "externalMapLayers", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "externalMapLayer", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "imageFormat", + fieldName: "imageFormat", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.ImageFormat", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "legendSetUrl", + fieldName: "legendSetUrl", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "mapService", + fieldName: "mapService", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.MapService", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "layers", + fieldName: "layers", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "mapLayerPosition", + fieldName: "mapLayerPosition", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.MapLayerPosition", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "url", fieldName: "url", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "attribution", + fieldName: "attribution", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + fileResources: { + klass: "org.hisp.dhis.fileresource.FileResource", + shareable: false, + metadata: false, + relativeApiEndpoint: "/fileResources", + plural: "fileResources", + displayName: "File Resource", + collectionName: "fileResources", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "identifiableObject", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "contentMd5", + fieldName: "contentMd5", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "storageStatus", + fieldName: "storageStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.fileresource.FileResourceStorageStatus", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "contentType", + fieldName: "contentType", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "domain", + fieldName: "domain", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.fileresource.FileResourceDomain", + }, + { + name: "hasMultipleStorageFiles", + fieldName: "hasMultipleStorageFiles", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "contentLength", + fieldName: "contentLength", + propertyType: "TEXT", + klass: "java.lang.Long", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + icons: { + klass: "org.hisp.dhis.icon.Icon", + shareable: false, + metadata: false, + relativeApiEndpoint: "/icons", + plural: "icons", + displayName: "Icon", + collectionName: "icons", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "icon", + persisted: false, + embeddedObject: false, + properties: [], + }, + indicators: { + klass: "org.hisp.dhis.indicator.Indicator", + shareable: true, + metadata: true, + relativeApiEndpoint: "/indicators", + plural: "indicators", + displayName: "Indicator", + collectionName: "indicators", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "indicator", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "aggregateExportCategoryOptionCombo", + fieldName: "aggregateExportCategoryOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayNumeratorDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "denominatorDescription", + fieldName: "denominatorDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "indicatorType", + fieldName: "indicatorType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.indicator.IndicatorType", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "numeratorDescription", + fieldName: "numeratorDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "indicatorGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.indicator.IndicatorGroup", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "numerator", + fieldName: "numerator", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "denominator", + fieldName: "denominator", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "annualized", + fieldName: "annualized", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "aggregateExportAttributeOptionCombo", + fieldName: "aggregateExportAttributeOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "displayDenominatorDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "url", fieldName: "url", propertyType: "URL", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "decimals", + fieldName: "decimals", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, + indicatorGroups: { + klass: "org.hisp.dhis.indicator.IndicatorGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/indicatorGroups", + plural: "indicatorGroups", + displayName: "Indicator Group", + collectionName: "indicatorGroups", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "indicatorGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "indicator", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.indicator.Indicator", + }, + { + name: "indicatorGroupSet", + fieldName: "groupSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.indicator.IndicatorGroupSet", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + indicatorGroupSets: { + klass: "org.hisp.dhis.indicator.IndicatorGroupSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/indicatorGroupSets", + plural: "indicatorGroupSets", + displayName: "Indicator Group Set", + collectionName: "indicatorGroupSets", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "indicatorGroupSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "indicatorGroup", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.indicator.IndicatorGroup", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "compulsory", + fieldName: "compulsory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + indicatorTypes: { + klass: "org.hisp.dhis.indicator.IndicatorType", + shareable: false, + metadata: true, + relativeApiEndpoint: "/indicatorTypes", + plural: "indicatorTypes", + displayName: "Indicator Type", + collectionName: "indicatorTypes", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "indicatorType", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "number", + fieldName: "number", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "factor", + fieldName: "factor", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + interpretations: { + klass: "org.hisp.dhis.interpretation.Interpretation", + shareable: true, + metadata: false, + relativeApiEndpoint: "/interpretations", + plural: "interpretations", + displayName: "Interpretation", + collectionName: "interpretations", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "interpretation", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "visualization", + fieldName: "visualization", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.visualization.Visualization", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "likeByUser", + fieldName: "likedBy", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.User", + }, + { + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AnalyticsFavoriteType", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "text", fieldName: "text", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "map", + fieldName: "map", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.mapping.Map", + }, + { + name: "dataSet", + fieldName: "dataSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataset.DataSet", + }, + { + name: "likes", + fieldName: "likes", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "period", + fieldName: "period", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.period.Period", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "comment", + fieldName: "comments", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.interpretation.InterpretationComment", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "eventReport", + fieldName: "eventReport", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.eventreport.EventReport", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "mentions", + fieldName: "mentions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.interpretation.Mention", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "eventChart", + fieldName: "eventChart", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.eventchart.EventChart", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + interpretationComments: { + klass: "org.hisp.dhis.interpretation.InterpretationComment", + shareable: false, + metadata: false, + plural: "interpretationComments", + displayName: "Interpretation Comment", + collectionName: "interpretationComments", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "interpretationComment", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "mentions", + fieldName: "mentions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.interpretation.Mention", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "text", fieldName: "text", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + jobConfigurations: { + klass: "org.hisp.dhis.scheduling.JobConfiguration", + shareable: false, + metadata: true, + relativeApiEndpoint: "/jobConfigurations", + plural: "jobConfigurations", + displayName: "Job Configuration", + collectionName: "jobConfigurations", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "jobConfiguration", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "jobStatus", + fieldName: "jobStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.scheduling.JobStatus", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "enabled", + fieldName: "enabled", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "leaderOnlyJob", + fieldName: "leaderOnlyJob", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "jobType", + fieldName: "jobType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.scheduling.JobType", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "nextExecutionTime", + fieldName: "nextExecutionTime", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "cronExpression", + fieldName: "cronExpression", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "schedulingType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.scheduling.SchedulingType", + }, + { + name: "lastRuntimeExecution", + fieldName: "lastRuntimeExecution", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "delay", + fieldName: "delay", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "lastExecutedStatus", + fieldName: "lastExecutedStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.scheduling.JobStatus", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "jobParameters", + fieldName: "jobParameters", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.scheduling.JobParameters", + }, + { + name: "lastExecuted", + fieldName: "lastExecuted", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "configurable", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "userUid", + fieldName: "userUid", + propertyType: "TEXT", + klass: "java.lang.String", + }, + ], + }, + dataStores: { + klass: "org.hisp.dhis.keyjsonvalue.KeyJsonValue", + shareable: true, + metadata: false, + relativeApiEndpoint: "/dataStore", + plural: "dataStores", + displayName: "Key Json Value", + collectionName: "dataStores", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "identifiableObject", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "value", fieldName: "value", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "key", fieldName: "key", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "namespace", + fieldName: "namespace", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + legends: { + klass: "org.hisp.dhis.legend.Legend", + shareable: false, + metadata: false, + plural: "legends", + displayName: "Legend", + collectionName: "legends", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "legend", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "endValue", + fieldName: "endValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "color", fieldName: "color", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "startValue", + fieldName: "startValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "image", fieldName: "image", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + legendSets: { + klass: "org.hisp.dhis.legend.LegendSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/legendSets", + plural: "legendSets", + displayName: "Legend Set", + collectionName: "legendSets", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "legendSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "symbolizer", + fieldName: "symbolizer", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "legend", + fieldName: "legends", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.legend.Legend", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + maps: { + klass: "org.hisp.dhis.mapping.Map", + shareable: true, + metadata: true, + relativeApiEndpoint: "/maps", + plural: "maps", + displayName: "Map", + collectionName: "maps", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "map", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "basemap", + fieldName: "basemap", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "latitude", + fieldName: "latitude", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "mapView", + fieldName: "mapViews", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.mapping.MapView", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { + name: "longitude", + fieldName: "longitude", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "zoom", + fieldName: "zoom", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + mapViews: { + klass: "org.hisp.dhis.mapping.MapView", + shareable: false, + metadata: true, + relativeApiEndpoint: "/mapViews", + plural: "mapViews", + displayName: "Map View", + collectionName: "mapViews", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "mapView", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "dataElementGroupSetDimension", + fieldName: "dataElementGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + }, + { + name: "orgUnitField", + fieldName: "orgUnitField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnitChildren", + fieldName: "userOrganisationUnitChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attributeDimension", + fieldName: "attributeDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "eventCoordinateField", + fieldName: "eventCoordinateField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnit", + fieldName: "userOrganisationUnit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "organisationUnitSelectionMode", + fieldName: "organisationUnitSelectionMode", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.OrganisationUnitSelectionMode", + }, + { + name: "filterDimension", + fieldName: "filterDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "method", + fieldName: "method", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "renderingStrategy", + fieldName: "renderingStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.MapViewRenderingStrategy", + }, + { + name: "labels", + fieldName: "labels", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "topLimit", + fieldName: "topLimit", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "noDataColor", + fieldName: "noDataColor", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userOrganisationUnitGrandChildren", + fieldName: "userOrganisationUnitGrandChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "column", + fieldName: "columns", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "styleDataItem", + fieldName: "styleDataItem", + propertyType: "COMPLEX", + klass: "java.lang.Object", + }, + { + name: "labelFontColor", + fieldName: "labelFontColor", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "layer", fieldName: "layer", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "dataElementDimension", + fieldName: "dataElementDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "period", + fieldName: "periods", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.period.Period", + }, + { + name: "categoryDimension", + fieldName: "categoryDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryDimension", + }, + { + name: "labelFontStyle", + fieldName: "labelFontStyle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "radiusHigh", + fieldName: "radiusHigh", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "hideTitle", + fieldName: "hideTitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "eventClustering", + fieldName: "eventClustering", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "colorLow", + fieldName: "colorLow", + propertyType: "COLOR", + klass: "java.lang.String", + }, + { + name: "eventStatus", + fieldName: "eventStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.EventStatus", + }, + { + name: "opacity", + fieldName: "opacity", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "config", + fieldName: "config", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "colorScale", + fieldName: "colorScale", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "parentLevel", + fieldName: "parentLevel", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "parentGraphMap", + fieldName: "parentGraphMap", + propertyType: "COMPLEX", + klass: "java.util.Map", + }, + { + name: "itemOrganisationUnitGroup", + fieldName: "itemOrganisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programIndicatorDimension", + fieldName: "programIndicatorDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + }, + { + name: "labelFontSize", + fieldName: "labelFontSize", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "columnDimension", + fieldName: "columnDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "colorHigh", + fieldName: "colorHigh", + propertyType: "COLOR", + klass: "java.lang.String", + }, + { + name: "completedOnly", + fieldName: "completedOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "eventPointRadius", + fieldName: "eventPointRadius", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "areaRadius", + fieldName: "areaRadius", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "programStatus", + fieldName: "programStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramStatus", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dataDimensionItem", + fieldName: "dataDimensionItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DataDimensionItem", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetDimension", + fieldName: "categoryOptionGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + }, + { + name: "hidden", + fieldName: "hidden", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "thematicMapType", + fieldName: "thematicMapType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.mapping.ThematicMapType", + }, + { + name: "classes", + fieldName: "classes", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "hideSubtitle", + fieldName: "hideSubtitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitGroupSetDimension", + fieldName: "organisationUnitGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "organisationUnitGroupSet", + fieldName: "organisationUnitGroupSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSet", + }, + { + name: "followUp", + fieldName: "followUp", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "organisationUnitColor", + fieldName: "organisationUnitColor", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "eventPointColor", + fieldName: "eventPointColor", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "labelFontWeight", + fieldName: "labelFontWeight", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "timeField", + fieldName: "timeField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "filter", + fieldName: "filters", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "parentGraph", + fieldName: "parentGraph", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "row", + fieldName: "rows", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "radiusLow", + fieldName: "radiusLow", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "digitGroupSeparator", + fieldName: "digitGroupSeparator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DigitGroupSeparator", + }, + { + name: "trackedEntityType", + fieldName: "trackedEntityType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "userOrgUnitType", + fieldName: "userOrgUnitType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.UserOrgUnitType", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, + messageConversations: { + klass: "org.hisp.dhis.message.MessageConversation", + shareable: false, + metadata: false, + relativeApiEndpoint: "/messageConversations", + plural: "messageConversations", + displayName: "Message Conversation", + collectionName: "messageConversations", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "messageConversation", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "messageCount", + fieldName: "messageCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "subject", + fieldName: "subject", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "followUp", + fieldName: "followUp", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "messageType", + fieldName: "messageType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.message.MessageType", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userMessage", + fieldName: "userMessages", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.message.UserMessage", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "userSurname", + fieldName: "userSurname", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "lastSenderSurname", + fieldName: "lastSenderSurname", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "read", + fieldName: "read", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "lastSender", + fieldName: "lastSender", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "lastMessage", + fieldName: "lastMessage", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "priority", + fieldName: "priority", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.message.MessageConversationPriority", + }, + { + name: "lastSenderFirstname", + fieldName: "lastSenderFirstname", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "message", + fieldName: "messages", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.message.Message", + }, + { + name: "userFirstname", + fieldName: "userFirstname", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "assignee", + fieldName: "assignee", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "status", + fieldName: "status", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.message.MessageConversationStatus", + }, + ], + }, + metadataVersions: { + klass: "org.hisp.dhis.metadata.version.MetadataVersion", + shareable: false, + metadata: false, + relativeApiEndpoint: "/metadata/version", + plural: "metadataVersions", + displayName: "Metadata Version", + collectionName: "metadataVersions", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "metadataVersion", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.metadata.version.VersionType", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "importDate", + fieldName: "importDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "hashCode", + fieldName: "hashCode", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + minMaxDataElements: { + klass: "org.hisp.dhis.minmax.MinMaxDataElement", + shareable: false, + metadata: false, + relativeApiEndpoint: "/minMaxDataElements", + plural: "minMaxDataElements", + displayName: "Min Max Data Element", + collectionName: "minMaxDataElements", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "minMaxDataElement", + persisted: true, + embeddedObject: false, + properties: [ + { name: "min", fieldName: "min", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "generated", + fieldName: "generated", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "max", fieldName: "max", propertyType: "INTEGER", klass: "java.lang.Integer" }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "source", + fieldName: "source", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "optionCombo", + fieldName: "optionCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + ], + }, + oAuth2Clients: { + klass: "org.hisp.dhis.security.oauth2.OAuth2Client", + shareable: false, + metadata: true, + relativeApiEndpoint: "/oAuth2Clients", + plural: "oAuth2Clients", + displayName: "O Auth2 Client", + collectionName: "oAuth2Clients", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "oAuth2Client", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "secret", + fieldName: "secret", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "redirectUri", + fieldName: "redirectUris", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "grantType", + fieldName: "grantTypes", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "cid", + fieldName: "cid", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + ], + }, + options: { + klass: "org.hisp.dhis.option.Option", + shareable: false, + metadata: true, + relativeApiEndpoint: "/options", + plural: "options", + displayName: "Option", + collectionName: "options", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "option", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { name: "code", fieldName: "code", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + optionGroups: { + klass: "org.hisp.dhis.option.OptionGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/optionGroups", + plural: "optionGroups", + displayName: "Option Group", + collectionName: "optionGroups", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "optionGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "option", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.option.Option", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + optionGroupSets: { + klass: "org.hisp.dhis.option.OptionGroupSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/optionGroupSets", + plural: "optionGroupSets", + displayName: "Option Group Set", + collectionName: "optionGroupSets", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "optionGroupSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dimensionItemKeywords", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.DimensionItemKeywords", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dimensionType", + fieldName: "dimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "optionGroup", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.option.OptionGroup", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "dimension", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "allItems", + fieldName: "allItems", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "dataDimension", + fieldName: "dataDimension", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "item", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + optionSets: { + klass: "org.hisp.dhis.option.OptionSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/optionSets", + plural: "optionSets", + displayName: "Option Set", + collectionName: "optionSets", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "optionSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + fieldName: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { + name: "option", + fieldName: "options", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.option.Option", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "version", + fieldName: "version", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + organisationUnits: { + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + shareable: false, + metadata: true, + relativeApiEndpoint: "/organisationUnits", + plural: "organisationUnits", + displayName: "Organisation Unit", + collectionName: "organisationUnits", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "organisationUnit", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "parent", + fieldName: "parent", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "type", fieldName: "type", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "path", fieldName: "path", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "child", + fieldName: "children", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "organisationUnitGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "organisationUnit", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "image", + fieldName: "image", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.fileresource.FileResource", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "level", + fieldName: "hierarchyLevel", + propertyType: "TEXT", + klass: "java.lang.Integer", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "userItem", + fieldName: "users", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.User", + }, + { + name: "phoneNumber", + fieldName: "phoneNumber", + propertyType: "PHONENUMBER", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataset.DataSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "program", + fieldName: "programs", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.Program", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "contactPerson", + fieldName: "contactPerson", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "openingDate", + fieldName: "openingDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "email", fieldName: "email", propertyType: "EMAIL", klass: "java.lang.String" }, + { + name: "address", + fieldName: "address", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "memberCount", + fieldName: "memberCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "leaf", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "url", fieldName: "url", propertyType: "URL", klass: "java.lang.String" }, + { + name: "closedDate", + fieldName: "closedDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "geometry", + fieldName: "geometry", + propertyType: "COMPLEX", + klass: "org.locationtech.jts.geom.Geometry", + }, + { + name: "comment", + fieldName: "comment", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, + organisationUnitGroups: { + klass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/organisationUnitGroups", + plural: "organisationUnitGroups", + displayName: "Organisation Unit Group", + collectionName: "organisationUnitGroups", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "organisationUnitGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "symbol", + fieldName: "symbol", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "color", fieldName: "color", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "featureType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.organisationunit.FeatureType", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "organisationUnit", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "groupSet", + fieldName: "groupSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSet", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "geometry", + fieldName: "geometry", + propertyType: "COMPLEX", + klass: "org.locationtech.jts.geom.Geometry", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + organisationUnitGroupSets: { + klass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSet", + shareable: true, + metadata: true, + relativeApiEndpoint: "/organisationUnitGroupSets", + plural: "organisationUnitGroupSets", + displayName: "Organisation Unit Group Set", + collectionName: "organisationUnitGroupSets", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "organisationUnitGroupSet", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dimensionItemKeywords", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.DimensionItemKeywords", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "dataDimensionType", + fieldName: "dataDimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DataDimensionType", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dimensionType", + fieldName: "dimensionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "organisationUnitGroup", + fieldName: "organisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { name: "dimension", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "allItems", + fieldName: "allItems", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "compulsory", + fieldName: "compulsory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "includeSubhierarchyInAnalytics", + fieldName: "includeSubhierarchyInAnalytics", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "dataDimension", + fieldName: "dataDimension", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "item", + fieldName: "items", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalItemObject", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + organisationUnitGroupSetDimensions: { + klass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + shareable: false, + metadata: false, + plural: "organisationUnitGroupSetDimensions", + displayName: "Organisation Unit Group Set Dimension", + collectionName: "organisationUnitGroupSetDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "organisationUnitGroupSetDimension", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "organisationUnitGroupSet", + fieldName: "dimension", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSet", + }, + { + name: "organisationUnitGroup", + fieldName: "items", + propertyType: "REFERENCE", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + ], + }, + organisationUnitLevels: { + klass: "org.hisp.dhis.organisationunit.OrganisationUnitLevel", + shareable: false, + metadata: true, + relativeApiEndpoint: "/organisationUnitLevels", + plural: "organisationUnitLevels", + displayName: "Organisation Unit Level", + collectionName: "organisationUnitLevels", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "organisationUnitLevel", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "offlineLevels", + fieldName: "offlineLevels", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "level", + fieldName: "level", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + predictors: { + klass: "org.hisp.dhis.predictor.Predictor", + shareable: false, + metadata: true, + relativeApiEndpoint: "/predictors", + plural: "predictors", + displayName: "Predictor", + collectionName: "predictors", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "Predictor", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "outputCombo", + fieldName: "outputCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "generator", + fieldName: "generator", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.expression.Expression", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitLevel", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "output", + fieldName: "output", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "sampleSkipTest", + fieldName: "sampleSkipTest", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.expression.Expression", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "sequentialSampleCount", + fieldName: "sequentialSampleCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "annualSampleCount", + fieldName: "annualSampleCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sequentialSkipCount", + fieldName: "sequentialSkipCount", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "predictorGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.predictor.PredictorGroup", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "periodType", + fieldName: "periodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + predictorGroups: { + klass: "org.hisp.dhis.predictor.PredictorGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/predictorGroups", + plural: "predictorGroups", + displayName: "Predictor Group", + collectionName: "predictorGroups", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "predictorGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "predictor", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.predictor.Predictor", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programs: { + klass: "org.hisp.dhis.program.Program", + shareable: true, + metadata: true, + relativeApiEndpoint: "/programs", + plural: "programs", + displayName: "Program", + collectionName: "programs", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "program", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataEntryForm", + fieldName: "dataEntryForm", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataentryform.DataEntryForm", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "ignoreOverdueEvents", + fieldName: "ignoreOverdueEvents", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "skipOffline", + fieldName: "skipOffline", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programIndicator", + fieldName: "programIndicators", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramIndicator", + }, + { name: "displayIncidentDateLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "categoryCombo", + fieldName: "categoryCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryCombo", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "enrollmentDateLabel", + fieldName: "enrollmentDateLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "onlyEnrollOnce", + fieldName: "onlyEnrollOnce", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "version", + fieldName: "version", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "displayEnrollmentDateLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "maxTeiCountToReturn", + fieldName: "maxTeiCountToReturn", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "selectIncidentDatesInFuture", + fieldName: "selectIncidentDatesInFuture", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "incidentDateLabel", + fieldName: "incidentDateLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userRole", + fieldName: "userRoles", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAuthorityGroup", + }, + { + name: "expiryPeriodType", + fieldName: "expiryPeriodType", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "selectEnrollmentDatesInFuture", + fieldName: "selectEnrollmentDatesInFuture", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "registration", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "useFirstStageDuringRegistration", + fieldName: "useFirstStageDuringRegistration", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "programRuleVariable", + fieldName: "programRuleVariables", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.programrule.ProgramRuleVariable", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "programTrackedEntityAttribute", + fieldName: "programAttributes", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.program.ProgramTrackedEntityAttribute", + }, + { + name: "completeEventsExpiryDays", + fieldName: "completeEventsExpiryDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "relatedProgram", + fieldName: "relatedProgram", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "withoutRegistration", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "notificationTemplate", + fieldName: "notificationTemplates", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.notification.ProgramNotificationTemplate", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "featureType", + fieldName: "featureType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.organisationunit.FeatureType", + }, + { + name: "minAttributesRequiredToSearch", + fieldName: "minAttributesRequiredToSearch", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "displayFrontPageList", + fieldName: "displayFrontPageList", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "programType", + fieldName: "programType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramType", + }, + { + name: "accessLevel", + fieldName: "accessLevel", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.AccessLevel", + }, + { + name: "programSection", + fieldName: "programSections", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramSection", + }, + { + name: "programStage", + fieldName: "programStages", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "trackedEntityType", + fieldName: "trackedEntityType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityType", + }, + { + name: "displayIncidentDate", + fieldName: "displayIncidentDate", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "expiryDays", + fieldName: "expiryDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, + programDataElements: { + klass: "org.hisp.dhis.program.ProgramDataElementDimensionItem", + shareable: false, + metadata: false, + relativeApiEndpoint: "/programDataElements", + plural: "programDataElements", + displayName: "Program Data Element Dimension Item", + collectionName: "programDataElements", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "programDataElement", + persisted: false, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + programIndicators: { + klass: "org.hisp.dhis.program.ProgramIndicator", + shareable: true, + metadata: true, + relativeApiEndpoint: "/programIndicators", + plural: "programIndicators", + displayName: "Program Indicator", + collectionName: "programIndicators", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programIndicator", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "displayInForm", + fieldName: "displayInForm", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "aggregateExportCategoryOptionCombo", + fieldName: "aggregateExportCategoryOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "programIndicatorGroups", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramIndicatorGroup", + }, + { + name: "analyticsPeriodBoundary", + fieldName: "analyticsPeriodBoundaries", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.AnalyticsPeriodBoundary", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "expression", + fieldName: "expression", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "decimals", + fieldName: "decimals", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "analyticsType", + fieldName: "analyticsType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.AnalyticsType", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "aggregateExportAttributeOptionCombo", + fieldName: "aggregateExportAttributeOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + programIndicatorGroups: { + klass: "org.hisp.dhis.program.ProgramIndicatorGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/programIndicatorGroups", + plural: "programIndicatorGroups", + displayName: "Program Indicator Group", + collectionName: "programIndicatorGroups", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programIndicatorGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programIndicator", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramIndicator", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programInstances: { + klass: "org.hisp.dhis.program.ProgramInstance", + shareable: false, + metadata: false, + plural: "programInstances", + displayName: "Program Instance", + collectionName: "programInstances", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "programInstance", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "enrollmentDate", + fieldName: "enrollmentDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdAtClient", + fieldName: "createdAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "messageConversation", + fieldName: "messageConversations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.message.MessageConversation", + }, + { + name: "trackedEntityComment", + fieldName: "comments", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentitycomment.TrackedEntityComment", + }, + { + name: "lastUpdatedByUserInfo", + fieldName: "lastUpdatedByUserInfo", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.program.UserInfoSnapshot", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "relationshipItem", + fieldName: "relationshipItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.relationship.RelationshipItem", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "createdByUserInfo", + fieldName: "createdByUserInfo", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.program.UserInfoSnapshot", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "programStageInstance", + fieldName: "programStageInstances", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramStageInstance", + }, + { + name: "trackedEntityInstance", + fieldName: "entityInstance", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityInstance", + }, + { + name: "followup", + fieldName: "followup", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "deleted", + fieldName: "deleted", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "geometry", + fieldName: "geometry", + propertyType: "COMPLEX", + klass: "org.locationtech.jts.geom.Geometry", + }, + { + name: "incidentDate", + fieldName: "incidentDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "completedBy", + fieldName: "completedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "status", + fieldName: "status", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramStatus", + }, + { + name: "lastUpdatedAtClient", + fieldName: "lastUpdatedAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + ], + }, + programNotificationTemplates: { + klass: "org.hisp.dhis.program.notification.ProgramNotificationTemplate", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programNotificationTemplates", + plural: "programNotificationTemplates", + displayName: "Program Notification Template", + collectionName: "programNotificationTemplates", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programNotificationTemplate", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "notificationTrigger", + fieldName: "notificationTrigger", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.notification.NotificationTrigger", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "relativeScheduledDays", + fieldName: "relativeScheduledDays", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "subjectTemplate", + fieldName: "subjectTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "deliveryChannels", + fieldName: "deliveryChannels", + propertyType: "COLLECTION", + itemPropertyType: "CONSTANT", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.common.DeliveryChannel", + }, + { + name: "recipientDataElement", + fieldName: "recipientDataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { name: "displaySubjectTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "notifyUsersInHierarchyOnly", + fieldName: "notifyUsersInHierarchyOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "sendRepeatable", + fieldName: "sendRepeatable", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "notificationRecipient", + fieldName: "notificationRecipient", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.notification.ProgramNotificationRecipient", + }, + { + name: "recipientProgramAttribute", + fieldName: "recipientProgramAttribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "notifyParentOrganisationUnitOnly", + fieldName: "notifyParentOrganisationUnitOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayMessageTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "recipientUserGroup", + fieldName: "recipientUserGroup", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.UserGroup", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "messageTemplate", + fieldName: "messageTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + ], + }, + programRules: { + klass: "org.hisp.dhis.programrule.ProgramRule", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programRules", + plural: "programRules", + displayName: "Program Rule", + collectionName: "programRules", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programRule", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "priority", + fieldName: "priority", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "condition", + fieldName: "condition", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programRuleAction", + fieldName: "programRuleActions", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.programrule.ProgramRuleAction", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programRuleActions: { + klass: "org.hisp.dhis.programrule.ProgramRuleAction", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programRuleActions", + plural: "programRuleActions", + displayName: "Program Rule Action", + collectionName: "programRuleActions", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programRuleAction", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "evaluationEnvironment", + fieldName: "programRuleActionEvaluationEnvironments", + propertyType: "COLLECTION", + itemPropertyType: "CONSTANT", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.programrule.ProgramRuleActionEvaluationEnvironment", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "data", fieldName: "data", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "optionGroup", + fieldName: "optionGroup", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionGroup", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "templateUid", + fieldName: "templateUid", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "content", + fieldName: "content", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "trackedEntityAttribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayContent", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "programIndicator", + fieldName: "programIndicator", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramIndicator", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "programRule", + fieldName: "programRule", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.programrule.ProgramRule", + }, + { + name: "programStageSection", + fieldName: "programStageSection", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStageSection", + }, + { + name: "programRuleActionType", + fieldName: "programRuleActionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.programrule.ProgramRuleActionType", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "evaluationTime", + fieldName: "programRuleActionEvaluationTime", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.programrule.ProgramRuleActionEvaluationTime", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "location", + fieldName: "location", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "option", + fieldName: "option", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.Option", + }, + ], + }, + programRuleVariables: { + klass: "org.hisp.dhis.programrule.ProgramRuleVariable", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programRuleVariables", + plural: "programRuleVariables", + displayName: "Program Rule Variable", + collectionName: "programRuleVariables", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programRuleVariable", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "programRuleVariableSourceType", + fieldName: "sourceType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.programrule.ProgramRuleVariableSourceType", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "trackedEntityAttribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "useCodeForOptionSet", + fieldName: "useCodeForOptionSet", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programSections: { + klass: "org.hisp.dhis.program.ProgramSection", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programSections", + plural: "programSections", + displayName: "Program Section", + collectionName: "programSections", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programSection", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "renderType", + fieldName: "renderType", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.render.DeviceRenderTypeMap", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "trackedEntityAttributes", + fieldName: "trackedEntityAttributes", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programStages: { + klass: "org.hisp.dhis.program.ProgramStage", + shareable: true, + metadata: true, + relativeApiEndpoint: "/programStages", + plural: "programStages", + displayName: "Program Stage", + collectionName: "programStages", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "programStage", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataEntryForm", + fieldName: "dataEntryForm", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataentryform.DataEntryForm", + }, + { + name: "allowGenerateNextVisit", + fieldName: "allowGenerateNextVisit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "reportDateToUse", + fieldName: "reportDateToUse", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "programStageDataElement", + fieldName: "programStageDataElements", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramStageDataElement", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "displayDescription", + fieldName: "displayDescription", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "formType", propertyType: "CONSTANT", klass: "org.hisp.dhis.dataset.FormType" }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "generatedByEnrollmentDate", + fieldName: "generatedByEnrollmentDate", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideDueDate", + fieldName: "hideDueDate", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "enableUserAssignment", + fieldName: "enableUserAssignment", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "minDaysFromStart", + fieldName: "minDaysFromStart", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "standardInterval", + fieldName: "standardInterval", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "dueDateLabel", + fieldName: "dueDateLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "executionDateLabel", + fieldName: "executionDateLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "preGenerateUID", + fieldName: "preGenerateUID", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayExecutionDateLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "notificationTemplate", + fieldName: "notificationTemplates", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.notification.ProgramNotificationTemplate", + }, + { + name: "openAfterEnrollment", + fieldName: "openAfterEnrollment", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "repeatable", + fieldName: "repeatable", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "featureType", + fieldName: "featureType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.organisationunit.FeatureType", + }, + { + name: "remindCompleted", + fieldName: "remindCompleted", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayGenerateEventBox", + fieldName: "displayGenerateEventBox", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "nextScheduleDate", + fieldName: "nextScheduleDate", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "validationStrategy", + fieldName: "validationStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ValidationStrategy", + }, + { + name: "autoGenerateEvent", + fieldName: "autoGenerateEvent", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "periodType", + fieldName: "periodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "displayDueDateLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "blockEntryForm", + fieldName: "blockEntryForm", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "programStageSection", + fieldName: "programStageSections", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramStageSection", + }, + ], + }, + programStageDataElements: { + klass: "org.hisp.dhis.program.ProgramStageDataElement", + shareable: false, + metadata: false, + plural: "programStageDataElements", + displayName: "Program Stage Data Element", + collectionName: "programStageDataElements", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "programStageDataElement", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "displayInReports", + fieldName: "displayInReports", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "skipSynchronization", + fieldName: "skipSynchronization", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "renderOptionsAsRadio", + fieldName: "renderOptionsAsRadio", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "skipAnalytics", + fieldName: "skipAnalytics", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "allowFutureDate", + fieldName: "allowFutureDate", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "renderType", + fieldName: "renderType", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.render.DeviceRenderTypeMap", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "compulsory", + fieldName: "compulsory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "allowProvidedElsewhere", + fieldName: "allowProvidedElsewhere", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programStageInstances: { + klass: "org.hisp.dhis.program.ProgramStageInstance", + shareable: false, + metadata: false, + plural: "programStageInstances", + displayName: "Program Stage Instance", + collectionName: "programStageInstances", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "softDeletableObject", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "dueDate", + fieldName: "dueDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdAtClient", + fieldName: "createdAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "messageConversations", + fieldName: "messageConversations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.message.MessageConversation", + }, + { + name: "lastUpdatedByUserInfo", + fieldName: "lastUpdatedByUserInfo", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.program.UserInfoSnapshot", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "eventDataValues", + fieldName: "eventDataValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.eventdatavalue.EventDataValue", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "relationshipItem", + fieldName: "relationshipItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.relationship.RelationshipItem", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "createdByUserInfo", + fieldName: "createdByUserInfo", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.program.UserInfoSnapshot", + }, + { + name: "assignedUser", + fieldName: "assignedUser", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "comments", + fieldName: "comments", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentitycomment.TrackedEntityComment", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "creatableInSearchScope", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { name: "completed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "completedDate", + fieldName: "completedDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "programInstance", + fieldName: "programInstance", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramInstance", + }, + { + name: "deleted", + fieldName: "deleted", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { + name: "attributeOptionCombo", + fieldName: "attributeOptionCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "geometry", + fieldName: "geometry", + propertyType: "COMPLEX", + klass: "org.locationtech.jts.geom.Geometry", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "completedBy", + fieldName: "completedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "status", + fieldName: "status", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.event.EventStatus", + }, + { + name: "lastUpdatedAtClient", + fieldName: "lastUpdatedAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "eventDate", + fieldName: "executionDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + ], + }, + eventFilters: { + klass: "org.hisp.dhis.programstagefilter.ProgramStageInstanceFilter", + shareable: true, + metadata: true, + relativeApiEndpoint: "/eventFilters", + plural: "eventFilters", + displayName: "Program Stage Instance Filter", + collectionName: "eventFilters", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programStageInstanceFilter", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "eventQueryCriteria", + fieldName: "eventQueryCriteria", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.programstagefilter.EventQueryCriteria", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programStageSections: { + klass: "org.hisp.dhis.program.ProgramStageSection", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programStageSections", + plural: "programStageSections", + displayName: "Program Stage Section", + collectionName: "programStageSections", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programStageSection", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "programIndicator", + fieldName: "programIndicators", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.program.ProgramIndicator", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "renderType", + fieldName: "renderType", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.render.DeviceRenderTypeMap", + }, + { + name: "dataElement", + fieldName: "dataElements", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElement", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programTrackedEntityAttributes: { + klass: "org.hisp.dhis.program.ProgramTrackedEntityAttribute", + shareable: false, + metadata: false, + plural: "programTrackedEntityAttributes", + displayName: "Program Tracked Entity Attribute", + collectionName: "programTrackedEntityAttributes", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "programTrackedEntityAttribute", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "programTrackedEntityAttributeGroups", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramTrackedEntityAttributeGroup", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "mandatory", + fieldName: "mandatory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "trackedEntityAttribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "renderOptionsAsRadio", + fieldName: "renderOptionsAsRadio", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "allowFutureDate", + fieldName: "allowFutureDate", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "renderType", + fieldName: "renderType", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.render.DeviceRenderTypeMap", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "searchable", + fieldName: "searchable", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayInList", + fieldName: "displayInList", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + programTrackedEntityAttributeDimensionItems: { + klass: "org.hisp.dhis.program.ProgramTrackedEntityAttributeDimensionItem", + shareable: false, + metadata: false, + plural: "programTrackedEntityAttributeDimensionItems", + displayName: "Program Tracked Entity Attribute Dimension Item", + collectionName: "programTrackedEntityAttributeDimensionItems", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "programAttributeDimension", + persisted: false, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "attribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + programTrackedEntityAttributeGroups: { + klass: "org.hisp.dhis.program.ProgramTrackedEntityAttributeGroup", + shareable: false, + metadata: true, + relativeApiEndpoint: "/programTrackedEntityAttributeGroups", + plural: "programTrackedEntityAttributeGroups", + displayName: "Program Tracked Entity Attribute Group", + collectionName: "programTrackedEntityAttributeGroups", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "programTrackedEntityAttributeGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "uniqunessType", + fieldName: "uniqunessType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.UniqunessType", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attribute", + fieldName: "attributes", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramTrackedEntityAttribute", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + pushAnalysis: { + klass: "org.hisp.dhis.pushanalysis.PushAnalysis", + shareable: false, + metadata: true, + relativeApiEndpoint: "/pushAnalysis", + plural: "pushAnalysis", + displayName: "Push Analysis", + collectionName: "pushAnalysis", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "pushanalysis", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "recipientUserGroups", + fieldName: "recipientUserGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroup", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "dashboard", + fieldName: "dashboard", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dashboard.Dashboard", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "message", + fieldName: "message", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + relationships: { + klass: "org.hisp.dhis.relationship.Relationship", + shareable: false, + metadata: false, + relativeApiEndpoint: "/relationships", + plural: "relationships", + displayName: "Relationship", + collectionName: "relationships", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "relationship", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "from", + fieldName: "from", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.relationship.RelationshipItem", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "relationshipType", + fieldName: "relationshipType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.relationship.RelationshipType", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "to", + fieldName: "to", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.relationship.RelationshipItem", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + relationshipTypes: { + klass: "org.hisp.dhis.relationship.RelationshipType", + shareable: true, + metadata: true, + relativeApiEndpoint: "/relationshipTypes", + plural: "relationshipTypes", + displayName: "Relationship Type", + collectionName: "relationshipTypes", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "relationshipType", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "bidirectional", + fieldName: "bidirectional", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "fromToName", + fieldName: "fromToName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayFromToName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "toConstraint", + fieldName: "toConstraint", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.relationship.RelationshipConstraint", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "toFromName", + fieldName: "toFromName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayToFromName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "fromConstraint", + fieldName: "fromConstraint", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.relationship.RelationshipConstraint", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + reports: { + klass: "org.hisp.dhis.report.Report", + shareable: true, + metadata: true, + relativeApiEndpoint: "/reports", + plural: "reports", + displayName: "Report", + collectionName: "reports", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "report", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "designContent", + fieldName: "designContent", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "visualization", + fieldName: "visualization", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.visualization.Visualization", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.report.ReportType", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "reportParams", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.visualization.ReportingParams", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "cacheStrategy", + fieldName: "cacheStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.cache.CacheStrategy", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + reportingRates: { + klass: "org.hisp.dhis.common.ReportingRate", + shareable: false, + metadata: false, + plural: "reportingRates", + displayName: "Reporting Rate", + collectionName: "reportingRates", + nameableObject: true, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "reportingRate", + persisted: false, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataset.DataSet", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "metric", + fieldName: "metric", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ReportingRateMetric", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + smsCommands: { + klass: "org.hisp.dhis.sms.command.SMSCommand", + shareable: false, + metadata: true, + relativeApiEndpoint: "/smsCommands", + plural: "smsCommands", + displayName: "S M S Command", + collectionName: "smsCommands", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "smscommand", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "moreThanOneOrgUnitMessage", + fieldName: "moreThanOneOrgUnitMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "smsCode", + fieldName: "codes", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.sms.command.code.SMSCode", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "specialCharacter", + fieldName: "specialCharacters", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.sms.command.SMSSpecialCharacter", + }, + { + name: "currentPeriodUsedForReporting", + fieldName: "currentPeriodUsedForReporting", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "noUserMessage", + fieldName: "noUserMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "receivedMessage", + fieldName: "receivedMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "defaultMessage", + fieldName: "defaultMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "userGroup", + fieldName: "userGroup", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "completenessMethod", + fieldName: "completenessMethod", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.sms.command.CompletenessMethod", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "wrongFormatMessage", + fieldName: "wrongFormatMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "separator", + fieldName: "separator", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "successMessage", + fieldName: "successMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "codeValueSeparator", + fieldName: "codeValueSeparator", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "parserType", + fieldName: "parserType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.sms.parse.ParserType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "dataset", + fieldName: "dataset", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataset.DataSet", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + sections: { + klass: "org.hisp.dhis.dataset.Section", + shareable: false, + metadata: true, + relativeApiEndpoint: "/sections", + plural: "sections", + displayName: "Section", + collectionName: "sections", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "section", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "greyedField", + fieldName: "greyedFields", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.dataelement.DataElementOperand", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "disableDataElementAutoGroup", + fieldName: "disableDataElementAutoGroup", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "categoryCombos", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryCombo", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "dataSet", + fieldName: "dataSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataset.DataSet", + }, + { + name: "dataElement", + fieldName: "dataElements", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElement", + }, + { + name: "showColumnTotals", + fieldName: "showColumnTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "indicator", + fieldName: "indicators", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.indicator.Indicator", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "showRowTotals", + fieldName: "showRowTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + sqlViews: { + klass: "org.hisp.dhis.sqlview.SqlView", + shareable: true, + metadata: true, + relativeApiEndpoint: "/sqlViews", + plural: "sqlViews", + displayName: "Sql View", + collectionName: "sqlViews", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: true, + name: "sqlView", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.sqlview.SqlViewType", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "sqlQuery", + fieldName: "sqlQuery", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "cacheStrategy", + fieldName: "cacheStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.cache.CacheStrategy", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + trackedEntityAttributes: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + shareable: true, + metadata: true, + relativeApiEndpoint: "/trackedEntityAttributes", + plural: "trackedEntityAttributes", + displayName: "Tracked Entity Attribute", + collectionName: "trackedEntityAttributes", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "trackedEntityAttribute", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "generated", + fieldName: "generated", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + fieldName: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "confidential", + fieldName: "confidential", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "unique", + fieldName: "unique", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "displayInListNoProgram", + fieldName: "displayInListNoProgram", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "pattern", + fieldName: "pattern", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "skipSynchronization", + fieldName: "skipSynchronization", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrderInListNoProgram", + fieldName: "sortOrderInListNoProgram", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "optionSet", + fieldName: "optionSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.option.OptionSet", + }, + { + name: "displayOnVisitSchedule", + fieldName: "displayOnVisitSchedule", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sortOrderInVisitSchedule", + fieldName: "sortOrderInVisitSchedule", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "orgunitScope", + fieldName: "orgunitScope", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "fieldMask", + fieldName: "fieldMask", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "expression", + fieldName: "expression", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "inherit", + fieldName: "inherit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "optionSetValue", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + trackedEntityAttributeValues: { + klass: "org.hisp.dhis.trackedentityattributevalue.TrackedEntityAttributeValue", + shareable: false, + metadata: false, + plural: "trackedEntityAttributeValues", + displayName: "Tracked Entity Attribute Value", + collectionName: "trackedEntityAttributeValues", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "trackedEntityAttributeValue", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "value", fieldName: "value", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "trackedEntityAttribute", + fieldName: "attribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { + name: "trackedEntityInstance", + fieldName: "entityInstance", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityInstance", + }, + ], + }, + trackedEntityDataElementDimensions: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + shareable: false, + metadata: false, + plural: "trackedEntityDataElementDimensions", + displayName: "Tracked Entity Data Element Dimension", + collectionName: "trackedEntityDataElementDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "dataElementDimension", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "programStage", + fieldName: "programStage", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramStage", + }, + { + name: "dataElement", + fieldName: "dataElement", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.dataelement.DataElement", + }, + ], + }, + trackedEntityInstances: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityInstance", + shareable: false, + metadata: false, + relativeApiEndpoint: "/trackedEntityInstances", + plural: "trackedEntityInstances", + displayName: "Tracked Entity Instance", + collectionName: "trackedEntityInstances", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "trackedEntityInstance", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "programOwners", + fieldName: "programOwners", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramOwner", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "programInstance", + fieldName: "programInstances", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.program.ProgramInstance", + }, + { + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "createdAtClient", + fieldName: "createdAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "lastUpdatedByUserInfo", + fieldName: "lastUpdatedByUserInfo", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.program.UserInfoSnapshot", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "inactive", + fieldName: "inactive", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "relationshipItem", + fieldName: "relationshipItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.relationship.RelationshipItem", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "createdByUserInfo", + fieldName: "createdByUserInfo", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.program.UserInfoSnapshot", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "potentialDuplicate", + fieldName: "potentialDuplicate", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "deleted", + fieldName: "deleted", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "trackedEntityType", + fieldName: "trackedEntityType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "geometry", + fieldName: "geometry", + propertyType: "COMPLEX", + klass: "org.locationtech.jts.geom.Geometry", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "trackedEntityAttributeValue", + fieldName: "trackedEntityAttributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.trackedentityattributevalue.TrackedEntityAttributeValue", + }, + { + name: "lastUpdatedAtClient", + fieldName: "lastUpdatedAtClient", + propertyType: "DATE", + klass: "java.util.Date", + }, + ], + }, + trackedEntityInstanceFilters: { + klass: "org.hisp.dhis.trackedentityfilter.TrackedEntityInstanceFilter", + shareable: false, + metadata: true, + relativeApiEndpoint: "/trackedEntityInstanceFilters", + plural: "trackedEntityInstanceFilters", + displayName: "Tracked Entity Instance Filter", + collectionName: "trackedEntityInstanceFilters", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "trackedEntityInstanceFilter", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "program", + fieldName: "program", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.Program", + }, + { + name: "enrollmentCreatedPeriod", + fieldName: "enrollmentCreatedPeriod", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.trackedentityfilter.FilterPeriod", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "followup", + fieldName: "followup", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "eventFilters", + fieldName: "eventFilters", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentityfilter.EventFilter", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "enrollmentStatus", + fieldName: "enrollmentStatus", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.program.ProgramStatus", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + dataElementDimensions: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + shareable: false, + metadata: false, + plural: "dataElementDimensions", + displayName: "Tracked Entity Program Indicator Dimension", + collectionName: "dataElementDimensions", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "programIndicatorDimension", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "filter", + fieldName: "filter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "legendSet", + fieldName: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "programIndicator", + fieldName: "programIndicator", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.program.ProgramIndicator", + }, + ], + }, + trackedEntityTypes: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityType", + shareable: true, + metadata: true, + relativeApiEndpoint: "/trackedEntityTypes", + plural: "trackedEntityTypes", + displayName: "Tracked Entity Type", + collectionName: "trackedEntityTypes", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: true, + name: "trackedEntityType", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "trackedEntityTypeAttribute", + fieldName: "trackedEntityTypeAttributes", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityTypeAttribute", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "allowAuditLog", + fieldName: "allowAuditLog", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "featureType", + fieldName: "featureType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.organisationunit.FeatureType", + }, + { + name: "minAttributesRequiredToSearch", + fieldName: "minAttributesRequiredToSearch", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "maxTeiCountToReturn", + fieldName: "maxTeiCountToReturn", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "style", + fieldName: "style", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.common.ObjectStyle", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + trackedEntityTypeAttributes: { + klass: "org.hisp.dhis.trackedentity.TrackedEntityTypeAttribute", + shareable: false, + metadata: false, + plural: "trackedEntityTypeAttributes", + displayName: "Tracked Entity Type Attribute", + collectionName: "trackedEntityTypeAttributes", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "trackedEntityTypeAttribute", + persisted: true, + embeddedObject: true, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "mandatory", + fieldName: "mandatory", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "trackedEntityAttribute", + fieldName: "trackedEntityAttribute", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityAttribute", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "valueType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.ValueType", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "searchable", + fieldName: "searchable", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "displayInList", + fieldName: "displayInList", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "trackedEntityType", + fieldName: "trackedEntityType", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.trackedentity.TrackedEntityType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + users: { + klass: "org.hisp.dhis.user.User", + shareable: false, + metadata: true, + relativeApiEndpoint: "/users", + plural: "users", + displayName: "User", + collectionName: "users", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "user", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "education", + fieldName: "education", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "jobTitle", + fieldName: "jobTitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "twitter", + fieldName: "twitter", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "employer", + fieldName: "employer", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "dataViewOrganisationUnit", + fieldName: "dataViewOrganisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "whatsApp", + fieldName: "whatsApp", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "userGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "firstName", + fieldName: "firstName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "phoneNumber", + fieldName: "phoneNumber", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "nationality", + fieldName: "nationality", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "birthday", + fieldName: "birthday", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "gender", + fieldName: "gender", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "skype", fieldName: "skype", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "teiSearchOrganisationUnit", + fieldName: "teiSearchOrganisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "surname", + fieldName: "surname", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "facebookMessenger", + fieldName: "facebookMessenger", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "introduction", + fieldName: "introduction", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "email", fieldName: "email", propertyType: "EMAIL", klass: "java.lang.String" }, + { + name: "languages", + fieldName: "languages", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "welcomeMessage", + fieldName: "welcomeMessage", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userCredentials", + fieldName: "userCredentials", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.UserCredentials", + }, + { + name: "telegram", + fieldName: "telegram", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "avatar", + fieldName: "avatar", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.fileresource.FileResource", + }, + { + name: "dataViewMaxOrganisationUnitLevel", + fieldName: "dataViewMaxOrganisationUnitLevel", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "lastCheckedInterpretations", + fieldName: "lastCheckedInterpretations", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "interests", + fieldName: "interests", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, + userAccesses: { + klass: "org.hisp.dhis.user.sharing.UserAccess", + shareable: false, + metadata: false, + plural: "userAccesses", + displayName: "User Access", + collectionName: "userAccesses", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "userAccess", + persisted: false, + embeddedObject: false, + properties: [ + { + name: "access", + fieldName: "access", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "id", propertyType: "TEXT", klass: "java.lang.String" }, + ], + }, + userRoles: { + klass: "org.hisp.dhis.user.UserAuthorityGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/userRoles", + plural: "userRoles", + displayName: "User Authority Group", + collectionName: "userRoles", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "userRole", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "authority", + fieldName: "authorities", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "userObject", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.user.User", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + userCredentials: { + klass: "org.hisp.dhis.user.UserCredentials", + shareable: false, + metadata: false, + plural: "userCredentials", + displayName: "User Credentials", + collectionName: "userCredentials", + nameableObject: false, + translatable: false, + identifiableObject: true, + dataShareable: false, + name: "userCredentials", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastLogin", + fieldName: "lastLogin", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "userInfo", + fieldName: "userInfo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "openId", + fieldName: "openId", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "externalAuth", + fieldName: "externalAuth", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "cogsDimensionConstraint", + fieldName: "cogsDimensionConstraints", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSet", + }, + { + name: "accountExpiry", + fieldName: "accountExpiry", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "catDimensionConstraint", + fieldName: "catDimensionConstraints", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.category.Category", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "password", + fieldName: "password", + propertyType: "PASSWORD", + klass: "java.lang.String", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "ldapId", + fieldName: "ldapId", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "disabled", + fieldName: "disabled", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "twoFA", + fieldName: "twoFA", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "passwordLastUpdated", + fieldName: "passwordLastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "invitation", + fieldName: "invitation", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "selfRegistered", + fieldName: "selfRegistered", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userRole", + fieldName: "userAuthorityGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAuthorityGroup", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "username", + fieldName: "username", + propertyType: "TEXT", + klass: "java.lang.String", + }, + ], + }, + userGroups: { + klass: "org.hisp.dhis.user.UserGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/userGroups", + plural: "userGroups", + displayName: "User Group", + collectionName: "userGroups", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "userGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "managedByGroup", + fieldName: "managedByGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "user", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.User", + }, + { + name: "managedGroup", + fieldName: "managedGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + userGroupAccesses: { + klass: "org.hisp.dhis.user.sharing.UserGroupAccess", + shareable: false, + metadata: false, + plural: "userGroupAccesses", + displayName: "User Group Access", + collectionName: "userGroupAccesses", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "userGroupAccess", + persisted: false, + embeddedObject: false, + properties: [ + { + name: "access", + fieldName: "access", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "id", propertyType: "TEXT", klass: "java.lang.String" }, + ], + }, + validationNotificationTemplates: { + klass: "org.hisp.dhis.validation.notification.ValidationNotificationTemplate", + shareable: false, + metadata: true, + relativeApiEndpoint: "/validationNotificationTemplates", + plural: "validationNotificationTemplates", + displayName: "Validation Notification Template", + collectionName: "validationNotificationTemplates", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "identifiableObject", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "recipientUserGroups", + fieldName: "recipientUserGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroup", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "subjectTemplate", + fieldName: "subjectTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sendStrategy", + fieldName: "sendStrategy", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.notification.SendStrategy", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "validationRules", + fieldName: "validationRules", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.validation.ValidationRule", + }, + { name: "displaySubjectTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "notifyUsersInHierarchyOnly", + fieldName: "notifyUsersInHierarchyOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "notifyParentOrganisationUnitOnly", + fieldName: "notifyParentOrganisationUnitOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayMessageTemplate", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "messageTemplate", + fieldName: "messageTemplate", + propertyType: "TEXT", + klass: "java.lang.String", + }, + ], + }, + validationResults: { + klass: "org.hisp.dhis.validation.ValidationResult", + shareable: false, + metadata: false, + relativeApiEndpoint: "/validationResults", + plural: "validationResults", + displayName: "Validation Result", + collectionName: "validationResults", + nameableObject: false, + translatable: false, + identifiableObject: false, + dataShareable: false, + name: "validationResult", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "period", + fieldName: "period", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.period.Period", + }, + { + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "validationRule", + fieldName: "validationRule", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.validation.ValidationRule", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeOptionCombo", + fieldName: "attributeOptionCombo", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.category.CategoryOptionCombo", + }, + { + name: "rightsideValue", + fieldName: "rightsideValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "id", fieldName: "id", propertyType: "TEXT", klass: "java.lang.Long" }, + { + name: "leftsideValue", + fieldName: "leftsideValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "notificationSent", + fieldName: "notificationSent", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dayInPeriod", + fieldName: "dayInPeriod", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + ], + }, + validationRules: { + klass: "org.hisp.dhis.validation.ValidationRule", + shareable: true, + metadata: true, + relativeApiEndpoint: "/validationRules", + plural: "validationRules", + displayName: "Validation Rule", + collectionName: "validationRules", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "validationRule", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "validationRuleGroup", + fieldName: "groups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.validation.ValidationRuleGroup", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "importance", + fieldName: "importance", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.validation.Importance", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "aggregateExportCategoryOptionCombo", + fieldName: "aggregateExportCategoryOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "operator", + fieldName: "operator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.expression.Operator", + }, + { + name: "organisationUnitLevels", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.Set", + itemKlass: "java.lang.Integer", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayInstruction", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "leftSide", + fieldName: "leftSide", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.expression.Expression", + }, + { + name: "periodOffset", + fieldName: "periodOffset", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "notificationTemplates", + fieldName: "notificationTemplates", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.validation.notification.ValidationNotificationTemplate", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { name: "dimensionItem", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "rightSide", + fieldName: "rightSide", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.expression.Expression", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "periodType", + fieldName: "periodType", + propertyType: "TEXT", + klass: "org.hisp.dhis.period.PeriodType", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "instruction", + fieldName: "instruction", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "legendSet", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "skipFormValidation", + fieldName: "skipFormValidation", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "legendSets", + fieldName: "legendSets", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.legend.LegendSet", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { + name: "aggregateExportAttributeOptionCombo", + fieldName: "aggregateExportAttributeOptionCombo", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "dimensionItemType", + fieldName: "dimensionItemType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DimensionItemType", + }, + ], + }, + validationRuleGroups: { + klass: "org.hisp.dhis.validation.ValidationRuleGroup", + shareable: true, + metadata: true, + relativeApiEndpoint: "/validationRuleGroups", + plural: "validationRuleGroups", + displayName: "Validation Rule Group", + collectionName: "validationRuleGroups", + nameableObject: false, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "validationRuleGroup", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "validationRule", + fieldName: "members", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.validation.ValidationRule", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + ], + }, + visualizations: { + klass: "org.hisp.dhis.visualization.Visualization", + shareable: true, + metadata: true, + relativeApiEndpoint: "/visualizations", + plural: "visualizations", + displayName: "Visualization", + collectionName: "visualizations", + nameableObject: true, + translatable: true, + identifiableObject: true, + dataShareable: false, + name: "visualization", + persisted: true, + embeddedObject: false, + properties: [ + { + name: "dataElementGroupSetDimension", + fieldName: "dataElementGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.dataelement.DataElementGroupSetDimension", + }, + { + name: "orgUnitField", + fieldName: "orgUnitField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "endDate", + fieldName: "endDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "baseLineValue", + fieldName: "baseLineValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "legend", + fieldName: "legendDefinitions", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.visualization.LegendDefinitions", + }, + { + name: "publicAccess", + fieldName: "publicAccess", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userOrganisationUnitChildren", + fieldName: "userOrganisationUnitChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displaySubtitle", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "axes", + fieldName: "axes", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.visualization.AxisV2", + }, + { + name: "type", + fieldName: "type", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.visualization.VisualizationType", + }, + { + name: "hideEmptyColumns", + fieldName: "hideEmptyColumns", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "measureCriteria", + fieldName: "measureCriteria", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "lastUpdated", + fieldName: "lastUpdated", + propertyType: "DATE", + klass: "java.util.Date", + }, + { name: "subscribed", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { name: "displayTitle", propertyType: "TEXT", klass: "java.lang.String" }, + { name: "displayTargetLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "attributeDimension", + fieldName: "attributeDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension", + }, + { + name: "translation", + fieldName: "translations", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.translation.Translation", + }, + { + name: "yearlySerie", + fieldName: "yearlySeries", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "userOrganisationUnit", + fieldName: "userOrganisationUnit", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, + { + name: "rowSubTotals", + fieldName: "rowSubTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "filterDimension", + fieldName: "filterDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { + name: "interpretation", + fieldName: "interpretations", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.interpretation.Interpretation", + }, + { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "visualizationPeriodName", + fieldName: "visualizationPeriodName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "userGroupAccess", + fieldName: "userGroupAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserGroupAccess", + }, + { + name: "domainAxisLabel", + fieldName: "domainAxisLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "subscriber", + fieldName: "subscribers", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "cumulativeValues", + fieldName: "cumulativeValues", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "fontStyle", + fieldName: "fontStyle", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.visualization.VisualizationFontStyle", + }, + { + name: "axis", + fieldName: "optionalAxes", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.visualization.Axis", + }, + { + name: "showDimensionLabels", + fieldName: "showDimensionLabels", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sortOrder", + fieldName: "sortOrder", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "subtitle", + fieldName: "subtitle", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "fontSize", + fieldName: "fontSize", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.FontSize", + }, + { + name: "rangeAxisDecimals", + fieldName: "rangeAxisDecimals", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "shortName", + fieldName: "shortName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, + { + name: "topLimit", + fieldName: "topLimit", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "startDate", + fieldName: "startDate", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, + { + name: "userOrganisationUnitGrandChildren", + fieldName: "userOrganisationUnitGrandChildren", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "column", + fieldName: "columns", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "percentStackedValues", + fieldName: "percentStackedValues", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "noSpaceBetweenColumns", + fieldName: "noSpaceBetweenColumns", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "dataElementDimension", + fieldName: "dataElementDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityDataElementDimension", + }, + { + name: "rangeAxisSteps", + fieldName: "rangeAxisSteps", + propertyType: "INTEGER", + klass: "java.lang.Integer", + }, + { + name: "formName", + fieldName: "formName", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "period", + fieldName: "periods", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.period.Period", + }, + { + name: "categoryDimension", + fieldName: "categoryDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryDimension", + }, + { + name: "showHierarchy", + fieldName: "showHierarchy", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { name: "displayRangeAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "seriesKey", + fieldName: "seriesKey", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.visualization.SeriesKey", + }, + { + name: "reportingParams", + fieldName: "reportingParams", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.visualization.ReportingParams", + }, + { + name: "hideTitle", + fieldName: "hideTitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rowDimension", + fieldName: "rowDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "seriesItem", + fieldName: "series", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.visualization.Series", + }, + { + name: "colorSet", + fieldName: "colorSet", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { name: "displayBaseLineLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "skipRounding", + fieldName: "skipRounding", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "showData", + fieldName: "showData", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "fixRowHeaders", + fieldName: "fixRowHeaders", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "numberType", + fieldName: "numberType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.NumberType", + }, + { + name: "hideEmptyRows", + fieldName: "hideEmptyRows", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "parentGraphMap", + fieldName: "parentGraphMap", + propertyType: "COMPLEX", + klass: "java.util.Map", + }, + { + name: "itemOrganisationUnitGroup", + fieldName: "itemOrganisationUnitGroups", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroup", + }, + { + name: "displayDensity", + fieldName: "displayDensity", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DisplayDensity", + }, + { + name: "lastUpdatedBy", + fieldName: "lastUpdatedBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { name: "displayDomainAxisLabel", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "programIndicatorDimension", + fieldName: "programIndicatorDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.trackedentity.TrackedEntityProgramIndicatorDimension", + }, + { + name: "created", + fieldName: "created", + propertyType: "DATE", + klass: "java.util.Date", + }, + { + name: "rangeAxisLabel", + fieldName: "rangeAxisLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "regressionType", + fieldName: "regressionType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.RegressionType", + }, + { + name: "attributeValue", + fieldName: "attributeValues", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.attribute.AttributeValue", + }, + { + name: "columnDimension", + fieldName: "columnDimensions", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.List", + itemKlass: "java.lang.String", + }, + { + name: "completedOnly", + fieldName: "completedOnly", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "colTotals", + fieldName: "colTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "sharing", + fieldName: "sharing", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.user.sharing.Sharing", + }, + { name: "displayFormName", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "userAccess", + fieldName: "userAccesses", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.Set", + itemKlass: "org.hisp.dhis.user.UserAccess", + }, + { name: "name", fieldName: "name", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideEmptyRowItems", + fieldName: "hideEmptyRowItems", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.HideEmptyItemStrategy", + }, + { + name: "favorite", + fieldName: "favorites", + propertyType: "COLLECTION", + itemPropertyType: "TEXT", + klass: "java.util.Set", + itemKlass: "java.lang.String", + }, + { + name: "aggregationType", + fieldName: "aggregationType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.AggregationType", + }, + { + name: "dataDimensionItem", + fieldName: "dataDimensionItems", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DataDimensionItem", + }, + { + name: "code", + fieldName: "code", + propertyType: "IDENTIFIER", + klass: "java.lang.String", + }, + { + name: "categoryOptionGroupSetDimension", + fieldName: "categoryOptionGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.category.CategoryOptionGroupSetDimension", + }, + { + name: "hideSubtitle", + fieldName: "hideSubtitle", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "description", + fieldName: "description", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnitGroupSetDimension", + fieldName: "organisationUnitGroupSetDimensions", + propertyType: "COLLECTION", + itemPropertyType: "COMPLEX", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnitGroupSetDimension", + }, + { name: "title", fieldName: "title", propertyType: "TEXT", klass: "java.lang.String" }, + { + name: "hideLegend", + fieldName: "hideLegend", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "fixColumnHeaders", + fieldName: "fixColumnHeaders", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "rangeAxisMinValue", + fieldName: "rangeAxisMinValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "organisationUnitLevel", + fieldName: "organisationUnitLevels", + propertyType: "COLLECTION", + itemPropertyType: "INTEGER", + klass: "java.util.List", + itemKlass: "java.lang.Integer", + }, + { + name: "colSubTotals", + fieldName: "colSubTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "relativePeriods", + fieldName: "relatives", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.period.RelativePeriods", + }, + { + name: "targetLineLabel", + fieldName: "targetLineLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "organisationUnit", + fieldName: "organisationUnits", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, + { + name: "rowTotals", + fieldName: "rowTotals", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "timeField", + fieldName: "timeField", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "targetLineValue", + fieldName: "targetLineValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { + name: "filter", + fieldName: "filters", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "row", + fieldName: "rows", + propertyType: "COLLECTION", + itemPropertyType: "REFERENCE", + klass: "java.util.List", + itemKlass: "org.hisp.dhis.common.DimensionalObject", + }, + { + name: "outlierAnalysis", + fieldName: "outlierAnalysis", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.visualization.OutlierAnalysis", + }, + { + name: "baseLineLabel", + fieldName: "baseLineLabel", + propertyType: "TEXT", + klass: "java.lang.String", + }, + { + name: "digitGroupSeparator", + fieldName: "digitGroupSeparator", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.common.DigitGroupSeparator", + }, + { + name: "createdBy", + fieldName: "createdBy", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.user.User", + }, + { + name: "regression", + fieldName: "regression", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, + { + name: "userOrgUnitType", + fieldName: "userOrgUnitType", + propertyType: "CONSTANT", + klass: "org.hisp.dhis.analytics.UserOrgUnitType", + }, + { + name: "rangeAxisMaxValue", + fieldName: "rangeAxisMaxValue", + propertyType: "NUMBER", + klass: "java.lang.Double", + }, + { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, + ], + }, +}; + +export type D2ModelSchemas = { + analyticsPeriodBoundaries: D2AnalyticsPeriodBoundarySchema; + analyticsTableHooks: D2AnalyticsTableHookSchema; + apiToken: D2ApiTokenSchema; + attributes: D2AttributeSchema; + attributeValues: D2AttributeValueSchema; + categories: D2CategorySchema; + categoryCombos: D2CategoryComboSchema; + categoryDimensions: D2CategoryDimensionSchema; + categoryOptions: D2CategoryOptionSchema; + categoryOptionCombos: D2CategoryOptionComboSchema; + categoryOptionGroups: D2CategoryOptionGroupSchema; + categoryOptionGroupSets: D2CategoryOptionGroupSetSchema; + categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema; + constants: D2ConstantSchema; + dashboards: D2DashboardSchema; + dashboardItems: D2DashboardItemSchema; + dataApprovalLevels: D2DataApprovalLevelSchema; + dataApprovalWorkflows: D2DataApprovalWorkflowSchema; + dataElements: D2DataElementSchema; + dataElementGroups: D2DataElementGroupSchema; + dataElementGroupSets: D2DataElementGroupSetSchema; + dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema; + dataElementOperands: D2DataElementOperandSchema; + dataEntryForms: D2DataEntryFormSchema; + dataInputPeriods: D2DataInputPeriodSchema; + dataSets: D2DataSetSchema; + dataSetElements: D2DataSetElementSchema; + dataSetNotificationTemplates: D2DataSetNotificationTemplateSchema; + documents: D2DocumentSchema; + eventCharts: D2EventChartSchema; + eventReports: D2EventReportSchema; + expressions: D2ExpressionSchema; + externalFileResources: D2ExternalFileResourceSchema; + externalMapLayers: D2ExternalMapLayerSchema; + fileResources: D2FileResourceSchema; + icons: D2IconSchema; + indicators: D2IndicatorSchema; + indicatorGroups: D2IndicatorGroupSchema; + indicatorGroupSets: D2IndicatorGroupSetSchema; + indicatorTypes: D2IndicatorTypeSchema; + interpretations: D2InterpretationSchema; + interpretationComments: D2InterpretationCommentSchema; + jobConfigurations: D2JobConfigurationSchema; + dataStores: D2KeyJsonValueSchema; + legends: D2LegendSchema; + legendSets: D2LegendSetSchema; + maps: D2MapSchema; + mapViews: D2MapViewSchema; + messageConversations: D2MessageConversationSchema; + metadataVersions: D2MetadataVersionSchema; + minMaxDataElements: D2MinMaxDataElementSchema; + oAuth2Clients: D2OAuth2ClientSchema; + options: D2OptionSchema; + optionGroups: D2OptionGroupSchema; + optionGroupSets: D2OptionGroupSetSchema; + optionSets: D2OptionSetSchema; + organisationUnits: D2OrganisationUnitSchema; + organisationUnitGroups: D2OrganisationUnitGroupSchema; + organisationUnitGroupSets: D2OrganisationUnitGroupSetSchema; + organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema; + organisationUnitLevels: D2OrganisationUnitLevelSchema; + predictors: D2PredictorSchema; + predictorGroups: D2PredictorGroupSchema; + programs: D2ProgramSchema; + programDataElements: D2ProgramDataElementDimensionItemSchema; + programIndicators: D2ProgramIndicatorSchema; + programIndicatorGroups: D2ProgramIndicatorGroupSchema; + programInstances: D2ProgramInstanceSchema; + programNotificationTemplates: D2ProgramNotificationTemplateSchema; + programRules: D2ProgramRuleSchema; + programRuleActions: D2ProgramRuleActionSchema; + programRuleVariables: D2ProgramRuleVariableSchema; + programSections: D2ProgramSectionSchema; + programStages: D2ProgramStageSchema; + programStageDataElements: D2ProgramStageDataElementSchema; + programStageInstances: D2ProgramStageInstanceSchema; + eventFilters: D2ProgramStageInstanceFilterSchema; + programStageSections: D2ProgramStageSectionSchema; + programTrackedEntityAttributes: D2ProgramTrackedEntityAttributeSchema; + programTrackedEntityAttributeDimensionItems: D2ProgramTrackedEntityAttributeDimensionItemSchema; + programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroupSchema; + pushAnalysis: D2PushAnalysisSchema; + relationships: D2RelationshipSchema; + relationshipTypes: D2RelationshipTypeSchema; + reports: D2ReportSchema; + reportingRates: D2ReportingRateSchema; + smsCommands: D2SMSCommandSchema; + sections: D2SectionSchema; + sqlViews: D2SqlViewSchema; + trackedEntityAttributes: D2TrackedEntityAttributeSchema; + trackedEntityAttributeValues: D2TrackedEntityAttributeValueSchema; + trackedEntityDataElementDimensions: D2TrackedEntityDataElementDimensionSchema; + trackedEntityInstances: D2TrackedEntityInstanceSchema; + trackedEntityInstanceFilters: D2TrackedEntityInstanceFilterSchema; + dataElementDimensions: D2TrackedEntityProgramIndicatorDimensionSchema; + trackedEntityTypes: D2TrackedEntityTypeSchema; + trackedEntityTypeAttributes: D2TrackedEntityTypeAttributeSchema; + users: D2UserSchema; + userAccesses: D2UserAccessSchema; + userRoles: D2UserAuthorityGroupSchema; + userCredentials: D2UserCredentialsSchema; + userGroups: D2UserGroupSchema; + userGroupAccesses: D2UserGroupAccessSchema; + validationNotificationTemplates: D2ValidationNotificationTemplateSchema; + validationResults: D2ValidationResultSchema; + validationRules: D2ValidationRuleSchema; + validationRuleGroups: D2ValidationRuleGroupSchema; + visualizations: D2VisualizationSchema; +}; diff --git a/src/schemas/base.ts b/src/schemas/base.ts index c6e6709..c81db91 100644 --- a/src/schemas/base.ts +++ b/src/schemas/base.ts @@ -115,7 +115,8 @@ export interface Message extends MessageDestination { text?: string; } -// 2.33 has removed attributeValue from the schema (why?), so we need to provide it +/* 2.33 has removed attributeValue from the schema (why?), so we need to provide a model and schema */ + export type D2AttributeValueGeneric = { attribute: D2Attribute; created: string; @@ -123,6 +124,28 @@ export type D2AttributeValueGeneric = { value: string; }; +export interface D2AttributeValueGenericSchema { + name: "D2AttributeValue"; + model: D2AttributeValueGeneric; + fields: { attribute: D2AttributeSchema; created: string; lastUpdated: string; value: string }; + fieldPresets: { + $all: Preset< + D2AttributeValueGeneric, + keyof D2AttributeValueGeneric + >; + $identifiable: Preset, FieldPresets["identifiable"]>; + $nameable: Preset, FieldPresets["nameable"]>; + $persisted: Preset< + D2AttributeValueGeneric, + "lastUpdated" | "attribute" | "value" | "created" + >; + $owner: Preset< + D2AttributeValueGeneric, + "lastUpdated" | "attribute" | "value" | "created" + >; + }; +} + export type FieldPreset = "$all" | "$identifiable" | "$nameable" | "$persisted" | "$owner"; export interface FieldPresets { From fee5f9d317f4686d7441e7a5cee3b60561ea3606 Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Wed, 24 Nov 2021 11:55:55 +0100 Subject: [PATCH 15/24] Update src/scripts/generate-schemas.ts Co-authored-by: Alexis Rico --- src/scripts/generate-schemas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/generate-schemas.ts b/src/scripts/generate-schemas.ts index f07c31c..c1ea665 100644 --- a/src/scripts/generate-schemas.ts +++ b/src/scripts/generate-schemas.ts @@ -235,7 +235,7 @@ const instances: Instance[] = [ { version: "2.34", url: "https://admin:district@play.dhis2.org/2.34" }, { version: "2.35", url: "https://admin:district@play.dhis2.org/2.35" }, { version: "2.36", url: "https://admin:district@play.dhis2.org/2.36" }, - { version: "2.37", url: "https://admin:district@play.dhis2.org/2.37dev" }, + { version: "2.37", url: "https://admin:district@play.dhis2.org/2.37" }, ]; async function generateSchema(instance: Instance) { From 8ba63c70d2ce3134d0ca9e6ba2187dd7f7e54fd7 Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Mon, 13 Dec 2021 14:17:28 +0100 Subject: [PATCH 16/24] Fix events coordinates fields (type number) --- src/api/events.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/events.ts b/src/api/events.ts index 6a2dbca..a2d1cdc 100644 --- a/src/api/events.ts +++ b/src/api/events.ts @@ -11,8 +11,8 @@ export interface EventsPostRequest { status: string; eventDate: string; coordinate?: { - latitude: string; - longitude: string; + latitude: number; + longitude: number; }; attributeOptionCombo?: string; trackedEntityInstance?: string; @@ -148,8 +148,8 @@ export interface Event { deleted: boolean; attributeOptionCombo: string; coordinate?: { - latitude: string; - longitude: string; + latitude: number; + longitude: number; }; dataValues: Array<{ lastUpdated: string; From 14e3bc62c25eafa4901cf36774177977fbf42209 Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Mon, 13 Dec 2021 14:18:45 +0100 Subject: [PATCH 17/24] Add Sharing + set any -> unknown types --- src/2.34/schemas.ts | 387 +++++++-------- src/2.35/schemas.ts | 403 +++++++-------- src/2.36/schemas.ts | 844 ++++++++++++++++---------------- src/2.37/schemas.ts | 842 +++++++++++++++---------------- src/schemas/base.ts | 17 + src/scripts/generate-schemas.ts | 51 +- 6 files changed, 1286 insertions(+), 1258 deletions(-) diff --git a/src/2.34/schemas.ts b/src/2.34/schemas.ts index 76ee5fa..26ee643 100644 --- a/src/2.34/schemas.ts +++ b/src/2.34/schemas.ts @@ -14,6 +14,7 @@ import { D2RelationshipConstraint, D2ReportingParams, D2Axis, + Sharing, D2AttributeValueGeneric, D2AttributeValueGenericSchema, } from "../schemas/base"; @@ -238,7 +239,7 @@ export type D2Category = { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; @@ -538,7 +539,7 @@ export type D2CategoryOptionGroupSet = { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; @@ -575,7 +576,7 @@ export type D2Chart = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueGeneric[]; baseLineLabel: string; baseLineValue: number; @@ -584,11 +585,11 @@ export type D2Chart = { categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; code: Id; colorSet: D2ColorSet; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; description: string; @@ -609,7 +610,7 @@ export type D2Chart = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; formName: string; hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; hideLegend: boolean; @@ -631,7 +632,7 @@ export type D2Chart = { organisationUnits: D2OrganisationUnit[]; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; rangeAxisDecimals: number; @@ -640,10 +641,10 @@ export type D2Chart = { rangeAxisMinValue: number; rangeAxisSteps: number; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; - rows: any[]; + relativePeriods: unknown; + rows: unknown[]; series: string; - seriesItems: any[]; + seriesItems: unknown[]; shortName: string; showData: boolean; sortOrder: number; @@ -1106,7 +1107,7 @@ export type D2DataElementGroupSet = { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; @@ -1216,7 +1217,7 @@ export type D2DataEntryForm = { export type D2DataInputPeriod = { closingDate: string; openingDate: string; - period: any; + period: unknown; }; export type D2DataSet = { @@ -1392,7 +1393,7 @@ export type D2EventChart = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValueDimension: D2TrackedEntityAttribute; attributeValues: D2AttributeValueGeneric[]; baseLineLabel: string; @@ -1403,11 +1404,11 @@ export type D2EventChart = { collapseDataDimensions: boolean; colorSet: D2ColorSet; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; dataElementValueDimension: D2DataElement; @@ -1430,7 +1431,7 @@ export type D2EventChart = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; formName: string; hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; hideLegend: boolean; @@ -1454,7 +1455,7 @@ export type D2EventChart = { outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -1466,9 +1467,9 @@ export type D2EventChart = { rangeAxisMinValue: number; rangeAxisSteps: number; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; + relativePeriods: unknown; rowDimensions: string[]; - rows: any[]; + rows: unknown[]; shortName: string; showData: boolean; sortOrder: number; @@ -1502,7 +1503,7 @@ export type D2EventChart = { userOrganisationUnit: boolean; userOrganisationUnitChildren: boolean; userOrganisationUnitGrandChildren: boolean; - value: any; + value: unknown; yearlySeries: string[]; }; @@ -1524,7 +1525,7 @@ export type D2EventReport = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValueDimension: D2TrackedEntityAttribute; attributeValues: D2AttributeValueGeneric[]; categoryDimensions: D2CategoryDimension[]; @@ -1534,10 +1535,10 @@ export type D2EventReport = { colTotals: boolean; collapseDataDimensions: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; dataElementValueDimension: D2DataElement; @@ -1557,7 +1558,7 @@ export type D2EventReport = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; formName: string; hideEmptyRows: boolean; @@ -1577,17 +1578,17 @@ export type D2EventReport = { organisationUnits: D2OrganisationUnit[]; outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2Map; - periods: any[]; + periods: unknown[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; publicAccess: string; - relativePeriods: any; + relativePeriods: unknown; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; + rows: unknown[]; shortName: string; showDimensionLabels: boolean; showHierarchy: boolean; @@ -1607,7 +1608,7 @@ export type D2EventReport = { userOrganisationUnit: boolean; userOrganisationUnitChildren: boolean; userOrganisationUnitGrandChildren: boolean; - value: any; + value: unknown; }; export type D2Expression = { @@ -1863,10 +1864,10 @@ export type D2Interpretation = { likedBy: D2User[]; likes: number; map: D2Map; - mentions: any[]; + mentions: unknown[]; name: string; organisationUnit: D2OrganisationUnit; - period: any; + period: unknown; publicAccess: string; reportTable: D2ReportTable; text: string; @@ -1898,7 +1899,7 @@ export type D2InterpretationComment = { id: Id; lastUpdated: string; lastUpdatedBy: D2User; - mentions: any[]; + mentions: unknown[]; name: string; publicAccess: string; text: string; @@ -2121,7 +2122,7 @@ export type D2MapView = { | "CUSTOM" | "DEFAULT"; areaRadius: number; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueGeneric[]; categoryDimensions: D2CategoryDimension[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; @@ -2131,11 +2132,11 @@ export type D2MapView = { colorLow: string; colorScale: string; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; config: string; created: string; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; description: string; @@ -2155,7 +2156,7 @@ export type D2MapView = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; followUp: boolean; formName: string; hidden: boolean; @@ -2192,7 +2193,7 @@ export type D2MapView = { parentGraph: string; parentGraphMap: D2Map; parentLevel: number; - periods: any[]; + periods: unknown[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -2200,9 +2201,9 @@ export type D2MapView = { publicAccess: string; radiusHigh: number; radiusLow: number; - relativePeriods: any; + relativePeriods: unknown; renderingStrategy: "SINGLE" | "SPLIT_BY_PERIOD" | "TIMELINE"; - rows: any[]; + rows: unknown[]; shortName: string; sortOrder: number; startDate: string; @@ -2245,7 +2246,7 @@ export type D2MessageConversation = { lastUpdatedBy: D2User; messageCount: number; messageType: "PRIVATE" | "SYSTEM" | "VALIDATION_RESULT" | "TICKET"; - messages: any[]; + messages: unknown[]; name: string; priority: "NONE" | "LOW" | "MEDIUM" | "HIGH"; publicAccess: string; @@ -2257,7 +2258,7 @@ export type D2MessageConversation = { userAccesses: D2UserAccess[]; userFirstname: string; userGroupAccesses: D2UserGroupAccess[]; - userMessages: any[]; + userMessages: unknown[]; userSurname: string; }; @@ -2469,7 +2470,7 @@ export type D2OptionGroupSet = { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; @@ -2742,7 +2743,7 @@ export type D2OrganisationUnitGroupSet = { href: string; id: Id; includeSubhierarchyInAnalytics: boolean; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; @@ -3118,10 +3119,10 @@ export type D2ProgramInstance = { program: D2Program; programStageInstances: D2ProgramStageInstance[]; publicAccess: string; - relationshipItems: any[]; + relationshipItems: unknown[]; status: "ACTIVE" | "COMPLETED" | "CANCELLED"; storedBy: string; - trackedEntityComments: any[]; + trackedEntityComments: unknown[]; trackedEntityInstance: D2TrackedEntityInstance; translations: D2Translation[]; user: D2User; @@ -3310,7 +3311,7 @@ export type D2ProgramSection = { name: string; program: D2Program; publicAccess: string; - renderType: any; + renderType: unknown; shortName: string; sortOrder: number; style: D2Style; @@ -3398,7 +3399,7 @@ export type D2ProgramStageDataElement = { programStage: D2ProgramStage; publicAccess: string; renderOptionsAsRadio: boolean; - renderType: any; + renderType: unknown; skipSynchronization: boolean; sortOrder: number; translations: D2Translation[]; @@ -3413,18 +3414,18 @@ export type D2ProgramStageInstance = { attributeOptionCombo: D2CategoryOptionCombo; attributeValues: D2AttributeValueGeneric[]; code: Id; - comments: any[]; + comments: unknown[]; completed: boolean; completedBy: string; completedDate: string; creatableInSearchScope: boolean; created: string; createdAtClient: string; - createdByUserInfo: any; + createdByUserInfo: unknown; deleted: boolean; displayName: string; dueDate: string; - eventDataValues: any[]; + eventDataValues: unknown[]; eventDate: string; externalAccess: boolean; favorite: boolean; @@ -3435,14 +3436,14 @@ export type D2ProgramStageInstance = { lastUpdated: string; lastUpdatedAtClient: string; lastUpdatedBy: D2User; - lastUpdatedByUserInfo: any; + lastUpdatedByUserInfo: unknown; messageConversations: D2MessageConversation[]; name: string; organisationUnit: D2OrganisationUnit; programInstance: D2ProgramInstance; programStage: D2ProgramStage; publicAccess: string; - relationshipItems: any[]; + relationshipItems: unknown[]; status: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; storedBy: string; translations: D2Translation[]; @@ -3459,7 +3460,7 @@ export type D2ProgramStageInstanceFilter = { description: string; displayDescription: string; displayName: string; - eventQueryCriteria: any; + eventQueryCriteria: unknown; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -3500,7 +3501,7 @@ export type D2ProgramStageSection = { programIndicators: D2ProgramIndicator[]; programStage: D2ProgramStage; publicAccess: string; - renderType: any; + renderType: unknown; shortName: string; sortOrder: number; style: D2Style; @@ -3532,7 +3533,7 @@ export type D2ProgramTrackedEntityAttribute = { programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroup[]; publicAccess: string; renderOptionsAsRadio: boolean; - renderType: any; + renderType: unknown; searchable: boolean; sortOrder: number; trackedEntityAttribute: D2TrackedEntityAttribute; @@ -3699,7 +3700,7 @@ export type D2Relationship = { favorite: boolean; favorites: string[]; formName: string; - from: any; + from: unknown; href: string; id: Id; lastUpdated: string; @@ -3709,7 +3710,7 @@ export type D2Relationship = { relationshipType: D2RelationshipType; shortName: string; style: D2Style; - to: any; + to: unknown; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -3772,7 +3773,7 @@ export type D2Report = { lastUpdatedBy: D2User; name: string; publicAccess: string; - relativePeriods: any; + relativePeriods: unknown; reportParams: D2ReportingParams; translations: D2Translation[]; type: "JASPER_REPORT_TABLE" | "JASPER_JDBC" | "HTML"; @@ -3800,7 +3801,7 @@ export type D2ReportTable = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueGeneric[]; categoryDimensions: D2CategoryDimension[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; @@ -3808,11 +3809,11 @@ export type D2ReportTable = { colSubTotals: boolean; colTotals: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; cumulative: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; description: string; @@ -3829,7 +3830,7 @@ export type D2ReportTable = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; formName: string; hideEmptyColumns: boolean; @@ -3853,16 +3854,16 @@ export type D2ReportTable = { organisationUnitLevels: number[]; organisationUnits: D2OrganisationUnit[]; parentGraphMap: D2Map; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; regression: boolean; - relativePeriods: any; - reportParams: any; + relativePeriods: unknown; + reportParams: unknown; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; + rows: unknown[]; shortName: string; showDimensionLabels: boolean; showHierarchy: boolean; @@ -3987,8 +3988,8 @@ export type D2SMSCommand = { publicAccess: string; receivedMessage: string; separator: string; - smsCodes: any[]; - specialCharacters: any[]; + smsCodes: unknown[]; + specialCharacters: unknown[]; successMessage: string; translations: D2Translation[]; user: D2User; @@ -4204,9 +4205,9 @@ export type D2TrackedEntityInstance = { name: string; organisationUnit: D2OrganisationUnit; programInstances: D2ProgramInstance[]; - programOwners: any[]; + programOwners: unknown[]; publicAccess: string; - relationshipItems: any[]; + relationshipItems: unknown[]; trackedEntityAttributeValues: D2TrackedEntityAttributeValue[]; trackedEntityType: D2TrackedEntityType; translations: D2Translation[]; @@ -4223,9 +4224,9 @@ export type D2TrackedEntityInstanceFilter = { description: string; displayDescription: string; displayName: string; - enrollmentCreatedPeriod: any; + enrollmentCreatedPeriod: unknown; enrollmentStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; - eventFilters: any[]; + eventFilters: unknown[]; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -4520,7 +4521,7 @@ export type D2ValidationResult = { leftsideValue: number; notificationSent: boolean; organisationUnit: D2OrganisationUnit; - period: any; + period: unknown; rightsideValue: number; validationRule: D2ValidationRule; }; @@ -4647,7 +4648,7 @@ export type D2Visualization = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueGeneric[]; baseLineLabel: string; baseLineValue: number; @@ -4658,11 +4659,11 @@ export type D2Visualization = { colTotals: boolean; colorSet: D2ColorSet; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; description: string; @@ -4684,7 +4685,7 @@ export type D2Visualization = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; formName: string; hideEmptyColumns: boolean; @@ -4713,7 +4714,7 @@ export type D2Visualization = { organisationUnits: D2OrganisationUnit[]; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; rangeAxisDecimals: number; @@ -4723,12 +4724,12 @@ export type D2Visualization = { rangeAxisSteps: number; regression: boolean; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; + relativePeriods: unknown; reportingParams: D2ReportingParams; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; + rows: unknown[]; shortName: string; showData: boolean; showDimensionLabels: boolean; @@ -5172,7 +5173,7 @@ export interface D2CategorySchema { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; @@ -5707,7 +5708,7 @@ export interface D2CategoryOptionGroupSetSchema { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; @@ -5808,7 +5809,7 @@ export interface D2ChartSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueGenericSchema[]; baseLineLabel: string; baseLineValue: number; @@ -5817,11 +5818,11 @@ export interface D2ChartSchema { categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; code: Id; colorSet: D2ColorSetSchema; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; description: string; @@ -5842,7 +5843,7 @@ export interface D2ChartSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; formName: string; hideEmptyRowItems: | "NONE" @@ -5869,7 +5870,7 @@ export interface D2ChartSchema { organisationUnits: D2OrganisationUnitSchema[]; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; rangeAxisDecimals: number; @@ -5878,10 +5879,10 @@ export interface D2ChartSchema { rangeAxisMinValue: number; rangeAxisSteps: number; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; - rows: any[]; + relativePeriods: unknown; + rows: unknown[]; series: string; - seriesItems: any[]; + seriesItems: unknown[]; shortName: string; showData: boolean; sortOrder: number; @@ -6766,7 +6767,7 @@ export interface D2DataElementGroupSetSchema { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; @@ -6980,7 +6981,7 @@ export interface D2DataEntryFormSchema { export interface D2DataInputPeriodSchema { name: "D2DataInputPeriod"; model: D2DataInputPeriod; - fields: { closingDate: string; openingDate: string; period: any }; + fields: { closingDate: string; openingDate: string; period: unknown }; fieldPresets: { $all: Preset; $identifiable: Preset; @@ -7378,7 +7379,7 @@ export interface D2EventChartSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValueDimension: D2TrackedEntityAttributeSchema; attributeValues: D2AttributeValueGenericSchema[]; baseLineLabel: string; @@ -7389,11 +7390,11 @@ export interface D2EventChartSchema { collapseDataDimensions: boolean; colorSet: D2ColorSetSchema; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; dataElementValueDimension: D2DataElementSchema; @@ -7416,7 +7417,7 @@ export interface D2EventChartSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; formName: string; hideEmptyRowItems: | "NONE" @@ -7445,7 +7446,7 @@ export interface D2EventChartSchema { outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -7457,9 +7458,9 @@ export interface D2EventChartSchema { rangeAxisMinValue: number; rangeAxisSteps: number; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; + relativePeriods: unknown; rowDimensions: string[]; - rows: any[]; + rows: unknown[]; shortName: string; showData: boolean; sortOrder: number; @@ -7493,7 +7494,7 @@ export interface D2EventChartSchema { userOrganisationUnit: boolean; userOrganisationUnitChildren: boolean; userOrganisationUnitGrandChildren: boolean; - value: any; + value: unknown; yearlySeries: string[]; }; fieldPresets: { @@ -7673,7 +7674,7 @@ export interface D2EventReportSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValueDimension: D2TrackedEntityAttributeSchema; attributeValues: D2AttributeValueGenericSchema[]; categoryDimensions: D2CategoryDimensionSchema[]; @@ -7683,10 +7684,10 @@ export interface D2EventReportSchema { colTotals: boolean; collapseDataDimensions: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; dataElementValueDimension: D2DataElementSchema; @@ -7706,7 +7707,7 @@ export interface D2EventReportSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; formName: string; hideEmptyRows: boolean; @@ -7726,17 +7727,17 @@ export interface D2EventReportSchema { organisationUnits: D2OrganisationUnitSchema[]; outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2MapSchema; - periods: any[]; + periods: unknown[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; publicAccess: string; - relativePeriods: any; + relativePeriods: unknown; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; + rows: unknown[]; shortName: string; showDimensionLabels: boolean; showHierarchy: boolean; @@ -7756,7 +7757,7 @@ export interface D2EventReportSchema { userOrganisationUnit: boolean; userOrganisationUnitChildren: boolean; userOrganisationUnitGrandChildren: boolean; - value: any; + value: unknown; }; fieldPresets: { $all: Preset; @@ -8488,10 +8489,10 @@ export interface D2InterpretationSchema { likedBy: D2UserSchema[]; likes: number; map: D2MapSchema; - mentions: any[]; + mentions: unknown[]; name: string; organisationUnit: D2OrganisationUnitSchema; - period: any; + period: unknown; publicAccess: string; reportTable: D2ReportTableSchema; text: string; @@ -8576,7 +8577,7 @@ export interface D2InterpretationCommentSchema { id: Id; lastUpdated: string; lastUpdatedBy: D2UserSchema; - mentions: any[]; + mentions: unknown[]; name: string; publicAccess: string; text: string; @@ -9040,7 +9041,7 @@ export interface D2MapViewSchema { | "CUSTOM" | "DEFAULT"; areaRadius: number; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueGenericSchema[]; categoryDimensions: D2CategoryDimensionSchema[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; @@ -9050,11 +9051,11 @@ export interface D2MapViewSchema { colorLow: string; colorScale: string; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; config: string; created: string; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; description: string; @@ -9074,7 +9075,7 @@ export interface D2MapViewSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; followUp: boolean; formName: string; hidden: boolean; @@ -9111,7 +9112,7 @@ export interface D2MapViewSchema { parentGraph: string; parentGraphMap: D2MapSchema; parentLevel: number; - periods: any[]; + periods: unknown[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -9119,9 +9120,9 @@ export interface D2MapViewSchema { publicAccess: string; radiusHigh: number; radiusLow: number; - relativePeriods: any; + relativePeriods: unknown; renderingStrategy: "SINGLE" | "SPLIT_BY_PERIOD" | "TIMELINE"; - rows: any[]; + rows: unknown[]; shortName: string; sortOrder: number; startDate: string; @@ -9295,7 +9296,7 @@ export interface D2MessageConversationSchema { lastUpdatedBy: D2UserSchema; messageCount: number; messageType: "PRIVATE" | "SYSTEM" | "VALIDATION_RESULT" | "TICKET"; - messages: any[]; + messages: unknown[]; name: string; priority: "NONE" | "LOW" | "MEDIUM" | "HIGH"; publicAccess: string; @@ -9307,7 +9308,7 @@ export interface D2MessageConversationSchema { userAccesses: D2UserAccessSchema[]; userFirstname: string; userGroupAccesses: D2UserGroupAccessSchema[]; - userMessages: any[]; + userMessages: unknown[]; userSurname: string; }; fieldPresets: { @@ -9729,7 +9730,7 @@ export interface D2OptionGroupSetSchema { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; @@ -10208,7 +10209,7 @@ export interface D2OrganisationUnitGroupSetSchema { href: string; id: Id; includeSubhierarchyInAnalytics: boolean; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; @@ -11003,10 +11004,10 @@ export interface D2ProgramInstanceSchema { program: D2ProgramSchema; programStageInstances: D2ProgramStageInstanceSchema[]; publicAccess: string; - relationshipItems: any[]; + relationshipItems: unknown[]; status: "ACTIVE" | "COMPLETED" | "CANCELLED"; storedBy: string; - trackedEntityComments: any[]; + trackedEntityComments: unknown[]; trackedEntityInstance: D2TrackedEntityInstanceSchema; translations: D2Translation[]; user: D2UserSchema; @@ -11438,7 +11439,7 @@ export interface D2ProgramSectionSchema { name: string; program: D2ProgramSchema; publicAccess: string; - renderType: any; + renderType: unknown; shortName: string; sortOrder: number; style: D2Style; @@ -11666,7 +11667,7 @@ export interface D2ProgramStageDataElementSchema { programStage: D2ProgramStageSchema; publicAccess: string; renderOptionsAsRadio: boolean; - renderType: any; + renderType: unknown; skipSynchronization: boolean; sortOrder: number; translations: D2Translation[]; @@ -11726,18 +11727,18 @@ export interface D2ProgramStageInstanceSchema { attributeOptionCombo: D2CategoryOptionComboSchema; attributeValues: D2AttributeValueGenericSchema[]; code: Id; - comments: any[]; + comments: unknown[]; completed: boolean; completedBy: string; completedDate: string; creatableInSearchScope: boolean; created: string; createdAtClient: string; - createdByUserInfo: any; + createdByUserInfo: unknown; deleted: boolean; displayName: string; dueDate: string; - eventDataValues: any[]; + eventDataValues: unknown[]; eventDate: string; externalAccess: boolean; favorite: boolean; @@ -11748,14 +11749,14 @@ export interface D2ProgramStageInstanceSchema { lastUpdated: string; lastUpdatedAtClient: string; lastUpdatedBy: D2UserSchema; - lastUpdatedByUserInfo: any; + lastUpdatedByUserInfo: unknown; messageConversations: D2MessageConversationSchema[]; name: string; organisationUnit: D2OrganisationUnitSchema; programInstance: D2ProgramInstanceSchema; programStage: D2ProgramStageSchema; publicAccess: string; - relationshipItems: any[]; + relationshipItems: unknown[]; status: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; storedBy: string; translations: D2Translation[]; @@ -11836,7 +11837,7 @@ export interface D2ProgramStageInstanceFilterSchema { description: string; displayDescription: string; displayName: string; - eventQueryCriteria: any; + eventQueryCriteria: unknown; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -11920,7 +11921,7 @@ export interface D2ProgramStageSectionSchema { programIndicators: D2ProgramIndicatorSchema[]; programStage: D2ProgramStageSchema; publicAccess: string; - renderType: any; + renderType: unknown; shortName: string; sortOrder: number; style: D2Style; @@ -11997,7 +11998,7 @@ export interface D2ProgramTrackedEntityAttributeSchema { programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroupSchema[]; publicAccess: string; renderOptionsAsRadio: boolean; - renderType: any; + renderType: unknown; searchable: boolean; sortOrder: number; trackedEntityAttribute: D2TrackedEntityAttributeSchema; @@ -12300,7 +12301,7 @@ export interface D2RelationshipSchema { favorite: boolean; favorites: string[]; formName: string; - from: any; + from: unknown; href: string; id: Id; lastUpdated: string; @@ -12310,7 +12311,7 @@ export interface D2RelationshipSchema { relationshipType: D2RelationshipTypeSchema; shortName: string; style: D2Style; - to: any; + to: unknown; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -12459,7 +12460,7 @@ export interface D2ReportSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - relativePeriods: any; + relativePeriods: unknown; reportParams: D2ReportingParams; translations: D2Translation[]; type: "JASPER_REPORT_TABLE" | "JASPER_JDBC" | "HTML"; @@ -12538,7 +12539,7 @@ export interface D2ReportTableSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueGenericSchema[]; categoryDimensions: D2CategoryDimensionSchema[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; @@ -12546,11 +12547,11 @@ export interface D2ReportTableSchema { colSubTotals: boolean; colTotals: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; cumulative: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; description: string; @@ -12567,7 +12568,7 @@ export interface D2ReportTableSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; formName: string; hideEmptyColumns: boolean; @@ -12591,16 +12592,16 @@ export interface D2ReportTableSchema { organisationUnitLevels: number[]; organisationUnits: D2OrganisationUnitSchema[]; parentGraphMap: D2MapSchema; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; regression: boolean; - relativePeriods: any; - reportParams: any; + relativePeriods: unknown; + reportParams: unknown; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; + rows: unknown[]; shortName: string; showDimensionLabels: boolean; showHierarchy: boolean; @@ -12747,8 +12748,8 @@ export interface D2SMSCommandSchema { publicAccess: string; receivedMessage: string; separator: string; - smsCodes: any[]; - specialCharacters: any[]; + smsCodes: unknown[]; + specialCharacters: unknown[]; successMessage: string; translations: D2Translation[]; user: D2UserSchema; @@ -13229,9 +13230,9 @@ export interface D2TrackedEntityInstanceSchema { name: string; organisationUnit: D2OrganisationUnitSchema; programInstances: D2ProgramInstanceSchema[]; - programOwners: any[]; + programOwners: unknown[]; publicAccess: string; - relationshipItems: any[]; + relationshipItems: unknown[]; trackedEntityAttributeValues: D2TrackedEntityAttributeValueSchema[]; trackedEntityType: D2TrackedEntityTypeSchema; translations: D2Translation[]; @@ -13247,8 +13248,8 @@ export interface D2TrackedEntityInstanceSchema { D2TrackedEntityInstance, | "programOwners" | "code" - | "programInstances" | "organisationUnit" + | "programInstances" | "createdAtClient" | "lastUpdated" | "inactive" @@ -13291,9 +13292,9 @@ export interface D2TrackedEntityInstanceFilterSchema { description: string; displayDescription: string; displayName: string; - enrollmentCreatedPeriod: any; + enrollmentCreatedPeriod: unknown; enrollmentStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; - eventFilters: any[]; + eventFilters: unknown[]; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -14017,7 +14018,7 @@ export interface D2ValidationResultSchema { leftsideValue: number; notificationSent: boolean; organisationUnit: D2OrganisationUnitSchema; - period: any; + period: unknown; rightsideValue: number; validationRule: D2ValidationRuleSchema; }; @@ -14263,7 +14264,7 @@ export interface D2VisualizationSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueGenericSchema[]; baseLineLabel: string; baseLineValue: number; @@ -14274,11 +14275,11 @@ export interface D2VisualizationSchema { colTotals: boolean; colorSet: D2ColorSetSchema; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; description: string; @@ -14300,7 +14301,7 @@ export interface D2VisualizationSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; formName: string; hideEmptyColumns: boolean; @@ -14334,7 +14335,7 @@ export interface D2VisualizationSchema { organisationUnits: D2OrganisationUnitSchema[]; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; rangeAxisDecimals: number; @@ -14344,12 +14345,12 @@ export interface D2VisualizationSchema { rangeAxisSteps: number; regression: boolean; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; + relativePeriods: unknown; reportingParams: D2ReportingParams; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; + rows: unknown[]; shortName: string; showData: boolean; showDimensionLabels: boolean; @@ -14799,13 +14800,13 @@ export const models: Record = { propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User", }, - { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, { name: "analyticsPeriodBoundaryType", fieldName: "analyticsPeriodBoundaryType", propertyType: "CONSTANT", klass: "org.hisp.dhis.program.AnalyticsPeriodBoundaryType", }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, { name: "boundaryTarget", fieldName: "boundaryTarget", @@ -17435,18 +17436,18 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "java.lang.String", }, - { - name: "access", - fieldName: "access", - propertyType: "COMPLEX", - klass: "org.hisp.dhis.security.acl.Access", - }, { name: "code", fieldName: "code", propertyType: "IDENTIFIER", klass: "java.lang.String", }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, { name: "displayName", fieldName: "displayName", @@ -17497,8 +17498,8 @@ export const models: Record = { propertyType: "TEXT", klass: "java.lang.String", }, - { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "value", fieldName: "value", @@ -17930,12 +17931,12 @@ export const models: Record = { propertyType: "BOOLEAN", klass: "java.lang.Boolean", }, - { name: "y", fieldName: "y", propertyType: "INTEGER", klass: "java.lang.Integer" }, { name: "interpretationLikeCount", propertyType: "INTEGER", klass: "java.lang.Integer", }, + { name: "y", fieldName: "y", propertyType: "INTEGER", klass: "java.lang.Integer" }, { name: "user", fieldName: "user", @@ -27518,18 +27519,18 @@ export const models: Record = { propertyType: "IDENTIFIER", klass: "java.lang.String", }, - { - name: "storedBy", - fieldName: "storedBy", - propertyType: "TEXT", - klass: "java.lang.String", - }, { name: "access", fieldName: "access", propertyType: "COMPLEX", klass: "org.hisp.dhis.security.acl.Access", }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, { name: "endDate", fieldName: "endDate", @@ -29126,18 +29127,18 @@ export const models: Record = { propertyType: "IDENTIFIER", klass: "java.lang.String", }, - { - name: "storedBy", - fieldName: "storedBy", - propertyType: "TEXT", - klass: "java.lang.String", - }, { name: "access", fieldName: "access", propertyType: "COMPLEX", klass: "org.hisp.dhis.security.acl.Access", }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, { name: "organisationUnit", fieldName: "organisationUnit", @@ -32533,6 +32534,12 @@ export const models: Record = { propertyType: "COMPLEX", klass: "org.hisp.dhis.security.acl.Access", }, + { + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", + }, { name: "programInstance", fieldName: "programInstances", @@ -32541,12 +32548,6 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "org.hisp.dhis.program.ProgramInstance", }, - { - name: "organisationUnit", - fieldName: "organisationUnit", - propertyType: "REFERENCE", - klass: "org.hisp.dhis.organisationunit.OrganisationUnit", - }, { name: "displayName", fieldName: "displayName", @@ -33099,18 +33100,18 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "java.lang.String", }, - { - name: "access", - fieldName: "access", - propertyType: "COMPLEX", - klass: "org.hisp.dhis.security.acl.Access", - }, { name: "code", fieldName: "code", propertyType: "IDENTIFIER", klass: "java.lang.String", }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, { name: "displayName", fieldName: "displayName", @@ -33161,8 +33162,8 @@ export const models: Record = { propertyType: "CONSTANT", klass: "org.hisp.dhis.common.ValueType", }, - { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "lastUpdatedBy", fieldName: "lastUpdatedBy", diff --git a/src/2.35/schemas.ts b/src/2.35/schemas.ts index 22e9d15..8da6454 100644 --- a/src/2.35/schemas.ts +++ b/src/2.35/schemas.ts @@ -14,6 +14,7 @@ import { D2RelationshipConstraint, D2ReportingParams, D2Axis, + Sharing, D2AttributeValueGeneric, D2AttributeValueGenericSchema, } from "../schemas/base"; @@ -240,7 +241,7 @@ export type D2Category = { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; @@ -551,7 +552,7 @@ export type D2CategoryOptionGroupSet = { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; @@ -590,7 +591,7 @@ export type D2Chart = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueGeneric[]; baseLineLabel: string; baseLineValue: number; @@ -598,11 +599,11 @@ export type D2Chart = { categoryDimensions: D2CategoryDimension[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; code: Id; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; description: string; @@ -623,7 +624,7 @@ export type D2Chart = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; formName: string; hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; hideLegend: boolean; @@ -645,7 +646,7 @@ export type D2Chart = { organisationUnits: D2OrganisationUnit[]; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; rangeAxisDecimals: number; @@ -654,10 +655,10 @@ export type D2Chart = { rangeAxisMinValue: number; rangeAxisSteps: number; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; - rows: any[]; + relativePeriods: unknown; + rows: unknown[]; series: string; - seriesItems: any[]; + seriesItems: unknown[]; shortName: string; showData: boolean; sortOrder: number; @@ -1085,7 +1086,7 @@ export type D2DataElementGroupSet = { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; @@ -1198,7 +1199,7 @@ export type D2DataEntryForm = { export type D2DataInputPeriod = { closingDate: string; openingDate: string; - period: any; + period: unknown; }; export type D2DataSet = { @@ -1379,7 +1380,7 @@ export type D2EventChart = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValueDimension: D2TrackedEntityAttribute; attributeValues: D2AttributeValueGeneric[]; baseLineLabel: string; @@ -1389,11 +1390,11 @@ export type D2EventChart = { code: Id; collapseDataDimensions: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; dataElementValueDimension: D2DataElement; @@ -1416,7 +1417,7 @@ export type D2EventChart = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; formName: string; hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; hideLegend: boolean; @@ -1440,7 +1441,7 @@ export type D2EventChart = { outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -1452,9 +1453,9 @@ export type D2EventChart = { rangeAxisMinValue: number; rangeAxisSteps: number; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; + relativePeriods: unknown; rowDimensions: string[]; - rows: any[]; + rows: unknown[]; shortName: string; showData: boolean; sortOrder: number; @@ -1489,7 +1490,7 @@ export type D2EventChart = { userOrganisationUnit: boolean; userOrganisationUnitChildren: boolean; userOrganisationUnitGrandChildren: boolean; - value: any; + value: unknown; yearlySeries: string[]; }; @@ -1513,7 +1514,7 @@ export type D2EventReport = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValueDimension: D2TrackedEntityAttribute; attributeValues: D2AttributeValueGeneric[]; categoryDimensions: D2CategoryDimension[]; @@ -1523,10 +1524,10 @@ export type D2EventReport = { colTotals: boolean; collapseDataDimensions: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; dataElementValueDimension: D2DataElement; @@ -1546,7 +1547,7 @@ export type D2EventReport = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; formName: string; hideEmptyRows: boolean; @@ -1566,17 +1567,17 @@ export type D2EventReport = { organisationUnits: D2OrganisationUnit[]; outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2Map; - periods: any[]; + periods: unknown[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; publicAccess: string; - relativePeriods: any; + relativePeriods: unknown; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; + rows: unknown[]; shortName: string; showDimensionLabels: boolean; showHierarchy: boolean; @@ -1596,7 +1597,7 @@ export type D2EventReport = { userOrganisationUnit: boolean; userOrganisationUnitChildren: boolean; userOrganisationUnitGrandChildren: boolean; - value: any; + value: unknown; }; export type D2Expression = { @@ -1856,10 +1857,10 @@ export type D2Interpretation = { likedBy: D2User[]; likes: number; map: D2Map; - mentions: any[]; + mentions: unknown[]; name: string; organisationUnit: D2OrganisationUnit; - period: any; + period: unknown; publicAccess: string; reportTable: D2ReportTable; text: string; @@ -1891,7 +1892,7 @@ export type D2InterpretationComment = { id: Id; lastUpdated: string; lastUpdatedBy: D2User; - mentions: any[]; + mentions: unknown[]; name: string; publicAccess: string; text: string; @@ -2116,7 +2117,7 @@ export type D2MapView = { | "CUSTOM" | "DEFAULT"; areaRadius: number; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueGeneric[]; categoryDimensions: D2CategoryDimension[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; @@ -2126,11 +2127,11 @@ export type D2MapView = { colorLow: string; colorScale: string; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; config: string; created: string; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; description: string; @@ -2151,7 +2152,7 @@ export type D2MapView = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; followUp: boolean; formName: string; hidden: boolean; @@ -2189,7 +2190,7 @@ export type D2MapView = { parentGraph: string; parentGraphMap: D2Map; parentLevel: number; - periods: any[]; + periods: unknown[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -2197,9 +2198,9 @@ export type D2MapView = { publicAccess: string; radiusHigh: number; radiusLow: number; - relativePeriods: any; + relativePeriods: unknown; renderingStrategy: "SINGLE" | "SPLIT_BY_PERIOD" | "TIMELINE"; - rows: any[]; + rows: unknown[]; shortName: string; sortOrder: number; startDate: string; @@ -2243,7 +2244,7 @@ export type D2MessageConversation = { lastUpdatedBy: D2User; messageCount: number; messageType: "PRIVATE" | "SYSTEM" | "VALIDATION_RESULT" | "TICKET"; - messages: any[]; + messages: unknown[]; name: string; priority: "NONE" | "LOW" | "MEDIUM" | "HIGH"; publicAccess: string; @@ -2255,7 +2256,7 @@ export type D2MessageConversation = { userAccesses: D2UserAccess[]; userFirstname: string; userGroupAccesses: D2UserGroupAccess[]; - userMessages: any[]; + userMessages: unknown[]; userSurname: string; }; @@ -2472,7 +2473,7 @@ export type D2OptionGroupSet = { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; @@ -2753,7 +2754,7 @@ export type D2OrganisationUnitGroupSet = { href: string; id: Id; includeSubhierarchyInAnalytics: boolean; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; @@ -3135,10 +3136,10 @@ export type D2ProgramInstance = { program: D2Program; programStageInstances: D2ProgramStageInstance[]; publicAccess: string; - relationshipItems: any[]; + relationshipItems: unknown[]; status: "ACTIVE" | "COMPLETED" | "CANCELLED"; storedBy: string; - trackedEntityComments: any[]; + trackedEntityComments: unknown[]; trackedEntityInstance: D2TrackedEntityInstance; translations: D2Translation[]; user: D2User; @@ -3327,7 +3328,7 @@ export type D2ProgramSection = { name: string; program: D2Program; publicAccess: string; - renderType: any; + renderType: unknown; shortName: string; sortOrder: number; style: D2Style; @@ -3415,7 +3416,7 @@ export type D2ProgramStageDataElement = { programStage: D2ProgramStage; publicAccess: string; renderOptionsAsRadio: boolean; - renderType: any; + renderType: unknown; skipSynchronization: boolean; sortOrder: number; translations: D2Translation[]; @@ -3430,18 +3431,18 @@ export type D2ProgramStageInstance = { attributeOptionCombo: D2CategoryOptionCombo; attributeValues: D2AttributeValueGeneric[]; code: Id; - comments: any[]; + comments: unknown[]; completed: boolean; completedBy: string; completedDate: string; creatableInSearchScope: boolean; created: string; createdAtClient: string; - createdByUserInfo: any; + createdByUserInfo: unknown; deleted: boolean; displayName: string; dueDate: string; - eventDataValues: any[]; + eventDataValues: unknown[]; eventDate: string; externalAccess: boolean; favorite: boolean; @@ -3452,14 +3453,14 @@ export type D2ProgramStageInstance = { lastUpdated: string; lastUpdatedAtClient: string; lastUpdatedBy: D2User; - lastUpdatedByUserInfo: any; + lastUpdatedByUserInfo: unknown; messageConversations: D2MessageConversation[]; name: string; organisationUnit: D2OrganisationUnit; programInstance: D2ProgramInstance; programStage: D2ProgramStage; publicAccess: string; - relationshipItems: any[]; + relationshipItems: unknown[]; status: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; storedBy: string; translations: D2Translation[]; @@ -3476,7 +3477,7 @@ export type D2ProgramStageInstanceFilter = { description: string; displayDescription: string; displayName: string; - eventQueryCriteria: any; + eventQueryCriteria: unknown; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -3517,7 +3518,7 @@ export type D2ProgramStageSection = { programIndicators: D2ProgramIndicator[]; programStage: D2ProgramStage; publicAccess: string; - renderType: any; + renderType: unknown; shortName: string; sortOrder: number; style: D2Style; @@ -3549,7 +3550,7 @@ export type D2ProgramTrackedEntityAttribute = { programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroup[]; publicAccess: string; renderOptionsAsRadio: boolean; - renderType: any; + renderType: unknown; searchable: boolean; sortOrder: number; trackedEntityAttribute: D2TrackedEntityAttribute; @@ -3719,7 +3720,7 @@ export type D2Relationship = { favorite: boolean; favorites: string[]; formName: string; - from: any; + from: unknown; href: string; id: Id; lastUpdated: string; @@ -3729,7 +3730,7 @@ export type D2Relationship = { relationshipType: D2RelationshipType; shortName: string; style: D2Style; - to: any; + to: unknown; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -3792,7 +3793,7 @@ export type D2Report = { lastUpdatedBy: D2User; name: string; publicAccess: string; - relativePeriods: any; + relativePeriods: unknown; reportParams: D2ReportingParams; translations: D2Translation[]; type: "JASPER_REPORT_TABLE" | "JASPER_JDBC" | "HTML"; @@ -3822,7 +3823,7 @@ export type D2ReportTable = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueGeneric[]; categoryDimensions: D2CategoryDimension[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; @@ -3830,11 +3831,11 @@ export type D2ReportTable = { colSubTotals: boolean; colTotals: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; cumulative: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; description: string; @@ -3851,7 +3852,7 @@ export type D2ReportTable = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; formName: string; hideEmptyColumns: boolean; @@ -3875,16 +3876,16 @@ export type D2ReportTable = { organisationUnitLevels: number[]; organisationUnits: D2OrganisationUnit[]; parentGraphMap: D2Map; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; regression: boolean; - relativePeriods: any; - reportParams: any; + relativePeriods: unknown; + reportParams: unknown; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; + rows: unknown[]; shortName: string; showDimensionLabels: boolean; showHierarchy: boolean; @@ -4012,8 +4013,8 @@ export type D2SMSCommand = { publicAccess: string; receivedMessage: string; separator: string; - smsCodes: any[]; - specialCharacters: any[]; + smsCodes: unknown[]; + specialCharacters: unknown[]; successMessage: string; translations: D2Translation[]; user: D2User; @@ -4232,9 +4233,9 @@ export type D2TrackedEntityInstance = { name: string; organisationUnit: D2OrganisationUnit; programInstances: D2ProgramInstance[]; - programOwners: any[]; + programOwners: unknown[]; publicAccess: string; - relationshipItems: any[]; + relationshipItems: unknown[]; storedBy: string; trackedEntityAttributeValues: D2TrackedEntityAttributeValue[]; trackedEntityType: D2TrackedEntityType; @@ -4252,9 +4253,9 @@ export type D2TrackedEntityInstanceFilter = { description: string; displayDescription: string; displayName: string; - enrollmentCreatedPeriod: any; + enrollmentCreatedPeriod: unknown; enrollmentStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; - eventFilters: any[]; + eventFilters: unknown[]; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -4549,7 +4550,7 @@ export type D2ValidationResult = { leftsideValue: number; notificationSent: boolean; organisationUnit: D2OrganisationUnit; - period: any; + period: unknown; rightsideValue: number; validationRule: D2ValidationRule; }; @@ -4681,7 +4682,7 @@ export type D2Visualization = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueGeneric[]; baseLineLabel: string; baseLineValue: number; @@ -4692,11 +4693,11 @@ export type D2Visualization = { colTotals: boolean; colorSet: string; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; description: string; @@ -4718,9 +4719,9 @@ export type D2Visualization = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; - fontStyle: any; + fontStyle: unknown; formName: string; hideEmptyColumns: boolean; hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; @@ -4748,7 +4749,7 @@ export type D2Visualization = { organisationUnits: D2OrganisationUnit[]; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; rangeAxisDecimals: number; @@ -4758,13 +4759,13 @@ export type D2Visualization = { rangeAxisSteps: number; regression: boolean; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; + relativePeriods: unknown; reportingParams: D2ReportingParams; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; - series: any[]; + rows: unknown[]; + series: unknown[]; shortName: string; showData: boolean; showDimensionLabels: boolean; @@ -5211,7 +5212,7 @@ export interface D2CategorySchema { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; @@ -5757,7 +5758,7 @@ export interface D2CategoryOptionGroupSetSchema { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; @@ -5860,7 +5861,7 @@ export interface D2ChartSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueGenericSchema[]; baseLineLabel: string; baseLineValue: number; @@ -5868,11 +5869,11 @@ export interface D2ChartSchema { categoryDimensions: D2CategoryDimensionSchema[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; code: Id; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; description: string; @@ -5893,7 +5894,7 @@ export interface D2ChartSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; formName: string; hideEmptyRowItems: | "NONE" @@ -5920,7 +5921,7 @@ export interface D2ChartSchema { organisationUnits: D2OrganisationUnitSchema[]; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; rangeAxisDecimals: number; @@ -5929,10 +5930,10 @@ export interface D2ChartSchema { rangeAxisMinValue: number; rangeAxisSteps: number; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; - rows: any[]; + relativePeriods: unknown; + rows: unknown[]; series: string; - seriesItems: any[]; + seriesItems: unknown[]; shortName: string; showData: boolean; sortOrder: number; @@ -6722,7 +6723,7 @@ export interface D2DataElementGroupSetSchema { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; @@ -6939,7 +6940,7 @@ export interface D2DataEntryFormSchema { export interface D2DataInputPeriodSchema { name: "D2DataInputPeriod"; model: D2DataInputPeriod; - fields: { closingDate: string; openingDate: string; period: any }; + fields: { closingDate: string; openingDate: string; period: unknown }; fieldPresets: { $all: Preset; $identifiable: Preset; @@ -7342,7 +7343,7 @@ export interface D2EventChartSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValueDimension: D2TrackedEntityAttributeSchema; attributeValues: D2AttributeValueGenericSchema[]; baseLineLabel: string; @@ -7352,11 +7353,11 @@ export interface D2EventChartSchema { code: Id; collapseDataDimensions: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; dataElementValueDimension: D2DataElementSchema; @@ -7379,7 +7380,7 @@ export interface D2EventChartSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; formName: string; hideEmptyRowItems: | "NONE" @@ -7408,7 +7409,7 @@ export interface D2EventChartSchema { outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -7420,9 +7421,9 @@ export interface D2EventChartSchema { rangeAxisMinValue: number; rangeAxisSteps: number; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; + relativePeriods: unknown; rowDimensions: string[]; - rows: any[]; + rows: unknown[]; shortName: string; showData: boolean; sortOrder: number; @@ -7457,7 +7458,7 @@ export interface D2EventChartSchema { userOrganisationUnit: boolean; userOrganisationUnitChildren: boolean; userOrganisationUnitGrandChildren: boolean; - value: any; + value: unknown; yearlySeries: string[]; }; fieldPresets: { @@ -7639,7 +7640,7 @@ export interface D2EventReportSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValueDimension: D2TrackedEntityAttributeSchema; attributeValues: D2AttributeValueGenericSchema[]; categoryDimensions: D2CategoryDimensionSchema[]; @@ -7649,10 +7650,10 @@ export interface D2EventReportSchema { colTotals: boolean; collapseDataDimensions: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; dataElementValueDimension: D2DataElementSchema; @@ -7672,7 +7673,7 @@ export interface D2EventReportSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; formName: string; hideEmptyRows: boolean; @@ -7692,17 +7693,17 @@ export interface D2EventReportSchema { organisationUnits: D2OrganisationUnitSchema[]; outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2MapSchema; - periods: any[]; + periods: unknown[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; publicAccess: string; - relativePeriods: any; + relativePeriods: unknown; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; + rows: unknown[]; shortName: string; showDimensionLabels: boolean; showHierarchy: boolean; @@ -7722,7 +7723,7 @@ export interface D2EventReportSchema { userOrganisationUnit: boolean; userOrganisationUnitChildren: boolean; userOrganisationUnitGrandChildren: boolean; - value: any; + value: unknown; }; fieldPresets: { $all: Preset; @@ -8460,10 +8461,10 @@ export interface D2InterpretationSchema { likedBy: D2UserSchema[]; likes: number; map: D2MapSchema; - mentions: any[]; + mentions: unknown[]; name: string; organisationUnit: D2OrganisationUnitSchema; - period: any; + period: unknown; publicAccess: string; reportTable: D2ReportTableSchema; text: string; @@ -8548,7 +8549,7 @@ export interface D2InterpretationCommentSchema { id: Id; lastUpdated: string; lastUpdatedBy: D2UserSchema; - mentions: any[]; + mentions: unknown[]; name: string; publicAccess: string; text: string; @@ -9014,7 +9015,7 @@ export interface D2MapViewSchema { | "CUSTOM" | "DEFAULT"; areaRadius: number; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueGenericSchema[]; categoryDimensions: D2CategoryDimensionSchema[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; @@ -9024,11 +9025,11 @@ export interface D2MapViewSchema { colorLow: string; colorScale: string; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; config: string; created: string; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; description: string; @@ -9049,7 +9050,7 @@ export interface D2MapViewSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; followUp: boolean; formName: string; hidden: boolean; @@ -9087,7 +9088,7 @@ export interface D2MapViewSchema { parentGraph: string; parentGraphMap: D2MapSchema; parentLevel: number; - periods: any[]; + periods: unknown[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -9095,9 +9096,9 @@ export interface D2MapViewSchema { publicAccess: string; radiusHigh: number; radiusLow: number; - relativePeriods: any; + relativePeriods: unknown; renderingStrategy: "SINGLE" | "SPLIT_BY_PERIOD" | "TIMELINE"; - rows: any[]; + rows: unknown[]; shortName: string; sortOrder: number; startDate: string; @@ -9278,7 +9279,7 @@ export interface D2MessageConversationSchema { lastUpdatedBy: D2UserSchema; messageCount: number; messageType: "PRIVATE" | "SYSTEM" | "VALIDATION_RESULT" | "TICKET"; - messages: any[]; + messages: unknown[]; name: string; priority: "NONE" | "LOW" | "MEDIUM" | "HIGH"; publicAccess: string; @@ -9290,7 +9291,7 @@ export interface D2MessageConversationSchema { userAccesses: D2UserAccessSchema[]; userFirstname: string; userGroupAccesses: D2UserGroupAccessSchema[]; - userMessages: any[]; + userMessages: unknown[]; userSurname: string; }; fieldPresets: { @@ -9717,7 +9718,7 @@ export interface D2OptionGroupSetSchema { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; @@ -10204,7 +10205,7 @@ export interface D2OrganisationUnitGroupSetSchema { href: string; id: Id; includeSubhierarchyInAnalytics: boolean; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; @@ -11005,10 +11006,10 @@ export interface D2ProgramInstanceSchema { program: D2ProgramSchema; programStageInstances: D2ProgramStageInstanceSchema[]; publicAccess: string; - relationshipItems: any[]; + relationshipItems: unknown[]; status: "ACTIVE" | "COMPLETED" | "CANCELLED"; storedBy: string; - trackedEntityComments: any[]; + trackedEntityComments: unknown[]; trackedEntityInstance: D2TrackedEntityInstanceSchema; translations: D2Translation[]; user: D2UserSchema; @@ -11440,7 +11441,7 @@ export interface D2ProgramSectionSchema { name: string; program: D2ProgramSchema; publicAccess: string; - renderType: any; + renderType: unknown; shortName: string; sortOrder: number; style: D2Style; @@ -11668,7 +11669,7 @@ export interface D2ProgramStageDataElementSchema { programStage: D2ProgramStageSchema; publicAccess: string; renderOptionsAsRadio: boolean; - renderType: any; + renderType: unknown; skipSynchronization: boolean; sortOrder: number; translations: D2Translation[]; @@ -11728,18 +11729,18 @@ export interface D2ProgramStageInstanceSchema { attributeOptionCombo: D2CategoryOptionComboSchema; attributeValues: D2AttributeValueGenericSchema[]; code: Id; - comments: any[]; + comments: unknown[]; completed: boolean; completedBy: string; completedDate: string; creatableInSearchScope: boolean; created: string; createdAtClient: string; - createdByUserInfo: any; + createdByUserInfo: unknown; deleted: boolean; displayName: string; dueDate: string; - eventDataValues: any[]; + eventDataValues: unknown[]; eventDate: string; externalAccess: boolean; favorite: boolean; @@ -11750,14 +11751,14 @@ export interface D2ProgramStageInstanceSchema { lastUpdated: string; lastUpdatedAtClient: string; lastUpdatedBy: D2UserSchema; - lastUpdatedByUserInfo: any; + lastUpdatedByUserInfo: unknown; messageConversations: D2MessageConversationSchema[]; name: string; organisationUnit: D2OrganisationUnitSchema; programInstance: D2ProgramInstanceSchema; programStage: D2ProgramStageSchema; publicAccess: string; - relationshipItems: any[]; + relationshipItems: unknown[]; status: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; storedBy: string; translations: D2Translation[]; @@ -11838,7 +11839,7 @@ export interface D2ProgramStageInstanceFilterSchema { description: string; displayDescription: string; displayName: string; - eventQueryCriteria: any; + eventQueryCriteria: unknown; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -11922,7 +11923,7 @@ export interface D2ProgramStageSectionSchema { programIndicators: D2ProgramIndicatorSchema[]; programStage: D2ProgramStageSchema; publicAccess: string; - renderType: any; + renderType: unknown; shortName: string; sortOrder: number; style: D2Style; @@ -11999,7 +12000,7 @@ export interface D2ProgramTrackedEntityAttributeSchema { programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroupSchema[]; publicAccess: string; renderOptionsAsRadio: boolean; - renderType: any; + renderType: unknown; searchable: boolean; sortOrder: number; trackedEntityAttribute: D2TrackedEntityAttributeSchema; @@ -12305,7 +12306,7 @@ export interface D2RelationshipSchema { favorite: boolean; favorites: string[]; formName: string; - from: any; + from: unknown; href: string; id: Id; lastUpdated: string; @@ -12315,7 +12316,7 @@ export interface D2RelationshipSchema { relationshipType: D2RelationshipTypeSchema; shortName: string; style: D2Style; - to: any; + to: unknown; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -12464,7 +12465,7 @@ export interface D2ReportSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - relativePeriods: any; + relativePeriods: unknown; reportParams: D2ReportingParams; translations: D2Translation[]; type: "JASPER_REPORT_TABLE" | "JASPER_JDBC" | "HTML"; @@ -12545,7 +12546,7 @@ export interface D2ReportTableSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueGenericSchema[]; categoryDimensions: D2CategoryDimensionSchema[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; @@ -12553,11 +12554,11 @@ export interface D2ReportTableSchema { colSubTotals: boolean; colTotals: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; cumulative: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; description: string; @@ -12574,7 +12575,7 @@ export interface D2ReportTableSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; formName: string; hideEmptyColumns: boolean; @@ -12598,16 +12599,16 @@ export interface D2ReportTableSchema { organisationUnitLevels: number[]; organisationUnits: D2OrganisationUnitSchema[]; parentGraphMap: D2MapSchema; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; regression: boolean; - relativePeriods: any; - reportParams: any; + relativePeriods: unknown; + reportParams: unknown; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; + rows: unknown[]; shortName: string; showDimensionLabels: boolean; showHierarchy: boolean; @@ -12757,8 +12758,8 @@ export interface D2SMSCommandSchema { publicAccess: string; receivedMessage: string; separator: string; - smsCodes: any[]; - specialCharacters: any[]; + smsCodes: unknown[]; + specialCharacters: unknown[]; successMessage: string; translations: D2Translation[]; user: D2UserSchema; @@ -13242,9 +13243,9 @@ export interface D2TrackedEntityInstanceSchema { name: string; organisationUnit: D2OrganisationUnitSchema; programInstances: D2ProgramInstanceSchema[]; - programOwners: any[]; + programOwners: unknown[]; publicAccess: string; - relationshipItems: any[]; + relationshipItems: unknown[]; storedBy: string; trackedEntityAttributeValues: D2TrackedEntityAttributeValueSchema[]; trackedEntityType: D2TrackedEntityTypeSchema; @@ -13262,8 +13263,8 @@ export interface D2TrackedEntityInstanceSchema { | "programOwners" | "code" | "storedBy" - | "programInstances" | "organisationUnit" + | "programInstances" | "createdAtClient" | "lastUpdated" | "inactive" @@ -13307,9 +13308,9 @@ export interface D2TrackedEntityInstanceFilterSchema { description: string; displayDescription: string; displayName: string; - enrollmentCreatedPeriod: any; + enrollmentCreatedPeriod: unknown; enrollmentStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; - eventFilters: any[]; + eventFilters: unknown[]; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -14033,7 +14034,7 @@ export interface D2ValidationResultSchema { leftsideValue: number; notificationSent: boolean; organisationUnit: D2OrganisationUnitSchema; - period: any; + period: unknown; rightsideValue: number; validationRule: D2ValidationRuleSchema; }; @@ -14284,7 +14285,7 @@ export interface D2VisualizationSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueGenericSchema[]; baseLineLabel: string; baseLineValue: number; @@ -14295,11 +14296,11 @@ export interface D2VisualizationSchema { colTotals: boolean; colorSet: string; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; description: string; @@ -14321,9 +14322,9 @@ export interface D2VisualizationSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; - fontStyle: any; + fontStyle: unknown; formName: string; hideEmptyColumns: boolean; hideEmptyRowItems: @@ -14356,7 +14357,7 @@ export interface D2VisualizationSchema { organisationUnits: D2OrganisationUnitSchema[]; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; rangeAxisDecimals: number; @@ -14366,13 +14367,13 @@ export interface D2VisualizationSchema { rangeAxisSteps: number; regression: boolean; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; + relativePeriods: unknown; reportingParams: D2ReportingParams; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; - series: any[]; + rows: unknown[]; + series: unknown[]; shortName: string; showData: boolean; showDimensionLabels: boolean; @@ -14825,13 +14826,13 @@ export const models: Record = { propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User", }, - { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, { name: "analyticsPeriodBoundaryType", fieldName: "analyticsPeriodBoundaryType", propertyType: "CONSTANT", klass: "org.hisp.dhis.program.AnalyticsPeriodBoundaryType", }, + { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, { name: "boundaryTarget", fieldName: "boundaryTarget", @@ -17233,18 +17234,18 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "java.lang.String", }, - { - name: "access", - fieldName: "access", - propertyType: "COMPLEX", - klass: "org.hisp.dhis.security.acl.Access", - }, { name: "code", fieldName: "code", propertyType: "IDENTIFIER", klass: "java.lang.String", }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, { name: "displayName", fieldName: "displayName", @@ -17295,8 +17296,8 @@ export const models: Record = { propertyType: "TEXT", klass: "java.lang.String", }, - { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "value", fieldName: "value", @@ -17728,12 +17729,12 @@ export const models: Record = { propertyType: "BOOLEAN", klass: "java.lang.Boolean", }, - { name: "y", fieldName: "y", propertyType: "INTEGER", klass: "java.lang.Integer" }, { name: "interpretationLikeCount", propertyType: "INTEGER", klass: "java.lang.Integer", }, + { name: "y", fieldName: "y", propertyType: "INTEGER", klass: "java.lang.Integer" }, { name: "user", fieldName: "user", @@ -27392,18 +27393,18 @@ export const models: Record = { propertyType: "IDENTIFIER", klass: "java.lang.String", }, - { - name: "storedBy", - fieldName: "storedBy", - propertyType: "TEXT", - klass: "java.lang.String", - }, { name: "access", fieldName: "access", propertyType: "COMPLEX", klass: "org.hisp.dhis.security.acl.Access", }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, { name: "endDate", fieldName: "endDate", @@ -28999,18 +29000,18 @@ export const models: Record = { propertyType: "IDENTIFIER", klass: "java.lang.String", }, - { - name: "storedBy", - fieldName: "storedBy", - propertyType: "TEXT", - klass: "java.lang.String", - }, { name: "access", fieldName: "access", propertyType: "COMPLEX", klass: "org.hisp.dhis.security.acl.Access", }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, { name: "organisationUnit", fieldName: "organisationUnit", @@ -32417,6 +32418,12 @@ export const models: Record = { propertyType: "IDENTIFIER", klass: "java.lang.String", }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, { name: "access", fieldName: "access", @@ -32424,10 +32431,10 @@ export const models: Record = { klass: "org.hisp.dhis.security.acl.Access", }, { - name: "storedBy", - fieldName: "storedBy", - propertyType: "TEXT", - klass: "java.lang.String", + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", }, { name: "programInstance", @@ -32437,12 +32444,6 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "org.hisp.dhis.program.ProgramInstance", }, - { - name: "organisationUnit", - fieldName: "organisationUnit", - propertyType: "REFERENCE", - klass: "org.hisp.dhis.organisationunit.OrganisationUnit", - }, { name: "displayName", fieldName: "displayName", @@ -32995,18 +32996,18 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "java.lang.String", }, - { - name: "access", - fieldName: "access", - propertyType: "COMPLEX", - klass: "org.hisp.dhis.security.acl.Access", - }, { name: "code", fieldName: "code", propertyType: "IDENTIFIER", klass: "java.lang.String", }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, { name: "displayName", fieldName: "displayName", @@ -33057,8 +33058,8 @@ export const models: Record = { propertyType: "CONSTANT", klass: "org.hisp.dhis.common.ValueType", }, - { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "lastUpdatedBy", fieldName: "lastUpdatedBy", diff --git a/src/2.36/schemas.ts b/src/2.36/schemas.ts index dc335e5..2cffb80 100644 --- a/src/2.36/schemas.ts +++ b/src/2.36/schemas.ts @@ -14,6 +14,7 @@ import { D2RelationshipConstraint, D2ReportingParams, D2Axis, + Sharing, D2AttributeValueGeneric, D2AttributeValueGenericSchema, } from "../schemas/base"; @@ -42,7 +43,7 @@ export type D2AnalyticsPeriodBoundary = { offsetPeriodType: string; offsetPeriods: number; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -88,7 +89,7 @@ export type D2AnalyticsTableHook = { | "DATA_ELEMENT_CATEGORY_OPTION_COMBO" | "DATA_APPROVAL_REMAP_LEVEL" | "DATA_APPROVAL_MIN_LEVEL"; - sharing: any; + sharing: Sharing; sql: string; translations: D2Translation[]; user: D2User; @@ -142,7 +143,7 @@ export type D2Attribute = { programStageAttribute: boolean; publicAccess: string; sectionAttribute: boolean; - sharing: any; + sharing: Sharing; shortName: string; sortOrder: number; sqlViewAttribute: boolean; @@ -252,14 +253,14 @@ export type D2Category = { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; name: string; programStage: D2ProgramStage; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -287,7 +288,7 @@ export type D2CategoryCombo = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; skipTotal: boolean; translations: D2Translation[]; user: D2User; @@ -297,7 +298,7 @@ export type D2CategoryCombo = { export type D2CategoryDimension = { category: D2Category; - categoryOptions: any; + categoryOptions: unknown; }; export type D2CategoryOption = { @@ -364,7 +365,7 @@ export type D2CategoryOption = { organisationUnits: D2OrganisationUnit[]; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; startDate: string; style: D2Style; @@ -435,7 +436,7 @@ export type D2CategoryOptionCombo = { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -504,7 +505,7 @@ export type D2CategoryOptionGroup = { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -573,14 +574,14 @@ export type D2CategoryOptionGroupSet = { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; name: string; programStage: D2ProgramStage; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -590,7 +591,7 @@ export type D2CategoryOptionGroupSet = { export type D2CategoryOptionGroupSetDimension = { categoryOptionGroupSet: D2CategoryOptionGroupSet; - categoryOptionGroups: any; + categoryOptionGroups: unknown; }; export type D2Chart = { @@ -613,7 +614,7 @@ export type D2Chart = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValue[]; baseLineLabel: string; baseLineValue: number; @@ -621,12 +622,12 @@ export type D2Chart = { categoryDimensions: D2CategoryDimension[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; code: Id; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; createdBy: D2User; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; description: string; @@ -647,7 +648,7 @@ export type D2Chart = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; formName: string; hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; hideLegend: boolean; @@ -669,7 +670,7 @@ export type D2Chart = { organisationUnits: D2OrganisationUnit[]; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; rangeAxisDecimals: number; @@ -678,11 +679,11 @@ export type D2Chart = { rangeAxisMinValue: number; rangeAxisSteps: number; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; - rows: any[]; + relativePeriods: unknown; + rows: unknown[]; series: string; - seriesItems: any[]; - sharing: any; + seriesItems: unknown[]; + sharing: Sharing; shortName: string; showData: boolean; sortOrder: number; @@ -743,7 +744,7 @@ export type D2Constant = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -777,7 +778,7 @@ export type D2Dashboard = { name: string; publicAccess: string; restrictFilters: boolean; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -815,7 +816,7 @@ export type D2DashboardItem = { reports: D2Report[]; resources: D2Document[]; shape: "NORMAL" | "DOUBLE_WIDTH" | "FULL_WIDTH"; - sharing: any; + sharing: Sharing; text: string; translations: D2Translation[]; type: @@ -861,7 +862,7 @@ export type D2DataApprovalLevel = { orgUnitLevel: number; orgUnitLevelName: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -888,7 +889,7 @@ export type D2DataApprovalWorkflow = { name: string; periodType: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -962,7 +963,7 @@ export type D2DataElement = { optionSetValue: boolean; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; translations: D2Translation[]; @@ -996,7 +997,7 @@ export type D2DataElement = { | "URL" | "FILE_RESOURCE" | "IMAGE"; - valueTypeOptions: any; + valueTypeOptions: unknown; zeroIsSignificant: boolean; }; @@ -1060,7 +1061,7 @@ export type D2DataElementGroup = { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -1130,14 +1131,14 @@ export type D2DataElementGroupSet = { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; name: string; programStage: D2ProgramStage; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -1147,7 +1148,7 @@ export type D2DataElementGroupSet = { export type D2DataElementGroupSetDimension = { dataElementGroupSet: D2DataElementGroupSet; - dataElementGroups: any; + dataElementGroups: unknown; }; export type D2DataElementOperand = { @@ -1211,7 +1212,7 @@ export type D2DataElementOperand = { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -1237,7 +1238,7 @@ export type D2DataEntryForm = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; style: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; translations: D2Translation[]; user: D2User; @@ -1248,7 +1249,7 @@ export type D2DataEntryForm = { export type D2DataInputPeriod = { closingDate: string; openingDate: string; - period: any; + period: unknown; }; export type D2DataSet = { @@ -1332,7 +1333,7 @@ export type D2DataSet = { renderAsTabs: boolean; renderHorizontally: boolean; sections: D2Section[]; - sharing: any; + sharing: Sharing; shortName: string; skipOffline: boolean; style: D2Style; @@ -1380,7 +1381,7 @@ export type D2DataSetNotificationTemplate = { recipientUserGroup: D2UserGroup; relativeScheduledDays: number; sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; - sharing: any; + sharing: Sharing; subjectTemplate: string; translations: D2Translation[]; user: D2User; @@ -1407,7 +1408,7 @@ export type D2Document = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; url: string; user: D2User; @@ -1435,7 +1436,7 @@ export type D2EventChart = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValueDimension: D2TrackedEntityAttribute; attributeValues: D2AttributeValue[]; baseLineLabel: string; @@ -1445,12 +1446,12 @@ export type D2EventChart = { code: Id; collapseDataDimensions: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; createdBy: D2User; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; dataElementValueDimension: D2DataElement; @@ -1473,7 +1474,7 @@ export type D2EventChart = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; formName: string; hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; hideLegend: boolean; @@ -1497,7 +1498,7 @@ export type D2EventChart = { outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -1509,10 +1510,10 @@ export type D2EventChart = { rangeAxisMinValue: number; rangeAxisSteps: number; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; + relativePeriods: unknown; rowDimensions: string[]; - rows: any[]; - sharing: any; + rows: unknown[]; + sharing: Sharing; shortName: string; showData: boolean; sortOrder: number; @@ -1549,7 +1550,7 @@ export type D2EventChart = { userOrganisationUnit: boolean; userOrganisationUnitChildren: boolean; userOrganisationUnitGrandChildren: boolean; - value: any; + value: unknown; yearlySeries: string[]; }; @@ -1573,7 +1574,7 @@ export type D2EventReport = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValueDimension: D2TrackedEntityAttribute; attributeValues: D2AttributeValue[]; categoryDimensions: D2CategoryDimension[]; @@ -1583,11 +1584,11 @@ export type D2EventReport = { colTotals: boolean; collapseDataDimensions: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; createdBy: D2User; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; dataElementValueDimension: D2DataElement; @@ -1607,7 +1608,7 @@ export type D2EventReport = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; formName: string; hideEmptyRows: boolean; @@ -1627,18 +1628,18 @@ export type D2EventReport = { organisationUnits: D2OrganisationUnit[]; outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2Map; - periods: any[]; + periods: unknown[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; publicAccess: string; - relativePeriods: any; + relativePeriods: unknown; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; - sharing: any; + rows: unknown[]; + sharing: Sharing; shortName: string; showDimensionLabels: boolean; showHierarchy: boolean; @@ -1658,7 +1659,7 @@ export type D2EventReport = { userOrganisationUnit: boolean; userOrganisationUnitChildren: boolean; userOrganisationUnitGrandChildren: boolean; - value: any; + value: unknown; }; export type D2Expression = { @@ -1687,7 +1688,7 @@ export type D2ExternalFileResource = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -1717,7 +1718,7 @@ export type D2ExternalMapLayer = { mapService: "WMS" | "TMS" | "XYZ"; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; url: string; user: D2User; @@ -1746,7 +1747,7 @@ export type D2FileResource = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; storageStatus: "NONE" | "PENDING" | "FAILED" | "STORED"; translations: D2Translation[]; user: D2User; @@ -1827,7 +1828,7 @@ export type D2Indicator = { numeratorDescription: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; translations: D2Translation[]; @@ -1856,7 +1857,7 @@ export type D2IndicatorGroup = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -1882,7 +1883,7 @@ export type D2IndicatorGroupSet = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -1907,7 +1908,7 @@ export type D2IndicatorType = { name: string; number: boolean; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -1936,13 +1937,13 @@ export type D2Interpretation = { likedBy: D2User[]; likes: number; map: D2Map; - mentions: any[]; + mentions: unknown[]; name: string; organisationUnit: D2OrganisationUnit; - period: any; + period: unknown; publicAccess: string; reportTable: D2ReportTable; - sharing: any; + sharing: Sharing; text: string; translations: D2Translation[]; type: @@ -1973,10 +1974,10 @@ export type D2InterpretationComment = { id: Id; lastUpdated: string; lastUpdatedBy: D2User; - mentions: any[]; + mentions: unknown[]; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; text: string; translations: D2Translation[]; user: D2User; @@ -2000,7 +2001,7 @@ export type D2JobConfiguration = { favorites: string[]; href: string; id: Id; - jobParameters: any; + jobParameters: unknown; jobStatus: | "RUNNING" | "COMPLETED" @@ -2065,7 +2066,7 @@ export type D2JobConfiguration = { nextExecutionTime: string; publicAccess: string; schedulingType: "CRON" | "FIXED_DELAY"; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -2091,7 +2092,7 @@ export type D2KeyJsonValue = { name: string; namespace: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -2118,7 +2119,7 @@ export type D2Legend = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; startValue: number; translations: D2Translation[]; user: D2User; @@ -2143,7 +2144,7 @@ export type D2LegendSet = { legends: D2Legend[]; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; symbolizer: string; translations: D2Translation[]; user: D2User; @@ -2177,7 +2178,7 @@ export type D2Map = { mapViews: D2MapView[]; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; subscribed: boolean; subscribers: string[]; @@ -2210,7 +2211,7 @@ export type D2MapView = { | "CUSTOM" | "DEFAULT"; areaRadius: number; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValue[]; categoryDimensions: D2CategoryDimension[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; @@ -2220,12 +2221,12 @@ export type D2MapView = { colorLow: string; colorScale: string; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; config: string; created: string; createdBy: D2User; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; description: string; @@ -2246,7 +2247,7 @@ export type D2MapView = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; followUp: boolean; formName: string; hidden: boolean; @@ -2284,7 +2285,7 @@ export type D2MapView = { parentGraph: string; parentGraphMap: D2Map; parentLevel: number; - periods: any[]; + periods: unknown[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -2292,10 +2293,10 @@ export type D2MapView = { publicAccess: string; radiusHigh: number; radiusLow: number; - relativePeriods: any; + relativePeriods: unknown; renderingStrategy: "SINGLE" | "SPLIT_BY_PERIOD" | "TIMELINE"; - rows: any[]; - sharing: any; + rows: unknown[]; + sharing: Sharing; shortName: string; sortOrder: number; startDate: string; @@ -2340,12 +2341,12 @@ export type D2MessageConversation = { lastUpdatedBy: D2User; messageCount: number; messageType: "PRIVATE" | "SYSTEM" | "VALIDATION_RESULT" | "TICKET"; - messages: any[]; + messages: unknown[]; name: string; priority: "NONE" | "LOW" | "MEDIUM" | "HIGH"; publicAccess: string; read: boolean; - sharing: any; + sharing: Sharing; status: "NONE" | "OPEN" | "PENDING" | "INVALID" | "SOLVED"; subject: string; translations: D2Translation[]; @@ -2353,7 +2354,7 @@ export type D2MessageConversation = { userAccesses: D2UserAccess[]; userFirstname: string; userGroupAccesses: D2UserGroupAccess[]; - userMessages: any[]; + userMessages: unknown[]; userSurname: string; }; @@ -2375,7 +2376,7 @@ export type D2MetadataVersion = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; type: "BEST_EFFORT" | "ATOMIC"; user: D2User; @@ -2412,7 +2413,7 @@ export type D2OAuth2Client = { publicAccess: string; redirectUris: string[]; secret: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -2441,7 +2442,7 @@ export type D2Option = { name: string; optionSet: D2OptionSet; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; sortOrder: number; style: D2Style; @@ -2511,7 +2512,7 @@ export type D2OptionGroup = { options: D2Option[]; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -2579,7 +2580,7 @@ export type D2OptionGroupSet = { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; @@ -2588,7 +2589,7 @@ export type D2OptionGroupSet = { optionSet: D2OptionSet; programStage: D2ProgramStage; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -2613,7 +2614,7 @@ export type D2OptionSet = { name: string; options: D2Option[]; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -2704,7 +2705,7 @@ export type D2OrganisationUnit = { favorite: boolean; favorites: string[]; formName: string; - geometry: any; + geometry: unknown; href: string; id: Id; lastUpdated: string; @@ -2723,7 +2724,7 @@ export type D2OrganisationUnit = { phoneNumber: string; programs: D2Program[]; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; type: string; @@ -2785,7 +2786,7 @@ export type D2OrganisationUnitGroup = { favorites: string[]; featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; formName: string; - geometry: any; + geometry: unknown; groupSets: D2OrganisationUnitGroupSet[]; href: string; id: Id; @@ -2797,7 +2798,7 @@ export type D2OrganisationUnitGroup = { organisationUnits: D2OrganisationUnit[]; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; symbol: string; translations: D2Translation[]; @@ -2868,7 +2869,7 @@ export type D2OrganisationUnitGroupSet = { href: string; id: Id; includeSubhierarchyInAnalytics: boolean; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; @@ -2876,7 +2877,7 @@ export type D2OrganisationUnitGroupSet = { organisationUnitGroups: D2OrganisationUnitGroup[]; programStage: D2ProgramStage; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -2886,7 +2887,7 @@ export type D2OrganisationUnitGroupSet = { export type D2OrganisationUnitGroupSetDimension = { organisationUnitGroupSet: D2OrganisationUnitGroupSet; - organisationUnitGroups: any; + organisationUnitGroups: unknown; }; export type D2OrganisationUnitLevel = { @@ -2907,7 +2908,7 @@ export type D2OrganisationUnitLevel = { name: string; offlineLevels: number; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -2945,7 +2946,7 @@ export type D2Predictor = { sampleSkipTest: D2Expression; sequentialSampleCount: number; sequentialSkipCount: number; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -2971,7 +2972,7 @@ export type D2PredictorGroup = { name: string; predictors: D2Predictor[]; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -3028,7 +3029,7 @@ export type D2Program = { relatedProgram: D2Program; selectEnrollmentDatesInFuture: boolean; selectIncidentDatesInFuture: boolean; - sharing: any; + sharing: Sharing; shortName: string; skipOffline: boolean; style: D2Style; @@ -3103,7 +3104,7 @@ export type D2ProgramDataElementDimensionItem = { periodOffset: number; program: D2Program; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -3205,7 +3206,7 @@ export type D2ProgramIndicator = { program: D2Program; programIndicatorGroups: D2ProgramIndicatorGroup[]; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; translations: D2Translation[]; @@ -3232,7 +3233,7 @@ export type D2ProgramIndicatorGroup = { name: string; programIndicators: D2ProgramIndicator[]; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -3255,7 +3256,7 @@ export type D2ProgramInstance = { favorite: boolean; favorites: string[]; followup: boolean; - geometry: any; + geometry: unknown; href: string; id: Id; incidentDate: string; @@ -3268,11 +3269,11 @@ export type D2ProgramInstance = { program: D2Program; programStageInstances: D2ProgramStageInstance[]; publicAccess: string; - relationshipItems: any[]; - sharing: any; + relationshipItems: unknown[]; + sharing: Sharing; status: "ACTIVE" | "COMPLETED" | "CANCELLED"; storedBy: string; - trackedEntityComments: any[]; + trackedEntityComments: unknown[]; trackedEntityInstance: D2TrackedEntityInstance; translations: D2Translation[]; user: D2User; @@ -3320,7 +3321,7 @@ export type D2ProgramNotificationTemplate = { recipientProgramAttribute: D2TrackedEntityAttribute; recipientUserGroup: D2UserGroup; relativeScheduledDays: number; - sharing: any; + sharing: Sharing; subjectTemplate: string; translations: D2Translation[]; user: D2User; @@ -3350,7 +3351,7 @@ export type D2ProgramRule = { programRuleActions: D2ProgramRuleAction[]; programStage: D2ProgramStage; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -3404,7 +3405,7 @@ export type D2ProgramRuleAction = { programStage: D2ProgramStage; programStageSection: D2ProgramStageSection; publicAccess: string; - sharing: any; + sharing: Sharing; templateUid: string; trackedEntityAttribute: D2TrackedEntityAttribute; translations: D2Translation[]; @@ -3439,7 +3440,7 @@ export type D2ProgramRuleVariable = { | "TEI_ATTRIBUTE"; programStage: D2ProgramStage; publicAccess: string; - sharing: any; + sharing: Sharing; trackedEntityAttribute: D2TrackedEntityAttribute; translations: D2Translation[]; useCodeForOptionSet: boolean; @@ -3470,8 +3471,8 @@ export type D2ProgramSection = { name: string; program: D2Program; publicAccess: string; - renderType: any; - sharing: any; + renderType: unknown; + sharing: Sharing; shortName: string; sortOrder: number; style: D2Style; @@ -3529,7 +3530,7 @@ export type D2ProgramStage = { remindCompleted: boolean; repeatable: boolean; reportDateToUse: string; - sharing: any; + sharing: Sharing; shortName: string; sortOrder: number; standardInterval: number; @@ -3564,8 +3565,8 @@ export type D2ProgramStageDataElement = { programStage: D2ProgramStage; publicAccess: string; renderOptionsAsRadio: boolean; - renderType: any; - sharing: any; + renderType: unknown; + sharing: Sharing; skipSynchronization: boolean; sortOrder: number; translations: D2Translation[]; @@ -3580,7 +3581,7 @@ export type D2ProgramStageInstance = { attributeOptionCombo: D2CategoryOptionCombo; attributeValues: D2AttributeValue[]; code: Id; - comments: any[]; + comments: unknown[]; completed: boolean; completedBy: string; completedDate: string; @@ -3588,30 +3589,30 @@ export type D2ProgramStageInstance = { created: string; createdAtClient: string; createdBy: D2User; - createdByUserInfo: any; + createdByUserInfo: unknown; deleted: boolean; displayName: string; dueDate: string; - eventDataValues: any[]; + eventDataValues: unknown[]; eventDate: string; externalAccess: boolean; favorite: boolean; favorites: string[]; - geometry: any; + geometry: unknown; href: string; id: Id; lastUpdated: string; lastUpdatedAtClient: string; lastUpdatedBy: D2User; - lastUpdatedByUserInfo: any; + lastUpdatedByUserInfo: unknown; messageConversations: D2MessageConversation[]; name: string; organisationUnit: D2OrganisationUnit; programInstance: D2ProgramInstance; programStage: D2ProgramStage; publicAccess: string; - relationshipItems: any[]; - sharing: any; + relationshipItems: unknown[]; + sharing: Sharing; status: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; storedBy: string; translations: D2Translation[]; @@ -3629,7 +3630,7 @@ export type D2ProgramStageInstanceFilter = { description: string; displayDescription: string; displayName: string; - eventQueryCriteria: any; + eventQueryCriteria: unknown; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -3641,7 +3642,7 @@ export type D2ProgramStageInstanceFilter = { program: Id; programStage: Id; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -3672,8 +3673,8 @@ export type D2ProgramStageSection = { programIndicators: D2ProgramIndicator[]; programStage: D2ProgramStage; publicAccess: string; - renderType: any; - sharing: any; + renderType: unknown; + sharing: Sharing; shortName: string; sortOrder: number; style: D2Style; @@ -3706,9 +3707,9 @@ export type D2ProgramTrackedEntityAttribute = { programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroup[]; publicAccess: string; renderOptionsAsRadio: boolean; - renderType: any; + renderType: unknown; searchable: boolean; - sharing: any; + sharing: Sharing; sortOrder: number; trackedEntityAttribute: D2TrackedEntityAttribute; translations: D2Translation[]; @@ -3803,7 +3804,7 @@ export type D2ProgramTrackedEntityAttributeDimensionItem = { periodOffset: number; program: D2Program; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -3833,7 +3834,7 @@ export type D2ProgramTrackedEntityAttributeGroup = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; uniqunessType: "NONE" | "STRICT" | "VALIDATION"; @@ -3861,7 +3862,7 @@ export type D2PushAnalysis = { name: string; publicAccess: string; recipientUserGroups: D2UserGroup[]; - sharing: any; + sharing: Sharing; title: string; translations: D2Translation[]; user: D2User; @@ -3884,7 +3885,7 @@ export type D2Relationship = { favorite: boolean; favorites: string[]; formName: string; - from: any; + from: unknown; href: string; id: Id; lastUpdated: string; @@ -3892,10 +3893,10 @@ export type D2Relationship = { name: string; publicAccess: string; relationshipType: D2RelationshipType; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; - to: any; + to: unknown; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -3924,7 +3925,7 @@ export type D2RelationshipType = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; toConstraint: D2RelationshipConstraint; toFromName: string; translations: D2Translation[]; @@ -3961,9 +3962,9 @@ export type D2Report = { lastUpdatedBy: D2User; name: string; publicAccess: string; - relativePeriods: any; + relativePeriods: unknown; reportParams: D2ReportingParams; - sharing: any; + sharing: Sharing; translations: D2Translation[]; type: "JASPER_REPORT_TABLE" | "JASPER_JDBC" | "HTML"; user: D2User; @@ -3992,7 +3993,7 @@ export type D2ReportTable = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValue[]; categoryDimensions: D2CategoryDimension[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; @@ -4000,12 +4001,12 @@ export type D2ReportTable = { colSubTotals: boolean; colTotals: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; createdBy: D2User; cumulative: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; description: string; @@ -4022,7 +4023,7 @@ export type D2ReportTable = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; formName: string; hideEmptyColumns: boolean; @@ -4046,17 +4047,17 @@ export type D2ReportTable = { organisationUnitLevels: number[]; organisationUnits: D2OrganisationUnit[]; parentGraphMap: D2Map; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; regression: boolean; - relativePeriods: any; - reportParams: any; + relativePeriods: unknown; + reportParams: unknown; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; - sharing: any; + rows: unknown[]; + sharing: Sharing; shortName: string; showDimensionLabels: boolean; showHierarchy: boolean; @@ -4144,7 +4145,7 @@ export type D2ReportingRate = { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -4187,9 +4188,9 @@ export type D2SMSCommand = { publicAccess: string; receivedMessage: string; separator: string; - sharing: any; - smsCodes: any[]; - specialCharacters: any[]; + sharing: Sharing; + smsCodes: unknown[]; + specialCharacters: unknown[]; successMessage: string; translations: D2Translation[]; user: D2User; @@ -4221,7 +4222,7 @@ export type D2Section = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; showColumnTotals: boolean; showRowTotals: boolean; sortOrder: number; @@ -4259,7 +4260,7 @@ export type D2SqlView = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; sqlQuery: string; translations: D2Translation[]; type: "VIEW" | "MATERIALIZED_VIEW" | "QUERY"; @@ -4337,7 +4338,7 @@ export type D2TrackedEntityAttribute = { pattern: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; skipSynchronization: boolean; sortOrderInListNoProgram: number; @@ -4404,7 +4405,7 @@ export type D2TrackedEntityInstance = { externalAccess: boolean; favorite: boolean; favorites: string[]; - geometry: any; + geometry: unknown; href: string; id: Id; inactive: boolean; @@ -4414,10 +4415,10 @@ export type D2TrackedEntityInstance = { name: string; organisationUnit: D2OrganisationUnit; programInstances: D2ProgramInstance[]; - programOwners: any[]; + programOwners: unknown[]; publicAccess: string; - relationshipItems: any[]; - sharing: any; + relationshipItems: unknown[]; + sharing: Sharing; storedBy: string; trackedEntityAttributeValues: D2TrackedEntityAttributeValue[]; trackedEntityType: D2TrackedEntityType; @@ -4436,9 +4437,9 @@ export type D2TrackedEntityInstanceFilter = { description: string; displayDescription: string; displayName: string; - enrollmentCreatedPeriod: any; + enrollmentCreatedPeriod: unknown; enrollmentStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; - eventFilters: any[]; + eventFilters: unknown[]; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -4450,7 +4451,7 @@ export type D2TrackedEntityInstanceFilter = { name: string; program: D2Program; publicAccess: string; - sharing: any; + sharing: Sharing; sortOrder: number; style: D2Style; translations: D2Translation[]; @@ -4490,7 +4491,7 @@ export type D2TrackedEntityType = { minAttributesRequiredToSearch: number; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; trackedEntityTypeAttributes: D2TrackedEntityTypeAttribute[]; @@ -4520,7 +4521,7 @@ export type D2TrackedEntityTypeAttribute = { name: string; publicAccess: string; searchable: boolean; - sharing: any; + sharing: Sharing; trackedEntityAttribute: D2TrackedEntityAttribute; trackedEntityType: D2TrackedEntityType; translations: D2Translation[]; @@ -4588,7 +4589,7 @@ export type D2User = { organisationUnits: D2OrganisationUnit[]; phoneNumber: string; publicAccess: string; - sharing: any; + sharing: Sharing; skype: string; surname: string; teiSearchOrganisationUnits: D2OrganisationUnit[]; @@ -4629,7 +4630,7 @@ export type D2UserAuthorityGroup = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -4665,7 +4666,7 @@ export type D2UserCredentials = { passwordLastUpdated: string; publicAccess: string; selfRegistered: boolean; - sharing: any; + sharing: Sharing; translations: D2Translation[]; twoFA: boolean; user: D2User; @@ -4694,7 +4695,7 @@ export type D2UserGroup = { managedGroups: D2UserGroup[]; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -4732,7 +4733,7 @@ export type D2ValidationNotificationTemplate = { publicAccess: string; recipientUserGroups: D2UserGroup[]; sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; - sharing: any; + sharing: Sharing; subjectTemplate: string; translations: D2Translation[]; user: D2User; @@ -4749,7 +4750,7 @@ export type D2ValidationResult = { leftsideValue: number; notificationSent: boolean; organisationUnit: D2OrganisationUnit; - period: any; + period: unknown; rightsideValue: number; validationRule: D2ValidationRule; }; @@ -4831,7 +4832,7 @@ export type D2ValidationRule = { periodType: string; publicAccess: string; rightSide: D2Expression; - sharing: any; + sharing: Sharing; shortName: string; skipFormValidation: boolean; translations: D2Translation[]; @@ -4858,7 +4859,7 @@ export type D2ValidationRuleGroup = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -4886,9 +4887,9 @@ export type D2Visualization = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValue[]; - axes: any[]; + axes: unknown[]; baseLineLabel: string; baseLineValue: number; categoryDimensions: D2CategoryDimension[]; @@ -4898,12 +4899,12 @@ export type D2Visualization = { colTotals: boolean; colorSet: string; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; createdBy: D2User; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; description: string; @@ -4925,9 +4926,9 @@ export type D2Visualization = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; - fontStyle: any; + fontStyle: unknown; formName: string; hideEmptyColumns: boolean; hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; @@ -4941,7 +4942,7 @@ export type D2Visualization = { itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; lastUpdated: string; lastUpdatedBy: D2User; - legend: any; + legend: unknown; legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; legendDisplayStyle: "FILL" | "TEXT"; legendSet: D2LegendSet; @@ -4954,10 +4955,10 @@ export type D2Visualization = { organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; organisationUnitLevels: number[]; organisationUnits: D2OrganisationUnit[]; - outlierAnalysis: any; + outlierAnalysis: unknown; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; rangeAxisDecimals: number; @@ -4967,14 +4968,14 @@ export type D2Visualization = { rangeAxisSteps: number; regression: boolean; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; + relativePeriods: unknown; reportingParams: D2ReportingParams; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; - series: any[]; - sharing: any; + rows: unknown[]; + series: unknown[]; + sharing: Sharing; shortName: string; showData: boolean; showDimensionLabels: boolean; @@ -5046,7 +5047,7 @@ export interface D2AnalyticsPeriodBoundarySchema { offsetPeriodType: string; offsetPeriods: number; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -5125,7 +5126,7 @@ export interface D2AnalyticsTableHookSchema { | "DATA_ELEMENT_CATEGORY_OPTION_COMBO" | "DATA_APPROVAL_REMAP_LEVEL" | "DATA_APPROVAL_MIN_LEVEL"; - sharing: any; + sharing: Sharing; sql: string; translations: D2Translation[]; user: D2UserSchema; @@ -5214,7 +5215,7 @@ export interface D2AttributeSchema { programStageAttribute: boolean; publicAccess: string; sectionAttribute: boolean; - sharing: any; + sharing: Sharing; shortName: string; sortOrder: number; sqlViewAttribute: boolean; @@ -5439,14 +5440,14 @@ export interface D2CategorySchema { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; name: string; programStage: D2ProgramStageSchema; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -5518,7 +5519,7 @@ export interface D2CategoryComboSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; skipTotal: boolean; translations: D2Translation[]; user: D2UserSchema; @@ -5566,7 +5567,7 @@ export interface D2CategoryComboSchema { export interface D2CategoryDimensionSchema { name: "D2CategoryDimension"; model: D2CategoryDimension; - fields: { category: D2CategorySchema; categoryOptions: any }; + fields: { category: D2CategorySchema; categoryOptions: unknown }; fieldPresets: { $all: Preset; $identifiable: Preset; @@ -5643,7 +5644,7 @@ export interface D2CategoryOptionSchema { organisationUnits: D2OrganisationUnitSchema[]; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; startDate: string; style: D2Style; @@ -5764,7 +5765,7 @@ export interface D2CategoryOptionComboSchema { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -5870,7 +5871,7 @@ export interface D2CategoryOptionGroupSchema { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -5981,14 +5982,14 @@ export interface D2CategoryOptionGroupSetSchema { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; name: string; programStage: D2ProgramStageSchema; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -6039,7 +6040,10 @@ export interface D2CategoryOptionGroupSetSchema { export interface D2CategoryOptionGroupSetDimensionSchema { name: "D2CategoryOptionGroupSetDimension"; model: D2CategoryOptionGroupSetDimension; - fields: { categoryOptionGroupSet: D2CategoryOptionGroupSetSchema; categoryOptionGroups: any }; + fields: { + categoryOptionGroupSet: D2CategoryOptionGroupSetSchema; + categoryOptionGroups: unknown; + }; fieldPresets: { $all: Preset; $identifiable: Preset; @@ -6078,7 +6082,7 @@ export interface D2ChartSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueSchema[]; baseLineLabel: string; baseLineValue: number; @@ -6086,12 +6090,12 @@ export interface D2ChartSchema { categoryDimensions: D2CategoryDimensionSchema[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; code: Id; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; createdBy: D2UserSchema; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; description: string; @@ -6112,7 +6116,7 @@ export interface D2ChartSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; formName: string; hideEmptyRowItems: | "NONE" @@ -6139,7 +6143,7 @@ export interface D2ChartSchema { organisationUnits: D2OrganisationUnitSchema[]; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; rangeAxisDecimals: number; @@ -6148,11 +6152,11 @@ export interface D2ChartSchema { rangeAxisMinValue: number; rangeAxisSteps: number; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; - rows: any[]; + relativePeriods: unknown; + rows: unknown[]; series: string; - seriesItems: any[]; - sharing: any; + seriesItems: unknown[]; + sharing: Sharing; shortName: string; showData: boolean; sortOrder: number; @@ -6224,7 +6228,7 @@ export interface D2ConstantSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -6299,7 +6303,7 @@ export interface D2DashboardSchema { name: string; publicAccess: string; restrictFilters: boolean; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -6380,7 +6384,7 @@ export interface D2DashboardItemSchema { reports: D2ReportSchema[]; resources: D2DocumentSchema[]; shape: "NORMAL" | "DOUBLE_WIDTH" | "FULL_WIDTH"; - sharing: any; + sharing: Sharing; text: string; translations: D2Translation[]; type: @@ -6483,7 +6487,7 @@ export interface D2DataApprovalLevelSchema { orgUnitLevel: number; orgUnitLevelName: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -6549,7 +6553,7 @@ export interface D2DataApprovalWorkflowSchema { name: string; periodType: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -6663,7 +6667,7 @@ export interface D2DataElementSchema { optionSetValue: boolean; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; translations: D2Translation[]; @@ -6697,7 +6701,7 @@ export interface D2DataElementSchema { | "URL" | "FILE_RESOURCE" | "IMAGE"; - valueTypeOptions: any; + valueTypeOptions: unknown; zeroIsSignificant: boolean; }; fieldPresets: { @@ -6830,7 +6834,7 @@ export interface D2DataElementGroupSchema { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -6942,14 +6946,14 @@ export interface D2DataElementGroupSetSchema { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; name: string; programStage: D2ProgramStageSchema; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -7002,7 +7006,7 @@ export interface D2DataElementGroupSetSchema { export interface D2DataElementGroupSetDimensionSchema { name: "D2DataElementGroupSetDimension"; model: D2DataElementGroupSetDimension; - fields: { dataElementGroupSet: D2DataElementGroupSetSchema; dataElementGroups: any }; + fields: { dataElementGroupSet: D2DataElementGroupSetSchema; dataElementGroups: unknown }; fieldPresets: { $all: Preset; $identifiable: Preset; @@ -7079,7 +7083,7 @@ export interface D2DataElementOperandSchema { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -7116,7 +7120,7 @@ export interface D2DataEntryFormSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; style: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; translations: D2Translation[]; user: D2UserSchema; @@ -7159,7 +7163,7 @@ export interface D2DataEntryFormSchema { export interface D2DataInputPeriodSchema { name: "D2DataInputPeriod"; model: D2DataInputPeriod; - fields: { closingDate: string; openingDate: string; period: any }; + fields: { closingDate: string; openingDate: string; period: unknown }; fieldPresets: { $all: Preset; $identifiable: Preset; @@ -7253,7 +7257,7 @@ export interface D2DataSetSchema { renderAsTabs: boolean; renderHorizontally: boolean; sections: D2SectionSchema[]; - sharing: any; + sharing: Sharing; shortName: string; skipOffline: boolean; style: D2Style; @@ -7409,7 +7413,7 @@ export interface D2DataSetNotificationTemplateSchema { recipientUserGroup: D2UserGroupSchema; relativeScheduledDays: number; sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; - sharing: any; + sharing: Sharing; subjectTemplate: string; translations: D2Translation[]; user: D2UserSchema; @@ -7487,7 +7491,7 @@ export interface D2DocumentSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; url: string; user: D2UserSchema; @@ -7558,7 +7562,7 @@ export interface D2EventChartSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValueDimension: D2TrackedEntityAttributeSchema; attributeValues: D2AttributeValueSchema[]; baseLineLabel: string; @@ -7568,12 +7572,12 @@ export interface D2EventChartSchema { code: Id; collapseDataDimensions: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; createdBy: D2UserSchema; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; dataElementValueDimension: D2DataElementSchema; @@ -7596,7 +7600,7 @@ export interface D2EventChartSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; formName: string; hideEmptyRowItems: | "NONE" @@ -7625,7 +7629,7 @@ export interface D2EventChartSchema { outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -7637,10 +7641,10 @@ export interface D2EventChartSchema { rangeAxisMinValue: number; rangeAxisSteps: number; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; + relativePeriods: unknown; rowDimensions: string[]; - rows: any[]; - sharing: any; + rows: unknown[]; + sharing: Sharing; shortName: string; showData: boolean; sortOrder: number; @@ -7677,7 +7681,7 @@ export interface D2EventChartSchema { userOrganisationUnit: boolean; userOrganisationUnitChildren: boolean; userOrganisationUnitGrandChildren: boolean; - value: any; + value: unknown; yearlySeries: string[]; }; fieldPresets: { @@ -7853,7 +7857,7 @@ export interface D2EventReportSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValueDimension: D2TrackedEntityAttributeSchema; attributeValues: D2AttributeValueSchema[]; categoryDimensions: D2CategoryDimensionSchema[]; @@ -7863,11 +7867,11 @@ export interface D2EventReportSchema { colTotals: boolean; collapseDataDimensions: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; createdBy: D2UserSchema; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; dataElementValueDimension: D2DataElementSchema; @@ -7887,7 +7891,7 @@ export interface D2EventReportSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; formName: string; hideEmptyRows: boolean; @@ -7907,18 +7911,18 @@ export interface D2EventReportSchema { organisationUnits: D2OrganisationUnitSchema[]; outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2MapSchema; - periods: any[]; + periods: unknown[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; publicAccess: string; - relativePeriods: any; + relativePeriods: unknown; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; - sharing: any; + rows: unknown[]; + sharing: Sharing; shortName: string; showDimensionLabels: boolean; showHierarchy: boolean; @@ -7938,7 +7942,7 @@ export interface D2EventReportSchema { userOrganisationUnit: boolean; userOrganisationUnitChildren: boolean; userOrganisationUnitGrandChildren: boolean; - value: any; + value: unknown; }; fieldPresets: { $all: Preset; @@ -8127,7 +8131,7 @@ export interface D2ExternalFileResourceSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -8188,7 +8192,7 @@ export interface D2ExternalMapLayerSchema { mapService: "WMS" | "TMS" | "XYZ"; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; url: string; user: D2UserSchema; @@ -8266,7 +8270,7 @@ export interface D2FileResourceSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; storageStatus: "NONE" | "PENDING" | "FAILED" | "STORED"; translations: D2Translation[]; user: D2UserSchema; @@ -8397,7 +8401,7 @@ export interface D2IndicatorSchema { numeratorDescription: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; translations: D2Translation[]; @@ -8493,7 +8497,7 @@ export interface D2IndicatorGroupSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -8560,7 +8564,7 @@ export interface D2IndicatorGroupSetSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -8624,7 +8628,7 @@ export interface D2IndicatorTypeSchema { name: string; number: boolean; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -8686,13 +8690,13 @@ export interface D2InterpretationSchema { likedBy: D2UserSchema[]; likes: number; map: D2MapSchema; - mentions: any[]; + mentions: unknown[]; name: string; organisationUnit: D2OrganisationUnitSchema; - period: any; + period: unknown; publicAccess: string; reportTable: D2ReportTableSchema; - sharing: any; + sharing: Sharing; text: string; translations: D2Translation[]; type: @@ -8772,10 +8776,10 @@ export interface D2InterpretationCommentSchema { id: Id; lastUpdated: string; lastUpdatedBy: D2UserSchema; - mentions: any[]; + mentions: unknown[]; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; text: string; translations: D2Translation[]; user: D2UserSchema; @@ -8816,7 +8820,7 @@ export interface D2JobConfigurationSchema { favorites: string[]; href: string; id: Id; - jobParameters: any; + jobParameters: unknown; jobStatus: | "RUNNING" | "COMPLETED" @@ -8881,7 +8885,7 @@ export interface D2JobConfigurationSchema { nextExecutionTime: string; publicAccess: string; schedulingType: "CRON" | "FIXED_DELAY"; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -8956,7 +8960,7 @@ export interface D2KeyJsonValueSchema { name: string; namespace: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -9016,7 +9020,7 @@ export interface D2LegendSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; startValue: number; translations: D2Translation[]; user: D2UserSchema; @@ -9078,7 +9082,7 @@ export interface D2LegendSetSchema { legends: D2LegendSchema[]; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; symbolizer: string; translations: D2Translation[]; user: D2UserSchema; @@ -9151,7 +9155,7 @@ export interface D2MapSchema { mapViews: D2MapViewSchema[]; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; subscribed: boolean; subscribers: string[]; @@ -9236,7 +9240,7 @@ export interface D2MapViewSchema { | "CUSTOM" | "DEFAULT"; areaRadius: number; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueSchema[]; categoryDimensions: D2CategoryDimensionSchema[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; @@ -9246,12 +9250,12 @@ export interface D2MapViewSchema { colorLow: string; colorScale: string; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; config: string; created: string; createdBy: D2UserSchema; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; description: string; @@ -9272,7 +9276,7 @@ export interface D2MapViewSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; followUp: boolean; formName: string; hidden: boolean; @@ -9310,7 +9314,7 @@ export interface D2MapViewSchema { parentGraph: string; parentGraphMap: D2MapSchema; parentLevel: number; - periods: any[]; + periods: unknown[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -9318,10 +9322,10 @@ export interface D2MapViewSchema { publicAccess: string; radiusHigh: number; radiusLow: number; - relativePeriods: any; + relativePeriods: unknown; renderingStrategy: "SINGLE" | "SPLIT_BY_PERIOD" | "TIMELINE"; - rows: any[]; - sharing: any; + rows: unknown[]; + sharing: Sharing; shortName: string; sortOrder: number; startDate: string; @@ -9503,12 +9507,12 @@ export interface D2MessageConversationSchema { lastUpdatedBy: D2UserSchema; messageCount: number; messageType: "PRIVATE" | "SYSTEM" | "VALIDATION_RESULT" | "TICKET"; - messages: any[]; + messages: unknown[]; name: string; priority: "NONE" | "LOW" | "MEDIUM" | "HIGH"; publicAccess: string; read: boolean; - sharing: any; + sharing: Sharing; status: "NONE" | "OPEN" | "PENDING" | "INVALID" | "SOLVED"; subject: string; translations: D2Translation[]; @@ -9516,7 +9520,7 @@ export interface D2MessageConversationSchema { userAccesses: D2UserAccessSchema[]; userFirstname: string; userGroupAccesses: D2UserGroupAccessSchema[]; - userMessages: any[]; + userMessages: unknown[]; userSurname: string; }; fieldPresets: { @@ -9581,7 +9585,7 @@ export interface D2MetadataVersionSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; type: "BEST_EFFORT" | "ATOMIC"; user: D2UserSchema; @@ -9668,7 +9672,7 @@ export interface D2OAuth2ClientSchema { publicAccess: string; redirectUris: string[]; secret: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -9732,7 +9736,7 @@ export interface D2OptionSchema { name: string; optionSet: D2OptionSetSchema; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; sortOrder: number; style: D2Style; @@ -9841,7 +9845,7 @@ export interface D2OptionGroupSchema { options: D2OptionSchema[]; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -9948,7 +9952,7 @@ export interface D2OptionGroupSetSchema { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; @@ -9957,7 +9961,7 @@ export interface D2OptionGroupSetSchema { optionSet: D2OptionSetSchema; programStage: D2ProgramStageSchema; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -10023,7 +10027,7 @@ export interface D2OptionSetSchema { name: string; options: D2OptionSchema[]; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -10155,7 +10159,7 @@ export interface D2OrganisationUnitSchema { favorite: boolean; favorites: string[]; formName: string; - geometry: any; + geometry: unknown; href: string; id: Id; lastUpdated: string; @@ -10174,7 +10178,7 @@ export interface D2OrganisationUnitSchema { phoneNumber: string; programs: D2ProgramSchema[]; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; type: string; @@ -10302,7 +10306,7 @@ export interface D2OrganisationUnitGroupSchema { favorites: string[]; featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; formName: string; - geometry: any; + geometry: unknown; groupSets: D2OrganisationUnitGroupSetSchema[]; href: string; id: Id; @@ -10314,7 +10318,7 @@ export interface D2OrganisationUnitGroupSchema { organisationUnits: D2OrganisationUnitSchema[]; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; symbol: string; translations: D2Translation[]; @@ -10431,7 +10435,7 @@ export interface D2OrganisationUnitGroupSetSchema { href: string; id: Id; includeSubhierarchyInAnalytics: boolean; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; @@ -10439,7 +10443,7 @@ export interface D2OrganisationUnitGroupSetSchema { organisationUnitGroups: D2OrganisationUnitGroupSchema[]; programStage: D2ProgramStageSchema; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -10496,7 +10500,7 @@ export interface D2OrganisationUnitGroupSetDimensionSchema { model: D2OrganisationUnitGroupSetDimension; fields: { organisationUnitGroupSet: D2OrganisationUnitGroupSetSchema; - organisationUnitGroups: any; + organisationUnitGroups: unknown; }; fieldPresets: { $all: Preset< @@ -10537,7 +10541,7 @@ export interface D2OrganisationUnitLevelSchema { name: string; offlineLevels: number; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -10608,7 +10612,7 @@ export interface D2PredictorSchema { sampleSkipTest: D2ExpressionSchema; sequentialSampleCount: number; sequentialSkipCount: number; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -10682,7 +10686,7 @@ export interface D2PredictorGroupSchema { name: string; predictors: D2PredictorSchema[]; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -10776,7 +10780,7 @@ export interface D2ProgramSchema { relatedProgram: D2ProgramSchema; selectEnrollmentDatesInFuture: boolean; selectIncidentDatesInFuture: boolean; - sharing: any; + sharing: Sharing; shortName: string; skipOffline: boolean; style: D2Style; @@ -10953,7 +10957,7 @@ export interface D2ProgramDataElementDimensionItemSchema { periodOffset: number; program: D2ProgramSchema; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -11066,7 +11070,7 @@ export interface D2ProgramIndicatorSchema { program: D2ProgramSchema; programIndicatorGroups: D2ProgramIndicatorGroupSchema[]; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; translations: D2Translation[]; @@ -11159,7 +11163,7 @@ export interface D2ProgramIndicatorGroupSchema { name: string; programIndicators: D2ProgramIndicatorSchema[]; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -11219,7 +11223,7 @@ export interface D2ProgramInstanceSchema { favorite: boolean; favorites: string[]; followup: boolean; - geometry: any; + geometry: unknown; href: string; id: Id; incidentDate: string; @@ -11232,11 +11236,11 @@ export interface D2ProgramInstanceSchema { program: D2ProgramSchema; programStageInstances: D2ProgramStageInstanceSchema[]; publicAccess: string; - relationshipItems: any[]; - sharing: any; + relationshipItems: unknown[]; + sharing: Sharing; status: "ACTIVE" | "COMPLETED" | "CANCELLED"; storedBy: string; - trackedEntityComments: any[]; + trackedEntityComments: unknown[]; trackedEntityInstance: D2TrackedEntityInstanceSchema; translations: D2Translation[]; user: D2UserSchema; @@ -11339,7 +11343,7 @@ export interface D2ProgramNotificationTemplateSchema { recipientProgramAttribute: D2TrackedEntityAttributeSchema; recipientUserGroup: D2UserGroupSchema; relativeScheduledDays: number; - sharing: any; + sharing: Sharing; subjectTemplate: string; translations: D2Translation[]; user: D2UserSchema; @@ -11420,7 +11424,7 @@ export interface D2ProgramRuleSchema { programRuleActions: D2ProgramRuleActionSchema[]; programStage: D2ProgramStageSchema; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -11515,7 +11519,7 @@ export interface D2ProgramRuleActionSchema { programStage: D2ProgramStageSchema; programStageSection: D2ProgramStageSectionSchema; publicAccess: string; - sharing: any; + sharing: Sharing; templateUid: string; trackedEntityAttribute: D2TrackedEntityAttributeSchema; translations: D2Translation[]; @@ -11607,7 +11611,7 @@ export interface D2ProgramRuleVariableSchema { | "TEI_ATTRIBUTE"; programStage: D2ProgramStageSchema; publicAccess: string; - sharing: any; + sharing: Sharing; trackedEntityAttribute: D2TrackedEntityAttributeSchema; translations: D2Translation[]; useCodeForOptionSet: boolean; @@ -11679,8 +11683,8 @@ export interface D2ProgramSectionSchema { name: string; program: D2ProgramSchema; publicAccess: string; - renderType: any; - sharing: any; + renderType: unknown; + sharing: Sharing; shortName: string; sortOrder: number; style: D2Style; @@ -11781,7 +11785,7 @@ export interface D2ProgramStageSchema { remindCompleted: boolean; repeatable: boolean; reportDateToUse: string; - sharing: any; + sharing: Sharing; shortName: string; sortOrder: number; standardInterval: number; @@ -11909,8 +11913,8 @@ export interface D2ProgramStageDataElementSchema { programStage: D2ProgramStageSchema; publicAccess: string; renderOptionsAsRadio: boolean; - renderType: any; - sharing: any; + renderType: unknown; + sharing: Sharing; skipSynchronization: boolean; sortOrder: number; translations: D2Translation[]; @@ -11970,7 +11974,7 @@ export interface D2ProgramStageInstanceSchema { attributeOptionCombo: D2CategoryOptionComboSchema; attributeValues: D2AttributeValueSchema[]; code: Id; - comments: any[]; + comments: unknown[]; completed: boolean; completedBy: string; completedDate: string; @@ -11978,30 +11982,30 @@ export interface D2ProgramStageInstanceSchema { created: string; createdAtClient: string; createdBy: D2UserSchema; - createdByUserInfo: any; + createdByUserInfo: unknown; deleted: boolean; displayName: string; dueDate: string; - eventDataValues: any[]; + eventDataValues: unknown[]; eventDate: string; externalAccess: boolean; favorite: boolean; favorites: string[]; - geometry: any; + geometry: unknown; href: string; id: Id; lastUpdated: string; lastUpdatedAtClient: string; lastUpdatedBy: D2UserSchema; - lastUpdatedByUserInfo: any; + lastUpdatedByUserInfo: unknown; messageConversations: D2MessageConversationSchema[]; name: string; organisationUnit: D2OrganisationUnitSchema; programInstance: D2ProgramInstanceSchema; programStage: D2ProgramStageSchema; publicAccess: string; - relationshipItems: any[]; - sharing: any; + relationshipItems: unknown[]; + sharing: Sharing; status: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; storedBy: string; translations: D2Translation[]; @@ -12083,7 +12087,7 @@ export interface D2ProgramStageInstanceFilterSchema { description: string; displayDescription: string; displayName: string; - eventQueryCriteria: any; + eventQueryCriteria: unknown; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -12095,7 +12099,7 @@ export interface D2ProgramStageInstanceFilterSchema { program: Id; programStage: Id; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -12165,8 +12169,8 @@ export interface D2ProgramStageSectionSchema { programIndicators: D2ProgramIndicatorSchema[]; programStage: D2ProgramStageSchema; publicAccess: string; - renderType: any; - sharing: any; + renderType: unknown; + sharing: Sharing; shortName: string; sortOrder: number; style: D2Style; @@ -12244,9 +12248,9 @@ export interface D2ProgramTrackedEntityAttributeSchema { programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroupSchema[]; publicAccess: string; renderOptionsAsRadio: boolean; - renderType: any; + renderType: unknown; searchable: boolean; - sharing: any; + sharing: Sharing; sortOrder: number; trackedEntityAttribute: D2TrackedEntityAttributeSchema; translations: D2Translation[]; @@ -12386,7 +12390,7 @@ export interface D2ProgramTrackedEntityAttributeDimensionItemSchema { periodOffset: number; program: D2ProgramSchema; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -12433,7 +12437,7 @@ export interface D2ProgramTrackedEntityAttributeGroupSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; uniqunessType: "NONE" | "STRICT" | "VALIDATION"; @@ -12500,7 +12504,7 @@ export interface D2PushAnalysisSchema { name: string; publicAccess: string; recipientUserGroups: D2UserGroupSchema[]; - sharing: any; + sharing: Sharing; title: string; translations: D2Translation[]; user: D2UserSchema; @@ -12558,7 +12562,7 @@ export interface D2RelationshipSchema { favorite: boolean; favorites: string[]; formName: string; - from: any; + from: unknown; href: string; id: Id; lastUpdated: string; @@ -12566,10 +12570,10 @@ export interface D2RelationshipSchema { name: string; publicAccess: string; relationshipType: D2RelationshipTypeSchema; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; - to: any; + to: unknown; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -12635,7 +12639,7 @@ export interface D2RelationshipTypeSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; toConstraint: D2RelationshipConstraint; toFromName: string; translations: D2Translation[]; @@ -12717,9 +12721,9 @@ export interface D2ReportSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - relativePeriods: any; + relativePeriods: unknown; reportParams: D2ReportingParams; - sharing: any; + sharing: Sharing; translations: D2Translation[]; type: "JASPER_REPORT_TABLE" | "JASPER_JDBC" | "HTML"; user: D2UserSchema; @@ -12793,7 +12797,7 @@ export interface D2ReportTableSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueSchema[]; categoryDimensions: D2CategoryDimensionSchema[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; @@ -12801,12 +12805,12 @@ export interface D2ReportTableSchema { colSubTotals: boolean; colTotals: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; createdBy: D2UserSchema; cumulative: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; description: string; @@ -12823,7 +12827,7 @@ export interface D2ReportTableSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; formName: string; hideEmptyColumns: boolean; @@ -12847,17 +12851,17 @@ export interface D2ReportTableSchema { organisationUnitLevels: number[]; organisationUnits: D2OrganisationUnitSchema[]; parentGraphMap: D2MapSchema; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; regression: boolean; - relativePeriods: any; - reportParams: any; + relativePeriods: unknown; + reportParams: unknown; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; - sharing: any; + rows: unknown[]; + sharing: Sharing; shortName: string; showDimensionLabels: boolean; showHierarchy: boolean; @@ -12956,7 +12960,7 @@ export interface D2ReportingRateSchema { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -13010,9 +13014,9 @@ export interface D2SMSCommandSchema { publicAccess: string; receivedMessage: string; separator: string; - sharing: any; - smsCodes: any[]; - specialCharacters: any[]; + sharing: Sharing; + smsCodes: unknown[]; + specialCharacters: unknown[]; successMessage: string; translations: D2Translation[]; user: D2UserSchema; @@ -13101,7 +13105,7 @@ export interface D2SectionSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; showColumnTotals: boolean; showRowTotals: boolean; sortOrder: number; @@ -13186,7 +13190,7 @@ export interface D2SqlViewSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; sqlQuery: string; translations: D2Translation[]; type: "VIEW" | "MATERIALIZED_VIEW" | "QUERY"; @@ -13305,7 +13309,7 @@ export interface D2TrackedEntityAttributeSchema { pattern: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; skipSynchronization: boolean; sortOrderInListNoProgram: number; @@ -13480,7 +13484,7 @@ export interface D2TrackedEntityInstanceSchema { externalAccess: boolean; favorite: boolean; favorites: string[]; - geometry: any; + geometry: unknown; href: string; id: Id; inactive: boolean; @@ -13490,10 +13494,10 @@ export interface D2TrackedEntityInstanceSchema { name: string; organisationUnit: D2OrganisationUnitSchema; programInstances: D2ProgramInstanceSchema[]; - programOwners: any[]; + programOwners: unknown[]; publicAccess: string; - relationshipItems: any[]; - sharing: any; + relationshipItems: unknown[]; + sharing: Sharing; storedBy: string; trackedEntityAttributeValues: D2TrackedEntityAttributeValueSchema[]; trackedEntityType: D2TrackedEntityTypeSchema; @@ -13511,8 +13515,8 @@ export interface D2TrackedEntityInstanceSchema { | "programOwners" | "code" | "storedBy" - | "programInstances" | "organisationUnit" + | "programInstances" | "createdAtClient" | "lastUpdated" | "inactive" @@ -13557,9 +13561,9 @@ export interface D2TrackedEntityInstanceFilterSchema { description: string; displayDescription: string; displayName: string; - enrollmentCreatedPeriod: any; + enrollmentCreatedPeriod: unknown; enrollmentStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; - eventFilters: any[]; + eventFilters: unknown[]; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -13571,7 +13575,7 @@ export interface D2TrackedEntityInstanceFilterSchema { name: string; program: D2ProgramSchema; publicAccess: string; - sharing: any; + sharing: Sharing; sortOrder: number; style: D2Style; translations: D2Translation[]; @@ -13679,7 +13683,7 @@ export interface D2TrackedEntityTypeSchema { minAttributesRequiredToSearch: number; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; trackedEntityTypeAttributes: D2TrackedEntityTypeAttributeSchema[]; @@ -13760,7 +13764,7 @@ export interface D2TrackedEntityTypeAttributeSchema { name: string; publicAccess: string; searchable: boolean; - sharing: any; + sharing: Sharing; trackedEntityAttribute: D2TrackedEntityAttributeSchema; trackedEntityType: D2TrackedEntityTypeSchema; translations: D2Translation[]; @@ -13863,7 +13867,7 @@ export interface D2UserSchema { organisationUnits: D2OrganisationUnitSchema[]; phoneNumber: string; publicAccess: string; - sharing: any; + sharing: Sharing; skype: string; surname: string; teiSearchOrganisationUnits: D2OrganisationUnitSchema[]; @@ -13986,7 +13990,7 @@ export interface D2UserAuthorityGroupSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -14059,7 +14063,7 @@ export interface D2UserCredentialsSchema { passwordLastUpdated: string; publicAccess: string; selfRegistered: boolean; - sharing: any; + sharing: Sharing; translations: D2Translation[]; twoFA: boolean; user: D2UserSchema; @@ -14147,7 +14151,7 @@ export interface D2UserGroupSchema { managedGroups: D2UserGroupSchema[]; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -14231,7 +14235,7 @@ export interface D2ValidationNotificationTemplateSchema { publicAccess: string; recipientUserGroups: D2UserGroupSchema[]; sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; - sharing: any; + sharing: Sharing; subjectTemplate: string; translations: D2Translation[]; user: D2UserSchema; @@ -14289,7 +14293,7 @@ export interface D2ValidationResultSchema { leftsideValue: number; notificationSent: boolean; organisationUnit: D2OrganisationUnitSchema; - period: any; + period: unknown; rightsideValue: number; validationRule: D2ValidationRuleSchema; }; @@ -14388,7 +14392,7 @@ export interface D2ValidationRuleSchema { periodType: string; publicAccess: string; rightSide: D2ExpressionSchema; - sharing: any; + sharing: Sharing; shortName: string; skipFormValidation: boolean; translations: D2Translation[]; @@ -14470,7 +14474,7 @@ export interface D2ValidationRuleGroupSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -14537,9 +14541,9 @@ export interface D2VisualizationSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueSchema[]; - axes: any[]; + axes: unknown[]; baseLineLabel: string; baseLineValue: number; categoryDimensions: D2CategoryDimensionSchema[]; @@ -14549,12 +14553,12 @@ export interface D2VisualizationSchema { colTotals: boolean; colorSet: string; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; createdBy: D2UserSchema; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; description: string; @@ -14576,9 +14580,9 @@ export interface D2VisualizationSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; - fontStyle: any; + fontStyle: unknown; formName: string; hideEmptyColumns: boolean; hideEmptyRowItems: @@ -14597,7 +14601,7 @@ export interface D2VisualizationSchema { itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; - legend: any; + legend: unknown; legendDisplayStrategy: "FIXED" | "BY_DATA_ITEM"; legendDisplayStyle: "FILL" | "TEXT"; legendSet: D2LegendSetSchema; @@ -14610,10 +14614,10 @@ export interface D2VisualizationSchema { organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; organisationUnitLevels: number[]; organisationUnits: D2OrganisationUnitSchema[]; - outlierAnalysis: any; + outlierAnalysis: unknown; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; rangeAxisDecimals: number; @@ -14623,14 +14627,14 @@ export interface D2VisualizationSchema { rangeAxisSteps: number; regression: boolean; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; + relativePeriods: unknown; reportingParams: D2ReportingParams; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; - series: any[]; - sharing: any; + rows: unknown[]; + series: unknown[]; + sharing: Sharing; shortName: string; showData: boolean; showDimensionLabels: boolean; @@ -15867,18 +15871,18 @@ export const models: Record = { propertyType: "CONSTANT", klass: "org.hisp.dhis.common.DataDimensionType", }, - { - name: "access", - fieldName: "access", - propertyType: "COMPLEX", - klass: "org.hisp.dhis.security.acl.Access", - }, { name: "code", fieldName: "code", propertyType: "IDENTIFIER", klass: "java.lang.String", }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, { name: "publicAccess", @@ -15906,7 +15910,6 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "org.hisp.dhis.translation.Translation", }, - { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, { name: "category", @@ -15916,6 +15919,7 @@ export const models: Record = { klass: "java.util.List", itemKlass: "org.hisp.dhis.category.Category", }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "lastUpdatedBy", fieldName: "lastUpdatedBy", @@ -17923,12 +17927,12 @@ export const models: Record = { propertyType: "BOOLEAN", klass: "java.lang.Boolean", }, - { name: "y", fieldName: "y", propertyType: "INTEGER", klass: "java.lang.Integer" }, { name: "interpretationLikeCount", propertyType: "INTEGER", klass: "java.lang.Integer", }, + { name: "y", fieldName: "y", propertyType: "INTEGER", klass: "java.lang.Integer" }, { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, { name: "chart", @@ -27394,18 +27398,18 @@ export const models: Record = { propertyType: "IDENTIFIER", klass: "java.lang.String", }, - { - name: "storedBy", - fieldName: "storedBy", - propertyType: "TEXT", - klass: "java.lang.String", - }, { name: "access", fieldName: "access", propertyType: "COMPLEX", klass: "org.hisp.dhis.security.acl.Access", }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, { name: "endDate", fieldName: "endDate", @@ -28994,18 +28998,18 @@ export const models: Record = { propertyType: "IDENTIFIER", klass: "java.lang.String", }, - { - name: "storedBy", - fieldName: "storedBy", - propertyType: "TEXT", - klass: "java.lang.String", - }, { name: "access", fieldName: "access", propertyType: "COMPLEX", klass: "org.hisp.dhis.security.acl.Access", }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, { name: "organisationUnit", fieldName: "organisationUnit", @@ -29248,18 +29252,18 @@ export const models: Record = { propertyType: "COMPLEX", klass: "org.hisp.dhis.programstagefilter.EventQueryCriteria", }, - { - name: "access", - fieldName: "access", - propertyType: "COMPLEX", - klass: "org.hisp.dhis.security.acl.Access", - }, { name: "code", fieldName: "code", propertyType: "IDENTIFIER", klass: "java.lang.String", }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, { name: "publicAccess", @@ -29299,8 +29303,8 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "org.hisp.dhis.translation.Translation", }, - { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, { name: "lastUpdatedBy", @@ -32109,18 +32113,18 @@ export const models: Record = { klass: "java.lang.Boolean", }, { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, - { - name: "externalAccess", - fieldName: "externalAccess", - propertyType: "BOOLEAN", - klass: "java.lang.Boolean", - }, { name: "sortOrderInListNoProgram", fieldName: "sortOrderInListNoProgram", propertyType: "INTEGER", klass: "java.lang.Integer", }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, { name: "periodOffset", fieldName: "periodOffset", @@ -32318,6 +32322,12 @@ export const models: Record = { propertyType: "IDENTIFIER", klass: "java.lang.String", }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, { name: "access", fieldName: "access", @@ -32325,10 +32335,10 @@ export const models: Record = { klass: "org.hisp.dhis.security.acl.Access", }, { - name: "storedBy", - fieldName: "storedBy", - propertyType: "TEXT", - klass: "java.lang.String", + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", }, { name: "programInstance", @@ -32338,12 +32348,6 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "org.hisp.dhis.program.ProgramInstance", }, - { - name: "organisationUnit", - fieldName: "organisationUnit", - propertyType: "REFERENCE", - klass: "org.hisp.dhis.organisationunit.OrganisationUnit", - }, { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, { name: "publicAccess", diff --git a/src/2.37/schemas.ts b/src/2.37/schemas.ts index fefc9a9..1c46969 100644 --- a/src/2.37/schemas.ts +++ b/src/2.37/schemas.ts @@ -14,6 +14,7 @@ import { D2RelationshipConstraint, D2ReportingParams, D2Axis, + Sharing, D2AttributeValueGeneric, D2AttributeValueGenericSchema, } from "../schemas/base"; @@ -42,7 +43,7 @@ export type D2AnalyticsPeriodBoundary = { offsetPeriodType: string; offsetPeriods: number; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -88,7 +89,7 @@ export type D2AnalyticsTableHook = { | "DATA_ELEMENT_CATEGORY_OPTION_COMBO" | "DATA_APPROVAL_REMAP_LEVEL" | "DATA_APPROVAL_MIN_LEVEL"; - sharing: any; + sharing: Sharing; sql: string; translations: D2Translation[]; user: D2User; @@ -99,7 +100,7 @@ export type D2AnalyticsTableHook = { export type D2ApiToken = { access: D2Access; attributeValues: D2AttributeValue[]; - attributes: any[]; + attributes: unknown[]; code: Id; created: string; createdBy: D2User; @@ -115,7 +116,7 @@ export type D2ApiToken = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; type: "PERSONAL_ACCESS_TOKEN"; user: D2User; @@ -170,7 +171,7 @@ export type D2Attribute = { programStageAttribute: boolean; publicAccess: string; sectionAttribute: boolean; - sharing: any; + sharing: Sharing; shortName: string; sortOrder: number; sqlViewAttribute: boolean; @@ -249,7 +250,7 @@ export type D2Category = { dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; description: string; dimension: string; - dimensionItemKeywords: any; + dimensionItemKeywords: unknown; dimensionType: | "DATA_X" | "PROGRAM_DATA_ELEMENT" @@ -280,14 +281,14 @@ export type D2Category = { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; name: string; programStage: D2ProgramStage; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -315,7 +316,7 @@ export type D2CategoryCombo = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; skipTotal: boolean; translations: D2Translation[]; user: D2User; @@ -325,7 +326,7 @@ export type D2CategoryCombo = { export type D2CategoryDimension = { category: D2Category; - categoryOptions: any; + categoryOptions: unknown; }; export type D2CategoryOption = { @@ -392,7 +393,7 @@ export type D2CategoryOption = { organisationUnits: D2OrganisationUnit[]; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; startDate: string; style: D2Style; @@ -463,7 +464,7 @@ export type D2CategoryOptionCombo = { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -532,7 +533,7 @@ export type D2CategoryOptionGroup = { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -570,7 +571,7 @@ export type D2CategoryOptionGroupSet = { dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; description: string; dimension: string; - dimensionItemKeywords: any; + dimensionItemKeywords: unknown; dimensionType: | "DATA_X" | "PROGRAM_DATA_ELEMENT" @@ -601,14 +602,14 @@ export type D2CategoryOptionGroupSet = { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; name: string; programStage: D2ProgramStage; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -618,7 +619,7 @@ export type D2CategoryOptionGroupSet = { export type D2CategoryOptionGroupSetDimension = { categoryOptionGroupSet: D2CategoryOptionGroupSet; - categoryOptionGroups: any; + categoryOptionGroups: unknown; }; export type D2Constant = { @@ -642,7 +643,7 @@ export type D2Constant = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -670,15 +671,15 @@ export type D2Dashboard = { formName: string; href: string; id: Id; - itemConfig: any; + itemConfig: unknown; itemCount: number; lastUpdated: string; lastUpdatedBy: D2User; - layout: any; + layout: unknown; name: string; publicAccess: string; restrictFilters: boolean; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -714,7 +715,7 @@ export type D2DashboardItem = { reports: D2Report[]; resources: D2Document[]; shape: "NORMAL" | "DOUBLE_WIDTH" | "FULL_WIDTH"; - sharing: any; + sharing: Sharing; text: string; translations: D2Translation[]; type: @@ -758,7 +759,7 @@ export type D2DataApprovalLevel = { orgUnitLevel: number; orgUnitLevelName: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -785,7 +786,7 @@ export type D2DataApprovalWorkflow = { name: string; periodType: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -859,7 +860,7 @@ export type D2DataElement = { optionSetValue: boolean; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; translations: D2Translation[]; @@ -893,7 +894,7 @@ export type D2DataElement = { | "URL" | "FILE_RESOURCE" | "IMAGE"; - valueTypeOptions: any; + valueTypeOptions: unknown; zeroIsSignificant: boolean; }; @@ -957,7 +958,7 @@ export type D2DataElementGroup = { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -996,7 +997,7 @@ export type D2DataElementGroupSet = { dataElementGroups: D2DataElementGroup[]; description: string; dimension: string; - dimensionItemKeywords: any; + dimensionItemKeywords: unknown; dimensionType: | "DATA_X" | "PROGRAM_DATA_ELEMENT" @@ -1027,14 +1028,14 @@ export type D2DataElementGroupSet = { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; name: string; programStage: D2ProgramStage; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -1044,7 +1045,7 @@ export type D2DataElementGroupSet = { export type D2DataElementGroupSetDimension = { dataElementGroupSet: D2DataElementGroupSet; - dataElementGroups: any; + dataElementGroups: unknown; }; export type D2DataElementOperand = { @@ -1108,7 +1109,7 @@ export type D2DataElementOperand = { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -1134,7 +1135,7 @@ export type D2DataEntryForm = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; style: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; translations: D2Translation[]; user: D2User; @@ -1145,7 +1146,7 @@ export type D2DataEntryForm = { export type D2DataInputPeriod = { closingDate: string; openingDate: string; - period: any; + period: unknown; }; export type D2DataSet = { @@ -1229,7 +1230,7 @@ export type D2DataSet = { renderAsTabs: boolean; renderHorizontally: boolean; sections: D2Section[]; - sharing: any; + sharing: Sharing; shortName: string; skipOffline: boolean; style: D2Style; @@ -1277,7 +1278,7 @@ export type D2DataSetNotificationTemplate = { recipientUserGroup: D2UserGroup; relativeScheduledDays: number; sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; - sharing: any; + sharing: Sharing; subjectTemplate: string; translations: D2Translation[]; user: D2User; @@ -1304,7 +1305,7 @@ export type D2Document = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; url: string; user: D2User; @@ -1332,7 +1333,7 @@ export type D2EventChart = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValueDimension: D2TrackedEntityAttribute; attributeValues: D2AttributeValue[]; baseLineLabel: string; @@ -1342,12 +1343,12 @@ export type D2EventChart = { code: Id; collapseDataDimensions: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; createdBy: D2User; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; dataElementValueDimension: D2DataElement; @@ -1370,7 +1371,7 @@ export type D2EventChart = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; formName: string; hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; hideLegend: boolean; @@ -1394,7 +1395,7 @@ export type D2EventChart = { outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -1406,10 +1407,10 @@ export type D2EventChart = { rangeAxisMinValue: number; rangeAxisSteps: number; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; + relativePeriods: unknown; rowDimensions: string[]; - rows: any[]; - sharing: any; + rows: unknown[]; + sharing: Sharing; shortName: string; showData: boolean; sortOrder: number; @@ -1447,7 +1448,7 @@ export type D2EventChart = { userOrganisationUnit: boolean; userOrganisationUnitChildren: boolean; userOrganisationUnitGrandChildren: boolean; - value: any; + value: unknown; yearlySeries: string[]; }; @@ -1471,7 +1472,7 @@ export type D2EventReport = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValueDimension: D2TrackedEntityAttribute; attributeValues: D2AttributeValue[]; categoryDimensions: D2CategoryDimension[]; @@ -1481,11 +1482,11 @@ export type D2EventReport = { colTotals: boolean; collapseDataDimensions: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; createdBy: D2User; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; dataElementValueDimension: D2DataElement; @@ -1505,7 +1506,7 @@ export type D2EventReport = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; formName: string; hideEmptyRows: boolean; @@ -1525,18 +1526,18 @@ export type D2EventReport = { organisationUnits: D2OrganisationUnit[]; outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2Map; - periods: any[]; + periods: unknown[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; publicAccess: string; - relativePeriods: any; + relativePeriods: unknown; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; - sharing: any; + rows: unknown[]; + sharing: Sharing; shortName: string; showDimensionLabels: boolean; showHierarchy: boolean; @@ -1556,7 +1557,7 @@ export type D2EventReport = { userOrganisationUnit: boolean; userOrganisationUnitChildren: boolean; userOrganisationUnitGrandChildren: boolean; - value: any; + value: unknown; }; export type D2Expression = { @@ -1587,7 +1588,7 @@ export type D2ExternalFileResource = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -1617,7 +1618,7 @@ export type D2ExternalMapLayer = { mapService: "WMS" | "TMS" | "XYZ"; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; url: string; user: D2User; @@ -1652,7 +1653,7 @@ export type D2FileResource = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; storageStatus: "NONE" | "PENDING" | "FAILED" | "STORED"; translations: D2Translation[]; user: D2User; @@ -1733,7 +1734,7 @@ export type D2Indicator = { numeratorDescription: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; translations: D2Translation[]; @@ -1762,7 +1763,7 @@ export type D2IndicatorGroup = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -1788,7 +1789,7 @@ export type D2IndicatorGroupSet = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -1813,7 +1814,7 @@ export type D2IndicatorType = { name: string; number: boolean; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -1841,12 +1842,12 @@ export type D2Interpretation = { likedBy: D2User[]; likes: number; map: D2Map; - mentions: any[]; + mentions: unknown[]; name: string; organisationUnit: D2OrganisationUnit; - period: any; + period: unknown; publicAccess: string; - sharing: any; + sharing: Sharing; text: string; translations: D2Translation[]; type: @@ -1877,10 +1878,10 @@ export type D2InterpretationComment = { id: Id; lastUpdated: string; lastUpdatedBy: D2User; - mentions: any[]; + mentions: unknown[]; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; text: string; translations: D2Translation[]; user: D2User; @@ -1904,7 +1905,7 @@ export type D2JobConfiguration = { favorites: string[]; href: string; id: Id; - jobParameters: any; + jobParameters: unknown; jobStatus: | "RUNNING" | "COMPLETED" @@ -1970,7 +1971,7 @@ export type D2JobConfiguration = { nextExecutionTime: string; publicAccess: string; schedulingType: "CRON" | "FIXED_DELAY"; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -1996,7 +1997,7 @@ export type D2KeyJsonValue = { name: string; namespace: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -2023,7 +2024,7 @@ export type D2Legend = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; startValue: number; translations: D2Translation[]; user: D2User; @@ -2048,7 +2049,7 @@ export type D2LegendSet = { legends: D2Legend[]; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; symbolizer: string; translations: D2Translation[]; user: D2User; @@ -2082,7 +2083,7 @@ export type D2Map = { mapViews: D2MapView[]; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; subscribed: boolean; subscribers: string[]; @@ -2115,7 +2116,7 @@ export type D2MapView = { | "CUSTOM" | "DEFAULT"; areaRadius: number; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValue[]; categoryDimensions: D2CategoryDimension[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimension[]; @@ -2125,12 +2126,12 @@ export type D2MapView = { colorLow: string; colorScale: string; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; config: string; created: string; createdBy: D2User; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; description: string; @@ -2151,7 +2152,7 @@ export type D2MapView = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; followUp: boolean; formName: string; hidden: boolean; @@ -2190,7 +2191,7 @@ export type D2MapView = { parentGraph: string; parentGraphMap: D2Map; parentLevel: number; - periods: any[]; + periods: unknown[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -2198,10 +2199,10 @@ export type D2MapView = { publicAccess: string; radiusHigh: number; radiusLow: number; - relativePeriods: any; + relativePeriods: unknown; renderingStrategy: "SINGLE" | "SPLIT_BY_PERIOD" | "TIMELINE"; - rows: any[]; - sharing: any; + rows: unknown[]; + sharing: Sharing; shortName: string; sortOrder: number; startDate: string; @@ -2246,12 +2247,12 @@ export type D2MessageConversation = { lastUpdatedBy: D2User; messageCount: number; messageType: "PRIVATE" | "SYSTEM" | "VALIDATION_RESULT" | "TICKET"; - messages: any[]; + messages: unknown[]; name: string; priority: "NONE" | "LOW" | "MEDIUM" | "HIGH"; publicAccess: string; read: boolean; - sharing: any; + sharing: Sharing; status: "NONE" | "OPEN" | "PENDING" | "INVALID" | "SOLVED"; subject: string; translations: D2Translation[]; @@ -2259,7 +2260,7 @@ export type D2MessageConversation = { userAccesses: D2UserAccess[]; userFirstname: string; userGroupAccesses: D2UserGroupAccess[]; - userMessages: any[]; + userMessages: unknown[]; userSurname: string; }; @@ -2281,7 +2282,7 @@ export type D2MetadataVersion = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; type: "BEST_EFFORT" | "ATOMIC"; user: D2User; @@ -2318,7 +2319,7 @@ export type D2OAuth2Client = { publicAccess: string; redirectUris: string[]; secret: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -2347,7 +2348,7 @@ export type D2Option = { name: string; optionSet: D2OptionSet; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; sortOrder: number; style: D2Style; @@ -2417,7 +2418,7 @@ export type D2OptionGroup = { options: D2Option[]; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -2454,7 +2455,7 @@ export type D2OptionGroupSet = { dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; description: string; dimension: string; - dimensionItemKeywords: any; + dimensionItemKeywords: unknown; dimensionType: | "DATA_X" | "PROGRAM_DATA_ELEMENT" @@ -2485,7 +2486,7 @@ export type D2OptionGroupSet = { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; @@ -2494,7 +2495,7 @@ export type D2OptionGroupSet = { optionSet: D2OptionSet; programStage: D2ProgramStage; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -2519,7 +2520,7 @@ export type D2OptionSet = { name: string; options: D2Option[]; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -2610,7 +2611,7 @@ export type D2OrganisationUnit = { favorite: boolean; favorites: string[]; formName: string; - geometry: any; + geometry: unknown; href: string; id: Id; image: D2FileResource; @@ -2630,7 +2631,7 @@ export type D2OrganisationUnit = { phoneNumber: string; programs: D2Program[]; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; type: string; @@ -2692,7 +2693,7 @@ export type D2OrganisationUnitGroup = { favorites: string[]; featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; formName: string; - geometry: any; + geometry: unknown; groupSets: D2OrganisationUnitGroupSet[]; href: string; id: Id; @@ -2704,7 +2705,7 @@ export type D2OrganisationUnitGroup = { organisationUnits: D2OrganisationUnit[]; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; symbol: string; translations: D2Translation[]; @@ -2743,7 +2744,7 @@ export type D2OrganisationUnitGroupSet = { dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; description: string; dimension: string; - dimensionItemKeywords: any; + dimensionItemKeywords: unknown; dimensionType: | "DATA_X" | "PROGRAM_DATA_ELEMENT" @@ -2775,7 +2776,7 @@ export type D2OrganisationUnitGroupSet = { href: string; id: Id; includeSubhierarchyInAnalytics: boolean; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2User; legendSet: D2LegendSet; @@ -2783,7 +2784,7 @@ export type D2OrganisationUnitGroupSet = { organisationUnitGroups: D2OrganisationUnitGroup[]; programStage: D2ProgramStage; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -2793,7 +2794,7 @@ export type D2OrganisationUnitGroupSet = { export type D2OrganisationUnitGroupSetDimension = { organisationUnitGroupSet: D2OrganisationUnitGroupSet; - organisationUnitGroups: any; + organisationUnitGroups: unknown; }; export type D2OrganisationUnitLevel = { @@ -2814,7 +2815,7 @@ export type D2OrganisationUnitLevel = { name: string; offlineLevels: number; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -2852,7 +2853,7 @@ export type D2Predictor = { sampleSkipTest: D2Expression; sequentialSampleCount: number; sequentialSkipCount: number; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -2878,7 +2879,7 @@ export type D2PredictorGroup = { name: string; predictors: D2Predictor[]; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -2935,7 +2936,7 @@ export type D2Program = { relatedProgram: D2Program; selectEnrollmentDatesInFuture: boolean; selectIncidentDatesInFuture: boolean; - sharing: any; + sharing: Sharing; shortName: string; skipOffline: boolean; style: D2Style; @@ -3010,7 +3011,7 @@ export type D2ProgramDataElementDimensionItem = { periodOffset: number; program: D2Program; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -3112,7 +3113,7 @@ export type D2ProgramIndicator = { program: D2Program; programIndicatorGroups: D2ProgramIndicatorGroup[]; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; translations: D2Translation[]; @@ -3139,7 +3140,7 @@ export type D2ProgramIndicatorGroup = { name: string; programIndicators: D2ProgramIndicator[]; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -3154,7 +3155,7 @@ export type D2ProgramInstance = { created: string; createdAtClient: string; createdBy: D2User; - createdByUserInfo: any; + createdByUserInfo: unknown; deleted: boolean; displayName: string; endDate: string; @@ -3163,25 +3164,25 @@ export type D2ProgramInstance = { favorite: boolean; favorites: string[]; followup: boolean; - geometry: any; + geometry: unknown; href: string; id: Id; incidentDate: string; lastUpdated: string; lastUpdatedAtClient: string; lastUpdatedBy: D2User; - lastUpdatedByUserInfo: any; + lastUpdatedByUserInfo: unknown; messageConversations: D2MessageConversation[]; name: string; organisationUnit: D2OrganisationUnit; program: D2Program; programStageInstances: D2ProgramStageInstance[]; publicAccess: string; - relationshipItems: any[]; - sharing: any; + relationshipItems: unknown[]; + sharing: Sharing; status: "ACTIVE" | "COMPLETED" | "CANCELLED"; storedBy: string; - trackedEntityComments: any[]; + trackedEntityComments: unknown[]; trackedEntityInstance: D2TrackedEntityInstance; translations: D2Translation[]; user: D2User; @@ -3231,7 +3232,7 @@ export type D2ProgramNotificationTemplate = { recipientUserGroup: D2UserGroup; relativeScheduledDays: number; sendRepeatable: boolean; - sharing: any; + sharing: Sharing; subjectTemplate: string; translations: D2Translation[]; user: D2User; @@ -3261,7 +3262,7 @@ export type D2ProgramRule = { programRuleActions: D2ProgramRuleAction[]; programStage: D2ProgramStage; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -3315,7 +3316,7 @@ export type D2ProgramRuleAction = { programStage: D2ProgramStage; programStageSection: D2ProgramStageSection; publicAccess: string; - sharing: any; + sharing: Sharing; templateUid: string; trackedEntityAttribute: D2TrackedEntityAttribute; translations: D2Translation[]; @@ -3350,7 +3351,7 @@ export type D2ProgramRuleVariable = { | "TEI_ATTRIBUTE"; programStage: D2ProgramStage; publicAccess: string; - sharing: any; + sharing: Sharing; trackedEntityAttribute: D2TrackedEntityAttribute; translations: D2Translation[]; useCodeForOptionSet: boolean; @@ -3381,8 +3382,8 @@ export type D2ProgramSection = { name: string; program: D2Program; publicAccess: string; - renderType: any; - sharing: any; + renderType: unknown; + sharing: Sharing; shortName: string; sortOrder: number; style: D2Style; @@ -3440,7 +3441,7 @@ export type D2ProgramStage = { remindCompleted: boolean; repeatable: boolean; reportDateToUse: string; - sharing: any; + sharing: Sharing; shortName: string; sortOrder: number; standardInterval: number; @@ -3475,8 +3476,8 @@ export type D2ProgramStageDataElement = { programStage: D2ProgramStage; publicAccess: string; renderOptionsAsRadio: boolean; - renderType: any; - sharing: any; + renderType: unknown; + sharing: Sharing; skipAnalytics: boolean; skipSynchronization: boolean; sortOrder: number; @@ -3492,7 +3493,7 @@ export type D2ProgramStageInstance = { attributeOptionCombo: D2CategoryOptionCombo; attributeValues: D2AttributeValue[]; code: Id; - comments: any[]; + comments: unknown[]; completed: boolean; completedBy: string; completedDate: string; @@ -3500,30 +3501,30 @@ export type D2ProgramStageInstance = { created: string; createdAtClient: string; createdBy: D2User; - createdByUserInfo: any; + createdByUserInfo: unknown; deleted: boolean; displayName: string; dueDate: string; - eventDataValues: any[]; + eventDataValues: unknown[]; eventDate: string; externalAccess: boolean; favorite: boolean; favorites: string[]; - geometry: any; + geometry: unknown; href: string; id: Id; lastUpdated: string; lastUpdatedAtClient: string; lastUpdatedBy: D2User; - lastUpdatedByUserInfo: any; + lastUpdatedByUserInfo: unknown; messageConversations: D2MessageConversation[]; name: string; organisationUnit: D2OrganisationUnit; programInstance: D2ProgramInstance; programStage: D2ProgramStage; publicAccess: string; - relationshipItems: any[]; - sharing: any; + relationshipItems: unknown[]; + sharing: Sharing; status: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; storedBy: string; translations: D2Translation[]; @@ -3541,7 +3542,7 @@ export type D2ProgramStageInstanceFilter = { description: string; displayDescription: string; displayName: string; - eventQueryCriteria: any; + eventQueryCriteria: unknown; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -3553,7 +3554,7 @@ export type D2ProgramStageInstanceFilter = { program: Id; programStage: Id; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -3584,8 +3585,8 @@ export type D2ProgramStageSection = { programIndicators: D2ProgramIndicator[]; programStage: D2ProgramStage; publicAccess: string; - renderType: any; - sharing: any; + renderType: unknown; + sharing: Sharing; shortName: string; sortOrder: number; style: D2Style; @@ -3618,9 +3619,9 @@ export type D2ProgramTrackedEntityAttribute = { programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroup[]; publicAccess: string; renderOptionsAsRadio: boolean; - renderType: any; + renderType: unknown; searchable: boolean; - sharing: any; + sharing: Sharing; sortOrder: number; trackedEntityAttribute: D2TrackedEntityAttribute; translations: D2Translation[]; @@ -3715,7 +3716,7 @@ export type D2ProgramTrackedEntityAttributeDimensionItem = { periodOffset: number; program: D2Program; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -3745,7 +3746,7 @@ export type D2ProgramTrackedEntityAttributeGroup = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; uniqunessType: "NONE" | "STRICT" | "VALIDATION"; @@ -3773,7 +3774,7 @@ export type D2PushAnalysis = { name: string; publicAccess: string; recipientUserGroups: D2UserGroup[]; - sharing: any; + sharing: Sharing; title: string; translations: D2Translation[]; user: D2User; @@ -3796,7 +3797,7 @@ export type D2Relationship = { favorite: boolean; favorites: string[]; formName: string; - from: any; + from: unknown; href: string; id: Id; lastUpdated: string; @@ -3804,10 +3805,10 @@ export type D2Relationship = { name: string; publicAccess: string; relationshipType: D2RelationshipType; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; - to: any; + to: unknown; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -3836,7 +3837,7 @@ export type D2RelationshipType = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; toConstraint: D2RelationshipConstraint; toFromName: string; translations: D2Translation[]; @@ -3873,9 +3874,9 @@ export type D2Report = { lastUpdatedBy: D2User; name: string; publicAccess: string; - relativePeriods: any; + relativePeriods: unknown; reportParams: D2ReportingParams; - sharing: any; + sharing: Sharing; translations: D2Translation[]; type: "JASPER_REPORT_TABLE" | "JASPER_JDBC" | "HTML"; user: D2User; @@ -3949,7 +3950,7 @@ export type D2ReportingRate = { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2User; @@ -3992,9 +3993,9 @@ export type D2SMSCommand = { publicAccess: string; receivedMessage: string; separator: string; - sharing: any; - smsCodes: any[]; - specialCharacters: any[]; + sharing: Sharing; + smsCodes: unknown[]; + specialCharacters: unknown[]; successMessage: string; translations: D2Translation[]; user: D2User; @@ -4027,7 +4028,7 @@ export type D2Section = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; showColumnTotals: boolean; showRowTotals: boolean; sortOrder: number; @@ -4065,7 +4066,7 @@ export type D2SqlView = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; sqlQuery: string; translations: D2Translation[]; type: "VIEW" | "MATERIALIZED_VIEW" | "QUERY"; @@ -4143,7 +4144,7 @@ export type D2TrackedEntityAttribute = { pattern: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; skipSynchronization: boolean; sortOrderInListNoProgram: number; @@ -4205,28 +4206,28 @@ export type D2TrackedEntityInstance = { created: string; createdAtClient: string; createdBy: D2User; - createdByUserInfo: any; + createdByUserInfo: unknown; deleted: boolean; displayName: string; externalAccess: boolean; favorite: boolean; favorites: string[]; - geometry: any; + geometry: unknown; href: string; id: Id; inactive: boolean; lastUpdated: string; lastUpdatedAtClient: string; lastUpdatedBy: D2User; - lastUpdatedByUserInfo: any; + lastUpdatedByUserInfo: unknown; name: string; organisationUnit: D2OrganisationUnit; potentialDuplicate: boolean; programInstances: D2ProgramInstance[]; - programOwners: any[]; + programOwners: unknown[]; publicAccess: string; - relationshipItems: any[]; - sharing: any; + relationshipItems: unknown[]; + sharing: Sharing; storedBy: string; trackedEntityAttributeValues: D2TrackedEntityAttributeValue[]; trackedEntityType: D2TrackedEntityType; @@ -4245,9 +4246,9 @@ export type D2TrackedEntityInstanceFilter = { description: string; displayDescription: string; displayName: string; - enrollmentCreatedPeriod: any; + enrollmentCreatedPeriod: unknown; enrollmentStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; - eventFilters: any[]; + eventFilters: unknown[]; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -4259,7 +4260,7 @@ export type D2TrackedEntityInstanceFilter = { name: string; program: D2Program; publicAccess: string; - sharing: any; + sharing: Sharing; sortOrder: number; style: D2Style; translations: D2Translation[]; @@ -4299,7 +4300,7 @@ export type D2TrackedEntityType = { minAttributesRequiredToSearch: number; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; trackedEntityTypeAttributes: D2TrackedEntityTypeAttribute[]; @@ -4329,7 +4330,7 @@ export type D2TrackedEntityTypeAttribute = { name: string; publicAccess: string; searchable: boolean; - sharing: any; + sharing: Sharing; trackedEntityAttribute: D2TrackedEntityAttribute; trackedEntityType: D2TrackedEntityType; translations: D2Translation[]; @@ -4398,7 +4399,7 @@ export type D2User = { organisationUnits: D2OrganisationUnit[]; phoneNumber: string; publicAccess: string; - sharing: any; + sharing: Sharing; skype: string; surname: string; teiSearchOrganisationUnits: D2OrganisationUnit[]; @@ -4437,7 +4438,7 @@ export type D2UserAuthorityGroup = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -4473,7 +4474,7 @@ export type D2UserCredentials = { passwordLastUpdated: string; publicAccess: string; selfRegistered: boolean; - sharing: any; + sharing: Sharing; translations: D2Translation[]; twoFA: boolean; user: D2User; @@ -4502,7 +4503,7 @@ export type D2UserGroup = { managedGroups: D2UserGroup[]; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -4538,7 +4539,7 @@ export type D2ValidationNotificationTemplate = { publicAccess: string; recipientUserGroups: D2UserGroup[]; sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; - sharing: any; + sharing: Sharing; subjectTemplate: string; translations: D2Translation[]; user: D2User; @@ -4555,7 +4556,7 @@ export type D2ValidationResult = { leftsideValue: number; notificationSent: boolean; organisationUnit: D2OrganisationUnit; - period: any; + period: unknown; rightsideValue: number; validationRule: D2ValidationRule; }; @@ -4637,7 +4638,7 @@ export type D2ValidationRule = { periodType: string; publicAccess: string; rightSide: D2Expression; - sharing: any; + sharing: Sharing; shortName: string; skipFormValidation: boolean; translations: D2Translation[]; @@ -4664,7 +4665,7 @@ export type D2ValidationRuleGroup = { lastUpdatedBy: D2User; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2User; userAccesses: D2UserAccess[]; @@ -4692,9 +4693,9 @@ export type D2Visualization = { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValue[]; - axes: any[]; + axes: unknown[]; baseLineLabel: string; baseLineValue: number; categoryDimensions: D2CategoryDimension[]; @@ -4704,12 +4705,12 @@ export type D2Visualization = { colTotals: boolean; colorSet: string; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; createdBy: D2User; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimension[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimension[]; description: string; @@ -4731,11 +4732,11 @@ export type D2Visualization = { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fixColumnHeaders: boolean; fixRowHeaders: boolean; fontSize: "LARGE" | "NORMAL" | "SMALL"; - fontStyle: any; + fontStyle: unknown; formName: string; hideEmptyColumns: boolean; hideEmptyRowItems: "NONE" | "BEFORE_FIRST" | "AFTER_LAST" | "BEFORE_FIRST_AFTER_LAST" | "ALL"; @@ -4749,7 +4750,7 @@ export type D2Visualization = { itemOrganisationUnitGroups: D2OrganisationUnitGroup[]; lastUpdated: string; lastUpdatedBy: D2User; - legend: any; + legend: unknown; measureCriteria: string; name: string; noSpaceBetweenColumns: boolean; @@ -4759,10 +4760,10 @@ export type D2Visualization = { organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimension[]; organisationUnitLevels: number[]; organisationUnits: D2OrganisationUnit[]; - outlierAnalysis: any; + outlierAnalysis: unknown; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; rangeAxisDecimals: number; @@ -4772,15 +4773,15 @@ export type D2Visualization = { rangeAxisSteps: number; regression: boolean; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; + relativePeriods: unknown; reportingParams: D2ReportingParams; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; - series: any[]; - seriesKey: any; - sharing: any; + rows: unknown[]; + series: unknown[]; + seriesKey: unknown; + sharing: Sharing; shortName: string; showData: boolean; showDimensionLabels: boolean; @@ -4852,7 +4853,7 @@ export interface D2AnalyticsPeriodBoundarySchema { offsetPeriodType: string; offsetPeriods: number; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -4931,7 +4932,7 @@ export interface D2AnalyticsTableHookSchema { | "DATA_ELEMENT_CATEGORY_OPTION_COMBO" | "DATA_APPROVAL_REMAP_LEVEL" | "DATA_APPROVAL_MIN_LEVEL"; - sharing: any; + sharing: Sharing; sql: string; translations: D2Translation[]; user: D2UserSchema; @@ -4977,7 +4978,7 @@ export interface D2ApiTokenSchema { fields: { access: D2Access; attributeValues: D2AttributeValueSchema[]; - attributes: any[]; + attributes: unknown[]; code: Id; created: string; createdBy: D2UserSchema; @@ -4993,7 +4994,7 @@ export interface D2ApiTokenSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; type: "PERSONAL_ACCESS_TOKEN"; user: D2UserSchema; @@ -5087,7 +5088,7 @@ export interface D2AttributeSchema { programStageAttribute: boolean; publicAccess: string; sectionAttribute: boolean; - sharing: any; + sharing: Sharing; shortName: string; sortOrder: number; sqlViewAttribute: boolean; @@ -5281,7 +5282,7 @@ export interface D2CategorySchema { dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; description: string; dimension: string; - dimensionItemKeywords: any; + dimensionItemKeywords: unknown; dimensionType: | "DATA_X" | "PROGRAM_DATA_ELEMENT" @@ -5312,14 +5313,14 @@ export interface D2CategorySchema { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; name: string; programStage: D2ProgramStageSchema; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -5391,7 +5392,7 @@ export interface D2CategoryComboSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; skipTotal: boolean; translations: D2Translation[]; user: D2UserSchema; @@ -5439,7 +5440,7 @@ export interface D2CategoryComboSchema { export interface D2CategoryDimensionSchema { name: "D2CategoryDimension"; model: D2CategoryDimension; - fields: { category: D2CategorySchema; categoryOptions: any }; + fields: { category: D2CategorySchema; categoryOptions: unknown }; fieldPresets: { $all: Preset; $identifiable: Preset; @@ -5516,7 +5517,7 @@ export interface D2CategoryOptionSchema { organisationUnits: D2OrganisationUnitSchema[]; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; startDate: string; style: D2Style; @@ -5637,7 +5638,7 @@ export interface D2CategoryOptionComboSchema { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -5743,7 +5744,7 @@ export interface D2CategoryOptionGroupSchema { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -5823,7 +5824,7 @@ export interface D2CategoryOptionGroupSetSchema { dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; description: string; dimension: string; - dimensionItemKeywords: any; + dimensionItemKeywords: unknown; dimensionType: | "DATA_X" | "PROGRAM_DATA_ELEMENT" @@ -5854,14 +5855,14 @@ export interface D2CategoryOptionGroupSetSchema { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; name: string; programStage: D2ProgramStageSchema; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -5912,7 +5913,10 @@ export interface D2CategoryOptionGroupSetSchema { export interface D2CategoryOptionGroupSetDimensionSchema { name: "D2CategoryOptionGroupSetDimension"; model: D2CategoryOptionGroupSetDimension; - fields: { categoryOptionGroupSet: D2CategoryOptionGroupSetSchema; categoryOptionGroups: any }; + fields: { + categoryOptionGroupSet: D2CategoryOptionGroupSetSchema; + categoryOptionGroups: unknown; + }; fieldPresets: { $all: Preset; $identifiable: Preset; @@ -5952,7 +5956,7 @@ export interface D2ConstantSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -6021,15 +6025,15 @@ export interface D2DashboardSchema { formName: string; href: string; id: Id; - itemConfig: any; + itemConfig: unknown; itemCount: number; lastUpdated: string; lastUpdatedBy: D2UserSchema; - layout: any; + layout: unknown; name: string; publicAccess: string; restrictFilters: boolean; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -6112,7 +6116,7 @@ export interface D2DashboardItemSchema { reports: D2ReportSchema[]; resources: D2DocumentSchema[]; shape: "NORMAL" | "DOUBLE_WIDTH" | "FULL_WIDTH"; - sharing: any; + sharing: Sharing; text: string; translations: D2Translation[]; type: @@ -6213,7 +6217,7 @@ export interface D2DataApprovalLevelSchema { orgUnitLevel: number; orgUnitLevelName: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -6279,7 +6283,7 @@ export interface D2DataApprovalWorkflowSchema { name: string; periodType: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -6393,7 +6397,7 @@ export interface D2DataElementSchema { optionSetValue: boolean; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; translations: D2Translation[]; @@ -6427,7 +6431,7 @@ export interface D2DataElementSchema { | "URL" | "FILE_RESOURCE" | "IMAGE"; - valueTypeOptions: any; + valueTypeOptions: unknown; zeroIsSignificant: boolean; }; fieldPresets: { @@ -6560,7 +6564,7 @@ export interface D2DataElementGroupSchema { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -6641,7 +6645,7 @@ export interface D2DataElementGroupSetSchema { dataElementGroups: D2DataElementGroupSchema[]; description: string; dimension: string; - dimensionItemKeywords: any; + dimensionItemKeywords: unknown; dimensionType: | "DATA_X" | "PROGRAM_DATA_ELEMENT" @@ -6672,14 +6676,14 @@ export interface D2DataElementGroupSetSchema { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; name: string; programStage: D2ProgramStageSchema; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -6732,7 +6736,7 @@ export interface D2DataElementGroupSetSchema { export interface D2DataElementGroupSetDimensionSchema { name: "D2DataElementGroupSetDimension"; model: D2DataElementGroupSetDimension; - fields: { dataElementGroupSet: D2DataElementGroupSetSchema; dataElementGroups: any }; + fields: { dataElementGroupSet: D2DataElementGroupSetSchema; dataElementGroups: unknown }; fieldPresets: { $all: Preset; $identifiable: Preset; @@ -6809,7 +6813,7 @@ export interface D2DataElementOperandSchema { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -6846,7 +6850,7 @@ export interface D2DataEntryFormSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; style: "COMFORTABLE" | "NORMAL" | "COMPACT" | "NONE"; translations: D2Translation[]; user: D2UserSchema; @@ -6889,7 +6893,7 @@ export interface D2DataEntryFormSchema { export interface D2DataInputPeriodSchema { name: "D2DataInputPeriod"; model: D2DataInputPeriod; - fields: { closingDate: string; openingDate: string; period: any }; + fields: { closingDate: string; openingDate: string; period: unknown }; fieldPresets: { $all: Preset; $identifiable: Preset; @@ -6983,7 +6987,7 @@ export interface D2DataSetSchema { renderAsTabs: boolean; renderHorizontally: boolean; sections: D2SectionSchema[]; - sharing: any; + sharing: Sharing; shortName: string; skipOffline: boolean; style: D2Style; @@ -7139,7 +7143,7 @@ export interface D2DataSetNotificationTemplateSchema { recipientUserGroup: D2UserGroupSchema; relativeScheduledDays: number; sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; - sharing: any; + sharing: Sharing; subjectTemplate: string; translations: D2Translation[]; user: D2UserSchema; @@ -7217,7 +7221,7 @@ export interface D2DocumentSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; url: string; user: D2UserSchema; @@ -7288,7 +7292,7 @@ export interface D2EventChartSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValueDimension: D2TrackedEntityAttributeSchema; attributeValues: D2AttributeValueSchema[]; baseLineLabel: string; @@ -7298,12 +7302,12 @@ export interface D2EventChartSchema { code: Id; collapseDataDimensions: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; createdBy: D2UserSchema; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; dataElementValueDimension: D2DataElementSchema; @@ -7326,7 +7330,7 @@ export interface D2EventChartSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; formName: string; hideEmptyRowItems: | "NONE" @@ -7355,7 +7359,7 @@ export interface D2EventChartSchema { outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -7367,10 +7371,10 @@ export interface D2EventChartSchema { rangeAxisMinValue: number; rangeAxisSteps: number; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; + relativePeriods: unknown; rowDimensions: string[]; - rows: any[]; - sharing: any; + rows: unknown[]; + sharing: Sharing; shortName: string; showData: boolean; sortOrder: number; @@ -7408,7 +7412,7 @@ export interface D2EventChartSchema { userOrganisationUnit: boolean; userOrganisationUnitChildren: boolean; userOrganisationUnitGrandChildren: boolean; - value: any; + value: unknown; yearlySeries: string[]; }; fieldPresets: { @@ -7584,7 +7588,7 @@ export interface D2EventReportSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValueDimension: D2TrackedEntityAttributeSchema; attributeValues: D2AttributeValueSchema[]; categoryDimensions: D2CategoryDimensionSchema[]; @@ -7594,11 +7598,11 @@ export interface D2EventReportSchema { colTotals: boolean; collapseDataDimensions: boolean; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; createdBy: D2UserSchema; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; dataElementValueDimension: D2DataElementSchema; @@ -7618,7 +7622,7 @@ export interface D2EventReportSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fontSize: "LARGE" | "NORMAL" | "SMALL"; formName: string; hideEmptyRows: boolean; @@ -7638,18 +7642,18 @@ export interface D2EventReportSchema { organisationUnits: D2OrganisationUnitSchema[]; outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2MapSchema; - periods: any[]; + periods: unknown[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; programStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; publicAccess: string; - relativePeriods: any; + relativePeriods: unknown; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; - sharing: any; + rows: unknown[]; + sharing: Sharing; shortName: string; showDimensionLabels: boolean; showHierarchy: boolean; @@ -7669,7 +7673,7 @@ export interface D2EventReportSchema { userOrganisationUnit: boolean; userOrganisationUnitChildren: boolean; userOrganisationUnitGrandChildren: boolean; - value: any; + value: unknown; }; fieldPresets: { $all: Preset; @@ -7860,7 +7864,7 @@ export interface D2ExternalFileResourceSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -7921,7 +7925,7 @@ export interface D2ExternalMapLayerSchema { mapService: "WMS" | "TMS" | "XYZ"; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; url: string; user: D2UserSchema; @@ -8005,7 +8009,7 @@ export interface D2FileResourceSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; storageStatus: "NONE" | "PENDING" | "FAILED" | "STORED"; translations: D2Translation[]; user: D2UserSchema; @@ -8136,7 +8140,7 @@ export interface D2IndicatorSchema { numeratorDescription: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; translations: D2Translation[]; @@ -8232,7 +8236,7 @@ export interface D2IndicatorGroupSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -8299,7 +8303,7 @@ export interface D2IndicatorGroupSetSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -8363,7 +8367,7 @@ export interface D2IndicatorTypeSchema { name: string; number: boolean; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -8424,12 +8428,12 @@ export interface D2InterpretationSchema { likedBy: D2UserSchema[]; likes: number; map: D2MapSchema; - mentions: any[]; + mentions: unknown[]; name: string; organisationUnit: D2OrganisationUnitSchema; - period: any; + period: unknown; publicAccess: string; - sharing: any; + sharing: Sharing; text: string; translations: D2Translation[]; type: @@ -8509,10 +8513,10 @@ export interface D2InterpretationCommentSchema { id: Id; lastUpdated: string; lastUpdatedBy: D2UserSchema; - mentions: any[]; + mentions: unknown[]; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; text: string; translations: D2Translation[]; user: D2UserSchema; @@ -8553,7 +8557,7 @@ export interface D2JobConfigurationSchema { favorites: string[]; href: string; id: Id; - jobParameters: any; + jobParameters: unknown; jobStatus: | "RUNNING" | "COMPLETED" @@ -8619,7 +8623,7 @@ export interface D2JobConfigurationSchema { nextExecutionTime: string; publicAccess: string; schedulingType: "CRON" | "FIXED_DELAY"; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -8694,7 +8698,7 @@ export interface D2KeyJsonValueSchema { name: string; namespace: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -8754,7 +8758,7 @@ export interface D2LegendSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; startValue: number; translations: D2Translation[]; user: D2UserSchema; @@ -8816,7 +8820,7 @@ export interface D2LegendSetSchema { legends: D2LegendSchema[]; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; symbolizer: string; translations: D2Translation[]; user: D2UserSchema; @@ -8889,7 +8893,7 @@ export interface D2MapSchema { mapViews: D2MapViewSchema[]; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; subscribed: boolean; subscribers: string[]; @@ -8974,7 +8978,7 @@ export interface D2MapViewSchema { | "CUSTOM" | "DEFAULT"; areaRadius: number; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueSchema[]; categoryDimensions: D2CategoryDimensionSchema[]; categoryOptionGroupSetDimensions: D2CategoryOptionGroupSetDimensionSchema[]; @@ -8984,12 +8988,12 @@ export interface D2MapViewSchema { colorLow: string; colorScale: string; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; config: string; created: string; createdBy: D2UserSchema; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; description: string; @@ -9010,7 +9014,7 @@ export interface D2MapViewSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; followUp: boolean; formName: string; hidden: boolean; @@ -9049,7 +9053,7 @@ export interface D2MapViewSchema { parentGraph: string; parentGraphMap: D2MapSchema; parentLevel: number; - periods: any[]; + periods: unknown[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -9057,10 +9061,10 @@ export interface D2MapViewSchema { publicAccess: string; radiusHigh: number; radiusLow: number; - relativePeriods: any; + relativePeriods: unknown; renderingStrategy: "SINGLE" | "SPLIT_BY_PERIOD" | "TIMELINE"; - rows: any[]; - sharing: any; + rows: unknown[]; + sharing: Sharing; shortName: string; sortOrder: number; startDate: string; @@ -9244,12 +9248,12 @@ export interface D2MessageConversationSchema { lastUpdatedBy: D2UserSchema; messageCount: number; messageType: "PRIVATE" | "SYSTEM" | "VALIDATION_RESULT" | "TICKET"; - messages: any[]; + messages: unknown[]; name: string; priority: "NONE" | "LOW" | "MEDIUM" | "HIGH"; publicAccess: string; read: boolean; - sharing: any; + sharing: Sharing; status: "NONE" | "OPEN" | "PENDING" | "INVALID" | "SOLVED"; subject: string; translations: D2Translation[]; @@ -9257,7 +9261,7 @@ export interface D2MessageConversationSchema { userAccesses: D2UserAccessSchema[]; userFirstname: string; userGroupAccesses: D2UserGroupAccessSchema[]; - userMessages: any[]; + userMessages: unknown[]; userSurname: string; }; fieldPresets: { @@ -9322,7 +9326,7 @@ export interface D2MetadataVersionSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; type: "BEST_EFFORT" | "ATOMIC"; user: D2UserSchema; @@ -9409,7 +9413,7 @@ export interface D2OAuth2ClientSchema { publicAccess: string; redirectUris: string[]; secret: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -9473,7 +9477,7 @@ export interface D2OptionSchema { name: string; optionSet: D2OptionSetSchema; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; sortOrder: number; style: D2Style; @@ -9582,7 +9586,7 @@ export interface D2OptionGroupSchema { options: D2OptionSchema[]; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -9658,7 +9662,7 @@ export interface D2OptionGroupSetSchema { dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; description: string; dimension: string; - dimensionItemKeywords: any; + dimensionItemKeywords: unknown; dimensionType: | "DATA_X" | "PROGRAM_DATA_ELEMENT" @@ -9689,7 +9693,7 @@ export interface D2OptionGroupSetSchema { formName: string; href: string; id: Id; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; @@ -9698,7 +9702,7 @@ export interface D2OptionGroupSetSchema { optionSet: D2OptionSetSchema; programStage: D2ProgramStageSchema; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -9764,7 +9768,7 @@ export interface D2OptionSetSchema { name: string; options: D2OptionSchema[]; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -9896,7 +9900,7 @@ export interface D2OrganisationUnitSchema { favorite: boolean; favorites: string[]; formName: string; - geometry: any; + geometry: unknown; href: string; id: Id; image: D2FileResourceSchema; @@ -9916,7 +9920,7 @@ export interface D2OrganisationUnitSchema { phoneNumber: string; programs: D2ProgramSchema[]; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; type: string; @@ -10046,7 +10050,7 @@ export interface D2OrganisationUnitGroupSchema { favorites: string[]; featureType: "NONE" | "MULTI_POLYGON" | "POLYGON" | "POINT" | "SYMBOL"; formName: string; - geometry: any; + geometry: unknown; groupSets: D2OrganisationUnitGroupSetSchema[]; href: string; id: Id; @@ -10058,7 +10062,7 @@ export interface D2OrganisationUnitGroupSchema { organisationUnits: D2OrganisationUnitSchema[]; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; symbol: string; translations: D2Translation[]; @@ -10143,7 +10147,7 @@ export interface D2OrganisationUnitGroupSetSchema { dataDimensionType: "DISAGGREGATION" | "ATTRIBUTE"; description: string; dimension: string; - dimensionItemKeywords: any; + dimensionItemKeywords: unknown; dimensionType: | "DATA_X" | "PROGRAM_DATA_ELEMENT" @@ -10175,7 +10179,7 @@ export interface D2OrganisationUnitGroupSetSchema { href: string; id: Id; includeSubhierarchyInAnalytics: boolean; - items: any[]; + items: unknown[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; legendSet: D2LegendSetSchema; @@ -10183,7 +10187,7 @@ export interface D2OrganisationUnitGroupSetSchema { organisationUnitGroups: D2OrganisationUnitGroupSchema[]; programStage: D2ProgramStageSchema; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -10240,7 +10244,7 @@ export interface D2OrganisationUnitGroupSetDimensionSchema { model: D2OrganisationUnitGroupSetDimension; fields: { organisationUnitGroupSet: D2OrganisationUnitGroupSetSchema; - organisationUnitGroups: any; + organisationUnitGroups: unknown; }; fieldPresets: { $all: Preset< @@ -10281,7 +10285,7 @@ export interface D2OrganisationUnitLevelSchema { name: string; offlineLevels: number; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -10352,7 +10356,7 @@ export interface D2PredictorSchema { sampleSkipTest: D2ExpressionSchema; sequentialSampleCount: number; sequentialSkipCount: number; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -10428,7 +10432,7 @@ export interface D2PredictorGroupSchema { name: string; predictors: D2PredictorSchema[]; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -10522,7 +10526,7 @@ export interface D2ProgramSchema { relatedProgram: D2ProgramSchema; selectEnrollmentDatesInFuture: boolean; selectIncidentDatesInFuture: boolean; - sharing: any; + sharing: Sharing; shortName: string; skipOffline: boolean; style: D2Style; @@ -10699,7 +10703,7 @@ export interface D2ProgramDataElementDimensionItemSchema { periodOffset: number; program: D2ProgramSchema; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -10812,7 +10816,7 @@ export interface D2ProgramIndicatorSchema { program: D2ProgramSchema; programIndicatorGroups: D2ProgramIndicatorGroupSchema[]; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; translations: D2Translation[]; @@ -10905,7 +10909,7 @@ export interface D2ProgramIndicatorGroupSchema { name: string; programIndicators: D2ProgramIndicatorSchema[]; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -10957,7 +10961,7 @@ export interface D2ProgramInstanceSchema { created: string; createdAtClient: string; createdBy: D2UserSchema; - createdByUserInfo: any; + createdByUserInfo: unknown; deleted: boolean; displayName: string; endDate: string; @@ -10966,25 +10970,25 @@ export interface D2ProgramInstanceSchema { favorite: boolean; favorites: string[]; followup: boolean; - geometry: any; + geometry: unknown; href: string; id: Id; incidentDate: string; lastUpdated: string; lastUpdatedAtClient: string; lastUpdatedBy: D2UserSchema; - lastUpdatedByUserInfo: any; + lastUpdatedByUserInfo: unknown; messageConversations: D2MessageConversationSchema[]; name: string; organisationUnit: D2OrganisationUnitSchema; program: D2ProgramSchema; programStageInstances: D2ProgramStageInstanceSchema[]; publicAccess: string; - relationshipItems: any[]; - sharing: any; + relationshipItems: unknown[]; + sharing: Sharing; status: "ACTIVE" | "COMPLETED" | "CANCELLED"; storedBy: string; - trackedEntityComments: any[]; + trackedEntityComments: unknown[]; trackedEntityInstance: D2TrackedEntityInstanceSchema; translations: D2Translation[]; user: D2UserSchema; @@ -11093,7 +11097,7 @@ export interface D2ProgramNotificationTemplateSchema { recipientUserGroup: D2UserGroupSchema; relativeScheduledDays: number; sendRepeatable: boolean; - sharing: any; + sharing: Sharing; subjectTemplate: string; translations: D2Translation[]; user: D2UserSchema; @@ -11176,7 +11180,7 @@ export interface D2ProgramRuleSchema { programRuleActions: D2ProgramRuleActionSchema[]; programStage: D2ProgramStageSchema; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -11271,7 +11275,7 @@ export interface D2ProgramRuleActionSchema { programStage: D2ProgramStageSchema; programStageSection: D2ProgramStageSectionSchema; publicAccess: string; - sharing: any; + sharing: Sharing; templateUid: string; trackedEntityAttribute: D2TrackedEntityAttributeSchema; translations: D2Translation[]; @@ -11363,7 +11367,7 @@ export interface D2ProgramRuleVariableSchema { | "TEI_ATTRIBUTE"; programStage: D2ProgramStageSchema; publicAccess: string; - sharing: any; + sharing: Sharing; trackedEntityAttribute: D2TrackedEntityAttributeSchema; translations: D2Translation[]; useCodeForOptionSet: boolean; @@ -11435,8 +11439,8 @@ export interface D2ProgramSectionSchema { name: string; program: D2ProgramSchema; publicAccess: string; - renderType: any; - sharing: any; + renderType: unknown; + sharing: Sharing; shortName: string; sortOrder: number; style: D2Style; @@ -11537,7 +11541,7 @@ export interface D2ProgramStageSchema { remindCompleted: boolean; repeatable: boolean; reportDateToUse: string; - sharing: any; + sharing: Sharing; shortName: string; sortOrder: number; standardInterval: number; @@ -11665,8 +11669,8 @@ export interface D2ProgramStageDataElementSchema { programStage: D2ProgramStageSchema; publicAccess: string; renderOptionsAsRadio: boolean; - renderType: any; - sharing: any; + renderType: unknown; + sharing: Sharing; skipAnalytics: boolean; skipSynchronization: boolean; sortOrder: number; @@ -11729,7 +11733,7 @@ export interface D2ProgramStageInstanceSchema { attributeOptionCombo: D2CategoryOptionComboSchema; attributeValues: D2AttributeValueSchema[]; code: Id; - comments: any[]; + comments: unknown[]; completed: boolean; completedBy: string; completedDate: string; @@ -11737,30 +11741,30 @@ export interface D2ProgramStageInstanceSchema { created: string; createdAtClient: string; createdBy: D2UserSchema; - createdByUserInfo: any; + createdByUserInfo: unknown; deleted: boolean; displayName: string; dueDate: string; - eventDataValues: any[]; + eventDataValues: unknown[]; eventDate: string; externalAccess: boolean; favorite: boolean; favorites: string[]; - geometry: any; + geometry: unknown; href: string; id: Id; lastUpdated: string; lastUpdatedAtClient: string; lastUpdatedBy: D2UserSchema; - lastUpdatedByUserInfo: any; + lastUpdatedByUserInfo: unknown; messageConversations: D2MessageConversationSchema[]; name: string; organisationUnit: D2OrganisationUnitSchema; programInstance: D2ProgramInstanceSchema; programStage: D2ProgramStageSchema; publicAccess: string; - relationshipItems: any[]; - sharing: any; + relationshipItems: unknown[]; + sharing: Sharing; status: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; storedBy: string; translations: D2Translation[]; @@ -11842,7 +11846,7 @@ export interface D2ProgramStageInstanceFilterSchema { description: string; displayDescription: string; displayName: string; - eventQueryCriteria: any; + eventQueryCriteria: unknown; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -11854,7 +11858,7 @@ export interface D2ProgramStageInstanceFilterSchema { program: Id; programStage: Id; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -11924,8 +11928,8 @@ export interface D2ProgramStageSectionSchema { programIndicators: D2ProgramIndicatorSchema[]; programStage: D2ProgramStageSchema; publicAccess: string; - renderType: any; - sharing: any; + renderType: unknown; + sharing: Sharing; shortName: string; sortOrder: number; style: D2Style; @@ -12003,9 +12007,9 @@ export interface D2ProgramTrackedEntityAttributeSchema { programTrackedEntityAttributeGroups: D2ProgramTrackedEntityAttributeGroupSchema[]; publicAccess: string; renderOptionsAsRadio: boolean; - renderType: any; + renderType: unknown; searchable: boolean; - sharing: any; + sharing: Sharing; sortOrder: number; trackedEntityAttribute: D2TrackedEntityAttributeSchema; translations: D2Translation[]; @@ -12145,7 +12149,7 @@ export interface D2ProgramTrackedEntityAttributeDimensionItemSchema { periodOffset: number; program: D2ProgramSchema; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -12192,7 +12196,7 @@ export interface D2ProgramTrackedEntityAttributeGroupSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; uniqunessType: "NONE" | "STRICT" | "VALIDATION"; @@ -12259,7 +12263,7 @@ export interface D2PushAnalysisSchema { name: string; publicAccess: string; recipientUserGroups: D2UserGroupSchema[]; - sharing: any; + sharing: Sharing; title: string; translations: D2Translation[]; user: D2UserSchema; @@ -12317,7 +12321,7 @@ export interface D2RelationshipSchema { favorite: boolean; favorites: string[]; formName: string; - from: any; + from: unknown; href: string; id: Id; lastUpdated: string; @@ -12325,10 +12329,10 @@ export interface D2RelationshipSchema { name: string; publicAccess: string; relationshipType: D2RelationshipTypeSchema; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; - to: any; + to: unknown; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -12394,7 +12398,7 @@ export interface D2RelationshipTypeSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; toConstraint: D2RelationshipConstraint; toFromName: string; translations: D2Translation[]; @@ -12476,9 +12480,9 @@ export interface D2ReportSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - relativePeriods: any; + relativePeriods: unknown; reportParams: D2ReportingParams; - sharing: any; + sharing: Sharing; translations: D2Translation[]; type: "JASPER_REPORT_TABLE" | "JASPER_JDBC" | "HTML"; user: D2UserSchema; @@ -12597,7 +12601,7 @@ export interface D2ReportingRateSchema { name: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; translations: D2Translation[]; user: D2UserSchema; @@ -12651,9 +12655,9 @@ export interface D2SMSCommandSchema { publicAccess: string; receivedMessage: string; separator: string; - sharing: any; - smsCodes: any[]; - specialCharacters: any[]; + sharing: Sharing; + smsCodes: unknown[]; + specialCharacters: unknown[]; successMessage: string; translations: D2Translation[]; user: D2UserSchema; @@ -12743,7 +12747,7 @@ export interface D2SectionSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; showColumnTotals: boolean; showRowTotals: boolean; sortOrder: number; @@ -12830,7 +12834,7 @@ export interface D2SqlViewSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; sqlQuery: string; translations: D2Translation[]; type: "VIEW" | "MATERIALIZED_VIEW" | "QUERY"; @@ -12949,7 +12953,7 @@ export interface D2TrackedEntityAttributeSchema { pattern: string; periodOffset: number; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; skipSynchronization: boolean; sortOrderInListNoProgram: number; @@ -13119,28 +13123,28 @@ export interface D2TrackedEntityInstanceSchema { created: string; createdAtClient: string; createdBy: D2UserSchema; - createdByUserInfo: any; + createdByUserInfo: unknown; deleted: boolean; displayName: string; externalAccess: boolean; favorite: boolean; favorites: string[]; - geometry: any; + geometry: unknown; href: string; id: Id; inactive: boolean; lastUpdated: string; lastUpdatedAtClient: string; lastUpdatedBy: D2UserSchema; - lastUpdatedByUserInfo: any; + lastUpdatedByUserInfo: unknown; name: string; organisationUnit: D2OrganisationUnitSchema; potentialDuplicate: boolean; programInstances: D2ProgramInstanceSchema[]; - programOwners: any[]; + programOwners: unknown[]; publicAccess: string; - relationshipItems: any[]; - sharing: any; + relationshipItems: unknown[]; + sharing: Sharing; storedBy: string; trackedEntityAttributeValues: D2TrackedEntityAttributeValueSchema[]; trackedEntityType: D2TrackedEntityTypeSchema; @@ -13158,8 +13162,8 @@ export interface D2TrackedEntityInstanceSchema { | "programOwners" | "code" | "storedBy" - | "programInstances" | "organisationUnit" + | "programInstances" | "createdAtClient" | "lastUpdatedByUserInfo" | "lastUpdated" @@ -13210,9 +13214,9 @@ export interface D2TrackedEntityInstanceFilterSchema { description: string; displayDescription: string; displayName: string; - enrollmentCreatedPeriod: any; + enrollmentCreatedPeriod: unknown; enrollmentStatus: "ACTIVE" | "COMPLETED" | "CANCELLED"; - eventFilters: any[]; + eventFilters: unknown[]; externalAccess: boolean; favorite: boolean; favorites: string[]; @@ -13224,7 +13228,7 @@ export interface D2TrackedEntityInstanceFilterSchema { name: string; program: D2ProgramSchema; publicAccess: string; - sharing: any; + sharing: Sharing; sortOrder: number; style: D2Style; translations: D2Translation[]; @@ -13332,7 +13336,7 @@ export interface D2TrackedEntityTypeSchema { minAttributesRequiredToSearch: number; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; shortName: string; style: D2Style; trackedEntityTypeAttributes: D2TrackedEntityTypeAttributeSchema[]; @@ -13413,7 +13417,7 @@ export interface D2TrackedEntityTypeAttributeSchema { name: string; publicAccess: string; searchable: boolean; - sharing: any; + sharing: Sharing; trackedEntityAttribute: D2TrackedEntityAttributeSchema; trackedEntityType: D2TrackedEntityTypeSchema; translations: D2Translation[]; @@ -13517,7 +13521,7 @@ export interface D2UserSchema { organisationUnits: D2OrganisationUnitSchema[]; phoneNumber: string; publicAccess: string; - sharing: any; + sharing: Sharing; skype: string; surname: string; teiSearchOrganisationUnits: D2OrganisationUnitSchema[]; @@ -13642,7 +13646,7 @@ export interface D2UserAuthorityGroupSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -13715,7 +13719,7 @@ export interface D2UserCredentialsSchema { passwordLastUpdated: string; publicAccess: string; selfRegistered: boolean; - sharing: any; + sharing: Sharing; translations: D2Translation[]; twoFA: boolean; user: D2UserSchema; @@ -13803,7 +13807,7 @@ export interface D2UserGroupSchema { managedGroups: D2UserGroupSchema[]; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -13887,7 +13891,7 @@ export interface D2ValidationNotificationTemplateSchema { publicAccess: string; recipientUserGroups: D2UserGroupSchema[]; sendStrategy: "COLLECTIVE_SUMMARY" | "SINGLE_NOTIFICATION"; - sharing: any; + sharing: Sharing; subjectTemplate: string; translations: D2Translation[]; user: D2UserSchema; @@ -13945,7 +13949,7 @@ export interface D2ValidationResultSchema { leftsideValue: number; notificationSent: boolean; organisationUnit: D2OrganisationUnitSchema; - period: any; + period: unknown; rightsideValue: number; validationRule: D2ValidationRuleSchema; }; @@ -14044,7 +14048,7 @@ export interface D2ValidationRuleSchema { periodType: string; publicAccess: string; rightSide: D2ExpressionSchema; - sharing: any; + sharing: Sharing; shortName: string; skipFormValidation: boolean; translations: D2Translation[]; @@ -14126,7 +14130,7 @@ export interface D2ValidationRuleGroupSchema { lastUpdatedBy: D2UserSchema; name: string; publicAccess: string; - sharing: any; + sharing: Sharing; translations: D2Translation[]; user: D2UserSchema; userAccesses: D2UserAccessSchema[]; @@ -14193,9 +14197,9 @@ export interface D2VisualizationSchema { | "NONE" | "CUSTOM" | "DEFAULT"; - attributeDimensions: any[]; + attributeDimensions: unknown[]; attributeValues: D2AttributeValueSchema[]; - axes: any[]; + axes: unknown[]; baseLineLabel: string; baseLineValue: number; categoryDimensions: D2CategoryDimensionSchema[]; @@ -14205,12 +14209,12 @@ export interface D2VisualizationSchema { colTotals: boolean; colorSet: string; columnDimensions: string[]; - columns: any[]; + columns: unknown[]; completedOnly: boolean; created: string; createdBy: D2UserSchema; cumulativeValues: boolean; - dataDimensionItems: any[]; + dataDimensionItems: unknown[]; dataElementDimensions: D2TrackedEntityDataElementDimensionSchema[]; dataElementGroupSetDimensions: D2DataElementGroupSetDimensionSchema[]; description: string; @@ -14232,11 +14236,11 @@ export interface D2VisualizationSchema { favorite: boolean; favorites: string[]; filterDimensions: string[]; - filters: any[]; + filters: unknown[]; fixColumnHeaders: boolean; fixRowHeaders: boolean; fontSize: "LARGE" | "NORMAL" | "SMALL"; - fontStyle: any; + fontStyle: unknown; formName: string; hideEmptyColumns: boolean; hideEmptyRowItems: @@ -14255,7 +14259,7 @@ export interface D2VisualizationSchema { itemOrganisationUnitGroups: D2OrganisationUnitGroupSchema[]; lastUpdated: string; lastUpdatedBy: D2UserSchema; - legend: any; + legend: unknown; measureCriteria: string; name: string; noSpaceBetweenColumns: boolean; @@ -14265,10 +14269,10 @@ export interface D2VisualizationSchema { organisationUnitGroupSetDimensions: D2OrganisationUnitGroupSetDimensionSchema[]; organisationUnitLevels: number[]; organisationUnits: D2OrganisationUnitSchema[]; - outlierAnalysis: any; + outlierAnalysis: unknown; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: any[]; + periods: unknown[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; rangeAxisDecimals: number; @@ -14278,15 +14282,15 @@ export interface D2VisualizationSchema { rangeAxisSteps: number; regression: boolean; regressionType: "NONE" | "LINEAR" | "POLYNOMIAL" | "LOESS"; - relativePeriods: any; + relativePeriods: unknown; reportingParams: D2ReportingParams; rowDimensions: string[]; rowSubTotals: boolean; rowTotals: boolean; - rows: any[]; - series: any[]; - seriesKey: any; - sharing: any; + rows: unknown[]; + series: unknown[]; + seriesKey: unknown; + sharing: Sharing; shortName: string; showData: boolean; showDimensionLabels: boolean; @@ -14905,18 +14909,18 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "java.lang.String", }, - { - name: "access", - fieldName: "access", - propertyType: "COMPLEX", - klass: "org.hisp.dhis.security.acl.Access", - }, { name: "code", fieldName: "code", propertyType: "IDENTIFIER", klass: "java.lang.String", }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, { name: "publicAccess", @@ -14950,8 +14954,8 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "org.hisp.dhis.translation.Translation", }, - { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "key", fieldName: "key", propertyType: "TEXT", klass: "java.lang.String" }, { name: "lastUpdatedBy", @@ -15646,18 +15650,18 @@ export const models: Record = { propertyType: "CONSTANT", klass: "org.hisp.dhis.common.DataDimensionType", }, - { - name: "access", - fieldName: "access", - propertyType: "COMPLEX", - klass: "org.hisp.dhis.security.acl.Access", - }, { name: "code", fieldName: "code", propertyType: "IDENTIFIER", klass: "java.lang.String", }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, { name: "publicAccess", @@ -15685,7 +15689,6 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "org.hisp.dhis.translation.Translation", }, - { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, { name: "category", @@ -15695,6 +15698,7 @@ export const models: Record = { klass: "java.util.List", itemKlass: "org.hisp.dhis.category.Category", }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "lastUpdatedBy", fieldName: "lastUpdatedBy", @@ -17160,12 +17164,12 @@ export const models: Record = { propertyType: "BOOLEAN", klass: "java.lang.Boolean", }, - { name: "y", fieldName: "y", propertyType: "INTEGER", klass: "java.lang.Integer" }, { name: "interpretationLikeCount", propertyType: "INTEGER", klass: "java.lang.Integer", }, + { name: "y", fieldName: "y", propertyType: "INTEGER", klass: "java.lang.Integer" }, { name: "user", propertyType: "REFERENCE", klass: "org.hisp.dhis.user.User" }, { name: "favorite", propertyType: "BOOLEAN", klass: "java.lang.Boolean" }, ], @@ -26636,18 +26640,18 @@ export const models: Record = { propertyType: "IDENTIFIER", klass: "java.lang.String", }, - { - name: "storedBy", - fieldName: "storedBy", - propertyType: "TEXT", - klass: "java.lang.String", - }, { name: "access", fieldName: "access", propertyType: "COMPLEX", klass: "org.hisp.dhis.security.acl.Access", }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, { name: "endDate", fieldName: "endDate", @@ -28260,18 +28264,18 @@ export const models: Record = { propertyType: "IDENTIFIER", klass: "java.lang.String", }, - { - name: "storedBy", - fieldName: "storedBy", - propertyType: "TEXT", - klass: "java.lang.String", - }, { name: "access", fieldName: "access", propertyType: "COMPLEX", klass: "org.hisp.dhis.security.acl.Access", }, + { + name: "storedBy", + fieldName: "storedBy", + propertyType: "TEXT", + klass: "java.lang.String", + }, { name: "organisationUnit", fieldName: "organisationUnit", @@ -28514,18 +28518,18 @@ export const models: Record = { propertyType: "COMPLEX", klass: "org.hisp.dhis.programstagefilter.EventQueryCriteria", }, - { - name: "access", - fieldName: "access", - propertyType: "COMPLEX", - klass: "org.hisp.dhis.security.acl.Access", - }, { name: "code", fieldName: "code", propertyType: "IDENTIFIER", klass: "java.lang.String", }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, { name: "publicAccess", @@ -28565,8 +28569,8 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "org.hisp.dhis.translation.Translation", }, - { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "id", fieldName: "uid", propertyType: "IDENTIFIER", klass: "java.lang.String" }, + { name: "href", fieldName: "href", propertyType: "URL", klass: "java.lang.String" }, { name: "displayDescription", propertyType: "TEXT", klass: "java.lang.String" }, { name: "lastUpdatedBy", @@ -30856,18 +30860,18 @@ export const models: Record = { klass: "java.lang.Boolean", }, { name: "displayShortName", propertyType: "TEXT", klass: "java.lang.String" }, - { - name: "externalAccess", - fieldName: "externalAccess", - propertyType: "BOOLEAN", - klass: "java.lang.Boolean", - }, { name: "sortOrderInListNoProgram", fieldName: "sortOrderInListNoProgram", propertyType: "INTEGER", klass: "java.lang.Integer", }, + { + name: "externalAccess", + fieldName: "externalAccess", + propertyType: "BOOLEAN", + klass: "java.lang.Boolean", + }, { name: "periodOffset", fieldName: "periodOffset", @@ -31065,6 +31069,12 @@ export const models: Record = { propertyType: "IDENTIFIER", klass: "java.lang.String", }, + { + name: "access", + fieldName: "access", + propertyType: "COMPLEX", + klass: "org.hisp.dhis.security.acl.Access", + }, { name: "storedBy", fieldName: "storedBy", @@ -31072,10 +31082,10 @@ export const models: Record = { klass: "java.lang.String", }, { - name: "access", - fieldName: "access", - propertyType: "COMPLEX", - klass: "org.hisp.dhis.security.acl.Access", + name: "organisationUnit", + fieldName: "organisationUnit", + propertyType: "REFERENCE", + klass: "org.hisp.dhis.organisationunit.OrganisationUnit", }, { name: "programInstance", @@ -31085,12 +31095,6 @@ export const models: Record = { klass: "java.util.Set", itemKlass: "org.hisp.dhis.program.ProgramInstance", }, - { - name: "organisationUnit", - fieldName: "organisationUnit", - propertyType: "REFERENCE", - klass: "org.hisp.dhis.organisationunit.OrganisationUnit", - }, { name: "displayName", propertyType: "TEXT", klass: "java.lang.String" }, { name: "publicAccess", diff --git a/src/schemas/base.ts b/src/schemas/base.ts index c81db91..e51ff68 100644 --- a/src/schemas/base.ts +++ b/src/schemas/base.ts @@ -115,6 +115,23 @@ export interface Message extends MessageDestination { text?: string; } +/* 2.36 has moved plain access fields from models to sharing key */ + +type Access = string; + +interface IdAccess { + id: Id; + access: Access; +} + +export interface Sharing { + owner: Id; + public: Access; + users: Record; + userGroups: Record; + external: boolean; +} + /* 2.33 has removed attributeValue from the schema (why?), so we need to provide a model and schema */ export type D2AttributeValueGeneric = { diff --git a/src/scripts/generate-schemas.ts b/src/scripts/generate-schemas.ts index c1ea665..f27cdca 100644 --- a/src/scripts/generate-schemas.ts +++ b/src/scripts/generate-schemas.ts @@ -63,33 +63,34 @@ const interfaceFromClass: _.Dictionary", schema: "D2AttributeValueGenericSchema", }, - "org.hisp.dhis.eventdatavalue.EventDataValue": "any", - "org.hisp.dhis.common.DataDimensionItem": "any", - "org.hisp.dhis.common.DimensionalObject": "any", - "org.hisp.dhis.interpretation.Mention": "any", - "org.hisp.dhis.message.Message": "any", - "org.hisp.dhis.message.UserMessage": "any", - "org.hisp.dhis.period.Period": "any", - "org.hisp.dhis.period.RelativePeriods": "any", - "org.hisp.dhis.programstagefilter.EventQueryCriteria": "any", + "org.hisp.dhis.eventdatavalue.EventDataValue": "unknown", + "org.hisp.dhis.common.DataDimensionItem": "unknown", + "org.hisp.dhis.common.DimensionalObject": "unknown", + "org.hisp.dhis.interpretation.Mention": "unknown", + "org.hisp.dhis.message.Message": "unknown", + "org.hisp.dhis.message.UserMessage": "unknown", + "org.hisp.dhis.period.Period": "unknown", + "org.hisp.dhis.period.RelativePeriods": "unknown", + "org.hisp.dhis.programstagefilter.EventQueryCriteria": "unknown", "org.hisp.dhis.relationship.RelationshipConstraint": "D2RelationshipConstraint", - "org.hisp.dhis.relationship.RelationshipItem": "any", - "org.hisp.dhis.render.DeviceRenderTypeMap": "any", - "org.hisp.dhis.reporttable.ReportParams": "any", - "org.hisp.dhis.sms.command.code.SMSCode": "any", - "org.hisp.dhis.sms.command.SMSSpecialCharacter": "any", - "org.hisp.dhis.trackedentityattributevalue.TrackedEntityAttributeValue": "any", - "org.hisp.dhis.trackedentitycomment.TrackedEntityComment": "any", - "org.hisp.dhis.trackedentityfilter.EventFilter": "any", - "org.hisp.dhis.trackedentityfilter.FilterPeriod": "any", - "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension": "any", - "org.hisp.dhis.trackedentity.TrackedEntityProgramOwner": "any", - "org.hisp.dhis.common.DimensionalItemObject": "any", + "org.hisp.dhis.relationship.RelationshipItem": "unknown", + "org.hisp.dhis.render.DeviceRenderTypeMap": "unknown", + "org.hisp.dhis.reporttable.ReportParams": "unknown", + "org.hisp.dhis.sms.command.code.SMSCode": "unknown", + "org.hisp.dhis.sms.command.SMSSpecialCharacter": "unknown", + "org.hisp.dhis.trackedentityattributevalue.TrackedEntityAttributeValue": "unknown", + "org.hisp.dhis.trackedentitycomment.TrackedEntityComment": "unknown", + "org.hisp.dhis.trackedentityfilter.EventFilter": "unknown", + "org.hisp.dhis.trackedentityfilter.FilterPeriod": "unknown", + "org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension": "unknown", + "org.hisp.dhis.trackedentity.TrackedEntityProgramOwner": "unknown", + "org.hisp.dhis.user.sharing.Sharing": "Sharing", + "org.hisp.dhis.common.DimensionalItemObject": "unknown", "org.hisp.dhis.visualization.ReportingParams": "D2ReportingParams", "org.hisp.dhis.visualization.Axis": "D2Axis", "java.lang.Object": "object", @@ -165,8 +166,8 @@ function getInterface(schemas: Schemas, property: SchemaProperty, suffix?: strin return suffix === "Schema" ? value.schema : value.type; } } else { - console.log(`Unsupported complex type, default to any: ${property.klass}`); - return "any"; + console.log(`Unsupported complex type, default to unknown: ${property.klass}`); + return "unknown"; } } @@ -258,7 +259,7 @@ async function generateSchema(instance: Instance) { Id, Preset, FieldPresets, D2SchemaProperties, D2Access, D2Translation, D2Geometry, D2Style, D2DimensionalKeywords, D2Expression, - D2RelationshipConstraint, D2ReportingParams, D2Axis, + D2RelationshipConstraint, D2ReportingParams, D2Axis, Sharing, D2AttributeValueGeneric, D2AttributeValueGenericSchema } from "../schemas/base"; From 1b298d5f97fe19e59e91722fdbc5aef58541654b Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Tue, 14 Dec 2021 10:18:34 +0100 Subject: [PATCH 18/24] Implement api/userLookup endpoint --- src/api/UserLookup.ts | 25 +++++++++++++++++++++++++ src/api/d2Api.ts | 6 ++++++ 2 files changed, 31 insertions(+) create mode 100644 src/api/UserLookup.ts diff --git a/src/api/UserLookup.ts b/src/api/UserLookup.ts new file mode 100644 index 0000000..7a797ae --- /dev/null +++ b/src/api/UserLookup.ts @@ -0,0 +1,25 @@ +import _ from "lodash"; + +import { D2ApiGeneric } from "./d2Api"; +import { Id } from "./base"; +import { CancelableResponse } from "../repositories/CancelableResponse"; + +export class UserLookup { + constructor(public api: D2ApiGeneric) {} + + get(id: Id): CancelableResponse { + return this.api.get(`/userLookup/${id}`); + } + + query(searchText: string): CancelableResponse { + return this.api.get(`/userLookup`, { query: searchText }); + } +} + +export interface UserInfo { + id: Id; + username: string; + firstName: string; + surname: string; + displayName: string; +} diff --git a/src/api/d2Api.ts b/src/api/d2Api.ts index 3e094d4..c2d1eb8 100644 --- a/src/api/d2Api.ts +++ b/src/api/d2Api.ts @@ -23,6 +23,7 @@ import { Sharing } from "./sharing"; import { System } from "./system"; import { D2ApiOptions, D2ApiRequest, IndexedModels } from "./types"; import { SqlViews } from "./SqlViews"; +import { UserLookup } from "./UserLookup"; export class D2ApiGeneric { public baseUrl: string; @@ -190,6 +191,11 @@ export abstract class D2ApiVersioned< get sqlViews() { return new SqlViews(this); } + + @cache() + get userLookup() { + return new UserLookup(this); + } } export { D2ApiOptions }; From bf32727f1265bbbfa7ffb198ba1aab6373b496a0 Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Tue, 14 Dec 2021 11:11:02 +0100 Subject: [PATCH 19/24] Remove userLookup --- src/api/UserLookup.ts | 25 ------------------------- src/api/d2Api.ts | 6 ------ 2 files changed, 31 deletions(-) delete mode 100644 src/api/UserLookup.ts diff --git a/src/api/UserLookup.ts b/src/api/UserLookup.ts deleted file mode 100644 index 7a797ae..0000000 --- a/src/api/UserLookup.ts +++ /dev/null @@ -1,25 +0,0 @@ -import _ from "lodash"; - -import { D2ApiGeneric } from "./d2Api"; -import { Id } from "./base"; -import { CancelableResponse } from "../repositories/CancelableResponse"; - -export class UserLookup { - constructor(public api: D2ApiGeneric) {} - - get(id: Id): CancelableResponse { - return this.api.get(`/userLookup/${id}`); - } - - query(searchText: string): CancelableResponse { - return this.api.get(`/userLookup`, { query: searchText }); - } -} - -export interface UserInfo { - id: Id; - username: string; - firstName: string; - surname: string; - displayName: string; -} diff --git a/src/api/d2Api.ts b/src/api/d2Api.ts index 8124d70..2996305 100644 --- a/src/api/d2Api.ts +++ b/src/api/d2Api.ts @@ -21,7 +21,6 @@ import { Metadata } from "./metadata"; import { Model } from "./model"; import { Sharing } from "./sharing"; import { SqlViews } from "./SqlViews"; -import { UserLookup } from "./UserLookup"; import { System } from "./system"; import { TrackedEntityInstances } from "./trackedEntityInstances"; import { D2ApiOptions, D2ApiRequest, IndexedModels } from "./types"; @@ -197,11 +196,6 @@ export abstract class D2ApiVersioned< get sqlViews() { return new SqlViews(this); } - - @cache() - get userLookup() { - return new UserLookup(this); - } } export { D2ApiOptions }; From dfd737f7ba9d90355462194a74675f2ffee0045e Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Tue, 14 Dec 2021 11:11:21 +0100 Subject: [PATCH 20/24] Set dataInputPeriods.period type --- src/scripts/generate-schemas.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/generate-schemas.ts b/src/scripts/generate-schemas.ts index f27cdca..0e78956 100644 --- a/src/scripts/generate-schemas.ts +++ b/src/scripts/generate-schemas.ts @@ -74,7 +74,7 @@ const interfaceFromClass: _.Dictionary Date: Tue, 14 Dec 2021 11:11:29 +0100 Subject: [PATCH 21/24] Update schemas --- src/2.34/schemas.ts | 37 +++++++++++++++++++------------------ src/2.35/schemas.ts | 37 +++++++++++++++++++------------------ src/2.36/schemas.ts | 37 +++++++++++++++++++------------------ src/2.37/schemas.ts | 29 +++++++++++++++-------------- 4 files changed, 72 insertions(+), 68 deletions(-) diff --git a/src/2.34/schemas.ts b/src/2.34/schemas.ts index 26ee643..47704c5 100644 --- a/src/2.34/schemas.ts +++ b/src/2.34/schemas.ts @@ -2,6 +2,7 @@ import { Id, + Ref, Preset, FieldPresets, D2SchemaProperties, @@ -632,7 +633,7 @@ export type D2Chart = { organisationUnits: D2OrganisationUnit[]; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; rangeAxisDecimals: number; @@ -1217,7 +1218,7 @@ export type D2DataEntryForm = { export type D2DataInputPeriod = { closingDate: string; openingDate: string; - period: unknown; + period: Ref; }; export type D2DataSet = { @@ -1455,7 +1456,7 @@ export type D2EventChart = { outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -1578,7 +1579,7 @@ export type D2EventReport = { organisationUnits: D2OrganisationUnit[]; outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2Map; - periods: unknown[]; + periods: Ref[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -1867,7 +1868,7 @@ export type D2Interpretation = { mentions: unknown[]; name: string; organisationUnit: D2OrganisationUnit; - period: unknown; + period: Ref; publicAccess: string; reportTable: D2ReportTable; text: string; @@ -2193,7 +2194,7 @@ export type D2MapView = { parentGraph: string; parentGraphMap: D2Map; parentLevel: number; - periods: unknown[]; + periods: Ref[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -3854,7 +3855,7 @@ export type D2ReportTable = { organisationUnitLevels: number[]; organisationUnits: D2OrganisationUnit[]; parentGraphMap: D2Map; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; regression: boolean; @@ -4521,7 +4522,7 @@ export type D2ValidationResult = { leftsideValue: number; notificationSent: boolean; organisationUnit: D2OrganisationUnit; - period: unknown; + period: Ref; rightsideValue: number; validationRule: D2ValidationRule; }; @@ -4714,7 +4715,7 @@ export type D2Visualization = { organisationUnits: D2OrganisationUnit[]; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; rangeAxisDecimals: number; @@ -5870,7 +5871,7 @@ export interface D2ChartSchema { organisationUnits: D2OrganisationUnitSchema[]; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; rangeAxisDecimals: number; @@ -6981,7 +6982,7 @@ export interface D2DataEntryFormSchema { export interface D2DataInputPeriodSchema { name: "D2DataInputPeriod"; model: D2DataInputPeriod; - fields: { closingDate: string; openingDate: string; period: unknown }; + fields: { closingDate: string; openingDate: string; period: Ref }; fieldPresets: { $all: Preset; $identifiable: Preset; @@ -7446,7 +7447,7 @@ export interface D2EventChartSchema { outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -7727,7 +7728,7 @@ export interface D2EventReportSchema { organisationUnits: D2OrganisationUnitSchema[]; outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2MapSchema; - periods: unknown[]; + periods: Ref[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -8492,7 +8493,7 @@ export interface D2InterpretationSchema { mentions: unknown[]; name: string; organisationUnit: D2OrganisationUnitSchema; - period: unknown; + period: Ref; publicAccess: string; reportTable: D2ReportTableSchema; text: string; @@ -9112,7 +9113,7 @@ export interface D2MapViewSchema { parentGraph: string; parentGraphMap: D2MapSchema; parentLevel: number; - periods: unknown[]; + periods: Ref[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -12592,7 +12593,7 @@ export interface D2ReportTableSchema { organisationUnitLevels: number[]; organisationUnits: D2OrganisationUnitSchema[]; parentGraphMap: D2MapSchema; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; regression: boolean; @@ -14018,7 +14019,7 @@ export interface D2ValidationResultSchema { leftsideValue: number; notificationSent: boolean; organisationUnit: D2OrganisationUnitSchema; - period: unknown; + period: Ref; rightsideValue: number; validationRule: D2ValidationRuleSchema; }; @@ -14335,7 +14336,7 @@ export interface D2VisualizationSchema { organisationUnits: D2OrganisationUnitSchema[]; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; rangeAxisDecimals: number; diff --git a/src/2.35/schemas.ts b/src/2.35/schemas.ts index 8da6454..8b0939c 100644 --- a/src/2.35/schemas.ts +++ b/src/2.35/schemas.ts @@ -2,6 +2,7 @@ import { Id, + Ref, Preset, FieldPresets, D2SchemaProperties, @@ -646,7 +647,7 @@ export type D2Chart = { organisationUnits: D2OrganisationUnit[]; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; rangeAxisDecimals: number; @@ -1199,7 +1200,7 @@ export type D2DataEntryForm = { export type D2DataInputPeriod = { closingDate: string; openingDate: string; - period: unknown; + period: Ref; }; export type D2DataSet = { @@ -1441,7 +1442,7 @@ export type D2EventChart = { outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -1567,7 +1568,7 @@ export type D2EventReport = { organisationUnits: D2OrganisationUnit[]; outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2Map; - periods: unknown[]; + periods: Ref[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -1860,7 +1861,7 @@ export type D2Interpretation = { mentions: unknown[]; name: string; organisationUnit: D2OrganisationUnit; - period: unknown; + period: Ref; publicAccess: string; reportTable: D2ReportTable; text: string; @@ -2190,7 +2191,7 @@ export type D2MapView = { parentGraph: string; parentGraphMap: D2Map; parentLevel: number; - periods: unknown[]; + periods: Ref[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -3876,7 +3877,7 @@ export type D2ReportTable = { organisationUnitLevels: number[]; organisationUnits: D2OrganisationUnit[]; parentGraphMap: D2Map; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; regression: boolean; @@ -4550,7 +4551,7 @@ export type D2ValidationResult = { leftsideValue: number; notificationSent: boolean; organisationUnit: D2OrganisationUnit; - period: unknown; + period: Ref; rightsideValue: number; validationRule: D2ValidationRule; }; @@ -4749,7 +4750,7 @@ export type D2Visualization = { organisationUnits: D2OrganisationUnit[]; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; rangeAxisDecimals: number; @@ -5921,7 +5922,7 @@ export interface D2ChartSchema { organisationUnits: D2OrganisationUnitSchema[]; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; rangeAxisDecimals: number; @@ -6940,7 +6941,7 @@ export interface D2DataEntryFormSchema { export interface D2DataInputPeriodSchema { name: "D2DataInputPeriod"; model: D2DataInputPeriod; - fields: { closingDate: string; openingDate: string; period: unknown }; + fields: { closingDate: string; openingDate: string; period: Ref }; fieldPresets: { $all: Preset; $identifiable: Preset; @@ -7409,7 +7410,7 @@ export interface D2EventChartSchema { outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -7693,7 +7694,7 @@ export interface D2EventReportSchema { organisationUnits: D2OrganisationUnitSchema[]; outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2MapSchema; - periods: unknown[]; + periods: Ref[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -8464,7 +8465,7 @@ export interface D2InterpretationSchema { mentions: unknown[]; name: string; organisationUnit: D2OrganisationUnitSchema; - period: unknown; + period: Ref; publicAccess: string; reportTable: D2ReportTableSchema; text: string; @@ -9088,7 +9089,7 @@ export interface D2MapViewSchema { parentGraph: string; parentGraphMap: D2MapSchema; parentLevel: number; - periods: unknown[]; + periods: Ref[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -12599,7 +12600,7 @@ export interface D2ReportTableSchema { organisationUnitLevels: number[]; organisationUnits: D2OrganisationUnitSchema[]; parentGraphMap: D2MapSchema; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; regression: boolean; @@ -14034,7 +14035,7 @@ export interface D2ValidationResultSchema { leftsideValue: number; notificationSent: boolean; organisationUnit: D2OrganisationUnitSchema; - period: unknown; + period: Ref; rightsideValue: number; validationRule: D2ValidationRuleSchema; }; @@ -14357,7 +14358,7 @@ export interface D2VisualizationSchema { organisationUnits: D2OrganisationUnitSchema[]; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; rangeAxisDecimals: number; diff --git a/src/2.36/schemas.ts b/src/2.36/schemas.ts index 2cffb80..cd68b82 100644 --- a/src/2.36/schemas.ts +++ b/src/2.36/schemas.ts @@ -2,6 +2,7 @@ import { Id, + Ref, Preset, FieldPresets, D2SchemaProperties, @@ -670,7 +671,7 @@ export type D2Chart = { organisationUnits: D2OrganisationUnit[]; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; rangeAxisDecimals: number; @@ -1249,7 +1250,7 @@ export type D2DataEntryForm = { export type D2DataInputPeriod = { closingDate: string; openingDate: string; - period: unknown; + period: Ref; }; export type D2DataSet = { @@ -1498,7 +1499,7 @@ export type D2EventChart = { outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -1628,7 +1629,7 @@ export type D2EventReport = { organisationUnits: D2OrganisationUnit[]; outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2Map; - periods: unknown[]; + periods: Ref[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -1940,7 +1941,7 @@ export type D2Interpretation = { mentions: unknown[]; name: string; organisationUnit: D2OrganisationUnit; - period: unknown; + period: Ref; publicAccess: string; reportTable: D2ReportTable; sharing: Sharing; @@ -2285,7 +2286,7 @@ export type D2MapView = { parentGraph: string; parentGraphMap: D2Map; parentLevel: number; - periods: unknown[]; + periods: Ref[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -4047,7 +4048,7 @@ export type D2ReportTable = { organisationUnitLevels: number[]; organisationUnits: D2OrganisationUnit[]; parentGraphMap: D2Map; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; regression: boolean; @@ -4750,7 +4751,7 @@ export type D2ValidationResult = { leftsideValue: number; notificationSent: boolean; organisationUnit: D2OrganisationUnit; - period: unknown; + period: Ref; rightsideValue: number; validationRule: D2ValidationRule; }; @@ -4958,7 +4959,7 @@ export type D2Visualization = { outlierAnalysis: unknown; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; rangeAxisDecimals: number; @@ -6143,7 +6144,7 @@ export interface D2ChartSchema { organisationUnits: D2OrganisationUnitSchema[]; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; rangeAxisDecimals: number; @@ -7163,7 +7164,7 @@ export interface D2DataEntryFormSchema { export interface D2DataInputPeriodSchema { name: "D2DataInputPeriod"; model: D2DataInputPeriod; - fields: { closingDate: string; openingDate: string; period: unknown }; + fields: { closingDate: string; openingDate: string; period: Ref }; fieldPresets: { $all: Preset; $identifiable: Preset; @@ -7629,7 +7630,7 @@ export interface D2EventChartSchema { outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -7911,7 +7912,7 @@ export interface D2EventReportSchema { organisationUnits: D2OrganisationUnitSchema[]; outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2MapSchema; - periods: unknown[]; + periods: Ref[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -8693,7 +8694,7 @@ export interface D2InterpretationSchema { mentions: unknown[]; name: string; organisationUnit: D2OrganisationUnitSchema; - period: unknown; + period: Ref; publicAccess: string; reportTable: D2ReportTableSchema; sharing: Sharing; @@ -9314,7 +9315,7 @@ export interface D2MapViewSchema { parentGraph: string; parentGraphMap: D2MapSchema; parentLevel: number; - periods: unknown[]; + periods: Ref[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -12851,7 +12852,7 @@ export interface D2ReportTableSchema { organisationUnitLevels: number[]; organisationUnits: D2OrganisationUnitSchema[]; parentGraphMap: D2MapSchema; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; regression: boolean; @@ -14293,7 +14294,7 @@ export interface D2ValidationResultSchema { leftsideValue: number; notificationSent: boolean; organisationUnit: D2OrganisationUnitSchema; - period: unknown; + period: Ref; rightsideValue: number; validationRule: D2ValidationRuleSchema; }; @@ -14617,7 +14618,7 @@ export interface D2VisualizationSchema { outlierAnalysis: unknown; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; rangeAxisDecimals: number; diff --git a/src/2.37/schemas.ts b/src/2.37/schemas.ts index 1c46969..56a8433 100644 --- a/src/2.37/schemas.ts +++ b/src/2.37/schemas.ts @@ -2,6 +2,7 @@ import { Id, + Ref, Preset, FieldPresets, D2SchemaProperties, @@ -1146,7 +1147,7 @@ export type D2DataEntryForm = { export type D2DataInputPeriod = { closingDate: string; openingDate: string; - period: unknown; + period: Ref; }; export type D2DataSet = { @@ -1395,7 +1396,7 @@ export type D2EventChart = { outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -1526,7 +1527,7 @@ export type D2EventReport = { organisationUnits: D2OrganisationUnit[]; outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2Map; - periods: unknown[]; + periods: Ref[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -1845,7 +1846,7 @@ export type D2Interpretation = { mentions: unknown[]; name: string; organisationUnit: D2OrganisationUnit; - period: unknown; + period: Ref; publicAccess: string; sharing: Sharing; text: string; @@ -2191,7 +2192,7 @@ export type D2MapView = { parentGraph: string; parentGraphMap: D2Map; parentLevel: number; - periods: unknown[]; + periods: Ref[]; program: D2Program; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; programStage: D2ProgramStage; @@ -4556,7 +4557,7 @@ export type D2ValidationResult = { leftsideValue: number; notificationSent: boolean; organisationUnit: D2OrganisationUnit; - period: unknown; + period: Ref; rightsideValue: number; validationRule: D2ValidationRule; }; @@ -4763,7 +4764,7 @@ export type D2Visualization = { outlierAnalysis: unknown; parentGraphMap: D2Map; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimension[]; publicAccess: string; rangeAxisDecimals: number; @@ -6893,7 +6894,7 @@ export interface D2DataEntryFormSchema { export interface D2DataInputPeriodSchema { name: "D2DataInputPeriod"; model: D2DataInputPeriod; - fields: { closingDate: string; openingDate: string; period: unknown }; + fields: { closingDate: string; openingDate: string; period: Ref }; fieldPresets: { $all: Preset; $identifiable: Preset; @@ -7359,7 +7360,7 @@ export interface D2EventChartSchema { outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -7642,7 +7643,7 @@ export interface D2EventReportSchema { organisationUnits: D2OrganisationUnitSchema[]; outputType: "EVENT" | "ENROLLMENT" | "TRACKED_ENTITY_INSTANCE"; parentGraphMap: D2MapSchema; - periods: unknown[]; + periods: Ref[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -8431,7 +8432,7 @@ export interface D2InterpretationSchema { mentions: unknown[]; name: string; organisationUnit: D2OrganisationUnitSchema; - period: unknown; + period: Ref; publicAccess: string; sharing: Sharing; text: string; @@ -9053,7 +9054,7 @@ export interface D2MapViewSchema { parentGraph: string; parentGraphMap: D2MapSchema; parentLevel: number; - periods: unknown[]; + periods: Ref[]; program: D2ProgramSchema; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; programStage: D2ProgramStageSchema; @@ -13949,7 +13950,7 @@ export interface D2ValidationResultSchema { leftsideValue: number; notificationSent: boolean; organisationUnit: D2OrganisationUnitSchema; - period: unknown; + period: Ref; rightsideValue: number; validationRule: D2ValidationRuleSchema; }; @@ -14272,7 +14273,7 @@ export interface D2VisualizationSchema { outlierAnalysis: unknown; parentGraphMap: D2MapSchema; percentStackedValues: boolean; - periods: unknown[]; + periods: Ref[]; programIndicatorDimensions: D2TrackedEntityProgramIndicatorDimensionSchema[]; publicAccess: string; rangeAxisDecimals: number; From cf84ff9566707b334438e4a642ff5d4ee11b5479 Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Tue, 14 Dec 2021 11:19:35 +0100 Subject: [PATCH 22/24] Implement endpoint api/userLookup --- src/api/UserLookup.ts | 27 +++++++++++++++++++++++++++ src/api/d2Api.ts | 6 ++++++ 2 files changed, 33 insertions(+) create mode 100644 src/api/UserLookup.ts diff --git a/src/api/UserLookup.ts b/src/api/UserLookup.ts new file mode 100644 index 0000000..f1a7f2e --- /dev/null +++ b/src/api/UserLookup.ts @@ -0,0 +1,27 @@ +import { D2ApiGeneric } from "./d2Api"; +import { Id } from "./base"; +import { CancelableResponse } from "../repositories/CancelableResponse"; + +export class UserLookup { + constructor(public api: D2ApiGeneric) {} + + get(id: Id): CancelableResponse { + return this.api.get(`/userLookup/${id}`); + } + + query(searchText: string): CancelableResponse { + return this.api.get(`/userLookup`, { query: searchText }); + } +} + +export interface UserLookupQueryResponse { + users: UserInfo[]; +} + +export interface UserInfo { + id: Id; + username: string; + firstName: string; + surname: string; + displayName: string; +} diff --git a/src/api/d2Api.ts b/src/api/d2Api.ts index 2996305..0c481ee 100644 --- a/src/api/d2Api.ts +++ b/src/api/d2Api.ts @@ -24,6 +24,7 @@ import { SqlViews } from "./SqlViews"; import { System } from "./system"; import { TrackedEntityInstances } from "./trackedEntityInstances"; import { D2ApiOptions, D2ApiRequest, IndexedModels } from "./types"; +import { UserLookup } from "./UserLookup"; export class D2ApiGeneric { public baseUrl: string; @@ -196,6 +197,11 @@ export abstract class D2ApiVersioned< get sqlViews() { return new SqlViews(this); } + + @cache() + get userLookup() { + return new UserLookup(this); + } } export { D2ApiOptions }; From cad3026f32fdb08b2d7b78850e9915cae248200c Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Tue, 14 Dec 2021 11:37:45 +0100 Subject: [PATCH 23/24] Make dataValue.deleted optional --- src/api/dataValues.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/dataValues.ts b/src/api/dataValues.ts index 2539077..9a86f10 100644 --- a/src/api/dataValues.ts +++ b/src/api/dataValues.ts @@ -128,7 +128,7 @@ export interface DataValueSetsDataValue { created: string; lastUpdated: string; followup: boolean; - deleted: boolean; + deleted?: boolean; } // https://docs.dhis2.org/en/full/develop/dhis-core-version-master/developer-manual.html#webapi_sending_individual_data_values From 95d5d73d0327d71210c737c84c1273c3b82dfdf2 Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Tue, 14 Dec 2021 11:56:46 +0100 Subject: [PATCH 24/24] Refactor PartialModel to support unknown types --- src/api/common.ts | 30 +++++++++++++++++++++++------- src/api/model.ts | 2 +- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/src/api/common.ts b/src/api/common.ts index eaab8e1..15dd2c2 100644 --- a/src/api/common.ts +++ b/src/api/common.ts @@ -157,13 +157,29 @@ export interface HttpResponse { response: Response; } -export type PartialModel = { - [P in keyof T]?: T[P] extends (infer U)[] - ? PartialModel[] - : T[P] extends object - ? PartialModel - : T[P]; -}; +type IsAny = 0 extends (1 & T) ? true : false; + +type IsNever = [T] extends [never] ? true : false; + +type IsUnknown = IsNever extends false + ? T extends unknown + ? unknown extends T + ? IsAny extends false + ? true + : false + : false + : false + : false; + +export type PartialModel = IsUnknown extends true + ? unknown + : { + [P in keyof T]?: T[P] extends (infer U)[] + ? PartialModel[] + : T[P] extends object + ? PartialModel + : T[P]; + }; export type PartialPersistedModel = PartialModel & Ref; diff --git a/src/api/model.ts b/src/api/model.ts index dd99f6d..ec369a4 100644 --- a/src/api/model.ts +++ b/src/api/model.ts @@ -112,7 +112,7 @@ export class Model< payload: PartialModel, options?: Partial ): D2ApiResponse { - return this.d2Api.post(this.modelName, (options || {}) as Params, payload); + return this.d2Api.post(this.modelName, (options || {}) as Params, payload as object); } put(