@opencrvs/toolkit 1.8.0-rc.f7e4aad → 1.8.0-rc.f807e0d

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 (39) hide show
  1. package/dist/commons/api/router.d.ts +1822 -10136
  2. package/dist/commons/conditionals/conditionals.d.ts +1 -12
  3. package/dist/commons/conditionals/validate.d.ts +8 -0
  4. package/dist/commons/events/ActionConfig.d.ts +15960 -3820
  5. package/dist/commons/events/ActionDocument.d.ts +1951 -904
  6. package/dist/commons/events/ActionInput.d.ts +1680 -780
  7. package/dist/commons/events/ActionType.d.ts +0 -2
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +113 -68
  9. package/dist/commons/events/CompositeFieldValue.d.ts +9 -9
  10. package/dist/commons/events/CountryConfigQueryInput.d.ts +1215 -813
  11. package/dist/commons/events/Draft.d.ts +144 -72
  12. package/dist/commons/events/EventConfig.d.ts +6459 -1250
  13. package/dist/commons/events/EventDocument.d.ts +1236 -588
  14. package/dist/commons/events/EventIndex.d.ts +609 -268
  15. package/dist/commons/events/EventMetadata.d.ts +9 -7
  16. package/dist/commons/events/FieldConfig.d.ts +1635 -67
  17. package/dist/commons/events/FieldType.d.ts +7 -1
  18. package/dist/commons/events/FieldTypeMapping.d.ts +57 -25
  19. package/dist/commons/events/FieldValue.d.ts +45 -16
  20. package/dist/commons/events/FormConfig.d.ts +6488 -1370
  21. package/dist/commons/events/PageConfig.d.ts +1380 -70
  22. package/dist/commons/events/User.d.ts +9 -3
  23. package/dist/commons/events/WorkqueueColumnConfig.d.ts +7 -7
  24. package/dist/commons/events/WorkqueueConfig.d.ts +2459 -1519
  25. package/dist/commons/events/defineConfig.d.ts +971 -58
  26. package/dist/commons/events/event.d.ts +19 -19
  27. package/dist/commons/events/field.d.ts +17 -1
  28. package/dist/commons/events/test.utils.d.ts +45 -20
  29. package/dist/commons/events/utils.d.ts +3323 -267
  30. package/dist/conditionals/index.js +23 -39
  31. package/dist/events/index.js +1208 -928
  32. package/dist/scopes/index.d.ts +92 -6
  33. package/dist/scopes/index.js +38 -9
  34. package/package.json +6 -4
  35. package/tsconfig.json +1 -1
  36. package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
  37. package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
  38. package/dist/commons/conditionals/validate.test.d.ts +0 -2
  39. package/dist/commons/events/utils.test.d.ts +0 -2
@@ -36,8 +36,6 @@ 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
39
  /** Actions which are visible in action menu and workqueue */
42
40
  export declare const workqueueActions: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN"]>;
43
41
  export type WorkqueueActionType = z.infer<typeof workqueueActions>;
@@ -1,33 +1,43 @@
1
1
  import { z } from 'zod';
2
2
  import { TranslationConfig } from './TranslationConfig';
3
+ import { FieldConfig } from './FieldConfig';
3
4
  export declare const SearchQueryParams: z.ZodObject<{
4
5
  eventType: z.ZodOptional<z.ZodString>;
5
- }, "strip", z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6
- filename: z.ZodString;
6
+ }, "strip", z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
7
+ start: z.ZodString;
8
+ end: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ start: string;
11
+ end: string;
12
+ }, {
13
+ start: string;
14
+ end: string;
15
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
16
+ path: z.ZodEffects<z.ZodString, string, string>;
7
17
  originalFilename: z.ZodString;
8
18
  type: z.ZodString;
9
19
  }, "strip", z.ZodTypeAny, {
10
20
  type: string;
11
- filename: string;
21
+ path: string;
12
22
  originalFilename: string;
13
23
  }, {
14
24
  type: string;
15
- filename: string;
25
+ path: string;
16
26
  originalFilename: string;
17
27
  }>, z.ZodArray<z.ZodObject<{
18
- filename: z.ZodString;
28
+ path: z.ZodEffects<z.ZodString, string, string>;
19
29
  originalFilename: z.ZodString;
20
30
  type: z.ZodString;
21
31
  option: z.ZodString;
22
32
  }, "strip", z.ZodTypeAny, {
23
33
  type: string;
24
34
  option: string;
25
- filename: string;
35
+ path: string;
26
36
  originalFilename: string;
27
37
  }, {
28
38
  type: string;
29
39
  option: string;
30
- filename: string;
40
+ path: string;
31
41
  originalFilename: string;
32
42
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
33
43
  country: z.ZodString;
@@ -141,32 +151,41 @@ export declare const SearchQueryParams: z.ZodObject<{
141
151
  middlename?: string | null | undefined;
142
152
  }>, z.ZodNull]>, z.ZodUndefined]>]>, z.objectOutputType<{
143
153
  eventType: z.ZodOptional<z.ZodString>;
144
- }, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
145
- filename: z.ZodString;
154
+ }, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
155
+ start: z.ZodString;
156
+ end: z.ZodString;
157
+ }, "strip", z.ZodTypeAny, {
158
+ start: string;
159
+ end: string;
160
+ }, {
161
+ start: string;
162
+ end: string;
163
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
164
+ path: z.ZodEffects<z.ZodString, string, string>;
146
165
  originalFilename: z.ZodString;
147
166
  type: z.ZodString;
148
167
  }, "strip", z.ZodTypeAny, {
149
168
  type: string;
150
- filename: string;
169
+ path: string;
151
170
  originalFilename: string;
152
171
  }, {
153
172
  type: string;
154
- filename: string;
173
+ path: string;
155
174
  originalFilename: string;
156
175
  }>, z.ZodArray<z.ZodObject<{
157
- filename: z.ZodString;
176
+ path: z.ZodEffects<z.ZodString, string, string>;
158
177
  originalFilename: z.ZodString;
159
178
  type: z.ZodString;
160
179
  option: z.ZodString;
161
180
  }, "strip", z.ZodTypeAny, {
162
181
  type: string;
163
182
  option: string;
164
- filename: string;
183
+ path: string;
165
184
  originalFilename: string;
166
185
  }, {
167
186
  type: string;
168
187
  option: string;
169
- filename: string;
188
+ path: string;
170
189
  originalFilename: string;
171
190
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
172
191
  country: z.ZodString;
@@ -280,32 +299,41 @@ export declare const SearchQueryParams: z.ZodObject<{
280
299
  middlename?: string | null | undefined;
281
300
  }>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">, z.objectInputType<{
282
301
  eventType: z.ZodOptional<z.ZodString>;
283
- }, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
284
- filename: z.ZodString;
302
+ }, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
303
+ start: z.ZodString;
304
+ end: z.ZodString;
305
+ }, "strip", z.ZodTypeAny, {
306
+ start: string;
307
+ end: string;
308
+ }, {
309
+ start: string;
310
+ end: string;
311
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
312
+ path: z.ZodEffects<z.ZodString, string, string>;
285
313
  originalFilename: z.ZodString;
286
314
  type: z.ZodString;
287
315
  }, "strip", z.ZodTypeAny, {
288
316
  type: string;
289
- filename: string;
317
+ path: string;
290
318
  originalFilename: string;
291
319
  }, {
292
320
  type: string;
293
- filename: string;
321
+ path: string;
294
322
  originalFilename: string;
295
323
  }>, z.ZodArray<z.ZodObject<{
296
- filename: z.ZodString;
324
+ path: z.ZodEffects<z.ZodString, string, string>;
297
325
  originalFilename: z.ZodString;
298
326
  type: z.ZodString;
299
327
  option: z.ZodString;
300
328
  }, "strip", z.ZodTypeAny, {
301
329
  type: string;
302
330
  option: string;
303
- filename: string;
331
+ path: string;
304
332
  originalFilename: string;
305
333
  }, {
306
334
  type: string;
307
335
  option: string;
308
- filename: string;
336
+ path: string;
309
337
  originalFilename: string;
310
338
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
311
339
  country: z.ZodString;
@@ -421,11 +449,11 @@ export declare const SearchQueryParams: z.ZodObject<{
421
449
  export type SearchQueryParams = z.infer<typeof SearchQueryParams>;
422
450
  export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
423
451
  config: z.ZodObject<{
424
- type: z.ZodEnum<["fuzzy", "exact", "range"]>;
452
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
425
453
  }, "strip", z.ZodTypeAny, {
426
- type: "exact" | "fuzzy" | "range";
454
+ type: "exact" | "fuzzy" | "range" | "within";
427
455
  }, {
428
- type: "exact" | "fuzzy" | "range";
456
+ type: "exact" | "fuzzy" | "range" | "within";
429
457
  }>;
430
458
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
431
459
  value: z.ZodString;
@@ -474,7 +502,7 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
474
502
  fieldType: z.ZodLiteral<"field">;
475
503
  }>, "strip", z.ZodTypeAny, {
476
504
  config: {
477
- type: "exact" | "fuzzy" | "range";
505
+ type: "exact" | "fuzzy" | "range" | "within";
478
506
  };
479
507
  fieldId: string;
480
508
  fieldType: "field";
@@ -499,7 +527,7 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
499
527
  }[] | undefined;
500
528
  }, {
501
529
  config: {
502
- type: "exact" | "fuzzy" | "range";
530
+ type: "exact" | "fuzzy" | "range" | "within";
503
531
  };
504
532
  fieldId: string;
505
533
  fieldType: "field";
@@ -535,15 +563,30 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
535
563
  validator: import(".").JSONSchema;
536
564
  }[] | undefined;
537
565
  }>;
538
- export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
566
+ /**
567
+ * The event fields that are available for advanced search. These are the values
568
+ * that can be passed to the `event` function to create a field config.
569
+ */
570
+ export declare const EventFieldIdInput: z.ZodEnum<["trackingId", "status", "legalStatuses.REGISTERED.acceptedAt", "legalStatuses.REGISTERED.createdAtLocation", "updatedAt"]>;
571
+ /**
572
+ * Represent the prefix used to differentiate event metadata fields from
573
+ * the declaration ones in advanced search form.
574
+ */
575
+ export declare const METADATA_FIELD_PREFIX = "event.";
576
+ /**
577
+ * The field IDs that are actually used in the advanced search. The `event`
578
+ * function prefixes the `EventFieldIdInput` values with METADATA_FIELD_PREFIX.
579
+ */
580
+ export declare const EventFieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
581
+ export type EventFieldIdInput = z.infer<typeof EventFieldIdInput>;
539
582
  export type EventFieldId = z.infer<typeof EventFieldId>;
540
583
  export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
541
584
  config: z.ZodObject<{
542
- type: z.ZodEnum<["fuzzy", "exact", "range"]>;
585
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
543
586
  }, "strip", z.ZodTypeAny, {
544
- type: "exact" | "fuzzy" | "range";
587
+ type: "exact" | "fuzzy" | "range" | "within";
545
588
  }, {
546
- type: "exact" | "fuzzy" | "range";
589
+ type: "exact" | "fuzzy" | "range" | "within";
547
590
  }>;
548
591
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
549
592
  value: z.ZodString;
@@ -588,13 +631,13 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
588
631
  validator: import(".").JSONSchema;
589
632
  }>, "many">>>;
590
633
  }, {
591
- fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
634
+ fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
592
635
  fieldType: z.ZodLiteral<"event">;
593
636
  }>, "strip", z.ZodTypeAny, {
594
637
  config: {
595
- type: "exact" | "fuzzy" | "range";
638
+ type: "exact" | "fuzzy" | "range" | "within";
596
639
  };
597
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
640
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
598
641
  fieldType: "event";
599
642
  options?: {
600
643
  value: string;
@@ -617,9 +660,9 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
617
660
  }[] | undefined;
618
661
  }, {
619
662
  config: {
620
- type: "exact" | "fuzzy" | "range";
663
+ type: "exact" | "fuzzy" | "range" | "within";
621
664
  };
622
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
665
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
623
666
  fieldType: "event";
624
667
  options?: {
625
668
  value: string;
@@ -655,11 +698,11 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
655
698
  }>;
656
699
  export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
657
700
  config: z.ZodObject<{
658
- type: z.ZodEnum<["fuzzy", "exact", "range"]>;
701
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
659
702
  }, "strip", z.ZodTypeAny, {
660
- type: "exact" | "fuzzy" | "range";
703
+ type: "exact" | "fuzzy" | "range" | "within";
661
704
  }, {
662
- type: "exact" | "fuzzy" | "range";
705
+ type: "exact" | "fuzzy" | "range" | "within";
663
706
  }>;
664
707
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
665
708
  value: z.ZodString;
@@ -708,7 +751,7 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
708
751
  fieldType: z.ZodLiteral<"field">;
709
752
  }>, "strip", z.ZodTypeAny, {
710
753
  config: {
711
- type: "exact" | "fuzzy" | "range";
754
+ type: "exact" | "fuzzy" | "range" | "within";
712
755
  };
713
756
  fieldId: string;
714
757
  fieldType: "field";
@@ -733,7 +776,7 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
733
776
  }[] | undefined;
734
777
  }, {
735
778
  config: {
736
- type: "exact" | "fuzzy" | "range";
779
+ type: "exact" | "fuzzy" | "range" | "within";
737
780
  };
738
781
  fieldId: string;
739
782
  fieldType: "field";
@@ -770,11 +813,11 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
770
813
  }[] | undefined;
771
814
  }>, z.ZodObject<z.objectUtil.extendShape<{
772
815
  config: z.ZodObject<{
773
- type: z.ZodEnum<["fuzzy", "exact", "range"]>;
816
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
774
817
  }, "strip", z.ZodTypeAny, {
775
- type: "exact" | "fuzzy" | "range";
818
+ type: "exact" | "fuzzy" | "range" | "within";
776
819
  }, {
777
- type: "exact" | "fuzzy" | "range";
820
+ type: "exact" | "fuzzy" | "range" | "within";
778
821
  }>;
779
822
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
780
823
  value: z.ZodString;
@@ -819,13 +862,13 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
819
862
  validator: import(".").JSONSchema;
820
863
  }>, "many">>>;
821
864
  }, {
822
- fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
865
+ fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
823
866
  fieldType: z.ZodLiteral<"event">;
824
867
  }>, "strip", z.ZodTypeAny, {
825
868
  config: {
826
- type: "exact" | "fuzzy" | "range";
869
+ type: "exact" | "fuzzy" | "range" | "within";
827
870
  };
828
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
871
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
829
872
  fieldType: "event";
830
873
  options?: {
831
874
  value: string;
@@ -848,9 +891,9 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
848
891
  }[] | undefined;
849
892
  }, {
850
893
  config: {
851
- type: "exact" | "fuzzy" | "range";
894
+ type: "exact" | "fuzzy" | "range" | "within";
852
895
  };
853
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
896
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
854
897
  fieldType: "event";
855
898
  options?: {
856
899
  value: string;
@@ -893,11 +936,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
893
936
  }>;
894
937
  fields: z.ZodArray<z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
895
938
  config: z.ZodObject<{
896
- type: z.ZodEnum<["fuzzy", "exact", "range"]>;
939
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
897
940
  }, "strip", z.ZodTypeAny, {
898
- type: "exact" | "fuzzy" | "range";
941
+ type: "exact" | "fuzzy" | "range" | "within";
899
942
  }, {
900
- type: "exact" | "fuzzy" | "range";
943
+ type: "exact" | "fuzzy" | "range" | "within";
901
944
  }>;
902
945
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
903
946
  value: z.ZodString;
@@ -946,7 +989,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
946
989
  fieldType: z.ZodLiteral<"field">;
947
990
  }>, "strip", z.ZodTypeAny, {
948
991
  config: {
949
- type: "exact" | "fuzzy" | "range";
992
+ type: "exact" | "fuzzy" | "range" | "within";
950
993
  };
951
994
  fieldId: string;
952
995
  fieldType: "field";
@@ -971,7 +1014,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
971
1014
  }[] | undefined;
972
1015
  }, {
973
1016
  config: {
974
- type: "exact" | "fuzzy" | "range";
1017
+ type: "exact" | "fuzzy" | "range" | "within";
975
1018
  };
976
1019
  fieldId: string;
977
1020
  fieldType: "field";
@@ -1008,11 +1051,11 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1008
1051
  }[] | undefined;
1009
1052
  }>, z.ZodObject<z.objectUtil.extendShape<{
1010
1053
  config: z.ZodObject<{
1011
- type: z.ZodEnum<["fuzzy", "exact", "range"]>;
1054
+ type: z.ZodEnum<["fuzzy", "exact", "range", "within"]>;
1012
1055
  }, "strip", z.ZodTypeAny, {
1013
- type: "exact" | "fuzzy" | "range";
1056
+ type: "exact" | "fuzzy" | "range" | "within";
1014
1057
  }, {
1015
- type: "exact" | "fuzzy" | "range";
1058
+ type: "exact" | "fuzzy" | "range" | "within";
1016
1059
  }>;
1017
1060
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1018
1061
  value: z.ZodString;
@@ -1057,13 +1100,13 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1057
1100
  validator: import(".").JSONSchema;
1058
1101
  }>, "many">>>;
1059
1102
  }, {
1060
- fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
1103
+ fieldId: z.ZodEnum<["event.trackingId", "event.status", "event.legalStatuses.REGISTERED.acceptedAt", "event.legalStatuses.REGISTERED.createdAtLocation", "event.updatedAt"]>;
1061
1104
  fieldType: z.ZodLiteral<"event">;
1062
1105
  }>, "strip", z.ZodTypeAny, {
1063
1106
  config: {
1064
- type: "exact" | "fuzzy" | "range";
1107
+ type: "exact" | "fuzzy" | "range" | "within";
1065
1108
  };
1066
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
1109
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
1067
1110
  fieldType: "event";
1068
1111
  options?: {
1069
1112
  value: string;
@@ -1086,9 +1129,9 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1086
1129
  }[] | undefined;
1087
1130
  }, {
1088
1131
  config: {
1089
- type: "exact" | "fuzzy" | "range";
1132
+ type: "exact" | "fuzzy" | "range" | "within";
1090
1133
  };
1091
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
1134
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
1092
1135
  fieldType: "event";
1093
1136
  options?: {
1094
1137
  value: string;
@@ -1126,7 +1169,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1126
1169
  title: TranslationConfig;
1127
1170
  fields: ({
1128
1171
  config: {
1129
- type: "exact" | "fuzzy" | "range";
1172
+ type: "exact" | "fuzzy" | "range" | "within";
1130
1173
  };
1131
1174
  fieldId: string;
1132
1175
  fieldType: "field";
@@ -1151,9 +1194,9 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1151
1194
  }[] | undefined;
1152
1195
  } | {
1153
1196
  config: {
1154
- type: "exact" | "fuzzy" | "range";
1197
+ type: "exact" | "fuzzy" | "range" | "within";
1155
1198
  };
1156
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
1199
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
1157
1200
  fieldType: "event";
1158
1201
  options?: {
1159
1202
  value: string;
@@ -1183,7 +1226,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1183
1226
  };
1184
1227
  fields: ({
1185
1228
  config: {
1186
- type: "exact" | "fuzzy" | "range";
1229
+ type: "exact" | "fuzzy" | "range" | "within";
1187
1230
  };
1188
1231
  fieldId: string;
1189
1232
  fieldType: "field";
@@ -1220,9 +1263,9 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1220
1263
  }[] | undefined;
1221
1264
  } | {
1222
1265
  config: {
1223
- type: "exact" | "fuzzy" | "range";
1266
+ type: "exact" | "fuzzy" | "range" | "within";
1224
1267
  };
1225
- fieldId: "status" | "updatedAt" | "trackingId" | "legalStatus.REGISTERED.createdAt" | "legalStatus.REGISTERED.createdAtLocation";
1268
+ fieldId: "event.trackingId" | "event.status" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.updatedAt";
1226
1269
  fieldType: "event";
1227
1270
  options?: {
1228
1271
  value: string;
@@ -1257,6 +1300,8 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
1257
1300
  }[] | undefined;
1258
1301
  })[];
1259
1302
  }>;
1260
- export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;
1261
1303
  export type AdvancedSearchConfig = z.infer<typeof AdvancedSearchConfig>;
1304
+ export type AdvancedSearchConfigWithFieldsResolved = Omit<AdvancedSearchConfig, 'fields'> & {
1305
+ fields: FieldConfig[];
1306
+ };
1262
1307
  //# sourceMappingURL=AdvancedSearchConfig.d.ts.map
@@ -11,16 +11,16 @@ export declare const AddressType: {
11
11
  readonly INTERNATIONAL: "INTERNATIONAL";
12
12
  };
13
13
  export declare const FileFieldValue: z.ZodObject<{
14
- filename: z.ZodString;
14
+ path: z.ZodEffects<z.ZodString, string, string>;
15
15
  originalFilename: z.ZodString;
16
16
  type: z.ZodString;
17
17
  }, "strip", z.ZodTypeAny, {
18
18
  type: string;
19
- filename: string;
19
+ path: string;
20
20
  originalFilename: string;
21
21
  }, {
22
22
  type: string;
23
- filename: string;
23
+ path: string;
24
24
  originalFilename: string;
25
25
  }>;
26
26
  export type FileFieldValue = z.infer<typeof FileFieldValue>;
@@ -409,36 +409,36 @@ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnio
409
409
  }>]>;
410
410
  export type AddressFieldValue = z.infer<typeof AddressFieldValue>;
411
411
  export declare const FileFieldValueWithOption: z.ZodObject<{
412
- filename: z.ZodString;
412
+ path: z.ZodEffects<z.ZodString, string, string>;
413
413
  originalFilename: z.ZodString;
414
414
  type: z.ZodString;
415
415
  option: z.ZodString;
416
416
  }, "strip", z.ZodTypeAny, {
417
417
  type: string;
418
418
  option: string;
419
- filename: string;
419
+ path: string;
420
420
  originalFilename: string;
421
421
  }, {
422
422
  type: string;
423
423
  option: string;
424
- filename: string;
424
+ path: string;
425
425
  originalFilename: string;
426
426
  }>;
427
427
  export type FileFieldValueWithOption = z.infer<typeof FileFieldValueWithOption>;
428
428
  export declare const FileFieldWithOptionValue: z.ZodArray<z.ZodObject<{
429
- filename: z.ZodString;
429
+ path: z.ZodEffects<z.ZodString, string, string>;
430
430
  originalFilename: z.ZodString;
431
431
  type: z.ZodString;
432
432
  option: z.ZodString;
433
433
  }, "strip", z.ZodTypeAny, {
434
434
  type: string;
435
435
  option: string;
436
- filename: string;
436
+ path: string;
437
437
  originalFilename: string;
438
438
  }, {
439
439
  type: string;
440
440
  option: string;
441
- filename: string;
441
+ path: string;
442
442
  originalFilename: string;
443
443
  }>, "many">;
444
444
  export type FileFieldWithOptionValue = z.infer<typeof FileFieldWithOptionValue>;