@opencrvs/toolkit 2.1.2 → 2.2.0-rc.1a111f2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build.sh +2 -12
- package/create-countryconfig/package.json +1 -1
- package/dist/application-config/index.js +41 -9
- package/dist/authentication/index.d.ts +1 -0
- package/dist/authentication/index.js +30 -6
- package/dist/cli.js +1489 -2020
- package/dist/commons/api/router.d.ts +1551 -248
- package/dist/commons/application-config/index.d.ts +2 -2
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/conditionals/index.d.ts +1 -0
- package/dist/commons/conditionals/validate.d.ts +5 -0
- package/dist/commons/events/ActionConfig.d.ts +146 -20
- package/dist/commons/events/ActionDocument.d.ts +89 -0
- package/dist/commons/events/ActionInput.d.ts +56 -4
- package/dist/commons/events/ActionType.d.ts +13 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +15 -0
- package/dist/commons/events/AuditLog.d.ts +4 -0
- package/dist/commons/events/CompositeFieldValue.d.ts +5 -1
- package/dist/commons/events/CountryConfigQueryInput.d.ts +192 -18
- package/dist/commons/events/Draft.d.ts +36 -1
- package/dist/commons/events/EventConfig.d.ts +412 -6
- package/dist/commons/events/EventDocument.d.ts +88 -0
- package/dist/commons/events/EventIndex.d.ts +43 -6
- package/dist/commons/events/EventMetadata.d.ts +23 -1
- package/dist/commons/events/EventStatus.d.ts +1 -0
- package/dist/commons/events/FieldConfig.d.ts +11 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +6 -6
- package/dist/commons/events/Flag.d.ts +1 -7
- package/dist/commons/events/PlainDate.d.ts +1 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +224 -33
- package/dist/commons/events/defineConfig.d.ts +7 -2
- package/dist/commons/events/event.d.ts +4 -1
- package/dist/commons/events/eventConfigValidation.d.ts +26 -1
- package/dist/commons/events/field.d.ts +5 -0
- package/dist/commons/events/index.d.ts +3 -0
- package/dist/commons/events/scopes.d.ts +3 -0
- package/dist/commons/events/state/flags.d.ts +1 -1
- package/dist/commons/events/state/index.d.ts +10 -2
- package/dist/commons/events/state/utils.d.ts +11 -1
- package/dist/commons/events/test.utils.d.ts +87 -6
- package/dist/commons/events/toNotificationForm.d.ts +17 -0
- package/dist/commons/events/utils.d.ts +75 -8
- package/dist/conditionals/index.js +16 -4
- package/dist/environment/custom-types.d.ts +1 -0
- package/dist/environment/custom-types.d.ts.map +1 -1
- package/dist/environment/derived-variables.d.ts +24 -4
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/derived-variables.js +27 -4
- package/dist/environment/questions.d.ts +42 -9
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/questions.js +71 -48
- package/dist/environment/registry.d.ts +15 -0
- package/dist/environment/registry.d.ts.map +1 -0
- package/dist/environment/registry.js +112 -0
- package/dist/environment/setup-environment.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +159 -35
- package/dist/environment/templates.d.ts.map +1 -1
- package/dist/events/index.js +944 -214
- package/dist/migrations/add-notify-config.d.ts +40 -0
- package/dist/migrations/add-notify-config.d.ts.map +1 -0
- package/dist/migrations/add-notify-config.js +249 -0
- package/dist/migrations/index.d.ts +9 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/migrations/index.js +1306 -0
- package/dist/migrations/move-declaration-to-declare-action.d.ts +38 -0
- package/dist/migrations/move-declaration-to-declare-action.d.ts.map +1 -0
- package/dist/migrations/move-declaration-to-declare-action.js +260 -0
- package/dist/migrations/{v2.1 → persistent}/add-translations.d.ts +7 -1
- package/dist/migrations/persistent/add-translations.d.ts.map +1 -0
- package/dist/migrations/{v2.1 → persistent}/add-translations.js +14 -12
- package/dist/migrations/persistent/check-upgrade-path.d.ts +36 -0
- package/dist/migrations/persistent/check-upgrade-path.d.ts.map +1 -0
- package/dist/migrations/persistent/check-upgrade-path.js +105 -0
- package/dist/migrations/persistent/update-toolkit-dependency.d.ts +7 -0
- package/dist/migrations/persistent/update-toolkit-dependency.d.ts.map +1 -0
- package/dist/migrations/persistent/update-toolkit-dependency.js +77 -0
- package/dist/migrations/read-declaration-through-helper.d.ts +39 -0
- package/dist/migrations/read-declaration-through-helper.d.ts.map +1 -0
- package/dist/migrations/read-declaration-through-helper.js +199 -0
- package/dist/migrations/replace-incomplete-flag.d.ts +26 -0
- package/dist/migrations/replace-incomplete-flag.d.ts.map +1 -0
- package/dist/migrations/replace-incomplete-flag.js +126 -0
- package/dist/migrations/resolve-versioned-event-config.d.ts +56 -0
- package/dist/migrations/resolve-versioned-event-config.d.ts.map +1 -0
- package/dist/migrations/resolve-versioned-event-config.js +353 -0
- package/dist/migrations/utils.d.ts +61 -0
- package/dist/migrations/utils.d.ts.map +1 -0
- package/dist/migrations/utils.js +218 -0
- package/dist/notification/index.js +887 -129
- package/dist/scopes/index.d.ts +83 -90
- package/dist/scopes/index.js +26 -6
- package/dist/templates/charts-values/dependencies/values.yaml +3 -2
- package/dist/templates/charts-values/opencrvs-services/values.yaml +5 -7
- package/dist/templates/charts-values/traefik/values.yaml +4 -3
- package/dist/verify/endpoints.d.ts +11 -0
- package/dist/verify/endpoints.d.ts.map +1 -1
- package/dist/verify/endpoints.js +21 -27
- package/opencrvs-toolkit-2.2.0-rc.1a111f2.tgz +0 -0
- package/package.json +3 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts +0 -3
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts.map +0 -1
- package/dist/migrations/v2.1/add-explicit-correction-flags.js +0 -234
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +0 -3
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +0 -1
- package/dist/migrations/v2.1/add-recovery-link-notifications.js +0 -511
- package/dist/migrations/v2.1/add-translations.d.ts.map +0 -1
- package/dist/migrations/v2.1/enable-telemetry.d.ts +0 -3
- package/dist/migrations/v2.1/enable-telemetry.d.ts.map +0 -1
- package/dist/migrations/v2.1/enable-telemetry.js +0 -455
- package/dist/migrations/v2.1/index.d.ts +0 -6
- package/dist/migrations/v2.1/index.d.ts.map +0 -1
- package/dist/migrations/v2.1/index.js +0 -2170
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +0 -14
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts.map +0 -1
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.js +0 -348
- package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts +0 -2
- package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts.map +0 -1
- package/dist/migrations/v2.1/remove-metabase-package-installs.js +0 -161
- package/dist/migrations/v2.1/remove-sentry.d.ts +0 -3
- package/dist/migrations/v2.1/remove-sentry.d.ts.map +0 -1
- package/dist/migrations/v2.1/remove-sentry.js +0 -354
- package/dist/migrations/v2.1/rename-trigger-paths.d.ts +0 -3
- package/dist/migrations/v2.1/rename-trigger-paths.d.ts.map +0 -1
- package/dist/migrations/v2.1/rename-trigger-paths.js +0 -216
- package/dist/migrations/v2.1/template-files.d.ts +0 -8
- package/dist/migrations/v2.1/template-files.d.ts.map +0 -1
- package/dist/migrations/v2.1/template-files.js +0 -49
- package/dist/migrations/v2.1/upgrade-tilt.d.ts +0 -8
- package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +0 -1
- package/dist/migrations/v2.1/upgrade-tilt.js +0 -139
- package/dist/templates/countryconfig-template/.tiltignore +0 -1
- package/dist/templates/countryconfig-template/Dockerfile.assets +0 -7
- package/dist/templates/countryconfig-template/Tiltfile +0 -112
- package/dist/templates/countryconfig-template/assets/README.md +0 -1
- package/dist/templates/countryconfig-template/assets/clear-all-data-dev.sh +0 -61
- package/dist/templates/countryconfig-template/assets/deployment/deploy.sh +0 -455
- package/dist/templates/countryconfig-template/assets/deployment/reindex.sh +0 -168
- package/dist/templates/countryconfig-template/assets/deployment/validate-required-variables-in-compose-files.ts +0 -67
- package/dist/templates/countryconfig-template/assets/elasticsearch/reindex.sh +0 -168
- package/dist/templates/countryconfig-template/assets/metabase/README.md +0 -34
- package/dist/templates/countryconfig-template/assets/metabase/environment-configuration.sql +0 -36
- package/dist/templates/countryconfig-template/assets/metabase/initialize-database.sh +0 -46
- package/dist/templates/countryconfig-template/assets/metabase/metabase.init.db.sql +0 -27737
- package/dist/templates/countryconfig-template/assets/metabase/open-shell.sh +0 -21
- package/dist/templates/countryconfig-template/assets/metabase/package.json +0 -13
- package/dist/templates/countryconfig-template/assets/metabase/run-dev.sh +0 -108
- package/dist/templates/countryconfig-template/assets/metabase/run.sh +0 -120
- package/dist/templates/countryconfig-template/assets/metabase/update-database.sh +0 -40
- package/dist/templates/countryconfig-template/assets/postgres/setup-analytics.sh +0 -135
- package/dist/templates/countryconfig-template/assets/postgres/setup-reference-data.sh +0 -108
- package/dist/templates/countryconfig-template/tilt/clear-all-data.ps1 +0 -50
- package/dist/templates/countryconfig-template/tilt/clear-all-data.sh +0 -35
- package/dist/templates/countryconfig-template/tilt/common.tilt +0 -145
- package/dist/templates/countryconfig-template/tilt/examples/dependencies/values.yaml +0 -15
- package/dist/templates/countryconfig-template/tilt/examples/opencrvs-services/values.yaml +0 -56
- package/dist/templates/countryconfig-template/tilt/examples/traefik/values-minikube.yaml +0 -21
- package/dist/templates/countryconfig-template/tilt/examples/traefik/values.yaml +0 -38
- package/dist/templates/countryconfig-template/tilt/helm/dependencies/values.yaml +0 -17
- package/dist/templates/countryconfig-template/tilt/helm/opencrvs-services/values.yaml +0 -16
- package/dist/templates/countryconfig-template/tilt/lib.tilt +0 -95
- package/dist/templates/countryconfig-template/tilt/opencrvs.tilt +0 -136
- package/opencrvs-toolkit-2.1.2.tgz +0 -0
|
@@ -9,6 +9,7 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
9
9
|
DECLARED: "DECLARED";
|
|
10
10
|
NOTIFIED: "NOTIFIED";
|
|
11
11
|
REGISTERED: "REGISTERED";
|
|
12
|
+
REVOKED: "REVOKED";
|
|
12
13
|
}>;
|
|
13
14
|
legalStatuses: z.ZodObject<{
|
|
14
15
|
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -45,6 +46,17 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
45
46
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
46
47
|
registrationNumber: z.ZodString;
|
|
47
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>>>;
|
|
48
60
|
}, z.core.$strip>;
|
|
49
61
|
createdAt: z.ZodISODateTime;
|
|
50
62
|
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
@@ -66,7 +78,6 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
66
78
|
trackingId: z.ZodString;
|
|
67
79
|
}, z.core.$strip>>;
|
|
68
80
|
flags: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
69
|
-
readonly INCOMPLETE: 'incomplete';
|
|
70
81
|
readonly REJECTED: 'rejected';
|
|
71
82
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
72
83
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -96,6 +107,7 @@ export declare const ExactStatus: z.ZodObject<{
|
|
|
96
107
|
DECLARED: "DECLARED";
|
|
97
108
|
NOTIFIED: "NOTIFIED";
|
|
98
109
|
REGISTERED: "REGISTERED";
|
|
110
|
+
REVOKED: "REVOKED";
|
|
99
111
|
}>;
|
|
100
112
|
}, z.core.$strip>;
|
|
101
113
|
export declare const ExactUserType: z.ZodObject<{
|
|
@@ -117,6 +129,18 @@ export declare const AnyOfStatus: z.ZodObject<{
|
|
|
117
129
|
DECLARED: "DECLARED";
|
|
118
130
|
NOTIFIED: "NOTIFIED";
|
|
119
131
|
REGISTERED: "REGISTERED";
|
|
132
|
+
REVOKED: "REVOKED";
|
|
133
|
+
}>>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
export declare const NoneOfStatus: z.ZodObject<{
|
|
136
|
+
type: z.ZodLiteral<"noneOf">;
|
|
137
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
138
|
+
ARCHIVED: "ARCHIVED";
|
|
139
|
+
CREATED: "CREATED";
|
|
140
|
+
DECLARED: "DECLARED";
|
|
141
|
+
NOTIFIED: "NOTIFIED";
|
|
142
|
+
REGISTERED: "REGISTERED";
|
|
143
|
+
REVOKED: "REVOKED";
|
|
120
144
|
}>>;
|
|
121
145
|
}, z.core.$strip>;
|
|
122
146
|
export declare const Range: z.ZodObject<{
|
|
@@ -167,6 +191,17 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
167
191
|
DECLARED: "DECLARED";
|
|
168
192
|
NOTIFIED: "NOTIFIED";
|
|
169
193
|
REGISTERED: "REGISTERED";
|
|
194
|
+
REVOKED: "REVOKED";
|
|
195
|
+
}>>;
|
|
196
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
197
|
+
type: z.ZodLiteral<"noneOf">;
|
|
198
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
199
|
+
ARCHIVED: "ARCHIVED";
|
|
200
|
+
CREATED: "CREATED";
|
|
201
|
+
DECLARED: "DECLARED";
|
|
202
|
+
NOTIFIED: "NOTIFIED";
|
|
203
|
+
REGISTERED: "REGISTERED";
|
|
204
|
+
REVOKED: "REVOKED";
|
|
170
205
|
}>>;
|
|
171
206
|
}, z.core.$strip>, z.ZodObject<{
|
|
172
207
|
type: z.ZodLiteral<"exact">;
|
|
@@ -176,6 +211,7 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
176
211
|
DECLARED: "DECLARED";
|
|
177
212
|
NOTIFIED: "NOTIFIED";
|
|
178
213
|
REGISTERED: "REGISTERED";
|
|
214
|
+
REVOKED: "REVOKED";
|
|
179
215
|
}>;
|
|
180
216
|
}, z.core.$strip>]>>>;
|
|
181
217
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -246,6 +282,10 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
246
282
|
type: z.ZodLiteral<"exact">;
|
|
247
283
|
term: z.ZodString;
|
|
248
284
|
}, z.core.$strip>>>;
|
|
285
|
+
'legalStatuses.REVOKED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
286
|
+
type: z.ZodLiteral<"within">;
|
|
287
|
+
location: z.ZodString;
|
|
288
|
+
}, z.core.$strip>>>>;
|
|
249
289
|
createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
250
290
|
type: z.ZodLiteral<"within">;
|
|
251
291
|
location: z.ZodString;
|
|
@@ -289,21 +329,18 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
289
329
|
}, z.core.$strip>>>;
|
|
290
330
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
291
331
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
292
|
-
readonly INCOMPLETE: 'incomplete';
|
|
293
332
|
readonly REJECTED: 'rejected';
|
|
294
333
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
295
334
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
296
335
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
297
336
|
}>]>, z.ZodString]>>>;
|
|
298
337
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
299
|
-
readonly INCOMPLETE: 'incomplete';
|
|
300
338
|
readonly REJECTED: 'rejected';
|
|
301
339
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
302
340
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
303
341
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
304
342
|
}>]>, z.ZodString]>>>;
|
|
305
343
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
306
|
-
readonly INCOMPLETE: 'incomplete';
|
|
307
344
|
readonly REJECTED: 'rejected';
|
|
308
345
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
309
346
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -318,7 +355,7 @@ export type QueryTypeShape = {
|
|
|
318
355
|
};
|
|
319
356
|
export declare const QueryType: z.ZodType<QueryTypeShape>;
|
|
320
357
|
export declare const SearchQuery: z.ZodObject<{
|
|
321
|
-
query: z.ZodPreprocess<ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown
|
|
358
|
+
query: z.ZodPreprocess<ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>, unknown>;
|
|
322
359
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
323
360
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
324
361
|
sort: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodObject<{
|
|
@@ -327,7 +364,7 @@ export declare const SearchQuery: z.ZodObject<{
|
|
|
327
364
|
asc: "asc";
|
|
328
365
|
desc: "desc";
|
|
329
366
|
}>>;
|
|
330
|
-
}, z.core.$strip
|
|
367
|
+
}, z.core.$strip>>, unknown>>;
|
|
331
368
|
}, z.core.$strip>;
|
|
332
369
|
export type SearchQuery = z.infer<typeof SearchQuery>;
|
|
333
370
|
export type QueryType = z.infer<typeof QueryType>;
|
|
@@ -63,6 +63,17 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
|
63
63
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
64
64
|
registrationNumber: z.ZodString;
|
|
65
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>>>;
|
|
66
77
|
}, z.core.$strip>;
|
|
67
78
|
/**
|
|
68
79
|
* Event metadata exposed to client.
|
|
@@ -78,6 +89,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
78
89
|
DECLARED: "DECLARED";
|
|
79
90
|
NOTIFIED: "NOTIFIED";
|
|
80
91
|
REGISTERED: "REGISTERED";
|
|
92
|
+
REVOKED: "REVOKED";
|
|
81
93
|
}>;
|
|
82
94
|
legalStatuses: z.ZodObject<{
|
|
83
95
|
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -114,6 +126,17 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
114
126
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
115
127
|
registrationNumber: z.ZodString;
|
|
116
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>>>;
|
|
117
140
|
}, z.core.$strip>;
|
|
118
141
|
createdAt: z.ZodISODateTime;
|
|
119
142
|
dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
@@ -135,7 +158,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
135
158
|
trackingId: z.ZodString;
|
|
136
159
|
}, z.core.$strip>>;
|
|
137
160
|
flags: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
138
|
-
readonly INCOMPLETE: 'incomplete';
|
|
139
161
|
readonly REJECTED: 'rejected';
|
|
140
162
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
141
163
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -1904,9 +1904,11 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1904
1904
|
"record.read": "record.read";
|
|
1905
1905
|
"record.register": "record.register";
|
|
1906
1906
|
"record.reindex": "record.reindex";
|
|
1907
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
1907
1908
|
"record.reject": "record.reject";
|
|
1908
1909
|
"record.request-correction": "record.request-correction";
|
|
1909
1910
|
"record.review-duplicates": "record.review-duplicates";
|
|
1911
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
1910
1912
|
"record.search": "record.search";
|
|
1911
1913
|
"record.unarchive": "record.unarchive";
|
|
1912
1914
|
"record.unassign-others": "record.unassign-others";
|
|
@@ -2041,9 +2043,11 @@ declare const LocationInput: z.ZodObject<{
|
|
|
2041
2043
|
"record.read": "record.read";
|
|
2042
2044
|
"record.register": "record.register";
|
|
2043
2045
|
"record.reindex": "record.reindex";
|
|
2046
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
2044
2047
|
"record.reject": "record.reject";
|
|
2045
2048
|
"record.request-correction": "record.request-correction";
|
|
2046
2049
|
"record.review-duplicates": "record.review-duplicates";
|
|
2050
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
2047
2051
|
"record.search": "record.search";
|
|
2048
2052
|
"record.unarchive": "record.unarchive";
|
|
2049
2053
|
"record.unassign-others": "record.unassign-others";
|
|
@@ -2249,9 +2253,11 @@ declare const Facility: z.ZodObject<{
|
|
|
2249
2253
|
"record.read": "record.read";
|
|
2250
2254
|
"record.register": "record.register";
|
|
2251
2255
|
"record.reindex": "record.reindex";
|
|
2256
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
2252
2257
|
"record.reject": "record.reject";
|
|
2253
2258
|
"record.request-correction": "record.request-correction";
|
|
2254
2259
|
"record.review-duplicates": "record.review-duplicates";
|
|
2260
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
2255
2261
|
"record.search": "record.search";
|
|
2256
2262
|
"record.unarchive": "record.unarchive";
|
|
2257
2263
|
"record.unassign-others": "record.unassign-others";
|
|
@@ -2372,9 +2378,11 @@ declare const Office: z.ZodObject<{
|
|
|
2372
2378
|
"record.read": "record.read";
|
|
2373
2379
|
"record.register": "record.register";
|
|
2374
2380
|
"record.reindex": "record.reindex";
|
|
2381
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
2375
2382
|
"record.reject": "record.reject";
|
|
2376
2383
|
"record.request-correction": "record.request-correction";
|
|
2377
2384
|
"record.review-duplicates": "record.review-duplicates";
|
|
2385
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
2378
2386
|
"record.search": "record.search";
|
|
2379
2387
|
"record.unarchive": "record.unarchive";
|
|
2380
2388
|
"record.unassign-others": "record.unassign-others";
|
|
@@ -2581,9 +2589,11 @@ declare const Address: z.ZodObject<{
|
|
|
2581
2589
|
"record.read": "record.read";
|
|
2582
2590
|
"record.register": "record.register";
|
|
2583
2591
|
"record.reindex": "record.reindex";
|
|
2592
|
+
"record.reinstate-registration": "record.reinstate-registration";
|
|
2584
2593
|
"record.reject": "record.reject";
|
|
2585
2594
|
"record.request-correction": "record.request-correction";
|
|
2586
2595
|
"record.review-duplicates": "record.review-duplicates";
|
|
2596
|
+
"record.revoke-registration": "record.revoke-registration";
|
|
2587
2597
|
"record.search": "record.search";
|
|
2588
2598
|
"record.unarchive": "record.unarchive";
|
|
2589
2599
|
"record.unassign-others": "record.unassign-others";
|
|
@@ -3091,7 +3101,7 @@ declare const SearchField: z.ZodObject<{
|
|
|
3091
3101
|
}, z.core.$strip>]>>;
|
|
3092
3102
|
type: z.ZodLiteral<"SEARCH">;
|
|
3093
3103
|
configuration: z.ZodObject<{
|
|
3094
|
-
query: z.ZodPreprocess<z.ZodType<import("./EventIndex").QueryTypeShape, unknown, z.core.$ZodTypeInternals<import("./EventIndex").QueryTypeShape, unknown
|
|
3104
|
+
query: z.ZodPreprocess<z.ZodType<import("./EventIndex").QueryTypeShape, unknown, z.core.$ZodTypeInternals<import("./EventIndex").QueryTypeShape, unknown>>, unknown>;
|
|
3095
3105
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3096
3106
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3097
3107
|
validation: z.ZodObject<{
|
|
@@ -31,6 +31,9 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
31
31
|
}>, z.core.$strip> | z.ZodObject<{
|
|
32
32
|
age: z.ZodNumber;
|
|
33
33
|
asOfDateRef: z.ZodString;
|
|
34
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
35
|
+
label: z.ZodString;
|
|
36
|
+
value: z.ZodString;
|
|
34
37
|
}, z.core.$strip> | z.ZodObject<{
|
|
35
38
|
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
36
39
|
originalFilename: z.ZodString;
|
|
@@ -43,9 +46,6 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
43
46
|
}, z.core.$strip> | z.ZodObject<{
|
|
44
47
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
45
48
|
unit: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, z.core.$strip> | z.ZodObject<{
|
|
47
|
-
label: z.ZodString;
|
|
48
|
-
value: z.ZodString;
|
|
49
49
|
}, z.core.$strip> | z.ZodObject<{
|
|
50
50
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
51
51
|
}, z.core.$strip> | z.ZodObject<{
|
|
@@ -67,6 +67,9 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
67
67
|
}>, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
68
68
|
age: z.ZodNumber;
|
|
69
69
|
asOfDateRef: z.ZodString;
|
|
70
|
+
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
71
|
+
label: z.ZodString;
|
|
72
|
+
value: z.ZodString;
|
|
70
73
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
71
74
|
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
72
75
|
originalFilename: z.ZodString;
|
|
@@ -79,9 +82,6 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
79
82
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
80
83
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
81
84
|
unit: z.ZodOptional<z.ZodString>;
|
|
82
|
-
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
83
|
-
label: z.ZodString;
|
|
84
|
-
value: z.ZodString;
|
|
85
85
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
86
86
|
data: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
87
87
|
country: z.ZodString;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as z from 'zod
|
|
1
|
+
import * as z from 'zod';
|
|
2
2
|
export declare const InherentFlags: {
|
|
3
|
-
readonly INCOMPLETE: 'incomplete';
|
|
4
3
|
readonly REJECTED: 'rejected';
|
|
5
4
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
6
5
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -19,7 +18,6 @@ export type ActionFlag = z.infer<typeof ActionFlag>;
|
|
|
19
18
|
export declare const CustomFlag: z.ZodString;
|
|
20
19
|
export type CustomFlag = z.infer<typeof CustomFlag>;
|
|
21
20
|
export declare const Flag: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
22
|
-
readonly INCOMPLETE: 'incomplete';
|
|
23
21
|
readonly REJECTED: 'rejected';
|
|
24
22
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
25
23
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -34,7 +32,6 @@ export declare const Flag: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
|
34
32
|
export type Flag = z.infer<typeof Flag>;
|
|
35
33
|
export declare const ContainsFlags: z.ZodObject<{
|
|
36
34
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
37
|
-
readonly INCOMPLETE: 'incomplete';
|
|
38
35
|
readonly REJECTED: 'rejected';
|
|
39
36
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
40
37
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -47,7 +44,6 @@ export declare const ContainsFlags: z.ZodObject<{
|
|
|
47
44
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
48
45
|
}>]>, z.ZodString]>>>;
|
|
49
46
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
50
|
-
readonly INCOMPLETE: 'incomplete';
|
|
51
47
|
readonly REJECTED: 'rejected';
|
|
52
48
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
53
49
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -60,7 +56,6 @@ export declare const ContainsFlags: z.ZodObject<{
|
|
|
60
56
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
61
57
|
}>]>, z.ZodString]>>>;
|
|
62
58
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
63
|
-
readonly INCOMPLETE: 'incomplete';
|
|
64
59
|
readonly REJECTED: 'rejected';
|
|
65
60
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
66
61
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -88,7 +83,6 @@ export type FlagConfig = z.infer<typeof FlagConfig>;
|
|
|
88
83
|
*/
|
|
89
84
|
export declare const ActionFlagConfig: z.ZodObject<{
|
|
90
85
|
id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
91
|
-
readonly INCOMPLETE: 'incomplete';
|
|
92
86
|
readonly REJECTED: 'rejected';
|
|
93
87
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
94
88
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -9,6 +9,7 @@ import { z } from 'zod';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const PlainDate: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
11
11
|
export type PlainDate = z.infer<typeof PlainDate>;
|
|
12
|
+
export declare const isPlainDate: (date: unknown) => date is PlainDate;
|
|
12
13
|
/**
|
|
13
14
|
* Extracts the plain calendar date from an ISO 8601 datetime (or passes an
|
|
14
15
|
* already-plain YYYY-MM-DD through) as a {@link PlainDate}. This is the single
|