@opencrvs/toolkit 1.8.0-rc.fe7c504 → 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.
Files changed (31) hide show
  1. package/dist/commons/api/router.d.ts +10468 -1335
  2. package/dist/commons/events/ActionConfig.d.ts +0 -2600
  3. package/dist/commons/events/ActionDocument.d.ts +1087 -1081
  4. package/dist/commons/events/ActionInput.d.ts +726 -726
  5. package/dist/commons/events/ActionType.d.ts +2 -0
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +18 -222
  7. package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
  8. package/dist/commons/events/CountryConfigQueryInput.d.ts +572 -1234
  9. package/dist/commons/events/CreatedAtLocation.d.ts +2 -1
  10. package/dist/commons/events/Draft.d.ts +77 -77
  11. package/dist/commons/events/EventConfig.d.ts +0 -1458
  12. package/dist/commons/events/EventDocument.d.ts +711 -706
  13. package/dist/commons/events/EventIndex.d.ts +151 -135
  14. package/dist/commons/events/EventMetadata.d.ts +29 -38
  15. package/dist/commons/events/FieldConfig.d.ts +0 -178
  16. package/dist/commons/events/FieldTypeMapping.d.ts +16 -16
  17. package/dist/commons/events/FieldValue.d.ts +12 -12
  18. package/dist/commons/events/FormConfig.d.ts +0 -1092
  19. package/dist/commons/events/PageConfig.d.ts +0 -260
  20. package/dist/commons/events/User.d.ts +3 -6
  21. package/dist/commons/events/WorkqueueConfig.d.ts +1028 -2038
  22. package/dist/commons/events/defineConfig.d.ts +0 -294
  23. package/dist/commons/events/field.d.ts +0 -5
  24. package/dist/commons/events/test.utils.d.ts +19 -30
  25. package/dist/commons/events/transactions.d.ts +1 -1
  26. package/dist/commons/events/utils.d.ts +15 -440
  27. package/dist/conditionals/index.js +18 -22
  28. package/dist/events/index.js +185 -303
  29. package/dist/scopes/index.d.ts +6 -92
  30. package/dist/scopes/index.js +9 -38
  31. package/package.json +3 -3
@@ -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>;
@@ -451,24 +451,6 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
451
451
  defaultMessage: string;
452
452
  }>>;
453
453
  conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
454
- validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
455
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
456
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
457
- id: string;
458
- description: string;
459
- defaultMessage: string;
460
- }>;
461
- }, "strip", z.ZodTypeAny, {
462
- message: TranslationConfig;
463
- validator: import(".").JSONSchema;
464
- }, {
465
- message: {
466
- id: string;
467
- description: string;
468
- defaultMessage: string;
469
- };
470
- validator: import(".").JSONSchema;
471
- }>, "many">>>;
472
454
  }, {
473
455
  fieldId: z.ZodString;
474
456
  fieldType: z.ZodLiteral<"field">;
@@ -493,10 +475,6 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
493
475
  conditional: import(".").JSONSchema;
494
476
  })[] | undefined;
495
477
  searchCriteriaLabelPrefix?: TranslationConfig | undefined;
496
- validations?: {
497
- message: TranslationConfig;
498
- validator: import(".").JSONSchema;
499
- }[] | undefined;
500
478
  }, {
501
479
  config: {
502
480
  type: "exact" | "fuzzy" | "range";
@@ -526,14 +504,6 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
526
504
  description: string;
527
505
  defaultMessage: string;
528
506
  } | undefined;
529
- validations?: {
530
- message: {
531
- id: string;
532
- description: string;
533
- defaultMessage: string;
534
- };
535
- validator: import(".").JSONSchema;
536
- }[] | undefined;
537
507
  }>;
538
508
  export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
539
509
  export type EventFieldId = z.infer<typeof EventFieldId>;
@@ -569,24 +539,6 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
569
539
  defaultMessage: string;
570
540
  }>>;
571
541
  conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
572
- validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
573
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
574
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
575
- id: string;
576
- description: string;
577
- defaultMessage: string;
578
- }>;
579
- }, "strip", z.ZodTypeAny, {
580
- message: TranslationConfig;
581
- validator: import(".").JSONSchema;
582
- }, {
583
- message: {
584
- id: string;
585
- description: string;
586
- defaultMessage: string;
587
- };
588
- validator: import(".").JSONSchema;
589
- }>, "many">>>;
590
542
  }, {
591
543
  fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
592
544
  fieldType: z.ZodLiteral<"event">;
@@ -611,10 +563,6 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
611
563
  conditional: import(".").JSONSchema;
612
564
  })[] | undefined;
613
565
  searchCriteriaLabelPrefix?: TranslationConfig | undefined;
614
- validations?: {
615
- message: TranslationConfig;
616
- validator: import(".").JSONSchema;
617
- }[] | undefined;
618
566
  }, {
619
567
  config: {
620
568
  type: "exact" | "fuzzy" | "range";
@@ -644,14 +592,6 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
644
592
  description: string;
645
593
  defaultMessage: string;
646
594
  } | undefined;
647
- validations?: {
648
- message: {
649
- id: string;
650
- description: string;
651
- defaultMessage: string;
652
- };
653
- validator: import(".").JSONSchema;
654
- }[] | undefined;
655
595
  }>;
656
596
  export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
657
597
  config: z.ZodObject<{
@@ -685,24 +625,6 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
685
625
  defaultMessage: string;
686
626
  }>>;
687
627
  conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
688
- validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
689
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
690
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
691
- id: string;
692
- description: string;
693
- defaultMessage: string;
694
- }>;
695
- }, "strip", z.ZodTypeAny, {
696
- message: TranslationConfig;
697
- validator: import(".").JSONSchema;
698
- }, {
699
- message: {
700
- id: string;
701
- description: string;
702
- defaultMessage: string;
703
- };
704
- validator: import(".").JSONSchema;
705
- }>, "many">>>;
706
628
  }, {
707
629
  fieldId: z.ZodString;
708
630
  fieldType: z.ZodLiteral<"field">;
@@ -727,10 +649,6 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
727
649
  conditional: import(".").JSONSchema;
728
650
  })[] | undefined;
729
651
  searchCriteriaLabelPrefix?: TranslationConfig | undefined;
730
- validations?: {
731
- message: TranslationConfig;
732
- validator: import(".").JSONSchema;
733
- }[] | undefined;
734
652
  }, {
735
653
  config: {
736
654
  type: "exact" | "fuzzy" | "range";
@@ -760,14 +678,6 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
760
678
  description: string;
761
679
  defaultMessage: string;
762
680
  } | undefined;
763
- validations?: {
764
- message: {
765
- id: string;
766
- description: string;
767
- defaultMessage: string;
768
- };
769
- validator: import(".").JSONSchema;
770
- }[] | undefined;
771
681
  }>, z.ZodObject<z.objectUtil.extendShape<{
772
682
  config: z.ZodObject<{
773
683
  type: z.ZodEnum<["fuzzy", "exact", "range"]>;
@@ -800,24 +710,6 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
800
710
  defaultMessage: string;
801
711
  }>>;
802
712
  conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
803
- validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
804
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
805
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
806
- id: string;
807
- description: string;
808
- defaultMessage: string;
809
- }>;
810
- }, "strip", z.ZodTypeAny, {
811
- message: TranslationConfig;
812
- validator: import(".").JSONSchema;
813
- }, {
814
- message: {
815
- id: string;
816
- description: string;
817
- defaultMessage: string;
818
- };
819
- validator: import(".").JSONSchema;
820
- }>, "many">>>;
821
713
  }, {
822
714
  fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
823
715
  fieldType: z.ZodLiteral<"event">;
@@ -842,10 +734,6 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
842
734
  conditional: import(".").JSONSchema;
843
735
  })[] | undefined;
844
736
  searchCriteriaLabelPrefix?: TranslationConfig | undefined;
845
- validations?: {
846
- message: TranslationConfig;
847
- validator: import(".").JSONSchema;
848
- }[] | undefined;
849
737
  }, {
850
738
  config: {
851
739
  type: "exact" | "fuzzy" | "range";
@@ -875,14 +763,6 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
875
763
  description: string;
876
764
  defaultMessage: string;
877
765
  } | undefined;
878
- validations?: {
879
- message: {
880
- id: string;
881
- description: string;
882
- defaultMessage: string;
883
- };
884
- validator: import(".").JSONSchema;
885
- }[] | undefined;
886
766
  }>]>;
887
767
  export type SearchField = z.infer<typeof SearchField>;
888
768
  export declare const AdvancedSearchConfig: z.ZodObject<{
@@ -923,24 +803,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
923
803
  defaultMessage: string;
924
804
  }>>;
925
805
  conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
926
- validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
927
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
928
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
929
- id: string;
930
- description: string;
931
- defaultMessage: string;
932
- }>;
933
- }, "strip", z.ZodTypeAny, {
934
- message: TranslationConfig;
935
- validator: import(".").JSONSchema;
936
- }, {
937
- message: {
938
- id: string;
939
- description: string;
940
- defaultMessage: string;
941
- };
942
- validator: import(".").JSONSchema;
943
- }>, "many">>>;
944
806
  }, {
945
807
  fieldId: z.ZodString;
946
808
  fieldType: z.ZodLiteral<"field">;
@@ -965,10 +827,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
965
827
  conditional: import(".").JSONSchema;
966
828
  })[] | undefined;
967
829
  searchCriteriaLabelPrefix?: TranslationConfig | undefined;
968
- validations?: {
969
- message: TranslationConfig;
970
- validator: import(".").JSONSchema;
971
- }[] | undefined;
972
830
  }, {
973
831
  config: {
974
832
  type: "exact" | "fuzzy" | "range";
@@ -998,14 +856,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
998
856
  description: string;
999
857
  defaultMessage: string;
1000
858
  } | undefined;
1001
- validations?: {
1002
- message: {
1003
- id: string;
1004
- description: string;
1005
- defaultMessage: string;
1006
- };
1007
- validator: import(".").JSONSchema;
1008
- }[] | undefined;
1009
859
  }>, z.ZodObject<z.objectUtil.extendShape<{
1010
860
  config: z.ZodObject<{
1011
861
  type: z.ZodEnum<["fuzzy", "exact", "range"]>;
@@ -1038,24 +888,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1038
888
  defaultMessage: string;
1039
889
  }>>;
1040
890
  conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
1041
- validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
1042
- validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1043
- message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1044
- id: string;
1045
- description: string;
1046
- defaultMessage: string;
1047
- }>;
1048
- }, "strip", z.ZodTypeAny, {
1049
- message: TranslationConfig;
1050
- validator: import(".").JSONSchema;
1051
- }, {
1052
- message: {
1053
- id: string;
1054
- description: string;
1055
- defaultMessage: string;
1056
- };
1057
- validator: import(".").JSONSchema;
1058
- }>, "many">>>;
1059
891
  }, {
1060
892
  fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
1061
893
  fieldType: z.ZodLiteral<"event">;
@@ -1080,10 +912,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1080
912
  conditional: import(".").JSONSchema;
1081
913
  })[] | undefined;
1082
914
  searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1083
- validations?: {
1084
- message: TranslationConfig;
1085
- validator: import(".").JSONSchema;
1086
- }[] | undefined;
1087
915
  }, {
1088
916
  config: {
1089
917
  type: "exact" | "fuzzy" | "range";
@@ -1113,14 +941,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1113
941
  description: string;
1114
942
  defaultMessage: string;
1115
943
  } | undefined;
1116
- validations?: {
1117
- message: {
1118
- id: string;
1119
- description: string;
1120
- defaultMessage: string;
1121
- };
1122
- validator: import(".").JSONSchema;
1123
- }[] | undefined;
1124
944
  }>]>, "many">;
1125
945
  }, "strip", z.ZodTypeAny, {
1126
946
  title: TranslationConfig;
@@ -1145,10 +965,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1145
965
  conditional: import(".").JSONSchema;
1146
966
  })[] | undefined;
1147
967
  searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1148
- validations?: {
1149
- message: TranslationConfig;
1150
- validator: import(".").JSONSchema;
1151
- }[] | undefined;
1152
968
  } | {
1153
969
  config: {
1154
970
  type: "exact" | "fuzzy" | "range";
@@ -1170,10 +986,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1170
986
  conditional: import(".").JSONSchema;
1171
987
  })[] | undefined;
1172
988
  searchCriteriaLabelPrefix?: TranslationConfig | undefined;
1173
- validations?: {
1174
- message: TranslationConfig;
1175
- validator: import(".").JSONSchema;
1176
- }[] | undefined;
1177
989
  })[];
1178
990
  }, {
1179
991
  title: {
@@ -1210,14 +1022,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1210
1022
  description: string;
1211
1023
  defaultMessage: string;
1212
1024
  } | undefined;
1213
- validations?: {
1214
- message: {
1215
- id: string;
1216
- description: string;
1217
- defaultMessage: string;
1218
- };
1219
- validator: import(".").JSONSchema;
1220
- }[] | undefined;
1221
1025
  } | {
1222
1026
  config: {
1223
1027
  type: "exact" | "fuzzy" | "range";
@@ -1247,14 +1051,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1247
1051
  description: string;
1248
1052
  defaultMessage: string;
1249
1053
  } | undefined;
1250
- validations?: {
1251
- message: {
1252
- id: string;
1253
- description: string;
1254
- defaultMessage: string;
1255
- };
1256
- validator: import(".").JSONSchema;
1257
- }[] | undefined;
1258
1054
  })[];
1259
1055
  }>;
1260
1056
  export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;
@@ -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>;