Skip to content

Commit

Permalink
Merge pull request #96 from EyeSeeTea/feature/complete-d2-relationshi…
Browse files Browse the repository at this point in the history
…p-contraints

Add missing type in D2RelationshipConstraint union
  • Loading branch information
adrianq authored May 17, 2021
2 parents e82464d + 03bff9b commit a1def38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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.8.3",
"version": "1.8.4-beta.1",
"license": "GPL-3.0",
"author": "EyeSeeTea team",
"repository": {
Expand Down
4 changes: 4 additions & 0 deletions src/schemas/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ export type D2RelationshipConstraint =
| {
relationshipEntity: "PROGRAM_STAGE_INSTANCE";
program: Ref;
}
| {
relationshipEntity: "PROGRAM_STAGE_INSTANCE";
programStage: Ref;
};

export type D2AccessSchema = GetDefaultSchema<D2Access>;
Expand Down

0 comments on commit a1def38

Please sign in to comment.