@opencrvs/toolkit 2.1.0-rc.7985421 → 2.1.0-rc.7c723fe
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 +3 -12
- package/build.sh +22 -4
- package/create-countryconfig/index.js +441 -59
- package/create-countryconfig/node_modules/.bin/degit +21 -0
- package/create-countryconfig/package.json +4 -1
- package/dist/application-config/index.js +361 -284
- package/dist/authentication/index.d.ts +66 -0
- package/dist/authentication/index.d.ts.map +1 -0
- package/dist/authentication/index.js +765 -0
- package/dist/cli.js +3751 -1232
- package/dist/commons/api/router.d.ts +745 -372
- 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 +5 -14
- package/dist/commons/events/ActionDocument.d.ts +35 -15
- package/dist/commons/events/ActionInput.d.ts +4 -4
- package/dist/commons/events/ActionStatus.d.ts +14 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +42 -12
- package/dist/commons/events/AuditLog.d.ts +39 -0
- package/dist/commons/events/Draft.d.ts +1 -21
- package/dist/commons/events/EventConfig.d.ts +3 -0
- package/dist/commons/events/EventDocument.d.ts +472 -4
- package/dist/commons/events/EventIndex.d.ts +3 -26
- package/dist/commons/events/EventMetadata.d.ts +1 -11
- package/dist/commons/events/EventStatus.d.ts +19 -0
- package/dist/commons/events/FieldConfig.d.ts +104 -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 +17 -14
- package/dist/commons/events/event.d.ts +12 -0
- package/dist/commons/events/locations.d.ts +162 -26
- package/dist/commons/events/mocks.test.utils.d.ts +30 -0
- package/dist/commons/events/scopes.d.ts +21 -1
- package/dist/commons/events/test.utils.d.ts +78 -25
- package/dist/commons/events/utils.d.ts +39 -4
- 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 +348 -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/index.d.ts +1 -0
- package/dist/environment/index.d.ts.map +1 -1
- package/dist/environment/index.js +12 -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/paths.d.ts +7 -0
- package/dist/environment/paths.d.ts.map +1 -0
- package/dist/environment/paths.js +72 -0
- 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 +594 -562
- 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 +5 -9
- package/dist/environment/update-workflows.d.ts.map +1 -1
- package/dist/environment/update-workflows.js +21 -5
- package/dist/environment/upgrade.d.ts +2 -0
- package/dist/environment/upgrade.d.ts.map +1 -0
- package/dist/environment/upgrade.js +82 -0
- package/dist/environment/users.js +11 -13
- 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 +7286 -6783
- 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.1/add-translations.d.ts +9 -0
- package/dist/migrations/v2.1/add-translations.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-translations.js +149 -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 +1952 -0
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +14 -0
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +1 -0
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.js +348 -0
- package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts +2 -0
- package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts.map +1 -0
- package/dist/migrations/v2.1/remove-metabase-package-installs.js +161 -0
- package/dist/migrations/{v2.0/migrate-scopes.d.ts → v2.1/remove-sentry.d.ts} +1 -1
- package/dist/migrations/v2.1/remove-sentry.d.ts.map +1 -0
- package/dist/migrations/v2.1/remove-sentry.js +354 -0
- package/dist/migrations/{v2.0/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 +8 -0
- package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +1 -0
- package/dist/migrations/v2.1/upgrade-tilt.js +139 -0
- package/dist/notification/index.js +1839 -1499
- package/dist/scopes/index.d.ts +612 -36
- package/dist/scopes/index.js +350 -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 +23 -9
- 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.1.0-rc.7c723fe.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.7985421.tgz +0 -0
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -66,14 +66,12 @@ export declare const LoginConfig: z.ZodObject<{
|
|
|
66
66
|
backgroundImage: z.ZodOptional<z.ZodString>;
|
|
67
67
|
imageFit: z.ZodOptional<z.ZodString>;
|
|
68
68
|
}, z.core.$strip>;
|
|
69
|
-
SENTRY: z.ZodOptional<z.ZodString>;
|
|
70
69
|
}, z.core.$strip>;
|
|
71
70
|
export type LoginConfig = z.infer<typeof LoginConfig>;
|
|
72
71
|
export declare const defineLoginConfig: (config: z.input<typeof LoginConfig>) => LoginConfig;
|
|
73
72
|
export declare const ClientConfig: z.ZodObject<{
|
|
74
73
|
COUNTRY: z.ZodString;
|
|
75
74
|
LANGUAGES: z.ZodArray<z.ZodString>;
|
|
76
|
-
SENTRY: z.ZodOptional<z.ZodString>;
|
|
77
75
|
LOGIN_URL: z.ZodOptional<z.ZodString>;
|
|
78
76
|
REGISTER_BACKGROUND: z.ZodObject<{
|
|
79
77
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
@@ -85,17 +85,17 @@ export declare const now: typeof todayDateTimeValueSerializer;
|
|
|
85
85
|
export declare const user: typeof userSerializer & {
|
|
86
86
|
scope: (scope: import("../scopes").ScopeType) => {
|
|
87
87
|
attribute: (option: import("../scopes").ScopeOptionKey) => {
|
|
88
|
-
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.
|
|
89
|
-
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
|
|
88
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.audit.read" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.action.accept" | "record.action.reject" | "record.archive" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
89
|
+
$option: "accessLevel" | "createdBy" | "createdIn" | "declaredBy" | "declaredIn" | "event" | "flags" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role" | "status";
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
|
|
93
|
-
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.
|
|
94
|
-
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
|
|
93
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.audit.read" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.action.accept" | "record.action.reject" | "record.archive" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
94
|
+
$option: "accessLevel" | "createdBy" | "createdIn" | "declaredBy" | "declaredIn" | "event" | "flags" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role" | "status";
|
|
95
95
|
}) => {
|
|
96
96
|
$jurisdiction: "administrativeArea" | "all" | "location" | {
|
|
97
|
-
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.
|
|
98
|
-
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
|
|
97
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.audit.read" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.action.accept" | "record.action.reject" | "record.archive" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
98
|
+
$option: "accessLevel" | "createdBy" | "createdIn" | "declaredBy" | "declaredIn" | "event" | "flags" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role" | "status";
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
hasScope: (scope: string) => JSONSchema;
|
|
@@ -2,9 +2,9 @@ import { ConditionalParameters, JSONSchema } from './conditionals';
|
|
|
2
2
|
import { ActionUpdate, EventState } from '../events/ActionDocument';
|
|
3
3
|
import { FieldConditional } from '../events/Conditional';
|
|
4
4
|
import { FieldConfig } from '../events/FieldConfig';
|
|
5
|
-
import { FieldUpdateValue, FieldValue } from '../events/FieldValue';
|
|
5
|
+
import { PlainDate, FieldUpdateValue, FieldValue } from '../events/FieldValue';
|
|
6
6
|
import { TranslationConfig } from '../events/TranslationConfig';
|
|
7
|
-
import {
|
|
7
|
+
import { EncodedScope, TokenUserType } from '../authentication';
|
|
8
8
|
import { UUID } from '../uuid';
|
|
9
9
|
import { FormState } from '../events/utils';
|
|
10
10
|
import { ActionConfig } from '../events/ActionConfig';
|
|
@@ -14,8 +14,8 @@ import { EventDocument } from '../events/EventDocument';
|
|
|
14
14
|
import { EventIndex } from '../events/EventIndex';
|
|
15
15
|
import { Location } from '../events/locations';
|
|
16
16
|
import { SystemVariables } from '../events/TemplateConfig';
|
|
17
|
-
/** Returns today's date as
|
|
18
|
-
export declare function todayISO():
|
|
17
|
+
/** Returns today's date as a {@link PlainDate} (YYYY-MM-DD), device-local. */
|
|
18
|
+
export declare function todayISO(): PlainDate;
|
|
19
19
|
/**
|
|
20
20
|
* Context passed to every serialised client-side function ({@link runClientFunction}).
|
|
21
21
|
*
|
|
@@ -27,7 +27,7 @@ export type ClientFunctionContext = {
|
|
|
27
27
|
$form: EventState | ActionUpdate;
|
|
28
28
|
$now: string;
|
|
29
29
|
$online: boolean;
|
|
30
|
-
$user?:
|
|
30
|
+
$user?: UserValidatorContext;
|
|
31
31
|
$event?: EventDocument;
|
|
32
32
|
$leafAdminStructureLocationIds: Array<{
|
|
33
33
|
id: UUID;
|
|
@@ -69,14 +69,40 @@ export declare function validate(schema: JSONSchema, data: ConditionalParameters
|
|
|
69
69
|
export declare function validateValue(schema: JSONSchema, data: unknown): boolean;
|
|
70
70
|
export declare function isOnline(): boolean;
|
|
71
71
|
export declare function isConditionMet(conditional: JSONSchema, values: EventState | ActionUpdate, context: ValidatorContext): boolean;
|
|
72
|
-
export declare function areConditionsMet(conditions: FieldConditional[], values: Record<string, FieldValue>, context: ValidatorContext,
|
|
72
|
+
export declare function areConditionsMet(conditions: FieldConditional[], values: Record<string, FieldValue>, context: ValidatorContext, event: EventIndex): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Given a field's `secured` property (a boolean, or a JSONSchema conditional
|
|
75
|
+
* evaluated against the event, e.g. `flag('sealed')`), returns whether the
|
|
76
|
+
* field is currently secured for the given event.
|
|
77
|
+
*/
|
|
78
|
+
export declare function isFieldSecured(field: Pick<FieldConfig, 'secured'>, event: EventIndex, context: ValidatorContext): boolean;
|
|
79
|
+
export type EventValidatorContext = {
|
|
80
|
+
document: EventDocument;
|
|
81
|
+
state: EventIndex;
|
|
82
|
+
};
|
|
83
|
+
export declare function getEventValidatorContext(document: EventDocument, config: EventConfig): EventValidatorContext;
|
|
84
|
+
export type UserValidatorContext = {
|
|
85
|
+
sub: string;
|
|
86
|
+
scope: EncodedScope[];
|
|
87
|
+
role?: string;
|
|
88
|
+
userType: TokenUserType;
|
|
89
|
+
};
|
|
90
|
+
/** deprecated */
|
|
73
91
|
export type ValidatorContext = {
|
|
74
|
-
user?:
|
|
92
|
+
user?: UserValidatorContext;
|
|
75
93
|
leafAdminStructureLocationIds?: Array<{
|
|
76
94
|
id: UUID;
|
|
77
95
|
}>;
|
|
78
|
-
event?: EventDocument;
|
|
79
96
|
baseFormState?: EventState;
|
|
97
|
+
event?: EventValidatorContext;
|
|
98
|
+
};
|
|
99
|
+
export type StrictValidatorContext = {
|
|
100
|
+
user: UserValidatorContext;
|
|
101
|
+
leafAdminStructureLocationIds: Array<{
|
|
102
|
+
id: UUID;
|
|
103
|
+
}>;
|
|
104
|
+
baseFormState?: EventState;
|
|
105
|
+
event: EventValidatorContext;
|
|
80
106
|
};
|
|
81
107
|
export declare function isFieldVisible(field: FieldConfig, form: Partial<ActionUpdate | EventState>, context: ValidatorContext): boolean;
|
|
82
108
|
export declare function isFieldEnabled(field: FieldConfig, form: ActionUpdate | EventState, context: ValidatorContext): boolean;
|
|
@@ -63,20 +63,6 @@ declare const CustomActionConfig: z.ZodObject<{
|
|
|
63
63
|
export type CustomActionConfig = z.infer<typeof CustomActionConfig>;
|
|
64
64
|
export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
65
65
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
66
|
-
flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
67
|
-
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
68
|
-
readonly INCOMPLETE: 'incomplete';
|
|
69
|
-
readonly REJECTED: 'rejected';
|
|
70
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
71
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
72
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
73
|
-
}>]>, z.ZodString]>;
|
|
74
|
-
operation: z.ZodEnum<{
|
|
75
|
-
add: "add";
|
|
76
|
-
remove: "remove";
|
|
77
|
-
}>;
|
|
78
|
-
conditional: z.ZodOptional<z.ZodAny>;
|
|
79
|
-
}, z.core.$strip>>>>;
|
|
80
66
|
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
81
67
|
icon: z.ZodOptional<z.ZodString>;
|
|
82
68
|
type: z.ZodLiteral<"READ">;
|
|
@@ -85,6 +71,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
85
71
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
86
72
|
}, z.core.$strip>;
|
|
87
73
|
conditionals: z.ZodOptional<z.ZodNever>;
|
|
74
|
+
flags: z.ZodOptional<z.ZodNever>;
|
|
88
75
|
}, z.core.$strip>, z.ZodObject<{
|
|
89
76
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
90
77
|
supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
@@ -368,6 +355,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
368
355
|
id: z.ZodString;
|
|
369
356
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
370
357
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
358
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
371
359
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
372
360
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
373
361
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -375,6 +363,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
375
363
|
id: z.ZodString;
|
|
376
364
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
377
365
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
366
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
378
367
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
379
368
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
380
369
|
type: z.ZodLiteral<"VERIFICATION">;
|
|
@@ -424,6 +413,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
424
413
|
id: z.ZodString;
|
|
425
414
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
426
415
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
416
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
427
417
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
428
418
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
429
419
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
@@ -431,6 +421,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
431
421
|
id: z.ZodString;
|
|
432
422
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
433
423
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
424
|
+
showClearButton: z.ZodOptional<z.ZodBoolean>;
|
|
434
425
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
435
426
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
436
427
|
type: z.ZodLiteral<"VERIFICATION">;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
import { FieldValue, FieldUpdateValue } from './FieldValue';
|
|
3
|
+
export { ActionStatus } from './ActionStatus';
|
|
3
4
|
/**
|
|
4
5
|
* ActionUpdate is a record of a specific action that updated data fields.
|
|
5
6
|
*/
|
|
@@ -10,12 +11,6 @@ export type ActionUpdate = z.infer<typeof ActionUpdate>;
|
|
|
10
11
|
*/
|
|
11
12
|
export declare const EventState: z.ZodRecord<z.ZodString, z.ZodType<FieldValue, unknown, z.core.$ZodTypeInternals<FieldValue, unknown>>>;
|
|
12
13
|
export type EventState = z.infer<typeof EventState>;
|
|
13
|
-
export declare const ActionStatus: {
|
|
14
|
-
readonly Requested: 'Requested';
|
|
15
|
-
readonly Accepted: 'Accepted';
|
|
16
|
-
readonly Rejected: 'Rejected';
|
|
17
|
-
};
|
|
18
|
-
export type ActionStatus = keyof typeof ActionStatus;
|
|
19
14
|
export declare const ActionBase: z.ZodObject<{
|
|
20
15
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
21
16
|
transactionId: z.ZodString;
|
|
@@ -223,6 +218,32 @@ declare const RequestedCorrectionAction: z.ZodObject<{
|
|
|
223
218
|
type: z.ZodLiteral<"REQUEST_CORRECTION">;
|
|
224
219
|
}, z.core.$strip>;
|
|
225
220
|
export type RequestedCorrectionAction = z.infer<typeof RequestedCorrectionAction>;
|
|
221
|
+
export declare const RejectedCorrectionAction: z.ZodObject<{
|
|
222
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
223
|
+
transactionId: z.ZodString;
|
|
224
|
+
createdByUserType: z.ZodEnum<{
|
|
225
|
+
system: "system";
|
|
226
|
+
user: "user";
|
|
227
|
+
}>;
|
|
228
|
+
createdAt: z.ZodString;
|
|
229
|
+
createdBy: z.ZodString;
|
|
230
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
231
|
+
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
232
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
233
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>;
|
|
234
|
+
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<FieldUpdateValue, unknown, z.core.$ZodTypeInternals<FieldUpdateValue, unknown>>>>>;
|
|
235
|
+
status: z.ZodEnum<{
|
|
236
|
+
Accepted: "Accepted";
|
|
237
|
+
Rejected: "Rejected";
|
|
238
|
+
Requested: "Requested";
|
|
239
|
+
}>;
|
|
240
|
+
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
241
|
+
type: z.ZodLiteral<"REJECT_CORRECTION">;
|
|
242
|
+
requestId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
243
|
+
content: z.ZodObject<{
|
|
244
|
+
reason: z.ZodString;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
}, z.core.$strip>;
|
|
226
247
|
declare const CustomAction: z.ZodObject<{
|
|
227
248
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
228
249
|
transactionId: z.ZodString;
|
|
@@ -385,9 +406,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
385
406
|
}>;
|
|
386
407
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
387
408
|
type: z.ZodLiteral<"ARCHIVE">;
|
|
388
|
-
content: z.ZodObject<{
|
|
409
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
389
410
|
reason: z.ZodString;
|
|
390
|
-
}, z.core.$strip
|
|
411
|
+
}, z.core.$strip>>;
|
|
391
412
|
}, z.core.$strip>, z.ZodObject<{
|
|
392
413
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
393
414
|
transactionId: z.ZodString;
|
|
@@ -537,7 +558,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
537
558
|
}>;
|
|
538
559
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
539
560
|
type: z.ZodLiteral<"APPROVE_CORRECTION">;
|
|
540
|
-
requestId: z.
|
|
561
|
+
requestId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
541
562
|
content: z.ZodOptional<z.ZodObject<{
|
|
542
563
|
immediateCorrection: z.ZodOptional<z.ZodBoolean>;
|
|
543
564
|
}, z.core.$strip>>;
|
|
@@ -562,7 +583,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
562
583
|
}>;
|
|
563
584
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
564
585
|
type: z.ZodLiteral<"REJECT_CORRECTION">;
|
|
565
|
-
requestId: z.
|
|
586
|
+
requestId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
566
587
|
content: z.ZodObject<{
|
|
567
588
|
reason: z.ZodString;
|
|
568
589
|
}, z.core.$strip>;
|
|
@@ -848,9 +869,9 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
848
869
|
}>;
|
|
849
870
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
850
871
|
type: z.ZodLiteral<"ARCHIVE">;
|
|
851
|
-
content: z.ZodObject<{
|
|
872
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
852
873
|
reason: z.ZodString;
|
|
853
|
-
}, z.core.$strip
|
|
874
|
+
}, z.core.$strip>>;
|
|
854
875
|
}, z.core.$strip>, z.ZodObject<{
|
|
855
876
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
856
877
|
transactionId: z.ZodString;
|
|
@@ -1000,7 +1021,7 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1000
1021
|
}>;
|
|
1001
1022
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
1002
1023
|
type: z.ZodLiteral<"APPROVE_CORRECTION">;
|
|
1003
|
-
requestId: z.
|
|
1024
|
+
requestId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
1004
1025
|
content: z.ZodOptional<z.ZodObject<{
|
|
1005
1026
|
immediateCorrection: z.ZodOptional<z.ZodBoolean>;
|
|
1006
1027
|
}, z.core.$strip>>;
|
|
@@ -1025,7 +1046,7 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1025
1046
|
}>;
|
|
1026
1047
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
1027
1048
|
type: z.ZodLiteral<"REJECT_CORRECTION">;
|
|
1028
|
-
requestId: z.
|
|
1049
|
+
requestId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
1029
1050
|
content: z.ZodObject<{
|
|
1030
1051
|
reason: z.ZodString;
|
|
1031
1052
|
}, z.core.$strip>;
|
|
@@ -1173,5 +1194,4 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1173
1194
|
export type Action = z.infer<typeof Action>;
|
|
1174
1195
|
export type CreatedAction = z.infer<typeof CreatedAction>;
|
|
1175
1196
|
export type AssignedAction = z.infer<typeof AssignedAction>;
|
|
1176
|
-
export {};
|
|
1177
1197
|
//# sourceMappingURL=ActionDocument.d.ts.map
|
|
@@ -163,9 +163,9 @@ export declare const ArchiveActionInput: z.ZodObject<{
|
|
|
163
163
|
waitFor: z.ZodDefault<z.ZodBoolean>;
|
|
164
164
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
165
165
|
type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
|
|
166
|
-
content: z.ZodObject<{
|
|
166
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
167
167
|
reason: z.ZodString;
|
|
168
|
-
}, z.core.$strip
|
|
168
|
+
}, z.core.$strip>>;
|
|
169
169
|
}, z.core.$strip>;
|
|
170
170
|
export type ArchiveActionInput = z.infer<typeof ArchiveActionInput>;
|
|
171
171
|
export declare const UnarchiveActionInput: z.ZodObject<{
|
|
@@ -424,9 +424,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
424
424
|
waitFor: z.ZodDefault<z.ZodBoolean>;
|
|
425
425
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
426
426
|
type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
|
|
427
|
-
content: z.ZodObject<{
|
|
427
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
428
428
|
reason: z.ZodString;
|
|
429
|
-
}, z.core.$strip
|
|
429
|
+
}, z.core.$strip>>;
|
|
430
430
|
}, z.core.$strip>, z.ZodObject<{
|
|
431
431
|
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
432
432
|
transactionId: z.ZodString;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deliberately dependency-free (aside from language builtins) so that files
|
|
3
|
+
* like Flag.ts can depend on ActionStatus without being pulled into the
|
|
4
|
+
* commons/scopes.ts <-> commons/authentication.ts import cycle that
|
|
5
|
+
* ActionDocument.ts participates in (it imports TokenUserType from
|
|
6
|
+
* '../authentication').
|
|
7
|
+
*/
|
|
8
|
+
export declare const ActionStatus: {
|
|
9
|
+
readonly Requested: 'Requested';
|
|
10
|
+
readonly Accepted: 'Accepted';
|
|
11
|
+
readonly Rejected: 'Rejected';
|
|
12
|
+
};
|
|
13
|
+
export type ActionStatus = keyof typeof ActionStatus;
|
|
14
|
+
//# sourceMappingURL=ActionStatus.d.ts.map
|
|
@@ -102,6 +102,7 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
102
102
|
bypassratelimit: "bypassratelimit";
|
|
103
103
|
"config.update-all": "config.update-all";
|
|
104
104
|
"dashboard.view": "dashboard.view";
|
|
105
|
+
"integration.audit.read": "integration.audit.read";
|
|
105
106
|
"integration.create": "integration.create";
|
|
106
107
|
"location.edit": "location.edit";
|
|
107
108
|
"organisation.read-locations": "organisation.read-locations";
|
|
@@ -109,8 +110,9 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
109
110
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
110
111
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
111
112
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
113
|
+
"record.action.accept": "record.action.accept";
|
|
114
|
+
"record.action.reject": "record.action.reject";
|
|
112
115
|
"record.archive": "record.archive";
|
|
113
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
114
116
|
"record.correct": "record.correct";
|
|
115
117
|
"record.create": "record.create";
|
|
116
118
|
"record.custom-action": "record.custom-action";
|
|
@@ -123,7 +125,6 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
123
125
|
"record.register": "record.register";
|
|
124
126
|
"record.reindex": "record.reindex";
|
|
125
127
|
"record.reject": "record.reject";
|
|
126
|
-
"record.reject-registration": "record.reject-registration";
|
|
127
128
|
"record.request-correction": "record.request-correction";
|
|
128
129
|
"record.review-duplicates": "record.review-duplicates";
|
|
129
130
|
"record.search": "record.search";
|
|
@@ -139,9 +140,12 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
139
140
|
}>;
|
|
140
141
|
$option: z.ZodEnum<{
|
|
141
142
|
accessLevel: "accessLevel";
|
|
143
|
+
createdBy: "createdBy";
|
|
144
|
+
createdIn: "createdIn";
|
|
142
145
|
declaredBy: "declaredBy";
|
|
143
146
|
declaredIn: "declaredIn";
|
|
144
147
|
event: "event";
|
|
148
|
+
flags: "flags";
|
|
145
149
|
ids: "ids";
|
|
146
150
|
notifiedBy: "notifiedBy";
|
|
147
151
|
notifiedIn: "notifiedIn";
|
|
@@ -149,6 +153,7 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
149
153
|
registeredBy: "registeredBy";
|
|
150
154
|
registeredIn: "registeredIn";
|
|
151
155
|
role: "role";
|
|
156
|
+
status: "status";
|
|
152
157
|
}>;
|
|
153
158
|
}, z.core.$strip>]>;
|
|
154
159
|
}, z.core.$strip>>;
|
|
@@ -283,6 +288,7 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
283
288
|
bypassratelimit: "bypassratelimit";
|
|
284
289
|
"config.update-all": "config.update-all";
|
|
285
290
|
"dashboard.view": "dashboard.view";
|
|
291
|
+
"integration.audit.read": "integration.audit.read";
|
|
286
292
|
"integration.create": "integration.create";
|
|
287
293
|
"location.edit": "location.edit";
|
|
288
294
|
"organisation.read-locations": "organisation.read-locations";
|
|
@@ -290,8 +296,9 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
290
296
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
291
297
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
292
298
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
299
|
+
"record.action.accept": "record.action.accept";
|
|
300
|
+
"record.action.reject": "record.action.reject";
|
|
293
301
|
"record.archive": "record.archive";
|
|
294
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
295
302
|
"record.correct": "record.correct";
|
|
296
303
|
"record.create": "record.create";
|
|
297
304
|
"record.custom-action": "record.custom-action";
|
|
@@ -304,7 +311,6 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
304
311
|
"record.register": "record.register";
|
|
305
312
|
"record.reindex": "record.reindex";
|
|
306
313
|
"record.reject": "record.reject";
|
|
307
|
-
"record.reject-registration": "record.reject-registration";
|
|
308
314
|
"record.request-correction": "record.request-correction";
|
|
309
315
|
"record.review-duplicates": "record.review-duplicates";
|
|
310
316
|
"record.search": "record.search";
|
|
@@ -320,9 +326,12 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
320
326
|
}>;
|
|
321
327
|
$option: z.ZodEnum<{
|
|
322
328
|
accessLevel: "accessLevel";
|
|
329
|
+
createdBy: "createdBy";
|
|
330
|
+
createdIn: "createdIn";
|
|
323
331
|
declaredBy: "declaredBy";
|
|
324
332
|
declaredIn: "declaredIn";
|
|
325
333
|
event: "event";
|
|
334
|
+
flags: "flags";
|
|
326
335
|
ids: "ids";
|
|
327
336
|
notifiedBy: "notifiedBy";
|
|
328
337
|
notifiedIn: "notifiedIn";
|
|
@@ -330,6 +339,7 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
330
339
|
registeredBy: "registeredBy";
|
|
331
340
|
registeredIn: "registeredIn";
|
|
332
341
|
role: "role";
|
|
342
|
+
status: "status";
|
|
333
343
|
}>;
|
|
334
344
|
}, z.core.$strip>]>;
|
|
335
345
|
}, z.core.$strip>>;
|
|
@@ -440,6 +450,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
440
450
|
bypassratelimit: "bypassratelimit";
|
|
441
451
|
"config.update-all": "config.update-all";
|
|
442
452
|
"dashboard.view": "dashboard.view";
|
|
453
|
+
"integration.audit.read": "integration.audit.read";
|
|
443
454
|
"integration.create": "integration.create";
|
|
444
455
|
"location.edit": "location.edit";
|
|
445
456
|
"organisation.read-locations": "organisation.read-locations";
|
|
@@ -447,8 +458,9 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
447
458
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
448
459
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
449
460
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
461
|
+
"record.action.accept": "record.action.accept";
|
|
462
|
+
"record.action.reject": "record.action.reject";
|
|
450
463
|
"record.archive": "record.archive";
|
|
451
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
452
464
|
"record.correct": "record.correct";
|
|
453
465
|
"record.create": "record.create";
|
|
454
466
|
"record.custom-action": "record.custom-action";
|
|
@@ -461,7 +473,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
461
473
|
"record.register": "record.register";
|
|
462
474
|
"record.reindex": "record.reindex";
|
|
463
475
|
"record.reject": "record.reject";
|
|
464
|
-
"record.reject-registration": "record.reject-registration";
|
|
465
476
|
"record.request-correction": "record.request-correction";
|
|
466
477
|
"record.review-duplicates": "record.review-duplicates";
|
|
467
478
|
"record.search": "record.search";
|
|
@@ -477,9 +488,12 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
477
488
|
}>;
|
|
478
489
|
$option: z.ZodEnum<{
|
|
479
490
|
accessLevel: "accessLevel";
|
|
491
|
+
createdBy: "createdBy";
|
|
492
|
+
createdIn: "createdIn";
|
|
480
493
|
declaredBy: "declaredBy";
|
|
481
494
|
declaredIn: "declaredIn";
|
|
482
495
|
event: "event";
|
|
496
|
+
flags: "flags";
|
|
483
497
|
ids: "ids";
|
|
484
498
|
notifiedBy: "notifiedBy";
|
|
485
499
|
notifiedIn: "notifiedIn";
|
|
@@ -487,6 +501,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
487
501
|
registeredBy: "registeredBy";
|
|
488
502
|
registeredIn: "registeredIn";
|
|
489
503
|
role: "role";
|
|
504
|
+
status: "status";
|
|
490
505
|
}>;
|
|
491
506
|
}, z.core.$strip>]>;
|
|
492
507
|
}, z.core.$strip>>;
|
|
@@ -589,6 +604,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
589
604
|
bypassratelimit: "bypassratelimit";
|
|
590
605
|
"config.update-all": "config.update-all";
|
|
591
606
|
"dashboard.view": "dashboard.view";
|
|
607
|
+
"integration.audit.read": "integration.audit.read";
|
|
592
608
|
"integration.create": "integration.create";
|
|
593
609
|
"location.edit": "location.edit";
|
|
594
610
|
"organisation.read-locations": "organisation.read-locations";
|
|
@@ -596,8 +612,9 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
596
612
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
597
613
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
598
614
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
615
|
+
"record.action.accept": "record.action.accept";
|
|
616
|
+
"record.action.reject": "record.action.reject";
|
|
599
617
|
"record.archive": "record.archive";
|
|
600
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
601
618
|
"record.correct": "record.correct";
|
|
602
619
|
"record.create": "record.create";
|
|
603
620
|
"record.custom-action": "record.custom-action";
|
|
@@ -610,7 +627,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
610
627
|
"record.register": "record.register";
|
|
611
628
|
"record.reindex": "record.reindex";
|
|
612
629
|
"record.reject": "record.reject";
|
|
613
|
-
"record.reject-registration": "record.reject-registration";
|
|
614
630
|
"record.request-correction": "record.request-correction";
|
|
615
631
|
"record.review-duplicates": "record.review-duplicates";
|
|
616
632
|
"record.search": "record.search";
|
|
@@ -626,9 +642,12 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
626
642
|
}>;
|
|
627
643
|
$option: z.ZodEnum<{
|
|
628
644
|
accessLevel: "accessLevel";
|
|
645
|
+
createdBy: "createdBy";
|
|
646
|
+
createdIn: "createdIn";
|
|
629
647
|
declaredBy: "declaredBy";
|
|
630
648
|
declaredIn: "declaredIn";
|
|
631
649
|
event: "event";
|
|
650
|
+
flags: "flags";
|
|
632
651
|
ids: "ids";
|
|
633
652
|
notifiedBy: "notifiedBy";
|
|
634
653
|
notifiedIn: "notifiedIn";
|
|
@@ -636,6 +655,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
636
655
|
registeredBy: "registeredBy";
|
|
637
656
|
registeredIn: "registeredIn";
|
|
638
657
|
role: "role";
|
|
658
|
+
status: "status";
|
|
639
659
|
}>;
|
|
640
660
|
}, z.core.$strip>]>;
|
|
641
661
|
}, z.core.$strip>>;
|
|
@@ -749,6 +769,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
749
769
|
bypassratelimit: "bypassratelimit";
|
|
750
770
|
"config.update-all": "config.update-all";
|
|
751
771
|
"dashboard.view": "dashboard.view";
|
|
772
|
+
"integration.audit.read": "integration.audit.read";
|
|
752
773
|
"integration.create": "integration.create";
|
|
753
774
|
"location.edit": "location.edit";
|
|
754
775
|
"organisation.read-locations": "organisation.read-locations";
|
|
@@ -756,8 +777,9 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
756
777
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
757
778
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
758
779
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
780
|
+
"record.action.accept": "record.action.accept";
|
|
781
|
+
"record.action.reject": "record.action.reject";
|
|
759
782
|
"record.archive": "record.archive";
|
|
760
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
761
783
|
"record.correct": "record.correct";
|
|
762
784
|
"record.create": "record.create";
|
|
763
785
|
"record.custom-action": "record.custom-action";
|
|
@@ -770,7 +792,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
770
792
|
"record.register": "record.register";
|
|
771
793
|
"record.reindex": "record.reindex";
|
|
772
794
|
"record.reject": "record.reject";
|
|
773
|
-
"record.reject-registration": "record.reject-registration";
|
|
774
795
|
"record.request-correction": "record.request-correction";
|
|
775
796
|
"record.review-duplicates": "record.review-duplicates";
|
|
776
797
|
"record.search": "record.search";
|
|
@@ -786,9 +807,12 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
786
807
|
}>;
|
|
787
808
|
$option: z.ZodEnum<{
|
|
788
809
|
accessLevel: "accessLevel";
|
|
810
|
+
createdBy: "createdBy";
|
|
811
|
+
createdIn: "createdIn";
|
|
789
812
|
declaredBy: "declaredBy";
|
|
790
813
|
declaredIn: "declaredIn";
|
|
791
814
|
event: "event";
|
|
815
|
+
flags: "flags";
|
|
792
816
|
ids: "ids";
|
|
793
817
|
notifiedBy: "notifiedBy";
|
|
794
818
|
notifiedIn: "notifiedIn";
|
|
@@ -796,6 +820,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
796
820
|
registeredBy: "registeredBy";
|
|
797
821
|
registeredIn: "registeredIn";
|
|
798
822
|
role: "role";
|
|
823
|
+
status: "status";
|
|
799
824
|
}>;
|
|
800
825
|
}, z.core.$strip>]>;
|
|
801
826
|
}, z.core.$strip>>;
|
|
@@ -898,6 +923,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
898
923
|
bypassratelimit: "bypassratelimit";
|
|
899
924
|
"config.update-all": "config.update-all";
|
|
900
925
|
"dashboard.view": "dashboard.view";
|
|
926
|
+
"integration.audit.read": "integration.audit.read";
|
|
901
927
|
"integration.create": "integration.create";
|
|
902
928
|
"location.edit": "location.edit";
|
|
903
929
|
"organisation.read-locations": "organisation.read-locations";
|
|
@@ -905,8 +931,9 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
905
931
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
906
932
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
907
933
|
"profile.electronic-signature": "profile.electronic-signature";
|
|
934
|
+
"record.action.accept": "record.action.accept";
|
|
935
|
+
"record.action.reject": "record.action.reject";
|
|
908
936
|
"record.archive": "record.archive";
|
|
909
|
-
"record.confirm-registration": "record.confirm-registration";
|
|
910
937
|
"record.correct": "record.correct";
|
|
911
938
|
"record.create": "record.create";
|
|
912
939
|
"record.custom-action": "record.custom-action";
|
|
@@ -919,7 +946,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
919
946
|
"record.register": "record.register";
|
|
920
947
|
"record.reindex": "record.reindex";
|
|
921
948
|
"record.reject": "record.reject";
|
|
922
|
-
"record.reject-registration": "record.reject-registration";
|
|
923
949
|
"record.request-correction": "record.request-correction";
|
|
924
950
|
"record.review-duplicates": "record.review-duplicates";
|
|
925
951
|
"record.search": "record.search";
|
|
@@ -935,9 +961,12 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
935
961
|
}>;
|
|
936
962
|
$option: z.ZodEnum<{
|
|
937
963
|
accessLevel: "accessLevel";
|
|
964
|
+
createdBy: "createdBy";
|
|
965
|
+
createdIn: "createdIn";
|
|
938
966
|
declaredBy: "declaredBy";
|
|
939
967
|
declaredIn: "declaredIn";
|
|
940
968
|
event: "event";
|
|
969
|
+
flags: "flags";
|
|
941
970
|
ids: "ids";
|
|
942
971
|
notifiedBy: "notifiedBy";
|
|
943
972
|
notifiedIn: "notifiedIn";
|
|
@@ -945,6 +974,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
945
974
|
registeredBy: "registeredBy";
|
|
946
975
|
registeredIn: "registeredIn";
|
|
947
976
|
role: "role";
|
|
977
|
+
status: "status";
|
|
948
978
|
}>;
|
|
949
979
|
}, z.core.$strip>]>;
|
|
950
980
|
}, z.core.$strip>>;
|