openchs-models 1.23.9 → 1.23.10
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/.nvmrc +1 -1
- package/Makefile +24 -2
- package/dist/Program.js +9 -0
- package/package.json +1 -1
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v10.15
|
|
1
|
+
v10.15
|
package/Makefile
CHANGED
|
@@ -12,10 +12,12 @@ deps: check-node-v
|
|
|
12
12
|
@rm -rf package-lock.json
|
|
13
13
|
yarn install
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
tests:
|
|
16
16
|
yarn test
|
|
17
17
|
|
|
18
|
-
build: check-node-v
|
|
18
|
+
build: check-node-v build-only
|
|
19
|
+
|
|
20
|
+
build-only:
|
|
19
21
|
yarn run build
|
|
20
22
|
|
|
21
23
|
release:
|
|
@@ -27,3 +29,23 @@ release:
|
|
|
27
29
|
|
|
28
30
|
publish:
|
|
29
31
|
git push && git push origin --tags
|
|
32
|
+
|
|
33
|
+
deploy:
|
|
34
|
+
$(if $(local),$(call _deploy,$(local)/packages/openchs-android/node_modules/openchs-models))
|
|
35
|
+
|
|
36
|
+
deploy-as-source:
|
|
37
|
+
$(if $(local),$(call _deploy_as_source,$(local)/packages/openchs-android/node_modules/openchs-models))
|
|
38
|
+
|
|
39
|
+
define _deploy_as_source
|
|
40
|
+
rm -rf $1/*
|
|
41
|
+
mkdir $1/dist
|
|
42
|
+
cp -r src/* $1/dist/
|
|
43
|
+
cp package.json $1/
|
|
44
|
+
endef
|
|
45
|
+
|
|
46
|
+
define _deploy
|
|
47
|
+
rm -rf $1/*
|
|
48
|
+
mkdir $1/dist
|
|
49
|
+
cp -r dist/* $1/dist/
|
|
50
|
+
cp ./* $1/
|
|
51
|
+
endef
|
package/dist/Program.js
CHANGED
|
@@ -38,6 +38,10 @@ class Program extends _ReferenceEntity.default {
|
|
|
38
38
|
_defineProperty(this, "active", void 0);
|
|
39
39
|
|
|
40
40
|
_defineProperty(this, "voided", void 0);
|
|
41
|
+
|
|
42
|
+
_defineProperty(this, "manualEligibilityCheckRequired", void 0);
|
|
43
|
+
|
|
44
|
+
_defineProperty(this, "manualEnrolmentEligibilityCheckRule", void 0);
|
|
41
45
|
}
|
|
42
46
|
|
|
43
47
|
static fromResource(operationalProgram) {
|
|
@@ -90,6 +94,11 @@ _defineProperty(Program, "schema", {
|
|
|
90
94
|
type: 'string',
|
|
91
95
|
optional: true
|
|
92
96
|
},
|
|
97
|
+
manualEligibilityCheckRequired: 'bool',
|
|
98
|
+
manualEnrolmentEligibilityCheckRule: {
|
|
99
|
+
type: 'string',
|
|
100
|
+
optional: true
|
|
101
|
+
},
|
|
93
102
|
voided: {
|
|
94
103
|
type: 'bool',
|
|
95
104
|
default: false
|