@opencrvs/toolkit 1.8.0-rc.fd16d13 → 1.8.0-rc.fd31705
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/README.md +1 -1
- package/dist/commons/api/router.d.ts +6304 -12729
- package/dist/commons/conditionals/conditionals.d.ts +26 -3
- package/dist/commons/conditionals/validate.d.ts +12 -11
- package/dist/commons/events/ActionConfig.d.ts +1123 -2056
- package/dist/commons/events/ActionDocument.d.ts +8065 -452
- package/dist/commons/events/ActionInput.d.ts +3021 -594
- package/dist/commons/events/ActionType.d.ts +24 -11
- package/dist/commons/events/CompositeFieldValue.d.ts +52 -12
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +145 -61
- package/dist/commons/events/EventConfig.d.ts +551 -1206
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +1565 -544
- package/dist/commons/events/EventIndex.d.ts +6 -3
- package/dist/commons/events/EventMetadata.d.ts +3 -0
- package/dist/commons/events/FieldConfig.d.ts +483 -76
- package/dist/commons/events/FieldType.d.ts +2 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +57 -8
- package/dist/commons/events/FieldValue.d.ts +30 -10
- package/dist/commons/events/FormConfig.d.ts +633 -48
- package/dist/commons/events/PageConfig.d.ts +335 -0
- package/dist/commons/events/TemplateConfig.d.ts +2 -2
- package/dist/commons/events/defineConfig.d.ts +91 -216
- package/dist/commons/events/index.d.ts +2 -1
- package/dist/commons/events/test.utils.d.ts +87 -268
- package/dist/commons/events/utils.d.ts +90 -83
- package/dist/conditionals/index.js +166 -81
- package/dist/events/index.js +1188 -743
- package/package.json +1 -1
@@ -1,24 +1,37 @@
|
|
1
|
+
import { z } from 'zod';
|
1
2
|
/**
|
2
3
|
* Actions recognized by the system
|
3
4
|
*/
|
4
5
|
export declare const ActionType: {
|
6
|
+
readonly DELETE: "DELETE";
|
5
7
|
readonly CREATE: "CREATE";
|
6
|
-
readonly ASSIGN: "ASSIGN";
|
7
|
-
readonly UNASSIGN: "UNASSIGN";
|
8
|
-
readonly REGISTER: "REGISTER";
|
9
|
-
readonly VALIDATE: "VALIDATE";
|
10
|
-
readonly REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
11
|
-
readonly REJECT_CORRECTION: "REJECT_CORRECTION";
|
12
|
-
readonly APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
13
|
-
readonly DETECT_DUPLICATE: "DETECT_DUPLICATE";
|
14
8
|
readonly NOTIFY: "NOTIFY";
|
15
9
|
readonly DECLARE: "DECLARE";
|
16
|
-
readonly
|
17
|
-
readonly
|
18
|
-
readonly
|
10
|
+
readonly VALIDATE: "VALIDATE";
|
11
|
+
readonly REGISTER: "REGISTER";
|
12
|
+
readonly DETECT_DUPLICATE: "DETECT_DUPLICATE";
|
19
13
|
readonly REJECT: "REJECT";
|
20
14
|
readonly MARKED_AS_DUPLICATE: "MARKED_AS_DUPLICATE";
|
21
15
|
readonly ARCHIVE: "ARCHIVE";
|
16
|
+
readonly PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
|
17
|
+
readonly REQUEST_CORRECTION: "REQUEST_CORRECTION";
|
18
|
+
readonly REJECT_CORRECTION: "REJECT_CORRECTION";
|
19
|
+
readonly APPROVE_CORRECTION: "APPROVE_CORRECTION";
|
20
|
+
readonly READ: "READ";
|
21
|
+
readonly ASSIGN: "ASSIGN";
|
22
|
+
readonly UNASSIGN: "UNASSIGN";
|
22
23
|
};
|
23
24
|
export type ActionType = (typeof ActionType)[keyof typeof ActionType];
|
25
|
+
export declare const ConfirmableActions: readonly ["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"];
|
26
|
+
/** Testing building types from enums as an alternative */
|
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
|
+
/** Actions which change event data (declaration) before registration / during declaration. */
|
29
|
+
export declare const DeclarationActions: z.ZodEnum<["DECLARE", "VALIDATE", "REGISTER"]>;
|
30
|
+
export type DeclarationActionType = z.infer<typeof DeclarationActions>;
|
31
|
+
/** Actions that can modify declaration data. Request can be corrected after declaring it. */
|
32
|
+
export declare const DeclarationUpdateActions: z.ZodEnum<["DECLARE", "VALIDATE", "REGISTER", "REQUEST_CORRECTION"]>;
|
33
|
+
export type DeclarationUpdateActionType = z.infer<typeof DeclarationUpdateActions>;
|
34
|
+
/** Actions which update annotation or status of an event. */
|
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 AnnotationActionType = z.infer<typeof annotationActions>;
|
24
37
|
//# sourceMappingURL=ActionType.d.ts.map
|
@@ -6,6 +6,10 @@ export declare const GeographicalArea: {
|
|
6
6
|
readonly URBAN: "URBAN";
|
7
7
|
readonly RURAL: "RURAL";
|
8
8
|
};
|
9
|
+
export declare const AddressType: {
|
10
|
+
readonly DOMESTIC: "DOMESTIC";
|
11
|
+
readonly INTERNATIONAL: "INTERNATIONAL";
|
12
|
+
};
|
9
13
|
export declare const FileFieldValue: z.ZodObject<{
|
10
14
|
filename: z.ZodString;
|
11
15
|
originalFilename: z.ZodString;
|
@@ -21,7 +25,8 @@ export declare const FileFieldValue: z.ZodObject<{
|
|
21
25
|
}>;
|
22
26
|
export type FileFieldValue = z.infer<typeof FileFieldValue>;
|
23
27
|
export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
|
24
|
-
country: z.
|
28
|
+
country: z.ZodString;
|
29
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
25
30
|
province: z.ZodString;
|
26
31
|
district: z.ZodString;
|
27
32
|
}, {
|
@@ -34,6 +39,7 @@ export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
|
|
34
39
|
}>, "strip", z.ZodTypeAny, {
|
35
40
|
country: string;
|
36
41
|
district: string;
|
42
|
+
addressType: "DOMESTIC";
|
37
43
|
province: string;
|
38
44
|
urbanOrRural: "URBAN";
|
39
45
|
number?: string | undefined;
|
@@ -44,6 +50,7 @@ export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
|
|
44
50
|
}, {
|
45
51
|
country: string;
|
46
52
|
district: string;
|
53
|
+
addressType: "DOMESTIC";
|
47
54
|
province: string;
|
48
55
|
urbanOrRural: "URBAN";
|
49
56
|
number?: string | undefined;
|
@@ -53,7 +60,8 @@ export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
|
|
53
60
|
zipCode?: string | undefined;
|
54
61
|
}>;
|
55
62
|
export declare const RuralAddressValue: z.ZodObject<z.objectUtil.extendShape<{
|
56
|
-
country: z.
|
63
|
+
country: z.ZodString;
|
64
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
57
65
|
province: z.ZodString;
|
58
66
|
district: z.ZodString;
|
59
67
|
}, {
|
@@ -62,18 +70,21 @@ export declare const RuralAddressValue: z.ZodObject<z.objectUtil.extendShape<{
|
|
62
70
|
}>, "strip", z.ZodTypeAny, {
|
63
71
|
country: string;
|
64
72
|
district: string;
|
73
|
+
addressType: "DOMESTIC";
|
65
74
|
province: string;
|
66
75
|
urbanOrRural: "RURAL";
|
67
76
|
village?: string | undefined;
|
68
77
|
}, {
|
69
78
|
country: string;
|
70
79
|
district: string;
|
80
|
+
addressType: "DOMESTIC";
|
71
81
|
province: string;
|
72
82
|
urbanOrRural: "RURAL";
|
73
83
|
village?: string | undefined;
|
74
84
|
}>;
|
75
85
|
export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
|
76
|
-
country: z.
|
86
|
+
country: z.ZodString;
|
87
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
77
88
|
province: z.ZodString;
|
78
89
|
district: z.ZodString;
|
79
90
|
}, {
|
@@ -86,6 +97,7 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
|
|
86
97
|
}>, "strip", z.ZodTypeAny, {
|
87
98
|
country: string;
|
88
99
|
district: string;
|
100
|
+
addressType: "DOMESTIC";
|
89
101
|
province: string;
|
90
102
|
urbanOrRural: "URBAN";
|
91
103
|
number?: string | null | undefined;
|
@@ -96,6 +108,7 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
|
|
96
108
|
}, {
|
97
109
|
country: string;
|
98
110
|
district: string;
|
111
|
+
addressType: "DOMESTIC";
|
99
112
|
province: string;
|
100
113
|
urbanOrRural: "URBAN";
|
101
114
|
number?: string | null | undefined;
|
@@ -105,7 +118,8 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
|
|
105
118
|
zipCode?: string | null | undefined;
|
106
119
|
}>;
|
107
120
|
export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
|
108
|
-
country: z.
|
121
|
+
country: z.ZodString;
|
122
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
109
123
|
province: z.ZodString;
|
110
124
|
district: z.ZodString;
|
111
125
|
}, {
|
@@ -114,18 +128,21 @@ export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
|
|
114
128
|
}>, "strip", z.ZodTypeAny, {
|
115
129
|
country: string;
|
116
130
|
district: string;
|
131
|
+
addressType: "DOMESTIC";
|
117
132
|
province: string;
|
118
133
|
urbanOrRural: "RURAL";
|
119
134
|
village?: string | null | undefined;
|
120
135
|
}, {
|
121
136
|
country: string;
|
122
137
|
district: string;
|
138
|
+
addressType: "DOMESTIC";
|
123
139
|
province: string;
|
124
140
|
urbanOrRural: "RURAL";
|
125
141
|
village?: string | null | undefined;
|
126
142
|
}>;
|
127
143
|
export declare const GenericAddressValue: z.ZodObject<{
|
128
|
-
country: z.
|
144
|
+
country: z.ZodString;
|
145
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
129
146
|
state: z.ZodString;
|
130
147
|
district2: z.ZodString;
|
131
148
|
cityOrTown: z.ZodOptional<z.ZodString>;
|
@@ -136,6 +153,7 @@ export declare const GenericAddressValue: z.ZodObject<{
|
|
136
153
|
}, "strip", z.ZodTypeAny, {
|
137
154
|
country: string;
|
138
155
|
state: string;
|
156
|
+
addressType: "INTERNATIONAL";
|
139
157
|
district2: string;
|
140
158
|
cityOrTown?: string | undefined;
|
141
159
|
addressLine1?: string | undefined;
|
@@ -145,6 +163,7 @@ export declare const GenericAddressValue: z.ZodObject<{
|
|
145
163
|
}, {
|
146
164
|
country: string;
|
147
165
|
state: string;
|
166
|
+
addressType: "INTERNATIONAL";
|
148
167
|
district2: string;
|
149
168
|
cityOrTown?: string | undefined;
|
150
169
|
addressLine1?: string | undefined;
|
@@ -153,7 +172,8 @@ export declare const GenericAddressValue: z.ZodObject<{
|
|
153
172
|
postcodeOrZip?: string | undefined;
|
154
173
|
}>;
|
155
174
|
export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
156
|
-
country: z.
|
175
|
+
country: z.ZodString;
|
176
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
157
177
|
province: z.ZodString;
|
158
178
|
district: z.ZodString;
|
159
179
|
}, {
|
@@ -166,6 +186,7 @@ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urb
|
|
166
186
|
}>, "strip", z.ZodTypeAny, {
|
167
187
|
country: string;
|
168
188
|
district: string;
|
189
|
+
addressType: "DOMESTIC";
|
169
190
|
province: string;
|
170
191
|
urbanOrRural: "URBAN";
|
171
192
|
number?: string | undefined;
|
@@ -176,6 +197,7 @@ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urb
|
|
176
197
|
}, {
|
177
198
|
country: string;
|
178
199
|
district: string;
|
200
|
+
addressType: "DOMESTIC";
|
179
201
|
province: string;
|
180
202
|
urbanOrRural: "URBAN";
|
181
203
|
number?: string | undefined;
|
@@ -184,7 +206,8 @@ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urb
|
|
184
206
|
street?: string | undefined;
|
185
207
|
zipCode?: string | undefined;
|
186
208
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
187
|
-
country: z.
|
209
|
+
country: z.ZodString;
|
210
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
188
211
|
province: z.ZodString;
|
189
212
|
district: z.ZodString;
|
190
213
|
}, {
|
@@ -193,17 +216,20 @@ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urb
|
|
193
216
|
}>, "strip", z.ZodTypeAny, {
|
194
217
|
country: string;
|
195
218
|
district: string;
|
219
|
+
addressType: "DOMESTIC";
|
196
220
|
province: string;
|
197
221
|
urbanOrRural: "RURAL";
|
198
222
|
village?: string | undefined;
|
199
223
|
}, {
|
200
224
|
country: string;
|
201
225
|
district: string;
|
226
|
+
addressType: "DOMESTIC";
|
202
227
|
province: string;
|
203
228
|
urbanOrRural: "RURAL";
|
204
229
|
village?: string | undefined;
|
205
230
|
}>]>, z.ZodObject<{
|
206
|
-
country: z.
|
231
|
+
country: z.ZodString;
|
232
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
207
233
|
state: z.ZodString;
|
208
234
|
district2: z.ZodString;
|
209
235
|
cityOrTown: z.ZodOptional<z.ZodString>;
|
@@ -214,6 +240,7 @@ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urb
|
|
214
240
|
}, "strip", z.ZodTypeAny, {
|
215
241
|
country: string;
|
216
242
|
state: string;
|
243
|
+
addressType: "INTERNATIONAL";
|
217
244
|
district2: string;
|
218
245
|
cityOrTown?: string | undefined;
|
219
246
|
addressLine1?: string | undefined;
|
@@ -223,6 +250,7 @@ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urb
|
|
223
250
|
}, {
|
224
251
|
country: string;
|
225
252
|
state: string;
|
253
|
+
addressType: "INTERNATIONAL";
|
226
254
|
district2: string;
|
227
255
|
cityOrTown?: string | undefined;
|
228
256
|
addressLine1?: string | undefined;
|
@@ -231,7 +259,8 @@ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urb
|
|
231
259
|
postcodeOrZip?: string | undefined;
|
232
260
|
}>]>;
|
233
261
|
export declare const GenericAddressUpdateValue: z.ZodObject<{
|
234
|
-
country: z.
|
262
|
+
country: z.ZodString;
|
263
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
235
264
|
state: z.ZodString;
|
236
265
|
district2: z.ZodString;
|
237
266
|
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -242,6 +271,7 @@ export declare const GenericAddressUpdateValue: z.ZodObject<{
|
|
242
271
|
}, "strip", z.ZodTypeAny, {
|
243
272
|
country: string;
|
244
273
|
state: string;
|
274
|
+
addressType: "INTERNATIONAL";
|
245
275
|
district2: string;
|
246
276
|
cityOrTown?: string | null | undefined;
|
247
277
|
addressLine1?: string | null | undefined;
|
@@ -251,6 +281,7 @@ export declare const GenericAddressUpdateValue: z.ZodObject<{
|
|
251
281
|
}, {
|
252
282
|
country: string;
|
253
283
|
state: string;
|
284
|
+
addressType: "INTERNATIONAL";
|
254
285
|
district2: string;
|
255
286
|
cityOrTown?: string | null | undefined;
|
256
287
|
addressLine1?: string | null | undefined;
|
@@ -259,7 +290,8 @@ export declare const GenericAddressUpdateValue: z.ZodObject<{
|
|
259
290
|
postcodeOrZip?: string | null | undefined;
|
260
291
|
}>;
|
261
292
|
export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
262
|
-
country: z.
|
293
|
+
country: z.ZodString;
|
294
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
263
295
|
province: z.ZodString;
|
264
296
|
district: z.ZodString;
|
265
297
|
}, {
|
@@ -272,6 +304,7 @@ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnio
|
|
272
304
|
}>, "strip", z.ZodTypeAny, {
|
273
305
|
country: string;
|
274
306
|
district: string;
|
307
|
+
addressType: "DOMESTIC";
|
275
308
|
province: string;
|
276
309
|
urbanOrRural: "URBAN";
|
277
310
|
number?: string | null | undefined;
|
@@ -282,6 +315,7 @@ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnio
|
|
282
315
|
}, {
|
283
316
|
country: string;
|
284
317
|
district: string;
|
318
|
+
addressType: "DOMESTIC";
|
285
319
|
province: string;
|
286
320
|
urbanOrRural: "URBAN";
|
287
321
|
number?: string | null | undefined;
|
@@ -290,7 +324,8 @@ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnio
|
|
290
324
|
street?: string | null | undefined;
|
291
325
|
zipCode?: string | null | undefined;
|
292
326
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
293
|
-
country: z.
|
327
|
+
country: z.ZodString;
|
328
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
294
329
|
province: z.ZodString;
|
295
330
|
district: z.ZodString;
|
296
331
|
}, {
|
@@ -299,17 +334,20 @@ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnio
|
|
299
334
|
}>, "strip", z.ZodTypeAny, {
|
300
335
|
country: string;
|
301
336
|
district: string;
|
337
|
+
addressType: "DOMESTIC";
|
302
338
|
province: string;
|
303
339
|
urbanOrRural: "RURAL";
|
304
340
|
village?: string | null | undefined;
|
305
341
|
}, {
|
306
342
|
country: string;
|
307
343
|
district: string;
|
344
|
+
addressType: "DOMESTIC";
|
308
345
|
province: string;
|
309
346
|
urbanOrRural: "RURAL";
|
310
347
|
village?: string | null | undefined;
|
311
348
|
}>]>, z.ZodObject<{
|
312
|
-
country: z.
|
349
|
+
country: z.ZodString;
|
350
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
313
351
|
state: z.ZodString;
|
314
352
|
district2: z.ZodString;
|
315
353
|
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -320,6 +358,7 @@ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnio
|
|
320
358
|
}, "strip", z.ZodTypeAny, {
|
321
359
|
country: string;
|
322
360
|
state: string;
|
361
|
+
addressType: "INTERNATIONAL";
|
323
362
|
district2: string;
|
324
363
|
cityOrTown?: string | null | undefined;
|
325
364
|
addressLine1?: string | null | undefined;
|
@@ -329,6 +368,7 @@ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnio
|
|
329
368
|
}, {
|
330
369
|
country: string;
|
331
370
|
state: string;
|
371
|
+
addressType: "INTERNATIONAL";
|
332
372
|
district2: string;
|
333
373
|
cityOrTown?: string | null | undefined;
|
334
374
|
addressLine1?: string | null | undefined;
|
@@ -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
|