@opencrvs/toolkit 1.8.0-rc.fe87a15 → 1.8.0-rc.fe8c092
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/dist/commons/api/router.d.ts +6884 -614
- package/dist/commons/conditionals/conditionals.d.ts +4 -0
- package/dist/commons/conditionals/validate.d.ts +6 -0
- package/dist/commons/events/ActionConfig.d.ts +18678 -6326
- package/dist/commons/events/ActionDocument.d.ts +1923 -414
- package/dist/commons/events/ActionInput.d.ts +1504 -304
- package/dist/commons/events/ActionType.d.ts +6 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +75 -3
- package/dist/commons/events/CompositeFieldValue.d.ts +28 -0
- package/dist/commons/events/Constants.d.ts +1 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +254 -168
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -1
- package/dist/commons/events/Draft.d.ts +134 -33
- package/dist/commons/events/EventConfig.d.ts +8242 -2365
- package/dist/commons/events/EventDocument.d.ts +1242 -298
- package/dist/commons/events/EventIndex.d.ts +798 -123
- package/dist/commons/events/EventMetadata.d.ts +62 -59
- package/dist/commons/events/FieldConfig.d.ts +1572 -746
- package/dist/commons/events/FieldType.d.ts +4 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +89 -50
- package/dist/commons/events/FieldValue.d.ts +41 -5
- package/dist/commons/events/FormConfig.d.ts +7640 -2444
- package/dist/commons/events/PageConfig.d.ts +2816 -1540
- package/dist/commons/events/SummaryConfig.d.ts +0 -5
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
- package/dist/commons/events/WorkqueueConfig.d.ts +3277 -1512
- package/dist/commons/events/defineConfig.d.ts +959 -13
- package/dist/commons/events/field.d.ts +4 -0
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/scopes.d.ts +1 -2
- package/dist/commons/events/test.utils.d.ts +138 -40
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +9666 -16
- package/dist/conditionals/index.js +18 -1
- package/dist/events/index.js +1592 -1011
- package/dist/scopes/index.d.ts +4 -1
- package/dist/scopes/index.js +67 -17
- package/package.json +1 -1
@@ -36,4 +36,10 @@ export declare const annotationActions: z.ZodEnum<["DELETE", "CREATE", "NOTIFY",
|
|
36
36
|
export type AnnotationActionType = z.infer<typeof annotationActions>;
|
37
37
|
/** Actions which requires the user to be assigned */
|
38
38
|
export declare const writeActions: z.ZodEnum<["DELETE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION"]>;
|
39
|
+
/** Actions which change the status of the event */
|
40
|
+
export declare const StatusChangingActions: z.ZodEnum<["CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
|
41
|
+
/** Actions which are visible in action menu and workqueue */
|
42
|
+
export declare const workqueueActions: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN"]>;
|
43
|
+
export type WorkqueueActionType = z.infer<typeof workqueueActions>;
|
44
|
+
export declare function isMetaAction(actionType: ActionType): boolean;
|
39
45
|
//# sourceMappingURL=ActionType.d.ts.map
|
@@ -115,7 +115,31 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
115
115
|
addressLine2?: string | undefined;
|
116
116
|
addressLine3?: string | undefined;
|
117
117
|
postcodeOrZip?: string | undefined;
|
118
|
-
}
|
118
|
+
}>, z.ZodObject<{
|
119
|
+
firstname: z.ZodString;
|
120
|
+
surname: z.ZodString;
|
121
|
+
middlename: z.ZodOptional<z.ZodString>;
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
123
|
+
firstname: string;
|
124
|
+
surname: string;
|
125
|
+
middlename?: string | undefined;
|
126
|
+
}, {
|
127
|
+
firstname: string;
|
128
|
+
surname: string;
|
129
|
+
middlename?: string | undefined;
|
130
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
131
|
+
firstname: z.ZodString;
|
132
|
+
surname: z.ZodString;
|
133
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
135
|
+
firstname: string;
|
136
|
+
surname: string;
|
137
|
+
middlename?: string | null | undefined;
|
138
|
+
}, {
|
139
|
+
firstname: string;
|
140
|
+
surname: string;
|
141
|
+
middlename?: string | null | undefined;
|
142
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>, z.objectOutputType<{
|
119
143
|
eventType: z.ZodOptional<z.ZodString>;
|
120
144
|
}, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
121
145
|
filename: z.ZodString;
|
@@ -230,7 +254,31 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
230
254
|
addressLine2?: string | undefined;
|
231
255
|
addressLine3?: string | undefined;
|
232
256
|
postcodeOrZip?: string | undefined;
|
233
|
-
}
|
257
|
+
}>, z.ZodObject<{
|
258
|
+
firstname: z.ZodString;
|
259
|
+
surname: z.ZodString;
|
260
|
+
middlename: z.ZodOptional<z.ZodString>;
|
261
|
+
}, "strip", z.ZodTypeAny, {
|
262
|
+
firstname: string;
|
263
|
+
surname: string;
|
264
|
+
middlename?: string | undefined;
|
265
|
+
}, {
|
266
|
+
firstname: string;
|
267
|
+
surname: string;
|
268
|
+
middlename?: string | undefined;
|
269
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
270
|
+
firstname: z.ZodString;
|
271
|
+
surname: z.ZodString;
|
272
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
273
|
+
}, "strip", z.ZodTypeAny, {
|
274
|
+
firstname: string;
|
275
|
+
surname: string;
|
276
|
+
middlename?: string | null | undefined;
|
277
|
+
}, {
|
278
|
+
firstname: string;
|
279
|
+
surname: string;
|
280
|
+
middlename?: string | null | undefined;
|
281
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">, z.objectInputType<{
|
234
282
|
eventType: z.ZodOptional<z.ZodString>;
|
235
283
|
}, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
236
284
|
filename: z.ZodString;
|
@@ -345,7 +393,31 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
345
393
|
addressLine2?: string | undefined;
|
346
394
|
addressLine3?: string | undefined;
|
347
395
|
postcodeOrZip?: string | undefined;
|
348
|
-
}
|
396
|
+
}>, z.ZodObject<{
|
397
|
+
firstname: z.ZodString;
|
398
|
+
surname: z.ZodString;
|
399
|
+
middlename: z.ZodOptional<z.ZodString>;
|
400
|
+
}, "strip", z.ZodTypeAny, {
|
401
|
+
firstname: string;
|
402
|
+
surname: string;
|
403
|
+
middlename?: string | undefined;
|
404
|
+
}, {
|
405
|
+
firstname: string;
|
406
|
+
surname: string;
|
407
|
+
middlename?: string | undefined;
|
408
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
409
|
+
firstname: z.ZodString;
|
410
|
+
surname: z.ZodString;
|
411
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
412
|
+
}, "strip", z.ZodTypeAny, {
|
413
|
+
firstname: string;
|
414
|
+
surname: string;
|
415
|
+
middlename?: string | null | undefined;
|
416
|
+
}, {
|
417
|
+
firstname: string;
|
418
|
+
surname: string;
|
419
|
+
middlename?: string | null | undefined;
|
420
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">>;
|
349
421
|
export type SearchQueryParams = z.infer<typeof SearchQueryParams>;
|
350
422
|
export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
351
423
|
config: z.ZodObject<{
|
@@ -117,6 +117,34 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
|
|
117
117
|
street?: string | null | undefined;
|
118
118
|
zipCode?: string | null | undefined;
|
119
119
|
}>;
|
120
|
+
export declare const NameFieldValue: z.ZodObject<{
|
121
|
+
firstname: z.ZodString;
|
122
|
+
surname: z.ZodString;
|
123
|
+
middlename: z.ZodOptional<z.ZodString>;
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
125
|
+
firstname: string;
|
126
|
+
surname: string;
|
127
|
+
middlename?: string | undefined;
|
128
|
+
}, {
|
129
|
+
firstname: string;
|
130
|
+
surname: string;
|
131
|
+
middlename?: string | undefined;
|
132
|
+
}>;
|
133
|
+
export declare const NameFieldUpdateValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
134
|
+
firstname: z.ZodString;
|
135
|
+
surname: z.ZodString;
|
136
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
138
|
+
firstname: string;
|
139
|
+
surname: string;
|
140
|
+
middlename?: string | null | undefined;
|
141
|
+
}, {
|
142
|
+
firstname: string;
|
143
|
+
surname: string;
|
144
|
+
middlename?: string | null | undefined;
|
145
|
+
}>, z.ZodNull]>, z.ZodUndefined]>;
|
146
|
+
export type NameFieldValue = z.infer<typeof NameFieldValue>;
|
147
|
+
export type NameFieldUpdateValue = z.infer<typeof NameFieldUpdateValue>;
|
120
148
|
export type UrbanAddressUpdateValue = z.infer<typeof UrbanAddressUpdateValue>;
|
121
149
|
export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
|
122
150
|
country: z.ZodString;
|