@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.
@@ -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.ZodOptional<z.ZodNullable<z.ZodString>>;
132
- surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
+ firstname: z.ZodString;
132
+ surname: z.ZodString;
133
133
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
134
  }, "strip", z.ZodTypeAny, {
135
- firstname?: string | null | undefined;
136
- surname?: string | null | undefined;
135
+ firstname: string;
136
+ surname: string;
137
137
  middlename?: string | null | undefined;
138
138
  }, {
139
- firstname?: string | null | undefined;
140
- surname?: string | null | undefined;
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.ZodOptional<z.ZodNullable<z.ZodString>>;
271
- surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
+ firstname: z.ZodString;
271
+ surname: z.ZodString;
272
272
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
273
273
  }, "strip", z.ZodTypeAny, {
274
- firstname?: string | null | undefined;
275
- surname?: string | null | undefined;
274
+ firstname: string;
275
+ surname: string;
276
276
  middlename?: string | null | undefined;
277
277
  }, {
278
- firstname?: string | null | undefined;
279
- surname?: string | null | undefined;
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.ZodOptional<z.ZodNullable<z.ZodString>>;
410
- surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
409
+ firstname: z.ZodString;
410
+ surname: z.ZodString;
411
411
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
412
  }, "strip", z.ZodTypeAny, {
413
- firstname?: string | null | undefined;
414
- surname?: string | null | undefined;
413
+ firstname: string;
414
+ surname: string;
415
415
  middlename?: string | null | undefined;
416
416
  }, {
417
- firstname?: string | null | undefined;
418
- surname?: string | null | undefined;
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.ZodOptional<z.ZodNullable<z.ZodString>>;
135
- surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
+ firstname: z.ZodString;
135
+ surname: z.ZodString;
136
136
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
137
  }, "strip", z.ZodTypeAny, {
138
- firstname?: string | null | undefined;
139
- surname?: string | null | undefined;
138
+ firstname: string;
139
+ surname: string;
140
140
  middlename?: string | null | undefined;
141
141
  }, {
142
- firstname?: string | null | undefined;
143
- surname?: string | null | undefined;
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.ZodOptional<z.ZodNullable<z.ZodString>>;
131
- surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
+ firstname: z.ZodString;
131
+ surname: z.ZodString;
132
132
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
133
  }, "strip", z.ZodTypeAny, {
134
- firstname?: string | null | undefined;
135
- surname?: string | null | undefined;
134
+ firstname: string;
135
+ surname: string;
136
136
  middlename?: string | null | undefined;
137
137
  }, {
138
- firstname?: string | null | undefined;
139
- surname?: string | null | undefined;
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.ZodOptional<z.ZodNullable<z.ZodString>>;
257
- surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
256
+ firstname: z.ZodString;
257
+ surname: z.ZodString;
258
258
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
259
  }, "strip", z.ZodTypeAny, {
260
- firstname?: string | null | undefined;
261
- surname?: string | null | undefined;
260
+ firstname: string;
261
+ surname: string;
262
262
  middlename?: string | null | undefined;
263
263
  }, {
264
- firstname?: string | null | undefined;
265
- surname?: string | null | undefined;
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?: string | null | undefined;
297
- surname?: string | null | undefined;
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?: string | null | undefined;
341
- surname?: string | null | undefined;
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?: string | null | undefined;
392
- surname?: string | null | undefined;
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?: string | null | undefined;
436
- surname?: string | null | undefined;
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?: string | null | undefined;
493
- surname?: string | null | undefined;
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?: string | null | undefined;
537
- surname?: string | null | undefined;
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?: string | null | undefined;
594
- surname?: string | null | undefined;
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?: string | null | undefined;
638
- surname?: string | null | undefined;
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.ZodOptional<z.ZodNullable<z.ZodString>>;
784
- surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
783
+ firstname: z.ZodString;
784
+ surname: z.ZodString;
785
785
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
786
786
  }, "strip", z.ZodTypeAny, {
787
- firstname?: string | null | undefined;
788
- surname?: string | null | undefined;
787
+ firstname: string;
788
+ surname: string;
789
789
  middlename?: string | null | undefined;
790
790
  }, {
791
- firstname?: string | null | undefined;
792
- surname?: string | null | undefined;
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.ZodOptional<z.ZodNullable<z.ZodString>>;
910
- surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
909
+ firstname: z.ZodString;
910
+ surname: z.ZodString;
911
911
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
912
912
  }, "strip", z.ZodTypeAny, {
913
- firstname?: string | null | undefined;
914
- surname?: string | null | undefined;
913
+ firstname: string;
914
+ surname: string;
915
915
  middlename?: string | null | undefined;
916
916
  }, {
917
- firstname?: string | null | undefined;
918
- surname?: string | null | undefined;
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?: string | null | undefined;
947
- surname?: string | null | undefined;
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?: string | null | undefined;
990
- surname?: string | null | undefined;
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?: string | null | undefined;
1039
- surname?: string | null | undefined;
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?: string | null | undefined;
1081
- surname?: string | null | undefined;
1080
+ firstname: string;
1081
+ surname: string;
1082
1082
  middlename?: string | null | undefined;
1083
1083
  } | {
1084
1084
  country: string;