@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
|
@@ -124,9 +124,11 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
124
124
|
"record.read": "record.read";
|
|
125
125
|
"record.register": "record.register";
|
|
126
126
|
"record.reindex": "record.reindex";
|
|
127
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
127
128
|
"record.reject": "record.reject";
|
|
128
129
|
"record.request-correction": "record.request-correction";
|
|
129
130
|
"record.review-duplicates": "record.review-duplicates";
|
|
131
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
130
132
|
"record.search": "record.search";
|
|
131
133
|
"record.unarchive": "record.unarchive";
|
|
132
134
|
"record.unassign-others": "record.unassign-others";
|
|
@@ -310,9 +312,11 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
310
312
|
"record.read": "record.read";
|
|
311
313
|
"record.register": "record.register";
|
|
312
314
|
"record.reindex": "record.reindex";
|
|
315
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
313
316
|
"record.reject": "record.reject";
|
|
314
317
|
"record.request-correction": "record.request-correction";
|
|
315
318
|
"record.review-duplicates": "record.review-duplicates";
|
|
319
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
316
320
|
"record.search": "record.search";
|
|
317
321
|
"record.unarchive": "record.unarchive";
|
|
318
322
|
"record.unassign-others": "record.unassign-others";
|
|
@@ -472,9 +476,11 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
472
476
|
"record.read": "record.read";
|
|
473
477
|
"record.register": "record.register";
|
|
474
478
|
"record.reindex": "record.reindex";
|
|
479
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
475
480
|
"record.reject": "record.reject";
|
|
476
481
|
"record.request-correction": "record.request-correction";
|
|
477
482
|
"record.review-duplicates": "record.review-duplicates";
|
|
483
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
478
484
|
"record.search": "record.search";
|
|
479
485
|
"record.unarchive": "record.unarchive";
|
|
480
486
|
"record.unassign-others": "record.unassign-others";
|
|
@@ -626,9 +632,11 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
626
632
|
"record.read": "record.read";
|
|
627
633
|
"record.register": "record.register";
|
|
628
634
|
"record.reindex": "record.reindex";
|
|
635
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
629
636
|
"record.reject": "record.reject";
|
|
630
637
|
"record.request-correction": "record.request-correction";
|
|
631
638
|
"record.review-duplicates": "record.review-duplicates";
|
|
639
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
632
640
|
"record.search": "record.search";
|
|
633
641
|
"record.unarchive": "record.unarchive";
|
|
634
642
|
"record.unassign-others": "record.unassign-others";
|
|
@@ -791,9 +799,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
791
799
|
"record.read": "record.read";
|
|
792
800
|
"record.register": "record.register";
|
|
793
801
|
"record.reindex": "record.reindex";
|
|
802
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
794
803
|
"record.reject": "record.reject";
|
|
795
804
|
"record.request-correction": "record.request-correction";
|
|
796
805
|
"record.review-duplicates": "record.review-duplicates";
|
|
806
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
797
807
|
"record.search": "record.search";
|
|
798
808
|
"record.unarchive": "record.unarchive";
|
|
799
809
|
"record.unassign-others": "record.unassign-others";
|
|
@@ -945,9 +955,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
945
955
|
"record.read": "record.read";
|
|
946
956
|
"record.register": "record.register";
|
|
947
957
|
"record.reindex": "record.reindex";
|
|
958
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
948
959
|
"record.reject": "record.reject";
|
|
949
960
|
"record.request-correction": "record.request-correction";
|
|
950
961
|
"record.review-duplicates": "record.review-duplicates";
|
|
962
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
951
963
|
"record.search": "record.search";
|
|
952
964
|
"record.unarchive": "record.unarchive";
|
|
953
965
|
"record.unassign-others": "record.unassign-others";
|
|
@@ -22,7 +22,9 @@ declare const EventActionEntrySchema: z.ZodObject<{
|
|
|
22
22
|
"event.actions.read.request": "event.actions.read.request";
|
|
23
23
|
"event.actions.register.request": "event.actions.register.request";
|
|
24
24
|
"event.actions.reinstate.request": "event.actions.reinstate.request";
|
|
25
|
+
"event.actions.reinstate_registration.request": "event.actions.reinstate_registration.request";
|
|
25
26
|
"event.actions.reject.request": "event.actions.reject.request";
|
|
27
|
+
"event.actions.revoke_registration.request": "event.actions.revoke_registration.request";
|
|
26
28
|
"event.actions.unarchive.request": "event.actions.unarchive.request";
|
|
27
29
|
"event.actions.unassign.request": "event.actions.unassign.request";
|
|
28
30
|
"event.actions.validate.request": "event.actions.validate.request";
|
|
@@ -158,7 +160,9 @@ export declare const AuditLogEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
158
160
|
"event.actions.read.request": "event.actions.read.request";
|
|
159
161
|
"event.actions.register.request": "event.actions.register.request";
|
|
160
162
|
"event.actions.reinstate.request": "event.actions.reinstate.request";
|
|
163
|
+
"event.actions.reinstate_registration.request": "event.actions.reinstate_registration.request";
|
|
161
164
|
"event.actions.reject.request": "event.actions.reject.request";
|
|
165
|
+
"event.actions.revoke_registration.request": "event.actions.revoke_registration.request";
|
|
162
166
|
"event.actions.unarchive.request": "event.actions.unarchive.request";
|
|
163
167
|
"event.actions.unassign.request": "event.actions.unassign.request";
|
|
164
168
|
"event.actions.validate.request": "event.actions.validate.request";
|
|
@@ -51,6 +51,17 @@ export declare const SerializedQueryExpression: z.ZodObject<{
|
|
|
51
51
|
DECLARED: "DECLARED";
|
|
52
52
|
NOTIFIED: "NOTIFIED";
|
|
53
53
|
REGISTERED: "REGISTERED";
|
|
54
|
+
REVOKED: "REVOKED";
|
|
55
|
+
}>>;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
type: z.ZodLiteral<"noneOf">;
|
|
58
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
59
|
+
ARCHIVED: "ARCHIVED";
|
|
60
|
+
CREATED: "CREATED";
|
|
61
|
+
DECLARED: "DECLARED";
|
|
62
|
+
NOTIFIED: "NOTIFIED";
|
|
63
|
+
REGISTERED: "REGISTERED";
|
|
64
|
+
REVOKED: "REVOKED";
|
|
54
65
|
}>>;
|
|
55
66
|
}, z.core.$strip>, z.ZodObject<{
|
|
56
67
|
type: z.ZodLiteral<"exact">;
|
|
@@ -60,6 +71,7 @@ export declare const SerializedQueryExpression: z.ZodObject<{
|
|
|
60
71
|
DECLARED: "DECLARED";
|
|
61
72
|
NOTIFIED: "NOTIFIED";
|
|
62
73
|
REGISTERED: "REGISTERED";
|
|
74
|
+
REVOKED: "REVOKED";
|
|
63
75
|
}>;
|
|
64
76
|
}, z.core.$strip>]>>>;
|
|
65
77
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -162,6 +174,26 @@ export declare const SerializedQueryExpression: z.ZodObject<{
|
|
|
162
174
|
type: z.ZodLiteral<"exact">;
|
|
163
175
|
term: z.ZodString;
|
|
164
176
|
}, z.core.$strip>>>;
|
|
177
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
178
|
+
type: z.ZodLiteral<"within">;
|
|
179
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
180
|
+
$userField: z.ZodEnum<{
|
|
181
|
+
administrativeAreaId: "administrativeAreaId";
|
|
182
|
+
avatar: "avatar";
|
|
183
|
+
device: "device";
|
|
184
|
+
firstname: "firstname";
|
|
185
|
+
fullHonorificName: "fullHonorificName";
|
|
186
|
+
id: "id";
|
|
187
|
+
middlename: "middlename";
|
|
188
|
+
name: "name";
|
|
189
|
+
primaryOfficeId: "primaryOfficeId";
|
|
190
|
+
role: "role";
|
|
191
|
+
signature: "signature";
|
|
192
|
+
surname: "surname";
|
|
193
|
+
}>;
|
|
194
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
195
|
+
}, z.core.$strip>]>;
|
|
196
|
+
}, z.core.$strip>>>;
|
|
165
197
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
166
198
|
type: z.ZodLiteral<"within">;
|
|
167
199
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -333,21 +365,18 @@ export declare const SerializedQueryExpression: z.ZodObject<{
|
|
|
333
365
|
}, z.core.$strip>>>;
|
|
334
366
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
335
367
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
336
|
-
readonly INCOMPLETE: 'incomplete';
|
|
337
368
|
readonly REJECTED: 'rejected';
|
|
338
369
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
339
370
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
340
371
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
341
372
|
}>]>, z.ZodString]>>>;
|
|
342
373
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
343
|
-
readonly INCOMPLETE: 'incomplete';
|
|
344
374
|
readonly REJECTED: 'rejected';
|
|
345
375
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
346
376
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
347
377
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
348
378
|
}>]>, z.ZodString]>>>;
|
|
349
379
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
350
|
-
readonly INCOMPLETE: 'incomplete';
|
|
351
380
|
readonly REJECTED: 'rejected';
|
|
352
381
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
353
382
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -369,6 +398,17 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
369
398
|
DECLARED: "DECLARED";
|
|
370
399
|
NOTIFIED: "NOTIFIED";
|
|
371
400
|
REGISTERED: "REGISTERED";
|
|
401
|
+
REVOKED: "REVOKED";
|
|
402
|
+
}>>;
|
|
403
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
404
|
+
type: z.ZodLiteral<"noneOf">;
|
|
405
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
406
|
+
ARCHIVED: "ARCHIVED";
|
|
407
|
+
CREATED: "CREATED";
|
|
408
|
+
DECLARED: "DECLARED";
|
|
409
|
+
NOTIFIED: "NOTIFIED";
|
|
410
|
+
REGISTERED: "REGISTERED";
|
|
411
|
+
REVOKED: "REVOKED";
|
|
372
412
|
}>>;
|
|
373
413
|
}, z.core.$strip>, z.ZodObject<{
|
|
374
414
|
type: z.ZodLiteral<"exact">;
|
|
@@ -378,6 +418,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
378
418
|
DECLARED: "DECLARED";
|
|
379
419
|
NOTIFIED: "NOTIFIED";
|
|
380
420
|
REGISTERED: "REGISTERED";
|
|
421
|
+
REVOKED: "REVOKED";
|
|
381
422
|
}>;
|
|
382
423
|
}, z.core.$strip>]>>>;
|
|
383
424
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -480,6 +521,26 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
480
521
|
type: z.ZodLiteral<"exact">;
|
|
481
522
|
term: z.ZodString;
|
|
482
523
|
}, z.core.$strip>>>;
|
|
524
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
525
|
+
type: z.ZodLiteral<"within">;
|
|
526
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
527
|
+
$userField: z.ZodEnum<{
|
|
528
|
+
administrativeAreaId: "administrativeAreaId";
|
|
529
|
+
avatar: "avatar";
|
|
530
|
+
device: "device";
|
|
531
|
+
firstname: "firstname";
|
|
532
|
+
fullHonorificName: "fullHonorificName";
|
|
533
|
+
id: "id";
|
|
534
|
+
middlename: "middlename";
|
|
535
|
+
name: "name";
|
|
536
|
+
primaryOfficeId: "primaryOfficeId";
|
|
537
|
+
role: "role";
|
|
538
|
+
signature: "signature";
|
|
539
|
+
surname: "surname";
|
|
540
|
+
}>;
|
|
541
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
542
|
+
}, z.core.$strip>]>;
|
|
543
|
+
}, z.core.$strip>>>;
|
|
483
544
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
484
545
|
type: z.ZodLiteral<"within">;
|
|
485
546
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -651,21 +712,18 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
651
712
|
}, z.core.$strip>>>;
|
|
652
713
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
653
714
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
654
|
-
readonly INCOMPLETE: 'incomplete';
|
|
655
715
|
readonly REJECTED: 'rejected';
|
|
656
716
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
657
717
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
658
718
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
659
719
|
}>]>, z.ZodString]>>>;
|
|
660
720
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
661
|
-
readonly INCOMPLETE: 'incomplete';
|
|
662
721
|
readonly REJECTED: 'rejected';
|
|
663
722
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
664
723
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
665
724
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
666
725
|
}>]>, z.ZodString]>>>;
|
|
667
726
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
668
|
-
readonly INCOMPLETE: 'incomplete';
|
|
669
727
|
readonly REJECTED: 'rejected';
|
|
670
728
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
671
729
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -686,6 +744,17 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
686
744
|
DECLARED: "DECLARED";
|
|
687
745
|
NOTIFIED: "NOTIFIED";
|
|
688
746
|
REGISTERED: "REGISTERED";
|
|
747
|
+
REVOKED: "REVOKED";
|
|
748
|
+
}>>;
|
|
749
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
750
|
+
type: z.ZodLiteral<"noneOf">;
|
|
751
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
752
|
+
ARCHIVED: "ARCHIVED";
|
|
753
|
+
CREATED: "CREATED";
|
|
754
|
+
DECLARED: "DECLARED";
|
|
755
|
+
NOTIFIED: "NOTIFIED";
|
|
756
|
+
REGISTERED: "REGISTERED";
|
|
757
|
+
REVOKED: "REVOKED";
|
|
689
758
|
}>>;
|
|
690
759
|
}, z.core.$strip>, z.ZodObject<{
|
|
691
760
|
type: z.ZodLiteral<"exact">;
|
|
@@ -695,6 +764,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
695
764
|
DECLARED: "DECLARED";
|
|
696
765
|
NOTIFIED: "NOTIFIED";
|
|
697
766
|
REGISTERED: "REGISTERED";
|
|
767
|
+
REVOKED: "REVOKED";
|
|
698
768
|
}>;
|
|
699
769
|
}, z.core.$strip>]>>>;
|
|
700
770
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -797,6 +867,26 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
797
867
|
type: z.ZodLiteral<"exact">;
|
|
798
868
|
term: z.ZodString;
|
|
799
869
|
}, z.core.$strip>>>;
|
|
870
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
871
|
+
type: z.ZodLiteral<"within">;
|
|
872
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
873
|
+
$userField: z.ZodEnum<{
|
|
874
|
+
administrativeAreaId: "administrativeAreaId";
|
|
875
|
+
avatar: "avatar";
|
|
876
|
+
device: "device";
|
|
877
|
+
firstname: "firstname";
|
|
878
|
+
fullHonorificName: "fullHonorificName";
|
|
879
|
+
id: "id";
|
|
880
|
+
middlename: "middlename";
|
|
881
|
+
name: "name";
|
|
882
|
+
primaryOfficeId: "primaryOfficeId";
|
|
883
|
+
role: "role";
|
|
884
|
+
signature: "signature";
|
|
885
|
+
surname: "surname";
|
|
886
|
+
}>;
|
|
887
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
888
|
+
}, z.core.$strip>]>;
|
|
889
|
+
}, z.core.$strip>>>;
|
|
800
890
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
801
891
|
type: z.ZodLiteral<"within">;
|
|
802
892
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -968,21 +1058,18 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
968
1058
|
}, z.core.$strip>>>;
|
|
969
1059
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
970
1060
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
971
|
-
readonly INCOMPLETE: 'incomplete';
|
|
972
1061
|
readonly REJECTED: 'rejected';
|
|
973
1062
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
974
1063
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
975
1064
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
976
1065
|
}>]>, z.ZodString]>>>;
|
|
977
1066
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
978
|
-
readonly INCOMPLETE: 'incomplete';
|
|
979
1067
|
readonly REJECTED: 'rejected';
|
|
980
1068
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
981
1069
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
982
1070
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
983
1071
|
}>]>, z.ZodString]>>>;
|
|
984
1072
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
985
|
-
readonly INCOMPLETE: 'incomplete';
|
|
986
1073
|
readonly REJECTED: 'rejected';
|
|
987
1074
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
988
1075
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -1003,6 +1090,17 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1003
1090
|
DECLARED: "DECLARED";
|
|
1004
1091
|
NOTIFIED: "NOTIFIED";
|
|
1005
1092
|
REGISTERED: "REGISTERED";
|
|
1093
|
+
REVOKED: "REVOKED";
|
|
1094
|
+
}>>;
|
|
1095
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1096
|
+
type: z.ZodLiteral<"noneOf">;
|
|
1097
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
1098
|
+
ARCHIVED: "ARCHIVED";
|
|
1099
|
+
CREATED: "CREATED";
|
|
1100
|
+
DECLARED: "DECLARED";
|
|
1101
|
+
NOTIFIED: "NOTIFIED";
|
|
1102
|
+
REGISTERED: "REGISTERED";
|
|
1103
|
+
REVOKED: "REVOKED";
|
|
1006
1104
|
}>>;
|
|
1007
1105
|
}, z.core.$strip>, z.ZodObject<{
|
|
1008
1106
|
type: z.ZodLiteral<"exact">;
|
|
@@ -1012,6 +1110,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1012
1110
|
DECLARED: "DECLARED";
|
|
1013
1111
|
NOTIFIED: "NOTIFIED";
|
|
1014
1112
|
REGISTERED: "REGISTERED";
|
|
1113
|
+
REVOKED: "REVOKED";
|
|
1015
1114
|
}>;
|
|
1016
1115
|
}, z.core.$strip>]>>>;
|
|
1017
1116
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1114,6 +1213,26 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1114
1213
|
type: z.ZodLiteral<"exact">;
|
|
1115
1214
|
term: z.ZodString;
|
|
1116
1215
|
}, z.core.$strip>>>;
|
|
1216
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1217
|
+
type: z.ZodLiteral<"within">;
|
|
1218
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1219
|
+
$userField: z.ZodEnum<{
|
|
1220
|
+
administrativeAreaId: "administrativeAreaId";
|
|
1221
|
+
avatar: "avatar";
|
|
1222
|
+
device: "device";
|
|
1223
|
+
firstname: "firstname";
|
|
1224
|
+
fullHonorificName: "fullHonorificName";
|
|
1225
|
+
id: "id";
|
|
1226
|
+
middlename: "middlename";
|
|
1227
|
+
name: "name";
|
|
1228
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1229
|
+
role: "role";
|
|
1230
|
+
signature: "signature";
|
|
1231
|
+
surname: "surname";
|
|
1232
|
+
}>;
|
|
1233
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
1234
|
+
}, z.core.$strip>]>;
|
|
1235
|
+
}, z.core.$strip>>>;
|
|
1117
1236
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1118
1237
|
type: z.ZodLiteral<"within">;
|
|
1119
1238
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1285,21 +1404,18 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1285
1404
|
}, z.core.$strip>>>;
|
|
1286
1405
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1287
1406
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1288
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1289
1407
|
readonly REJECTED: 'rejected';
|
|
1290
1408
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1291
1409
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1292
1410
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1293
1411
|
}>]>, z.ZodString]>>>;
|
|
1294
1412
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1295
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1296
1413
|
readonly REJECTED: 'rejected';
|
|
1297
1414
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1298
1415
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1299
1416
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1300
1417
|
}>]>, z.ZodString]>>>;
|
|
1301
1418
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1302
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1303
1419
|
readonly REJECTED: 'rejected';
|
|
1304
1420
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1305
1421
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -1319,6 +1435,17 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1319
1435
|
DECLARED: "DECLARED";
|
|
1320
1436
|
NOTIFIED: "NOTIFIED";
|
|
1321
1437
|
REGISTERED: "REGISTERED";
|
|
1438
|
+
REVOKED: "REVOKED";
|
|
1439
|
+
}>>;
|
|
1440
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1441
|
+
type: z.ZodLiteral<"noneOf">;
|
|
1442
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
1443
|
+
ARCHIVED: "ARCHIVED";
|
|
1444
|
+
CREATED: "CREATED";
|
|
1445
|
+
DECLARED: "DECLARED";
|
|
1446
|
+
NOTIFIED: "NOTIFIED";
|
|
1447
|
+
REGISTERED: "REGISTERED";
|
|
1448
|
+
REVOKED: "REVOKED";
|
|
1322
1449
|
}>>;
|
|
1323
1450
|
}, z.core.$strip>, z.ZodObject<{
|
|
1324
1451
|
type: z.ZodLiteral<"exact">;
|
|
@@ -1328,6 +1455,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1328
1455
|
DECLARED: "DECLARED";
|
|
1329
1456
|
NOTIFIED: "NOTIFIED";
|
|
1330
1457
|
REGISTERED: "REGISTERED";
|
|
1458
|
+
REVOKED: "REVOKED";
|
|
1331
1459
|
}>;
|
|
1332
1460
|
}, z.core.$strip>]>>>;
|
|
1333
1461
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1430,6 +1558,26 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1430
1558
|
type: z.ZodLiteral<"exact">;
|
|
1431
1559
|
term: z.ZodString;
|
|
1432
1560
|
}, z.core.$strip>>>;
|
|
1561
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1562
|
+
type: z.ZodLiteral<"within">;
|
|
1563
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1564
|
+
$userField: z.ZodEnum<{
|
|
1565
|
+
administrativeAreaId: "administrativeAreaId";
|
|
1566
|
+
avatar: "avatar";
|
|
1567
|
+
device: "device";
|
|
1568
|
+
firstname: "firstname";
|
|
1569
|
+
fullHonorificName: "fullHonorificName";
|
|
1570
|
+
id: "id";
|
|
1571
|
+
middlename: "middlename";
|
|
1572
|
+
name: "name";
|
|
1573
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1574
|
+
role: "role";
|
|
1575
|
+
signature: "signature";
|
|
1576
|
+
surname: "surname";
|
|
1577
|
+
}>;
|
|
1578
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
1579
|
+
}, z.core.$strip>]>;
|
|
1580
|
+
}, z.core.$strip>>>;
|
|
1433
1581
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1434
1582
|
type: z.ZodLiteral<"within">;
|
|
1435
1583
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1601,21 +1749,18 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1601
1749
|
}, z.core.$strip>>>;
|
|
1602
1750
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1603
1751
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1604
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1605
1752
|
readonly REJECTED: 'rejected';
|
|
1606
1753
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1607
1754
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1608
1755
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1609
1756
|
}>]>, z.ZodString]>>>;
|
|
1610
1757
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1611
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1612
1758
|
readonly REJECTED: 'rejected';
|
|
1613
1759
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1614
1760
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1615
1761
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1616
1762
|
}>]>, z.ZodString]>>>;
|
|
1617
1763
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1618
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1619
1764
|
readonly REJECTED: 'rejected';
|
|
1620
1765
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1621
1766
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -1636,6 +1781,17 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1636
1781
|
DECLARED: "DECLARED";
|
|
1637
1782
|
NOTIFIED: "NOTIFIED";
|
|
1638
1783
|
REGISTERED: "REGISTERED";
|
|
1784
|
+
REVOKED: "REVOKED";
|
|
1785
|
+
}>>;
|
|
1786
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1787
|
+
type: z.ZodLiteral<"noneOf">;
|
|
1788
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
1789
|
+
ARCHIVED: "ARCHIVED";
|
|
1790
|
+
CREATED: "CREATED";
|
|
1791
|
+
DECLARED: "DECLARED";
|
|
1792
|
+
NOTIFIED: "NOTIFIED";
|
|
1793
|
+
REGISTERED: "REGISTERED";
|
|
1794
|
+
REVOKED: "REVOKED";
|
|
1639
1795
|
}>>;
|
|
1640
1796
|
}, z.core.$strip>, z.ZodObject<{
|
|
1641
1797
|
type: z.ZodLiteral<"exact">;
|
|
@@ -1645,6 +1801,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1645
1801
|
DECLARED: "DECLARED";
|
|
1646
1802
|
NOTIFIED: "NOTIFIED";
|
|
1647
1803
|
REGISTERED: "REGISTERED";
|
|
1804
|
+
REVOKED: "REVOKED";
|
|
1648
1805
|
}>;
|
|
1649
1806
|
}, z.core.$strip>]>>>;
|
|
1650
1807
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1747,6 +1904,26 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1747
1904
|
type: z.ZodLiteral<"exact">;
|
|
1748
1905
|
term: z.ZodString;
|
|
1749
1906
|
}, z.core.$strip>>>;
|
|
1907
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1908
|
+
type: z.ZodLiteral<"within">;
|
|
1909
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1910
|
+
$userField: z.ZodEnum<{
|
|
1911
|
+
administrativeAreaId: "administrativeAreaId";
|
|
1912
|
+
avatar: "avatar";
|
|
1913
|
+
device: "device";
|
|
1914
|
+
firstname: "firstname";
|
|
1915
|
+
fullHonorificName: "fullHonorificName";
|
|
1916
|
+
id: "id";
|
|
1917
|
+
middlename: "middlename";
|
|
1918
|
+
name: "name";
|
|
1919
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1920
|
+
role: "role";
|
|
1921
|
+
signature: "signature";
|
|
1922
|
+
surname: "surname";
|
|
1923
|
+
}>;
|
|
1924
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
1925
|
+
}, z.core.$strip>]>;
|
|
1926
|
+
}, z.core.$strip>>>;
|
|
1750
1927
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1751
1928
|
type: z.ZodLiteral<"within">;
|
|
1752
1929
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1918,21 +2095,18 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1918
2095
|
}, z.core.$strip>>>;
|
|
1919
2096
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1920
2097
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1921
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1922
2098
|
readonly REJECTED: 'rejected';
|
|
1923
2099
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1924
2100
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1925
2101
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1926
2102
|
}>]>, z.ZodString]>>>;
|
|
1927
2103
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1928
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1929
2104
|
readonly REJECTED: 'rejected';
|
|
1930
2105
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1931
2106
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1932
2107
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1933
2108
|
}>]>, z.ZodString]>>>;
|
|
1934
2109
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1935
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1936
2110
|
readonly REJECTED: 'rejected';
|
|
1937
2111
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1938
2112
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -37,9 +37,11 @@ export declare const Draft: z.ZodObject<{
|
|
|
37
37
|
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
38
38
|
READ: "READ";
|
|
39
39
|
REGISTER: "REGISTER";
|
|
40
|
+
REINSTATE_REGISTRATION: "REINSTATE_REGISTRATION";
|
|
40
41
|
REJECT: "REJECT";
|
|
41
42
|
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
42
43
|
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
44
|
+
REVOKE_REGISTRATION: "REVOKE_REGISTRATION";
|
|
43
45
|
UNARCHIVE: "UNARCHIVE";
|
|
44
46
|
UNASSIGN: "UNASSIGN";
|
|
45
47
|
}>;
|
|
@@ -3,11 +3,12 @@ import { ActionConfig } from './ActionConfig';
|
|
|
3
3
|
import { SummaryConfig } from './SummaryConfig';
|
|
4
4
|
import { TranslationConfig } from './TranslationConfig';
|
|
5
5
|
import { AdvancedSearchConfig } from './AdvancedSearchConfig';
|
|
6
|
-
import {
|
|
6
|
+
import { DeclarationFormConfigInput } from './FormConfig';
|
|
7
7
|
import { FieldReference } from './FieldConfig';
|
|
8
8
|
import { FlagConfig } from './Flag';
|
|
9
9
|
import type { JSONSchema } from '../conditionals/conditionals';
|
|
10
10
|
import { AvailableIcons } from '../icons';
|
|
11
|
+
import { ActionType } from './ActionType';
|
|
11
12
|
export declare const EventFieldReference: z.ZodObject<{
|
|
12
13
|
$$event: z.ZodEnum<{
|
|
13
14
|
createdAt: "createdAt";
|
|
@@ -30,20 +31,49 @@ export type EventConfig = {
|
|
|
30
31
|
label: TranslationConfig;
|
|
31
32
|
actions: ActionConfig[];
|
|
32
33
|
actionOrder?: string[];
|
|
33
|
-
declaration: DeclarationFormConfig;
|
|
34
34
|
advancedSearch: AdvancedSearchConfig[];
|
|
35
35
|
flags: FlagConfig[];
|
|
36
36
|
analytics: boolean;
|
|
37
37
|
icon?: Partial<Record<AvailableIcons, JSONSchema>>;
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
type ActionConfigInput = z.input<typeof ActionConfig>;
|
|
40
|
+
type DeclareActionConfigInput = Extract<ActionConfigInput, {
|
|
41
|
+
type: typeof ActionType.DECLARE;
|
|
42
|
+
}>;
|
|
43
|
+
type NotifyActionConfigInput = Extract<ActionConfigInput, {
|
|
44
|
+
type: typeof ActionType.NOTIFY;
|
|
45
|
+
}>;
|
|
46
|
+
/**
|
|
47
|
+
* Input accepted by `EventConfig.parse`. `declaration` lives only on the DECLARE action,
|
|
48
|
+
* and NOTIFY carries its `notificationForm` and `review`.
|
|
49
|
+
*/
|
|
50
|
+
type EventConfigSchemaInput = Omit<EventConfig, 'advancedSearch' | 'flags' | 'actions' | 'dateOfEvent' | 'placeOfEvent' | 'analytics'> & {
|
|
40
51
|
dateOfEvent?: z.input<typeof FieldReference> | z.infer<typeof EventFieldReference>;
|
|
41
52
|
placeOfEvent?: z.input<typeof FieldReference>;
|
|
42
53
|
advancedSearch?: AdvancedSearchConfig[];
|
|
43
54
|
flags?: FlagConfig[];
|
|
44
|
-
|
|
45
|
-
actions: z.input<typeof ActionConfig>[];
|
|
55
|
+
actions: ActionConfigInput[];
|
|
46
56
|
analytics?: boolean;
|
|
47
57
|
};
|
|
48
|
-
|
|
58
|
+
/**
|
|
59
|
+
* Input accepted by `defineConfig`.
|
|
60
|
+
* `declaration` may be given at the top level (kept for backwards compatibility)
|
|
61
|
+
* or on the DECLARE action.
|
|
62
|
+
* `defineConfig` checks at runtime that it is given in exactly one of these places.
|
|
63
|
+
*
|
|
64
|
+
* The NOTIFY action, and its `notificationForm` and `review`, are optional.
|
|
65
|
+
* `defineConfig` generates whatever is missing from the DECLARE action.
|
|
66
|
+
*/
|
|
67
|
+
export type EventConfigInput = Omit<EventConfigSchemaInput, 'actions'> & {
|
|
68
|
+
/** @deprecated Define `declaration` on the DECLARE action instead. */
|
|
69
|
+
declaration?: DeclarationFormConfigInput;
|
|
70
|
+
actions: Array<Exclude<ActionConfigInput, DeclareActionConfigInput | NotifyActionConfigInput> | (Omit<DeclareActionConfigInput, 'declaration'> & {
|
|
71
|
+
declaration?: DeclarationFormConfigInput;
|
|
72
|
+
}) | (Omit<NotifyActionConfigInput, 'notificationForm' | 'review'> & {
|
|
73
|
+
notificationForm?: NotifyActionConfigInput['notificationForm'];
|
|
74
|
+
review?: NotifyActionConfigInput['review'];
|
|
75
|
+
})>;
|
|
76
|
+
};
|
|
77
|
+
export declare const EventConfig: z.ZodType<EventConfig, EventConfigSchemaInput>;
|
|
78
|
+
export {};
|
|
49
79
|
//# sourceMappingURL=EventConfig.d.ts.map
|