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