From f27c621e69c06f6827e576e4082ab8b615c4492e Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Thu, 12 Dec 2024 12:10:32 +0100 Subject: [PATCH 1/4] fix property: trackedEntities -> trackedEntity --- src/api/trackerTrackedEntities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/trackerTrackedEntities.ts b/src/api/trackerTrackedEntities.ts index 577152e..4e26e79 100644 --- a/src/api/trackerTrackedEntities.ts +++ b/src/api/trackerTrackedEntities.ts @@ -150,7 +150,7 @@ export type TrackedEntitiesParamsBase = { enrollmentOccurredAfter: IsoDate; enrollmentOccurredBefore: IsoDate; trackedEntityType: Id; - trackedEntities: SemiColonDelimitedListOfUid; + trackedEntity: SemiColonDelimitedListOfUid; assignedUserMode: "CURRENT" | "PROVIDED" | "NONE" | "ANY"; assignedUsers: SemiColonDelimitedListOfUid; eventStatus: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; From d0c2616a1a6122a1484c14b28afed64b7532ce74 Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Thu, 12 Dec 2024 12:14:53 +0100 Subject: [PATCH 2/4] Fix event status: SCHEDULED -> SCHEDULE --- src/api/events.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/events.ts b/src/api/events.ts index fe2458a..2e6b5ef 100644 --- a/src/api/events.ts +++ b/src/api/events.ts @@ -95,7 +95,7 @@ type D2EventFields = Selector; type GetEvent = SelectedPick; -export type EventStatus = "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULED" | "OVERDUE" | "SKIPPED"; +export type EventStatus = "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; export interface D2EventToPost { event?: string; @@ -191,7 +191,7 @@ export interface EventsGetRequest { ouMode?: "SELECTED" | "CHILDREN" | "DESCENDANTS"; startDate?: string; endDate?: string; - status?: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULED" | "OVERDUE" | "SKIPPED"; + status?: "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED"; lastUpdated?: string; lastUpdatedStartDate?: string; lastUpdatedEndDate?: string; From ef70b2c2c7e429e51099b84c6a737e75a38dd603 Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Thu, 12 Dec 2024 12:18:45 +0100 Subject: [PATCH 3/4] Bump beta --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1e1676e..81534e3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@eyeseetea/d2-api", "description": "Typed wrapper over DHIS2 API", - "version": "1.16.0", + "version": "1.17.0-beta.1", "license": "GPL-3.0", "author": "EyeSeeTea team", "repository": { From 0ef0752f1c4ddf877228122dcb4c614de982cd77 Mon Sep 17 00:00:00 2001 From: Adrian Quintana Date: Thu, 12 Dec 2024 23:00:22 +0000 Subject: [PATCH 4/4] bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 81534e3..11e8a18 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@eyeseetea/d2-api", "description": "Typed wrapper over DHIS2 API", - "version": "1.17.0-beta.1", + "version": "1.16.1", "license": "GPL-3.0", "author": "EyeSeeTea team", "repository": {