@opencrvs/toolkit 1.8.0-rc.f8aa0c5 → 1.8.0-rc.f8e0ee5
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 +7549 -6145
- package/dist/commons/conditionals/conditionals.d.ts +0 -4
- package/dist/commons/conditionals/validate.d.ts +0 -6
- package/dist/commons/events/ActionConfig.d.ts +20914 -46894
- package/dist/commons/events/ActionDocument.d.ts +494 -1997
- package/dist/commons/events/ActionInput.d.ts +306 -1506
- package/dist/commons/events/ActionType.d.ts +0 -4
- package/dist/commons/events/AdvancedSearchConfig.d.ts +3 -279
- package/dist/commons/events/CompositeFieldValue.d.ts +0 -28
- package/dist/commons/events/Constants.d.ts +0 -1
- package/dist/commons/events/CountryConfigQueryInput.d.ts +412 -1160
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -1
- package/dist/commons/events/Draft.d.ts +40 -141
- package/dist/commons/events/EventConfig.d.ts +14286 -29320
- package/dist/commons/events/EventDocument.d.ts +355 -1294
- package/dist/commons/events/EventIndex.d.ts +191 -849
- package/dist/commons/events/EventMetadata.d.ts +64 -73
- package/dist/commons/events/FieldConfig.d.ts +888 -1875
- package/dist/commons/events/FieldType.d.ts +1 -4
- package/dist/commons/events/FieldTypeMapping.d.ts +50 -89
- package/dist/commons/events/FieldValue.d.ts +5 -41
- package/dist/commons/events/FormConfig.d.ts +2510 -8840
- package/dist/commons/events/PageConfig.d.ts +1638 -3184
- package/dist/commons/events/SummaryConfig.d.ts +5 -0
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
- package/dist/commons/events/WorkqueueConfig.d.ts +1778 -4553
- package/dist/commons/events/defineConfig.d.ts +1440 -4157
- package/dist/commons/events/field.d.ts +0 -9
- package/dist/commons/events/index.d.ts +0 -1
- package/dist/commons/events/scopes.d.ts +3 -2
- package/dist/commons/events/test.utils.d.ts +39 -148
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +19 -10122
- package/dist/conditionals/index.js +18 -38
- package/dist/events/index.js +1681 -2347
- package/dist/scopes/index.d.ts +7 -96
- package/dist/scopes/index.js +26 -105
- package/package.json +3 -3
@@ -36,8 +36,4 @@ 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 are visible in action menu and workqueue */
|
40
|
-
export declare const workqueueActions: z.ZodEnum<["DELETE", "DECLARE", "VALIDATE", "REGISTER", "PRINT_CERTIFICATE", "READ", "ASSIGN", "UNASSIGN"]>;
|
41
|
-
export type WorkqueueActionType = z.infer<typeof workqueueActions>;
|
42
|
-
export declare function isMetaAction(actionType: ActionType): boolean;
|
43
39
|
//# sourceMappingURL=ActionType.d.ts.map
|
@@ -115,31 +115,7 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
115
115
|
addressLine2?: string | undefined;
|
116
116
|
addressLine3?: string | undefined;
|
117
117
|
postcodeOrZip?: string | undefined;
|
118
|
-
}>, z.
|
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.ZodOptional<z.ZodNullable<z.ZodString>>;
|
132
|
-
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
133
|
-
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
134
|
-
}, "strip", z.ZodTypeAny, {
|
135
|
-
firstname?: string | null | undefined;
|
136
|
-
surname?: string | null | undefined;
|
137
|
-
middlename?: string | null | undefined;
|
138
|
-
}, {
|
139
|
-
firstname?: string | null | undefined;
|
140
|
-
surname?: string | null | undefined;
|
141
|
-
middlename?: string | null | undefined;
|
142
|
-
}>, z.ZodNull]>, z.ZodUndefined]>]>, z.objectOutputType<{
|
118
|
+
}>]>, z.objectOutputType<{
|
143
119
|
eventType: z.ZodOptional<z.ZodString>;
|
144
120
|
}, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
145
121
|
filename: z.ZodString;
|
@@ -254,31 +230,7 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
254
230
|
addressLine2?: string | undefined;
|
255
231
|
addressLine3?: string | undefined;
|
256
232
|
postcodeOrZip?: string | undefined;
|
257
|
-
}>, z.
|
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.ZodOptional<z.ZodNullable<z.ZodString>>;
|
271
|
-
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
272
|
-
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
273
|
-
}, "strip", z.ZodTypeAny, {
|
274
|
-
firstname?: string | null | undefined;
|
275
|
-
surname?: string | null | undefined;
|
276
|
-
middlename?: string | null | undefined;
|
277
|
-
}, {
|
278
|
-
firstname?: string | null | undefined;
|
279
|
-
surname?: string | null | undefined;
|
280
|
-
middlename?: string | null | undefined;
|
281
|
-
}>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">, z.objectInputType<{
|
233
|
+
}>]>, "strip">, z.objectInputType<{
|
282
234
|
eventType: z.ZodOptional<z.ZodString>;
|
283
235
|
}, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
284
236
|
filename: z.ZodString;
|
@@ -393,31 +345,7 @@ export declare const SearchQueryParams: z.ZodObject<{
|
|
393
345
|
addressLine2?: string | undefined;
|
394
346
|
addressLine3?: string | undefined;
|
395
347
|
postcodeOrZip?: string | undefined;
|
396
|
-
}>,
|
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.ZodOptional<z.ZodNullable<z.ZodString>>;
|
410
|
-
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
411
|
-
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
412
|
-
}, "strip", z.ZodTypeAny, {
|
413
|
-
firstname?: string | null | undefined;
|
414
|
-
surname?: string | null | undefined;
|
415
|
-
middlename?: string | null | undefined;
|
416
|
-
}, {
|
417
|
-
firstname?: string | null | undefined;
|
418
|
-
surname?: string | null | undefined;
|
419
|
-
middlename?: string | null | undefined;
|
420
|
-
}>, z.ZodNull]>, z.ZodUndefined]>]>, "strip">>;
|
348
|
+
}>]>, "strip">>;
|
421
349
|
export type SearchQueryParams = z.infer<typeof SearchQueryParams>;
|
422
350
|
export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
423
351
|
config: z.ZodObject<{
|
@@ -451,24 +379,6 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
451
379
|
defaultMessage: string;
|
452
380
|
}>>;
|
453
381
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
454
|
-
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
455
|
-
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
456
|
-
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
457
|
-
id: string;
|
458
|
-
description: string;
|
459
|
-
defaultMessage: string;
|
460
|
-
}>;
|
461
|
-
}, "strip", z.ZodTypeAny, {
|
462
|
-
message: TranslationConfig;
|
463
|
-
validator: import(".").JSONSchema;
|
464
|
-
}, {
|
465
|
-
message: {
|
466
|
-
id: string;
|
467
|
-
description: string;
|
468
|
-
defaultMessage: string;
|
469
|
-
};
|
470
|
-
validator: import(".").JSONSchema;
|
471
|
-
}>, "many">>>;
|
472
382
|
}, {
|
473
383
|
fieldId: z.ZodString;
|
474
384
|
fieldType: z.ZodLiteral<"field">;
|
@@ -493,10 +403,6 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
493
403
|
conditional: import(".").JSONSchema;
|
494
404
|
})[] | undefined;
|
495
405
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
496
|
-
validations?: {
|
497
|
-
message: TranslationConfig;
|
498
|
-
validator: import(".").JSONSchema;
|
499
|
-
}[] | undefined;
|
500
406
|
}, {
|
501
407
|
config: {
|
502
408
|
type: "exact" | "fuzzy" | "range";
|
@@ -526,14 +432,6 @@ export declare const FieldConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
526
432
|
description: string;
|
527
433
|
defaultMessage: string;
|
528
434
|
} | undefined;
|
529
|
-
validations?: {
|
530
|
-
message: {
|
531
|
-
id: string;
|
532
|
-
description: string;
|
533
|
-
defaultMessage: string;
|
534
|
-
};
|
535
|
-
validator: import(".").JSONSchema;
|
536
|
-
}[] | undefined;
|
537
435
|
}>;
|
538
436
|
export declare const EventFieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
|
539
437
|
export type EventFieldId = z.infer<typeof EventFieldId>;
|
@@ -569,24 +467,6 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
569
467
|
defaultMessage: string;
|
570
468
|
}>>;
|
571
469
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
572
|
-
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
573
|
-
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
574
|
-
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
575
|
-
id: string;
|
576
|
-
description: string;
|
577
|
-
defaultMessage: string;
|
578
|
-
}>;
|
579
|
-
}, "strip", z.ZodTypeAny, {
|
580
|
-
message: TranslationConfig;
|
581
|
-
validator: import(".").JSONSchema;
|
582
|
-
}, {
|
583
|
-
message: {
|
584
|
-
id: string;
|
585
|
-
description: string;
|
586
|
-
defaultMessage: string;
|
587
|
-
};
|
588
|
-
validator: import(".").JSONSchema;
|
589
|
-
}>, "many">>>;
|
590
470
|
}, {
|
591
471
|
fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
|
592
472
|
fieldType: z.ZodLiteral<"event">;
|
@@ -611,10 +491,6 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
611
491
|
conditional: import(".").JSONSchema;
|
612
492
|
})[] | undefined;
|
613
493
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
614
|
-
validations?: {
|
615
|
-
message: TranslationConfig;
|
616
|
-
validator: import(".").JSONSchema;
|
617
|
-
}[] | undefined;
|
618
494
|
}, {
|
619
495
|
config: {
|
620
496
|
type: "exact" | "fuzzy" | "range";
|
@@ -644,14 +520,6 @@ export declare const EventFieldConfigSchema: z.ZodObject<z.objectUtil.extendShap
|
|
644
520
|
description: string;
|
645
521
|
defaultMessage: string;
|
646
522
|
} | undefined;
|
647
|
-
validations?: {
|
648
|
-
message: {
|
649
|
-
id: string;
|
650
|
-
description: string;
|
651
|
-
defaultMessage: string;
|
652
|
-
};
|
653
|
-
validator: import(".").JSONSchema;
|
654
|
-
}[] | undefined;
|
655
523
|
}>;
|
656
524
|
export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObject<z.objectUtil.extendShape<{
|
657
525
|
config: z.ZodObject<{
|
@@ -685,24 +553,6 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
685
553
|
defaultMessage: string;
|
686
554
|
}>>;
|
687
555
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
688
|
-
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
689
|
-
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
690
|
-
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
691
|
-
id: string;
|
692
|
-
description: string;
|
693
|
-
defaultMessage: string;
|
694
|
-
}>;
|
695
|
-
}, "strip", z.ZodTypeAny, {
|
696
|
-
message: TranslationConfig;
|
697
|
-
validator: import(".").JSONSchema;
|
698
|
-
}, {
|
699
|
-
message: {
|
700
|
-
id: string;
|
701
|
-
description: string;
|
702
|
-
defaultMessage: string;
|
703
|
-
};
|
704
|
-
validator: import(".").JSONSchema;
|
705
|
-
}>, "many">>>;
|
706
556
|
}, {
|
707
557
|
fieldId: z.ZodString;
|
708
558
|
fieldType: z.ZodLiteral<"field">;
|
@@ -727,10 +577,6 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
727
577
|
conditional: import(".").JSONSchema;
|
728
578
|
})[] | undefined;
|
729
579
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
730
|
-
validations?: {
|
731
|
-
message: TranslationConfig;
|
732
|
-
validator: import(".").JSONSchema;
|
733
|
-
}[] | undefined;
|
734
580
|
}, {
|
735
581
|
config: {
|
736
582
|
type: "exact" | "fuzzy" | "range";
|
@@ -760,14 +606,6 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
760
606
|
description: string;
|
761
607
|
defaultMessage: string;
|
762
608
|
} | undefined;
|
763
|
-
validations?: {
|
764
|
-
message: {
|
765
|
-
id: string;
|
766
|
-
description: string;
|
767
|
-
defaultMessage: string;
|
768
|
-
};
|
769
|
-
validator: import(".").JSONSchema;
|
770
|
-
}[] | undefined;
|
771
609
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
772
610
|
config: z.ZodObject<{
|
773
611
|
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
@@ -800,24 +638,6 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
800
638
|
defaultMessage: string;
|
801
639
|
}>>;
|
802
640
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
803
|
-
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
804
|
-
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
805
|
-
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
806
|
-
id: string;
|
807
|
-
description: string;
|
808
|
-
defaultMessage: string;
|
809
|
-
}>;
|
810
|
-
}, "strip", z.ZodTypeAny, {
|
811
|
-
message: TranslationConfig;
|
812
|
-
validator: import(".").JSONSchema;
|
813
|
-
}, {
|
814
|
-
message: {
|
815
|
-
id: string;
|
816
|
-
description: string;
|
817
|
-
defaultMessage: string;
|
818
|
-
};
|
819
|
-
validator: import(".").JSONSchema;
|
820
|
-
}>, "many">>>;
|
821
641
|
}, {
|
822
642
|
fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
|
823
643
|
fieldType: z.ZodLiteral<"event">;
|
@@ -842,10 +662,6 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
842
662
|
conditional: import(".").JSONSchema;
|
843
663
|
})[] | undefined;
|
844
664
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
845
|
-
validations?: {
|
846
|
-
message: TranslationConfig;
|
847
|
-
validator: import(".").JSONSchema;
|
848
|
-
}[] | undefined;
|
849
665
|
}, {
|
850
666
|
config: {
|
851
667
|
type: "exact" | "fuzzy" | "range";
|
@@ -875,14 +691,6 @@ export declare const SearchField: z.ZodDiscriminatedUnion<"fieldType", [z.ZodObj
|
|
875
691
|
description: string;
|
876
692
|
defaultMessage: string;
|
877
693
|
} | undefined;
|
878
|
-
validations?: {
|
879
|
-
message: {
|
880
|
-
id: string;
|
881
|
-
description: string;
|
882
|
-
defaultMessage: string;
|
883
|
-
};
|
884
|
-
validator: import(".").JSONSchema;
|
885
|
-
}[] | undefined;
|
886
694
|
}>]>;
|
887
695
|
export type SearchField = z.infer<typeof SearchField>;
|
888
696
|
export declare const AdvancedSearchConfig: z.ZodObject<{
|
@@ -923,24 +731,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
923
731
|
defaultMessage: string;
|
924
732
|
}>>;
|
925
733
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
926
|
-
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
927
|
-
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
928
|
-
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
929
|
-
id: string;
|
930
|
-
description: string;
|
931
|
-
defaultMessage: string;
|
932
|
-
}>;
|
933
|
-
}, "strip", z.ZodTypeAny, {
|
934
|
-
message: TranslationConfig;
|
935
|
-
validator: import(".").JSONSchema;
|
936
|
-
}, {
|
937
|
-
message: {
|
938
|
-
id: string;
|
939
|
-
description: string;
|
940
|
-
defaultMessage: string;
|
941
|
-
};
|
942
|
-
validator: import(".").JSONSchema;
|
943
|
-
}>, "many">>>;
|
944
734
|
}, {
|
945
735
|
fieldId: z.ZodString;
|
946
736
|
fieldType: z.ZodLiteral<"field">;
|
@@ -965,10 +755,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
965
755
|
conditional: import(".").JSONSchema;
|
966
756
|
})[] | undefined;
|
967
757
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
968
|
-
validations?: {
|
969
|
-
message: TranslationConfig;
|
970
|
-
validator: import(".").JSONSchema;
|
971
|
-
}[] | undefined;
|
972
758
|
}, {
|
973
759
|
config: {
|
974
760
|
type: "exact" | "fuzzy" | "range";
|
@@ -998,14 +784,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
998
784
|
description: string;
|
999
785
|
defaultMessage: string;
|
1000
786
|
} | undefined;
|
1001
|
-
validations?: {
|
1002
|
-
message: {
|
1003
|
-
id: string;
|
1004
|
-
description: string;
|
1005
|
-
defaultMessage: string;
|
1006
|
-
};
|
1007
|
-
validator: import(".").JSONSchema;
|
1008
|
-
}[] | undefined;
|
1009
787
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
1010
788
|
config: z.ZodObject<{
|
1011
789
|
type: z.ZodEnum<["fuzzy", "exact", "range"]>;
|
@@ -1038,24 +816,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
1038
816
|
defaultMessage: string;
|
1039
817
|
}>>;
|
1040
818
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./Conditional").FieldConditionalType[]>, "many">>>;
|
1041
|
-
validations: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
1042
|
-
validator: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
1043
|
-
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
1044
|
-
id: string;
|
1045
|
-
description: string;
|
1046
|
-
defaultMessage: string;
|
1047
|
-
}>;
|
1048
|
-
}, "strip", z.ZodTypeAny, {
|
1049
|
-
message: TranslationConfig;
|
1050
|
-
validator: import(".").JSONSchema;
|
1051
|
-
}, {
|
1052
|
-
message: {
|
1053
|
-
id: string;
|
1054
|
-
description: string;
|
1055
|
-
defaultMessage: string;
|
1056
|
-
};
|
1057
|
-
validator: import(".").JSONSchema;
|
1058
|
-
}>, "many">>>;
|
1059
819
|
}, {
|
1060
820
|
fieldId: z.ZodEnum<["trackingId", "status", "legalStatus.REGISTERED.createdAt", "legalStatus.REGISTERED.createdAtLocation", "updatedAt"]>;
|
1061
821
|
fieldType: z.ZodLiteral<"event">;
|
@@ -1080,10 +840,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
1080
840
|
conditional: import(".").JSONSchema;
|
1081
841
|
})[] | undefined;
|
1082
842
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1083
|
-
validations?: {
|
1084
|
-
message: TranslationConfig;
|
1085
|
-
validator: import(".").JSONSchema;
|
1086
|
-
}[] | undefined;
|
1087
843
|
}, {
|
1088
844
|
config: {
|
1089
845
|
type: "exact" | "fuzzy" | "range";
|
@@ -1113,14 +869,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
1113
869
|
description: string;
|
1114
870
|
defaultMessage: string;
|
1115
871
|
} | undefined;
|
1116
|
-
validations?: {
|
1117
|
-
message: {
|
1118
|
-
id: string;
|
1119
|
-
description: string;
|
1120
|
-
defaultMessage: string;
|
1121
|
-
};
|
1122
|
-
validator: import(".").JSONSchema;
|
1123
|
-
}[] | undefined;
|
1124
872
|
}>]>, "many">;
|
1125
873
|
}, "strip", z.ZodTypeAny, {
|
1126
874
|
title: TranslationConfig;
|
@@ -1145,10 +893,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
1145
893
|
conditional: import(".").JSONSchema;
|
1146
894
|
})[] | undefined;
|
1147
895
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1148
|
-
validations?: {
|
1149
|
-
message: TranslationConfig;
|
1150
|
-
validator: import(".").JSONSchema;
|
1151
|
-
}[] | undefined;
|
1152
896
|
} | {
|
1153
897
|
config: {
|
1154
898
|
type: "exact" | "fuzzy" | "range";
|
@@ -1170,10 +914,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
1170
914
|
conditional: import(".").JSONSchema;
|
1171
915
|
})[] | undefined;
|
1172
916
|
searchCriteriaLabelPrefix?: TranslationConfig | undefined;
|
1173
|
-
validations?: {
|
1174
|
-
message: TranslationConfig;
|
1175
|
-
validator: import(".").JSONSchema;
|
1176
|
-
}[] | undefined;
|
1177
917
|
})[];
|
1178
918
|
}, {
|
1179
919
|
title: {
|
@@ -1210,14 +950,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
1210
950
|
description: string;
|
1211
951
|
defaultMessage: string;
|
1212
952
|
} | undefined;
|
1213
|
-
validations?: {
|
1214
|
-
message: {
|
1215
|
-
id: string;
|
1216
|
-
description: string;
|
1217
|
-
defaultMessage: string;
|
1218
|
-
};
|
1219
|
-
validator: import(".").JSONSchema;
|
1220
|
-
}[] | undefined;
|
1221
953
|
} | {
|
1222
954
|
config: {
|
1223
955
|
type: "exact" | "fuzzy" | "range";
|
@@ -1247,14 +979,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
1247
979
|
description: string;
|
1248
980
|
defaultMessage: string;
|
1249
981
|
} | undefined;
|
1250
|
-
validations?: {
|
1251
|
-
message: {
|
1252
|
-
id: string;
|
1253
|
-
description: string;
|
1254
|
-
defaultMessage: string;
|
1255
|
-
};
|
1256
|
-
validator: import(".").JSONSchema;
|
1257
|
-
}[] | undefined;
|
1258
982
|
})[];
|
1259
983
|
}>;
|
1260
984
|
export type AdvancedSearchConfigInput = z.infer<typeof AdvancedSearchConfig>;
|
@@ -117,34 +117,6 @@ 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.ZodOptional<z.ZodNullable<z.ZodString>>;
|
135
|
-
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
136
|
-
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
137
|
-
}, "strip", z.ZodTypeAny, {
|
138
|
-
firstname?: string | null | undefined;
|
139
|
-
surname?: string | null | undefined;
|
140
|
-
middlename?: string | null | undefined;
|
141
|
-
}, {
|
142
|
-
firstname?: string | null | undefined;
|
143
|
-
surname?: string | null | undefined;
|
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>;
|
148
120
|
export type UrbanAddressUpdateValue = z.infer<typeof UrbanAddressUpdateValue>;
|
149
121
|
export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
|
150
122
|
country: z.ZodString;
|