@opencrvs/toolkit 1.8.1-rc.4f4b65a → 1.8.1-rc.5130256

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 (33) hide show
  1. package/dist/commons/api/router.d.ts +392 -409
  2. package/dist/commons/conditionals/conditionals.test.d.ts +2 -0
  3. package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
  4. package/dist/commons/conditionals/validate.d.ts +2 -11
  5. package/dist/commons/conditionals/validate.test.d.ts +2 -0
  6. package/dist/commons/events/ActionConfig.d.ts +5805 -3441
  7. package/dist/commons/events/ActionDocument.d.ts +716 -1252
  8. package/dist/commons/events/ActionInput.d.ts +600 -626
  9. package/dist/commons/events/AdvancedSearchConfig.d.ts +65 -83
  10. package/dist/commons/events/CompositeFieldValue.d.ts +6 -6
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +88 -88
  12. package/dist/commons/events/Draft.d.ts +48 -48
  13. package/dist/commons/events/EventConfig.d.ts +2663 -1401
  14. package/dist/commons/events/EventDocument.d.ts +432 -451
  15. package/dist/commons/events/EventIndex.d.ts +62 -184
  16. package/dist/commons/events/EventMetadata.d.ts +9 -9
  17. package/dist/commons/events/FieldConfig.d.ts +343 -254
  18. package/dist/commons/events/FieldType.d.ts +2 -1
  19. package/dist/commons/events/FieldTypeMapping.d.ts +25 -18
  20. package/dist/commons/events/FieldValue.d.ts +12 -12
  21. package/dist/commons/events/FormConfig.d.ts +2388 -1296
  22. package/dist/commons/events/PageConfig.d.ts +508 -264
  23. package/dist/commons/events/WorkqueueConfig.d.ts +164 -288
  24. package/dist/commons/events/defineConfig.d.ts +309 -129
  25. package/dist/commons/events/event.d.ts +6 -68
  26. package/dist/commons/events/field.d.ts +0 -14
  27. package/dist/commons/events/test.utils.d.ts +12 -12
  28. package/dist/commons/events/utils.d.ts +564 -244
  29. package/dist/commons/events/utils.test.d.ts +2 -0
  30. package/dist/conditionals/index.js +2 -3
  31. package/dist/events/index.js +115 -259
  32. package/package.json +1 -1
  33. package/tsconfig.json +1 -1
@@ -1,6 +1,5 @@
1
1
  import { z } from 'zod';
2
2
  import { TranslationConfig } from './TranslationConfig';
3
- import { FieldConfig } from './FieldConfig';
4
3
  export declare const SearchQueryParams: z.ZodObject<{
5
4
  eventType: z.ZodOptional<z.ZodString>;
6
5
  }, "strip", z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
@@ -138,16 +137,16 @@ export declare const SearchQueryParams: z.ZodObject<{
138
137
  surname: string;
139
138
  middlename?: string | undefined;
140
139
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
141
- firstname: z.ZodString;
142
- surname: z.ZodString;
140
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
142
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
143
  }, "strip", z.ZodTypeAny, {
145
- firstname: string;
146
- surname: string;
144
+ firstname?: string | null | undefined;
145
+ surname?: string | null | undefined;
147
146
  middlename?: string | null | undefined;
148
147
  }, {
149
- firstname: string;
150
- surname: string;
148
+ firstname?: string | null | undefined;
149
+ surname?: string | null | undefined;
151
150
  middlename?: string | null | undefined;
152
151
  }>, z.ZodNull]>, z.ZodUndefined]>]>, z.objectOutputType<{
153
152
  eventType: z.ZodOptional<z.ZodString>;
@@ -286,16 +285,16 @@ export declare const SearchQueryParams: z.ZodObject<{
286
285
  surname: string;
287
286
  middlename?: string | undefined;
288
287
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
289
- firstname: z.ZodString;
290
- surname: z.ZodString;
288
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
289
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
291
290
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
292
291
  }, "strip", z.ZodTypeAny, {
293
- firstname: string;
294
- surname: string;
292
+ firstname?: string | null | undefined;
293
+ surname?: string | null | undefined;
295
294
  middlename?: string | null | undefined;
296
295
  }, {
297
- firstname: string;
298
- surname: string;
296
+ firstname?: string | null | undefined;
297
+ surname?: string | null | undefined;
299
298
  middlename?: string | null | undefined;
300
299
  }>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">, z.objectInputType<{
301
300
  eventType: z.ZodOptional<z.ZodString>;
@@ -434,26 +433,26 @@ export declare const SearchQueryParams: z.ZodObject<{
434
433
  surname: string;
435
434
  middlename?: string | undefined;
436
435
  }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
437
- firstname: z.ZodString;
438
- surname: z.ZodString;
436
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
437
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
439
438
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
440
439
  }, "strip", z.ZodTypeAny, {
441
- firstname: string;
442
- surname: string;
440
+ firstname?: string | null | undefined;
441
+ surname?: string | null | undefined;
443
442
  middlename?: string | null | undefined;
444
443
  }, {
445
- firstname: string;
446
- surname: string;
444
+ firstname?: string | null | undefined;
445
+ surname?: string | null | undefined;
447
446
  middlename?: string | null | undefined;
448
447
  }>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">>;
449
448
  export type SearchQueryParams = z.infer<typeof SearchQueryParams>;
450
449
  export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
451
450
  config: z.ZodObject<{
452
- type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
451
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
453
452
  }, "strip", z.ZodTypeAny, {
454
- type: "exact" | "fuzzy" | "range" | "within";
453
+ type: "exact" | "fuzzy" | "range";
455
454
  }, {
456
- type: "exact" | "fuzzy" | "range" | "within";
455
+ type: "exact" | "fuzzy" | "range";
457
456
  }>;
458
457
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
459
458
  value: z.ZodString;
@@ -504,7 +503,7 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
504
503
  excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
505
504
  }>, "strip", z.ZodTypeAny, {
506
505
  config: {
507
- type: "exact" | "fuzzy" | "range" | "within";
506
+ type: "exact" | "fuzzy" | "range";
508
507
  };
509
508
  fieldId: string;
510
509
  fieldType: "field";
@@ -531,7 +530,7 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
531
530
  excludeInSearchQuery?: boolean | undefined;
532
531
  }, {
533
532
  config: {
534
- type: "exact" | "fuzzy" | "range" | "within";
533
+ type: "exact" | "fuzzy" | "range";
535
534
  };
536
535
  fieldId: string;
537
536
  fieldType: "field";
@@ -569,30 +568,15 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
569
568
  alternateFieldIds?: string[] | undefined;
570
569
  excludeInSearchQuery?: boolean | undefined;
571
570
  }>;
572
- /**
573
- * The event fields that are available for advanced search. These are the values
574
- * that can be passed to the `event` function to create a field config.
575
- */
576
- export declare const EventFieldIdInput: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
577
- /**
578
- * Represent the prefix used to differentiate event metadata fields from
579
- * the declaration ones in advanced search form.
580
- */
581
- export declare const METADATA_FIELD_PREFIX = "event.";
582
- /**
583
- * The field IDs that are actually used in the advanced search. The `event`
584
- * function prefixes the `EventFieldIdInput` values with METADATA_FIELD_PREFIX.
585
- */
586
- export declare const EventFieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
587
- export type EventFieldIdInput = z.infer<typeof EventFieldIdInput>;
571
+ export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
588
572
  export type EventFieldId = z.infer<typeof EventFieldId>;
589
573
  export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
590
574
  config: z.ZodObject<{
591
- type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
575
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
592
576
  }, "strip", z.ZodTypeAny, {
593
- type: "exact" | "fuzzy" | "range" | "within";
577
+ type: "exact" | "fuzzy" | "range";
594
578
  }, {
595
- type: "exact" | "fuzzy" | "range" | "within";
579
+ type: "exact" | "fuzzy" | "range";
596
580
  }>;
597
581
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
598
582
  value: z.ZodString;
@@ -637,13 +621,13 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
637
621
  validator: import(".").JSONSchema;
638
622
  }>, "many">>>;
639
623
  }, {
640
- fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
624
+ fieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
641
625
  fieldType: z.ZodLiteral<"event">;
642
626
  }>, "strip", z.ZodTypeAny, {
643
627
  config: {
644
- type: "exact" | "fuzzy" | "range" | "within";
628
+ type: "exact" | "fuzzy" | "range";
645
629
  };
646
- fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
630
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
647
631
  fieldType: "event";
648
632
  options?: {
649
633
  value: string;
@@ -666,9 +650,9 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
666
650
  }[] | undefined;
667
651
  }, {
668
652
  config: {
669
- type: "exact" | "fuzzy" | "range" | "within";
653
+ type: "exact" | "fuzzy" | "range";
670
654
  };
671
- fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
655
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
672
656
  fieldType: "event";
673
657
  options?: {
674
658
  value: string;
@@ -704,11 +688,11 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
704
688
  }>;
705
689
  export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
706
690
  config: z.ZodObject<{
707
- type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
691
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
708
692
  }, "strip", z.ZodTypeAny, {
709
- type: "exact" | "fuzzy" | "range" | "within";
693
+ type: "exact" | "fuzzy" | "range";
710
694
  }, {
711
- type: "exact" | "fuzzy" | "range" | "within";
695
+ type: "exact" | "fuzzy" | "range";
712
696
  }>;
713
697
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
714
698
  value: z.ZodString;
@@ -759,7 +743,7 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
759
743
  excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
760
744
  }>, "strip", z.ZodTypeAny, {
761
745
  config: {
762
- type: "exact" | "fuzzy" | "range" | "within";
746
+ type: "exact" | "fuzzy" | "range";
763
747
  };
764
748
  fieldId: string;
765
749
  fieldType: "field";
@@ -786,7 +770,7 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
786
770
  excludeInSearchQuery?: boolean | undefined;
787
771
  }, {
788
772
  config: {
789
- type: "exact" | "fuzzy" | "range" | "within";
773
+ type: "exact" | "fuzzy" | "range";
790
774
  };
791
775
  fieldId: string;
792
776
  fieldType: "field";
@@ -825,11 +809,11 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
825
809
  excludeInSearchQuery?: boolean | undefined;
826
810
  }>, z.ZodObject<z.objectUtil.extendShape<{
827
811
  config: z.ZodObject<{
828
- type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
812
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
829
813
  }, "strip", z.ZodTypeAny, {
830
- type: "exact" | "fuzzy" | "range" | "within";
814
+ type: "exact" | "fuzzy" | "range";
831
815
  }, {
832
- type: "exact" | "fuzzy" | "range" | "within";
816
+ type: "exact" | "fuzzy" | "range";
833
817
  }>;
834
818
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
835
819
  value: z.ZodString;
@@ -874,13 +858,13 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
874
858
  validator: import(".").JSONSchema;
875
859
  }>, "many">>>;
876
860
  }, {
877
- fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
861
+ fieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
878
862
  fieldType: z.ZodLiteral<"event">;
879
863
  }>, "strip", z.ZodTypeAny, {
880
864
  config: {
881
- type: "exact" | "fuzzy" | "range" | "within";
865
+ type: "exact" | "fuzzy" | "range";
882
866
  };
883
- fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
867
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
884
868
  fieldType: "event";
885
869
  options?: {
886
870
  value: string;
@@ -903,9 +887,9 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
903
887
  }[] | undefined;
904
888
  }, {
905
889
  config: {
906
- type: "exact" | "fuzzy" | "range" | "within";
890
+ type: "exact" | "fuzzy" | "range";
907
891
  };
908
- fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
892
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
909
893
  fieldType: "event";
910
894
  options?: {
911
895
  value: string;
@@ -948,11 +932,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
948
932
  }>;
949
933
  fields: z.ZodArray<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
950
934
  config: z.ZodObject<{
951
- type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
935
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
952
936
  }, "strip", z.ZodTypeAny, {
953
- type: "exact" | "fuzzy" | "range" | "within";
937
+ type: "exact" | "fuzzy" | "range";
954
938
  }, {
955
- type: "exact" | "fuzzy" | "range" | "within";
939
+ type: "exact" | "fuzzy" | "range";
956
940
  }>;
957
941
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
958
942
  value: z.ZodString;
@@ -1003,7 +987,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1003
987
  excludeInSearchQuery: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1004
988
  }>, "strip", z.ZodTypeAny, {
1005
989
  config: {
1006
- type: "exact" | "fuzzy" | "range" | "within";
990
+ type: "exact" | "fuzzy" | "range";
1007
991
  };
1008
992
  fieldId: string;
1009
993
  fieldType: "field";
@@ -1030,7 +1014,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1030
1014
  excludeInSearchQuery?: boolean | undefined;
1031
1015
  }, {
1032
1016
  config: {
1033
- type: "exact" | "fuzzy" | "range" | "within";
1017
+ type: "exact" | "fuzzy" | "range";
1034
1018
  };
1035
1019
  fieldId: string;
1036
1020
  fieldType: "field";
@@ -1069,11 +1053,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1069
1053
  excludeInSearchQuery?: boolean | undefined;
1070
1054
  }>, z.ZodObject<z.objectUtil.extendShape<{
1071
1055
  config: z.ZodObject<{
1072
- type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
1056
+ type: z.ZodEnum<["fuzzy", "exact", "range"]>;
1073
1057
  }, "strip", z.ZodTypeAny, {
1074
- type: "exact" | "fuzzy" | "range" | "within";
1058
+ type: "exact" | "fuzzy" | "range";
1075
1059
  }, {
1076
- type: "exact" | "fuzzy" | "range" | "within";
1060
+ type: "exact" | "fuzzy" | "range";
1077
1061
  }>;
1078
1062
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1079
1063
  value: z.ZodString;
@@ -1118,13 +1102,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1118
1102
  validator: import(".").JSONSchema;
1119
1103
  }>, "many">>>;
1120
1104
  }, {
1121
- fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
1105
+ fieldId: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
1122
1106
  fieldType: z.ZodLiteral<"event">;
1123
1107
  }>, "strip", z.ZodTypeAny, {
1124
1108
  config: {
1125
- type: "exact" | "fuzzy" | "range" | "within";
1109
+ type: "exact" | "fuzzy" | "range";
1126
1110
  };
1127
- fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
1111
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
1128
1112
  fieldType: "event";
1129
1113
  options?: {
1130
1114
  value: string;
@@ -1147,9 +1131,9 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1147
1131
  }[] | undefined;
1148
1132
  }, {
1149
1133
  config: {
1150
- type: "exact" | "fuzzy" | "range" | "within";
1134
+ type: "exact" | "fuzzy" | "range";
1151
1135
  };
1152
- fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
1136
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
1153
1137
  fieldType: "event";
1154
1138
  options?: {
1155
1139
  value: string;
@@ -1187,7 +1171,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1187
1171
  title: TranslationConfig;
1188
1172
  fields: ({
1189
1173
  config: {
1190
- type: "exact" | "fuzzy" | "range" | "within";
1174
+ type: "exact" | "fuzzy" | "range";
1191
1175
  };
1192
1176
  fieldId: string;
1193
1177
  fieldType: "field";
@@ -1214,9 +1198,9 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1214
1198
  excludeInSearchQuery?: boolean | undefined;
1215
1199
  } | {
1216
1200
  config: {
1217
- type: "exact" | "fuzzy" | "range" | "within";
1201
+ type: "exact" | "fuzzy" | "range";
1218
1202
  };
1219
- fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
1203
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
1220
1204
  fieldType: "event";
1221
1205
  options?: {
1222
1206
  value: string;
@@ -1246,7 +1230,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1246
1230
  };
1247
1231
  fields: ({
1248
1232
  config: {
1249
- type: "exact" | "fuzzy" | "range" | "within";
1233
+ type: "exact" | "fuzzy" | "range";
1250
1234
  };
1251
1235
  fieldId: string;
1252
1236
  fieldType: "field";
@@ -1285,9 +1269,9 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1285
1269
  excludeInSearchQuery?: boolean | undefined;
1286
1270
  } | {
1287
1271
  config: {
1288
- type: "exact" | "fuzzy" | "range" | "within";
1272
+ type: "exact" | "fuzzy" | "range";
1289
1273
  };
1290
- fieldId: "event.status" | "event.updatedAt" | "event.trackingId" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation";
1274
+ fieldId: "status" | "updatedAt" | "trackingId" | "legalStatuses.REGISTERED.acceptedAt" | "legalStatuses.REGISTERED.createdAtLocation";
1291
1275
  fieldType: "event";
1292
1276
  options?: {
1293
1277
  value: string;
@@ -1322,8 +1306,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1322
1306
  }[] | undefined;
1323
1307
  })[];
1324
1308
  }>;
1309
+ export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;
1325
1310
  export type AdvancedSearchConfig = z.infer<typeof AdvancedSearchConfig>;
1326
- export type AdvancedSearchConfigWithFieldsResolved = Omit<AdvancedSearchConfig, 'fields'> & {
1327
- fields: FieldConfig[];
1328
- };
1329
1311
  //# sourceMappingURL=AdvancedSearchConfig.d.ts.map
@@ -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.ZodString;
135
- surname: z.ZodString;
134
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
136
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
137
  }, "strip", z.ZodTypeAny, {
138
- firstname: string;
139
- surname: string;
138
+ firstname?: string | null | undefined;
139
+ surname?: string | null | undefined;
140
140
  middlename?: string | null | undefined;
141
141
  }, {
142
- firstname: string;
143
- surname: string;
142
+ firstname?: string | null | undefined;
143
+ surname?: string | null | undefined;
144
144
  middlename?: string | null | undefined;
145
145
  }>, z.ZodNull]>, z.ZodUndefined]>;
146
146
  export type NameFieldValue = z.infer<typeof NameFieldValue>;