@opencrvs/toolkit 1.8.0-rc.f876361 → 1.8.0-rc.f8a9481
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 +393 -1324
- package/dist/commons/conditionals/conditionals.d.ts +15 -8
- package/dist/commons/conditionals/validate.d.ts +12 -17
- package/dist/commons/events/ActionDocument.d.ts +214 -2
- package/dist/commons/events/ActionInput.d.ts +1135 -232
- package/dist/commons/events/ActionType.d.ts +5 -3
- package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +27 -10
- package/dist/commons/events/EventConfig.d.ts +153 -68
- package/dist/commons/events/EventDocument.d.ts +165 -1
- package/dist/commons/events/EventIndex.d.ts +6 -0
- package/dist/commons/events/EventMetadata.d.ts +6 -0
- package/dist/commons/events/FieldConfig.d.ts +212 -33
- package/dist/commons/events/PageConfig.d.ts +0 -24
- package/dist/commons/events/SummaryConfig.d.ts +93 -7
- package/dist/commons/events/TemplateConfig.d.ts +5 -5
- package/dist/commons/events/User.d.ts +5 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +44 -20
- package/dist/commons/events/defineConfig.d.ts +13 -8
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/scopes.d.ts +25 -0
- package/dist/commons/events/test.utils.d.ts +20 -112
- package/dist/commons/events/utils.d.ts +65 -56
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +131 -151
- package/dist/events/index.js +1037 -783
- package/package.json +1 -1
@@ -27,11 +27,13 @@ export declare const ConfirmableActions: readonly ["NOTIFY", "DECLARE", "VALIDAT
|
|
27
27
|
export declare const ActionTypes: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
|
28
28
|
/** Actions which change event data (declaration) before registration / during declaration. */
|
29
29
|
export declare const DeclarationActions: z.ZodEnum<["DECLARE", "VALIDATE", "REGISTER"]>;
|
30
|
-
export type
|
30
|
+
export type DeclarationActionType = z.infer<typeof DeclarationActions>;
|
31
31
|
/** Actions that can modify declaration data. Request can be corrected after declaring it. */
|
32
32
|
export declare const DeclarationUpdateActions: z.ZodEnum<["DECLARE", "VALIDATE", "REGISTER", "REQUEST_CORRECTION"]>;
|
33
|
-
export type
|
33
|
+
export type DeclarationUpdateActionType = z.infer<typeof DeclarationUpdateActions>;
|
34
34
|
/** Actions which update annotation or status of an event. */
|
35
35
|
export declare const annotationActions: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
|
36
|
-
export type
|
36
|
+
export type AnnotationActionType = z.infer<typeof annotationActions>;
|
37
|
+
/** Actions which requires the user to be assigned */
|
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"]>;
|
37
39
|
//# sourceMappingURL=ActionType.d.ts.map
|
@@ -117,6 +117,7 @@ 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 type UrbanAddressUpdateValue = z.infer<typeof UrbanAddressUpdateValue>;
|
120
121
|
export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
|
121
122
|
country: z.ZodString;
|
122
123
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
@@ -140,6 +141,7 @@ export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
|
|
140
141
|
urbanOrRural: "RURAL";
|
141
142
|
village?: string | null | undefined;
|
142
143
|
}>;
|
144
|
+
export type RuralAddressUpdateValue = z.infer<typeof RuralAddressUpdateValue>;
|
143
145
|
export declare const GenericAddressValue: z.ZodObject<{
|
144
146
|
country: z.ZodString;
|
145
147
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
@@ -289,6 +291,7 @@ export declare const GenericAddressUpdateValue: z.ZodObject<{
|
|
289
291
|
addressLine3?: string | null | undefined;
|
290
292
|
postcodeOrZip?: string | null | undefined;
|
291
293
|
}>;
|
294
|
+
export type GenericAddressUpdateValue = z.infer<typeof GenericAddressUpdateValue>;
|
292
295
|
export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
293
296
|
country: z.ZodString;
|
294
297
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { JSONSchema } from '../conditionals/conditionals';
|
2
2
|
import { z } from 'zod';
|
3
|
-
export declare
|
3
|
+
export declare const Conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
|
4
4
|
/**
|
5
5
|
* By default, when conditionals are undefined, action is visible and enabled to everyone.
|
6
6
|
*/
|
7
7
|
export declare const ConditionalType: {
|
8
|
-
/** When 'SHOW' conditional is defined, the action is shown to the user only if the condition is met */
|
9
8
|
readonly SHOW: "SHOW";
|
10
|
-
/** If 'ENABLE' conditional is defined, the action is enabled only if the condition is met */
|
11
9
|
readonly ENABLE: "ENABLE";
|
10
|
+
readonly DISPLAY_ON_REVIEW: "DISPLAY_ON_REVIEW";
|
12
11
|
};
|
12
|
+
export type ConditionalType = (typeof ConditionalType)[keyof typeof ConditionalType];
|
13
13
|
export declare const ShowConditional: z.ZodObject<{
|
14
14
|
type: z.ZodLiteral<"SHOW">;
|
15
15
|
conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
|
@@ -31,9 +31,25 @@ export declare const EnableConditional: z.ZodObject<{
|
|
31
31
|
conditional: JSONSchema;
|
32
32
|
}>;
|
33
33
|
/** @knipignore */
|
34
|
-
export type
|
34
|
+
export type ActionConditionalType = typeof ShowConditional | typeof EnableConditional;
|
35
35
|
/** @knipignore */
|
36
36
|
export type InferredActionConditional = z.infer<typeof ShowConditional> | z.infer<typeof EnableConditional>;
|
37
|
-
export declare const ActionConditional: z.ZodDiscriminatedUnion<"type",
|
37
|
+
export declare const ActionConditional: z.ZodDiscriminatedUnion<"type", ActionConditionalType[]>;
|
38
38
|
export type ActionConditional = InferredActionConditional;
|
39
|
+
export declare const DisplayOnReviewConditional: z.ZodObject<{
|
40
|
+
type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
|
41
|
+
conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
43
|
+
type: "DISPLAY_ON_REVIEW";
|
44
|
+
conditional: JSONSchema;
|
45
|
+
}, {
|
46
|
+
type: "DISPLAY_ON_REVIEW";
|
47
|
+
conditional: JSONSchema;
|
48
|
+
}>;
|
49
|
+
/** @knipignore */
|
50
|
+
export type FieldConditionalType = typeof ShowConditional | typeof EnableConditional | typeof DisplayOnReviewConditional;
|
51
|
+
/** @knipignore */
|
52
|
+
export type InferredFieldConditional = z.infer<typeof ShowConditional> | z.infer<typeof EnableConditional> | z.infer<typeof DisplayOnReviewConditional>;
|
53
|
+
export declare const FieldConditional: z.ZodDiscriminatedUnion<"type", FieldConditionalType[]>;
|
54
|
+
export type FieldConditional = z.infer<typeof FieldConditional>;
|
39
55
|
//# sourceMappingURL=Conditional.d.ts.map
|
@@ -6,8 +6,10 @@ export declare const Draft: z.ZodObject<{
|
|
6
6
|
createdAt: z.ZodString;
|
7
7
|
action: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
8
8
|
id: z.ZodString;
|
9
|
+
transactionId: z.ZodString;
|
9
10
|
createdAt: z.ZodString;
|
10
11
|
createdBy: z.ZodString;
|
12
|
+
createdByRole: z.ZodString;
|
11
13
|
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
12
14
|
filename: z.ZodString;
|
13
15
|
originalFilename: z.ZodString;
|
@@ -241,10 +243,13 @@ export declare const Draft: z.ZodObject<{
|
|
241
243
|
originalActionId: z.ZodOptional<z.ZodString>;
|
242
244
|
}, {
|
243
245
|
type: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
|
244
|
-
}>, "id"
|
246
|
+
}>, "id">, "strip", z.ZodTypeAny, {
|
245
247
|
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
248
|
+
status: "Rejected" | "Requested" | "Accepted";
|
249
|
+
transactionId: string;
|
246
250
|
createdAt: string;
|
247
251
|
createdBy: string;
|
252
|
+
createdByRole: string;
|
248
253
|
declaration: Record<string, string | number | boolean | {
|
249
254
|
type: string;
|
250
255
|
filename: string;
|
@@ -325,8 +330,11 @@ export declare const Draft: z.ZodObject<{
|
|
325
330
|
originalActionId?: string | undefined;
|
326
331
|
}, {
|
327
332
|
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
333
|
+
status: "Rejected" | "Requested" | "Accepted";
|
334
|
+
transactionId: string;
|
328
335
|
createdAt: string;
|
329
336
|
createdBy: string;
|
337
|
+
createdByRole: string;
|
330
338
|
declaration: Record<string, string | number | boolean | {
|
331
339
|
type: string;
|
332
340
|
filename: string;
|
@@ -408,13 +416,16 @@ export declare const Draft: z.ZodObject<{
|
|
408
416
|
}>;
|
409
417
|
}, "strip", z.ZodTypeAny, {
|
410
418
|
id: string;
|
419
|
+
transactionId: string;
|
411
420
|
createdAt: string;
|
412
421
|
eventId: string;
|
413
|
-
transactionId: string;
|
414
422
|
action: {
|
415
423
|
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
424
|
+
status: "Rejected" | "Requested" | "Accepted";
|
425
|
+
transactionId: string;
|
416
426
|
createdAt: string;
|
417
427
|
createdBy: string;
|
428
|
+
createdByRole: string;
|
418
429
|
declaration: Record<string, string | number | boolean | {
|
419
430
|
type: string;
|
420
431
|
filename: string;
|
@@ -496,13 +507,16 @@ export declare const Draft: z.ZodObject<{
|
|
496
507
|
};
|
497
508
|
}, {
|
498
509
|
id: string;
|
510
|
+
transactionId: string;
|
499
511
|
createdAt: string;
|
500
512
|
eventId: string;
|
501
|
-
transactionId: string;
|
502
513
|
action: {
|
503
514
|
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
515
|
+
status: "Rejected" | "Requested" | "Accepted";
|
516
|
+
transactionId: string;
|
504
517
|
createdAt: string;
|
505
518
|
createdBy: string;
|
519
|
+
createdByRole: string;
|
506
520
|
declaration: Record<string, string | number | boolean | {
|
507
521
|
type: string;
|
508
522
|
filename: string;
|
@@ -586,7 +600,7 @@ export declare const Draft: z.ZodObject<{
|
|
586
600
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
587
601
|
eventId: z.ZodString;
|
588
602
|
transactionId: z.ZodString;
|
589
|
-
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
603
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
590
604
|
filename: z.ZodString;
|
591
605
|
originalFilename: z.ZodString;
|
592
606
|
type: z.ZodString;
|
@@ -699,7 +713,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
699
713
|
addressLine2?: string | null | undefined;
|
700
714
|
addressLine3?: string | null | undefined;
|
701
715
|
postcodeOrZip?: string | null | undefined;
|
702
|
-
}>]
|
716
|
+
}>]>>>;
|
703
717
|
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
704
718
|
filename: z.ZodString;
|
705
719
|
originalFilename: z.ZodString;
|
@@ -815,10 +829,12 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
815
829
|
postcodeOrZip?: string | null | undefined;
|
816
830
|
}>]>>>;
|
817
831
|
originalActionId: z.ZodOptional<z.ZodString>;
|
832
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
818
833
|
}, {
|
819
834
|
type: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
|
820
835
|
}>, "strip", z.ZodTypeAny, {
|
821
836
|
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
837
|
+
transactionId: string;
|
822
838
|
declaration: Record<string, string | number | boolean | {
|
823
839
|
type: string;
|
824
840
|
filename: string;
|
@@ -858,7 +874,6 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
858
874
|
originalFilename: string;
|
859
875
|
}[] | undefined>;
|
860
876
|
eventId: string;
|
861
|
-
transactionId: string;
|
862
877
|
annotation?: Record<string, string | number | boolean | {
|
863
878
|
type: string;
|
864
879
|
filename: string;
|
@@ -898,9 +913,12 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
898
913
|
originalFilename: string;
|
899
914
|
}[] | undefined> | undefined;
|
900
915
|
originalActionId?: string | undefined;
|
916
|
+
keepAssignment?: boolean | undefined;
|
901
917
|
}, {
|
902
918
|
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
903
|
-
|
919
|
+
transactionId: string;
|
920
|
+
eventId: string;
|
921
|
+
declaration?: Record<string, string | number | boolean | {
|
904
922
|
type: string;
|
905
923
|
filename: string;
|
906
924
|
originalFilename: string;
|
@@ -937,9 +955,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
937
955
|
option: string;
|
938
956
|
filename: string;
|
939
957
|
originalFilename: string;
|
940
|
-
}[] | undefined
|
941
|
-
eventId: string;
|
942
|
-
transactionId: string;
|
958
|
+
}[] | undefined> | undefined;
|
943
959
|
annotation?: Record<string, string | number | boolean | {
|
944
960
|
type: string;
|
945
961
|
filename: string;
|
@@ -979,6 +995,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
979
995
|
originalFilename: string;
|
980
996
|
}[] | undefined> | undefined;
|
981
997
|
originalActionId?: string | undefined;
|
998
|
+
keepAssignment?: boolean | undefined;
|
982
999
|
}>;
|
983
1000
|
export type Draft = z.infer<typeof Draft>;
|
984
1001
|
export type DraftInput = z.infer<typeof DraftInput>;
|
@@ -37,7 +37,23 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
37
37
|
defaultMessage: string;
|
38
38
|
} | undefined;
|
39
39
|
}>;
|
40
|
-
fields: z.ZodArray<z.ZodObject<{
|
40
|
+
fields: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
41
|
+
emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
42
|
+
id: string;
|
43
|
+
description: string;
|
44
|
+
defaultMessage: string;
|
45
|
+
}>>;
|
46
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
47
|
+
type: z.ZodLiteral<"SHOW">;
|
48
|
+
conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
50
|
+
type: "SHOW";
|
51
|
+
conditional: import(".").JSONSchema;
|
52
|
+
}, {
|
53
|
+
type: "SHOW";
|
54
|
+
conditional: import(".").JSONSchema;
|
55
|
+
}>, "many">>>;
|
56
|
+
}, {
|
41
57
|
id: z.ZodString;
|
42
58
|
value: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
43
59
|
id: string;
|
@@ -54,10 +70,14 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
54
70
|
description: string;
|
55
71
|
defaultMessage: string;
|
56
72
|
}>>;
|
57
|
-
}
|
73
|
+
}>, "strip", z.ZodTypeAny, {
|
58
74
|
id: string;
|
59
75
|
value: TranslationConfig;
|
60
76
|
label: TranslationConfig;
|
77
|
+
conditionals?: {
|
78
|
+
type: "SHOW";
|
79
|
+
conditional: import(".").JSONSchema;
|
80
|
+
}[] | undefined;
|
61
81
|
emptyValueMessage?: TranslationConfig | undefined;
|
62
82
|
}, {
|
63
83
|
id: string;
|
@@ -71,24 +91,75 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
71
91
|
description: string;
|
72
92
|
defaultMessage: string;
|
73
93
|
};
|
94
|
+
conditionals?: {
|
95
|
+
type: "SHOW";
|
96
|
+
conditional: import(".").JSONSchema;
|
97
|
+
}[] | undefined;
|
74
98
|
emptyValueMessage?: {
|
75
99
|
id: string;
|
76
100
|
description: string;
|
77
101
|
defaultMessage: string;
|
78
102
|
} | undefined;
|
79
|
-
}>,
|
103
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
104
|
+
emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
105
|
+
id: string;
|
106
|
+
description: string;
|
107
|
+
defaultMessage: string;
|
108
|
+
}>>;
|
109
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
110
|
+
type: z.ZodLiteral<"SHOW">;
|
111
|
+
conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
113
|
+
type: "SHOW";
|
114
|
+
conditional: import(".").JSONSchema;
|
115
|
+
}, {
|
116
|
+
type: "SHOW";
|
117
|
+
conditional: import(".").JSONSchema;
|
118
|
+
}>, "many">>>;
|
119
|
+
}, {
|
120
|
+
fieldId: z.ZodString;
|
121
|
+
}>, "strip", z.ZodTypeAny, {
|
122
|
+
fieldId: string;
|
123
|
+
conditionals?: {
|
124
|
+
type: "SHOW";
|
125
|
+
conditional: import(".").JSONSchema;
|
126
|
+
}[] | undefined;
|
127
|
+
emptyValueMessage?: TranslationConfig | undefined;
|
128
|
+
}, {
|
129
|
+
fieldId: string;
|
130
|
+
conditionals?: {
|
131
|
+
type: "SHOW";
|
132
|
+
conditional: import(".").JSONSchema;
|
133
|
+
}[] | undefined;
|
134
|
+
emptyValueMessage?: {
|
135
|
+
id: string;
|
136
|
+
description: string;
|
137
|
+
defaultMessage: string;
|
138
|
+
} | undefined;
|
139
|
+
}>]>, "many">;
|
80
140
|
}, "strip", z.ZodTypeAny, {
|
81
141
|
title: {
|
82
142
|
id: string;
|
83
143
|
label: TranslationConfig;
|
84
144
|
emptyValueMessage?: TranslationConfig | undefined;
|
85
145
|
};
|
86
|
-
fields: {
|
146
|
+
fields: ({
|
147
|
+
fieldId: string;
|
148
|
+
conditionals?: {
|
149
|
+
type: "SHOW";
|
150
|
+
conditional: import(".").JSONSchema;
|
151
|
+
}[] | undefined;
|
152
|
+
emptyValueMessage?: TranslationConfig | undefined;
|
153
|
+
} | {
|
87
154
|
id: string;
|
88
155
|
value: TranslationConfig;
|
89
156
|
label: TranslationConfig;
|
157
|
+
conditionals?: {
|
158
|
+
type: "SHOW";
|
159
|
+
conditional: import(".").JSONSchema;
|
160
|
+
}[] | undefined;
|
90
161
|
emptyValueMessage?: TranslationConfig | undefined;
|
91
|
-
}[];
|
162
|
+
})[];
|
92
163
|
}, {
|
93
164
|
title: {
|
94
165
|
id: string;
|
@@ -103,7 +174,18 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
103
174
|
defaultMessage: string;
|
104
175
|
} | undefined;
|
105
176
|
};
|
106
|
-
fields: {
|
177
|
+
fields: ({
|
178
|
+
fieldId: string;
|
179
|
+
conditionals?: {
|
180
|
+
type: "SHOW";
|
181
|
+
conditional: import(".").JSONSchema;
|
182
|
+
}[] | undefined;
|
183
|
+
emptyValueMessage?: {
|
184
|
+
id: string;
|
185
|
+
description: string;
|
186
|
+
defaultMessage: string;
|
187
|
+
} | undefined;
|
188
|
+
} | {
|
107
189
|
id: string;
|
108
190
|
value: {
|
109
191
|
id: string;
|
@@ -115,12 +197,16 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
115
197
|
description: string;
|
116
198
|
defaultMessage: string;
|
117
199
|
};
|
200
|
+
conditionals?: {
|
201
|
+
type: "SHOW";
|
202
|
+
conditional: import(".").JSONSchema;
|
203
|
+
}[] | undefined;
|
118
204
|
emptyValueMessage?: {
|
119
205
|
id: string;
|
120
206
|
description: string;
|
121
207
|
defaultMessage: string;
|
122
208
|
} | undefined;
|
123
|
-
}[];
|
209
|
+
})[];
|
124
210
|
}>;
|
125
211
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
126
212
|
id: string;
|
@@ -189,35 +275,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
189
275
|
conditional?: import(".").JSONSchema | undefined;
|
190
276
|
}[];
|
191
277
|
}>;
|
192
|
-
workqueues: z.ZodArray<z.ZodObject<{
|
193
|
-
id: z.ZodString;
|
194
|
-
filters: z.ZodArray<z.ZodObject<{
|
195
|
-
status: z.ZodArray<z.ZodNativeEnum<{
|
196
|
-
readonly CREATED: "CREATED";
|
197
|
-
readonly NOTIFIED: "NOTIFIED";
|
198
|
-
readonly DECLARED: "DECLARED";
|
199
|
-
readonly VALIDATED: "VALIDATED";
|
200
|
-
readonly REGISTERED: "REGISTERED";
|
201
|
-
readonly CERTIFIED: "CERTIFIED";
|
202
|
-
readonly REJECTED: "REJECTED";
|
203
|
-
readonly ARCHIVED: "ARCHIVED";
|
204
|
-
}>, "many">;
|
205
|
-
}, "strip", z.ZodTypeAny, {
|
206
|
-
status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
207
|
-
}, {
|
208
|
-
status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
209
|
-
}>, "many">;
|
210
|
-
}, "strip", z.ZodTypeAny, {
|
211
|
-
id: string;
|
212
|
-
filters: {
|
213
|
-
status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
214
|
-
}[];
|
215
|
-
}, {
|
216
|
-
id: string;
|
217
|
-
filters: {
|
218
|
-
status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
219
|
-
}[];
|
220
|
-
}>, "many">;
|
221
278
|
deduplication: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
222
279
|
id: z.ZodString;
|
223
280
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
@@ -517,19 +574,24 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
517
574
|
label: TranslationConfig;
|
518
575
|
emptyValueMessage?: TranslationConfig | undefined;
|
519
576
|
};
|
520
|
-
fields: {
|
577
|
+
fields: ({
|
578
|
+
fieldId: string;
|
579
|
+
conditionals?: {
|
580
|
+
type: "SHOW";
|
581
|
+
conditional: import(".").JSONSchema;
|
582
|
+
}[] | undefined;
|
583
|
+
emptyValueMessage?: TranslationConfig | undefined;
|
584
|
+
} | {
|
521
585
|
id: string;
|
522
586
|
value: TranslationConfig;
|
523
587
|
label: TranslationConfig;
|
588
|
+
conditionals?: {
|
589
|
+
type: "SHOW";
|
590
|
+
conditional: import(".").JSONSchema;
|
591
|
+
}[] | undefined;
|
524
592
|
emptyValueMessage?: TranslationConfig | undefined;
|
525
|
-
}[];
|
593
|
+
})[];
|
526
594
|
};
|
527
|
-
workqueues: {
|
528
|
-
id: string;
|
529
|
-
filters: {
|
530
|
-
status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
531
|
-
}[];
|
532
|
-
}[];
|
533
595
|
deduplication: {
|
534
596
|
id: string;
|
535
597
|
label: TranslationConfig;
|
@@ -927,7 +989,18 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
927
989
|
defaultMessage: string;
|
928
990
|
} | undefined;
|
929
991
|
};
|
930
|
-
fields: {
|
992
|
+
fields: ({
|
993
|
+
fieldId: string;
|
994
|
+
conditionals?: {
|
995
|
+
type: "SHOW";
|
996
|
+
conditional: import(".").JSONSchema;
|
997
|
+
}[] | undefined;
|
998
|
+
emptyValueMessage?: {
|
999
|
+
id: string;
|
1000
|
+
description: string;
|
1001
|
+
defaultMessage: string;
|
1002
|
+
} | undefined;
|
1003
|
+
} | {
|
931
1004
|
id: string;
|
932
1005
|
value: {
|
933
1006
|
id: string;
|
@@ -939,19 +1012,17 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
939
1012
|
description: string;
|
940
1013
|
defaultMessage: string;
|
941
1014
|
};
|
1015
|
+
conditionals?: {
|
1016
|
+
type: "SHOW";
|
1017
|
+
conditional: import(".").JSONSchema;
|
1018
|
+
}[] | undefined;
|
942
1019
|
emptyValueMessage?: {
|
943
1020
|
id: string;
|
944
1021
|
description: string;
|
945
1022
|
defaultMessage: string;
|
946
1023
|
} | undefined;
|
947
|
-
}[];
|
1024
|
+
})[];
|
948
1025
|
};
|
949
|
-
workqueues: {
|
950
|
-
id: string;
|
951
|
-
filters: {
|
952
|
-
status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
953
|
-
}[];
|
954
|
-
}[];
|
955
1026
|
deduplication?: {
|
956
1027
|
id: string;
|
957
1028
|
label: {
|
@@ -1205,19 +1276,24 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
1205
1276
|
label: TranslationConfig;
|
1206
1277
|
emptyValueMessage?: TranslationConfig | undefined;
|
1207
1278
|
};
|
1208
|
-
fields: {
|
1279
|
+
fields: ({
|
1280
|
+
fieldId: string;
|
1281
|
+
conditionals?: {
|
1282
|
+
type: "SHOW";
|
1283
|
+
conditional: import(".").JSONSchema;
|
1284
|
+
}[] | undefined;
|
1285
|
+
emptyValueMessage?: TranslationConfig | undefined;
|
1286
|
+
} | {
|
1209
1287
|
id: string;
|
1210
1288
|
value: TranslationConfig;
|
1211
1289
|
label: TranslationConfig;
|
1290
|
+
conditionals?: {
|
1291
|
+
type: "SHOW";
|
1292
|
+
conditional: import(".").JSONSchema;
|
1293
|
+
}[] | undefined;
|
1212
1294
|
emptyValueMessage?: TranslationConfig | undefined;
|
1213
|
-
}[];
|
1295
|
+
})[];
|
1214
1296
|
};
|
1215
|
-
workqueues: {
|
1216
|
-
id: string;
|
1217
|
-
filters: {
|
1218
|
-
status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1219
|
-
}[];
|
1220
|
-
}[];
|
1221
1297
|
deduplication: {
|
1222
1298
|
id: string;
|
1223
1299
|
label: TranslationConfig;
|
@@ -1615,7 +1691,18 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
1615
1691
|
defaultMessage: string;
|
1616
1692
|
} | undefined;
|
1617
1693
|
};
|
1618
|
-
fields: {
|
1694
|
+
fields: ({
|
1695
|
+
fieldId: string;
|
1696
|
+
conditionals?: {
|
1697
|
+
type: "SHOW";
|
1698
|
+
conditional: import(".").JSONSchema;
|
1699
|
+
}[] | undefined;
|
1700
|
+
emptyValueMessage?: {
|
1701
|
+
id: string;
|
1702
|
+
description: string;
|
1703
|
+
defaultMessage: string;
|
1704
|
+
} | undefined;
|
1705
|
+
} | {
|
1619
1706
|
id: string;
|
1620
1707
|
value: {
|
1621
1708
|
id: string;
|
@@ -1627,19 +1714,17 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
|
|
1627
1714
|
description: string;
|
1628
1715
|
defaultMessage: string;
|
1629
1716
|
};
|
1717
|
+
conditionals?: {
|
1718
|
+
type: "SHOW";
|
1719
|
+
conditional: import(".").JSONSchema;
|
1720
|
+
}[] | undefined;
|
1630
1721
|
emptyValueMessage?: {
|
1631
1722
|
id: string;
|
1632
1723
|
description: string;
|
1633
1724
|
defaultMessage: string;
|
1634
1725
|
} | undefined;
|
1635
|
-
}[];
|
1726
|
+
})[];
|
1636
1727
|
};
|
1637
|
-
workqueues: {
|
1638
|
-
id: string;
|
1639
|
-
filters: {
|
1640
|
-
status: ("ARCHIVED" | "CERTIFIED" | "DECLARED" | "REGISTERED" | "REJECTED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
|
1641
|
-
}[];
|
1642
|
-
}[];
|
1643
1728
|
deduplication?: {
|
1644
1729
|
id: string;
|
1645
1730
|
label: {
|