@opencrvs/toolkit 1.8.0-rc.fb5b9fe → 1.8.0-rc.fb96ec1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commons/api/router.d.ts +6886 -544
- package/dist/commons/conditionals/conditionals.d.ts +4 -0
- package/dist/commons/conditionals/validate.d.ts +6 -0
- package/dist/commons/events/ActionConfig.d.ts +18678 -6326
- package/dist/commons/events/ActionDocument.d.ts +1783 -280
- package/dist/commons/events/ActionInput.d.ts +1382 -182
- package/dist/commons/events/ActionType.d.ts +6 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +279 -3
- package/dist/commons/events/CompositeFieldValue.d.ts +28 -0
- package/dist/commons/events/Constants.d.ts +1 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +1161 -413
- package/dist/commons/events/Draft.d.ts +118 -17
- package/dist/commons/events/EventConfig.d.ts +10125 -4116
- package/dist/commons/events/EventDocument.d.ts +1144 -205
- package/dist/commons/events/EventIndex.d.ts +839 -185
- package/dist/commons/events/EventMetadata.d.ts +52 -40
- package/dist/commons/events/FieldConfig.d.ts +1717 -872
- package/dist/commons/events/FieldType.d.ts +4 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +89 -50
- package/dist/commons/events/FieldValue.d.ts +41 -5
- package/dist/commons/events/FormConfig.d.ts +7640 -2444
- package/dist/commons/events/PageConfig.d.ts +2816 -1540
- package/dist/commons/events/SummaryConfig.d.ts +0 -5
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
- package/dist/commons/events/WorkqueueConfig.d.ts +4460 -1685
- package/dist/commons/events/defineConfig.d.ts +971 -17
- package/dist/commons/events/field.d.ts +9 -0
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/scopes.d.ts +1 -2
- package/dist/commons/events/test.utils.d.ts +146 -38
- package/dist/commons/events/utils.d.ts +9669 -10
- package/dist/conditionals/index.js +38 -18
- package/dist/events/index.js +1703 -1045
- package/dist/scopes/index.d.ts +4 -1
- package/dist/scopes/index.js +67 -17
- package/package.json +3 -3
@@ -36,4 +36,10 @@ 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
|
+
/** Actions which are visible in action menu and workqueue */
|
42
|
+
export declare const workqueueActions: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN"]>;
|
43
|
+
export type WorkqueueActionType = z.infer<typeof workqueueActions>;
|
44
|
+
export declare function isMetaAction(actionType: ActionType): boolean;
|
39
45
|
//# sourceMappingURL=ActionType.d.ts.map
|
@@ -115,7 +115,31 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
115
115
|
addressLine2?: string | undefined;
|
116
116
|
addressLine3?: string | undefined;
|
117
117
|
postcodeOrZip?: string | undefined;
|
118
|
-
}
|
118
|
+
}>, z.ZodObject<{
|
119
|
+
firstname: z.ZodString;
|
120
|
+
surname: z.ZodString;
|
121
|
+
middlename: z.ZodOptional<z.ZodString>;
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
123
|
+
firstname: string;
|
124
|
+
surname: string;
|
125
|
+
middlename?: string | undefined;
|
126
|
+
}, {
|
127
|
+
firstname: string;
|
128
|
+
surname: string;
|
129
|
+
middlename?: string | undefined;
|
130
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
131
|
+
firstname: z.ZodString;
|
132
|
+
surname: z.ZodString;
|
133
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
135
|
+
firstname: string;
|
136
|
+
surname: string;
|
137
|
+
middlename?: string | null | undefined;
|
138
|
+
}, {
|
139
|
+
firstname: string;
|
140
|
+
surname: string;
|
141
|
+
middlename?: string | null | undefined;
|
142
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>, z.objectOutputType<{
|
119
143
|
eventType: z.ZodOptional<z.ZodString>;
|
120
144
|
}, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
121
145
|
filename: z.ZodString;
|
@@ -230,7 +254,31 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
230
254
|
addressLine2?: string | undefined;
|
231
255
|
addressLine3?: string | undefined;
|
232
256
|
postcodeOrZip?: string | undefined;
|
233
|
-
}
|
257
|
+
}>, z.ZodObject<{
|
258
|
+
firstname: z.ZodString;
|
259
|
+
surname: z.ZodString;
|
260
|
+
middlename: z.ZodOptional<z.ZodString>;
|
261
|
+
}, "strip", z.ZodTypeAny, {
|
262
|
+
firstname: string;
|
263
|
+
surname: string;
|
264
|
+
middlename?: string | undefined;
|
265
|
+
}, {
|
266
|
+
firstname: string;
|
267
|
+
surname: string;
|
268
|
+
middlename?: string | undefined;
|
269
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
270
|
+
firstname: z.ZodString;
|
271
|
+
surname: z.ZodString;
|
272
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
273
|
+
}, "strip", z.ZodTypeAny, {
|
274
|
+
firstname: string;
|
275
|
+
surname: string;
|
276
|
+
middlename?: string | null | undefined;
|
277
|
+
}, {
|
278
|
+
firstname: string;
|
279
|
+
surname: string;
|
280
|
+
middlename?: string | null | undefined;
|
281
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">, z.objectInputType<{
|
234
282
|
eventType: z.ZodOptional<z.ZodString>;
|
235
283
|
}, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
236
284
|
filename: z.ZodString;
|
@@ -345,7 +393,31 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
345
393
|
addressLine2?: string | undefined;
|
346
394
|
addressLine3?: string | undefined;
|
347
395
|
postcodeOrZip?: string | undefined;
|
348
|
-
}
|
396
|
+
}>, z.ZodObject<{
|
397
|
+
firstname: z.ZodString;
|
398
|
+
surname: z.ZodString;
|
399
|
+
middlename: z.ZodOptional<z.ZodString>;
|
400
|
+
}, "strip", z.ZodTypeAny, {
|
401
|
+
firstname: string;
|
402
|
+
surname: string;
|
403
|
+
middlename?: string | undefined;
|
404
|
+
}, {
|
405
|
+
firstname: string;
|
406
|
+
surname: string;
|
407
|
+
middlename?: string | undefined;
|
408
|
+
}>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
409
|
+
firstname: z.ZodString;
|
410
|
+
surname: z.ZodString;
|
411
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
412
|
+
}, "strip", z.ZodTypeAny, {
|
413
|
+
firstname: string;
|
414
|
+
surname: string;
|
415
|
+
middlename?: string | null | undefined;
|
416
|
+
}, {
|
417
|
+
firstname: string;
|
418
|
+
surname: string;
|
419
|
+
middlename?: string | null | undefined;
|
420
|
+
}>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">>;
|
349
421
|
export type SearchQueryParams = z.infer<typeof SearchQueryParams>;
|
350
422
|
export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
351
423
|
config: z.ZodObject<{
|
@@ -379,6 +451,24 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
379
451
|
defaultMessage: string;
|
380
452
|
}>>;
|
381
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">>>;
|
382
472
|
}, {
|
383
473
|
fieldId: z.ZodString;
|
384
474
|
fieldType: z.ZodLiteral<"field">;
|
@@ -403,6 +493,10 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
403
493
|
conditional: import(".").JSONSchema;
|
404
494
|
})[] | undefined;
|
405
495
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
496
|
+
validations?: {
|
497
|
+
message: TranslationConfig;
|
498
|
+
validator: import(".").JSONSchema;
|
499
|
+
}[] | undefined;
|
406
500
|
}, {
|
407
501
|
config: {
|
408
502
|
type: "exact" | "fuzzy" | "range";
|
@@ -432,6 +526,14 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
432
526
|
description: string;
|
433
527
|
defaultMessage: string;
|
434
528
|
} | undefined;
|
529
|
+
validations?: {
|
530
|
+
message: {
|
531
|
+
id: string;
|
532
|
+
description: string;
|
533
|
+
defaultMessage: string;
|
534
|
+
};
|
535
|
+
validator: import(".").JSONSchema;
|
536
|
+
}[] | undefined;
|
435
537
|
}>;
|
436
538
|
export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
|
437
539
|
export type EventFieldId = z.infer<typeof EventFieldId>;
|
@@ -467,6 +569,24 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
467
569
|
defaultMessage: string;
|
468
570
|
}>>;
|
469
571
|
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">>>;
|
470
590
|
}, {
|
471
591
|
fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
|
472
592
|
fieldType: z.ZodLiteral<"event">;
|
@@ -491,6 +611,10 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
491
611
|
conditional: import(".").JSONSchema;
|
492
612
|
})[] | undefined;
|
493
613
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
614
|
+
validations?: {
|
615
|
+
message: TranslationConfig;
|
616
|
+
validator: import(".").JSONSchema;
|
617
|
+
}[] | undefined;
|
494
618
|
}, {
|
495
619
|
config: {
|
496
620
|
type: "exact" | "fuzzy" | "range";
|
@@ -520,6 +644,14 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
520
644
|
description: string;
|
521
645
|
defaultMessage: string;
|
522
646
|
} | undefined;
|
647
|
+
validations?: {
|
648
|
+
message: {
|
649
|
+
id: string;
|
650
|
+
description: string;
|
651
|
+
defaultMessage: string;
|
652
|
+
};
|
653
|
+
validator: import(".").JSONSchema;
|
654
|
+
}[] | undefined;
|
523
655
|
}>;
|
524
656
|
export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
|
525
657
|
config: z.ZodObject<{
|
@@ -553,6 +685,24 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
553
685
|
defaultMessage: string;
|
554
686
|
}>>;
|
555
687
|
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">>>;
|
556
706
|
}, {
|
557
707
|
fieldId: z.ZodString;
|
558
708
|
fieldType: z.ZodLiteral<"field">;
|
@@ -577,6 +727,10 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
577
727
|
conditional: import(".").JSONSchema;
|
578
728
|
})[] | undefined;
|
579
729
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
730
|
+
validations?: {
|
731
|
+
message: TranslationConfig;
|
732
|
+
validator: import(".").JSONSchema;
|
733
|
+
}[] | undefined;
|
580
734
|
}, {
|
581
735
|
config: {
|
582
736
|
type: "exact" | "fuzzy" | "range";
|
@@ -606,6 +760,14 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
606
760
|
description: string;
|
607
761
|
defaultMessage: string;
|
608
762
|
} | undefined;
|
763
|
+
validations?: {
|
764
|
+
message: {
|
765
|
+
id: string;
|
766
|
+
description: string;
|
767
|
+
defaultMessage: string;
|
768
|
+
};
|
769
|
+
validator: import(".").JSONSchema;
|
770
|
+
}[] | undefined;
|
609
771
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
610
772
|
config: z.ZodObject<{
|
611
773
|
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
@@ -638,6 +800,24 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
638
800
|
defaultMessage: string;
|
639
801
|
}>>;
|
640
802
|
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">>>;
|
641
821
|
}, {
|
642
822
|
fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
|
643
823
|
fieldType: z.ZodLiteral<"event">;
|
@@ -662,6 +842,10 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
662
842
|
conditional: import(".").JSONSchema;
|
663
843
|
})[] | undefined;
|
664
844
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
845
|
+
validations?: {
|
846
|
+
message: TranslationConfig;
|
847
|
+
validator: import(".").JSONSchema;
|
848
|
+
}[] | undefined;
|
665
849
|
}, {
|
666
850
|
config: {
|
667
851
|
type: "exact" | "fuzzy" | "range";
|
@@ -691,6 +875,14 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
691
875
|
description: string;
|
692
876
|
defaultMessage: string;
|
693
877
|
} | undefined;
|
878
|
+
validations?: {
|
879
|
+
message: {
|
880
|
+
id: string;
|
881
|
+
description: string;
|
882
|
+
defaultMessage: string;
|
883
|
+
};
|
884
|
+
validator: import(".").JSONSchema;
|
885
|
+
}[] | undefined;
|
694
886
|
}>]>;
|
695
887
|
export type SearchField = z.infer<typeof SearchField>;
|
696
888
|
export declare const AdvancedSearchConfig: z.ZodObject<{
|
@@ -731,6 +923,24 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
731
923
|
defaultMessage: string;
|
732
924
|
}>>;
|
733
925
|
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">>>;
|
734
944
|
}, {
|
735
945
|
fieldId: z.ZodString;
|
736
946
|
fieldType: z.ZodLiteral<"field">;
|
@@ -755,6 +965,10 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
755
965
|
conditional: import(".").JSONSchema;
|
756
966
|
})[] | undefined;
|
757
967
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
968
|
+
validations?: {
|
969
|
+
message: TranslationConfig;
|
970
|
+
validator: import(".").JSONSchema;
|
971
|
+
}[] | undefined;
|
758
972
|
}, {
|
759
973
|
config: {
|
760
974
|
type: "exact" | "fuzzy" | "range";
|
@@ -784,6 +998,14 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
784
998
|
description: string;
|
785
999
|
defaultMessage: string;
|
786
1000
|
} | undefined;
|
1001
|
+
validations?: {
|
1002
|
+
message: {
|
1003
|
+
id: string;
|
1004
|
+
description: string;
|
1005
|
+
defaultMessage: string;
|
1006
|
+
};
|
1007
|
+
validator: import(".").JSONSchema;
|
1008
|
+
}[] | undefined;
|
787
1009
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
788
1010
|
config: z.ZodObject<{
|
789
1011
|
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
@@ -816,6 +1038,24 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
816
1038
|
defaultMessage: string;
|
817
1039
|
}>>;
|
818
1040
|
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">>>;
|
819
1059
|
}, {
|
820
1060
|
fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
|
821
1061
|
fieldType: z.ZodLiteral<"event">;
|
@@ -840,6 +1080,10 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
840
1080
|
conditional: import(".").JSONSchema;
|
841
1081
|
})[] | undefined;
|
842
1082
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1083
|
+
validations?: {
|
1084
|
+
message: TranslationConfig;
|
1085
|
+
validator: import(".").JSONSchema;
|
1086
|
+
}[] | undefined;
|
843
1087
|
}, {
|
844
1088
|
config: {
|
845
1089
|
type: "exact" | "fuzzy" | "range";
|
@@ -869,6 +1113,14 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
869
1113
|
description: string;
|
870
1114
|
defaultMessage: string;
|
871
1115
|
} | undefined;
|
1116
|
+
validations?: {
|
1117
|
+
message: {
|
1118
|
+
id: string;
|
1119
|
+
description: string;
|
1120
|
+
defaultMessage: string;
|
1121
|
+
};
|
1122
|
+
validator: import(".").JSONSchema;
|
1123
|
+
}[] | undefined;
|
872
1124
|
}>]>, "many">;
|
873
1125
|
}, "strip", z.ZodTypeAny, {
|
874
1126
|
title: TranslationConfig;
|
@@ -893,6 +1145,10 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
893
1145
|
conditional: import(".").JSONSchema;
|
894
1146
|
})[] | undefined;
|
895
1147
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1148
|
+
validations?: {
|
1149
|
+
message: TranslationConfig;
|
1150
|
+
validator: import(".").JSONSchema;
|
1151
|
+
}[] | undefined;
|
896
1152
|
} | {
|
897
1153
|
config: {
|
898
1154
|
type: "exact" | "fuzzy" | "range";
|
@@ -914,6 +1170,10 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
914
1170
|
conditional: import(".").JSONSchema;
|
915
1171
|
})[] | undefined;
|
916
1172
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1173
|
+
validations?: {
|
1174
|
+
message: TranslationConfig;
|
1175
|
+
validator: import(".").JSONSchema;
|
1176
|
+
}[] | undefined;
|
917
1177
|
})[];
|
918
1178
|
}, {
|
919
1179
|
title: {
|
@@ -950,6 +1210,14 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
950
1210
|
description: string;
|
951
1211
|
defaultMessage: string;
|
952
1212
|
} | undefined;
|
1213
|
+
validations?: {
|
1214
|
+
message: {
|
1215
|
+
id: string;
|
1216
|
+
description: string;
|
1217
|
+
defaultMessage: string;
|
1218
|
+
};
|
1219
|
+
validator: import(".").JSONSchema;
|
1220
|
+
}[] | undefined;
|
953
1221
|
} | {
|
954
1222
|
config: {
|
955
1223
|
type: "exact" | "fuzzy" | "range";
|
@@ -979,6 +1247,14 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
979
1247
|
description: string;
|
980
1248
|
defaultMessage: string;
|
981
1249
|
} | undefined;
|
1250
|
+
validations?: {
|
1251
|
+
message: {
|
1252
|
+
id: string;
|
1253
|
+
description: string;
|
1254
|
+
defaultMessage: string;
|
1255
|
+
};
|
1256
|
+
validator: import(".").JSONSchema;
|
1257
|
+
}[] | undefined;
|
982
1258
|
})[];
|
983
1259
|
}>;
|
984
1260
|
export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;
|
@@ -117,6 +117,34 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
|
|
117
117
|
street?: string | null | undefined;
|
118
118
|
zipCode?: string | null | undefined;
|
119
119
|
}>;
|
120
|
+
export declare const NameFieldValue: z.ZodObject<{
|
121
|
+
firstname: z.ZodString;
|
122
|
+
surname: z.ZodString;
|
123
|
+
middlename: z.ZodOptional<z.ZodString>;
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
125
|
+
firstname: string;
|
126
|
+
surname: string;
|
127
|
+
middlename?: string | undefined;
|
128
|
+
}, {
|
129
|
+
firstname: string;
|
130
|
+
surname: string;
|
131
|
+
middlename?: string | undefined;
|
132
|
+
}>;
|
133
|
+
export declare const NameFieldUpdateValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
134
|
+
firstname: z.ZodString;
|
135
|
+
surname: z.ZodString;
|
136
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
138
|
+
firstname: string;
|
139
|
+
surname: string;
|
140
|
+
middlename?: string | null | undefined;
|
141
|
+
}, {
|
142
|
+
firstname: string;
|
143
|
+
surname: string;
|
144
|
+
middlename?: string | null | undefined;
|
145
|
+
}>, z.ZodNull]>, z.ZodUndefined]>;
|
146
|
+
export type NameFieldValue = z.infer<typeof NameFieldValue>;
|
147
|
+
export type NameFieldUpdateValue = z.infer<typeof NameFieldUpdateValue>;
|
120
148
|
export type UrbanAddressUpdateValue = z.infer<typeof UrbanAddressUpdateValue>;
|
121
149
|
export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
|
122
150
|
country: z.ZodString;
|