@opencrvs/toolkit 1.8.0-rc.fc43738 → 1.8.0-rc.fc76588

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 (49) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +17499 -10858
  3. package/dist/commons/conditionals/conditionals.d.ts +39 -8
  4. package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
  5. package/dist/commons/conditionals/validate.d.ts +50 -22
  6. package/dist/commons/conditionals/validate.test.d.ts +2 -0
  7. package/dist/commons/events/ActionConfig.d.ts +116822 -2084
  8. package/dist/commons/events/ActionDocument.d.ts +12597 -1492
  9. package/dist/commons/events/ActionInput.d.ts +8325 -2272
  10. package/dist/commons/events/ActionType.d.ts +31 -12
  11. package/dist/commons/events/AdvancedSearchConfig.d.ts +1029 -22
  12. package/dist/commons/events/CompositeFieldValue.d.ts +445 -0
  13. package/dist/commons/events/Conditional.d.ts +21 -5
  14. package/dist/commons/events/Constants.d.ts +3 -0
  15. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  16. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  17. package/dist/commons/events/Draft.d.ts +631 -217
  18. package/dist/commons/events/EventConfig.d.ts +56160 -1824
  19. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  20. package/dist/commons/events/EventDocument.d.ts +5979 -1899
  21. package/dist/commons/events/EventIndex.d.ts +1595 -27
  22. package/dist/commons/events/EventMetadata.d.ts +304 -45
  23. package/dist/commons/events/FieldConfig.d.ts +5822 -969
  24. package/dist/commons/events/FieldType.d.ts +10 -2
  25. package/dist/commons/events/FieldTypeMapping.d.ts +335 -51
  26. package/dist/commons/events/FieldValue.d.ts +177 -65
  27. package/dist/commons/events/FormConfig.d.ts +49317 -90
  28. package/dist/commons/events/PageConfig.d.ts +12337 -0
  29. package/dist/commons/events/SummaryConfig.d.ts +93 -42
  30. package/dist/commons/events/TemplateConfig.d.ts +38 -0
  31. package/dist/commons/events/User.d.ts +31 -2
  32. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  33. package/dist/commons/events/WorkqueueConfig.d.ts +4803 -20
  34. package/dist/commons/events/defineConfig.d.ts +9111 -307
  35. package/dist/commons/events/event.d.ts +54 -0
  36. package/dist/commons/events/field.d.ts +77 -0
  37. package/dist/commons/events/index.d.ts +11 -1
  38. package/dist/commons/events/scopes.d.ts +45 -0
  39. package/dist/commons/events/serializer.d.ts +2 -0
  40. package/dist/commons/events/test.utils.d.ts +262 -259
  41. package/dist/commons/events/transactions.d.ts +1 -1
  42. package/dist/commons/events/utils.d.ts +13481 -70
  43. package/dist/commons/events/utils.test.d.ts +2 -0
  44. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  45. package/dist/conditionals/index.js +233 -108
  46. package/dist/events/index.js +4955 -1910
  47. package/dist/scopes/index.d.ts +158 -1
  48. package/dist/scopes/index.js +152 -1
  49. package/package.json +3 -2
@@ -0,0 +1,445 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Composite field value consists of multiple field values.
4
+ */
5
+ export declare const GeographicalArea: {
6
+ readonly URBAN: "URBAN";
7
+ readonly RURAL: "RURAL";
8
+ };
9
+ export declare const AddressType: {
10
+ readonly DOMESTIC: "DOMESTIC";
11
+ readonly INTERNATIONAL: "INTERNATIONAL";
12
+ };
13
+ export declare const FileFieldValue: z.ZodObject<{
14
+ filename: z.ZodString;
15
+ originalFilename: z.ZodString;
16
+ type: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ type: string;
19
+ filename: string;
20
+ originalFilename: string;
21
+ }, {
22
+ type: string;
23
+ filename: string;
24
+ originalFilename: string;
25
+ }>;
26
+ export type FileFieldValue = z.infer<typeof FileFieldValue>;
27
+ export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
28
+ country: z.ZodString;
29
+ addressType: z.ZodLiteral<"DOMESTIC">;
30
+ province: z.ZodString;
31
+ district: z.ZodString;
32
+ }, {
33
+ urbanOrRural: z.ZodLiteral<"URBAN">;
34
+ town: z.ZodOptional<z.ZodString>;
35
+ residentialArea: z.ZodOptional<z.ZodString>;
36
+ street: z.ZodOptional<z.ZodString>;
37
+ number: z.ZodOptional<z.ZodString>;
38
+ zipCode: z.ZodOptional<z.ZodString>;
39
+ }>, "strip", z.ZodTypeAny, {
40
+ country: string;
41
+ district: string;
42
+ addressType: "DOMESTIC";
43
+ province: string;
44
+ urbanOrRural: "URBAN";
45
+ number?: string | undefined;
46
+ town?: string | undefined;
47
+ residentialArea?: string | undefined;
48
+ street?: string | undefined;
49
+ zipCode?: string | undefined;
50
+ }, {
51
+ country: string;
52
+ district: string;
53
+ addressType: "DOMESTIC";
54
+ province: string;
55
+ urbanOrRural: "URBAN";
56
+ number?: string | undefined;
57
+ town?: string | undefined;
58
+ residentialArea?: string | undefined;
59
+ street?: string | undefined;
60
+ zipCode?: string | undefined;
61
+ }>;
62
+ export declare const RuralAddressValue: z.ZodObject<z.objectUtil.extendShape<{
63
+ country: z.ZodString;
64
+ addressType: z.ZodLiteral<"DOMESTIC">;
65
+ province: z.ZodString;
66
+ district: z.ZodString;
67
+ }, {
68
+ urbanOrRural: z.ZodLiteral<"RURAL">;
69
+ village: z.ZodOptional<z.ZodString>;
70
+ }>, "strip", z.ZodTypeAny, {
71
+ country: string;
72
+ district: string;
73
+ addressType: "DOMESTIC";
74
+ province: string;
75
+ urbanOrRural: "RURAL";
76
+ village?: string | undefined;
77
+ }, {
78
+ country: string;
79
+ district: string;
80
+ addressType: "DOMESTIC";
81
+ province: string;
82
+ urbanOrRural: "RURAL";
83
+ village?: string | undefined;
84
+ }>;
85
+ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
86
+ country: z.ZodString;
87
+ addressType: z.ZodLiteral<"DOMESTIC">;
88
+ province: z.ZodString;
89
+ district: z.ZodString;
90
+ }, {
91
+ urbanOrRural: z.ZodLiteral<"URBAN">;
92
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ }>, "strip", z.ZodTypeAny, {
98
+ country: string;
99
+ district: string;
100
+ addressType: "DOMESTIC";
101
+ province: string;
102
+ urbanOrRural: "URBAN";
103
+ number?: string | null | undefined;
104
+ town?: string | null | undefined;
105
+ residentialArea?: string | null | undefined;
106
+ street?: string | null | undefined;
107
+ zipCode?: string | null | undefined;
108
+ }, {
109
+ country: string;
110
+ district: string;
111
+ addressType: "DOMESTIC";
112
+ province: string;
113
+ urbanOrRural: "URBAN";
114
+ number?: string | null | undefined;
115
+ town?: string | null | undefined;
116
+ residentialArea?: string | null | undefined;
117
+ street?: string | null | undefined;
118
+ zipCode?: string | null | undefined;
119
+ }>;
120
+ export declare const NameFieldValue: z.ZodObject<{
121
+ firstname: z.ZodString;
122
+ surname: z.ZodString;
123
+ middlename: z.ZodOptional<z.ZodString>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ firstname: string;
126
+ surname: string;
127
+ middlename?: string | undefined;
128
+ }, {
129
+ firstname: string;
130
+ surname: string;
131
+ middlename?: string | undefined;
132
+ }>;
133
+ export declare const NameFieldUpdateValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
134
+ firstname: z.ZodString;
135
+ surname: z.ZodString;
136
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ firstname: string;
139
+ surname: string;
140
+ middlename?: string | null | undefined;
141
+ }, {
142
+ firstname: string;
143
+ surname: string;
144
+ middlename?: string | null | undefined;
145
+ }>, z.ZodNull]>, z.ZodUndefined]>;
146
+ export type NameFieldValue = z.infer<typeof NameFieldValue>;
147
+ export type NameFieldUpdateValue = z.infer<typeof NameFieldUpdateValue>;
148
+ export type UrbanAddressUpdateValue = z.infer<typeof UrbanAddressUpdateValue>;
149
+ export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
150
+ country: z.ZodString;
151
+ addressType: z.ZodLiteral<"DOMESTIC">;
152
+ province: z.ZodString;
153
+ district: z.ZodString;
154
+ }, {
155
+ urbanOrRural: z.ZodLiteral<"RURAL">;
156
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
157
+ }>, "strip", z.ZodTypeAny, {
158
+ country: string;
159
+ district: string;
160
+ addressType: "DOMESTIC";
161
+ province: string;
162
+ urbanOrRural: "RURAL";
163
+ village?: string | null | undefined;
164
+ }, {
165
+ country: string;
166
+ district: string;
167
+ addressType: "DOMESTIC";
168
+ province: string;
169
+ urbanOrRural: "RURAL";
170
+ village?: string | null | undefined;
171
+ }>;
172
+ export type RuralAddressUpdateValue = z.infer<typeof RuralAddressUpdateValue>;
173
+ export declare const GenericAddressValue: z.ZodObject<{
174
+ country: z.ZodString;
175
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
176
+ state: z.ZodString;
177
+ district2: z.ZodString;
178
+ cityOrTown: z.ZodOptional<z.ZodString>;
179
+ addressLine1: z.ZodOptional<z.ZodString>;
180
+ addressLine2: z.ZodOptional<z.ZodString>;
181
+ addressLine3: z.ZodOptional<z.ZodString>;
182
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ country: string;
185
+ state: string;
186
+ addressType: "INTERNATIONAL";
187
+ district2: string;
188
+ cityOrTown?: string | undefined;
189
+ addressLine1?: string | undefined;
190
+ addressLine2?: string | undefined;
191
+ addressLine3?: string | undefined;
192
+ postcodeOrZip?: string | undefined;
193
+ }, {
194
+ country: string;
195
+ state: string;
196
+ addressType: "INTERNATIONAL";
197
+ district2: string;
198
+ cityOrTown?: string | undefined;
199
+ addressLine1?: string | undefined;
200
+ addressLine2?: string | undefined;
201
+ addressLine3?: string | undefined;
202
+ postcodeOrZip?: string | undefined;
203
+ }>;
204
+ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
205
+ country: z.ZodString;
206
+ addressType: z.ZodLiteral<"DOMESTIC">;
207
+ province: z.ZodString;
208
+ district: z.ZodString;
209
+ }, {
210
+ urbanOrRural: z.ZodLiteral<"URBAN">;
211
+ town: z.ZodOptional<z.ZodString>;
212
+ residentialArea: z.ZodOptional<z.ZodString>;
213
+ street: z.ZodOptional<z.ZodString>;
214
+ number: z.ZodOptional<z.ZodString>;
215
+ zipCode: z.ZodOptional<z.ZodString>;
216
+ }>, "strip", z.ZodTypeAny, {
217
+ country: string;
218
+ district: string;
219
+ addressType: "DOMESTIC";
220
+ province: string;
221
+ urbanOrRural: "URBAN";
222
+ number?: string | undefined;
223
+ town?: string | undefined;
224
+ residentialArea?: string | undefined;
225
+ street?: string | undefined;
226
+ zipCode?: string | undefined;
227
+ }, {
228
+ country: string;
229
+ district: string;
230
+ addressType: "DOMESTIC";
231
+ province: string;
232
+ urbanOrRural: "URBAN";
233
+ number?: string | undefined;
234
+ town?: string | undefined;
235
+ residentialArea?: string | undefined;
236
+ street?: string | undefined;
237
+ zipCode?: string | undefined;
238
+ }>, z.ZodObject<z.objectUtil.extendShape<{
239
+ country: z.ZodString;
240
+ addressType: z.ZodLiteral<"DOMESTIC">;
241
+ province: z.ZodString;
242
+ district: z.ZodString;
243
+ }, {
244
+ urbanOrRural: z.ZodLiteral<"RURAL">;
245
+ village: z.ZodOptional<z.ZodString>;
246
+ }>, "strip", z.ZodTypeAny, {
247
+ country: string;
248
+ district: string;
249
+ addressType: "DOMESTIC";
250
+ province: string;
251
+ urbanOrRural: "RURAL";
252
+ village?: string | undefined;
253
+ }, {
254
+ country: string;
255
+ district: string;
256
+ addressType: "DOMESTIC";
257
+ province: string;
258
+ urbanOrRural: "RURAL";
259
+ village?: string | undefined;
260
+ }>]>, z.ZodObject<{
261
+ country: z.ZodString;
262
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
263
+ state: z.ZodString;
264
+ district2: z.ZodString;
265
+ cityOrTown: z.ZodOptional<z.ZodString>;
266
+ addressLine1: z.ZodOptional<z.ZodString>;
267
+ addressLine2: z.ZodOptional<z.ZodString>;
268
+ addressLine3: z.ZodOptional<z.ZodString>;
269
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
270
+ }, "strip", z.ZodTypeAny, {
271
+ country: string;
272
+ state: string;
273
+ addressType: "INTERNATIONAL";
274
+ district2: string;
275
+ cityOrTown?: string | undefined;
276
+ addressLine1?: string | undefined;
277
+ addressLine2?: string | undefined;
278
+ addressLine3?: string | undefined;
279
+ postcodeOrZip?: string | undefined;
280
+ }, {
281
+ country: string;
282
+ state: string;
283
+ addressType: "INTERNATIONAL";
284
+ district2: string;
285
+ cityOrTown?: string | undefined;
286
+ addressLine1?: string | undefined;
287
+ addressLine2?: string | undefined;
288
+ addressLine3?: string | undefined;
289
+ postcodeOrZip?: string | undefined;
290
+ }>]>;
291
+ export declare const GenericAddressUpdateValue: z.ZodObject<{
292
+ country: z.ZodString;
293
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
294
+ state: z.ZodString;
295
+ district2: z.ZodString;
296
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
297
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
298
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
299
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
300
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ country: string;
303
+ state: string;
304
+ addressType: "INTERNATIONAL";
305
+ district2: string;
306
+ cityOrTown?: string | null | undefined;
307
+ addressLine1?: string | null | undefined;
308
+ addressLine2?: string | null | undefined;
309
+ addressLine3?: string | null | undefined;
310
+ postcodeOrZip?: string | null | undefined;
311
+ }, {
312
+ country: string;
313
+ state: string;
314
+ addressType: "INTERNATIONAL";
315
+ district2: string;
316
+ cityOrTown?: string | null | undefined;
317
+ addressLine1?: string | null | undefined;
318
+ addressLine2?: string | null | undefined;
319
+ addressLine3?: string | null | undefined;
320
+ postcodeOrZip?: string | null | undefined;
321
+ }>;
322
+ export type GenericAddressUpdateValue = z.infer<typeof GenericAddressUpdateValue>;
323
+ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
324
+ country: z.ZodString;
325
+ addressType: z.ZodLiteral<"DOMESTIC">;
326
+ province: z.ZodString;
327
+ district: z.ZodString;
328
+ }, {
329
+ urbanOrRural: z.ZodLiteral<"URBAN">;
330
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
331
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
332
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
334
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
335
+ }>, "strip", z.ZodTypeAny, {
336
+ country: string;
337
+ district: string;
338
+ addressType: "DOMESTIC";
339
+ province: string;
340
+ urbanOrRural: "URBAN";
341
+ number?: string | null | undefined;
342
+ town?: string | null | undefined;
343
+ residentialArea?: string | null | undefined;
344
+ street?: string | null | undefined;
345
+ zipCode?: string | null | undefined;
346
+ }, {
347
+ country: string;
348
+ district: string;
349
+ addressType: "DOMESTIC";
350
+ province: string;
351
+ urbanOrRural: "URBAN";
352
+ number?: string | null | undefined;
353
+ town?: string | null | undefined;
354
+ residentialArea?: string | null | undefined;
355
+ street?: string | null | undefined;
356
+ zipCode?: string | null | undefined;
357
+ }>, z.ZodObject<z.objectUtil.extendShape<{
358
+ country: z.ZodString;
359
+ addressType: z.ZodLiteral<"DOMESTIC">;
360
+ province: z.ZodString;
361
+ district: z.ZodString;
362
+ }, {
363
+ urbanOrRural: z.ZodLiteral<"RURAL">;
364
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
365
+ }>, "strip", z.ZodTypeAny, {
366
+ country: string;
367
+ district: string;
368
+ addressType: "DOMESTIC";
369
+ province: string;
370
+ urbanOrRural: "RURAL";
371
+ village?: string | null | undefined;
372
+ }, {
373
+ country: string;
374
+ district: string;
375
+ addressType: "DOMESTIC";
376
+ province: string;
377
+ urbanOrRural: "RURAL";
378
+ village?: string | null | undefined;
379
+ }>]>, z.ZodObject<{
380
+ country: z.ZodString;
381
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
382
+ state: z.ZodString;
383
+ district2: z.ZodString;
384
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
385
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
386
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
387
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
388
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ country: string;
391
+ state: string;
392
+ addressType: "INTERNATIONAL";
393
+ district2: string;
394
+ cityOrTown?: string | null | undefined;
395
+ addressLine1?: string | null | undefined;
396
+ addressLine2?: string | null | undefined;
397
+ addressLine3?: string | null | undefined;
398
+ postcodeOrZip?: string | null | undefined;
399
+ }, {
400
+ country: string;
401
+ state: string;
402
+ addressType: "INTERNATIONAL";
403
+ district2: string;
404
+ cityOrTown?: string | null | undefined;
405
+ addressLine1?: string | null | undefined;
406
+ addressLine2?: string | null | undefined;
407
+ addressLine3?: string | null | undefined;
408
+ postcodeOrZip?: string | null | undefined;
409
+ }>]>;
410
+ export type AddressFieldValue = z.infer<typeof AddressFieldValue>;
411
+ export declare const FileFieldValueWithOption: z.ZodObject<{
412
+ filename: z.ZodString;
413
+ originalFilename: z.ZodString;
414
+ type: z.ZodString;
415
+ option: z.ZodString;
416
+ }, "strip", z.ZodTypeAny, {
417
+ type: string;
418
+ option: string;
419
+ filename: string;
420
+ originalFilename: string;
421
+ }, {
422
+ type: string;
423
+ option: string;
424
+ filename: string;
425
+ originalFilename: string;
426
+ }>;
427
+ export type FileFieldValueWithOption = z.infer<typeof FileFieldValueWithOption>;
428
+ export declare const FileFieldWithOptionValue: z.ZodArray<z.ZodObject<{
429
+ filename: z.ZodString;
430
+ originalFilename: z.ZodString;
431
+ type: z.ZodString;
432
+ option: z.ZodString;
433
+ }, "strip", z.ZodTypeAny, {
434
+ type: string;
435
+ option: string;
436
+ filename: string;
437
+ originalFilename: string;
438
+ }, {
439
+ type: string;
440
+ option: string;
441
+ filename: string;
442
+ originalFilename: string;
443
+ }>, "many">;
444
+ export type FileFieldWithOptionValue = z.infer<typeof FileFieldWithOptionValue>;
445
+ //# sourceMappingURL=CompositeFieldValue.d.ts.map
@@ -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
@@ -0,0 +1,3 @@
1
+ export declare const TENNIS_CLUB_MEMBERSHIP = "tennis-club-membership";
2
+ export declare const BIRTH_EVENT = "v2-birth";
3
+ //# sourceMappingURL=Constants.d.ts.map