Skip to content

Commit

Permalink
Merge pull request #153 from EyeSeeTea/fix/tracked-entities
Browse files Browse the repository at this point in the history
[fix] property names
  • Loading branch information
adrianq authored Dec 12, 2024
2 parents 319da21 + 0ef0752 commit b90d572
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/api/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ type D2EventFields = Selector<D2EventSchema>;

type GetEvent<Fields> = SelectedPick<D2EventSchema, Fields>;

export type EventStatus = "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULED" | "OVERDUE" | "SKIPPED";
export type EventStatus = "ACTIVE" | "COMPLETED" | "VISITED" | "SCHEDULE" | "OVERDUE" | "SKIPPED";

export interface D2EventToPost {
event?: string;
Expand Down Expand Up @@ -191,7 +191,7 @@ export interface EventsGetRequest<Fields> {
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;
Expand Down
2 changes: 1 addition & 1 deletion src/api/trackerTrackedEntities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit b90d572

Please sign in to comment.