@opencrvs/toolkit 1.8.0-rc.fb8e005 → 1.8.0-rc.fb96ec1
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 +9779 -578
- package/dist/commons/events/ActionConfig.d.ts +0 -2856
- package/dist/commons/events/ActionDocument.d.ts +696 -696
- package/dist/commons/events/ActionInput.d.ts +600 -600
- package/dist/commons/events/ActionType.d.ts +2 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +18 -18
- package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
- package/dist/commons/events/Draft.d.ts +48 -48
- package/dist/commons/events/EventConfig.d.ts +0 -1432
- package/dist/commons/events/EventDocument.d.ts +432 -432
- package/dist/commons/events/EventIndex.d.ts +10 -10
- package/dist/commons/events/FieldConfig.d.ts +0 -179
- package/dist/commons/events/FieldTypeMapping.d.ts +16 -16
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/FormConfig.d.ts +0 -1200
- package/dist/commons/events/PageConfig.d.ts +0 -288
- package/dist/commons/events/defineConfig.d.ts +0 -308
- package/dist/commons/events/test.utils.d.ts +12 -12
- package/dist/commons/events/utils.d.ts +8 -456
- package/dist/events/index.js +40 -43
- package/package.json +1 -1
@@ -36,6 +36,8 @@ 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"]>;
|
39
41
|
/** Actions which are visible in action menu and workqueue */
|
40
42
|
export declare const workqueueActions: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN"]>;
|
41
43
|
export type WorkqueueActionType = z.infer<typeof workqueueActions>;
|
@@ -128,16 +128,16 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
128
128
|
surname: string;
|
129
129
|
middlename?: string | undefined;
|
130
130
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
131
|
-
firstname: z.
|
132
|
-
surname: z.
|
131
|
+
firstname: z.ZodString;
|
132
|
+
surname: z.ZodString;
|
133
133
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
134
134
|
}, "strip", z.ZodTypeAny, {
|
135
|
-
firstname
|
136
|
-
surname
|
135
|
+
firstname: string;
|
136
|
+
surname: string;
|
137
137
|
middlename?: string | null | undefined;
|
138
138
|
}, {
|
139
|
-
firstname
|
140
|
-
surname
|
139
|
+
firstname: string;
|
140
|
+
surname: string;
|
141
141
|
middlename?: string | null | undefined;
|
142
142
|
}>, z.ZodNull]>, z.ZodUndefined]>]>, z.objectOutputType<{
|
143
143
|
eventType: z.ZodOptional<z.ZodString>;
|
@@ -267,16 +267,16 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
267
267
|
surname: string;
|
268
268
|
middlename?: string | undefined;
|
269
269
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
270
|
-
firstname: z.
|
271
|
-
surname: z.
|
270
|
+
firstname: z.ZodString;
|
271
|
+
surname: z.ZodString;
|
272
272
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
273
273
|
}, "strip", z.ZodTypeAny, {
|
274
|
-
firstname
|
275
|
-
surname
|
274
|
+
firstname: string;
|
275
|
+
surname: string;
|
276
276
|
middlename?: string | null | undefined;
|
277
277
|
}, {
|
278
|
-
firstname
|
279
|
-
surname
|
278
|
+
firstname: string;
|
279
|
+
surname: string;
|
280
280
|
middlename?: string | null | undefined;
|
281
281
|
}>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">, z.objectInputType<{
|
282
282
|
eventType: z.ZodOptional<z.ZodString>;
|
@@ -406,16 +406,16 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
406
406
|
surname: string;
|
407
407
|
middlename?: string | undefined;
|
408
408
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
409
|
-
firstname: z.
|
410
|
-
surname: z.
|
409
|
+
firstname: z.ZodString;
|
410
|
+
surname: z.ZodString;
|
411
411
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
412
412
|
}, "strip", z.ZodTypeAny, {
|
413
|
-
firstname
|
414
|
-
surname
|
413
|
+
firstname: string;
|
414
|
+
surname: string;
|
415
415
|
middlename?: string | null | undefined;
|
416
416
|
}, {
|
417
|
-
firstname
|
418
|
-
surname
|
417
|
+
firstname: string;
|
418
|
+
surname: string;
|
419
419
|
middlename?: string | null | undefined;
|
420
420
|
}>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">>;
|
421
421
|
export type SearchQueryParams = z.infer<typeof SearchQueryParams>;
|
@@ -131,16 +131,16 @@ export declare const NameFieldValue: z.ZodObject<{
|
|
131
131
|
middlename?: string | undefined;
|
132
132
|
}>;
|
133
133
|
export declare const NameFieldUpdateValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
134
|
-
firstname: z.
|
135
|
-
surname: z.
|
134
|
+
firstname: z.ZodString;
|
135
|
+
surname: z.ZodString;
|
136
136
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
138
|
-
firstname
|
139
|
-
surname
|
138
|
+
firstname: string;
|
139
|
+
surname: string;
|
140
140
|
middlename?: string | null | undefined;
|
141
141
|
}, {
|
142
|
-
firstname
|
143
|
-
surname
|
142
|
+
firstname: string;
|
143
|
+
surname: string;
|
144
144
|
middlename?: string | null | undefined;
|
145
145
|
}>, z.ZodNull]>, z.ZodUndefined]>;
|
146
146
|
export type NameFieldValue = z.infer<typeof NameFieldValue>;
|
@@ -127,16 +127,16 @@ export declare const Draft: z.ZodObject<{
|
|
127
127
|
addressLine3?: string | null | undefined;
|
128
128
|
postcodeOrZip?: string | null | undefined;
|
129
129
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
130
|
-
firstname: z.
|
131
|
-
surname: z.
|
130
|
+
firstname: z.ZodString;
|
131
|
+
surname: z.ZodString;
|
132
132
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
133
133
|
}, "strip", z.ZodTypeAny, {
|
134
|
-
firstname
|
135
|
-
surname
|
134
|
+
firstname: string;
|
135
|
+
surname: string;
|
136
136
|
middlename?: string | null | undefined;
|
137
137
|
}, {
|
138
|
-
firstname
|
139
|
-
surname
|
138
|
+
firstname: string;
|
139
|
+
surname: string;
|
140
140
|
middlename?: string | null | undefined;
|
141
141
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>;
|
142
142
|
annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
@@ -253,16 +253,16 @@ export declare const Draft: z.ZodObject<{
|
|
253
253
|
addressLine3?: string | null | undefined;
|
254
254
|
postcodeOrZip?: string | null | undefined;
|
255
255
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
256
|
-
firstname: z.
|
257
|
-
surname: z.
|
256
|
+
firstname: z.ZodString;
|
257
|
+
surname: z.ZodString;
|
258
258
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
259
259
|
}, "strip", z.ZodTypeAny, {
|
260
|
-
firstname
|
261
|
-
surname
|
260
|
+
firstname: string;
|
261
|
+
surname: string;
|
262
262
|
middlename?: string | null | undefined;
|
263
263
|
}, {
|
264
|
-
firstname
|
265
|
-
surname
|
264
|
+
firstname: string;
|
265
|
+
surname: string;
|
266
266
|
middlename?: string | null | undefined;
|
267
267
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
|
268
268
|
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
@@ -293,8 +293,8 @@ export declare const Draft: z.ZodObject<{
|
|
293
293
|
street?: string | null | undefined;
|
294
294
|
zipCode?: string | null | undefined;
|
295
295
|
} | {
|
296
|
-
firstname
|
297
|
-
surname
|
296
|
+
firstname: string;
|
297
|
+
surname: string;
|
298
298
|
middlename?: string | null | undefined;
|
299
299
|
} | {
|
300
300
|
country: string;
|
@@ -337,8 +337,8 @@ export declare const Draft: z.ZodObject<{
|
|
337
337
|
street?: string | null | undefined;
|
338
338
|
zipCode?: string | null | undefined;
|
339
339
|
} | {
|
340
|
-
firstname
|
341
|
-
surname
|
340
|
+
firstname: string;
|
341
|
+
surname: string;
|
342
342
|
middlename?: string | null | undefined;
|
343
343
|
} | {
|
344
344
|
country: string;
|
@@ -388,8 +388,8 @@ export declare const Draft: z.ZodObject<{
|
|
388
388
|
street?: string | null | undefined;
|
389
389
|
zipCode?: string | null | undefined;
|
390
390
|
} | {
|
391
|
-
firstname
|
392
|
-
surname
|
391
|
+
firstname: string;
|
392
|
+
surname: string;
|
393
393
|
middlename?: string | null | undefined;
|
394
394
|
} | {
|
395
395
|
country: string;
|
@@ -432,8 +432,8 @@ export declare const Draft: z.ZodObject<{
|
|
432
432
|
street?: string | null | undefined;
|
433
433
|
zipCode?: string | null | undefined;
|
434
434
|
} | {
|
435
|
-
firstname
|
436
|
-
surname
|
435
|
+
firstname: string;
|
436
|
+
surname: string;
|
437
437
|
middlename?: string | null | undefined;
|
438
438
|
} | {
|
439
439
|
country: string;
|
@@ -489,8 +489,8 @@ export declare const Draft: z.ZodObject<{
|
|
489
489
|
street?: string | null | undefined;
|
490
490
|
zipCode?: string | null | undefined;
|
491
491
|
} | {
|
492
|
-
firstname
|
493
|
-
surname
|
492
|
+
firstname: string;
|
493
|
+
surname: string;
|
494
494
|
middlename?: string | null | undefined;
|
495
495
|
} | {
|
496
496
|
country: string;
|
@@ -533,8 +533,8 @@ export declare const Draft: z.ZodObject<{
|
|
533
533
|
street?: string | null | undefined;
|
534
534
|
zipCode?: string | null | undefined;
|
535
535
|
} | {
|
536
|
-
firstname
|
537
|
-
surname
|
536
|
+
firstname: string;
|
537
|
+
surname: string;
|
538
538
|
middlename?: string | null | undefined;
|
539
539
|
} | {
|
540
540
|
country: string;
|
@@ -590,8 +590,8 @@ export declare const Draft: z.ZodObject<{
|
|
590
590
|
street?: string | null | undefined;
|
591
591
|
zipCode?: string | null | undefined;
|
592
592
|
} | {
|
593
|
-
firstname
|
594
|
-
surname
|
593
|
+
firstname: string;
|
594
|
+
surname: string;
|
595
595
|
middlename?: string | null | undefined;
|
596
596
|
} | {
|
597
597
|
country: string;
|
@@ -634,8 +634,8 @@ export declare const Draft: z.ZodObject<{
|
|
634
634
|
street?: string | null | undefined;
|
635
635
|
zipCode?: string | null | undefined;
|
636
636
|
} | {
|
637
|
-
firstname
|
638
|
-
surname
|
637
|
+
firstname: string;
|
638
|
+
surname: string;
|
639
639
|
middlename?: string | null | undefined;
|
640
640
|
} | {
|
641
641
|
country: string;
|
@@ -780,16 +780,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
780
780
|
addressLine3?: string | null | undefined;
|
781
781
|
postcodeOrZip?: string | null | undefined;
|
782
782
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
783
|
-
firstname: z.
|
784
|
-
surname: z.
|
783
|
+
firstname: z.ZodString;
|
784
|
+
surname: z.ZodString;
|
785
785
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
786
786
|
}, "strip", z.ZodTypeAny, {
|
787
|
-
firstname
|
788
|
-
surname
|
787
|
+
firstname: string;
|
788
|
+
surname: string;
|
789
789
|
middlename?: string | null | undefined;
|
790
790
|
}, {
|
791
|
-
firstname
|
792
|
-
surname
|
791
|
+
firstname: string;
|
792
|
+
surname: string;
|
793
793
|
middlename?: string | null | undefined;
|
794
794
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
795
795
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
@@ -906,16 +906,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
906
906
|
addressLine3?: string | null | undefined;
|
907
907
|
postcodeOrZip?: string | null | undefined;
|
908
908
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
909
|
-
firstname: z.
|
910
|
-
surname: z.
|
909
|
+
firstname: z.ZodString;
|
910
|
+
surname: z.ZodString;
|
911
911
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
912
912
|
}, "strip", z.ZodTypeAny, {
|
913
|
-
firstname
|
914
|
-
surname
|
913
|
+
firstname: string;
|
914
|
+
surname: string;
|
915
915
|
middlename?: string | null | undefined;
|
916
916
|
}, {
|
917
|
-
firstname
|
918
|
-
surname
|
917
|
+
firstname: string;
|
918
|
+
surname: string;
|
919
919
|
middlename?: string | null | undefined;
|
920
920
|
}>, z.ZodNull]>, z.ZodUndefined]>]>>>;
|
921
921
|
originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
|
@@ -943,8 +943,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
943
943
|
street?: string | null | undefined;
|
944
944
|
zipCode?: string | null | undefined;
|
945
945
|
} | {
|
946
|
-
firstname
|
947
|
-
surname
|
946
|
+
firstname: string;
|
947
|
+
surname: string;
|
948
948
|
middlename?: string | null | undefined;
|
949
949
|
} | {
|
950
950
|
country: string;
|
@@ -986,8 +986,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
986
986
|
street?: string | null | undefined;
|
987
987
|
zipCode?: string | null | undefined;
|
988
988
|
} | {
|
989
|
-
firstname
|
990
|
-
surname
|
989
|
+
firstname: string;
|
990
|
+
surname: string;
|
991
991
|
middlename?: string | null | undefined;
|
992
992
|
} | {
|
993
993
|
country: string;
|
@@ -1035,8 +1035,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1035
1035
|
street?: string | null | undefined;
|
1036
1036
|
zipCode?: string | null | undefined;
|
1037
1037
|
} | {
|
1038
|
-
firstname
|
1039
|
-
surname
|
1038
|
+
firstname: string;
|
1039
|
+
surname: string;
|
1040
1040
|
middlename?: string | null | undefined;
|
1041
1041
|
} | {
|
1042
1042
|
country: string;
|
@@ -1077,8 +1077,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
1077
1077
|
street?: string | null | undefined;
|
1078
1078
|
zipCode?: string | null | undefined;
|
1079
1079
|
} | {
|
1080
|
-
firstname
|
1081
|
-
surname
|
1080
|
+
firstname: string;
|
1081
|
+
surname: string;
|
1082
1082
|
middlename?: string | null | undefined;
|
1083
1083
|
} | {
|
1084
1084
|
country: string;
|