@opencrvs/toolkit 2.2.0-rc.9042a13 → 2.2.0-rc.9dfc125
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/dist/application-config/index.js +12 -7
- package/dist/authentication/index.d.ts +1 -0
- package/dist/authentication/index.js +16 -5
- package/dist/cli.js +875 -193
- package/dist/commons/api/router.d.ts +252 -246
- package/dist/commons/application-config/index.d.ts +2 -2
- 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 +16 -23
- package/dist/commons/events/ActionDocument.d.ts +1 -0
- package/dist/commons/events/ActionInput.d.ts +4 -4
- package/dist/commons/events/CompositeFieldValue.d.ts +5 -1
- package/dist/commons/events/CountryConfigQueryInput.d.ts +60 -18
- package/dist/commons/events/EventConfig.d.ts +12 -2
- package/dist/commons/events/EventIndex.d.ts +23 -6
- package/dist/commons/events/EventMetadata.d.ts +0 -1
- package/dist/commons/events/FieldConfig.d.ts +1 -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 +74 -27
- package/dist/commons/events/eventConfigValidation.d.ts +9 -0
- package/dist/commons/events/index.d.ts +2 -0
- package/dist/commons/events/notificationFormFallback.d.ts +10 -0
- package/dist/commons/events/state/flags.d.ts +1 -1
- package/dist/commons/events/test.utils.d.ts +3 -0
- package/dist/commons/events/utils.d.ts +85 -56
- package/dist/conditionals/index.js +2 -3
- 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 +12 -4
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/derived-variables.js +13 -4
- package/dist/environment/questions.d.ts +14 -2
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/questions.js +40 -19
- 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 +111 -24
- package/dist/environment/templates.d.ts.map +1 -1
- package/dist/events/index.js +251 -67
- package/dist/migrations/index.d.ts +9 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/migrations/index.js +847 -0
- package/dist/migrations/move-declaration-to-declare-action.d.ts +38 -0
- package/dist/migrations/move-declaration-to-declare-action.d.ts.map +1 -0
- package/dist/migrations/move-declaration-to-declare-action.js +377 -0
- package/dist/migrations/{add-translations.d.ts → persistent/add-translations.d.ts} +1 -1
- package/dist/migrations/persistent/add-translations.d.ts.map +1 -0
- package/dist/migrations/{add-translations.js → persistent/add-translations.js} +2 -2
- 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/{v2.2/read-declaration-through-helper.d.ts → read-declaration-through-helper.d.ts} +1 -1
- package/dist/migrations/read-declaration-through-helper.d.ts.map +1 -0
- package/dist/migrations/{v2.2/read-declaration-through-helper.js → read-declaration-through-helper.js} +1 -1
- package/dist/migrations/replace-incomplete-flag.d.ts +26 -0
- package/dist/migrations/replace-incomplete-flag.d.ts.map +1 -0
- package/dist/migrations/replace-incomplete-flag.js +126 -0
- package/dist/notification/index.js +151 -21
- package/dist/scopes/index.d.ts +54 -84
- package/dist/scopes/index.js +12 -5
- package/dist/templates/charts-values/dependencies/values.yaml +1 -1
- package/dist/templates/charts-values/opencrvs-services/values.yaml +4 -6
- package/dist/templates/charts-values/traefik/values.yaml +2 -0
- package/opencrvs-toolkit-2.2.0-rc.9dfc125.tgz +0 -0
- package/package.json +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/migrations/add-translations.d.ts.map +0 -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/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 -50
- package/dist/migrations/v2.1/migrate-infrastructure-to-assets.d.ts +0 -17
- 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 -11
- package/dist/migrations/v2.1/upgrade-tilt.d.ts.map +0 -1
- package/dist/migrations/v2.1/upgrade-tilt.js +0 -139
- package/dist/migrations/v2.2/index.d.ts +0 -6
- package/dist/migrations/v2.2/index.d.ts.map +0 -1
- package/dist/migrations/v2.2/index.js +0 -456
- package/dist/migrations/v2.2/read-declaration-through-helper.d.ts.map +0 -1
- 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.2.0-rc.9042a13.tgz +0 -0
|
@@ -78,7 +78,6 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
78
78
|
trackingId: z.ZodString;
|
|
79
79
|
}, z.core.$strip>>;
|
|
80
80
|
flags: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
81
|
-
readonly INCOMPLETE: 'incomplete';
|
|
82
81
|
readonly REJECTED: 'rejected';
|
|
83
82
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
84
83
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -133,6 +132,17 @@ export declare const AnyOfStatus: z.ZodObject<{
|
|
|
133
132
|
REVOKED: "REVOKED";
|
|
134
133
|
}>>;
|
|
135
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";
|
|
144
|
+
}>>;
|
|
145
|
+
}, z.core.$strip>;
|
|
136
146
|
export declare const Range: z.ZodObject<{
|
|
137
147
|
type: z.ZodLiteral<"range">;
|
|
138
148
|
gte: z.ZodString;
|
|
@@ -183,6 +193,16 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
183
193
|
REGISTERED: "REGISTERED";
|
|
184
194
|
REVOKED: "REVOKED";
|
|
185
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";
|
|
205
|
+
}>>;
|
|
186
206
|
}, z.core.$strip>, z.ZodObject<{
|
|
187
207
|
type: z.ZodLiteral<"exact">;
|
|
188
208
|
term: z.ZodEnum<{
|
|
@@ -309,21 +329,18 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
309
329
|
}, z.core.$strip>>>;
|
|
310
330
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
311
331
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
312
|
-
readonly INCOMPLETE: 'incomplete';
|
|
313
332
|
readonly REJECTED: 'rejected';
|
|
314
333
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
315
334
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
316
335
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
317
336
|
}>]>, z.ZodString]>>>;
|
|
318
337
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
319
|
-
readonly INCOMPLETE: 'incomplete';
|
|
320
338
|
readonly REJECTED: 'rejected';
|
|
321
339
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
322
340
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
323
341
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
324
342
|
}>]>, z.ZodString]>>>;
|
|
325
343
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
326
|
-
readonly INCOMPLETE: 'incomplete';
|
|
327
344
|
readonly REJECTED: 'rejected';
|
|
328
345
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
329
346
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -338,7 +355,7 @@ export type QueryTypeShape = {
|
|
|
338
355
|
};
|
|
339
356
|
export declare const QueryType: z.ZodType<QueryTypeShape>;
|
|
340
357
|
export declare const SearchQuery: z.ZodObject<{
|
|
341
|
-
query: z.ZodPreprocess<ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown
|
|
358
|
+
query: z.ZodPreprocess<ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>, unknown>;
|
|
342
359
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
343
360
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
344
361
|
sort: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodObject<{
|
|
@@ -347,7 +364,7 @@ export declare const SearchQuery: z.ZodObject<{
|
|
|
347
364
|
asc: "asc";
|
|
348
365
|
desc: "desc";
|
|
349
366
|
}>>;
|
|
350
|
-
}, z.core.$strip
|
|
367
|
+
}, z.core.$strip>>, unknown>>;
|
|
351
368
|
}, z.core.$strip>;
|
|
352
369
|
export type SearchQuery = z.infer<typeof SearchQuery>;
|
|
353
370
|
export type QueryType = z.infer<typeof QueryType>;
|
|
@@ -158,7 +158,6 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
158
158
|
trackingId: z.ZodString;
|
|
159
159
|
}, z.core.$strip>>;
|
|
160
160
|
flags: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
161
|
-
readonly INCOMPLETE: 'incomplete';
|
|
162
161
|
readonly REJECTED: 'rejected';
|
|
163
162
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
164
163
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -3101,7 +3101,7 @@ declare const SearchField: z.ZodObject<{
|
|
|
3101
3101
|
}, z.core.$strip>]>>;
|
|
3102
3102
|
type: z.ZodLiteral<"SEARCH">;
|
|
3103
3103
|
configuration: z.ZodObject<{
|
|
3104
|
-
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>;
|
|
3105
3105
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3106
3106
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3107
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
|
|
@@ -29,6 +29,16 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
29
29
|
REGISTERED: "REGISTERED";
|
|
30
30
|
REVOKED: "REVOKED";
|
|
31
31
|
}>>;
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
+
type: z.ZodLiteral<"noneOf">;
|
|
34
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
35
|
+
ARCHIVED: "ARCHIVED";
|
|
36
|
+
CREATED: "CREATED";
|
|
37
|
+
DECLARED: "DECLARED";
|
|
38
|
+
NOTIFIED: "NOTIFIED";
|
|
39
|
+
REGISTERED: "REGISTERED";
|
|
40
|
+
REVOKED: "REVOKED";
|
|
41
|
+
}>>;
|
|
32
42
|
}, z.core.$strip>, z.ZodObject<{
|
|
33
43
|
type: z.ZodLiteral<"exact">;
|
|
34
44
|
term: z.ZodEnum<{
|
|
@@ -331,21 +341,18 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
331
341
|
}, z.core.$strip>>>;
|
|
332
342
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
333
343
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
334
|
-
readonly INCOMPLETE: 'incomplete';
|
|
335
344
|
readonly REJECTED: 'rejected';
|
|
336
345
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
337
346
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
338
347
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
339
348
|
}>]>, z.ZodString]>>>;
|
|
340
349
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
341
|
-
readonly INCOMPLETE: 'incomplete';
|
|
342
350
|
readonly REJECTED: 'rejected';
|
|
343
351
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
344
352
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
345
353
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
346
354
|
}>]>, z.ZodString]>>>;
|
|
347
355
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
348
|
-
readonly INCOMPLETE: 'incomplete';
|
|
349
356
|
readonly REJECTED: 'rejected';
|
|
350
357
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
351
358
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -368,6 +375,16 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
368
375
|
REGISTERED: "REGISTERED";
|
|
369
376
|
REVOKED: "REVOKED";
|
|
370
377
|
}>>;
|
|
378
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
379
|
+
type: z.ZodLiteral<"noneOf">;
|
|
380
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
381
|
+
ARCHIVED: "ARCHIVED";
|
|
382
|
+
CREATED: "CREATED";
|
|
383
|
+
DECLARED: "DECLARED";
|
|
384
|
+
NOTIFIED: "NOTIFIED";
|
|
385
|
+
REGISTERED: "REGISTERED";
|
|
386
|
+
REVOKED: "REVOKED";
|
|
387
|
+
}>>;
|
|
371
388
|
}, z.core.$strip>, z.ZodObject<{
|
|
372
389
|
type: z.ZodLiteral<"exact">;
|
|
373
390
|
term: z.ZodEnum<{
|
|
@@ -670,21 +687,18 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
670
687
|
}, z.core.$strip>>>;
|
|
671
688
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
672
689
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
673
|
-
readonly INCOMPLETE: 'incomplete';
|
|
674
690
|
readonly REJECTED: 'rejected';
|
|
675
691
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
676
692
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
677
693
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
678
694
|
}>]>, z.ZodString]>>>;
|
|
679
695
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
680
|
-
readonly INCOMPLETE: 'incomplete';
|
|
681
696
|
readonly REJECTED: 'rejected';
|
|
682
697
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
683
698
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
684
699
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
685
700
|
}>]>, z.ZodString]>>>;
|
|
686
701
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
687
|
-
readonly INCOMPLETE: 'incomplete';
|
|
688
702
|
readonly REJECTED: 'rejected';
|
|
689
703
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
690
704
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -1138,6 +1152,16 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1138
1152
|
REGISTERED: "REGISTERED";
|
|
1139
1153
|
REVOKED: "REVOKED";
|
|
1140
1154
|
}>>;
|
|
1155
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1156
|
+
type: z.ZodLiteral<"noneOf">;
|
|
1157
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
1158
|
+
ARCHIVED: "ARCHIVED";
|
|
1159
|
+
CREATED: "CREATED";
|
|
1160
|
+
DECLARED: "DECLARED";
|
|
1161
|
+
NOTIFIED: "NOTIFIED";
|
|
1162
|
+
REGISTERED: "REGISTERED";
|
|
1163
|
+
REVOKED: "REVOKED";
|
|
1164
|
+
}>>;
|
|
1141
1165
|
}, z.core.$strip>, z.ZodObject<{
|
|
1142
1166
|
type: z.ZodLiteral<"exact">;
|
|
1143
1167
|
term: z.ZodEnum<{
|
|
@@ -1440,21 +1464,18 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1440
1464
|
}, z.core.$strip>>>;
|
|
1441
1465
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1442
1466
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1443
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1444
1467
|
readonly REJECTED: 'rejected';
|
|
1445
1468
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1446
1469
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1447
1470
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1448
1471
|
}>]>, z.ZodString]>>>;
|
|
1449
1472
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1450
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1451
1473
|
readonly REJECTED: 'rejected';
|
|
1452
1474
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1453
1475
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1454
1476
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1455
1477
|
}>]>, z.ZodString]>>>;
|
|
1456
1478
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1457
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1458
1479
|
readonly REJECTED: 'rejected';
|
|
1459
1480
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1460
1481
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -1476,6 +1497,16 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1476
1497
|
REGISTERED: "REGISTERED";
|
|
1477
1498
|
REVOKED: "REVOKED";
|
|
1478
1499
|
}>>;
|
|
1500
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1501
|
+
type: z.ZodLiteral<"noneOf">;
|
|
1502
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
1503
|
+
ARCHIVED: "ARCHIVED";
|
|
1504
|
+
CREATED: "CREATED";
|
|
1505
|
+
DECLARED: "DECLARED";
|
|
1506
|
+
NOTIFIED: "NOTIFIED";
|
|
1507
|
+
REGISTERED: "REGISTERED";
|
|
1508
|
+
REVOKED: "REVOKED";
|
|
1509
|
+
}>>;
|
|
1479
1510
|
}, z.core.$strip>, z.ZodObject<{
|
|
1480
1511
|
type: z.ZodLiteral<"exact">;
|
|
1481
1512
|
term: z.ZodEnum<{
|
|
@@ -1778,21 +1809,18 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1778
1809
|
}, z.core.$strip>>>;
|
|
1779
1810
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1780
1811
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1781
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1782
1812
|
readonly REJECTED: 'rejected';
|
|
1783
1813
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1784
1814
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1785
1815
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1786
1816
|
}>]>, z.ZodString]>>>;
|
|
1787
1817
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1788
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1789
1818
|
readonly REJECTED: 'rejected';
|
|
1790
1819
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1791
1820
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
1792
1821
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
1793
1822
|
}>]>, z.ZodString]>>>;
|
|
1794
1823
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
1795
|
-
readonly INCOMPLETE: 'incomplete';
|
|
1796
1824
|
readonly REJECTED: 'rejected';
|
|
1797
1825
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
1798
1826
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -1815,6 +1843,16 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
1815
1843
|
REGISTERED: "REGISTERED";
|
|
1816
1844
|
REVOKED: "REVOKED";
|
|
1817
1845
|
}>>;
|
|
1846
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1847
|
+
type: z.ZodLiteral<"noneOf">;
|
|
1848
|
+
terms: z.ZodArray<z.ZodEnum<{
|
|
1849
|
+
ARCHIVED: "ARCHIVED";
|
|
1850
|
+
CREATED: "CREATED";
|
|
1851
|
+
DECLARED: "DECLARED";
|
|
1852
|
+
NOTIFIED: "NOTIFIED";
|
|
1853
|
+
REGISTERED: "REGISTERED";
|
|
1854
|
+
REVOKED: "REVOKED";
|
|
1855
|
+
}>>;
|
|
1818
1856
|
}, z.core.$strip>, z.ZodObject<{
|
|
1819
1857
|
type: z.ZodLiteral<"exact">;
|
|
1820
1858
|
term: z.ZodEnum<{
|
|
@@ -2117,21 +2155,18 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
2117
2155
|
}, z.core.$strip>>>;
|
|
2118
2156
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2119
2157
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
2120
|
-
readonly INCOMPLETE: 'incomplete';
|
|
2121
2158
|
readonly REJECTED: 'rejected';
|
|
2122
2159
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
2123
2160
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
2124
2161
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
2125
2162
|
}>]>, z.ZodString]>>>;
|
|
2126
2163
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
2127
|
-
readonly INCOMPLETE: 'incomplete';
|
|
2128
2164
|
readonly REJECTED: 'rejected';
|
|
2129
2165
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
2130
2166
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
2131
2167
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
2132
2168
|
}>]>, z.ZodString]>>>;
|
|
2133
2169
|
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
2134
|
-
readonly INCOMPLETE: 'incomplete';
|
|
2135
2170
|
readonly REJECTED: 'rejected';
|
|
2136
2171
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
2137
2172
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
@@ -2157,11 +2192,14 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
|
2157
2192
|
clauses: {
|
|
2158
2193
|
eventType?: string | undefined;
|
|
2159
2194
|
status?: {
|
|
2160
|
-
type: "exact";
|
|
2161
|
-
term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
|
|
2162
|
-
} | {
|
|
2163
2195
|
type: "anyOf";
|
|
2164
2196
|
terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
|
|
2197
|
+
} | {
|
|
2198
|
+
type: "noneOf";
|
|
2199
|
+
terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
|
|
2200
|
+
} | {
|
|
2201
|
+
type: "exact";
|
|
2202
|
+
term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
|
|
2165
2203
|
} | undefined;
|
|
2166
2204
|
createdAt?: {
|
|
2167
2205
|
type: "range";
|
|
@@ -2303,11 +2341,14 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
|
2303
2341
|
clauses: {
|
|
2304
2342
|
eventType?: string | undefined;
|
|
2305
2343
|
status?: {
|
|
2306
|
-
type: "exact";
|
|
2307
|
-
term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
|
|
2308
|
-
} | {
|
|
2309
2344
|
type: "anyOf";
|
|
2310
2345
|
terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
|
|
2346
|
+
} | {
|
|
2347
|
+
type: "noneOf";
|
|
2348
|
+
terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
|
|
2349
|
+
} | {
|
|
2350
|
+
type: "exact";
|
|
2351
|
+
term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
|
|
2311
2352
|
} | undefined;
|
|
2312
2353
|
createdAt?: {
|
|
2313
2354
|
type: "range";
|
|
@@ -2482,11 +2523,14 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
|
|
|
2482
2523
|
clauses: {
|
|
2483
2524
|
eventType?: string | undefined;
|
|
2484
2525
|
status?: {
|
|
2485
|
-
type: "exact";
|
|
2486
|
-
term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
|
|
2487
|
-
} | {
|
|
2488
2526
|
type: "anyOf";
|
|
2489
2527
|
terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
|
|
2528
|
+
} | {
|
|
2529
|
+
type: "noneOf";
|
|
2530
|
+
terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
|
|
2531
|
+
} | {
|
|
2532
|
+
type: "exact";
|
|
2533
|
+
term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
|
|
2490
2534
|
} | undefined;
|
|
2491
2535
|
createdAt?: {
|
|
2492
2536
|
type: "range";
|
|
@@ -2628,11 +2672,14 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
|
|
|
2628
2672
|
clauses: {
|
|
2629
2673
|
eventType?: string | undefined;
|
|
2630
2674
|
status?: {
|
|
2631
|
-
type: "exact";
|
|
2632
|
-
term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
|
|
2633
|
-
} | {
|
|
2634
2675
|
type: "anyOf";
|
|
2635
2676
|
terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
|
|
2677
|
+
} | {
|
|
2678
|
+
type: "noneOf";
|
|
2679
|
+
terms: ("ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED")[];
|
|
2680
|
+
} | {
|
|
2681
|
+
type: "exact";
|
|
2682
|
+
term: "ARCHIVED" | "CREATED" | "DECLARED" | "NOTIFIED" | "REGISTERED" | "REVOKED";
|
|
2636
2683
|
} | undefined;
|
|
2637
2684
|
createdAt?: {
|
|
2638
2685
|
type: "range";
|
|
@@ -21,4 +21,13 @@ export declare function validateExactlyOneDeclareAction<T extends {
|
|
|
21
21
|
* compatibility) or on the DECLARE action.
|
|
22
22
|
*/
|
|
23
23
|
export declare function validateDeclarationGivenExactlyOnce(config: EventConfigInput, ctx: z.RefinementCtx<EventConfigInput>): void;
|
|
24
|
+
/**
|
|
25
|
+
* Validation which ensures that *if* a NOTIFY notificationForm is configured, it:
|
|
26
|
+
* - only includes fields with ids that are also in the declaration form
|
|
27
|
+
* - the field types match the ones on the declaration form
|
|
28
|
+
*
|
|
29
|
+
* This is because the notification form is used as pre-filled values during declaration.
|
|
30
|
+
* For now we have made the design decision to not allow fields that are not present in the declaration form.
|
|
31
|
+
*/
|
|
32
|
+
export declare function validateNotificationForm(event: EventConfig, ctx: z.RefinementCtx<EventConfig>): void;
|
|
24
33
|
//# sourceMappingURL=eventConfigValidation.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'zod/compile';
|
|
1
2
|
export * from './AuditLog';
|
|
2
3
|
export * from './Constants';
|
|
3
4
|
export * from './ActionConfig';
|
|
@@ -46,6 +47,7 @@ export * from './Flag';
|
|
|
46
47
|
export * from './event';
|
|
47
48
|
export * from './locations';
|
|
48
49
|
export * from './locationPayloads';
|
|
50
|
+
export * from './PlainDate';
|
|
49
51
|
export { UUID } from '../uuid';
|
|
50
52
|
export { DocumentPath } from '../documents';
|
|
51
53
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { DeclarationFormConfig } from './FormConfig';
|
|
3
|
+
import { DeclarationReviewConfig } from './ActionConfig';
|
|
4
|
+
type DeclarationReviewConfigInput = z.input<typeof DeclarationReviewConfig>;
|
|
5
|
+
/** @returns the declaration form with every field optional. */
|
|
6
|
+
export declare function deriveNotificationForm(declaration: DeclarationFormConfig): DeclarationFormConfig;
|
|
7
|
+
/** @returns the DECLARE review with every field optional. */
|
|
8
|
+
export declare function generateNotifyReview(declareReview: DeclarationReviewConfigInput): DeclarationReviewConfigInput;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=notificationFormFallback.d.ts.map
|
|
@@ -27,7 +27,7 @@ export declare function resolveEventCustomFlags(event: EventDocument, eventConfi
|
|
|
27
27
|
*
|
|
28
28
|
* Flags are determined by combining:
|
|
29
29
|
* - Action status flags (format 'ActionType:ActionStatus')
|
|
30
|
-
* - Inherent flags (e.g.
|
|
30
|
+
* - Inherent flags (e.g. rejected, correction requested, potential duplicate, edit in progress)
|
|
31
31
|
* - Event type-specific custom flags defined in the event configuration
|
|
32
32
|
*
|
|
33
33
|
* @param event - The EventDocument containing the action history and payload
|
|
@@ -352,6 +352,9 @@ export declare const generateEventConfig: ({ id, fields, placeOfEventId, dateOfE
|
|
|
352
352
|
actions?: EventConfigInput['actions'];
|
|
353
353
|
}) => EventConfig;
|
|
354
354
|
/**
|
|
355
|
+
* The notification form is dropped, since it may refer to fields of the replaced declaration.
|
|
356
|
+
* `getNotificationForm` then derives it from the new declaration.
|
|
357
|
+
*
|
|
355
358
|
* @returns a copy of the configuration with the DECLARE action's declaration replaced.
|
|
356
359
|
*/
|
|
357
360
|
export declare function withDeclaration(configuration: EventConfig, declaration: DeclarationFormConfig): EventConfig;
|