@opencrvs/toolkit 2.1.0-rc.d1b9774 → 2.1.0-rc.d235243
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 +2 -12
- package/build.sh +15 -5
- package/create-countryconfig/index.js +164 -4
- package/dist/application-config/index.js +36 -25
- package/dist/authentication/index.d.ts +8 -9
- package/dist/authentication/index.js +23 -8
- package/dist/cli.js +1981 -2823
- package/dist/commons/api/router.d.ts +252 -290
- package/dist/commons/application-config/index.d.ts +0 -2
- package/dist/commons/conditionals/conditionals.d.ts +6 -6
- package/dist/commons/conditionals/validate.d.ts +19 -4
- package/dist/commons/events/ActionConfig.d.ts +5 -14
- package/dist/commons/events/ActionDocument.d.ts +30 -4
- package/dist/commons/events/AdvancedSearchConfig.d.ts +24 -12
- package/dist/commons/events/AuditLog.d.ts +1 -0
- package/dist/commons/events/Draft.d.ts +1 -21
- package/dist/commons/events/EventDocument.d.ts +4 -4
- package/dist/commons/events/FieldConfig.d.ts +26 -15
- package/dist/commons/events/FieldTypeMapping.d.ts +10 -10
- package/dist/commons/events/FieldValue.d.ts +1 -0
- package/dist/commons/events/FormConfig.d.ts +6 -0
- package/dist/commons/events/PageConfig.d.ts +4 -0
- package/dist/commons/events/locations.d.ts +4 -0
- package/dist/commons/events/scopes.d.ts +21 -1
- package/dist/commons/events/test.utils.d.ts +71 -22
- package/dist/commons/events/utils.d.ts +37 -2
- package/dist/conditionals/index.js +21 -7
- package/dist/environment/derived-variables.d.ts +18 -0
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/derived-variables.js +21 -0
- package/dist/environment/index.d.ts.map +1 -1
- package/dist/environment/index.js +2 -1
- package/dist/environment/manage-users.js +1 -1
- package/dist/environment/questions.d.ts +16 -0
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/questions.js +27 -2
- package/dist/environment/setup-environment.d.ts +1 -1
- package/dist/environment/setup-environment.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +633 -560
- package/dist/environment/swarm-to-k8s.js +3 -4
- package/dist/environment/templates.d.ts +0 -1
- package/dist/environment/templates.d.ts.map +1 -1
- package/dist/environment/templates.js +3 -8
- package/dist/environment/update-workflows.d.ts.map +1 -1
- package/dist/environment/update-workflows.js +6 -1
- package/dist/environment/utils.d.ts +0 -12
- package/dist/environment/utils.d.ts.map +1 -1
- package/dist/environment/utils.js +1 -28
- package/dist/events/index.js +2115 -1884
- package/dist/migrations/v2.1/add-recovery-link-notifications.js +4 -4
- package/dist/migrations/v2.1/add-translations.d.ts.map +1 -1
- package/dist/migrations/v2.1/add-translations.js +4 -68
- package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -1
- package/dist/migrations/v2.1/enable-telemetry.js +30 -13
- package/dist/migrations/v2.1/index.d.ts.map +1 -1
- package/dist/migrations/v2.1/index.js +35 -1261
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +14 -0
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +1 -0
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.js +348 -0
- package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts +2 -0
- package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts.map +1 -0
- package/dist/migrations/v2.1/remove-metabase-package-installs.js +161 -0
- package/dist/migrations/{v2.0/migrate-scopes.d.ts → v2.1/remove-sentry.d.ts} +1 -1
- package/dist/migrations/v2.1/remove-sentry.d.ts.map +1 -0
- package/dist/migrations/v2.1/remove-sentry.js +354 -0
- package/dist/migrations/{v2.0/rename-api-paths.d.ts → v2.1/rename-trigger-paths.d.ts} +1 -1
- package/dist/migrations/v2.1/rename-trigger-paths.d.ts.map +1 -0
- package/dist/migrations/{v2.0/rename-api-paths.js → v2.1/rename-trigger-paths.js} +69 -40
- package/dist/migrations/v2.1/template-files.d.ts +8 -0
- package/dist/migrations/v2.1/template-files.d.ts.map +1 -0
- package/dist/migrations/v2.1/template-files.js +49 -0
- package/dist/migrations/v2.1/upgrade-tilt.d.ts +8 -0
- package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +1 -0
- package/dist/migrations/v2.1/upgrade-tilt.js +139 -0
- package/dist/migrations/v2.2/add-e2e-tests.d.ts +19 -0
- package/dist/migrations/v2.2/add-e2e-tests.d.ts.map +1 -0
- package/dist/migrations/v2.2/add-e2e-tests.js +143 -0
- package/dist/migrations/v2.2/index.d.ts +6 -0
- package/dist/migrations/v2.2/index.d.ts.map +1 -0
- package/dist/migrations/v2.2/index.js +279 -0
- package/dist/migrations/v2.2/template-files.d.ts +8 -0
- package/dist/migrations/v2.2/template-files.d.ts.map +1 -0
- package/dist/migrations/v2.2/template-files.js +49 -0
- package/dist/migrations/v2.2/upgrade-tilt.d.ts +8 -0
- package/dist/migrations/v2.2/upgrade-tilt.d.ts.map +1 -0
- package/dist/migrations/v2.2/upgrade-tilt.js +139 -0
- package/dist/notification/index.js +249 -207
- package/dist/scopes/index.d.ts +288 -5
- package/dist/scopes/index.js +22 -7
- package/dist/telemetry/index.js +4 -0
- package/dist/templates/charts-values/dependencies/values.yaml +8 -0
- package/dist/templates/charts-values/opencrvs-services/values.yaml +6 -0
- package/dist/templates/charts-values/opentelemetry/values.yaml +7 -0
- package/dist/templates/charts-values/traefik/values.yaml +2 -3
- package/dist/templates/countryconfig-template/.tiltignore +1 -0
- package/dist/templates/countryconfig-template/Dockerfile.assets +7 -0
- package/dist/templates/countryconfig-template/Tiltfile +112 -0
- package/dist/templates/countryconfig-template/assets/README.md +1 -0
- package/dist/templates/countryconfig-template/assets/clear-all-data-dev.sh +61 -0
- package/dist/templates/countryconfig-template/assets/deployment/deploy.sh +455 -0
- package/dist/templates/countryconfig-template/assets/deployment/reindex.sh +168 -0
- package/dist/templates/countryconfig-template/assets/deployment/validate-required-variables-in-compose-files.ts +67 -0
- package/dist/templates/countryconfig-template/assets/elasticsearch/reindex.sh +168 -0
- package/dist/templates/countryconfig-template/assets/metabase/README.md +34 -0
- package/dist/templates/countryconfig-template/assets/metabase/environment-configuration.sql +36 -0
- package/dist/templates/countryconfig-template/assets/metabase/initialize-database.sh +46 -0
- package/dist/templates/countryconfig-template/assets/metabase/metabase.init.db.sql +27737 -0
- package/dist/templates/countryconfig-template/assets/metabase/open-shell.sh +21 -0
- package/dist/templates/countryconfig-template/assets/metabase/package.json +13 -0
- package/dist/templates/countryconfig-template/assets/metabase/run-dev.sh +108 -0
- package/dist/templates/countryconfig-template/assets/metabase/run.sh +120 -0
- package/dist/templates/countryconfig-template/assets/metabase/update-database.sh +40 -0
- package/dist/templates/countryconfig-template/assets/postgres/setup-analytics.sh +135 -0
- package/dist/templates/countryconfig-template/assets/postgres/setup-reference-data.sh +108 -0
- package/dist/templates/countryconfig-template/e2e/README.md +36 -0
- package/dist/templates/countryconfig-template/e2e/constants.ts +28 -0
- package/dist/templates/countryconfig-template/e2e/login.e2e.ts +59 -0
- package/dist/templates/countryconfig-template/package.json +153 -0
- package/dist/templates/countryconfig-template/playwright.config.ts +42 -0
- package/dist/templates/countryconfig-template/tilt/clear-all-data.ps1 +50 -0
- package/dist/templates/countryconfig-template/tilt/clear-all-data.sh +35 -0
- package/dist/templates/countryconfig-template/tilt/common.tilt +159 -0
- package/dist/templates/countryconfig-template/tilt/examples/dependencies/values.yaml +15 -0
- package/dist/templates/countryconfig-template/tilt/examples/opencrvs-services/values.yaml +56 -0
- package/dist/templates/countryconfig-template/tilt/examples/traefik/values-minikube.yaml +21 -0
- package/dist/templates/countryconfig-template/tilt/examples/traefik/values.yaml +38 -0
- package/dist/templates/countryconfig-template/tilt/helm/dependencies/values.yaml +17 -0
- package/dist/templates/countryconfig-template/tilt/helm/opencrvs-services/values.yaml +16 -0
- package/dist/templates/countryconfig-template/tilt/lib.tilt +95 -0
- package/dist/templates/countryconfig-template/tilt/opencrvs.tilt +136 -0
- package/dist/translations/template.d.ts +11 -0
- package/dist/translations/template.d.ts.map +1 -0
- package/dist/translations/template.js +100 -0
- package/dist/verify/endpoints.d.ts.map +1 -1
- package/dist/verify/endpoints.js +180 -15
- package/opencrvs-toolkit-2.1.0-rc.d235243.tgz +0 -0
- package/package.json +2 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +0 -3
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +0 -1
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +0 -429
- package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +0 -3
- package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +0 -1
- package/dist/migrations/v2.0/add-resend-invite-notification.js +0 -373
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +0 -22
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +0 -1
- package/dist/migrations/v2.0/checkout-upstream-files.js +0 -146
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +0 -2
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +0 -1
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +0 -838
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +0 -3
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +0 -1
- package/dist/migrations/v2.0/convert-paragraph-to-heading.js +0 -158
- package/dist/migrations/v2.0/create-events-index.d.ts +0 -3
- package/dist/migrations/v2.0/create-events-index.d.ts.map +0 -1
- package/dist/migrations/v2.0/create-events-index.js +0 -325
- package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +0 -11
- package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +0 -1
- package/dist/migrations/v2.0/delete-infrastructure-directory.js +0 -123
- package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts +0 -3
- package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts.map +0 -1
- package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.js +0 -110
- package/dist/migrations/v2.0/index.d.ts +0 -13
- package/dist/migrations/v2.0/index.d.ts.map +0 -1
- package/dist/migrations/v2.0/index.js +0 -103
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +0 -3
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +0 -1
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +0 -432
- package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +0 -13
- package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +0 -1
- package/dist/migrations/v2.0/merge-infrastructure-directory.js +0 -222
- package/dist/migrations/v2.0/migrate-application-config-url.d.ts +0 -3
- package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +0 -1
- package/dist/migrations/v2.0/migrate-application-config-url.js +0 -343
- package/dist/migrations/v2.0/migrate-scopes.d.ts.map +0 -1
- package/dist/migrations/v2.0/migrate-scopes.js +0 -305
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +0 -3
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +0 -1
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +0 -267
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +0 -3
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +0 -1
- package/dist/migrations/v2.0/migrate-workqueue-configs.js +0 -317
- package/dist/migrations/v2.0/remove-delete-actions.d.ts +0 -3
- package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-delete-actions.js +0 -156
- package/dist/migrations/v2.0/remove-demo-scope.d.ts +0 -3
- package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-demo-scope.js +0 -74
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +0 -3
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-deprecated-imports.js +0 -96
- package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +0 -3
- package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-fhir-url-helpers.js +0 -163
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +0 -3
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-hearth-migrations.js +0 -87
- package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +0 -3
- package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-old-statistics-service.js +0 -356
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +0 -3
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-pending-certification-flag.js +0 -109
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +0 -3
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-review-from-register-action.js +0 -163
- package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +0 -3
- package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-unused-environment-variables.js +0 -186
- package/dist/migrations/v2.0/rename-api-paths.d.ts.map +0 -1
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts +0 -3
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +0 -1
- package/dist/migrations/v2.0/rename-location-parent-id.js +0 -180
- package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +0 -3
- package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +0 -1
- package/dist/migrations/v2.0/simplify-analytics-precalculations.js +0 -195
- package/dist/migrations/v2.0/update-package-json.d.ts +0 -3
- package/dist/migrations/v2.0/update-package-json.d.ts.map +0 -1
- package/dist/migrations/v2.0/update-package-json.js +0 -105
- package/dist/translations/check.d.ts +0 -19
- package/dist/translations/check.d.ts.map +0 -1
- package/dist/translations/check.js +0 -127
- package/opencrvs-toolkit-2.1.0-rc.d1b9774.tgz +0 -0
package/dist/scopes/index.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export type UserFilter = z.infer<typeof UserFilter>;
|
|
|
17
17
|
* @see scopeOptionsPlaceEvent @see scopeOptionsDeclaredOrNotified @see scopeOptionsFull
|
|
18
18
|
*/
|
|
19
19
|
export declare const RecordScopeTypeV2: z.ZodEnum<{
|
|
20
|
+
"record.action.accept": "record.action.accept";
|
|
21
|
+
"record.action.reject": "record.action.reject";
|
|
20
22
|
"record.archive": "record.archive";
|
|
21
23
|
"record.correct": "record.correct";
|
|
22
24
|
"record.create": "record.create";
|
|
@@ -42,6 +44,14 @@ declare const AllScopeOptions: z.ZodObject<{
|
|
|
42
44
|
all: "all";
|
|
43
45
|
location: "location";
|
|
44
46
|
}>>;
|
|
47
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
user: "user";
|
|
49
|
+
}>>;
|
|
50
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
administrativeArea: "administrativeArea";
|
|
52
|
+
all: "all";
|
|
53
|
+
location: "location";
|
|
54
|
+
}>>;
|
|
45
55
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
46
56
|
administrativeArea: "administrativeArea";
|
|
47
57
|
all: "all";
|
|
@@ -107,6 +117,8 @@ declare const AllScopeOptions: z.ZodObject<{
|
|
|
107
117
|
type AllScopeOptions = z.infer<typeof AllScopeOptions>;
|
|
108
118
|
export declare const ScopeOptionKey: z.ZodEnum<{
|
|
109
119
|
accessLevel: "accessLevel";
|
|
120
|
+
createdBy: "createdBy";
|
|
121
|
+
createdIn: "createdIn";
|
|
110
122
|
declaredBy: "declaredBy";
|
|
111
123
|
declaredIn: "declaredIn";
|
|
112
124
|
event: "event";
|
|
@@ -141,6 +153,11 @@ export declare const ScopesWithFullOptions: z.ZodEnum<{
|
|
|
141
153
|
"record.search": "record.search";
|
|
142
154
|
"record.unassign-others": "record.unassign-others";
|
|
143
155
|
}>;
|
|
156
|
+
export declare const ActionConfirmationScopeType: z.ZodEnum<{
|
|
157
|
+
"record.action.accept": "record.action.accept";
|
|
158
|
+
"record.action.reject": "record.action.reject";
|
|
159
|
+
}>;
|
|
160
|
+
export type ActionConfirmationScopeType = z.infer<typeof ActionConfirmationScopeType>;
|
|
144
161
|
export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
145
162
|
type: z.ZodEnum<{
|
|
146
163
|
"record.create": "record.create";
|
|
@@ -154,6 +171,14 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
154
171
|
all: "all";
|
|
155
172
|
location: "location";
|
|
156
173
|
}>>;
|
|
174
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
175
|
+
user: "user";
|
|
176
|
+
}>>;
|
|
177
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
178
|
+
administrativeArea: "administrativeArea";
|
|
179
|
+
all: "all";
|
|
180
|
+
location: "location";
|
|
181
|
+
}>>;
|
|
157
182
|
}, z.core.$strip>>;
|
|
158
183
|
}, z.core.$strip>, z.ZodObject<{
|
|
159
184
|
type: z.ZodEnum<{
|
|
@@ -170,6 +195,14 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
170
195
|
all: "all";
|
|
171
196
|
location: "location";
|
|
172
197
|
}>>;
|
|
198
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
199
|
+
user: "user";
|
|
200
|
+
}>>;
|
|
201
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
202
|
+
administrativeArea: "administrativeArea";
|
|
203
|
+
all: "all";
|
|
204
|
+
location: "location";
|
|
205
|
+
}>>;
|
|
173
206
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
174
207
|
administrativeArea: "administrativeArea";
|
|
175
208
|
all: "all";
|
|
@@ -210,6 +243,14 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
210
243
|
all: "all";
|
|
211
244
|
location: "location";
|
|
212
245
|
}>>;
|
|
246
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
247
|
+
user: "user";
|
|
248
|
+
}>>;
|
|
249
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
250
|
+
administrativeArea: "administrativeArea";
|
|
251
|
+
all: "all";
|
|
252
|
+
location: "location";
|
|
253
|
+
}>>;
|
|
213
254
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
214
255
|
administrativeArea: "administrativeArea";
|
|
215
256
|
all: "all";
|
|
@@ -274,6 +315,14 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
274
315
|
all: "all";
|
|
275
316
|
location: "location";
|
|
276
317
|
}>>;
|
|
318
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
319
|
+
user: "user";
|
|
320
|
+
}>>;
|
|
321
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
322
|
+
administrativeArea: "administrativeArea";
|
|
323
|
+
all: "all";
|
|
324
|
+
location: "location";
|
|
325
|
+
}>>;
|
|
277
326
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
278
327
|
administrativeArea: "administrativeArea";
|
|
279
328
|
all: "all";
|
|
@@ -339,6 +388,14 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
339
388
|
all: "all";
|
|
340
389
|
location: "location";
|
|
341
390
|
}>>;
|
|
391
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
392
|
+
user: "user";
|
|
393
|
+
}>>;
|
|
394
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
395
|
+
administrativeArea: "administrativeArea";
|
|
396
|
+
all: "all";
|
|
397
|
+
location: "location";
|
|
398
|
+
}>>;
|
|
342
399
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
343
400
|
administrativeArea: "administrativeArea";
|
|
344
401
|
all: "all";
|
|
@@ -395,6 +452,81 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
395
452
|
}, z.core.$strip>>;
|
|
396
453
|
templates: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
397
454
|
}, z.core.$strip>>;
|
|
455
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
456
|
+
type: z.ZodEnum<{
|
|
457
|
+
"record.action.accept": "record.action.accept";
|
|
458
|
+
"record.action.reject": "record.action.reject";
|
|
459
|
+
}>;
|
|
460
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
461
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
462
|
+
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
463
|
+
administrativeArea: "administrativeArea";
|
|
464
|
+
all: "all";
|
|
465
|
+
location: "location";
|
|
466
|
+
}>>;
|
|
467
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
468
|
+
user: "user";
|
|
469
|
+
}>>;
|
|
470
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
471
|
+
administrativeArea: "administrativeArea";
|
|
472
|
+
all: "all";
|
|
473
|
+
location: "location";
|
|
474
|
+
}>>;
|
|
475
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
476
|
+
administrativeArea: "administrativeArea";
|
|
477
|
+
all: "all";
|
|
478
|
+
location: "location";
|
|
479
|
+
}>>;
|
|
480
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
481
|
+
user: "user";
|
|
482
|
+
}>>;
|
|
483
|
+
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
484
|
+
administrativeArea: "administrativeArea";
|
|
485
|
+
all: "all";
|
|
486
|
+
location: "location";
|
|
487
|
+
}>>;
|
|
488
|
+
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
489
|
+
user: "user";
|
|
490
|
+
}>>;
|
|
491
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
492
|
+
ARCHIVED: "ARCHIVED";
|
|
493
|
+
CREATED: "CREATED";
|
|
494
|
+
DECLARED: "DECLARED";
|
|
495
|
+
NOTIFIED: "NOTIFIED";
|
|
496
|
+
REGISTERED: "REGISTERED";
|
|
497
|
+
}>>>>;
|
|
498
|
+
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
499
|
+
administrativeArea: "administrativeArea";
|
|
500
|
+
all: "all";
|
|
501
|
+
location: "location";
|
|
502
|
+
}>>;
|
|
503
|
+
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
504
|
+
user: "user";
|
|
505
|
+
}>>;
|
|
506
|
+
flags: z.ZodOptional<z.ZodObject<{
|
|
507
|
+
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
508
|
+
readonly INCOMPLETE: 'incomplete';
|
|
509
|
+
readonly REJECTED: 'rejected';
|
|
510
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
511
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
512
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
513
|
+
}>]>, z.ZodString]>>>;
|
|
514
|
+
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
515
|
+
readonly INCOMPLETE: 'incomplete';
|
|
516
|
+
readonly REJECTED: 'rejected';
|
|
517
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
518
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
519
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
520
|
+
}>]>, z.ZodString]>>>;
|
|
521
|
+
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
522
|
+
readonly INCOMPLETE: 'incomplete';
|
|
523
|
+
readonly REJECTED: 'rejected';
|
|
524
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
525
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
526
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
527
|
+
}>]>, z.ZodString]>>>;
|
|
528
|
+
}, z.core.$strip>>;
|
|
529
|
+
}, z.core.$strip>>;
|
|
398
530
|
}, z.core.$strip>], "type">;
|
|
399
531
|
declare const SystemScopeType: z.ZodEnum<{
|
|
400
532
|
"organisation.read-locations": "organisation.read-locations";
|
|
@@ -467,6 +599,8 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
467
599
|
options: z.ZodOptional<z.ZodObject<{
|
|
468
600
|
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
469
601
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
602
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
603
|
+
createdIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
470
604
|
}, z.core.$strip>>;
|
|
471
605
|
}, z.core.$strip>, z.ZodObject<{
|
|
472
606
|
type: z.ZodEnum<{
|
|
@@ -479,6 +613,8 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
479
613
|
options: z.ZodOptional<z.ZodObject<{
|
|
480
614
|
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
481
615
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
616
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
617
|
+
createdIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
482
618
|
notifiedIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
483
619
|
notifiedBy: z.ZodOptional<z.ZodString>;
|
|
484
620
|
declaredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
@@ -496,6 +632,8 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
496
632
|
options: z.ZodOptional<z.ZodObject<{
|
|
497
633
|
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
498
634
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
635
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
636
|
+
createdIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
499
637
|
notifiedIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
500
638
|
notifiedBy: z.ZodOptional<z.ZodString>;
|
|
501
639
|
declaredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
@@ -531,6 +669,8 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
531
669
|
options: z.ZodOptional<z.ZodObject<{
|
|
532
670
|
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
533
671
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
672
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
673
|
+
createdIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
534
674
|
notifiedIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
535
675
|
notifiedBy: z.ZodOptional<z.ZodString>;
|
|
536
676
|
declaredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
@@ -578,10 +718,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
578
718
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
579
719
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
580
720
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
581
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
582
721
|
"record.import": "record.import";
|
|
583
722
|
"record.reindex": "record.reindex";
|
|
584
|
-
"record.reject-registration": "record.reject-registration";
|
|
585
723
|
"user.data-seeding": "user.data-seeding";
|
|
586
724
|
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
587
725
|
}>;
|
|
@@ -598,6 +736,14 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
598
736
|
all: "all";
|
|
599
737
|
location: "location";
|
|
600
738
|
}>>;
|
|
739
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
740
|
+
user: "user";
|
|
741
|
+
}>>;
|
|
742
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
743
|
+
administrativeArea: "administrativeArea";
|
|
744
|
+
all: "all";
|
|
745
|
+
location: "location";
|
|
746
|
+
}>>;
|
|
601
747
|
}, z.core.$strip>>;
|
|
602
748
|
}, z.core.$strip>, z.ZodObject<{
|
|
603
749
|
type: z.ZodEnum<{
|
|
@@ -614,6 +760,14 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
614
760
|
all: "all";
|
|
615
761
|
location: "location";
|
|
616
762
|
}>>;
|
|
763
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
764
|
+
user: "user";
|
|
765
|
+
}>>;
|
|
766
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
767
|
+
administrativeArea: "administrativeArea";
|
|
768
|
+
all: "all";
|
|
769
|
+
location: "location";
|
|
770
|
+
}>>;
|
|
617
771
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
618
772
|
administrativeArea: "administrativeArea";
|
|
619
773
|
all: "all";
|
|
@@ -654,6 +808,14 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
654
808
|
all: "all";
|
|
655
809
|
location: "location";
|
|
656
810
|
}>>;
|
|
811
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
812
|
+
user: "user";
|
|
813
|
+
}>>;
|
|
814
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
815
|
+
administrativeArea: "administrativeArea";
|
|
816
|
+
all: "all";
|
|
817
|
+
location: "location";
|
|
818
|
+
}>>;
|
|
657
819
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
658
820
|
administrativeArea: "administrativeArea";
|
|
659
821
|
all: "all";
|
|
@@ -718,6 +880,14 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
718
880
|
all: "all";
|
|
719
881
|
location: "location";
|
|
720
882
|
}>>;
|
|
883
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
884
|
+
user: "user";
|
|
885
|
+
}>>;
|
|
886
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
887
|
+
administrativeArea: "administrativeArea";
|
|
888
|
+
all: "all";
|
|
889
|
+
location: "location";
|
|
890
|
+
}>>;
|
|
721
891
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
722
892
|
administrativeArea: "administrativeArea";
|
|
723
893
|
all: "all";
|
|
@@ -783,6 +953,14 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
783
953
|
all: "all";
|
|
784
954
|
location: "location";
|
|
785
955
|
}>>;
|
|
956
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
957
|
+
user: "user";
|
|
958
|
+
}>>;
|
|
959
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
960
|
+
administrativeArea: "administrativeArea";
|
|
961
|
+
all: "all";
|
|
962
|
+
location: "location";
|
|
963
|
+
}>>;
|
|
786
964
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
787
965
|
administrativeArea: "administrativeArea";
|
|
788
966
|
all: "all";
|
|
@@ -839,6 +1017,81 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
839
1017
|
}, z.core.$strip>>;
|
|
840
1018
|
templates: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
841
1019
|
}, z.core.$strip>>;
|
|
1020
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1021
|
+
type: z.ZodEnum<{
|
|
1022
|
+
"record.action.accept": "record.action.accept";
|
|
1023
|
+
"record.action.reject": "record.action.reject";
|
|
1024
|
+
}>;
|
|
1025
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1026
|
+
event: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1027
|
+
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
1028
|
+
administrativeArea: "administrativeArea";
|
|
1029
|
+
all: "all";
|
|
1030
|
+
location: "location";
|
|
1031
|
+
}>>;
|
|
1032
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
1033
|
+
user: "user";
|
|
1034
|
+
}>>;
|
|
1035
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
1036
|
+
administrativeArea: "administrativeArea";
|
|
1037
|
+
all: "all";
|
|
1038
|
+
location: "location";
|
|
1039
|
+
}>>;
|
|
1040
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
1041
|
+
administrativeArea: "administrativeArea";
|
|
1042
|
+
all: "all";
|
|
1043
|
+
location: "location";
|
|
1044
|
+
}>>;
|
|
1045
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
1046
|
+
user: "user";
|
|
1047
|
+
}>>;
|
|
1048
|
+
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
1049
|
+
administrativeArea: "administrativeArea";
|
|
1050
|
+
all: "all";
|
|
1051
|
+
location: "location";
|
|
1052
|
+
}>>;
|
|
1053
|
+
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
1054
|
+
user: "user";
|
|
1055
|
+
}>>;
|
|
1056
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1057
|
+
ARCHIVED: "ARCHIVED";
|
|
1058
|
+
CREATED: "CREATED";
|
|
1059
|
+
DECLARED: "DECLARED";
|
|
1060
|
+
NOTIFIED: "NOTIFIED";
|
|
1061
|
+
REGISTERED: "REGISTERED";
|
|
1062
|
+
}>>>>;
|
|
1063
|
+
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
1064
|
+
administrativeArea: "administrativeArea";
|
|
1065
|
+
all: "all";
|
|
1066
|
+
location: "location";
|
|
1067
|
+
}>>;
|
|
1068
|
+
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
1069
|
+
user: "user";
|
|
1070
|
+
}>>;
|
|
1071
|
+
flags: z.ZodOptional<z.ZodObject<{
|
|
1072
|
+
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1073
|
+
readonly INCOMPLETE: 'incomplete';
|
|
1074
|
+
readonly REJECTED: 'rejected';
|
|
1075
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1076
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1077
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1078
|
+
}>]>, z.ZodString]>>>;
|
|
1079
|
+
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1080
|
+
readonly INCOMPLETE: 'incomplete';
|
|
1081
|
+
readonly REJECTED: 'rejected';
|
|
1082
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1083
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1084
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1085
|
+
}>]>, z.ZodString]>>>;
|
|
1086
|
+
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1087
|
+
readonly INCOMPLETE: 'incomplete';
|
|
1088
|
+
readonly REJECTED: 'rejected';
|
|
1089
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1090
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1091
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1092
|
+
}>]>, z.ZodString]>>>;
|
|
1093
|
+
}, z.core.$strip>>;
|
|
1094
|
+
}, z.core.$strip>>;
|
|
842
1095
|
}, z.core.$strip>, z.ZodObject<{
|
|
843
1096
|
type: z.ZodEnum<{
|
|
844
1097
|
"user.create": "user.create";
|
|
@@ -898,8 +1151,9 @@ export declare const ScopeType: z.ZodEnum<{
|
|
|
898
1151
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
899
1152
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
900
1153
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
1154
|
+
"record.action.accept": "record.action.accept";
|
|
1155
|
+
"record.action.reject": "record.action.reject";
|
|
901
1156
|
"record.archive": "record.archive";
|
|
902
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
903
1157
|
"record.correct": "record.correct";
|
|
904
1158
|
"record.create": "record.create";
|
|
905
1159
|
"record.custom-action": "record.custom-action";
|
|
@@ -912,7 +1166,6 @@ export declare const ScopeType: z.ZodEnum<{
|
|
|
912
1166
|
"record.register": "record.register";
|
|
913
1167
|
"record.reindex": "record.reindex";
|
|
914
1168
|
"record.reject": "record.reject";
|
|
915
|
-
"record.reject-registration": "record.reject-registration";
|
|
916
1169
|
"record.request-correction": "record.request-correction";
|
|
917
1170
|
"record.review-duplicates": "record.review-duplicates";
|
|
918
1171
|
"record.search": "record.search";
|
|
@@ -952,12 +1205,16 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
952
1205
|
options?: {
|
|
953
1206
|
event?: string[] | undefined;
|
|
954
1207
|
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
1208
|
+
createdBy?: "user" | undefined;
|
|
1209
|
+
createdIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
955
1210
|
} | undefined;
|
|
956
1211
|
} | {
|
|
957
1212
|
type: "record.archive" | "record.edit" | "record.register" | "record.reject" | "record.unarchive";
|
|
958
1213
|
options?: {
|
|
959
1214
|
event?: string[] | undefined;
|
|
960
1215
|
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
1216
|
+
createdBy?: "user" | undefined;
|
|
1217
|
+
createdIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
961
1218
|
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
962
1219
|
notifiedBy?: "user" | undefined;
|
|
963
1220
|
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
@@ -969,6 +1226,8 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
969
1226
|
options?: {
|
|
970
1227
|
event?: string[] | undefined;
|
|
971
1228
|
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
1229
|
+
createdBy?: "user" | undefined;
|
|
1230
|
+
createdIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
972
1231
|
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
973
1232
|
notifiedBy?: "user" | undefined;
|
|
974
1233
|
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
@@ -987,6 +1246,8 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
987
1246
|
options?: {
|
|
988
1247
|
event?: string[] | undefined;
|
|
989
1248
|
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
1249
|
+
createdBy?: "user" | undefined;
|
|
1250
|
+
createdIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
990
1251
|
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
991
1252
|
notifiedBy?: "user" | undefined;
|
|
992
1253
|
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
@@ -1006,6 +1267,8 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
1006
1267
|
options?: {
|
|
1007
1268
|
event?: string[] | undefined;
|
|
1008
1269
|
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
1270
|
+
createdBy?: "user" | undefined;
|
|
1271
|
+
createdIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
1009
1272
|
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
1010
1273
|
notifiedBy?: "user" | undefined;
|
|
1011
1274
|
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
@@ -1020,6 +1283,26 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
1020
1283
|
} | undefined;
|
|
1021
1284
|
templates?: string[] | undefined;
|
|
1022
1285
|
} | undefined;
|
|
1286
|
+
} | {
|
|
1287
|
+
type: "record.action.accept" | "record.action.reject";
|
|
1288
|
+
options?: {
|
|
1289
|
+
event?: string[] | undefined;
|
|
1290
|
+
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
1291
|
+
createdBy?: "user" | undefined;
|
|
1292
|
+
createdIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
1293
|
+
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
1294
|
+
notifiedBy?: "user" | undefined;
|
|
1295
|
+
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
1296
|
+
declaredBy?: "user" | undefined;
|
|
1297
|
+
status?: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[] | undefined;
|
|
1298
|
+
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
1299
|
+
registeredBy?: "user" | undefined;
|
|
1300
|
+
flags?: {
|
|
1301
|
+
anyOf?: string[] | undefined;
|
|
1302
|
+
noneOf?: string[] | undefined;
|
|
1303
|
+
allOf?: string[] | undefined;
|
|
1304
|
+
} | undefined;
|
|
1305
|
+
} | undefined;
|
|
1023
1306
|
} | {
|
|
1024
1307
|
type: "user.create" | "user.edit";
|
|
1025
1308
|
options?: {
|
|
@@ -1032,7 +1315,7 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
1032
1315
|
accessLevel?: "administrativeArea" | "all" | "location" | undefined;
|
|
1033
1316
|
} | undefined;
|
|
1034
1317
|
} | {
|
|
1035
|
-
type: "attachment.upload" | "bypassratelimit" | "config.update-all" | "integration.audit.read" | "integration.create" | "location.edit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.
|
|
1318
|
+
type: "attachment.upload" | "bypassratelimit" | "config.update-all" | "integration.audit.read" | "integration.create" | "location.edit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.import" | "record.reindex" | "user.data-seeding" | "user.read-only-my-audit";
|
|
1036
1319
|
} | {
|
|
1037
1320
|
type: "organisation.read-locations";
|
|
1038
1321
|
options?: {
|
package/dist/scopes/index.js
CHANGED
|
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/scopes/index.ts
|
|
31
31
|
var scopes_exports = {};
|
|
32
32
|
__export(scopes_exports, {
|
|
33
|
+
ActionConfirmationScopeType: () => ActionConfirmationScopeType,
|
|
33
34
|
EncodedScope: () => EncodedScope2,
|
|
34
35
|
JurisdictionFilter: () => JurisdictionFilter,
|
|
35
36
|
RecordScopeTypeV2: () => RecordScopeTypeV2,
|
|
@@ -372,7 +373,9 @@ var RecordScopeTypeV2 = z8.enum([
|
|
|
372
373
|
"record.request-correction",
|
|
373
374
|
"record.correct",
|
|
374
375
|
"record.unassign-others",
|
|
375
|
-
"record.custom-action"
|
|
376
|
+
"record.custom-action",
|
|
377
|
+
"record.action.accept",
|
|
378
|
+
"record.action.reject"
|
|
376
379
|
]);
|
|
377
380
|
var PlainScopeType = z8.enum([
|
|
378
381
|
// Misc. system scopes
|
|
@@ -394,10 +397,7 @@ var PlainScopeType = z8.enum([
|
|
|
394
397
|
// Performance dashboard
|
|
395
398
|
"performance.read",
|
|
396
399
|
"performance.read-dashboards",
|
|
397
|
-
"performance.vital-statistics-export"
|
|
398
|
-
// Scopes used exclusively by countryconfig integration token
|
|
399
|
-
"record.confirm-registration",
|
|
400
|
-
"record.reject-registration"
|
|
400
|
+
"performance.vital-statistics-export"
|
|
401
401
|
]);
|
|
402
402
|
var scopeByEvent = z8.preprocess(
|
|
403
403
|
(val) => val === void 0 ? void 0 : [val].flat(),
|
|
@@ -415,7 +415,9 @@ var userRole = z8.preprocess(
|
|
|
415
415
|
).describe("User role, e.g. admin, field agent");
|
|
416
416
|
var scopeOptionsPlaceEvent = z8.object({
|
|
417
417
|
event: scopeByEvent,
|
|
418
|
-
placeOfEvent: JurisdictionFilter.optional()
|
|
418
|
+
placeOfEvent: JurisdictionFilter.optional(),
|
|
419
|
+
createdBy: UserFilter.optional(),
|
|
420
|
+
createdIn: JurisdictionFilter.optional()
|
|
419
421
|
}).describe("Options applicable to all record scopes.");
|
|
420
422
|
var scopeOptionsDeclaredOrNotified = scopeOptionsPlaceEvent.extend({
|
|
421
423
|
notifiedIn: JurisdictionFilter.optional(),
|
|
@@ -458,7 +460,9 @@ var AllScopeOptions = z8.object({
|
|
|
458
460
|
var ScopeOptionKey = AllScopeOptions.keyof();
|
|
459
461
|
var ResolvedScopeOptionsPlaceEvent = z8.object({
|
|
460
462
|
event: scopeByEvent,
|
|
461
|
-
placeOfEvent: UUID.nullish()
|
|
463
|
+
placeOfEvent: UUID.nullish(),
|
|
464
|
+
createdBy: z8.string().optional(),
|
|
465
|
+
createdIn: UUID.nullish()
|
|
462
466
|
}).describe(
|
|
463
467
|
"Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
|
|
464
468
|
);
|
|
@@ -505,6 +509,13 @@ var ScopeOptionsPrintCertifiedCopies = AllRecordScopeOptions.extend({
|
|
|
505
509
|
"Template IDs for certified copies. Controls which certificate templates are returned to the client via the config service. Certificate printing is a client-side operation \u2014 this option is not validated when the printCertificate action is submitted."
|
|
506
510
|
)
|
|
507
511
|
});
|
|
512
|
+
var ActionConfirmationScopeType = RecordScopeTypeV2.extract([
|
|
513
|
+
"record.action.accept",
|
|
514
|
+
"record.action.reject"
|
|
515
|
+
]);
|
|
516
|
+
var ActionConfirmationScopeOptions = AllRecordScopeOptions.describe(
|
|
517
|
+
"Options for confirming (accepting or rejecting) an action."
|
|
518
|
+
);
|
|
508
519
|
var RecordScopeV2 = z8.discriminatedUnion("type", [
|
|
509
520
|
z8.object({
|
|
510
521
|
type: ScopesWithPlaceEventOptions,
|
|
@@ -525,6 +536,10 @@ var RecordScopeV2 = z8.discriminatedUnion("type", [
|
|
|
525
536
|
z8.object({
|
|
526
537
|
type: z8.literal("record.print-certified-copies"),
|
|
527
538
|
options: ScopeOptionsPrintCertifiedCopies.optional()
|
|
539
|
+
}),
|
|
540
|
+
z8.object({
|
|
541
|
+
type: ActionConfirmationScopeType,
|
|
542
|
+
options: ActionConfirmationScopeOptions.optional()
|
|
528
543
|
})
|
|
529
544
|
]).describe(
|
|
530
545
|
"Scopes used to check user's permission to perform actions on a record."
|
package/dist/telemetry/index.js
CHANGED
|
@@ -37,3 +37,7 @@ async function sendTelemetry(report) {
|
|
|
37
37
|
const detail = await response.text().catch(() => "");
|
|
38
38
|
return { outcome: "rejected", status: response.status, detail };
|
|
39
39
|
}
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
sendTelemetry
|
|
43
|
+
});
|
|
@@ -7,6 +7,12 @@
|
|
|
7
7
|
# null in values.override.yaml.
|
|
8
8
|
##################################################################################
|
|
9
9
|
|
|
10
|
+
network_policy:
|
|
11
|
+
ingress_mode: deny
|
|
12
|
+
egress_mode: deny
|
|
13
|
+
allowed_namespaces:
|
|
14
|
+
- opencrvs-{{env}}
|
|
15
|
+
|
|
10
16
|
# Default: storage_type: host_path
|
|
11
17
|
# host_path option is backward compatible with Docker Swarm,
|
|
12
18
|
# configured to use sub-directories within /data folder
|
|
@@ -69,6 +75,7 @@ backup:
|
|
|
69
75
|
schedule: "0 1 * * *"
|
|
70
76
|
backup_server_secret: backup-server-ssh-credentials
|
|
71
77
|
backup_server_dir: /home/backup/{{env}}
|
|
78
|
+
host: {{backup_host}}
|
|
72
79
|
|
|
73
80
|
|
|
74
81
|
# Restore configuration
|
|
@@ -78,3 +85,4 @@ restore:
|
|
|
78
85
|
backup_server_secret: backup-server-ssh-credentials
|
|
79
86
|
backup_server_dir: /home/backup/{{restore_environment_name}}
|
|
80
87
|
backup_encryption_secret: restore-encryption-secret
|
|
88
|
+
host: {{restore_host}}
|
|
@@ -48,14 +48,14 @@ providers:
|
|
|
48
48
|
service:
|
|
49
49
|
enabled: true
|
|
50
50
|
single: false
|
|
51
|
-
|
|
51
|
+
spec:
|
|
52
|
+
type: ClusterIP
|
|
52
53
|
|
|
53
54
|
ports:
|
|
54
55
|
web:
|
|
55
56
|
port: 8000
|
|
56
57
|
hostPort: 80
|
|
57
58
|
protocol: TCP
|
|
58
|
-
nodePort: 30080
|
|
59
59
|
http:
|
|
60
60
|
redirections:
|
|
61
61
|
entryPoint:
|
|
@@ -67,7 +67,6 @@ ports:
|
|
|
67
67
|
port: 8443
|
|
68
68
|
hostPort: 443
|
|
69
69
|
protocol: TCP
|
|
70
|
-
nodePort: 30443
|
|
71
70
|
{{#if lets_encrypt}}
|
|
72
71
|
http:
|
|
73
72
|
tls:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.opencrvs-core-charts/
|