@iapps/d2-web-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/package.json +11 -0
- package/src/index.d.ts +3 -0
- package/src/index.js +7 -0
- package/src/index.js.map +1 -0
- package/src/lib/d2-web-sdk.d.ts +16 -0
- package/src/lib/d2-web-sdk.js +49 -0
- package/src/lib/d2-web-sdk.js.map +1 -0
- package/src/lib/modules/data-element/data-element.module.d.ts +7 -0
- package/src/lib/modules/data-element/data-element.module.js +14 -0
- package/src/lib/modules/data-element/data-element.module.js.map +1 -0
- package/src/lib/modules/data-element/index.d.ts +3 -0
- package/src/lib/modules/data-element/index.js +10 -0
- package/src/lib/modules/data-element/index.js.map +1 -0
- package/src/lib/modules/data-element/models/data-element.model.d.ts +20 -0
- package/src/lib/modules/data-element/models/data-element.model.js +83 -0
- package/src/lib/modules/data-element/models/data-element.model.js.map +1 -0
- package/src/lib/modules/data-element/models/index.d.ts +1 -0
- package/src/lib/modules/data-element/models/index.js +8 -0
- package/src/lib/modules/data-element/models/index.js.map +1 -0
- package/src/lib/modules/data-element/queries/data-element.query.d.ts +5 -0
- package/src/lib/modules/data-element/queries/data-element.query.js +15 -0
- package/src/lib/modules/data-element/queries/data-element.query.js.map +1 -0
- package/src/lib/modules/data-element/queries/index.d.ts +1 -0
- package/src/lib/modules/data-element/queries/index.js +8 -0
- package/src/lib/modules/data-element/queries/index.js.map +1 -0
- package/src/lib/modules/index.d.ts +4 -0
- package/src/lib/modules/index.js +11 -0
- package/src/lib/modules/index.js.map +1 -0
- package/src/lib/modules/option-set/index.d.ts +3 -0
- package/src/lib/modules/option-set/index.js +10 -0
- package/src/lib/modules/option-set/index.js.map +1 -0
- package/src/lib/modules/option-set/models/index.d.ts +2 -0
- package/src/lib/modules/option-set/models/index.js +9 -0
- package/src/lib/modules/option-set/models/index.js.map +1 -0
- package/src/lib/modules/option-set/models/option-set.model.d.ts +11 -0
- package/src/lib/modules/option-set/models/option-set.model.js +23 -0
- package/src/lib/modules/option-set/models/option-set.model.js.map +1 -0
- package/src/lib/modules/option-set/models/option.model.d.ts +7 -0
- package/src/lib/modules/option-set/models/option.model.js +14 -0
- package/src/lib/modules/option-set/models/option.model.js.map +1 -0
- package/src/lib/modules/option-set/option-set.module.d.ts +8 -0
- package/src/lib/modules/option-set/option-set.module.js +17 -0
- package/src/lib/modules/option-set/option-set.module.js.map +1 -0
- package/src/lib/modules/option-set/queries/index.d.ts +2 -0
- package/src/lib/modules/option-set/queries/index.js +9 -0
- package/src/lib/modules/option-set/queries/index.js.map +1 -0
- package/src/lib/modules/option-set/queries/option-set.query.d.ts +5 -0
- package/src/lib/modules/option-set/queries/option-set.query.js +15 -0
- package/src/lib/modules/option-set/queries/option-set.query.js.map +1 -0
- package/src/lib/modules/option-set/queries/option.query.d.ts +5 -0
- package/src/lib/modules/option-set/queries/option.query.js +15 -0
- package/src/lib/modules/option-set/queries/option.query.js.map +1 -0
- package/src/lib/modules/organisation-unit/index.d.ts +3 -0
- package/src/lib/modules/organisation-unit/index.js +10 -0
- package/src/lib/modules/organisation-unit/index.js.map +1 -0
- package/src/lib/modules/organisation-unit/models/index.d.ts +3 -0
- package/src/lib/modules/organisation-unit/models/index.js +10 -0
- package/src/lib/modules/organisation-unit/models/index.js.map +1 -0
- package/src/lib/modules/organisation-unit/models/organisation-unit-group-set.model.d.ts +44 -0
- package/src/lib/modules/organisation-unit/models/organisation-unit-group-set.model.js +55 -0
- package/src/lib/modules/organisation-unit/models/organisation-unit-group-set.model.js.map +1 -0
- package/src/lib/modules/organisation-unit/models/organisation-unit-group.model.d.ts +39 -0
- package/src/lib/modules/organisation-unit/models/organisation-unit-group.model.js +50 -0
- package/src/lib/modules/organisation-unit/models/organisation-unit-group.model.js.map +1 -0
- package/src/lib/modules/organisation-unit/models/organisation-unit.model.d.ts +56 -0
- package/src/lib/modules/organisation-unit/models/organisation-unit.model.js +68 -0
- package/src/lib/modules/organisation-unit/models/organisation-unit.model.js.map +1 -0
- package/src/lib/modules/organisation-unit/organisation-unit.module.d.ts +9 -0
- package/src/lib/modules/organisation-unit/organisation-unit.module.js +20 -0
- package/src/lib/modules/organisation-unit/organisation-unit.module.js.map +1 -0
- package/src/lib/modules/organisation-unit/queries/index.d.ts +3 -0
- package/src/lib/modules/organisation-unit/queries/index.js +10 -0
- package/src/lib/modules/organisation-unit/queries/index.js.map +1 -0
- package/src/lib/modules/organisation-unit/queries/organisation-unit-group-set.query.d.ts +5 -0
- package/src/lib/modules/organisation-unit/queries/organisation-unit-group-set.query.js +15 -0
- package/src/lib/modules/organisation-unit/queries/organisation-unit-group-set.query.js.map +1 -0
- package/src/lib/modules/organisation-unit/queries/organisation-unit-group.query.d.ts +5 -0
- package/src/lib/modules/organisation-unit/queries/organisation-unit-group.query.js +15 -0
- package/src/lib/modules/organisation-unit/queries/organisation-unit-group.query.js.map +1 -0
- package/src/lib/modules/organisation-unit/queries/organisation-unit.query.d.ts +5 -0
- package/src/lib/modules/organisation-unit/queries/organisation-unit.query.js +15 -0
- package/src/lib/modules/organisation-unit/queries/organisation-unit.query.js.map +1 -0
- package/src/lib/modules/program/index.d.ts +3 -0
- package/src/lib/modules/program/index.js +10 -0
- package/src/lib/modules/program/index.js.map +1 -0
- package/src/lib/modules/program/models/index.d.ts +11 -0
- package/src/lib/modules/program/models/index.js +18 -0
- package/src/lib/modules/program/models/index.js.map +1 -0
- package/src/lib/modules/program/models/program-rule-action.model.d.ts +15 -0
- package/src/lib/modules/program/models/program-rule-action.model.js +25 -0
- package/src/lib/modules/program/models/program-rule-action.model.js.map +1 -0
- package/src/lib/modules/program/models/program-rule-variable.model.d.ts +11 -0
- package/src/lib/modules/program/models/program-rule-variable.model.js +21 -0
- package/src/lib/modules/program/models/program-rule-variable.model.js.map +1 -0
- package/src/lib/modules/program/models/program-rule.model.d.ts +12 -0
- package/src/lib/modules/program/models/program-rule.model.js +20 -0
- package/src/lib/modules/program/models/program-rule.model.js.map +1 -0
- package/src/lib/modules/program/models/program-section.model.d.ts +13 -0
- package/src/lib/modules/program/models/program-section.model.js +24 -0
- package/src/lib/modules/program/models/program-section.model.js.map +1 -0
- package/src/lib/modules/program/models/program-stage-data-element.model.d.ts +15 -0
- package/src/lib/modules/program/models/program-stage-data-element.model.js +28 -0
- package/src/lib/modules/program/models/program-stage-data-element.model.js.map +1 -0
- package/src/lib/modules/program/models/program-stage-section.model.d.ts +12 -0
- package/src/lib/modules/program/models/program-stage-section.model.js +25 -0
- package/src/lib/modules/program/models/program-stage-section.model.js.map +1 -0
- package/src/lib/modules/program/models/program-stage.model.d.ts +26 -0
- package/src/lib/modules/program/models/program-stage.model.js +37 -0
- package/src/lib/modules/program/models/program-stage.model.js.map +1 -0
- package/src/lib/modules/program/models/program-tracked-entity-attribute.model.d.ts +15 -0
- package/src/lib/modules/program/models/program-tracked-entity-attribute.model.js +28 -0
- package/src/lib/modules/program/models/program-tracked-entity-attribute.model.js.map +1 -0
- package/src/lib/modules/program/models/program.model.d.ts +40 -0
- package/src/lib/modules/program/models/program.model.js +85 -0
- package/src/lib/modules/program/models/program.model.js.map +1 -0
- package/src/lib/modules/program/models/tracked-entity-attribute.model.d.ts +17 -0
- package/src/lib/modules/program/models/tracked-entity-attribute.model.js +32 -0
- package/src/lib/modules/program/models/tracked-entity-attribute.model.js.map +1 -0
- package/src/lib/modules/program/program.module.d.ts +16 -0
- package/src/lib/modules/program/program.module.js +41 -0
- package/src/lib/modules/program/program.module.js.map +1 -0
- package/src/lib/modules/program/queries/index.d.ts +10 -0
- package/src/lib/modules/program/queries/index.js +17 -0
- package/src/lib/modules/program/queries/index.js.map +1 -0
- package/src/lib/modules/program/queries/program-rule-action.query.d.ts +5 -0
- package/src/lib/modules/program/queries/program-rule-action.query.js +15 -0
- package/src/lib/modules/program/queries/program-rule-action.query.js.map +1 -0
- package/src/lib/modules/program/queries/program-rule-variable.query.d.ts +5 -0
- package/src/lib/modules/program/queries/program-rule-variable.query.js +15 -0
- package/src/lib/modules/program/queries/program-rule-variable.query.js.map +1 -0
- package/src/lib/modules/program/queries/program-rule.query.d.ts +5 -0
- package/src/lib/modules/program/queries/program-rule.query.js +15 -0
- package/src/lib/modules/program/queries/program-rule.query.js.map +1 -0
- package/src/lib/modules/program/queries/program-section.query.d.ts +5 -0
- package/src/lib/modules/program/queries/program-section.query.js +15 -0
- package/src/lib/modules/program/queries/program-section.query.js.map +1 -0
- package/src/lib/modules/program/queries/program-stage-data-element.query.d.ts +5 -0
- package/src/lib/modules/program/queries/program-stage-data-element.query.js +15 -0
- package/src/lib/modules/program/queries/program-stage-data-element.query.js.map +1 -0
- package/src/lib/modules/program/queries/program-stage-section.query.d.ts +5 -0
- package/src/lib/modules/program/queries/program-stage-section.query.js +15 -0
- package/src/lib/modules/program/queries/program-stage-section.query.js.map +1 -0
- package/src/lib/modules/program/queries/program-stage.query.d.ts +5 -0
- package/src/lib/modules/program/queries/program-stage.query.js +15 -0
- package/src/lib/modules/program/queries/program-stage.query.js.map +1 -0
- package/src/lib/modules/program/queries/program-tracked-entity-attribute.query.d.ts +5 -0
- package/src/lib/modules/program/queries/program-tracked-entity-attribute.query.js +15 -0
- package/src/lib/modules/program/queries/program-tracked-entity-attribute.query.js.map +1 -0
- package/src/lib/modules/program/queries/program.query.d.ts +5 -0
- package/src/lib/modules/program/queries/program.query.js +15 -0
- package/src/lib/modules/program/queries/program.query.js.map +1 -0
- package/src/lib/modules/program/queries/tracked-entity-attribute.query.d.ts +5 -0
- package/src/lib/modules/program/queries/tracked-entity-attribute.query.js +15 -0
- package/src/lib/modules/program/queries/tracked-entity-attribute.query.js.map +1 -0
- package/src/lib/shared/decorators/d2-property.decorator.d.ts +2 -0
- package/src/lib/shared/decorators/d2-property.decorator.js +14 -0
- package/src/lib/shared/decorators/d2-property.decorator.js.map +1 -0
- package/src/lib/shared/decorators/index.d.ts +1 -0
- package/src/lib/shared/decorators/index.js +8 -0
- package/src/lib/shared/decorators/index.js.map +1 -0
- package/src/lib/shared/index.d.ts +3 -0
- package/src/lib/shared/index.js +10 -0
- package/src/lib/shared/index.js.map +1 -0
- package/src/lib/shared/models/base.model.d.ts +8 -0
- package/src/lib/shared/models/base.model.js +22 -0
- package/src/lib/shared/models/base.model.js.map +1 -0
- package/src/lib/shared/models/d2-response.model.d.ts +11 -0
- package/src/lib/shared/models/d2-response.model.js +34 -0
- package/src/lib/shared/models/d2-response.model.js.map +1 -0
- package/src/lib/shared/models/d2-web-config.model.d.ts +7 -0
- package/src/lib/shared/models/d2-web-config.model.js +14 -0
- package/src/lib/shared/models/d2-web-config.model.js.map +1 -0
- package/src/lib/shared/models/http-client-config.model.d.ts +3 -0
- package/src/lib/shared/models/http-client-config.model.js +7 -0
- package/src/lib/shared/models/http-client-config.model.js.map +1 -0
- package/src/lib/shared/models/http-client.model.d.ts +7 -0
- package/src/lib/shared/models/http-client.model.js +30 -0
- package/src/lib/shared/models/http-client.model.js.map +1 -0
- package/src/lib/shared/models/http-response.model.d.ts +11 -0
- package/src/lib/shared/models/http-response.model.js +32 -0
- package/src/lib/shared/models/http-response.model.js.map +1 -0
- package/src/lib/shared/models/identifiable-object.model.d.ts +23 -0
- package/src/lib/shared/models/identifiable-object.model.js +24 -0
- package/src/lib/shared/models/identifiable-object.model.js.map +1 -0
- package/src/lib/shared/models/index.d.ts +11 -0
- package/src/lib/shared/models/index.js +18 -0
- package/src/lib/shared/models/index.js.map +1 -0
- package/src/lib/shared/models/junction-operator.model.d.ts +1 -0
- package/src/lib/shared/models/junction-operator.model.js +6 -0
- package/src/lib/shared/models/junction-operator.model.js.map +1 -0
- package/src/lib/shared/models/pager.model.d.ts +12 -0
- package/src/lib/shared/models/pager.model.js +30 -0
- package/src/lib/shared/models/pager.model.js.map +1 -0
- package/src/lib/shared/models/query-condition.model.d.ts +10 -0
- package/src/lib/shared/models/query-condition.model.js +18 -0
- package/src/lib/shared/models/query-condition.model.js.map +1 -0
- package/src/lib/shared/models/query-filter.model.d.ts +7 -0
- package/src/lib/shared/models/query-filter.model.js +11 -0
- package/src/lib/shared/models/query-filter.model.js.map +1 -0
- package/src/lib/shared/models/query.model.d.ts +12 -0
- package/src/lib/shared/models/query.model.js +11 -0
- package/src/lib/shared/models/query.model.js.map +1 -0
- package/src/lib/shared/models/relationship-direction.model.d.ts +1 -0
- package/src/lib/shared/models/relationship-direction.model.js +3 -0
- package/src/lib/shared/models/relationship-direction.model.js.map +1 -0
- package/src/lib/shared/queries/base-query.d.ts +14 -0
- package/src/lib/shared/queries/base-query.js +70 -0
- package/src/lib/shared/queries/base-query.js.map +1 -0
- package/src/lib/shared/queries/index.d.ts +1 -0
- package/src/lib/shared/queries/index.js +8 -0
- package/src/lib/shared/queries/index.js.map +1 -0
- package/src/lib/shared/utils/dhis-url-generator.util.d.ts +4 -0
- package/src/lib/shared/utils/dhis-url-generator.util.js +31 -0
- package/src/lib/shared/utils/dhis-url-generator.util.js.map +1 -0
- package/src/lib/shared/utils/index.d.ts +2 -0
- package/src/lib/shared/utils/index.js +9 -0
- package/src/lib/shared/utils/index.js.map +1 -0
- package/src/lib/shared/utils/query-filter.util.d.ts +4 -0
- package/src/lib/shared/utils/query-filter.util.js +56 -0
- package/src/lib/shared/utils/query-filter.util.js.map +1 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IdentifiableField, IdentifiableObject } from '../../../shared';
|
|
2
|
+
export type OrganisationUnitGroupSetField = IdentifiableField | 'dimensionItemKeywords' | 'dataDimensionType' | 'favorites' | 'dimensionType' | 'aggregationType' | 'access' | 'publicAccess' | 'description' | 'eventRepetition' | 'displayShortName' | 'externalAccess' | 'optionSet' | 'translations' | 'valueType' | 'formName' | 'href' | 'organisationUnitGroups' | 'dimension' | 'displayDescription' | 'programStage' | 'lastUpdatedBy' | 'userGroupAccesses' | 'allItems' | 'attributeValues' | 'sharing' | 'displayFormName' | 'filter' | 'compulsory' | 'createdBy' | 'includeSubhierarchyInAnalytics' | 'userAccesses' | 'legendSet' | 'dataDimension' | 'items' | 'user' | 'favorite';
|
|
3
|
+
export declare class OrganisationUnitGroupSet extends IdentifiableObject<OrganisationUnitGroupSet> {
|
|
4
|
+
static resourceName: string;
|
|
5
|
+
static singularResourceName: string;
|
|
6
|
+
static fields: OrganisationUnitGroupSetField[];
|
|
7
|
+
compulsory: boolean;
|
|
8
|
+
dataDimension: boolean;
|
|
9
|
+
dimensionItemKeywords?: any;
|
|
10
|
+
dataDimensionType?: any;
|
|
11
|
+
favorites?: any[];
|
|
12
|
+
dimensionType?: any;
|
|
13
|
+
aggregationType?: any;
|
|
14
|
+
access?: any;
|
|
15
|
+
publicAccess?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
eventRepetition?: any;
|
|
18
|
+
displayShortName?: string;
|
|
19
|
+
externalAccess?: boolean;
|
|
20
|
+
optionSet?: any;
|
|
21
|
+
translations?: any[];
|
|
22
|
+
valueType?: any;
|
|
23
|
+
formName?: string;
|
|
24
|
+
uid?: string;
|
|
25
|
+
href?: string;
|
|
26
|
+
organisationUnitGroups?: any[];
|
|
27
|
+
dimension?: string;
|
|
28
|
+
displayDescription?: string;
|
|
29
|
+
programStage?: any;
|
|
30
|
+
lastUpdatedBy?: any;
|
|
31
|
+
userGroupAccesses?: any[];
|
|
32
|
+
allItems?: boolean;
|
|
33
|
+
sharing?: any;
|
|
34
|
+
displayFormName?: string;
|
|
35
|
+
filter?: string;
|
|
36
|
+
createdBy?: any;
|
|
37
|
+
includeSubhierarchyInAnalytics?: boolean;
|
|
38
|
+
userAccesses?: any[];
|
|
39
|
+
legendSet?: any;
|
|
40
|
+
items?: any[];
|
|
41
|
+
user?: any;
|
|
42
|
+
favorite?: boolean;
|
|
43
|
+
constructor(organisationUnitGroupSet: Partial<OrganisationUnitGroupSet>);
|
|
44
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganisationUnitGroupSet = void 0;
|
|
4
|
+
// Copyright 2024 UDSM DHIS2 Lab. All rights reserved.
|
|
5
|
+
// Use of this source code is governed by a BSD-style
|
|
6
|
+
// license that can be found in the LICENSE file.
|
|
7
|
+
const shared_1 = require("../../../shared");
|
|
8
|
+
class OrganisationUnitGroupSet extends shared_1.IdentifiableObject {
|
|
9
|
+
constructor(organisationUnitGroupSet) {
|
|
10
|
+
super(organisationUnitGroupSet);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.OrganisationUnitGroupSet = OrganisationUnitGroupSet;
|
|
14
|
+
OrganisationUnitGroupSet.resourceName = 'organisationUnitGroups';
|
|
15
|
+
OrganisationUnitGroupSet.singularResourceName = 'organisationUnitGroup';
|
|
16
|
+
OrganisationUnitGroupSet.fields = [
|
|
17
|
+
...shared_1.IDENTIFIABLE_FIELDS,
|
|
18
|
+
'dimensionItemKeywords',
|
|
19
|
+
'dataDimensionType',
|
|
20
|
+
'favorites',
|
|
21
|
+
'dimensionType',
|
|
22
|
+
'aggregationType',
|
|
23
|
+
'access',
|
|
24
|
+
'publicAccess',
|
|
25
|
+
'description',
|
|
26
|
+
'eventRepetition',
|
|
27
|
+
'displayShortName',
|
|
28
|
+
'externalAccess',
|
|
29
|
+
'optionSet',
|
|
30
|
+
'translations',
|
|
31
|
+
'valueType',
|
|
32
|
+
'formName',
|
|
33
|
+
'href',
|
|
34
|
+
'organisationUnitGroups',
|
|
35
|
+
'dimension',
|
|
36
|
+
'displayDescription',
|
|
37
|
+
'programStage',
|
|
38
|
+
'lastUpdatedBy',
|
|
39
|
+
'userGroupAccesses',
|
|
40
|
+
'allItems',
|
|
41
|
+
'attributeValues',
|
|
42
|
+
'sharing',
|
|
43
|
+
'displayFormName',
|
|
44
|
+
'filter',
|
|
45
|
+
'compulsory',
|
|
46
|
+
'createdBy',
|
|
47
|
+
'includeSubhierarchyInAnalytics',
|
|
48
|
+
'userAccesses',
|
|
49
|
+
'legendSet',
|
|
50
|
+
'dataDimension',
|
|
51
|
+
'items',
|
|
52
|
+
'user',
|
|
53
|
+
'favorite',
|
|
54
|
+
];
|
|
55
|
+
//# sourceMappingURL=organisation-unit-group-set.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organisation-unit-group-set.model.js","sourceRoot":"","sources":["../../../../../../../../packages/dhis2-web-sdk/src/lib/modules/organisation-unit/models/organisation-unit-group-set.model.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,qDAAqD;AACrD,iDAAiD;AACjD,4CAIyB;AAyCzB,MAAa,wBAAyB,SAAQ,2BAA4C;IAiFxF,YAAY,wBAA2D;QACrE,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAClC,CAAC;;AAnFH,4DAoFC;AAnFQ,qCAAY,GAAG,wBAAwB,CAAC;AACxC,6CAAoB,GAAG,uBAAuB,CAAC;AAE/C,+BAAM,GAAoC;IAC/C,GAAG,4BAAmB;IACtB,uBAAuB;IACvB,mBAAmB;IACnB,WAAW;IACX,eAAe;IACf,iBAAiB;IACjB,QAAQ;IACR,cAAc;IACd,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IAClB,gBAAgB;IAChB,WAAW;IACX,cAAc;IACd,WAAW;IACX,UAAU;IACV,MAAM;IACN,wBAAwB;IACxB,WAAW;IACX,oBAAoB;IACpB,cAAc;IACd,eAAe;IACf,mBAAmB;IACnB,UAAU;IACV,iBAAiB;IACjB,SAAS;IACT,iBAAiB;IACjB,QAAQ;IACR,YAAY;IACZ,WAAW;IACX,gCAAgC;IAChC,cAAc;IACd,WAAW;IACX,eAAe;IACf,OAAO;IACP,MAAM;IACN,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { IdentifiableField, IdentifiableObject } from '../../../shared';
|
|
2
|
+
export type OrganisationUnitGroupField = IdentifiableField | 'favorites' | 'symbol' | 'aggregationType' | 'access' | 'color' | 'publicAccess' | 'description' | 'displayShortName' | 'externalAccess' | 'queryMods' | 'translations' | 'formName' | 'featureType' | 'members' | 'href' | 'displayDescription' | 'lastUpdatedBy' | 'userGroupAccesses' | 'dimensionItem' | 'attributeValues' | 'groupSets' | 'sharing' | 'displayFormName' | 'createdBy' | 'userAccesses' | 'legendSet' | 'legendSets' | 'geometry' | 'user' | 'favorite' | 'dimensionItemType';
|
|
3
|
+
export declare class OrganisationUnitGroup extends IdentifiableObject<OrganisationUnitGroup> {
|
|
4
|
+
static resourceName: string;
|
|
5
|
+
static singularResourceName: string;
|
|
6
|
+
static fields: OrganisationUnitGroupField[];
|
|
7
|
+
favorites?: any[];
|
|
8
|
+
symbol?: string;
|
|
9
|
+
aggregationType?: any;
|
|
10
|
+
access?: any;
|
|
11
|
+
color?: string;
|
|
12
|
+
publicAccess?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
displayShortName?: string;
|
|
15
|
+
externalAccess?: boolean;
|
|
16
|
+
queryMods?: any;
|
|
17
|
+
translations?: any[];
|
|
18
|
+
formName?: string;
|
|
19
|
+
featureType?: any;
|
|
20
|
+
members?: any[];
|
|
21
|
+
uid?: string;
|
|
22
|
+
href?: string;
|
|
23
|
+
displayDescription?: string;
|
|
24
|
+
lastUpdatedBy?: any;
|
|
25
|
+
userGroupAccesses?: any[];
|
|
26
|
+
dimensionItem?: string;
|
|
27
|
+
groupSets?: any[];
|
|
28
|
+
sharing?: any;
|
|
29
|
+
displayFormName?: string;
|
|
30
|
+
createdBy?: any;
|
|
31
|
+
userAccesses?: any[];
|
|
32
|
+
legendSet?: any;
|
|
33
|
+
legendSets?: any[];
|
|
34
|
+
geometry?: any;
|
|
35
|
+
user?: any;
|
|
36
|
+
favorite?: boolean;
|
|
37
|
+
dimensionItemType?: any;
|
|
38
|
+
constructor(organisationUnitGroup: Partial<OrganisationUnitGroup>);
|
|
39
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganisationUnitGroup = void 0;
|
|
4
|
+
// Copyright 2024 UDSM DHIS2 Lab. All rights reserved.
|
|
5
|
+
// Use of this source code is governed by a BSD-style
|
|
6
|
+
// license that can be found in the LICENSE file.
|
|
7
|
+
const shared_1 = require("../../../shared");
|
|
8
|
+
class OrganisationUnitGroup extends shared_1.IdentifiableObject {
|
|
9
|
+
constructor(organisationUnitGroup) {
|
|
10
|
+
super(organisationUnitGroup);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.OrganisationUnitGroup = OrganisationUnitGroup;
|
|
14
|
+
OrganisationUnitGroup.resourceName = 'organisationUnitGroups';
|
|
15
|
+
OrganisationUnitGroup.singularResourceName = 'organisationUnitGroup';
|
|
16
|
+
OrganisationUnitGroup.fields = [
|
|
17
|
+
...shared_1.IDENTIFIABLE_FIELDS,
|
|
18
|
+
'favorites',
|
|
19
|
+
'symbol',
|
|
20
|
+
'aggregationType',
|
|
21
|
+
'access',
|
|
22
|
+
'color',
|
|
23
|
+
'description',
|
|
24
|
+
'displayShortName',
|
|
25
|
+
'externalAccess',
|
|
26
|
+
'queryMods',
|
|
27
|
+
'translations',
|
|
28
|
+
'formName',
|
|
29
|
+
'featureType',
|
|
30
|
+
'members',
|
|
31
|
+
'href',
|
|
32
|
+
'displayDescription',
|
|
33
|
+
'lastUpdatedBy',
|
|
34
|
+
'userGroupAccesses',
|
|
35
|
+
'dimensionItem',
|
|
36
|
+
'created',
|
|
37
|
+
'attributeValues',
|
|
38
|
+
'groupSets',
|
|
39
|
+
'sharing',
|
|
40
|
+
'displayFormName',
|
|
41
|
+
'userAccesses',
|
|
42
|
+
'legendSet',
|
|
43
|
+
'name',
|
|
44
|
+
'legendSets',
|
|
45
|
+
'geometry',
|
|
46
|
+
'user',
|
|
47
|
+
'favorite',
|
|
48
|
+
'dimensionItemType',
|
|
49
|
+
];
|
|
50
|
+
//# sourceMappingURL=organisation-unit-group.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organisation-unit-group.model.js","sourceRoot":"","sources":["../../../../../../../../packages/dhis2-web-sdk/src/lib/modules/organisation-unit/models/organisation-unit-group.model.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,qDAAqD;AACrD,iDAAiD;AACjD,4CAIyB;AAoCzB,MAAa,qBAAsB,SAAQ,2BAAyC;IAuElF,YAAY,qBAAqD;QAC/D,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAC/B,CAAC;;AAzEH,sDA0EC;AAzEQ,kCAAY,GAAG,wBAAwB,CAAC;AACxC,0CAAoB,GAAG,uBAAuB,CAAC;AAE/C,4BAAM,GAAiC;IAC5C,GAAG,4BAAmB;IACtB,WAAW;IACX,QAAQ;IACR,iBAAiB;IACjB,QAAQ;IACR,OAAO;IACP,aAAa;IACb,kBAAkB;IAClB,gBAAgB;IAChB,WAAW;IACX,cAAc;IACd,UAAU;IACV,aAAa;IACb,SAAS;IACT,MAAM;IACN,oBAAoB;IACpB,eAAe;IACf,mBAAmB;IACnB,eAAe;IACf,SAAS;IACT,iBAAiB;IACjB,WAAW;IACX,SAAS;IACT,iBAAiB;IACjB,cAAc;IACd,WAAW;IACX,MAAM;IACN,YAAY;IACZ,UAAU;IACV,MAAM;IACN,UAAU;IACV,mBAAmB;CACpB,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { IdentifiableField, IdentifiableObject } from '../../../shared';
|
|
2
|
+
export type OrganisationUnitField = IdentifiableField | 'level' | 'parent' | 'publicAccess' | 'type' | 'path' | 'lastUpdated' | 'children' | 'translations' | 'href' | 'groups' | 'ancestors' | 'displayDescription' | 'image' | 'lastUpdatedBy' | 'userGroupAccesses' | 'hierarchyLevel' | 'attributeValues' | 'sharing' | 'displayFormName' | 'users' | 'phoneNumber' | 'userAccesses' | 'dataSets' | 'legendSets' | 'programs' | 'favorite' | 'dimensionItemType' | 'favorites' | 'aggregationType' | 'access' | 'contactPerson' | 'description' | 'displayShortName' | 'externalAccess' | 'queryMods' | 'formName' | 'openingDate' | 'email' | 'address' | 'dimensionItem' | 'memberCount' | 'leaf' | 'url' | 'closedDate' | 'createdBy' | 'legendSet' | 'comment' | 'geometry' | 'user';
|
|
3
|
+
export declare class OrganisationUnit extends IdentifiableObject<OrganisationUnit> {
|
|
4
|
+
static resourceName: string;
|
|
5
|
+
static singularResourceName: string;
|
|
6
|
+
static fields: OrganisationUnitField[];
|
|
7
|
+
level: number;
|
|
8
|
+
parent: OrganisationUnit;
|
|
9
|
+
ancestors: OrganisationUnit[];
|
|
10
|
+
children: OrganisationUnit[];
|
|
11
|
+
openingDate: Date;
|
|
12
|
+
publicAccess?: string;
|
|
13
|
+
type?: string;
|
|
14
|
+
path?: string;
|
|
15
|
+
translations?: any[];
|
|
16
|
+
uid?: string;
|
|
17
|
+
href?: string;
|
|
18
|
+
groups?: any[];
|
|
19
|
+
displayDescription?: string;
|
|
20
|
+
image?: any;
|
|
21
|
+
lastUpdatedBy?: any;
|
|
22
|
+
userGroupAccesses?: any[];
|
|
23
|
+
hierarchyLevel?: string;
|
|
24
|
+
sharing?: any;
|
|
25
|
+
displayFormName?: string;
|
|
26
|
+
users?: any[];
|
|
27
|
+
phoneNumber?: string;
|
|
28
|
+
userAccesses?: any[];
|
|
29
|
+
dataSets?: any[];
|
|
30
|
+
legendSets?: any[];
|
|
31
|
+
programs?: any[];
|
|
32
|
+
favorite?: boolean;
|
|
33
|
+
dimensionItemType?: any;
|
|
34
|
+
favorites?: any[];
|
|
35
|
+
aggregationType?: any;
|
|
36
|
+
access?: any;
|
|
37
|
+
contactPerson?: string;
|
|
38
|
+
description?: string;
|
|
39
|
+
displayShortName?: string;
|
|
40
|
+
externalAccess?: boolean;
|
|
41
|
+
queryMods?: any;
|
|
42
|
+
formName?: string;
|
|
43
|
+
email?: string;
|
|
44
|
+
address?: string;
|
|
45
|
+
dimensionItem?: string;
|
|
46
|
+
memberCount?: number;
|
|
47
|
+
leaf?: boolean;
|
|
48
|
+
url?: string;
|
|
49
|
+
closedDate?: string;
|
|
50
|
+
createdBy?: any;
|
|
51
|
+
legendSet?: any;
|
|
52
|
+
comment?: string;
|
|
53
|
+
geometry?: any;
|
|
54
|
+
user?: any;
|
|
55
|
+
constructor(organisationUnit: Partial<OrganisationUnit>);
|
|
56
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganisationUnit = void 0;
|
|
4
|
+
// Copyright 2024 UDSM DHIS2 Lab. All rights reserved.
|
|
5
|
+
// Use of this source code is governed by a BSD-style
|
|
6
|
+
// license that can be found in the LICENSE file.
|
|
7
|
+
const shared_1 = require("../../../shared");
|
|
8
|
+
class OrganisationUnit extends shared_1.IdentifiableObject {
|
|
9
|
+
constructor(organisationUnit) {
|
|
10
|
+
super(organisationUnit);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.OrganisationUnit = OrganisationUnit;
|
|
14
|
+
OrganisationUnit.resourceName = 'organisationUnits';
|
|
15
|
+
OrganisationUnit.singularResourceName = 'organisationUnit';
|
|
16
|
+
OrganisationUnit.fields = [
|
|
17
|
+
...shared_1.IDENTIFIABLE_FIELDS,
|
|
18
|
+
'level',
|
|
19
|
+
'parent',
|
|
20
|
+
'publicAccess',
|
|
21
|
+
'type',
|
|
22
|
+
'path',
|
|
23
|
+
'lastUpdated',
|
|
24
|
+
'children',
|
|
25
|
+
'translations',
|
|
26
|
+
'href',
|
|
27
|
+
'groups',
|
|
28
|
+
'ancestors',
|
|
29
|
+
'displayDescription',
|
|
30
|
+
'image',
|
|
31
|
+
'lastUpdatedBy',
|
|
32
|
+
'userGroupAccesses',
|
|
33
|
+
'hierarchyLevel',
|
|
34
|
+
'attributeValues',
|
|
35
|
+
'sharing',
|
|
36
|
+
'displayFormName',
|
|
37
|
+
'users',
|
|
38
|
+
'phoneNumber',
|
|
39
|
+
'userAccesses',
|
|
40
|
+
'dataSets',
|
|
41
|
+
'legendSets',
|
|
42
|
+
'programs',
|
|
43
|
+
'favorite',
|
|
44
|
+
'dimensionItemType',
|
|
45
|
+
'favorites',
|
|
46
|
+
'aggregationType',
|
|
47
|
+
'access',
|
|
48
|
+
'contactPerson',
|
|
49
|
+
'description',
|
|
50
|
+
'displayShortName',
|
|
51
|
+
'externalAccess',
|
|
52
|
+
'queryMods',
|
|
53
|
+
'formName',
|
|
54
|
+
'openingDate',
|
|
55
|
+
'email',
|
|
56
|
+
'address',
|
|
57
|
+
'dimensionItem',
|
|
58
|
+
'memberCount',
|
|
59
|
+
'leaf',
|
|
60
|
+
'url',
|
|
61
|
+
'closedDate',
|
|
62
|
+
'createdBy',
|
|
63
|
+
'legendSet',
|
|
64
|
+
'comment',
|
|
65
|
+
'geometry',
|
|
66
|
+
'user',
|
|
67
|
+
];
|
|
68
|
+
//# sourceMappingURL=organisation-unit.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organisation-unit.model.js","sourceRoot":"","sources":["../../../../../../../../packages/dhis2-web-sdk/src/lib/modules/organisation-unit/models/organisation-unit.model.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,qDAAqD;AACrD,iDAAiD;AACjD,4CAIyB;AAsDzB,MAAa,gBAAiB,SAAQ,2BAAoC;IA0GxE,YAAY,gBAA2C;QACrD,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC1B,CAAC;;AA5GH,4CA6GC;AA5GQ,6BAAY,GAAG,mBAAmB,CAAC;AACnC,qCAAoB,GAAG,kBAAkB,CAAC;AAE1C,uBAAM,GAA4B;IACvC,GAAG,4BAAmB;IACtB,OAAO;IACP,QAAQ;IACR,cAAc;IACd,MAAM;IACN,MAAM;IACN,aAAa;IACb,UAAU;IACV,cAAc;IACd,MAAM;IACN,QAAQ;IACR,WAAW;IACX,oBAAoB;IACpB,OAAO;IACP,eAAe;IACf,mBAAmB;IACnB,gBAAgB;IAChB,iBAAiB;IACjB,SAAS;IACT,iBAAiB;IACjB,OAAO;IACP,aAAa;IACb,cAAc;IACd,UAAU;IACV,YAAY;IACZ,UAAU;IACV,UAAU;IACV,mBAAmB;IACnB,WAAW;IACX,iBAAiB;IACjB,QAAQ;IACR,eAAe;IACf,aAAa;IACb,kBAAkB;IAClB,gBAAgB;IAChB,WAAW;IACX,UAAU;IACV,aAAa;IACb,OAAO;IACP,SAAS;IACT,eAAe;IACf,aAAa;IACb,MAAM;IACN,KAAK;IACL,YAAY;IACZ,WAAW;IACX,WAAW;IACX,SAAS;IACT,UAAU;IACV,MAAM;CACP,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { D2HttpClient } from '../../shared';
|
|
2
|
+
import { OrganisationUnitQuery, OrganisationUnitGroupQuery, OrganisationUnitGroupSetQuery } from './queries';
|
|
3
|
+
export declare class OrganisationUnitModule {
|
|
4
|
+
private httpClient;
|
|
5
|
+
constructor(httpClient: D2HttpClient);
|
|
6
|
+
get organisationUnit(): OrganisationUnitQuery;
|
|
7
|
+
get organisationUnitGroup(): OrganisationUnitGroupQuery;
|
|
8
|
+
get organisationUnitGroupSet(): OrganisationUnitGroupSetQuery;
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganisationUnitModule = void 0;
|
|
4
|
+
const queries_1 = require("./queries");
|
|
5
|
+
class OrganisationUnitModule {
|
|
6
|
+
constructor(httpClient) {
|
|
7
|
+
this.httpClient = httpClient;
|
|
8
|
+
}
|
|
9
|
+
get organisationUnit() {
|
|
10
|
+
return new queries_1.OrganisationUnitQuery(this.httpClient);
|
|
11
|
+
}
|
|
12
|
+
get organisationUnitGroup() {
|
|
13
|
+
return new queries_1.OrganisationUnitGroupQuery(this.httpClient);
|
|
14
|
+
}
|
|
15
|
+
get organisationUnitGroupSet() {
|
|
16
|
+
return new queries_1.OrganisationUnitGroupSetQuery(this.httpClient);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.OrganisationUnitModule = OrganisationUnitModule;
|
|
20
|
+
//# sourceMappingURL=organisation-unit.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organisation-unit.module.js","sourceRoot":"","sources":["../../../../../../../packages/dhis2-web-sdk/src/lib/modules/organisation-unit/organisation-unit.module.ts"],"names":[],"mappings":";;;AAIA,uCAImB;AACnB,MAAa,sBAAsB;IACjC,YAAoB,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;IAAG,CAAC;IAChD,IAAI,gBAAgB;QAClB,OAAO,IAAI,+BAAqB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACpD,CAAC;IAED,IAAI,qBAAqB;QACvB,OAAO,IAAI,oCAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACzD,CAAC;IAED,IAAI,wBAAwB;QAC1B,OAAO,IAAI,uCAA6B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5D,CAAC;CACF;AAbD,wDAaC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
// Copyright 2024 UDSM DHIS2 Lab. All rights reserved.
|
|
5
|
+
// Use of this source code is governed by a BSD-style
|
|
6
|
+
// license that can be found in the LICENSE file.
|
|
7
|
+
tslib_1.__exportStar(require("./organisation-unit.query"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./organisation-unit-group.query"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./organisation-unit-group-set.query"), exports);
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/dhis2-web-sdk/src/lib/modules/organisation-unit/queries/index.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,qDAAqD;AACrD,iDAAiD;AACjD,oEAA0C;AAC1C,0EAAgD;AAChD,8EAAoD"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseQuery, D2HttpClient } from '../../../shared';
|
|
2
|
+
import { OrganisationUnitGroupSet, OrganisationUnitGroupSetField } from '../models';
|
|
3
|
+
export declare class OrganisationUnitGroupSetQuery extends BaseQuery<OrganisationUnitGroupSet, OrganisationUnitGroupSetField> {
|
|
4
|
+
constructor(httpClient: D2HttpClient);
|
|
5
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganisationUnitGroupSetQuery = void 0;
|
|
4
|
+
// Copyright 2024 UDSM DHIS2 Lab. All rights reserved.
|
|
5
|
+
// Use of this source code is governed by a BSD-style
|
|
6
|
+
// license that can be found in the LICENSE file.
|
|
7
|
+
const shared_1 = require("../../../shared");
|
|
8
|
+
const models_1 = require("../models");
|
|
9
|
+
class OrganisationUnitGroupSetQuery extends shared_1.BaseQuery {
|
|
10
|
+
constructor(httpClient) {
|
|
11
|
+
super(models_1.OrganisationUnitGroupSet, httpClient);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.OrganisationUnitGroupSetQuery = OrganisationUnitGroupSetQuery;
|
|
15
|
+
//# sourceMappingURL=organisation-unit-group-set.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organisation-unit-group-set.query.js","sourceRoot":"","sources":["../../../../../../../../packages/dhis2-web-sdk/src/lib/modules/organisation-unit/queries/organisation-unit-group-set.query.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,qDAAqD;AACrD,iDAAiD;AACjD,4CAA0D;AAC1D,sCAGmB;AACnB,MAAa,6BAA8B,SAAQ,kBAGlD;IACC,YAAY,UAAwB;QAClC,KAAK,CAAC,iCAAwB,EAAE,UAAU,CAAC,CAAC;IAC9C,CAAC;CACF;AAPD,sEAOC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseQuery, D2HttpClient } from '../../../shared';
|
|
2
|
+
import { OrganisationUnitGroup, OrganisationUnitGroupField } from '../models';
|
|
3
|
+
export declare class OrganisationUnitGroupQuery extends BaseQuery<OrganisationUnitGroup, OrganisationUnitGroupField> {
|
|
4
|
+
constructor(httpClient: D2HttpClient);
|
|
5
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganisationUnitGroupQuery = void 0;
|
|
4
|
+
// Copyright 2024 UDSM DHIS2 Lab. All rights reserved.
|
|
5
|
+
// Use of this source code is governed by a BSD-style
|
|
6
|
+
// license that can be found in the LICENSE file.
|
|
7
|
+
const shared_1 = require("../../../shared");
|
|
8
|
+
const models_1 = require("../models");
|
|
9
|
+
class OrganisationUnitGroupQuery extends shared_1.BaseQuery {
|
|
10
|
+
constructor(httpClient) {
|
|
11
|
+
super(models_1.OrganisationUnitGroup, httpClient);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.OrganisationUnitGroupQuery = OrganisationUnitGroupQuery;
|
|
15
|
+
//# sourceMappingURL=organisation-unit-group.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organisation-unit-group.query.js","sourceRoot":"","sources":["../../../../../../../../packages/dhis2-web-sdk/src/lib/modules/organisation-unit/queries/organisation-unit-group.query.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,qDAAqD;AACrD,iDAAiD;AACjD,4CAA0D;AAC1D,sCAA8E;AAC9E,MAAa,0BAA2B,SAAQ,kBAG/C;IACC,YAAY,UAAwB;QAClC,KAAK,CAAC,8BAAqB,EAAE,UAAU,CAAC,CAAC;IAC3C,CAAC;CACF;AAPD,gEAOC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseQuery, D2HttpClient } from '../../../shared';
|
|
2
|
+
import { OrganisationUnit, OrganisationUnitField } from '../models';
|
|
3
|
+
export declare class OrganisationUnitQuery extends BaseQuery<OrganisationUnit, OrganisationUnitField> {
|
|
4
|
+
constructor(httpClient: D2HttpClient);
|
|
5
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganisationUnitQuery = void 0;
|
|
4
|
+
// Copyright 2024 UDSM DHIS2 Lab. All rights reserved.
|
|
5
|
+
// Use of this source code is governed by a BSD-style
|
|
6
|
+
// license that can be found in the LICENSE file.
|
|
7
|
+
const shared_1 = require("../../../shared");
|
|
8
|
+
const models_1 = require("../models");
|
|
9
|
+
class OrganisationUnitQuery extends shared_1.BaseQuery {
|
|
10
|
+
constructor(httpClient) {
|
|
11
|
+
super(models_1.OrganisationUnit, httpClient);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.OrganisationUnitQuery = OrganisationUnitQuery;
|
|
15
|
+
//# sourceMappingURL=organisation-unit.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organisation-unit.query.js","sourceRoot":"","sources":["../../../../../../../../packages/dhis2-web-sdk/src/lib/modules/organisation-unit/queries/organisation-unit.query.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,qDAAqD;AACrD,iDAAiD;AACjD,4CAA0D;AAC1D,sCAAoE;AACpE,MAAa,qBAAsB,SAAQ,kBAG1C;IACC,YAAY,UAAwB;QAClC,KAAK,CAAC,yBAAgB,EAAE,UAAU,CAAC,CAAC;IACtC,CAAC;CACF;AAPD,sDAOC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
// Copyright 2024 UDSM DHIS2 Lab. All rights reserved.
|
|
5
|
+
// Use of this source code is governed by a BSD-style
|
|
6
|
+
// license that can be found in the LICENSE file.
|
|
7
|
+
tslib_1.__exportStar(require("./program.module"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./queries"), exports);
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/dhis2-web-sdk/src/lib/modules/program/index.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,qDAAqD;AACrD,iDAAiD;AACjD,2DAAiC;AACjC,mDAAyB;AACzB,oDAA0B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './program.model';
|
|
2
|
+
export * from './program-tracked-entity-attribute.model';
|
|
3
|
+
export * from './program-stage.model';
|
|
4
|
+
export * from './program-section.model';
|
|
5
|
+
export * from './program-stage-data-element.model';
|
|
6
|
+
export * from './program-stage-section.model';
|
|
7
|
+
export * from './program-tracked-entity-attribute.model';
|
|
8
|
+
export * from './tracked-entity-attribute.model';
|
|
9
|
+
export * from './program-rule.model';
|
|
10
|
+
export * from './program-rule-action.model';
|
|
11
|
+
export * from './program-rule-variable.model';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
// Copyright 2024 UDSM DHIS2 Lab. All rights reserved.
|
|
5
|
+
// Use of this source code is governed by a BSD-style
|
|
6
|
+
// license that can be found in the LICENSE file.
|
|
7
|
+
tslib_1.__exportStar(require("./program.model"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./program-tracked-entity-attribute.model"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./program-stage.model"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./program-section.model"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./program-stage-data-element.model"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./program-stage-section.model"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./program-tracked-entity-attribute.model"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./tracked-entity-attribute.model"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./program-rule.model"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./program-rule-action.model"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./program-rule-variable.model"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/dhis2-web-sdk/src/lib/modules/program/models/index.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,qDAAqD;AACrD,iDAAiD;AACjD,0DAAgC;AAChC,mFAAyD;AACzD,gEAAsC;AACtC,kEAAwC;AACxC,6EAAmD;AACnD,wEAA8C;AAC9C,mFAAyD;AACzD,2EAAiD;AACjD,+DAAqC;AACrC,sEAA4C;AAC5C,wEAA8C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IdentifiableField, IdentifiableObject } from '../../../shared';
|
|
2
|
+
export type ProgramRuleActionField = IdentifiableField | 'content' | 'data' | 'displayContent' | 'programRuleActionType' | 'evaluationTime' | 'dataElement' | 'trackedEntityAttribute' | 'programRule';
|
|
3
|
+
export declare class ProgramRuleAction extends IdentifiableObject<ProgramRuleAction> {
|
|
4
|
+
static resourceName: string;
|
|
5
|
+
static singularResourceName: string;
|
|
6
|
+
static fields: ProgramRuleActionField[];
|
|
7
|
+
content?: string;
|
|
8
|
+
data?: string;
|
|
9
|
+
displayContent?: string;
|
|
10
|
+
programRuleActionType: string;
|
|
11
|
+
evaluationTime?: string;
|
|
12
|
+
dataElement?: string;
|
|
13
|
+
trackedEntityAttribute?: string;
|
|
14
|
+
programRule: any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2024 UDSM DHIS2 Lab. All rights reserved.
|
|
3
|
+
// Use of this source code is governed by a BSD-style
|
|
4
|
+
// license that can be found in the LICENSE file.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ProgramRuleAction = void 0;
|
|
7
|
+
const shared_1 = require("../../../shared");
|
|
8
|
+
class ProgramRuleAction extends shared_1.IdentifiableObject {
|
|
9
|
+
}
|
|
10
|
+
exports.ProgramRuleAction = ProgramRuleAction;
|
|
11
|
+
ProgramRuleAction.resourceName = 'programRuleActions';
|
|
12
|
+
ProgramRuleAction.singularResourceName = 'programRuleAction';
|
|
13
|
+
// TODO: Use class reflection
|
|
14
|
+
ProgramRuleAction.fields = [
|
|
15
|
+
...shared_1.IDENTIFIABLE_FIELDS,
|
|
16
|
+
'content',
|
|
17
|
+
'data',
|
|
18
|
+
'displayContent',
|
|
19
|
+
'programRuleActionType',
|
|
20
|
+
'evaluationTime',
|
|
21
|
+
'dataElement',
|
|
22
|
+
'trackedEntityAttribute',
|
|
23
|
+
'programRule',
|
|
24
|
+
];
|
|
25
|
+
//# sourceMappingURL=program-rule-action.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"program-rule-action.model.js","sourceRoot":"","sources":["../../../../../../../../packages/dhis2-web-sdk/src/lib/modules/program/models/program-rule-action.model.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,qDAAqD;AACrD,iDAAiD;;;AAEjD,4CAIyB;AAazB,MAAa,iBAAkB,SAAQ,2BAAqC;;AAA5E,8CAwBC;AAvBQ,8BAAY,GAAG,oBAAoB,CAAC;AACpC,sCAAoB,GAAG,mBAAmB,CAAC;AAClD,6BAA6B;AACtB,wBAAM,GAA6B;IACxC,GAAG,4BAAmB;IACtB,SAAS;IACT,MAAM;IACN,gBAAgB;IAChB,uBAAuB;IACvB,gBAAgB;IAChB,aAAa;IACb,wBAAwB;IACxB,aAAa;CACd,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IdentifiableField, IdentifiableObject } from '../../../shared';
|
|
2
|
+
export type ProgramRuleVariableField = IdentifiableField | 'programRuleVariableSourceType' | 'useCodeForOptionSet' | 'dataElement' | 'trackedEntityAttribute';
|
|
3
|
+
export declare class ProgramRuleVariable extends IdentifiableObject<ProgramRuleVariable> {
|
|
4
|
+
static resourceName: string;
|
|
5
|
+
static singularResourceName: string;
|
|
6
|
+
static fields: ProgramRuleVariableField[];
|
|
7
|
+
programRuleVariableSourceType: string;
|
|
8
|
+
useCodeForOptionSet?: boolean;
|
|
9
|
+
dataElement?: string;
|
|
10
|
+
trackedEntityAttribute?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2024 UDSM DHIS2 Lab. All rights reserved.
|
|
3
|
+
// Use of this source code is governed by a BSD-style
|
|
4
|
+
// license that can be found in the LICENSE file.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ProgramRuleVariable = void 0;
|
|
7
|
+
const shared_1 = require("../../../shared");
|
|
8
|
+
class ProgramRuleVariable extends shared_1.IdentifiableObject {
|
|
9
|
+
}
|
|
10
|
+
exports.ProgramRuleVariable = ProgramRuleVariable;
|
|
11
|
+
ProgramRuleVariable.resourceName = 'programRuleVariables';
|
|
12
|
+
ProgramRuleVariable.singularResourceName = 'programRuleVariable';
|
|
13
|
+
// TODO: Use class reflection
|
|
14
|
+
ProgramRuleVariable.fields = [
|
|
15
|
+
...shared_1.IDENTIFIABLE_FIELDS,
|
|
16
|
+
'programRuleVariableSourceType',
|
|
17
|
+
'useCodeForOptionSet',
|
|
18
|
+
'dataElement',
|
|
19
|
+
'trackedEntityAttribute',
|
|
20
|
+
];
|
|
21
|
+
//# sourceMappingURL=program-rule-variable.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"program-rule-variable.model.js","sourceRoot":"","sources":["../../../../../../../../packages/dhis2-web-sdk/src/lib/modules/program/models/program-rule-variable.model.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,qDAAqD;AACrD,iDAAiD;;;AAEjD,4CAIyB;AASzB,MAAa,mBAAoB,SAAQ,2BAAuC;;AAAhF,kDAeC;AAdQ,gCAAY,GAAG,sBAAsB,CAAC;AACtC,wCAAoB,GAAG,qBAAqB,CAAC;AACpD,6BAA6B;AACtB,0BAAM,GAA+B;IAC1C,GAAG,4BAAmB;IACtB,+BAA+B;IAC/B,qBAAqB;IACrB,aAAa;IACb,wBAAwB;CACzB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ProgramRuleAction } from './program-rule-action.model';
|
|
2
|
+
import { IdentifiableField, IdentifiableObject } from '../../../shared';
|
|
3
|
+
export type ProgramRuleField = IdentifiableField | 'condition';
|
|
4
|
+
export declare class ProgramRule extends IdentifiableObject<ProgramRule> {
|
|
5
|
+
static resourceName: string;
|
|
6
|
+
static singularResourceName: string;
|
|
7
|
+
static fields: ProgramRuleField[];
|
|
8
|
+
condition: string;
|
|
9
|
+
program: any;
|
|
10
|
+
programRuleActions: ProgramRuleAction[];
|
|
11
|
+
constructor(programRule: Partial<ProgramRule>);
|
|
12
|
+
}
|