@opencrvs/toolkit 1.8.0-rc.ffe8c17 → 1.8.1-rc.a372970

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.
Files changed (33) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +6644 -9555
  3. package/dist/commons/conditionals/conditionals.d.ts +26 -3
  4. package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
  5. package/dist/commons/conditionals/validate.d.ts +14 -17
  6. package/dist/commons/events/ActionConfig.d.ts +1008 -3209
  7. package/dist/commons/events/ActionDocument.d.ts +9488 -312
  8. package/dist/commons/events/ActionInput.d.ts +5329 -472
  9. package/dist/commons/events/ActionType.d.ts +26 -11
  10. package/dist/commons/events/CompositeFieldValue.d.ts +152 -2
  11. package/dist/commons/events/Conditional.d.ts +21 -5
  12. package/dist/commons/events/Draft.d.ts +351 -48
  13. package/dist/commons/events/EventConfig.d.ts +639 -2862
  14. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  15. package/dist/commons/events/EventDocument.d.ts +3340 -424
  16. package/dist/commons/events/EventIndex.d.ts +6 -3
  17. package/dist/commons/events/EventMetadata.d.ts +3 -0
  18. package/dist/commons/events/FieldConfig.d.ts +383 -104
  19. package/dist/commons/events/FieldTypeMapping.d.ts +104 -207
  20. package/dist/commons/events/FieldValue.d.ts +71 -76
  21. package/dist/commons/events/FormConfig.d.ts +527 -279
  22. package/dist/commons/events/PageConfig.d.ts +335 -0
  23. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  24. package/dist/commons/events/defineConfig.d.ts +40 -417
  25. package/dist/commons/events/index.d.ts +2 -1
  26. package/dist/commons/events/test.utils.d.ts +140 -213
  27. package/dist/commons/events/utils.d.ts +126 -156
  28. package/dist/commons/events/utils.test.d.ts +2 -0
  29. package/dist/conditionals/index.js +166 -81
  30. package/dist/events/index.js +1287 -795
  31. package/dist/scopes/index.d.ts +70 -1
  32. package/dist/scopes/index.js +130 -0
  33. package/package.json +1 -1
@@ -1,24 +1,39 @@
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 DELETE: "DELETE";
17
- readonly PRINT_CERTIFICATE: "PRINT_CERTIFICATE";
18
- readonly CUSTOM: "CUSTOM";
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>;
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"]>;
24
39
  //# 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;
@@ -22,6 +26,7 @@ export declare const FileFieldValue: z.ZodObject<{
22
26
  export type FileFieldValue = z.infer<typeof FileFieldValue>;
23
27
  export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
24
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;
@@ -54,6 +61,7 @@ export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
54
61
  }>;
55
62
  export declare const RuralAddressValue: z.ZodObject<z.objectUtil.extendShape<{
56
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
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;
@@ -106,6 +119,7 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
106
119
  }>;
107
120
  export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
108
121
  country: z.ZodString;
122
+ addressType: z.ZodLiteral<"DOMESTIC">;
109
123
  province: z.ZodString;
110
124
  district: z.ZodString;
111
125
  }, {
@@ -114,18 +128,52 @@ 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
- export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
143
+ export declare const GenericAddressValue: z.ZodObject<{
144
+ country: z.ZodString;
145
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
146
+ state: z.ZodString;
147
+ district2: z.ZodString;
148
+ cityOrTown: z.ZodOptional<z.ZodString>;
149
+ addressLine1: z.ZodOptional<z.ZodString>;
150
+ addressLine2: z.ZodOptional<z.ZodString>;
151
+ addressLine3: z.ZodOptional<z.ZodString>;
152
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ country: string;
155
+ state: string;
156
+ addressType: "INTERNATIONAL";
157
+ district2: string;
158
+ cityOrTown?: string | undefined;
159
+ addressLine1?: string | undefined;
160
+ addressLine2?: string | undefined;
161
+ addressLine3?: string | undefined;
162
+ postcodeOrZip?: string | undefined;
163
+ }, {
164
+ country: string;
165
+ state: string;
166
+ addressType: "INTERNATIONAL";
167
+ district2: string;
168
+ cityOrTown?: string | undefined;
169
+ addressLine1?: string | undefined;
170
+ addressLine2?: string | undefined;
171
+ addressLine3?: string | undefined;
172
+ postcodeOrZip?: string | undefined;
173
+ }>;
174
+ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
128
175
  country: z.ZodString;
176
+ addressType: z.ZodLiteral<"DOMESTIC">;
129
177
  province: z.ZodString;
130
178
  district: z.ZodString;
131
179
  }, {
@@ -138,6 +186,7 @@ export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"urbanOrRural",
138
186
  }>, "strip", z.ZodTypeAny, {
139
187
  country: string;
140
188
  district: string;
189
+ addressType: "DOMESTIC";
141
190
  province: string;
142
191
  urbanOrRural: "URBAN";
143
192
  number?: string | undefined;
@@ -148,6 +197,7 @@ export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"urbanOrRural",
148
197
  }, {
149
198
  country: string;
150
199
  district: string;
200
+ addressType: "DOMESTIC";
151
201
  province: string;
152
202
  urbanOrRural: "URBAN";
153
203
  number?: string | undefined;
@@ -157,6 +207,7 @@ export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"urbanOrRural",
157
207
  zipCode?: string | undefined;
158
208
  }>, z.ZodObject<z.objectUtil.extendShape<{
159
209
  country: z.ZodString;
210
+ addressType: z.ZodLiteral<"DOMESTIC">;
160
211
  province: z.ZodString;
161
212
  district: z.ZodString;
162
213
  }, {
@@ -165,18 +216,82 @@ export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"urbanOrRural",
165
216
  }>, "strip", z.ZodTypeAny, {
166
217
  country: string;
167
218
  district: string;
219
+ addressType: "DOMESTIC";
168
220
  province: string;
169
221
  urbanOrRural: "RURAL";
170
222
  village?: string | undefined;
171
223
  }, {
172
224
  country: string;
173
225
  district: string;
226
+ addressType: "DOMESTIC";
174
227
  province: string;
175
228
  urbanOrRural: "RURAL";
176
229
  village?: string | undefined;
230
+ }>]>, z.ZodObject<{
231
+ country: z.ZodString;
232
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
233
+ state: z.ZodString;
234
+ district2: z.ZodString;
235
+ cityOrTown: z.ZodOptional<z.ZodString>;
236
+ addressLine1: z.ZodOptional<z.ZodString>;
237
+ addressLine2: z.ZodOptional<z.ZodString>;
238
+ addressLine3: z.ZodOptional<z.ZodString>;
239
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ country: string;
242
+ state: string;
243
+ addressType: "INTERNATIONAL";
244
+ district2: string;
245
+ cityOrTown?: string | undefined;
246
+ addressLine1?: string | undefined;
247
+ addressLine2?: string | undefined;
248
+ addressLine3?: string | undefined;
249
+ postcodeOrZip?: string | undefined;
250
+ }, {
251
+ country: string;
252
+ state: string;
253
+ addressType: "INTERNATIONAL";
254
+ district2: string;
255
+ cityOrTown?: string | undefined;
256
+ addressLine1?: string | undefined;
257
+ addressLine2?: string | undefined;
258
+ addressLine3?: string | undefined;
259
+ postcodeOrZip?: string | undefined;
177
260
  }>]>;
178
- export declare const AddressFieldUpdateValue: z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
261
+ export declare const GenericAddressUpdateValue: z.ZodObject<{
179
262
  country: z.ZodString;
263
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
264
+ state: z.ZodString;
265
+ district2: z.ZodString;
266
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
267
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
268
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
269
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ country: string;
273
+ state: string;
274
+ addressType: "INTERNATIONAL";
275
+ district2: string;
276
+ cityOrTown?: string | null | undefined;
277
+ addressLine1?: string | null | undefined;
278
+ addressLine2?: string | null | undefined;
279
+ addressLine3?: string | null | undefined;
280
+ postcodeOrZip?: string | null | undefined;
281
+ }, {
282
+ country: string;
283
+ state: string;
284
+ addressType: "INTERNATIONAL";
285
+ district2: string;
286
+ cityOrTown?: string | null | undefined;
287
+ addressLine1?: string | null | undefined;
288
+ addressLine2?: string | null | undefined;
289
+ addressLine3?: string | null | undefined;
290
+ postcodeOrZip?: string | null | undefined;
291
+ }>;
292
+ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
293
+ country: z.ZodString;
294
+ addressType: z.ZodLiteral<"DOMESTIC">;
180
295
  province: z.ZodString;
181
296
  district: z.ZodString;
182
297
  }, {
@@ -189,6 +304,7 @@ export declare const AddressFieldUpdateValue: z.ZodDiscriminatedUnion<"urbanOrRu
189
304
  }>, "strip", z.ZodTypeAny, {
190
305
  country: string;
191
306
  district: string;
307
+ addressType: "DOMESTIC";
192
308
  province: string;
193
309
  urbanOrRural: "URBAN";
194
310
  number?: string | null | undefined;
@@ -199,6 +315,7 @@ export declare const AddressFieldUpdateValue: z.ZodDiscriminatedUnion<"urbanOrRu
199
315
  }, {
200
316
  country: string;
201
317
  district: string;
318
+ addressType: "DOMESTIC";
202
319
  province: string;
203
320
  urbanOrRural: "URBAN";
204
321
  number?: string | null | undefined;
@@ -208,6 +325,7 @@ export declare const AddressFieldUpdateValue: z.ZodDiscriminatedUnion<"urbanOrRu
208
325
  zipCode?: string | null | undefined;
209
326
  }>, z.ZodObject<z.objectUtil.extendShape<{
210
327
  country: z.ZodString;
328
+ addressType: z.ZodLiteral<"DOMESTIC">;
211
329
  province: z.ZodString;
212
330
  district: z.ZodString;
213
331
  }, {
@@ -216,15 +334,47 @@ export declare const AddressFieldUpdateValue: z.ZodDiscriminatedUnion<"urbanOrRu
216
334
  }>, "strip", z.ZodTypeAny, {
217
335
  country: string;
218
336
  district: string;
337
+ addressType: "DOMESTIC";
219
338
  province: string;
220
339
  urbanOrRural: "RURAL";
221
340
  village?: string | null | undefined;
222
341
  }, {
223
342
  country: string;
224
343
  district: string;
344
+ addressType: "DOMESTIC";
225
345
  province: string;
226
346
  urbanOrRural: "RURAL";
227
347
  village?: string | null | undefined;
348
+ }>]>, z.ZodObject<{
349
+ country: z.ZodString;
350
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
351
+ state: z.ZodString;
352
+ district2: z.ZodString;
353
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
354
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
355
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
356
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
357
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ country: string;
360
+ state: string;
361
+ addressType: "INTERNATIONAL";
362
+ district2: string;
363
+ cityOrTown?: string | null | undefined;
364
+ addressLine1?: string | null | undefined;
365
+ addressLine2?: string | null | undefined;
366
+ addressLine3?: string | null | undefined;
367
+ postcodeOrZip?: string | null | undefined;
368
+ }, {
369
+ country: string;
370
+ state: string;
371
+ addressType: "INTERNATIONAL";
372
+ district2: string;
373
+ cityOrTown?: string | null | undefined;
374
+ addressLine1?: string | null | undefined;
375
+ addressLine2?: string | null | undefined;
376
+ addressLine3?: string | null | undefined;
377
+ postcodeOrZip?: string | null | undefined;
228
378
  }>]>;
229
379
  export type AddressFieldValue = z.infer<typeof AddressFieldValue>;
230
380
  export declare const FileFieldValueWithOption: z.ZodObject<{
@@ -1,15 +1,15 @@
1
1
  import { JSONSchema } from '../conditionals/conditionals';
2
2
  import { z } from 'zod';
3
- export declare function Conditional(): z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
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 AllActionConditionalFields = typeof ShowConditional | typeof EnableConditional;
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", AllActionConditionalFields[]>;
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