@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z, ZodType } from 'zod/v4';
|
|
2
|
+
export { ContainsFlags } from './Flag';
|
|
2
3
|
export declare const EventIndex: z.ZodObject<{
|
|
3
4
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
4
5
|
type: z.ZodString;
|
|
@@ -8,6 +9,7 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
8
9
|
DECLARED: "DECLARED";
|
|
9
10
|
NOTIFIED: "NOTIFIED";
|
|
10
11
|
REGISTERED: "REGISTERED";
|
|
12
|
+
REVOKED: "REVOKED";
|
|
11
13
|
}>;
|
|
12
14
|
legalStatuses: z.ZodObject<{
|
|
13
15
|
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -44,6 +46,17 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
44
46
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
45
47
|
registrationNumber: z.ZodString;
|
|
46
48
|
}, z.core.$strip>>>;
|
|
49
|
+
REVOKED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
50
|
+
createdAt: z.ZodISODateTime;
|
|
51
|
+
createdBy: z.ZodString;
|
|
52
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
53
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
54
|
+
system: "system";
|
|
55
|
+
user: "user";
|
|
56
|
+
}>>>;
|
|
57
|
+
acceptedAt: z.ZodISODateTime;
|
|
58
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, z.core.$strip>>>;
|
|
47
60
|
}, z.core.$strip>;
|
|
48
61
|
createdAt: z.ZodISODateTime;
|
|
49
62
|
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
@@ -95,6 +108,7 @@ export declare const ExactStatus: z.ZodObject<{
|
|
|
95
108
|
DECLARED: "DECLARED";
|
|
96
109
|
NOTIFIED: "NOTIFIED";
|
|
97
110
|
REGISTERED: "REGISTERED";
|
|
111
|
+
REVOKED: "REVOKED";
|
|
98
112
|
}>;
|
|
99
113
|
}, z.core.$strip>;
|
|
100
114
|
export declare const ExactUserType: z.ZodObject<{
|
|
@@ -116,6 +130,7 @@ export declare const AnyOfStatus: z.ZodObject<{
|
|
|
116
130
|
DECLARED: "DECLARED";
|
|
117
131
|
NOTIFIED: "NOTIFIED";
|
|
118
132
|
REGISTERED: "REGISTERED";
|
|
133
|
+
REVOKED: "REVOKED";
|
|
119
134
|
}>>;
|
|
120
135
|
}, z.core.$strip>;
|
|
121
136
|
export declare const Range: z.ZodObject<{
|
|
@@ -123,29 +138,6 @@ export declare const Range: z.ZodObject<{
|
|
|
123
138
|
gte: z.ZodString;
|
|
124
139
|
lte: z.ZodString;
|
|
125
140
|
}, z.core.$strip>;
|
|
126
|
-
export declare const ContainsFlags: z.ZodObject<{
|
|
127
|
-
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
128
|
-
readonly INCOMPLETE: 'incomplete';
|
|
129
|
-
readonly REJECTED: 'rejected';
|
|
130
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
131
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
132
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
133
|
-
}>]>, z.ZodString]>>>;
|
|
134
|
-
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
135
|
-
readonly INCOMPLETE: 'incomplete';
|
|
136
|
-
readonly REJECTED: 'rejected';
|
|
137
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
138
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
139
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
140
|
-
}>]>, z.ZodString]>>>;
|
|
141
|
-
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
142
|
-
readonly INCOMPLETE: 'incomplete';
|
|
143
|
-
readonly REJECTED: 'rejected';
|
|
144
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
145
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
146
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
147
|
-
}>]>, z.ZodString]>>>;
|
|
148
|
-
}, z.core.$strip>;
|
|
149
141
|
export declare const Within: z.ZodObject<{
|
|
150
142
|
type: z.ZodLiteral<"within">;
|
|
151
143
|
location: z.ZodString;
|
|
@@ -189,6 +181,7 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
189
181
|
DECLARED: "DECLARED";
|
|
190
182
|
NOTIFIED: "NOTIFIED";
|
|
191
183
|
REGISTERED: "REGISTERED";
|
|
184
|
+
REVOKED: "REVOKED";
|
|
192
185
|
}>>;
|
|
193
186
|
}, z.core.$strip>, z.ZodObject<{
|
|
194
187
|
type: z.ZodLiteral<"exact">;
|
|
@@ -198,6 +191,7 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
198
191
|
DECLARED: "DECLARED";
|
|
199
192
|
NOTIFIED: "NOTIFIED";
|
|
200
193
|
REGISTERED: "REGISTERED";
|
|
194
|
+
REVOKED: "REVOKED";
|
|
201
195
|
}>;
|
|
202
196
|
}, z.core.$strip>]>>>;
|
|
203
197
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -268,6 +262,10 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
268
262
|
type: z.ZodLiteral<"exact">;
|
|
269
263
|
term: z.ZodString;
|
|
270
264
|
}, z.core.$strip>>>;
|
|
265
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
266
|
+
type: z.ZodLiteral<"within">;
|
|
267
|
+
location: z.ZodString;
|
|
268
|
+
}, z.core.$strip>>>>;
|
|
271
269
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
272
270
|
type: z.ZodLiteral<"within">;
|
|
273
271
|
location: z.ZodString;
|
|
@@ -340,10 +338,10 @@ export type QueryTypeShape = {
|
|
|
340
338
|
};
|
|
341
339
|
export declare const QueryType: z.ZodType<QueryTypeShape>;
|
|
342
340
|
export declare const SearchQuery: z.ZodObject<{
|
|
343
|
-
query: z.
|
|
341
|
+
query: z.ZodPreprocess<ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>>;
|
|
344
342
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
345
343
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
346
|
-
sort: z.ZodOptional<z.
|
|
344
|
+
sort: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodObject<{
|
|
347
345
|
field: z.ZodString;
|
|
348
346
|
direction: z.ZodDefault<z.ZodEnum<{
|
|
349
347
|
asc: "asc";
|
|
@@ -354,5 +352,4 @@ export declare const SearchQuery: z.ZodObject<{
|
|
|
354
352
|
export type SearchQuery = z.infer<typeof SearchQuery>;
|
|
355
353
|
export type QueryType = z.infer<typeof QueryType>;
|
|
356
354
|
export type QueryExpression = z.infer<typeof QueryExpression>;
|
|
357
|
-
export {};
|
|
358
355
|
//# sourceMappingURL=EventIndex.d.ts.map
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
import { TranslationConfig } from './TranslationConfig';
|
|
3
|
-
|
|
4
|
-
* Event statuses recognized by the system
|
|
5
|
-
*/
|
|
6
|
-
export declare const EventStatus: z.ZodEnum<{
|
|
7
|
-
ARCHIVED: "ARCHIVED";
|
|
8
|
-
CREATED: "CREATED";
|
|
9
|
-
DECLARED: "DECLARED";
|
|
10
|
-
NOTIFIED: "NOTIFIED";
|
|
11
|
-
REGISTERED: "REGISTERED";
|
|
12
|
-
}>;
|
|
13
|
-
export type EventStatus = z.infer<typeof EventStatus>;
|
|
3
|
+
export { EventStatus } from './EventStatus';
|
|
14
4
|
export declare const ZodDate: z.ZodISODate;
|
|
15
5
|
export declare const ZodDateTime: z.ZodString;
|
|
16
6
|
export declare const ActionCreationMetadata: z.ZodObject<{
|
|
@@ -73,6 +63,17 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
|
73
63
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
74
64
|
registrationNumber: z.ZodString;
|
|
75
65
|
}, z.core.$strip>>>;
|
|
66
|
+
REVOKED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
67
|
+
createdAt: z.ZodISODateTime;
|
|
68
|
+
createdBy: z.ZodString;
|
|
69
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
70
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
71
|
+
system: "system";
|
|
72
|
+
user: "user";
|
|
73
|
+
}>>>;
|
|
74
|
+
acceptedAt: z.ZodISODateTime;
|
|
75
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>>>;
|
|
76
77
|
}, z.core.$strip>;
|
|
77
78
|
/**
|
|
78
79
|
* Event metadata exposed to client.
|
|
@@ -88,6 +89,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
88
89
|
DECLARED: "DECLARED";
|
|
89
90
|
NOTIFIED: "NOTIFIED";
|
|
90
91
|
REGISTERED: "REGISTERED";
|
|
92
|
+
REVOKED: "REVOKED";
|
|
91
93
|
}>;
|
|
92
94
|
legalStatuses: z.ZodObject<{
|
|
93
95
|
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -124,6 +126,17 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
124
126
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
125
127
|
registrationNumber: z.ZodString;
|
|
126
128
|
}, z.core.$strip>>>;
|
|
129
|
+
REVOKED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
130
|
+
createdAt: z.ZodISODateTime;
|
|
131
|
+
createdBy: z.ZodString;
|
|
132
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
133
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
134
|
+
system: "system";
|
|
135
|
+
user: "user";
|
|
136
|
+
}>>>;
|
|
137
|
+
acceptedAt: z.ZodISODateTime;
|
|
138
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
139
|
+
}, z.core.$strip>>>;
|
|
127
140
|
}, z.core.$strip>;
|
|
128
141
|
createdAt: z.ZodISODateTime;
|
|
129
142
|
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
/**
|
|
3
|
+
* Event statuses recognized by the system
|
|
4
|
+
*
|
|
5
|
+
* Deliberately kept in its own dependency-free module: `EventMetadata.ts`
|
|
6
|
+
* pulls in `ActionDocument.ts`, which imports back from `../authentication`.
|
|
7
|
+
* `../scopes` needs `EventStatus` and is itself imported by
|
|
8
|
+
* `../authentication`, so importing it from `EventMetadata.ts` there would
|
|
9
|
+
* complete that cycle and break module initialization order.
|
|
10
|
+
*/
|
|
11
|
+
export declare const EventStatus: z.ZodEnum<{
|
|
12
|
+
ARCHIVED: "ARCHIVED";
|
|
13
|
+
CREATED: "CREATED";
|
|
14
|
+
DECLARED: "DECLARED";
|
|
15
|
+
NOTIFIED: "NOTIFIED";
|
|
16
|
+
REGISTERED: "REGISTERED";
|
|
17
|
+
REVOKED: "REVOKED";
|
|
18
|
+
}>;
|
|
19
|
+
export type EventStatus = z.infer<typeof EventStatus>;
|
|
20
|
+
//# sourceMappingURL=EventStatus.d.ts.map
|