@opencrvs/toolkit 2.1.0-rc.e773220 → 2.1.0-rc.e8dd933
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/dist/application-config/index.js +14 -1
- package/dist/cli.js +0 -48
- package/dist/commons/api/router.d.ts +758 -201
- package/dist/commons/conditionals/conditionals.d.ts +1589 -37
- package/dist/commons/events/ActionConfig.d.ts +33 -0
- package/dist/commons/events/ActionDocument.d.ts +50 -6
- package/dist/commons/events/ActionInput.d.ts +26 -6
- package/dist/commons/events/ActionType.d.ts +6 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +6 -0
- package/dist/commons/events/AuditLog.d.ts +2 -0
- package/dist/commons/events/Draft.d.ts +2 -0
- package/dist/commons/events/EventDocument.d.ts +24 -2
- package/dist/commons/events/FieldConfig.d.ts +5 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +5 -2
- package/dist/commons/events/field.d.ts +722 -34
- package/dist/commons/events/scopes.d.ts +1 -0
- package/dist/commons/events/test.utils.d.ts +9 -4
- package/dist/commons/events/utils.d.ts +26 -4
- package/dist/conditionals/index.js +2 -0
- package/dist/environment/derived-variables.d.ts +0 -12
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/derived-variables.js +0 -14
- package/dist/environment/logger.d.ts +3 -12
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/manage-users.js +17 -7
- package/dist/environment/setup-environment.js +0 -14
- package/dist/environment/swarm-to-k8s.js +17 -7
- package/dist/environment/update-workflows.js +17 -7
- package/dist/environment/users.js +17 -7
- package/dist/environment/utils.js +17 -7
- package/dist/events/index.js +106 -29
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +17 -7
- package/dist/migrations/v2.0/remove-hearth-migrations.js +17 -7
- package/dist/notification/index.js +58 -24
- package/dist/scopes/index.d.ts +7 -1
- package/dist/scopes/index.js +2 -0
- package/dist/templates/charts-values/dependencies/values.yaml +0 -3
- package/dist/templates/charts-values/opencrvs-services/values.yaml +0 -4
- package/opencrvs-toolkit-2.1.0-rc.e8dd933.tgz +0 -0
- package/package.json +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.e773220.tgz +0 -0
package/dist/scopes/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare const RecordScopeTypeV2: z.ZodEnum<{
|
|
|
25
25
|
"record.edit": "record.edit";
|
|
26
26
|
"record.reject": "record.reject";
|
|
27
27
|
"record.archive": "record.archive";
|
|
28
|
+
"record.unarchive": "record.unarchive";
|
|
28
29
|
"record.review-duplicates": "record.review-duplicates";
|
|
29
30
|
"record.register": "record.register";
|
|
30
31
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
@@ -97,6 +98,7 @@ export declare const ScopesWithDeclaredOptions: z.ZodEnum<{
|
|
|
97
98
|
"record.edit": "record.edit";
|
|
98
99
|
"record.reject": "record.reject";
|
|
99
100
|
"record.archive": "record.archive";
|
|
101
|
+
"record.unarchive": "record.unarchive";
|
|
100
102
|
"record.review-duplicates": "record.review-duplicates";
|
|
101
103
|
"record.register": "record.register";
|
|
102
104
|
}>;
|
|
@@ -126,6 +128,7 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
126
128
|
"record.edit": "record.edit";
|
|
127
129
|
"record.reject": "record.reject";
|
|
128
130
|
"record.archive": "record.archive";
|
|
131
|
+
"record.unarchive": "record.unarchive";
|
|
129
132
|
"record.review-duplicates": "record.review-duplicates";
|
|
130
133
|
"record.register": "record.register";
|
|
131
134
|
}>;
|
|
@@ -341,6 +344,7 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
341
344
|
"record.edit": "record.edit";
|
|
342
345
|
"record.reject": "record.reject";
|
|
343
346
|
"record.archive": "record.archive";
|
|
347
|
+
"record.unarchive": "record.unarchive";
|
|
344
348
|
"record.review-duplicates": "record.review-duplicates";
|
|
345
349
|
"record.register": "record.register";
|
|
346
350
|
}>;
|
|
@@ -423,6 +427,7 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
423
427
|
"record.edit": "record.edit";
|
|
424
428
|
"record.reject": "record.reject";
|
|
425
429
|
"record.archive": "record.archive";
|
|
430
|
+
"record.unarchive": "record.unarchive";
|
|
426
431
|
"record.review-duplicates": "record.review-duplicates";
|
|
427
432
|
"record.register": "record.register";
|
|
428
433
|
}>;
|
|
@@ -615,6 +620,7 @@ export declare const ScopeType: z.ZodEnum<{
|
|
|
615
620
|
"record.edit": "record.edit";
|
|
616
621
|
"record.reject": "record.reject";
|
|
617
622
|
"record.archive": "record.archive";
|
|
623
|
+
"record.unarchive": "record.unarchive";
|
|
618
624
|
"record.review-duplicates": "record.review-duplicates";
|
|
619
625
|
"record.register": "record.register";
|
|
620
626
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
@@ -672,7 +678,7 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
672
678
|
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
673
679
|
} | undefined;
|
|
674
680
|
} | {
|
|
675
|
-
type: "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register";
|
|
681
|
+
type: "record.edit" | "record.reject" | "record.archive" | "record.unarchive" | "record.review-duplicates" | "record.register";
|
|
676
682
|
options?: {
|
|
677
683
|
event?: string[] | undefined;
|
|
678
684
|
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
package/dist/scopes/index.js
CHANGED
|
@@ -110,6 +110,7 @@ var RecordScopeTypeV2 = z3.enum([
|
|
|
110
110
|
"record.edit",
|
|
111
111
|
"record.reject",
|
|
112
112
|
"record.archive",
|
|
113
|
+
"record.unarchive",
|
|
113
114
|
"record.review-duplicates",
|
|
114
115
|
"record.register",
|
|
115
116
|
"record.print-certified-copies",
|
|
@@ -215,6 +216,7 @@ var ScopesWithDeclaredOptions = RecordScopeTypeV2.extract([
|
|
|
215
216
|
"record.edit",
|
|
216
217
|
"record.reject",
|
|
217
218
|
"record.archive",
|
|
219
|
+
"record.unarchive",
|
|
218
220
|
"record.review-duplicates",
|
|
219
221
|
"record.register"
|
|
220
222
|
]);
|
|
@@ -36,10 +36,6 @@ minio:
|
|
|
36
36
|
auth_mode: use_secret
|
|
37
37
|
host: minio-0.minio.opencrvs-deps-{{env}}.svc.cluster.local
|
|
38
38
|
|
|
39
|
-
mongodb:
|
|
40
|
-
auth_mode: auto
|
|
41
|
-
host: mongodb-0.mongodb.opencrvs-deps-{{env}}.svc.cluster.local
|
|
42
|
-
|
|
43
39
|
redis:
|
|
44
40
|
auth_mode: use_secret
|
|
45
41
|
host: redis-0.redis.opencrvs-deps-{{env}}.svc.cluster.local
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencrvs/toolkit",
|
|
3
|
-
"version": "2.1.0-rc.
|
|
3
|
+
"version": "2.1.0-rc.e8dd933",
|
|
4
4
|
"description": "OpenCRVS toolkit for building country configurations",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"bin": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"ajv-formats": "^3.0.1",
|
|
34
34
|
"date-fns": "^2.28.0",
|
|
35
35
|
"dotenv": "^16.4.5",
|
|
36
|
-
"glob": "11.0
|
|
36
|
+
"glob": "11.1.0",
|
|
37
37
|
"handlebars": "^4.7.8",
|
|
38
38
|
"js-yaml": "4.1.0",
|
|
39
39
|
"jwt-decode": "^3.0.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@types/ssh2": "^1.15.5",
|
|
60
60
|
"@types/uuid": "^9.0.3",
|
|
61
61
|
"esbuild": "^0.24.0",
|
|
62
|
-
"typescript": "
|
|
62
|
+
"typescript": "6.0.3"
|
|
63
63
|
},
|
|
64
64
|
"moduleNameMapper": {
|
|
65
65
|
"@opencrvs/commons/events": "@opencrvs/commons/build/dist/common/events/index.js",
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/cli.ts","./src/api/index.ts","./src/application-config/index.ts","./src/conditionals/index.ts","./src/environment/custom-types.ts","./src/environment/derived-variables.ts","./src/environment/editor-questions.ts","./src/environment/git.ts","./src/environment/github.ts","./src/environment/index.ts","./src/environment/logger.ts","./src/environment/manage-users.ts","./src/environment/questions-helper.ts","./src/environment/questions.ts","./src/environment/setup-environment.ts","./src/environment/ssh-keygen.ts","./src/environment/swarm-to-k8s.ts","./src/environment/templates.ts","./src/environment/update-workflows.ts","./src/environment/users.ts","./src/environment/utils.ts","./src/events/deduplication.ts","./src/events/index.ts","./src/migrations/v2.0/add-birth-certificate-issuance-flag.ts","./src/migrations/v2.0/add-resend-invite-notification.ts","./src/migrations/v2.0/checkout-upstream-files.ts","./src/migrations/v2.0/convert-config-files-to-ts.ts","./src/migrations/v2.0/convert-paragraph-to-heading.ts","./src/migrations/v2.0/create-events-index.ts","./src/migrations/v2.0/delete-infrastructure-directory.ts","./src/migrations/v2.0/fix-accept-requested-registration-function-type.ts","./src/migrations/v2.0/index.ts","./src/migrations/v2.0/make-built-in-validate-actions-custom.ts","./src/migrations/v2.0/merge-infrastructure-directory.ts","./src/migrations/v2.0/migrate-application-config-url.ts","./src/migrations/v2.0/migrate-scopes.ts","./src/migrations/v2.0/migrate-validated-workqueue-status-to-flag.ts","./src/migrations/v2.0/migrate-workqueue-configs.ts","./src/migrations/v2.0/remove-delete-actions.ts","./src/migrations/v2.0/remove-demo-scope.ts","./src/migrations/v2.0/remove-deprecated-imports.ts","./src/migrations/v2.0/remove-fhir-url-helpers.ts","./src/migrations/v2.0/remove-hearth-migrations.ts","./src/migrations/v2.0/remove-old-statistics-service.ts","./src/migrations/v2.0/remove-pending-certification-flag.ts","./src/migrations/v2.0/remove-review-from-register-action.ts","./src/migrations/v2.0/remove-unused-environment-variables.ts","./src/migrations/v2.0/rename-api-paths.ts","./src/migrations/v2.0/rename-location-parent-id.ts","./src/migrations/v2.0/simplify-analytics-precalculations.ts","./src/migrations/v2.0/update-package-json.ts","./src/migrations/v2.1/add-explicit-correction-flags.ts","./src/migrations/v2.1/index.ts","./src/notification/index.ts","./src/scopes/index.ts"],"version":"
|
|
1
|
+
{"root":["./src/cli.ts","./src/api/index.ts","./src/application-config/index.ts","./src/conditionals/index.ts","./src/environment/custom-types.ts","./src/environment/derived-variables.ts","./src/environment/editor-questions.ts","./src/environment/git.ts","./src/environment/github.ts","./src/environment/index.ts","./src/environment/logger.ts","./src/environment/manage-users.ts","./src/environment/questions-helper.ts","./src/environment/questions.ts","./src/environment/setup-environment.ts","./src/environment/ssh-keygen.ts","./src/environment/swarm-to-k8s.ts","./src/environment/templates.ts","./src/environment/update-workflows.ts","./src/environment/users.ts","./src/environment/utils.ts","./src/events/deduplication.ts","./src/events/index.ts","./src/migrations/v2.0/add-birth-certificate-issuance-flag.ts","./src/migrations/v2.0/add-resend-invite-notification.ts","./src/migrations/v2.0/checkout-upstream-files.ts","./src/migrations/v2.0/convert-config-files-to-ts.ts","./src/migrations/v2.0/convert-paragraph-to-heading.ts","./src/migrations/v2.0/create-events-index.ts","./src/migrations/v2.0/delete-infrastructure-directory.ts","./src/migrations/v2.0/fix-accept-requested-registration-function-type.ts","./src/migrations/v2.0/index.ts","./src/migrations/v2.0/make-built-in-validate-actions-custom.ts","./src/migrations/v2.0/merge-infrastructure-directory.ts","./src/migrations/v2.0/migrate-application-config-url.ts","./src/migrations/v2.0/migrate-scopes.ts","./src/migrations/v2.0/migrate-validated-workqueue-status-to-flag.ts","./src/migrations/v2.0/migrate-workqueue-configs.ts","./src/migrations/v2.0/remove-delete-actions.ts","./src/migrations/v2.0/remove-demo-scope.ts","./src/migrations/v2.0/remove-deprecated-imports.ts","./src/migrations/v2.0/remove-fhir-url-helpers.ts","./src/migrations/v2.0/remove-hearth-migrations.ts","./src/migrations/v2.0/remove-old-statistics-service.ts","./src/migrations/v2.0/remove-pending-certification-flag.ts","./src/migrations/v2.0/remove-review-from-register-action.ts","./src/migrations/v2.0/remove-unused-environment-variables.ts","./src/migrations/v2.0/rename-api-paths.ts","./src/migrations/v2.0/rename-location-parent-id.ts","./src/migrations/v2.0/simplify-analytics-precalculations.ts","./src/migrations/v2.0/update-package-json.ts","./src/migrations/v2.1/add-explicit-correction-flags.ts","./src/migrations/v2.1/index.ts","./src/notification/index.ts","./src/scopes/index.ts"],"version":"6.0.3"}
|
|
Binary file
|