@opencrvs/toolkit 2.1.0 → 2.2.0-rc.3af310b
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/build.sh +2 -12
- package/create-countryconfig/package.json +1 -1
- package/dist/application-config/index.js +36 -4
- package/dist/authentication/index.js +14 -2
- package/dist/cli.js +961 -2033
- package/dist/commons/api/router.d.ts +1374 -71
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/events/ActionConfig.d.ts +146 -20
- package/dist/commons/events/ActionDocument.d.ts +88 -0
- package/dist/commons/events/ActionInput.d.ts +52 -0
- package/dist/commons/events/ActionType.d.ts +11 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +12 -0
- package/dist/commons/events/AuditLog.d.ts +4 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +192 -18
- package/dist/commons/events/Draft.d.ts +2 -0
- package/dist/commons/events/EventConfig.d.ts +36 -6
- package/dist/commons/events/EventDocument.d.ts +88 -0
- package/dist/commons/events/EventIndex.d.ts +41 -4
- package/dist/commons/events/EventMetadata.d.ts +23 -1
- package/dist/commons/events/EventStatus.d.ts +1 -0
- package/dist/commons/events/FieldConfig.d.ts +10 -0
- package/dist/commons/events/Flag.d.ts +0 -6
- package/dist/commons/events/WorkqueueConfig.d.ts +224 -33
- package/dist/commons/events/eventConfigValidation.d.ts +26 -1
- package/dist/commons/events/notificationFormFallback.d.ts +10 -0
- package/dist/commons/events/scopes.d.ts +2 -0
- package/dist/commons/events/state/flags.d.ts +1 -1
- package/dist/commons/events/state/index.d.ts +10 -2
- package/dist/commons/events/state/utils.d.ts +11 -1
- package/dist/commons/events/test.utils.d.ts +31 -1
- package/dist/commons/events/utils.d.ts +53 -20
- package/dist/conditionals/index.js +14 -2
- package/dist/environment/derived-variables.d.ts +24 -0
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/derived-variables.js +28 -0
- package/dist/environment/dockerhub.d.ts +15 -0
- package/dist/environment/dockerhub.d.ts.map +1 -0
- package/dist/environment/dockerhub.js +104 -0
- package/dist/environment/questions.js +1 -1
- package/dist/environment/setup-environment.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +70 -12
- package/dist/environment/templates.d.ts.map +1 -1
- package/dist/events/index.js +461 -83
- package/dist/migrations/index.d.ts +9 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/migrations/index.js +847 -0
- package/dist/migrations/move-declaration-to-declare-action.d.ts +38 -0
- package/dist/migrations/move-declaration-to-declare-action.d.ts.map +1 -0
- package/dist/migrations/move-declaration-to-declare-action.js +377 -0
- package/dist/migrations/{v2.1 → persistent}/add-translations.d.ts +7 -1
- package/dist/migrations/persistent/add-translations.d.ts.map +1 -0
- package/dist/migrations/{v2.1 → persistent}/add-translations.js +14 -12
- package/dist/migrations/persistent/check-upgrade-path.d.ts +36 -0
- package/dist/migrations/persistent/check-upgrade-path.d.ts.map +1 -0
- package/dist/migrations/persistent/check-upgrade-path.js +105 -0
- package/dist/migrations/persistent/update-toolkit-dependency.d.ts +7 -0
- package/dist/migrations/persistent/update-toolkit-dependency.d.ts.map +1 -0
- package/dist/migrations/persistent/update-toolkit-dependency.js +77 -0
- package/dist/migrations/read-declaration-through-helper.d.ts +39 -0
- package/dist/migrations/read-declaration-through-helper.d.ts.map +1 -0
- package/dist/migrations/read-declaration-through-helper.js +257 -0
- package/dist/migrations/replace-incomplete-flag.d.ts +26 -0
- package/dist/migrations/replace-incomplete-flag.d.ts.map +1 -0
- package/dist/migrations/replace-incomplete-flag.js +126 -0
- package/dist/notification/index.js +401 -100
- package/dist/scopes/index.d.ts +29 -39
- package/dist/scopes/index.js +14 -2
- package/dist/templates/charts-values/dependencies/values.yaml +1 -1
- package/dist/templates/charts-values/opencrvs-services/values.yaml +1 -2
- package/dist/templates/charts-values/traefik/values.yaml +4 -3
- package/opencrvs-toolkit-2.2.0-rc.3af310b.tgz +0 -0
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts +0 -3
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts.map +0 -1
- package/dist/migrations/v2.1/add-explicit-correction-flags.js +0 -234
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +0 -3
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +0 -1
- package/dist/migrations/v2.1/add-recovery-link-notifications.js +0 -511
- package/dist/migrations/v2.1/add-translations.d.ts.map +0 -1
- package/dist/migrations/v2.1/enable-telemetry.d.ts +0 -3
- package/dist/migrations/v2.1/enable-telemetry.d.ts.map +0 -1
- package/dist/migrations/v2.1/enable-telemetry.js +0 -455
- package/dist/migrations/v2.1/index.d.ts +0 -6
- package/dist/migrations/v2.1/index.d.ts.map +0 -1
- package/dist/migrations/v2.1/index.js +0 -2170
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +0 -14
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +0 -1
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.js +0 -348
- package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts +0 -2
- package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts.map +0 -1
- package/dist/migrations/v2.1/remove-metabase-package-installs.js +0 -161
- package/dist/migrations/v2.1/remove-sentry.d.ts +0 -3
- package/dist/migrations/v2.1/remove-sentry.d.ts.map +0 -1
- package/dist/migrations/v2.1/remove-sentry.js +0 -354
- package/dist/migrations/v2.1/rename-trigger-paths.d.ts +0 -3
- package/dist/migrations/v2.1/rename-trigger-paths.d.ts.map +0 -1
- package/dist/migrations/v2.1/rename-trigger-paths.js +0 -216
- package/dist/migrations/v2.1/template-files.d.ts +0 -8
- package/dist/migrations/v2.1/template-files.d.ts.map +0 -1
- package/dist/migrations/v2.1/template-files.js +0 -49
- package/dist/migrations/v2.1/upgrade-tilt.d.ts +0 -8
- package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +0 -1
- package/dist/migrations/v2.1/upgrade-tilt.js +0 -139
- package/dist/templates/countryconfig-template/.tiltignore +0 -1
- package/dist/templates/countryconfig-template/Dockerfile.assets +0 -7
- package/dist/templates/countryconfig-template/Tiltfile +0 -112
- package/dist/templates/countryconfig-template/assets/README.md +0 -1
- package/dist/templates/countryconfig-template/assets/clear-all-data-dev.sh +0 -61
- package/dist/templates/countryconfig-template/assets/deployment/deploy.sh +0 -455
- package/dist/templates/countryconfig-template/assets/deployment/reindex.sh +0 -168
- package/dist/templates/countryconfig-template/assets/deployment/validate-required-variables-in-compose-files.ts +0 -67
- package/dist/templates/countryconfig-template/assets/elasticsearch/reindex.sh +0 -168
- package/dist/templates/countryconfig-template/assets/metabase/README.md +0 -34
- package/dist/templates/countryconfig-template/assets/metabase/environment-configuration.sql +0 -36
- package/dist/templates/countryconfig-template/assets/metabase/initialize-database.sh +0 -46
- package/dist/templates/countryconfig-template/assets/metabase/metabase.init.db.sql +0 -27737
- package/dist/templates/countryconfig-template/assets/metabase/open-shell.sh +0 -21
- package/dist/templates/countryconfig-template/assets/metabase/package.json +0 -13
- package/dist/templates/countryconfig-template/assets/metabase/run-dev.sh +0 -108
- package/dist/templates/countryconfig-template/assets/metabase/run.sh +0 -120
- package/dist/templates/countryconfig-template/assets/metabase/update-database.sh +0 -40
- package/dist/templates/countryconfig-template/assets/postgres/setup-analytics.sh +0 -135
- package/dist/templates/countryconfig-template/assets/postgres/setup-reference-data.sh +0 -108
- package/dist/templates/countryconfig-template/tilt/clear-all-data.ps1 +0 -50
- package/dist/templates/countryconfig-template/tilt/clear-all-data.sh +0 -35
- package/dist/templates/countryconfig-template/tilt/common.tilt +0 -145
- package/dist/templates/countryconfig-template/tilt/examples/dependencies/values.yaml +0 -15
- package/dist/templates/countryconfig-template/tilt/examples/opencrvs-services/values.yaml +0 -56
- package/dist/templates/countryconfig-template/tilt/examples/traefik/values-minikube.yaml +0 -21
- package/dist/templates/countryconfig-template/tilt/examples/traefik/values.yaml +0 -38
- package/dist/templates/countryconfig-template/tilt/helm/dependencies/values.yaml +0 -17
- package/dist/templates/countryconfig-template/tilt/helm/opencrvs-services/values.yaml +0 -16
- package/dist/templates/countryconfig-template/tilt/lib.tilt +0 -95
- package/dist/templates/countryconfig-template/tilt/opencrvs.tilt +0 -136
- package/opencrvs-toolkit-2.1.0.tgz +0 -0
package/dist/scopes/index.d.ts
CHANGED
|
@@ -29,9 +29,11 @@ export declare const RecordScopeTypeV2: z.ZodEnum<{
|
|
|
29
29
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
30
30
|
"record.read": "record.read";
|
|
31
31
|
"record.register": "record.register";
|
|
32
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
32
33
|
"record.reject": "record.reject";
|
|
33
34
|
"record.request-correction": "record.request-correction";
|
|
34
35
|
"record.review-duplicates": "record.review-duplicates";
|
|
36
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
35
37
|
"record.search": "record.search";
|
|
36
38
|
"record.unarchive": "record.unarchive";
|
|
37
39
|
"record.unassign-others": "record.unassign-others";
|
|
@@ -74,6 +76,7 @@ declare const AllScopeOptions: z.ZodObject<{
|
|
|
74
76
|
DECLARED: "DECLARED";
|
|
75
77
|
NOTIFIED: "NOTIFIED";
|
|
76
78
|
REGISTERED: "REGISTERED";
|
|
79
|
+
REVOKED: "REVOKED";
|
|
77
80
|
}>>>>;
|
|
78
81
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
79
82
|
administrativeArea: "administrativeArea";
|
|
@@ -85,21 +88,18 @@ declare const AllScopeOptions: z.ZodObject<{
|
|
|
85
88
|
}>>;
|
|
86
89
|
flags: z.ZodOptional<z.ZodObject<{
|
|
87
90
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
88
|
-
readonly INCOMPLETE: 'incomplete';
|
|
89
91
|
readonly REJECTED: 'rejected';
|
|
90
92
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
91
93
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
92
94
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
93
95
|
}>]>, z.ZodString]>>>;
|
|
94
96
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
95
|
-
readonly INCOMPLETE: 'incomplete';
|
|
96
97
|
readonly REJECTED: 'rejected';
|
|
97
98
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
98
99
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
99
100
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
100
101
|
}>]>, z.ZodString]>>>;
|
|
101
102
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
102
|
-
readonly INCOMPLETE: 'incomplete';
|
|
103
103
|
readonly REJECTED: 'rejected';
|
|
104
104
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
105
105
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -148,8 +148,10 @@ export declare const ScopesWithDeclaredOptions: z.ZodEnum<{
|
|
|
148
148
|
export declare const ScopesWithFullOptions: z.ZodEnum<{
|
|
149
149
|
"record.correct": "record.correct";
|
|
150
150
|
"record.read": "record.read";
|
|
151
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
151
152
|
"record.request-correction": "record.request-correction";
|
|
152
153
|
"record.review-duplicates": "record.review-duplicates";
|
|
154
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
153
155
|
"record.search": "record.search";
|
|
154
156
|
"record.unassign-others": "record.unassign-others";
|
|
155
157
|
}>;
|
|
@@ -225,14 +227,17 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
225
227
|
DECLARED: "DECLARED";
|
|
226
228
|
NOTIFIED: "NOTIFIED";
|
|
227
229
|
REGISTERED: "REGISTERED";
|
|
230
|
+
REVOKED: "REVOKED";
|
|
228
231
|
}>>>>;
|
|
229
232
|
}, z.core.$strip>>;
|
|
230
233
|
}, z.core.$strip>, z.ZodObject<{
|
|
231
234
|
type: z.ZodEnum<{
|
|
232
235
|
"record.correct": "record.correct";
|
|
233
236
|
"record.read": "record.read";
|
|
237
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
234
238
|
"record.request-correction": "record.request-correction";
|
|
235
239
|
"record.review-duplicates": "record.review-duplicates";
|
|
240
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
236
241
|
"record.search": "record.search";
|
|
237
242
|
"record.unassign-others": "record.unassign-others";
|
|
238
243
|
}>;
|
|
@@ -273,6 +278,7 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
273
278
|
DECLARED: "DECLARED";
|
|
274
279
|
NOTIFIED: "NOTIFIED";
|
|
275
280
|
REGISTERED: "REGISTERED";
|
|
281
|
+
REVOKED: "REVOKED";
|
|
276
282
|
}>>>>;
|
|
277
283
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
278
284
|
administrativeArea: "administrativeArea";
|
|
@@ -284,21 +290,18 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
284
290
|
}>>;
|
|
285
291
|
flags: z.ZodOptional<z.ZodObject<{
|
|
286
292
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
287
|
-
readonly INCOMPLETE: 'incomplete';
|
|
288
293
|
readonly REJECTED: 'rejected';
|
|
289
294
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
290
295
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
291
296
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
292
297
|
}>]>, z.ZodString]>>>;
|
|
293
298
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
294
|
-
readonly INCOMPLETE: 'incomplete';
|
|
295
299
|
readonly REJECTED: 'rejected';
|
|
296
300
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
297
301
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
298
302
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
299
303
|
}>]>, z.ZodString]>>>;
|
|
300
304
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
301
|
-
readonly INCOMPLETE: 'incomplete';
|
|
302
305
|
readonly REJECTED: 'rejected';
|
|
303
306
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
304
307
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -345,6 +348,7 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
345
348
|
DECLARED: "DECLARED";
|
|
346
349
|
NOTIFIED: "NOTIFIED";
|
|
347
350
|
REGISTERED: "REGISTERED";
|
|
351
|
+
REVOKED: "REVOKED";
|
|
348
352
|
}>>>>;
|
|
349
353
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
350
354
|
administrativeArea: "administrativeArea";
|
|
@@ -356,21 +360,18 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
356
360
|
}>>;
|
|
357
361
|
flags: z.ZodOptional<z.ZodObject<{
|
|
358
362
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
359
|
-
readonly INCOMPLETE: 'incomplete';
|
|
360
363
|
readonly REJECTED: 'rejected';
|
|
361
364
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
362
365
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
363
366
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
364
367
|
}>]>, z.ZodString]>>>;
|
|
365
368
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
366
|
-
readonly INCOMPLETE: 'incomplete';
|
|
367
369
|
readonly REJECTED: 'rejected';
|
|
368
370
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
369
371
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
370
372
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
371
373
|
}>]>, z.ZodString]>>>;
|
|
372
374
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
373
|
-
readonly INCOMPLETE: 'incomplete';
|
|
374
375
|
readonly REJECTED: 'rejected';
|
|
375
376
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
376
377
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -418,6 +419,7 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
418
419
|
DECLARED: "DECLARED";
|
|
419
420
|
NOTIFIED: "NOTIFIED";
|
|
420
421
|
REGISTERED: "REGISTERED";
|
|
422
|
+
REVOKED: "REVOKED";
|
|
421
423
|
}>>>>;
|
|
422
424
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
423
425
|
administrativeArea: "administrativeArea";
|
|
@@ -429,21 +431,18 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
429
431
|
}>>;
|
|
430
432
|
flags: z.ZodOptional<z.ZodObject<{
|
|
431
433
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
432
|
-
readonly INCOMPLETE: 'incomplete';
|
|
433
434
|
readonly REJECTED: 'rejected';
|
|
434
435
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
435
436
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
436
437
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
437
438
|
}>]>, z.ZodString]>>>;
|
|
438
439
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
439
|
-
readonly INCOMPLETE: 'incomplete';
|
|
440
440
|
readonly REJECTED: 'rejected';
|
|
441
441
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
442
442
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
443
443
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
444
444
|
}>]>, z.ZodString]>>>;
|
|
445
445
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
446
|
-
readonly INCOMPLETE: 'incomplete';
|
|
447
446
|
readonly REJECTED: 'rejected';
|
|
448
447
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
449
448
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -494,6 +493,7 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
494
493
|
DECLARED: "DECLARED";
|
|
495
494
|
NOTIFIED: "NOTIFIED";
|
|
496
495
|
REGISTERED: "REGISTERED";
|
|
496
|
+
REVOKED: "REVOKED";
|
|
497
497
|
}>>>>;
|
|
498
498
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
499
499
|
administrativeArea: "administrativeArea";
|
|
@@ -505,21 +505,18 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
505
505
|
}>>;
|
|
506
506
|
flags: z.ZodOptional<z.ZodObject<{
|
|
507
507
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
508
|
-
readonly INCOMPLETE: 'incomplete';
|
|
509
508
|
readonly REJECTED: 'rejected';
|
|
510
509
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
511
510
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
512
511
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
513
512
|
}>]>, z.ZodString]>>>;
|
|
514
513
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
515
|
-
readonly INCOMPLETE: 'incomplete';
|
|
516
514
|
readonly REJECTED: 'rejected';
|
|
517
515
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
518
516
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
519
517
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
520
518
|
}>]>, z.ZodString]>>>;
|
|
521
519
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
522
|
-
readonly INCOMPLETE: 'incomplete';
|
|
523
520
|
readonly REJECTED: 'rejected';
|
|
524
521
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
525
522
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -624,8 +621,10 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
624
621
|
type: z.ZodEnum<{
|
|
625
622
|
"record.correct": "record.correct";
|
|
626
623
|
"record.read": "record.read";
|
|
624
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
627
625
|
"record.request-correction": "record.request-correction";
|
|
628
626
|
"record.review-duplicates": "record.review-duplicates";
|
|
627
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
629
628
|
"record.search": "record.search";
|
|
630
629
|
"record.unassign-others": "record.unassign-others";
|
|
631
630
|
}>;
|
|
@@ -642,21 +641,18 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
642
641
|
registeredBy: z.ZodOptional<z.ZodString>;
|
|
643
642
|
flags: z.ZodOptional<z.ZodObject<{
|
|
644
643
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
645
|
-
readonly INCOMPLETE: 'incomplete';
|
|
646
644
|
readonly REJECTED: 'rejected';
|
|
647
645
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
648
646
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
649
647
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
650
648
|
}>]>, z.ZodString]>>>;
|
|
651
649
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
652
|
-
readonly INCOMPLETE: 'incomplete';
|
|
653
650
|
readonly REJECTED: 'rejected';
|
|
654
651
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
655
652
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
656
653
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
657
654
|
}>]>, z.ZodString]>>>;
|
|
658
655
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
659
|
-
readonly INCOMPLETE: 'incomplete';
|
|
660
656
|
readonly REJECTED: 'rejected';
|
|
661
657
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
662
658
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -679,21 +675,18 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
679
675
|
registeredBy: z.ZodOptional<z.ZodString>;
|
|
680
676
|
flags: z.ZodOptional<z.ZodObject<{
|
|
681
677
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
682
|
-
readonly INCOMPLETE: 'incomplete';
|
|
683
678
|
readonly REJECTED: 'rejected';
|
|
684
679
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
685
680
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
686
681
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
687
682
|
}>]>, z.ZodString]>>>;
|
|
688
683
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
689
|
-
readonly INCOMPLETE: 'incomplete';
|
|
690
684
|
readonly REJECTED: 'rejected';
|
|
691
685
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
692
686
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
693
687
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
694
688
|
}>]>, z.ZodString]>>>;
|
|
695
689
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
696
|
-
readonly INCOMPLETE: 'incomplete';
|
|
697
690
|
readonly REJECTED: 'rejected';
|
|
698
691
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
699
692
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -790,14 +783,17 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
790
783
|
DECLARED: "DECLARED";
|
|
791
784
|
NOTIFIED: "NOTIFIED";
|
|
792
785
|
REGISTERED: "REGISTERED";
|
|
786
|
+
REVOKED: "REVOKED";
|
|
793
787
|
}>>>>;
|
|
794
788
|
}, z.core.$strip>>;
|
|
795
789
|
}, z.core.$strip>, z.ZodObject<{
|
|
796
790
|
type: z.ZodEnum<{
|
|
797
791
|
"record.correct": "record.correct";
|
|
798
792
|
"record.read": "record.read";
|
|
793
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
799
794
|
"record.request-correction": "record.request-correction";
|
|
800
795
|
"record.review-duplicates": "record.review-duplicates";
|
|
796
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
801
797
|
"record.search": "record.search";
|
|
802
798
|
"record.unassign-others": "record.unassign-others";
|
|
803
799
|
}>;
|
|
@@ -838,6 +834,7 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
838
834
|
DECLARED: "DECLARED";
|
|
839
835
|
NOTIFIED: "NOTIFIED";
|
|
840
836
|
REGISTERED: "REGISTERED";
|
|
837
|
+
REVOKED: "REVOKED";
|
|
841
838
|
}>>>>;
|
|
842
839
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
843
840
|
administrativeArea: "administrativeArea";
|
|
@@ -849,21 +846,18 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
849
846
|
}>>;
|
|
850
847
|
flags: z.ZodOptional<z.ZodObject<{
|
|
851
848
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
852
|
-
readonly INCOMPLETE: 'incomplete';
|
|
853
849
|
readonly REJECTED: 'rejected';
|
|
854
850
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
855
851
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
856
852
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
857
853
|
}>]>, z.ZodString]>>>;
|
|
858
854
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
859
|
-
readonly INCOMPLETE: 'incomplete';
|
|
860
855
|
readonly REJECTED: 'rejected';
|
|
861
856
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
862
857
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
863
858
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
864
859
|
}>]>, z.ZodString]>>>;
|
|
865
860
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
866
|
-
readonly INCOMPLETE: 'incomplete';
|
|
867
861
|
readonly REJECTED: 'rejected';
|
|
868
862
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
869
863
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -910,6 +904,7 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
910
904
|
DECLARED: "DECLARED";
|
|
911
905
|
NOTIFIED: "NOTIFIED";
|
|
912
906
|
REGISTERED: "REGISTERED";
|
|
907
|
+
REVOKED: "REVOKED";
|
|
913
908
|
}>>>>;
|
|
914
909
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
915
910
|
administrativeArea: "administrativeArea";
|
|
@@ -921,21 +916,18 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
921
916
|
}>>;
|
|
922
917
|
flags: z.ZodOptional<z.ZodObject<{
|
|
923
918
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
924
|
-
readonly INCOMPLETE: 'incomplete';
|
|
925
919
|
readonly REJECTED: 'rejected';
|
|
926
920
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
927
921
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
928
922
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
929
923
|
}>]>, z.ZodString]>>>;
|
|
930
924
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
931
|
-
readonly INCOMPLETE: 'incomplete';
|
|
932
925
|
readonly REJECTED: 'rejected';
|
|
933
926
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
934
927
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
935
928
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
936
929
|
}>]>, z.ZodString]>>>;
|
|
937
930
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
938
|
-
readonly INCOMPLETE: 'incomplete';
|
|
939
931
|
readonly REJECTED: 'rejected';
|
|
940
932
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
941
933
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -983,6 +975,7 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
983
975
|
DECLARED: "DECLARED";
|
|
984
976
|
NOTIFIED: "NOTIFIED";
|
|
985
977
|
REGISTERED: "REGISTERED";
|
|
978
|
+
REVOKED: "REVOKED";
|
|
986
979
|
}>>>>;
|
|
987
980
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
988
981
|
administrativeArea: "administrativeArea";
|
|
@@ -994,21 +987,18 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
994
987
|
}>>;
|
|
995
988
|
flags: z.ZodOptional<z.ZodObject<{
|
|
996
989
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
997
|
-
readonly INCOMPLETE: 'incomplete';
|
|
998
990
|
readonly REJECTED: 'rejected';
|
|
999
991
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1000
992
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1001
993
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1002
994
|
}>]>, z.ZodString]>>>;
|
|
1003
995
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1004
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1005
996
|
readonly REJECTED: 'rejected';
|
|
1006
997
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1007
998
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1008
999
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1009
1000
|
}>]>, z.ZodString]>>>;
|
|
1010
1001
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1011
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1012
1002
|
readonly REJECTED: 'rejected';
|
|
1013
1003
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1014
1004
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -1059,6 +1049,7 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1059
1049
|
DECLARED: "DECLARED";
|
|
1060
1050
|
NOTIFIED: "NOTIFIED";
|
|
1061
1051
|
REGISTERED: "REGISTERED";
|
|
1052
|
+
REVOKED: "REVOKED";
|
|
1062
1053
|
}>>>>;
|
|
1063
1054
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
1064
1055
|
administrativeArea: "administrativeArea";
|
|
@@ -1070,21 +1061,18 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1070
1061
|
}>>;
|
|
1071
1062
|
flags: z.ZodOptional<z.ZodObject<{
|
|
1072
1063
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1073
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1074
1064
|
readonly REJECTED: 'rejected';
|
|
1075
1065
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1076
1066
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1077
1067
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1078
1068
|
}>]>, z.ZodString]>>>;
|
|
1079
1069
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1080
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1081
1070
|
readonly REJECTED: 'rejected';
|
|
1082
1071
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1083
1072
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1084
1073
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1085
1074
|
}>]>, z.ZodString]>>>;
|
|
1086
1075
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1087
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1088
1076
|
readonly REJECTED: 'rejected';
|
|
1089
1077
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1090
1078
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -1165,9 +1153,11 @@ export declare const ScopeType: z.ZodEnum<{
|
|
|
1165
1153
|
"record.read": "record.read";
|
|
1166
1154
|
"record.register": "record.register";
|
|
1167
1155
|
"record.reindex": "record.reindex";
|
|
1156
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
1168
1157
|
"record.reject": "record.reject";
|
|
1169
1158
|
"record.request-correction": "record.request-correction";
|
|
1170
1159
|
"record.review-duplicates": "record.review-duplicates";
|
|
1160
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
1171
1161
|
"record.search": "record.search";
|
|
1172
1162
|
"record.unarchive": "record.unarchive";
|
|
1173
1163
|
"record.unassign-others": "record.unassign-others";
|
|
@@ -1219,10 +1209,10 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
1219
1209
|
notifiedBy?: "user" | undefined;
|
|
1220
1210
|
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
1221
1211
|
declaredBy?: "user" | undefined;
|
|
1222
|
-
status?: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[] | undefined;
|
|
1212
|
+
status?: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[] | undefined;
|
|
1223
1213
|
} | undefined;
|
|
1224
1214
|
} | {
|
|
1225
|
-
type: "record.correct" | "record.read" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unassign-others";
|
|
1215
|
+
type: "record.correct" | "record.read" | "record.reinstate-registration" | "record.request-correction" | "record.review-duplicates" | "record.revoke-registration" | "record.search" | "record.unassign-others";
|
|
1226
1216
|
options?: {
|
|
1227
1217
|
event?: string[] | undefined;
|
|
1228
1218
|
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
@@ -1232,7 +1222,7 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
1232
1222
|
notifiedBy?: "user" | undefined;
|
|
1233
1223
|
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
1234
1224
|
declaredBy?: "user" | undefined;
|
|
1235
|
-
status?: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[] | undefined;
|
|
1225
|
+
status?: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[] | undefined;
|
|
1236
1226
|
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
1237
1227
|
registeredBy?: "user" | undefined;
|
|
1238
1228
|
flags?: {
|
|
@@ -1252,7 +1242,7 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
1252
1242
|
notifiedBy?: "user" | undefined;
|
|
1253
1243
|
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
1254
1244
|
declaredBy?: "user" | undefined;
|
|
1255
|
-
status?: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[] | undefined;
|
|
1245
|
+
status?: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[] | undefined;
|
|
1256
1246
|
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
1257
1247
|
registeredBy?: "user" | undefined;
|
|
1258
1248
|
flags?: {
|
|
@@ -1273,7 +1263,7 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
1273
1263
|
notifiedBy?: "user" | undefined;
|
|
1274
1264
|
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
1275
1265
|
declaredBy?: "user" | undefined;
|
|
1276
|
-
status?: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[] | undefined;
|
|
1266
|
+
status?: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[] | undefined;
|
|
1277
1267
|
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
1278
1268
|
registeredBy?: "user" | undefined;
|
|
1279
1269
|
flags?: {
|
|
@@ -1294,7 +1284,7 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
1294
1284
|
notifiedBy?: "user" | undefined;
|
|
1295
1285
|
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
1296
1286
|
declaredBy?: "user" | undefined;
|
|
1297
|
-
status?: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED")[] | undefined;
|
|
1287
|
+
status?: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[] | undefined;
|
|
1298
1288
|
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
1299
1289
|
registeredBy?: "user" | undefined;
|
|
1300
1290
|
flags?: {
|
package/dist/scopes/index.js
CHANGED
|
@@ -121,6 +121,8 @@ var ActionType = {
|
|
|
121
121
|
REQUEST_CORRECTION: "REQUEST_CORRECTION",
|
|
122
122
|
REJECT_CORRECTION: "REJECT_CORRECTION",
|
|
123
123
|
APPROVE_CORRECTION: "APPROVE_CORRECTION",
|
|
124
|
+
REVOKE_REGISTRATION: "REVOKE_REGISTRATION",
|
|
125
|
+
REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION",
|
|
124
126
|
// General actions
|
|
125
127
|
READ: "READ",
|
|
126
128
|
ASSIGN: "ASSIGN",
|
|
@@ -140,6 +142,8 @@ var ConfirmableActions = [
|
|
|
140
142
|
ActionType.REQUEST_CORRECTION,
|
|
141
143
|
ActionType.APPROVE_CORRECTION,
|
|
142
144
|
ActionType.REJECT_CORRECTION,
|
|
145
|
+
ActionType.REVOKE_REGISTRATION,
|
|
146
|
+
ActionType.REINSTATE_REGISTRATION,
|
|
143
147
|
ActionType.CUSTOM
|
|
144
148
|
];
|
|
145
149
|
var ActionTypes = z3.enum([
|
|
@@ -159,6 +163,8 @@ var ActionTypes = z3.enum([
|
|
|
159
163
|
"REQUEST_CORRECTION",
|
|
160
164
|
"REJECT_CORRECTION",
|
|
161
165
|
"APPROVE_CORRECTION",
|
|
166
|
+
"REVOKE_REGISTRATION",
|
|
167
|
+
"REINSTATE_REGISTRATION",
|
|
162
168
|
"READ",
|
|
163
169
|
"ASSIGN",
|
|
164
170
|
"UNASSIGN",
|
|
@@ -197,7 +203,9 @@ var WorkqueueActionType = ActionTypes.extract([
|
|
|
197
203
|
ActionType.ARCHIVE,
|
|
198
204
|
ActionType.UNARCHIVE,
|
|
199
205
|
ActionType.PRINT_CERTIFICATE,
|
|
200
|
-
ActionType.REQUEST_CORRECTION
|
|
206
|
+
ActionType.REQUEST_CORRECTION,
|
|
207
|
+
ActionType.REVOKE_REGISTRATION,
|
|
208
|
+
ActionType.REINSTATE_REGISTRATION
|
|
201
209
|
]);
|
|
202
210
|
var META_ACTIONS = [
|
|
203
211
|
ActionType.ASSIGN,
|
|
@@ -282,7 +290,6 @@ var FieldConditional = z5.discriminatedUnion("type", [
|
|
|
282
290
|
|
|
283
291
|
// ../commons/src/events/Flag.ts
|
|
284
292
|
var InherentFlags = {
|
|
285
|
-
INCOMPLETE: "incomplete",
|
|
286
293
|
REJECTED: "rejected",
|
|
287
294
|
CORRECTION_REQUESTED: "correction-requested",
|
|
288
295
|
POTENTIAL_DUPLICATE: "potential-duplicate",
|
|
@@ -349,6 +356,7 @@ var EventStatus = z7.enum([
|
|
|
349
356
|
"NOTIFIED",
|
|
350
357
|
"DECLARED",
|
|
351
358
|
"REGISTERED",
|
|
359
|
+
"REVOKED",
|
|
352
360
|
"ARCHIVED"
|
|
353
361
|
]);
|
|
354
362
|
|
|
@@ -372,6 +380,8 @@ var RecordScopeTypeV2 = z8.enum([
|
|
|
372
380
|
"record.print-certified-copies",
|
|
373
381
|
"record.request-correction",
|
|
374
382
|
"record.correct",
|
|
383
|
+
"record.revoke-registration",
|
|
384
|
+
"record.reinstate-registration",
|
|
375
385
|
"record.unassign-others",
|
|
376
386
|
"record.custom-action",
|
|
377
387
|
"record.action.accept",
|
|
@@ -498,6 +508,8 @@ var ScopesWithFullOptions = RecordScopeTypeV2.extract([
|
|
|
498
508
|
"record.read",
|
|
499
509
|
"record.request-correction",
|
|
500
510
|
"record.correct",
|
|
511
|
+
"record.revoke-registration",
|
|
512
|
+
"record.reinstate-registration",
|
|
501
513
|
"record.unassign-others",
|
|
502
514
|
"record.review-duplicates"
|
|
503
515
|
]);
|
|
@@ -31,7 +31,7 @@ env:
|
|
|
31
31
|
OPENCRVS_ENVIRONMENT: {{opencrvs_environment}}
|
|
32
32
|
|
|
33
33
|
otel:
|
|
34
|
-
enabled:
|
|
34
|
+
enabled: {{monitoring_enabled}}
|
|
35
35
|
deployment_environment: {{env}}
|
|
36
36
|
exporter_otlp_endpoint: "opentelemetry-collector.opencrvs-deps-{{env}}.svc.cluster.local:4317"
|
|
37
37
|
|
|
@@ -56,7 +56,6 @@ platform:
|
|
|
56
56
|
# Default value for credentials created while yarn environment:init
|
|
57
57
|
- name: dockerhub-credentials
|
|
58
58
|
|
|
59
|
-
|
|
60
59
|
auth:
|
|
61
60
|
env:
|
|
62
61
|
TWO_FA_ENABLED: {{two_fa_enabled}}
|
|
@@ -19,6 +19,7 @@ accessLog:
|
|
|
19
19
|
enabled: true
|
|
20
20
|
format: "json"
|
|
21
21
|
|
|
22
|
+
{{#if monitoring_enabled}}
|
|
22
23
|
tracing:
|
|
23
24
|
serviceName: traefik
|
|
24
25
|
resourceAttributes:
|
|
@@ -30,6 +31,7 @@ tracing:
|
|
|
30
31
|
enabled: true
|
|
31
32
|
endpoint: "opentelemetry-collector.opencrvs-deps-{{env}}.svc.cluster.local:4317"
|
|
32
33
|
insecure: true
|
|
34
|
+
{{/if}}
|
|
33
35
|
|
|
34
36
|
|
|
35
37
|
ingressRoute:
|
|
@@ -48,14 +50,14 @@ providers:
|
|
|
48
50
|
service:
|
|
49
51
|
enabled: true
|
|
50
52
|
single: false
|
|
51
|
-
|
|
53
|
+
spec:
|
|
54
|
+
type: ClusterIP
|
|
52
55
|
|
|
53
56
|
ports:
|
|
54
57
|
web:
|
|
55
58
|
port: 8000
|
|
56
59
|
hostPort: 80
|
|
57
60
|
protocol: TCP
|
|
58
|
-
nodePort: 30080
|
|
59
61
|
http:
|
|
60
62
|
redirections:
|
|
61
63
|
entryPoint:
|
|
@@ -67,7 +69,6 @@ ports:
|
|
|
67
69
|
port: 8443
|
|
68
70
|
hostPort: 443
|
|
69
71
|
protocol: TCP
|
|
70
|
-
nodePort: 30443
|
|
71
72
|
{{#if lets_encrypt}}
|
|
72
73
|
http:
|
|
73
74
|
tls:
|
|
Binary file
|