diff --git a/package.json b/package.json index 1e1676e..11e8a18 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.16.1", "license": "GPL-3.0", "author": "EyeSeeTea team", "repository": { 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; 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";