@opencrvs/toolkit 2.1.0-rc.ffe0b7f → 2.2.0-rc.9042a13
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 +23 -5
- package/create-countryconfig/index.js +441 -59
- package/create-countryconfig/node_modules/.bin/degit +21 -0
- package/create-countryconfig/package.json +5 -2
- package/dist/application-config/index.js +391 -286
- package/dist/authentication/index.d.ts +66 -0
- package/dist/authentication/index.d.ts.map +1 -0
- package/dist/authentication/index.js +778 -0
- package/dist/cli.js +2041 -1311
- package/dist/commons/api/router.d.ts +2359 -485
- 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 +34 -8
- package/dist/commons/events/ActionConfig.d.ts +131 -7
- package/dist/commons/events/ActionDocument.d.ts +123 -15
- package/dist/commons/events/ActionInput.d.ts +56 -4
- package/dist/commons/events/ActionStatus.d.ts +14 -0
- package/dist/commons/events/ActionType.d.ts +11 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +60 -12
- package/dist/commons/events/AuditLog.d.ts +152 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +132 -0
- package/dist/commons/events/Draft.d.ts +3 -21
- package/dist/commons/events/EventConfig.d.ts +29 -6
- package/dist/commons/events/EventDocument.d.ts +560 -4
- package/dist/commons/events/EventIndex.d.ts +23 -26
- package/dist/commons/events/EventMetadata.d.ts +24 -11
- package/dist/commons/events/EventStatus.d.ts +20 -0
- package/dist/commons/events/FieldConfig.d.ts +119 -63
- package/dist/commons/events/FieldTypeMapping.d.ts +17 -17
- package/dist/commons/events/FieldValue.d.ts +3 -2
- package/dist/commons/events/Flag.d.ts +42 -0
- package/dist/commons/events/FormConfig.d.ts +6 -0
- package/dist/commons/events/PageConfig.d.ts +4 -0
- package/dist/commons/events/PlainDate.d.ts +8 -0
- package/dist/commons/events/SummaryConfig.d.ts +249 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +167 -20
- package/dist/commons/events/event.d.ts +12 -0
- package/dist/commons/events/eventConfigValidation.d.ts +17 -1
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/locationPayloads.d.ts +95 -0
- package/dist/commons/events/locations.d.ts +169 -26
- package/dist/commons/events/mocks.test.utils.d.ts +30 -0
- package/dist/commons/events/scopes.d.ts +23 -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 +106 -26
- package/dist/commons/events/utils.d.ts +81 -18
- package/dist/commons/notification/UserNotifications.d.ts +28 -13
- package/dist/commons/notification/dispatch.d.ts +10 -0
- package/dist/commons/notification/index.d.ts +1 -0
- package/dist/conditionals/index.js +362 -65
- package/dist/csv.d.ts +25 -0
- package/dist/csv.d.ts.map +1 -0
- package/dist/csv.js +120 -0
- 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 +22 -1
- package/dist/environment/index.d.ts.map +1 -1
- package/dist/environment/index.js +2 -1
- package/dist/environment/logger.d.ts +15 -3
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/manage-users.js +1 -1
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/questions.js +20 -14
- 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 +610 -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 +4 -0
- 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 +7909 -7056
- package/dist/migrations/add-translations.d.ts +15 -0
- package/dist/migrations/add-translations.d.ts.map +1 -0
- package/dist/migrations/add-translations.js +151 -0
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +3 -0
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-recovery-link-notifications.js +511 -0
- package/dist/migrations/{v2.0/rename-api-paths.d.ts → v2.1/enable-telemetry.d.ts} +1 -1
- package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -0
- package/dist/migrations/v2.1/enable-telemetry.js +455 -0
- package/dist/migrations/v2.1/index.d.ts.map +1 -1
- package/dist/migrations/v2.1/index.js +47 -215
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +17 -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/create-events-index.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 +11 -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/index.d.ts +6 -0
- package/dist/migrations/v2.2/index.d.ts.map +1 -0
- package/dist/migrations/v2.2/index.js +456 -0
- package/dist/migrations/v2.2/read-declaration-through-helper.d.ts +39 -0
- package/dist/migrations/v2.2/read-declaration-through-helper.d.ts.map +1 -0
- package/dist/migrations/v2.2/read-declaration-through-helper.js +257 -0
- package/dist/notification/index.js +2090 -1456
- package/dist/scopes/index.d.ts +637 -36
- package/dist/scopes/index.js +364 -65
- package/dist/telemetry/index.d.ts +45 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js +43 -0
- package/dist/templates/charts-values/dependencies/values.yaml +8 -0
- package/dist/templates/charts-values/opencrvs-services/values.yaml +10 -3
- package/dist/templates/charts-values/opentelemetry/values.yaml +102 -0
- package/dist/templates/charts-values/traefik/values.yaml +25 -12
- 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/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 +145 -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/templates/inventory/inventory.template.yml +1 -3
- 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 +2 -0
- package/dist/verify/endpoints.d.ts.map +1 -0
- package/dist/verify/endpoints.js +510 -0
- package/opencrvs-toolkit-2.2.0-rc.9042a13.tgz +0 -0
- package/package.json +13 -7
- package/tsconfig.build.json +11 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +3 -0
- 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.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/templates/inventory/production.example.yml +0 -77
- package/dist/templates/inventory/qa.example.yml +0 -48
- package/opencrvs-toolkit-2.1.0-rc.ffe0b7f.tgz +0 -0
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -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";
|
|
@@ -281,6 +285,153 @@ export declare const AuditLogEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
281
285
|
responseSummary: z.ZodObject<{
|
|
282
286
|
clientId: z.ZodString;
|
|
283
287
|
}, z.core.$strip>;
|
|
288
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
289
|
+
id: z.ZodString;
|
|
290
|
+
clientId: z.ZodString;
|
|
291
|
+
clientType: z.ZodEnum<{
|
|
292
|
+
system: "system";
|
|
293
|
+
user: "user";
|
|
294
|
+
}>;
|
|
295
|
+
createdAt: z.ZodString;
|
|
296
|
+
operation: z.ZodLiteral<"locations.create">;
|
|
297
|
+
requestData: z.ZodObject<{
|
|
298
|
+
id: z.ZodString;
|
|
299
|
+
versionId: z.ZodString;
|
|
300
|
+
name: z.ZodString;
|
|
301
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
302
|
+
effectiveFrom: z.ZodString;
|
|
303
|
+
status: z.ZodString;
|
|
304
|
+
administrativeAreaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
|
+
locationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
|
+
}, z.core.$strip>;
|
|
307
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
308
|
+
id: z.ZodString;
|
|
309
|
+
clientId: z.ZodString;
|
|
310
|
+
clientType: z.ZodEnum<{
|
|
311
|
+
system: "system";
|
|
312
|
+
user: "user";
|
|
313
|
+
}>;
|
|
314
|
+
createdAt: z.ZodString;
|
|
315
|
+
operation: z.ZodLiteral<"locations.update">;
|
|
316
|
+
requestData: z.ZodObject<{
|
|
317
|
+
id: z.ZodString;
|
|
318
|
+
versionId: z.ZodString;
|
|
319
|
+
name: z.ZodString;
|
|
320
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
321
|
+
status: z.ZodString;
|
|
322
|
+
effectiveFrom: z.ZodString;
|
|
323
|
+
lastVersionId: z.ZodString;
|
|
324
|
+
}, z.core.$strip>;
|
|
325
|
+
responseSummary: z.ZodObject<{
|
|
326
|
+
previousVersionId: z.ZodString;
|
|
327
|
+
versionId: z.ZodString;
|
|
328
|
+
changed: z.ZodObject<{
|
|
329
|
+
name: z.ZodOptional<z.ZodObject<{
|
|
330
|
+
from: z.ZodString;
|
|
331
|
+
to: z.ZodString;
|
|
332
|
+
}, z.core.$strip>>;
|
|
333
|
+
externalId: z.ZodOptional<z.ZodObject<{
|
|
334
|
+
from: z.ZodNullable<z.ZodString>;
|
|
335
|
+
to: z.ZodNullable<z.ZodString>;
|
|
336
|
+
}, z.core.$strip>>;
|
|
337
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
338
|
+
from: z.ZodString;
|
|
339
|
+
to: z.ZodString;
|
|
340
|
+
}, z.core.$strip>>;
|
|
341
|
+
}, z.core.$strip>;
|
|
342
|
+
}, z.core.$strip>;
|
|
343
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
344
|
+
id: z.ZodString;
|
|
345
|
+
clientId: z.ZodString;
|
|
346
|
+
clientType: z.ZodEnum<{
|
|
347
|
+
system: "system";
|
|
348
|
+
user: "user";
|
|
349
|
+
}>;
|
|
350
|
+
createdAt: z.ZodString;
|
|
351
|
+
operation: z.ZodLiteral<"administrativeAreas.update">;
|
|
352
|
+
requestData: z.ZodObject<{
|
|
353
|
+
id: z.ZodString;
|
|
354
|
+
versionId: z.ZodString;
|
|
355
|
+
name: z.ZodString;
|
|
356
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
357
|
+
status: z.ZodString;
|
|
358
|
+
effectiveFrom: z.ZodString;
|
|
359
|
+
lastVersionId: z.ZodString;
|
|
360
|
+
}, z.core.$strip>;
|
|
361
|
+
responseSummary: z.ZodObject<{
|
|
362
|
+
previousVersionId: z.ZodString;
|
|
363
|
+
versionId: z.ZodString;
|
|
364
|
+
changed: z.ZodObject<{
|
|
365
|
+
name: z.ZodOptional<z.ZodObject<{
|
|
366
|
+
from: z.ZodString;
|
|
367
|
+
to: z.ZodString;
|
|
368
|
+
}, z.core.$strip>>;
|
|
369
|
+
externalId: z.ZodOptional<z.ZodObject<{
|
|
370
|
+
from: z.ZodNullable<z.ZodString>;
|
|
371
|
+
to: z.ZodNullable<z.ZodString>;
|
|
372
|
+
}, z.core.$strip>>;
|
|
373
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
374
|
+
from: z.ZodString;
|
|
375
|
+
to: z.ZodString;
|
|
376
|
+
}, z.core.$strip>>;
|
|
377
|
+
}, z.core.$strip>;
|
|
378
|
+
}, z.core.$strip>;
|
|
379
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
380
|
+
id: z.ZodString;
|
|
381
|
+
clientId: z.ZodString;
|
|
382
|
+
clientType: z.ZodEnum<{
|
|
383
|
+
system: "system";
|
|
384
|
+
user: "user";
|
|
385
|
+
}>;
|
|
386
|
+
createdAt: z.ZodString;
|
|
387
|
+
operation: z.ZodLiteral<"locations.withdrawVersion">;
|
|
388
|
+
requestData: z.ZodObject<{
|
|
389
|
+
id: z.ZodString;
|
|
390
|
+
versionId: z.ZodString;
|
|
391
|
+
}, z.core.$strip>;
|
|
392
|
+
responseSummary: z.ZodObject<{
|
|
393
|
+
effectiveFrom: z.ZodString;
|
|
394
|
+
name: z.ZodString;
|
|
395
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
396
|
+
status: z.ZodString;
|
|
397
|
+
}, z.core.$strip>;
|
|
398
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
399
|
+
id: z.ZodString;
|
|
400
|
+
clientId: z.ZodString;
|
|
401
|
+
clientType: z.ZodEnum<{
|
|
402
|
+
system: "system";
|
|
403
|
+
user: "user";
|
|
404
|
+
}>;
|
|
405
|
+
createdAt: z.ZodString;
|
|
406
|
+
operation: z.ZodLiteral<"administrativeAreas.withdrawVersion">;
|
|
407
|
+
requestData: z.ZodObject<{
|
|
408
|
+
id: z.ZodString;
|
|
409
|
+
versionId: z.ZodString;
|
|
410
|
+
}, z.core.$strip>;
|
|
411
|
+
responseSummary: z.ZodObject<{
|
|
412
|
+
effectiveFrom: z.ZodString;
|
|
413
|
+
name: z.ZodString;
|
|
414
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
415
|
+
status: z.ZodString;
|
|
416
|
+
}, z.core.$strip>;
|
|
417
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
418
|
+
id: z.ZodString;
|
|
419
|
+
clientId: z.ZodString;
|
|
420
|
+
clientType: z.ZodEnum<{
|
|
421
|
+
system: "system";
|
|
422
|
+
user: "user";
|
|
423
|
+
}>;
|
|
424
|
+
createdAt: z.ZodString;
|
|
425
|
+
operation: z.ZodLiteral<"administrativeAreas.create">;
|
|
426
|
+
requestData: z.ZodObject<{
|
|
427
|
+
id: z.ZodString;
|
|
428
|
+
versionId: z.ZodString;
|
|
429
|
+
name: z.ZodString;
|
|
430
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
431
|
+
effectiveFrom: z.ZodString;
|
|
432
|
+
status: z.ZodString;
|
|
433
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
434
|
+
}, z.core.$strip>;
|
|
284
435
|
}, z.core.$strip>, z.ZodObject<{
|
|
285
436
|
id: z.ZodString;
|
|
286
437
|
clientId: z.ZodString;
|
|
@@ -292,6 +443,7 @@ export declare const AuditLogEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
292
443
|
operation: z.ZodLiteral<"attachments.upload">;
|
|
293
444
|
requestData: z.ZodObject<{
|
|
294
445
|
transactionId: z.ZodString;
|
|
446
|
+
eventId: z.ZodOptional<z.ZodString>;
|
|
295
447
|
path: z.ZodNullable<z.ZodString>;
|
|
296
448
|
}, z.core.$strip>;
|
|
297
449
|
responseSummary: z.ZodObject<{
|
|
@@ -51,6 +51,7 @@ export declare const SerializedQueryExpression: z.ZodObject<{
|
|
|
51
51
|
DECLARED: "DECLARED";
|
|
52
52
|
NOTIFIED: "NOTIFIED";
|
|
53
53
|
REGISTERED: "REGISTERED";
|
|
54
|
+
REVOKED: "REVOKED";
|
|
54
55
|
}>>;
|
|
55
56
|
}, z.core.$strip>, z.ZodObject<{
|
|
56
57
|
type: z.ZodLiteral<"exact">;
|
|
@@ -60,6 +61,7 @@ export declare const SerializedQueryExpression: z.ZodObject<{
|
|
|
60
61
|
DECLARED: "DECLARED";
|
|
61
62
|
NOTIFIED: "NOTIFIED";
|
|
62
63
|
REGISTERED: "REGISTERED";
|
|
64
|
+
REVOKED: "REVOKED";
|
|
63
65
|
}>;
|
|
64
66
|
}, z.core.$strip>]>>>;
|
|
65
67
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -162,6 +164,26 @@ export declare const SerializedQueryExpression: z.ZodObject<{
|
|
|
162
164
|
type: z.ZodLiteral<"exact">;
|
|
163
165
|
term: z.ZodString;
|
|
164
166
|
}, z.core.$strip>>>;
|
|
167
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
168
|
+
type: z.ZodLiteral<"within">;
|
|
169
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
170
|
+
$userField: z.ZodEnum<{
|
|
171
|
+
administrativeAreaId: "administrativeAreaId";
|
|
172
|
+
avatar: "avatar";
|
|
173
|
+
device: "device";
|
|
174
|
+
firstname: "firstname";
|
|
175
|
+
fullHonorificName: "fullHonorificName";
|
|
176
|
+
id: "id";
|
|
177
|
+
middlename: "middlename";
|
|
178
|
+
name: "name";
|
|
179
|
+
primaryOfficeId: "primaryOfficeId";
|
|
180
|
+
role: "role";
|
|
181
|
+
signature: "signature";
|
|
182
|
+
surname: "surname";
|
|
183
|
+
}>;
|
|
184
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
185
|
+
}, z.core.$strip>]>;
|
|
186
|
+
}, z.core.$strip>>>;
|
|
165
187
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
166
188
|
type: z.ZodLiteral<"within">;
|
|
167
189
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -369,6 +391,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
369
391
|
DECLARED: "DECLARED";
|
|
370
392
|
NOTIFIED: "NOTIFIED";
|
|
371
393
|
REGISTERED: "REGISTERED";
|
|
394
|
+
REVOKED: "REVOKED";
|
|
372
395
|
}>>;
|
|
373
396
|
}, z.core.$strip>, z.ZodObject<{
|
|
374
397
|
type: z.ZodLiteral<"exact">;
|
|
@@ -378,6 +401,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
378
401
|
DECLARED: "DECLARED";
|
|
379
402
|
NOTIFIED: "NOTIFIED";
|
|
380
403
|
REGISTERED: "REGISTERED";
|
|
404
|
+
REVOKED: "REVOKED";
|
|
381
405
|
}>;
|
|
382
406
|
}, z.core.$strip>]>>>;
|
|
383
407
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -480,6 +504,26 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
480
504
|
type: z.ZodLiteral<"exact">;
|
|
481
505
|
term: z.ZodString;
|
|
482
506
|
}, z.core.$strip>>>;
|
|
507
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
508
|
+
type: z.ZodLiteral<"within">;
|
|
509
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
510
|
+
$userField: z.ZodEnum<{
|
|
511
|
+
administrativeAreaId: "administrativeAreaId";
|
|
512
|
+
avatar: "avatar";
|
|
513
|
+
device: "device";
|
|
514
|
+
firstname: "firstname";
|
|
515
|
+
fullHonorificName: "fullHonorificName";
|
|
516
|
+
id: "id";
|
|
517
|
+
middlename: "middlename";
|
|
518
|
+
name: "name";
|
|
519
|
+
primaryOfficeId: "primaryOfficeId";
|
|
520
|
+
role: "role";
|
|
521
|
+
signature: "signature";
|
|
522
|
+
surname: "surname";
|
|
523
|
+
}>;
|
|
524
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
525
|
+
}, z.core.$strip>]>;
|
|
526
|
+
}, z.core.$strip>>>;
|
|
483
527
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
484
528
|
type: z.ZodLiteral<"within">;
|
|
485
529
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -686,6 +730,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
686
730
|
DECLARED: "DECLARED";
|
|
687
731
|
NOTIFIED: "NOTIFIED";
|
|
688
732
|
REGISTERED: "REGISTERED";
|
|
733
|
+
REVOKED: "REVOKED";
|
|
689
734
|
}>>;
|
|
690
735
|
}, z.core.$strip>, z.ZodObject<{
|
|
691
736
|
type: z.ZodLiteral<"exact">;
|
|
@@ -695,6 +740,7 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
695
740
|
DECLARED: "DECLARED";
|
|
696
741
|
NOTIFIED: "NOTIFIED";
|
|
697
742
|
REGISTERED: "REGISTERED";
|
|
743
|
+
REVOKED: "REVOKED";
|
|
698
744
|
}>;
|
|
699
745
|
}, z.core.$strip>]>>>;
|
|
700
746
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -797,6 +843,26 @@ export declare const CountryConfigQueryType: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
797
843
|
type: z.ZodLiteral<"exact">;
|
|
798
844
|
term: z.ZodString;
|
|
799
845
|
}, z.core.$strip>>>;
|
|
846
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
847
|
+
type: z.ZodLiteral<"within">;
|
|
848
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
849
|
+
$userField: z.ZodEnum<{
|
|
850
|
+
administrativeAreaId: "administrativeAreaId";
|
|
851
|
+
avatar: "avatar";
|
|
852
|
+
device: "device";
|
|
853
|
+
firstname: "firstname";
|
|
854
|
+
fullHonorificName: "fullHonorificName";
|
|
855
|
+
id: "id";
|
|
856
|
+
middlename: "middlename";
|
|
857
|
+
name: "name";
|
|
858
|
+
primaryOfficeId: "primaryOfficeId";
|
|
859
|
+
role: "role";
|
|
860
|
+
signature: "signature";
|
|
861
|
+
surname: "surname";
|
|
862
|
+
}>;
|
|
863
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
864
|
+
}, z.core.$strip>]>;
|
|
865
|
+
}, z.core.$strip>>>;
|
|
800
866
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
801
867
|
type: z.ZodLiteral<"within">;
|
|
802
868
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1003,6 +1069,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1003
1069
|
DECLARED: "DECLARED";
|
|
1004
1070
|
NOTIFIED: "NOTIFIED";
|
|
1005
1071
|
REGISTERED: "REGISTERED";
|
|
1072
|
+
REVOKED: "REVOKED";
|
|
1006
1073
|
}>>;
|
|
1007
1074
|
}, z.core.$strip>, z.ZodObject<{
|
|
1008
1075
|
type: z.ZodLiteral<"exact">;
|
|
@@ -1012,6 +1079,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1012
1079
|
DECLARED: "DECLARED";
|
|
1013
1080
|
NOTIFIED: "NOTIFIED";
|
|
1014
1081
|
REGISTERED: "REGISTERED";
|
|
1082
|
+
REVOKED: "REVOKED";
|
|
1015
1083
|
}>;
|
|
1016
1084
|
}, z.core.$strip>]>>>;
|
|
1017
1085
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1114,6 +1182,26 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1114
1182
|
type: z.ZodLiteral<"exact">;
|
|
1115
1183
|
term: z.ZodString;
|
|
1116
1184
|
}, z.core.$strip>>>;
|
|
1185
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1186
|
+
type: z.ZodLiteral<"within">;
|
|
1187
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1188
|
+
$userField: z.ZodEnum<{
|
|
1189
|
+
administrativeAreaId: "administrativeAreaId";
|
|
1190
|
+
avatar: "avatar";
|
|
1191
|
+
device: "device";
|
|
1192
|
+
firstname: "firstname";
|
|
1193
|
+
fullHonorificName: "fullHonorificName";
|
|
1194
|
+
id: "id";
|
|
1195
|
+
middlename: "middlename";
|
|
1196
|
+
name: "name";
|
|
1197
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1198
|
+
role: "role";
|
|
1199
|
+
signature: "signature";
|
|
1200
|
+
surname: "surname";
|
|
1201
|
+
}>;
|
|
1202
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
1203
|
+
}, z.core.$strip>]>;
|
|
1204
|
+
}, z.core.$strip>>>;
|
|
1117
1205
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1118
1206
|
type: z.ZodLiteral<"within">;
|
|
1119
1207
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1319,6 +1407,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1319
1407
|
DECLARED: "DECLARED";
|
|
1320
1408
|
NOTIFIED: "NOTIFIED";
|
|
1321
1409
|
REGISTERED: "REGISTERED";
|
|
1410
|
+
REVOKED: "REVOKED";
|
|
1322
1411
|
}>>;
|
|
1323
1412
|
}, z.core.$strip>, z.ZodObject<{
|
|
1324
1413
|
type: z.ZodLiteral<"exact">;
|
|
@@ -1328,6 +1417,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1328
1417
|
DECLARED: "DECLARED";
|
|
1329
1418
|
NOTIFIED: "NOTIFIED";
|
|
1330
1419
|
REGISTERED: "REGISTERED";
|
|
1420
|
+
REVOKED: "REVOKED";
|
|
1331
1421
|
}>;
|
|
1332
1422
|
}, z.core.$strip>]>>>;
|
|
1333
1423
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1430,6 +1520,26 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1430
1520
|
type: z.ZodLiteral<"exact">;
|
|
1431
1521
|
term: z.ZodString;
|
|
1432
1522
|
}, z.core.$strip>>>;
|
|
1523
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1524
|
+
type: z.ZodLiteral<"within">;
|
|
1525
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1526
|
+
$userField: z.ZodEnum<{
|
|
1527
|
+
administrativeAreaId: "administrativeAreaId";
|
|
1528
|
+
avatar: "avatar";
|
|
1529
|
+
device: "device";
|
|
1530
|
+
firstname: "firstname";
|
|
1531
|
+
fullHonorificName: "fullHonorificName";
|
|
1532
|
+
id: "id";
|
|
1533
|
+
middlename: "middlename";
|
|
1534
|
+
name: "name";
|
|
1535
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1536
|
+
role: "role";
|
|
1537
|
+
signature: "signature";
|
|
1538
|
+
surname: "surname";
|
|
1539
|
+
}>;
|
|
1540
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
1541
|
+
}, z.core.$strip>]>;
|
|
1542
|
+
}, z.core.$strip>>>;
|
|
1433
1543
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1434
1544
|
type: z.ZodLiteral<"within">;
|
|
1435
1545
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1636,6 +1746,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1636
1746
|
DECLARED: "DECLARED";
|
|
1637
1747
|
NOTIFIED: "NOTIFIED";
|
|
1638
1748
|
REGISTERED: "REGISTERED";
|
|
1749
|
+
REVOKED: "REVOKED";
|
|
1639
1750
|
}>>;
|
|
1640
1751
|
}, z.core.$strip>, z.ZodObject<{
|
|
1641
1752
|
type: z.ZodLiteral<"exact">;
|
|
@@ -1645,6 +1756,7 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1645
1756
|
DECLARED: "DECLARED";
|
|
1646
1757
|
NOTIFIED: "NOTIFIED";
|
|
1647
1758
|
REGISTERED: "REGISTERED";
|
|
1759
|
+
REVOKED: "REVOKED";
|
|
1648
1760
|
}>;
|
|
1649
1761
|
}, z.core.$strip>]>>>;
|
|
1650
1762
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1747,6 +1859,26 @@ export declare const CountryConfigQueryInputType: z.ZodUnion<readonly [z.ZodObje
|
|
|
1747
1859
|
type: z.ZodLiteral<"exact">;
|
|
1748
1860
|
term: z.ZodString;
|
|
1749
1861
|
}, z.core.$strip>>>;
|
|
1862
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1863
|
+
type: z.ZodLiteral<"within">;
|
|
1864
|
+
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1865
|
+
$userField: z.ZodEnum<{
|
|
1866
|
+
administrativeAreaId: "administrativeAreaId";
|
|
1867
|
+
avatar: "avatar";
|
|
1868
|
+
device: "device";
|
|
1869
|
+
firstname: "firstname";
|
|
1870
|
+
fullHonorificName: "fullHonorificName";
|
|
1871
|
+
id: "id";
|
|
1872
|
+
middlename: "middlename";
|
|
1873
|
+
name: "name";
|
|
1874
|
+
primaryOfficeId: "primaryOfficeId";
|
|
1875
|
+
role: "role";
|
|
1876
|
+
signature: "signature";
|
|
1877
|
+
surname: "surname";
|
|
1878
|
+
}>;
|
|
1879
|
+
$location: z.ZodOptional<z.ZodString>;
|
|
1880
|
+
}, z.core.$strip>]>;
|
|
1881
|
+
}, z.core.$strip>>>;
|
|
1750
1882
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1751
1883
|
type: z.ZodLiteral<"within">;
|
|
1752
1884
|
location: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -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
|
}>;
|
|
@@ -55,27 +57,7 @@ export declare const DraftInput: z.ZodObject<{
|
|
|
55
57
|
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
56
58
|
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
57
59
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
58
|
-
type: z.
|
|
59
|
-
APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
|
60
|
-
ARCHIVE: "ARCHIVE";
|
|
61
|
-
ASSIGN: "ASSIGN";
|
|
62
|
-
CREATE: "CREATE";
|
|
63
|
-
CUSTOM: "CUSTOM";
|
|
64
|
-
DECLARE: "DECLARE";
|
|
65
|
-
DUPLICATE_DETECTED: "DUPLICATE_DETECTED";
|
|
66
|
-
EDIT: "EDIT";
|
|
67
|
-
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE";
|
|
68
|
-
MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE";
|
|
69
|
-
NOTIFY: "NOTIFY";
|
|
70
|
-
PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
|
71
|
-
READ: "READ";
|
|
72
|
-
REGISTER: "REGISTER";
|
|
73
|
-
REJECT: "REJECT";
|
|
74
|
-
REJECT_CORRECTION: "REJECT_CORRECTION";
|
|
75
|
-
REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
|
76
|
-
UNARCHIVE: "UNARCHIVE";
|
|
77
|
-
UNASSIGN: "UNASSIGN";
|
|
78
|
-
}>;
|
|
60
|
+
type: z.ZodLiteral<"DECLARE">;
|
|
79
61
|
status: z.ZodEnum<{
|
|
80
62
|
Accepted: "Accepted";
|
|
81
63
|
Rejected: "Rejected";
|
|
@@ -3,9 +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
|
+
import type { JSONSchema } from '../conditionals/conditionals';
|
|
10
|
+
import { AvailableIcons } from '../icons';
|
|
11
|
+
import { ActionType } from './ActionType';
|
|
9
12
|
export declare const EventFieldReference: z.ZodObject<{
|
|
10
13
|
$$event: z.ZodEnum<{
|
|
11
14
|
createdAt: "createdAt";
|
|
@@ -28,19 +31,39 @@ export type EventConfig = {
|
|
|
28
31
|
label: TranslationConfig;
|
|
29
32
|
actions: ActionConfig[];
|
|
30
33
|
actionOrder?: string[];
|
|
31
|
-
declaration: DeclarationFormConfig;
|
|
32
34
|
advancedSearch: AdvancedSearchConfig[];
|
|
33
35
|
flags: FlagConfig[];
|
|
34
36
|
analytics: boolean;
|
|
37
|
+
icon?: Partial<Record<AvailableIcons, JSONSchema>>;
|
|
35
38
|
};
|
|
36
|
-
|
|
39
|
+
type ActionConfigInput = z.input<typeof ActionConfig>;
|
|
40
|
+
type DeclareActionConfigInput = Extract<ActionConfigInput, {
|
|
41
|
+
type: typeof ActionType.DECLARE;
|
|
42
|
+
}>;
|
|
43
|
+
/**
|
|
44
|
+
* Input accepted by `EventConfig.parse`. `declaration` lives only on the DECLARE action.
|
|
45
|
+
*/
|
|
46
|
+
type EventConfigSchemaInput = Omit<EventConfig, 'advancedSearch' | 'flags' | 'actions' | 'dateOfEvent' | 'placeOfEvent' | 'analytics'> & {
|
|
37
47
|
dateOfEvent?: z.input<typeof FieldReference> | z.infer<typeof EventFieldReference>;
|
|
38
48
|
placeOfEvent?: z.input<typeof FieldReference>;
|
|
39
49
|
advancedSearch?: AdvancedSearchConfig[];
|
|
40
50
|
flags?: FlagConfig[];
|
|
41
|
-
|
|
42
|
-
actions: z.input<typeof ActionConfig>[];
|
|
51
|
+
actions: ActionConfigInput[];
|
|
43
52
|
analytics?: boolean;
|
|
44
53
|
};
|
|
45
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Input accepted by `defineConfig`.
|
|
56
|
+
* `declaration` may be given at the top level (kept for backwards compatibility)
|
|
57
|
+
* or on the DECLARE action.
|
|
58
|
+
* `defineConfig` checks at runtime that it is given in exactly one of these places.
|
|
59
|
+
*/
|
|
60
|
+
export type EventConfigInput = Omit<EventConfigSchemaInput, 'actions'> & {
|
|
61
|
+
/** @deprecated Define `declaration` on the DECLARE action instead. */
|
|
62
|
+
declaration?: DeclarationFormConfigInput;
|
|
63
|
+
actions: Array<Exclude<ActionConfigInput, DeclareActionConfigInput> | (Omit<DeclareActionConfigInput, 'declaration'> & {
|
|
64
|
+
declaration?: DeclarationFormConfigInput;
|
|
65
|
+
})>;
|
|
66
|
+
};
|
|
67
|
+
export declare const EventConfig: z.ZodType<EventConfig, EventConfigSchemaInput>;
|
|
68
|
+
export {};
|
|
46
69
|
//# sourceMappingURL=EventConfig.d.ts.map
|