@opencrvs/toolkit 1.8.0-rc.f7e8fb5 → 1.8.0-rc.f872339

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 (36) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +6700 -9337
  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 +39 -17
  6. package/dist/commons/conditionals/validate.test.d.ts +2 -0
  7. package/dist/commons/events/ActionConfig.d.ts +1123 -2056
  8. package/dist/commons/events/ActionDocument.d.ts +9488 -312
  9. package/dist/commons/events/ActionInput.d.ts +5329 -472
  10. package/dist/commons/events/ActionType.d.ts +26 -11
  11. package/dist/commons/events/CompositeFieldValue.d.ts +155 -2
  12. package/dist/commons/events/Conditional.d.ts +21 -5
  13. package/dist/commons/events/Draft.d.ts +351 -48
  14. package/dist/commons/events/EventConfig.d.ts +709 -1226
  15. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  16. package/dist/commons/events/EventDocument.d.ts +3343 -424
  17. package/dist/commons/events/EventIndex.d.ts +9 -3
  18. package/dist/commons/events/EventMetadata.d.ts +6 -0
  19. package/dist/commons/events/FieldConfig.d.ts +567 -74
  20. package/dist/commons/events/FieldType.d.ts +2 -1
  21. package/dist/commons/events/FieldTypeMapping.d.ts +154 -3
  22. package/dist/commons/events/FieldValue.d.ts +76 -2
  23. package/dist/commons/events/FormConfig.d.ts +633 -48
  24. package/dist/commons/events/PageConfig.d.ts +335 -0
  25. package/dist/commons/events/SummaryConfig.d.ts +93 -7
  26. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  27. package/dist/commons/events/User.d.ts +5 -0
  28. package/dist/commons/events/defineConfig.d.ts +104 -218
  29. package/dist/commons/events/index.d.ts +3 -1
  30. package/dist/commons/events/scopes.d.ts +25 -0
  31. package/dist/commons/events/test.utils.d.ts +140 -213
  32. package/dist/commons/events/utils.d.ts +125 -83
  33. package/dist/commons/events/utils.test.d.ts +2 -0
  34. package/dist/conditionals/index.js +166 -81
  35. package/dist/events/index.js +1644 -832
  36. package/package.json +1 -1
@@ -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
- }, "strip", z.ZodTypeAny, {
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
- }>, "many">;
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;
@@ -128,6 +214,67 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
128
214
  defaultMessage: string;
129
215
  }>;
130
216
  actions: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./ActionConfig").AllActionConfigFields[]>, "many">;
217
+ declaration: z.ZodObject<{
218
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
219
+ id: string;
220
+ description: string;
221
+ defaultMessage: string;
222
+ }>;
223
+ pages: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
224
+ id: z.ZodString;
225
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
226
+ id: string;
227
+ description: string;
228
+ defaultMessage: string;
229
+ }>;
230
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
231
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
232
+ }, {
233
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
234
+ }>, "strip", z.ZodTypeAny, {
235
+ type: "FORM";
236
+ id: string;
237
+ title: TranslationConfig;
238
+ fields: import("./FieldConfig").Inferred[];
239
+ conditional?: import(".").JSONSchema | undefined;
240
+ }, {
241
+ id: string;
242
+ title: {
243
+ id: string;
244
+ description: string;
245
+ defaultMessage: string;
246
+ };
247
+ fields: import("./FieldConfig").InferredInput[];
248
+ type?: "FORM" | undefined;
249
+ conditional?: import(".").JSONSchema | undefined;
250
+ }>, "many">;
251
+ }, "strip", z.ZodTypeAny, {
252
+ label: TranslationConfig;
253
+ pages: {
254
+ type: "FORM";
255
+ id: string;
256
+ title: TranslationConfig;
257
+ fields: import("./FieldConfig").Inferred[];
258
+ conditional?: import(".").JSONSchema | undefined;
259
+ }[];
260
+ }, {
261
+ label: {
262
+ id: string;
263
+ description: string;
264
+ defaultMessage: string;
265
+ };
266
+ pages: {
267
+ id: string;
268
+ title: {
269
+ id: string;
270
+ description: string;
271
+ defaultMessage: string;
272
+ };
273
+ fields: import("./FieldConfig").InferredInput[];
274
+ type?: "FORM" | undefined;
275
+ conditional?: import(".").JSONSchema | undefined;
276
+ }[];
277
+ }>;
131
278
  workqueues: z.ZodArray<z.ZodObject<{
132
279
  id: z.ZodString;
133
280
  filters: z.ZodArray<z.ZodObject<{
@@ -227,6 +374,16 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
227
374
  }>, "many">>>;
228
375
  }, "strip", z.ZodTypeAny, {
229
376
  id: string;
377
+ declaration: {
378
+ label: TranslationConfig;
379
+ pages: {
380
+ type: "FORM";
381
+ id: string;
382
+ title: TranslationConfig;
383
+ fields: import("./FieldConfig").Inferred[];
384
+ conditional?: import(".").JSONSchema | undefined;
385
+ }[];
386
+ };
230
387
  actions: ({
231
388
  type: "DECLARE";
232
389
  conditionals: ({
@@ -237,23 +394,10 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
237
394
  conditional: import(".").JSONSchema;
238
395
  })[];
239
396
  label: TranslationConfig;
240
- forms: {
241
- active: boolean;
242
- version: {
243
- id: string;
244
- label: TranslationConfig;
245
- };
246
- label: TranslationConfig;
247
- pages: {
248
- id: string;
249
- title: TranslationConfig;
250
- fields: import("./FieldConfig").Inferred[];
251
- }[];
252
- review: {
253
- title: TranslationConfig;
254
- fields: import("./FieldConfig").Inferred[];
255
- };
256
- }[];
397
+ review: {
398
+ title: TranslationConfig;
399
+ fields: import("./FieldConfig").Inferred[];
400
+ };
257
401
  draft?: boolean | undefined;
258
402
  } | {
259
403
  type: "VALIDATE";
@@ -265,26 +409,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
265
409
  conditional: import(".").JSONSchema;
266
410
  })[];
267
411
  label: TranslationConfig;
268
- forms: {
269
- active: boolean;
270
- version: {
271
- id: string;
272
- label: TranslationConfig;
273
- };
274
- label: TranslationConfig;
275
- pages: {
276
- id: string;
277
- title: TranslationConfig;
278
- fields: import("./FieldConfig").Inferred[];
279
- }[];
280
- review: {
281
- title: TranslationConfig;
282
- fields: import("./FieldConfig").Inferred[];
283
- };
284
- }[];
412
+ review: {
413
+ title: TranslationConfig;
414
+ fields: import("./FieldConfig").Inferred[];
415
+ };
285
416
  draft?: boolean | undefined;
286
417
  } | {
287
- type: "REJECT";
418
+ type: "REGISTER";
288
419
  conditionals: ({
289
420
  type: "SHOW";
290
421
  conditional: import(".").JSONSchema;
@@ -293,26 +424,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
293
424
  conditional: import(".").JSONSchema;
294
425
  })[];
295
426
  label: TranslationConfig;
296
- forms: {
297
- active: boolean;
298
- version: {
299
- id: string;
300
- label: TranslationConfig;
301
- };
302
- label: TranslationConfig;
303
- pages: {
304
- id: string;
305
- title: TranslationConfig;
306
- fields: import("./FieldConfig").Inferred[];
307
- }[];
308
- review: {
309
- title: TranslationConfig;
310
- fields: import("./FieldConfig").Inferred[];
311
- };
312
- }[];
427
+ review: {
428
+ title: TranslationConfig;
429
+ fields: import("./FieldConfig").Inferred[];
430
+ };
313
431
  draft?: boolean | undefined;
314
432
  } | {
315
- type: "MARKED_AS_DUPLICATE";
433
+ type: "REJECT";
316
434
  conditionals: ({
317
435
  type: "SHOW";
318
436
  conditional: import(".").JSONSchema;
@@ -321,26 +439,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
321
439
  conditional: import(".").JSONSchema;
322
440
  })[];
323
441
  label: TranslationConfig;
324
- forms: {
325
- active: boolean;
326
- version: {
327
- id: string;
328
- label: TranslationConfig;
329
- };
330
- label: TranslationConfig;
331
- pages: {
332
- id: string;
333
- title: TranslationConfig;
334
- fields: import("./FieldConfig").Inferred[];
335
- }[];
336
- review: {
337
- title: TranslationConfig;
338
- fields: import("./FieldConfig").Inferred[];
339
- };
340
- }[];
341
442
  draft?: boolean | undefined;
342
443
  } | {
343
- type: "ARCHIVE";
444
+ type: "MARKED_AS_DUPLICATE";
344
445
  conditionals: ({
345
446
  type: "SHOW";
346
447
  conditional: import(".").JSONSchema;
@@ -349,26 +450,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
349
450
  conditional: import(".").JSONSchema;
350
451
  })[];
351
452
  label: TranslationConfig;
352
- forms: {
353
- active: boolean;
354
- version: {
355
- id: string;
356
- label: TranslationConfig;
357
- };
358
- label: TranslationConfig;
359
- pages: {
360
- id: string;
361
- title: TranslationConfig;
362
- fields: import("./FieldConfig").Inferred[];
363
- }[];
364
- review: {
365
- title: TranslationConfig;
366
- fields: import("./FieldConfig").Inferred[];
367
- };
368
- }[];
369
453
  draft?: boolean | undefined;
370
454
  } | {
371
- type: "REGISTER";
455
+ type: "ARCHIVE";
372
456
  conditionals: ({
373
457
  type: "SHOW";
374
458
  conditional: import(".").JSONSchema;
@@ -377,23 +461,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
377
461
  conditional: import(".").JSONSchema;
378
462
  })[];
379
463
  label: TranslationConfig;
380
- forms: {
381
- active: boolean;
382
- version: {
383
- id: string;
384
- label: TranslationConfig;
385
- };
386
- label: TranslationConfig;
387
- pages: {
388
- id: string;
389
- title: TranslationConfig;
390
- fields: import("./FieldConfig").Inferred[];
391
- }[];
392
- review: {
393
- title: TranslationConfig;
394
- fields: import("./FieldConfig").Inferred[];
395
- };
396
- }[];
397
464
  draft?: boolean | undefined;
398
465
  } | {
399
466
  type: "DELETE";
@@ -405,23 +472,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
405
472
  conditional: import(".").JSONSchema;
406
473
  })[];
407
474
  label: TranslationConfig;
408
- forms: {
409
- active: boolean;
410
- version: {
411
- id: string;
412
- label: TranslationConfig;
413
- };
414
- label: TranslationConfig;
415
- pages: {
416
- id: string;
417
- title: TranslationConfig;
418
- fields: import("./FieldConfig").Inferred[];
419
- }[];
420
- review: {
421
- title: TranslationConfig;
422
- fields: import("./FieldConfig").Inferred[];
423
- };
424
- }[];
425
475
  draft?: boolean | undefined;
426
476
  } | {
427
477
  type: "PRINT_CERTIFICATE";
@@ -433,23 +483,34 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
433
483
  conditional: import(".").JSONSchema;
434
484
  })[];
435
485
  label: TranslationConfig;
436
- forms: {
437
- active: boolean;
438
- version: {
439
- id: string;
440
- label: TranslationConfig;
441
- };
486
+ printForm: {
442
487
  label: TranslationConfig;
443
- pages: {
488
+ pages: ({
489
+ type: "FORM";
444
490
  id: string;
445
491
  title: TranslationConfig;
446
492
  fields: import("./FieldConfig").Inferred[];
447
- }[];
448
- review: {
493
+ conditional?: import(".").JSONSchema | undefined;
494
+ } | {
495
+ type: "VERIFICATION";
496
+ id: string;
449
497
  title: TranslationConfig;
450
- fields: import("./FieldConfig").Inferred[];
451
- };
452
- }[];
498
+ actions: {
499
+ verify: {
500
+ label: TranslationConfig;
501
+ };
502
+ cancel: {
503
+ label: TranslationConfig;
504
+ confirmation: {
505
+ title: TranslationConfig;
506
+ body: TranslationConfig;
507
+ };
508
+ };
509
+ };
510
+ fields: import("./FieldConfig").Inferred[];
511
+ conditional?: import(".").JSONSchema | undefined;
512
+ })[];
513
+ };
453
514
  draft?: boolean | undefined;
454
515
  } | {
455
516
  type: "REQUEST_CORRECTION";
@@ -461,33 +522,56 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
461
522
  conditional: import(".").JSONSchema;
462
523
  })[];
463
524
  label: TranslationConfig;
464
- forms: {
465
- active: boolean;
466
- version: {
467
- id: string;
468
- label: TranslationConfig;
469
- };
470
- label: TranslationConfig;
471
- pages: {
472
- id: string;
473
- title: TranslationConfig;
474
- fields: import("./FieldConfig").Inferred[];
475
- }[];
476
- review: {
477
- title: TranslationConfig;
478
- fields: import("./FieldConfig").Inferred[];
525
+ onboardingForm: ({
526
+ type: "FORM";
527
+ id: string;
528
+ title: TranslationConfig;
529
+ fields: import("./FieldConfig").Inferred[];
530
+ conditional?: import(".").JSONSchema | undefined;
531
+ } | {
532
+ type: "VERIFICATION";
533
+ id: string;
534
+ title: TranslationConfig;
535
+ actions: {
536
+ verify: {
537
+ label: TranslationConfig;
538
+ };
539
+ cancel: {
540
+ label: TranslationConfig;
541
+ confirmation: {
542
+ title: TranslationConfig;
543
+ body: TranslationConfig;
544
+ };
545
+ };
479
546
  };
480
- }[];
481
- onboardingForm: {
547
+ fields: import("./FieldConfig").Inferred[];
548
+ conditional?: import(".").JSONSchema | undefined;
549
+ })[];
550
+ additionalDetailsForm: ({
551
+ type: "FORM";
482
552
  id: string;
483
553
  title: TranslationConfig;
484
554
  fields: import("./FieldConfig").Inferred[];
485
- }[];
486
- additionalDetailsForm: {
555
+ conditional?: import(".").JSONSchema | undefined;
556
+ } | {
557
+ type: "VERIFICATION";
487
558
  id: string;
488
559
  title: TranslationConfig;
560
+ actions: {
561
+ verify: {
562
+ label: TranslationConfig;
563
+ };
564
+ cancel: {
565
+ label: TranslationConfig;
566
+ confirmation: {
567
+ title: TranslationConfig;
568
+ body: TranslationConfig;
569
+ };
570
+ };
571
+ };
489
572
  fields: import("./FieldConfig").Inferred[];
490
- }[];
573
+ conditional?: import(".").JSONSchema | undefined;
574
+ })[];
491
575
  draft?: boolean | undefined;
492
576
  } | {
493
577
  type: "REJECT_CORRECTION";
@@ -499,23 +583,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
499
583
  conditional: import(".").JSONSchema;
500
584
  })[];
501
585
  label: TranslationConfig;
502
- forms: {
503
- active: boolean;
504
- version: {
505
- id: string;
506
- label: TranslationConfig;
507
- };
508
- label: TranslationConfig;
509
- pages: {
510
- id: string;
511
- title: TranslationConfig;
512
- fields: import("./FieldConfig").Inferred[];
513
- }[];
514
- review: {
515
- title: TranslationConfig;
516
- fields: import("./FieldConfig").Inferred[];
517
- };
518
- }[];
519
586
  draft?: boolean | undefined;
520
587
  } | {
521
588
  type: "APPROVE_CORRECTION";
@@ -527,51 +594,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
527
594
  conditional: import(".").JSONSchema;
528
595
  })[];
529
596
  label: TranslationConfig;
530
- forms: {
531
- active: boolean;
532
- version: {
533
- id: string;
534
- label: TranslationConfig;
535
- };
536
- label: TranslationConfig;
537
- pages: {
538
- id: string;
539
- title: TranslationConfig;
540
- fields: import("./FieldConfig").Inferred[];
541
- }[];
542
- review: {
543
- title: TranslationConfig;
544
- fields: import("./FieldConfig").Inferred[];
545
- };
546
- }[];
547
- draft?: boolean | undefined;
548
- } | {
549
- type: "CUSTOM";
550
- conditionals: ({
551
- type: "SHOW";
552
- conditional: import(".").JSONSchema;
553
- } | {
554
- type: "ENABLE";
555
- conditional: import(".").JSONSchema;
556
- })[];
557
- label: TranslationConfig;
558
- forms: {
559
- active: boolean;
560
- version: {
561
- id: string;
562
- label: TranslationConfig;
563
- };
564
- label: TranslationConfig;
565
- pages: {
566
- id: string;
567
- title: TranslationConfig;
568
- fields: import("./FieldConfig").Inferred[];
569
- }[];
570
- review: {
571
- title: TranslationConfig;
572
- fields: import("./FieldConfig").Inferred[];
573
- };
574
- }[];
575
597
  draft?: boolean | undefined;
576
598
  })[];
577
599
  label: TranslationConfig;
@@ -581,12 +603,23 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
581
603
  label: TranslationConfig;
582
604
  emptyValueMessage?: TranslationConfig | undefined;
583
605
  };
584
- fields: {
606
+ fields: ({
607
+ fieldId: string;
608
+ conditionals?: {
609
+ type: "SHOW";
610
+ conditional: import(".").JSONSchema;
611
+ }[] | undefined;
612
+ emptyValueMessage?: TranslationConfig | undefined;
613
+ } | {
585
614
  id: string;
586
615
  value: TranslationConfig;
587
616
  label: TranslationConfig;
617
+ conditionals?: {
618
+ type: "SHOW";
619
+ conditional: import(".").JSONSchema;
620
+ }[] | undefined;
588
621
  emptyValueMessage?: TranslationConfig | undefined;
589
- }[];
622
+ })[];
590
623
  };
591
624
  workqueues: {
592
625
  id: string;
@@ -610,46 +643,39 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
610
643
  }[];
611
644
  }, {
612
645
  id: string;
613
- actions: ({
614
- type: "DECLARE";
646
+ declaration: {
615
647
  label: {
616
648
  id: string;
617
649
  description: string;
618
650
  defaultMessage: string;
619
651
  };
620
- forms: {
621
- version: {
622
- id: string;
623
- label: {
624
- id: string;
625
- description: string;
626
- defaultMessage: string;
627
- };
628
- };
629
- label: {
652
+ pages: {
653
+ id: string;
654
+ title: {
630
655
  id: string;
631
656
  description: string;
632
657
  defaultMessage: string;
633
658
  };
634
- pages: {
659
+ fields: import("./FieldConfig").InferredInput[];
660
+ type?: "FORM" | undefined;
661
+ conditional?: import(".").JSONSchema | undefined;
662
+ }[];
663
+ };
664
+ actions: ({
665
+ type: "DECLARE";
666
+ label: {
667
+ id: string;
668
+ description: string;
669
+ defaultMessage: string;
670
+ };
671
+ review: {
672
+ title: {
635
673
  id: string;
636
- title: {
637
- id: string;
638
- description: string;
639
- defaultMessage: string;
640
- };
641
- fields: import("./FieldConfig").Inferred[];
642
- }[];
643
- review: {
644
- title: {
645
- id: string;
646
- description: string;
647
- defaultMessage: string;
648
- };
649
- fields: import("./FieldConfig").Inferred[];
674
+ description: string;
675
+ defaultMessage: string;
650
676
  };
651
- active?: boolean | undefined;
652
- }[];
677
+ fields: import("./FieldConfig").InferredInput[];
678
+ };
653
679
  draft?: boolean | undefined;
654
680
  conditionals?: ({
655
681
  type: "SHOW";
@@ -665,39 +691,14 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
665
691
  description: string;
666
692
  defaultMessage: string;
667
693
  };
668
- forms: {
669
- version: {
670
- id: string;
671
- label: {
672
- id: string;
673
- description: string;
674
- defaultMessage: string;
675
- };
676
- };
677
- label: {
694
+ review: {
695
+ title: {
678
696
  id: string;
679
697
  description: string;
680
698
  defaultMessage: string;
681
699
  };
682
- pages: {
683
- id: string;
684
- title: {
685
- id: string;
686
- description: string;
687
- defaultMessage: string;
688
- };
689
- fields: import("./FieldConfig").Inferred[];
690
- }[];
691
- review: {
692
- title: {
693
- id: string;
694
- description: string;
695
- defaultMessage: string;
696
- };
697
- fields: import("./FieldConfig").Inferred[];
698
- };
699
- active?: boolean | undefined;
700
- }[];
700
+ fields: import("./FieldConfig").InferredInput[];
701
+ };
701
702
  draft?: boolean | undefined;
702
703
  conditionals?: ({
703
704
  type: "SHOW";
@@ -707,45 +708,20 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
707
708
  conditional: import(".").JSONSchema;
708
709
  })[] | undefined;
709
710
  } | {
710
- type: "REJECT";
711
+ type: "REGISTER";
711
712
  label: {
712
713
  id: string;
713
714
  description: string;
714
715
  defaultMessage: string;
715
716
  };
716
- forms: {
717
- version: {
718
- id: string;
719
- label: {
720
- id: string;
721
- description: string;
722
- defaultMessage: string;
723
- };
724
- };
725
- label: {
717
+ review: {
718
+ title: {
726
719
  id: string;
727
720
  description: string;
728
721
  defaultMessage: string;
729
722
  };
730
- pages: {
731
- id: string;
732
- title: {
733
- id: string;
734
- description: string;
735
- defaultMessage: string;
736
- };
737
- fields: import("./FieldConfig").Inferred[];
738
- }[];
739
- review: {
740
- title: {
741
- id: string;
742
- description: string;
743
- defaultMessage: string;
744
- };
745
- fields: import("./FieldConfig").Inferred[];
746
- };
747
- active?: boolean | undefined;
748
- }[];
723
+ fields: import("./FieldConfig").InferredInput[];
724
+ };
749
725
  draft?: boolean | undefined;
750
726
  conditionals?: ({
751
727
  type: "SHOW";
@@ -755,45 +731,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
755
731
  conditional: import(".").JSONSchema;
756
732
  })[] | undefined;
757
733
  } | {
758
- type: "MARKED_AS_DUPLICATE";
734
+ type: "REJECT";
759
735
  label: {
760
736
  id: string;
761
737
  description: string;
762
738
  defaultMessage: string;
763
739
  };
764
- forms: {
765
- version: {
766
- id: string;
767
- label: {
768
- id: string;
769
- description: string;
770
- defaultMessage: string;
771
- };
772
- };
773
- label: {
774
- id: string;
775
- description: string;
776
- defaultMessage: string;
777
- };
778
- pages: {
779
- id: string;
780
- title: {
781
- id: string;
782
- description: string;
783
- defaultMessage: string;
784
- };
785
- fields: import("./FieldConfig").Inferred[];
786
- }[];
787
- review: {
788
- title: {
789
- id: string;
790
- description: string;
791
- defaultMessage: string;
792
- };
793
- fields: import("./FieldConfig").Inferred[];
794
- };
795
- active?: boolean | undefined;
796
- }[];
797
740
  draft?: boolean | undefined;
798
741
  conditionals?: ({
799
742
  type: "SHOW";
@@ -803,45 +746,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
803
746
  conditional: import(".").JSONSchema;
804
747
  })[] | undefined;
805
748
  } | {
806
- type: "ARCHIVE";
749
+ type: "MARKED_AS_DUPLICATE";
807
750
  label: {
808
751
  id: string;
809
752
  description: string;
810
753
  defaultMessage: string;
811
754
  };
812
- forms: {
813
- version: {
814
- id: string;
815
- label: {
816
- id: string;
817
- description: string;
818
- defaultMessage: string;
819
- };
820
- };
821
- label: {
822
- id: string;
823
- description: string;
824
- defaultMessage: string;
825
- };
826
- pages: {
827
- id: string;
828
- title: {
829
- id: string;
830
- description: string;
831
- defaultMessage: string;
832
- };
833
- fields: import("./FieldConfig").Inferred[];
834
- }[];
835
- review: {
836
- title: {
837
- id: string;
838
- description: string;
839
- defaultMessage: string;
840
- };
841
- fields: import("./FieldConfig").Inferred[];
842
- };
843
- active?: boolean | undefined;
844
- }[];
845
755
  draft?: boolean | undefined;
846
756
  conditionals?: ({
847
757
  type: "SHOW";
@@ -851,45 +761,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
851
761
  conditional: import(".").JSONSchema;
852
762
  })[] | undefined;
853
763
  } | {
854
- type: "REGISTER";
764
+ type: "ARCHIVE";
855
765
  label: {
856
766
  id: string;
857
767
  description: string;
858
768
  defaultMessage: string;
859
769
  };
860
- forms: {
861
- version: {
862
- id: string;
863
- label: {
864
- id: string;
865
- description: string;
866
- defaultMessage: string;
867
- };
868
- };
869
- label: {
870
- id: string;
871
- description: string;
872
- defaultMessage: string;
873
- };
874
- pages: {
875
- id: string;
876
- title: {
877
- id: string;
878
- description: string;
879
- defaultMessage: string;
880
- };
881
- fields: import("./FieldConfig").Inferred[];
882
- }[];
883
- review: {
884
- title: {
885
- id: string;
886
- description: string;
887
- defaultMessage: string;
888
- };
889
- fields: import("./FieldConfig").Inferred[];
890
- };
891
- active?: boolean | undefined;
892
- }[];
893
770
  draft?: boolean | undefined;
894
771
  conditionals?: ({
895
772
  type: "SHOW";
@@ -905,39 +782,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
905
782
  description: string;
906
783
  defaultMessage: string;
907
784
  };
908
- forms: {
909
- version: {
910
- id: string;
911
- label: {
912
- id: string;
913
- description: string;
914
- defaultMessage: string;
915
- };
916
- };
917
- label: {
918
- id: string;
919
- description: string;
920
- defaultMessage: string;
921
- };
922
- pages: {
923
- id: string;
924
- title: {
925
- id: string;
926
- description: string;
927
- defaultMessage: string;
928
- };
929
- fields: import("./FieldConfig").Inferred[];
930
- }[];
931
- review: {
932
- title: {
933
- id: string;
934
- description: string;
935
- defaultMessage: string;
936
- };
937
- fields: import("./FieldConfig").Inferred[];
938
- };
939
- active?: boolean | undefined;
940
- }[];
941
785
  draft?: boolean | undefined;
942
786
  conditionals?: ({
943
787
  type: "SHOW";
@@ -953,39 +797,62 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
953
797
  description: string;
954
798
  defaultMessage: string;
955
799
  };
956
- forms: {
957
- version: {
958
- id: string;
959
- label: {
960
- id: string;
961
- description: string;
962
- defaultMessage: string;
963
- };
964
- };
800
+ printForm: {
965
801
  label: {
966
802
  id: string;
967
803
  description: string;
968
804
  defaultMessage: string;
969
805
  };
970
- pages: {
806
+ pages: ({
971
807
  id: string;
972
808
  title: {
973
809
  id: string;
974
810
  description: string;
975
811
  defaultMessage: string;
976
812
  };
977
- fields: import("./FieldConfig").Inferred[];
978
- }[];
979
- review: {
813
+ fields: import("./FieldConfig").InferredInput[];
814
+ type?: "FORM" | undefined;
815
+ conditional?: import(".").JSONSchema | undefined;
816
+ } | {
817
+ type: "VERIFICATION";
818
+ id: string;
980
819
  title: {
981
820
  id: string;
982
821
  description: string;
983
822
  defaultMessage: string;
984
823
  };
985
- fields: import("./FieldConfig").Inferred[];
986
- };
987
- active?: boolean | undefined;
988
- }[];
824
+ actions: {
825
+ verify: {
826
+ label: {
827
+ id: string;
828
+ description: string;
829
+ defaultMessage: string;
830
+ };
831
+ };
832
+ cancel: {
833
+ label: {
834
+ id: string;
835
+ description: string;
836
+ defaultMessage: string;
837
+ };
838
+ confirmation: {
839
+ title: {
840
+ id: string;
841
+ description: string;
842
+ defaultMessage: string;
843
+ };
844
+ body: {
845
+ id: string;
846
+ description: string;
847
+ defaultMessage: string;
848
+ };
849
+ };
850
+ };
851
+ };
852
+ fields: import("./FieldConfig").InferredInput[];
853
+ conditional?: import(".").JSONSchema | undefined;
854
+ })[];
855
+ };
989
856
  draft?: boolean | undefined;
990
857
  conditionals?: ({
991
858
  type: "SHOW";
@@ -1001,57 +868,104 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1001
868
  description: string;
1002
869
  defaultMessage: string;
1003
870
  };
1004
- forms: {
1005
- version: {
1006
- id: string;
1007
- label: {
1008
- id: string;
1009
- description: string;
1010
- defaultMessage: string;
1011
- };
1012
- };
1013
- label: {
871
+ onboardingForm: ({
872
+ id: string;
873
+ title: {
1014
874
  id: string;
1015
875
  description: string;
1016
876
  defaultMessage: string;
1017
877
  };
1018
- pages: {
878
+ fields: import("./FieldConfig").InferredInput[];
879
+ type?: "FORM" | undefined;
880
+ conditional?: import(".").JSONSchema | undefined;
881
+ } | {
882
+ type: "VERIFICATION";
883
+ id: string;
884
+ title: {
1019
885
  id: string;
1020
- title: {
1021
- id: string;
1022
- description: string;
1023
- defaultMessage: string;
1024
- };
1025
- fields: import("./FieldConfig").Inferred[];
1026
- }[];
1027
- review: {
1028
- title: {
1029
- id: string;
1030
- description: string;
1031
- defaultMessage: string;
1032
- };
1033
- fields: import("./FieldConfig").Inferred[];
886
+ description: string;
887
+ defaultMessage: string;
1034
888
  };
1035
- active?: boolean | undefined;
1036
- }[];
1037
- onboardingForm: {
889
+ actions: {
890
+ verify: {
891
+ label: {
892
+ id: string;
893
+ description: string;
894
+ defaultMessage: string;
895
+ };
896
+ };
897
+ cancel: {
898
+ label: {
899
+ id: string;
900
+ description: string;
901
+ defaultMessage: string;
902
+ };
903
+ confirmation: {
904
+ title: {
905
+ id: string;
906
+ description: string;
907
+ defaultMessage: string;
908
+ };
909
+ body: {
910
+ id: string;
911
+ description: string;
912
+ defaultMessage: string;
913
+ };
914
+ };
915
+ };
916
+ };
917
+ fields: import("./FieldConfig").InferredInput[];
918
+ conditional?: import(".").JSONSchema | undefined;
919
+ })[];
920
+ additionalDetailsForm: ({
1038
921
  id: string;
1039
922
  title: {
1040
923
  id: string;
1041
924
  description: string;
1042
925
  defaultMessage: string;
1043
926
  };
1044
- fields: import("./FieldConfig").Inferred[];
1045
- }[];
1046
- additionalDetailsForm: {
927
+ fields: import("./FieldConfig").InferredInput[];
928
+ type?: "FORM" | undefined;
929
+ conditional?: import(".").JSONSchema | undefined;
930
+ } | {
931
+ type: "VERIFICATION";
1047
932
  id: string;
1048
933
  title: {
1049
934
  id: string;
1050
935
  description: string;
1051
936
  defaultMessage: string;
1052
937
  };
1053
- fields: import("./FieldConfig").Inferred[];
1054
- }[];
938
+ actions: {
939
+ verify: {
940
+ label: {
941
+ id: string;
942
+ description: string;
943
+ defaultMessage: string;
944
+ };
945
+ };
946
+ cancel: {
947
+ label: {
948
+ id: string;
949
+ description: string;
950
+ defaultMessage: string;
951
+ };
952
+ confirmation: {
953
+ title: {
954
+ id: string;
955
+ description: string;
956
+ defaultMessage: string;
957
+ };
958
+ body: {
959
+ id: string;
960
+ description: string;
961
+ defaultMessage: string;
962
+ };
963
+ };
964
+ };
965
+ };
966
+ fields: import("./FieldConfig").InferredInput[];
967
+ conditional?: import(".").JSONSchema | undefined;
968
+ })[];
1055
969
  draft?: boolean | undefined;
1056
970
  conditionals?: ({
1057
971
  type: "SHOW";
@@ -1067,39 +981,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1067
981
  description: string;
1068
982
  defaultMessage: string;
1069
983
  };
1070
- forms: {
1071
- version: {
1072
- id: string;
1073
- label: {
1074
- id: string;
1075
- description: string;
1076
- defaultMessage: string;
1077
- };
1078
- };
1079
- label: {
1080
- id: string;
1081
- description: string;
1082
- defaultMessage: string;
1083
- };
1084
- pages: {
1085
- id: string;
1086
- title: {
1087
- id: string;
1088
- description: string;
1089
- defaultMessage: string;
1090
- };
1091
- fields: import("./FieldConfig").Inferred[];
1092
- }[];
1093
- review: {
1094
- title: {
1095
- id: string;
1096
- description: string;
1097
- defaultMessage: string;
1098
- };
1099
- fields: import("./FieldConfig").Inferred[];
1100
- };
1101
- active?: boolean | undefined;
1102
- }[];
1103
984
  draft?: boolean | undefined;
1104
985
  conditionals?: ({
1105
986
  type: "SHOW";
@@ -1115,87 +996,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1115
996
  description: string;
1116
997
  defaultMessage: string;
1117
998
  };
1118
- forms: {
1119
- version: {
1120
- id: string;
1121
- label: {
1122
- id: string;
1123
- description: string;
1124
- defaultMessage: string;
1125
- };
1126
- };
1127
- label: {
1128
- id: string;
1129
- description: string;
1130
- defaultMessage: string;
1131
- };
1132
- pages: {
1133
- id: string;
1134
- title: {
1135
- id: string;
1136
- description: string;
1137
- defaultMessage: string;
1138
- };
1139
- fields: import("./FieldConfig").Inferred[];
1140
- }[];
1141
- review: {
1142
- title: {
1143
- id: string;
1144
- description: string;
1145
- defaultMessage: string;
1146
- };
1147
- fields: import("./FieldConfig").Inferred[];
1148
- };
1149
- active?: boolean | undefined;
1150
- }[];
1151
- draft?: boolean | undefined;
1152
- conditionals?: ({
1153
- type: "SHOW";
1154
- conditional: import(".").JSONSchema;
1155
- } | {
1156
- type: "ENABLE";
1157
- conditional: import(".").JSONSchema;
1158
- })[] | undefined;
1159
- } | {
1160
- type: "CUSTOM";
1161
- label: {
1162
- id: string;
1163
- description: string;
1164
- defaultMessage: string;
1165
- };
1166
- forms: {
1167
- version: {
1168
- id: string;
1169
- label: {
1170
- id: string;
1171
- description: string;
1172
- defaultMessage: string;
1173
- };
1174
- };
1175
- label: {
1176
- id: string;
1177
- description: string;
1178
- defaultMessage: string;
1179
- };
1180
- pages: {
1181
- id: string;
1182
- title: {
1183
- id: string;
1184
- description: string;
1185
- defaultMessage: string;
1186
- };
1187
- fields: import("./FieldConfig").Inferred[];
1188
- }[];
1189
- review: {
1190
- title: {
1191
- id: string;
1192
- description: string;
1193
- defaultMessage: string;
1194
- };
1195
- fields: import("./FieldConfig").Inferred[];
1196
- };
1197
- active?: boolean | undefined;
1198
- }[];
1199
999
  draft?: boolean | undefined;
1200
1000
  conditionals?: ({
1201
1001
  type: "SHOW";
@@ -1224,7 +1024,18 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1224
1024
  defaultMessage: string;
1225
1025
  } | undefined;
1226
1026
  };
1227
- fields: {
1027
+ fields: ({
1028
+ fieldId: string;
1029
+ conditionals?: {
1030
+ type: "SHOW";
1031
+ conditional: import(".").JSONSchema;
1032
+ }[] | undefined;
1033
+ emptyValueMessage?: {
1034
+ id: string;
1035
+ description: string;
1036
+ defaultMessage: string;
1037
+ } | undefined;
1038
+ } | {
1228
1039
  id: string;
1229
1040
  value: {
1230
1041
  id: string;
@@ -1236,12 +1047,16 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1236
1047
  description: string;
1237
1048
  defaultMessage: string;
1238
1049
  };
1050
+ conditionals?: {
1051
+ type: "SHOW";
1052
+ conditional: import(".").JSONSchema;
1053
+ }[] | undefined;
1239
1054
  emptyValueMessage?: {
1240
1055
  id: string;
1241
1056
  description: string;
1242
1057
  defaultMessage: string;
1243
1058
  } | undefined;
1244
- }[];
1059
+ })[];
1245
1060
  };
1246
1061
  workqueues: {
1247
1062
  id: string;
@@ -1273,6 +1088,16 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1273
1088
  }[] | undefined;
1274
1089
  }>, {
1275
1090
  id: string;
1091
+ declaration: {
1092
+ label: TranslationConfig;
1093
+ pages: {
1094
+ type: "FORM";
1095
+ id: string;
1096
+ title: TranslationConfig;
1097
+ fields: import("./FieldConfig").Inferred[];
1098
+ conditional?: import(".").JSONSchema | undefined;
1099
+ }[];
1100
+ };
1276
1101
  actions: ({
1277
1102
  type: "DECLARE";
1278
1103
  conditionals: ({
@@ -1283,23 +1108,10 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1283
1108
  conditional: import(".").JSONSchema;
1284
1109
  })[];
1285
1110
  label: TranslationConfig;
1286
- forms: {
1287
- active: boolean;
1288
- version: {
1289
- id: string;
1290
- label: TranslationConfig;
1291
- };
1292
- label: TranslationConfig;
1293
- pages: {
1294
- id: string;
1295
- title: TranslationConfig;
1296
- fields: import("./FieldConfig").Inferred[];
1297
- }[];
1298
- review: {
1299
- title: TranslationConfig;
1300
- fields: import("./FieldConfig").Inferred[];
1301
- };
1302
- }[];
1111
+ review: {
1112
+ title: TranslationConfig;
1113
+ fields: import("./FieldConfig").Inferred[];
1114
+ };
1303
1115
  draft?: boolean | undefined;
1304
1116
  } | {
1305
1117
  type: "VALIDATE";
@@ -1311,26 +1123,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1311
1123
  conditional: import(".").JSONSchema;
1312
1124
  })[];
1313
1125
  label: TranslationConfig;
1314
- forms: {
1315
- active: boolean;
1316
- version: {
1317
- id: string;
1318
- label: TranslationConfig;
1319
- };
1320
- label: TranslationConfig;
1321
- pages: {
1322
- id: string;
1323
- title: TranslationConfig;
1324
- fields: import("./FieldConfig").Inferred[];
1325
- }[];
1326
- review: {
1327
- title: TranslationConfig;
1328
- fields: import("./FieldConfig").Inferred[];
1329
- };
1330
- }[];
1126
+ review: {
1127
+ title: TranslationConfig;
1128
+ fields: import("./FieldConfig").Inferred[];
1129
+ };
1331
1130
  draft?: boolean | undefined;
1332
1131
  } | {
1333
- type: "REJECT";
1132
+ type: "REGISTER";
1334
1133
  conditionals: ({
1335
1134
  type: "SHOW";
1336
1135
  conditional: import(".").JSONSchema;
@@ -1339,26 +1138,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1339
1138
  conditional: import(".").JSONSchema;
1340
1139
  })[];
1341
1140
  label: TranslationConfig;
1342
- forms: {
1343
- active: boolean;
1344
- version: {
1345
- id: string;
1346
- label: TranslationConfig;
1347
- };
1348
- label: TranslationConfig;
1349
- pages: {
1350
- id: string;
1351
- title: TranslationConfig;
1352
- fields: import("./FieldConfig").Inferred[];
1353
- }[];
1354
- review: {
1355
- title: TranslationConfig;
1356
- fields: import("./FieldConfig").Inferred[];
1357
- };
1358
- }[];
1141
+ review: {
1142
+ title: TranslationConfig;
1143
+ fields: import("./FieldConfig").Inferred[];
1144
+ };
1359
1145
  draft?: boolean | undefined;
1360
1146
  } | {
1361
- type: "MARKED_AS_DUPLICATE";
1147
+ type: "REJECT";
1362
1148
  conditionals: ({
1363
1149
  type: "SHOW";
1364
1150
  conditional: import(".").JSONSchema;
@@ -1367,26 +1153,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1367
1153
  conditional: import(".").JSONSchema;
1368
1154
  })[];
1369
1155
  label: TranslationConfig;
1370
- forms: {
1371
- active: boolean;
1372
- version: {
1373
- id: string;
1374
- label: TranslationConfig;
1375
- };
1376
- label: TranslationConfig;
1377
- pages: {
1378
- id: string;
1379
- title: TranslationConfig;
1380
- fields: import("./FieldConfig").Inferred[];
1381
- }[];
1382
- review: {
1383
- title: TranslationConfig;
1384
- fields: import("./FieldConfig").Inferred[];
1385
- };
1386
- }[];
1387
1156
  draft?: boolean | undefined;
1388
1157
  } | {
1389
- type: "ARCHIVE";
1158
+ type: "MARKED_AS_DUPLICATE";
1390
1159
  conditionals: ({
1391
1160
  type: "SHOW";
1392
1161
  conditional: import(".").JSONSchema;
@@ -1395,26 +1164,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1395
1164
  conditional: import(".").JSONSchema;
1396
1165
  })[];
1397
1166
  label: TranslationConfig;
1398
- forms: {
1399
- active: boolean;
1400
- version: {
1401
- id: string;
1402
- label: TranslationConfig;
1403
- };
1404
- label: TranslationConfig;
1405
- pages: {
1406
- id: string;
1407
- title: TranslationConfig;
1408
- fields: import("./FieldConfig").Inferred[];
1409
- }[];
1410
- review: {
1411
- title: TranslationConfig;
1412
- fields: import("./FieldConfig").Inferred[];
1413
- };
1414
- }[];
1415
1167
  draft?: boolean | undefined;
1416
1168
  } | {
1417
- type: "REGISTER";
1169
+ type: "ARCHIVE";
1418
1170
  conditionals: ({
1419
1171
  type: "SHOW";
1420
1172
  conditional: import(".").JSONSchema;
@@ -1423,23 +1175,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1423
1175
  conditional: import(".").JSONSchema;
1424
1176
  })[];
1425
1177
  label: TranslationConfig;
1426
- forms: {
1427
- active: boolean;
1428
- version: {
1429
- id: string;
1430
- label: TranslationConfig;
1431
- };
1432
- label: TranslationConfig;
1433
- pages: {
1434
- id: string;
1435
- title: TranslationConfig;
1436
- fields: import("./FieldConfig").Inferred[];
1437
- }[];
1438
- review: {
1439
- title: TranslationConfig;
1440
- fields: import("./FieldConfig").Inferred[];
1441
- };
1442
- }[];
1443
1178
  draft?: boolean | undefined;
1444
1179
  } | {
1445
1180
  type: "DELETE";
@@ -1451,23 +1186,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1451
1186
  conditional: import(".").JSONSchema;
1452
1187
  })[];
1453
1188
  label: TranslationConfig;
1454
- forms: {
1455
- active: boolean;
1456
- version: {
1457
- id: string;
1458
- label: TranslationConfig;
1459
- };
1460
- label: TranslationConfig;
1461
- pages: {
1462
- id: string;
1463
- title: TranslationConfig;
1464
- fields: import("./FieldConfig").Inferred[];
1465
- }[];
1466
- review: {
1467
- title: TranslationConfig;
1468
- fields: import("./FieldConfig").Inferred[];
1469
- };
1470
- }[];
1471
1189
  draft?: boolean | undefined;
1472
1190
  } | {
1473
1191
  type: "PRINT_CERTIFICATE";
@@ -1479,23 +1197,34 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1479
1197
  conditional: import(".").JSONSchema;
1480
1198
  })[];
1481
1199
  label: TranslationConfig;
1482
- forms: {
1483
- active: boolean;
1484
- version: {
1485
- id: string;
1486
- label: TranslationConfig;
1487
- };
1200
+ printForm: {
1488
1201
  label: TranslationConfig;
1489
- pages: {
1202
+ pages: ({
1203
+ type: "FORM";
1490
1204
  id: string;
1491
1205
  title: TranslationConfig;
1492
1206
  fields: import("./FieldConfig").Inferred[];
1493
- }[];
1494
- review: {
1207
+ conditional?: import(".").JSONSchema | undefined;
1208
+ } | {
1209
+ type: "VERIFICATION";
1210
+ id: string;
1495
1211
  title: TranslationConfig;
1496
- fields: import("./FieldConfig").Inferred[];
1497
- };
1498
- }[];
1212
+ actions: {
1213
+ verify: {
1214
+ label: TranslationConfig;
1215
+ };
1216
+ cancel: {
1217
+ label: TranslationConfig;
1218
+ confirmation: {
1219
+ title: TranslationConfig;
1220
+ body: TranslationConfig;
1221
+ };
1222
+ };
1223
+ };
1224
+ fields: import("./FieldConfig").Inferred[];
1225
+ conditional?: import(".").JSONSchema | undefined;
1226
+ })[];
1227
+ };
1499
1228
  draft?: boolean | undefined;
1500
1229
  } | {
1501
1230
  type: "REQUEST_CORRECTION";
@@ -1507,33 +1236,56 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1507
1236
  conditional: import(".").JSONSchema;
1508
1237
  })[];
1509
1238
  label: TranslationConfig;
1510
- forms: {
1511
- active: boolean;
1512
- version: {
1513
- id: string;
1514
- label: TranslationConfig;
1515
- };
1516
- label: TranslationConfig;
1517
- pages: {
1518
- id: string;
1519
- title: TranslationConfig;
1520
- fields: import("./FieldConfig").Inferred[];
1521
- }[];
1522
- review: {
1523
- title: TranslationConfig;
1524
- fields: import("./FieldConfig").Inferred[];
1239
+ onboardingForm: ({
1240
+ type: "FORM";
1241
+ id: string;
1242
+ title: TranslationConfig;
1243
+ fields: import("./FieldConfig").Inferred[];
1244
+ conditional?: import(".").JSONSchema | undefined;
1245
+ } | {
1246
+ type: "VERIFICATION";
1247
+ id: string;
1248
+ title: TranslationConfig;
1249
+ actions: {
1250
+ verify: {
1251
+ label: TranslationConfig;
1252
+ };
1253
+ cancel: {
1254
+ label: TranslationConfig;
1255
+ confirmation: {
1256
+ title: TranslationConfig;
1257
+ body: TranslationConfig;
1258
+ };
1259
+ };
1525
1260
  };
1526
- }[];
1527
- onboardingForm: {
1261
+ fields: import("./FieldConfig").Inferred[];
1262
+ conditional?: import(".").JSONSchema | undefined;
1263
+ })[];
1264
+ additionalDetailsForm: ({
1265
+ type: "FORM";
1528
1266
  id: string;
1529
1267
  title: TranslationConfig;
1530
1268
  fields: import("./FieldConfig").Inferred[];
1531
- }[];
1532
- additionalDetailsForm: {
1269
+ conditional?: import(".").JSONSchema | undefined;
1270
+ } | {
1271
+ type: "VERIFICATION";
1533
1272
  id: string;
1534
1273
  title: TranslationConfig;
1274
+ actions: {
1275
+ verify: {
1276
+ label: TranslationConfig;
1277
+ };
1278
+ cancel: {
1279
+ label: TranslationConfig;
1280
+ confirmation: {
1281
+ title: TranslationConfig;
1282
+ body: TranslationConfig;
1283
+ };
1284
+ };
1285
+ };
1535
1286
  fields: import("./FieldConfig").Inferred[];
1536
- }[];
1287
+ conditional?: import(".").JSONSchema | undefined;
1288
+ })[];
1537
1289
  draft?: boolean | undefined;
1538
1290
  } | {
1539
1291
  type: "REJECT_CORRECTION";
@@ -1545,23 +1297,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1545
1297
  conditional: import(".").JSONSchema;
1546
1298
  })[];
1547
1299
  label: TranslationConfig;
1548
- forms: {
1549
- active: boolean;
1550
- version: {
1551
- id: string;
1552
- label: TranslationConfig;
1553
- };
1554
- label: TranslationConfig;
1555
- pages: {
1556
- id: string;
1557
- title: TranslationConfig;
1558
- fields: import("./FieldConfig").Inferred[];
1559
- }[];
1560
- review: {
1561
- title: TranslationConfig;
1562
- fields: import("./FieldConfig").Inferred[];
1563
- };
1564
- }[];
1565
1300
  draft?: boolean | undefined;
1566
1301
  } | {
1567
1302
  type: "APPROVE_CORRECTION";
@@ -1573,66 +1308,32 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1573
1308
  conditional: import(".").JSONSchema;
1574
1309
  })[];
1575
1310
  label: TranslationConfig;
1576
- forms: {
1577
- active: boolean;
1578
- version: {
1579
- id: string;
1580
- label: TranslationConfig;
1581
- };
1582
- label: TranslationConfig;
1583
- pages: {
1584
- id: string;
1585
- title: TranslationConfig;
1586
- fields: import("./FieldConfig").Inferred[];
1587
- }[];
1588
- review: {
1589
- title: TranslationConfig;
1590
- fields: import("./FieldConfig").Inferred[];
1591
- };
1592
- }[];
1593
1311
  draft?: boolean | undefined;
1594
- } | {
1595
- type: "CUSTOM";
1596
- conditionals: ({
1597
- type: "SHOW";
1598
- conditional: import(".").JSONSchema;
1599
- } | {
1600
- type: "ENABLE";
1601
- conditional: import(".").JSONSchema;
1602
- })[];
1603
- label: TranslationConfig;
1604
- forms: {
1605
- active: boolean;
1606
- version: {
1607
- id: string;
1608
- label: TranslationConfig;
1609
- };
1610
- label: TranslationConfig;
1611
- pages: {
1612
- id: string;
1613
- title: TranslationConfig;
1614
- fields: import("./FieldConfig").Inferred[];
1615
- }[];
1616
- review: {
1617
- title: TranslationConfig;
1618
- fields: import("./FieldConfig").Inferred[];
1619
- };
1620
- }[];
1621
- draft?: boolean | undefined;
1622
- })[];
1623
- label: TranslationConfig;
1624
- summary: {
1625
- title: {
1626
- id: string;
1312
+ })[];
1313
+ label: TranslationConfig;
1314
+ summary: {
1315
+ title: {
1316
+ id: string;
1627
1317
  label: TranslationConfig;
1628
1318
  emptyValueMessage?: TranslationConfig | undefined;
1629
1319
  };
1630
- fields: {
1320
+ fields: ({
1321
+ fieldId: string;
1322
+ conditionals?: {
1323
+ type: "SHOW";
1324
+ conditional: import(".").JSONSchema;
1325
+ }[] | undefined;
1326
+ emptyValueMessage?: TranslationConfig | undefined;
1327
+ } | {
1631
1328
  id: string;
1632
1329
  value: TranslationConfig;
1633
1330
  label: TranslationConfig;
1331
+ conditionals?: {
1332
+ type: "SHOW";
1333
+ conditional: import(".").JSONSchema;
1334
+ }[] | undefined;
1634
1335
  emptyValueMessage?: TranslationConfig | undefined;
1635
- }[];
1336
+ })[];
1636
1337
  };
1637
1338
  workqueues: {
1638
1339
  id: string;
@@ -1656,46 +1357,39 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1656
1357
  }[];
1657
1358
  }, {
1658
1359
  id: string;
1659
- actions: ({
1660
- type: "DECLARE";
1360
+ declaration: {
1661
1361
  label: {
1662
1362
  id: string;
1663
1363
  description: string;
1664
1364
  defaultMessage: string;
1665
1365
  };
1666
- forms: {
1667
- version: {
1668
- id: string;
1669
- label: {
1670
- id: string;
1671
- description: string;
1672
- defaultMessage: string;
1673
- };
1674
- };
1675
- label: {
1366
+ pages: {
1367
+ id: string;
1368
+ title: {
1676
1369
  id: string;
1677
1370
  description: string;
1678
1371
  defaultMessage: string;
1679
1372
  };
1680
- pages: {
1373
+ fields: import("./FieldConfig").InferredInput[];
1374
+ type?: "FORM" | undefined;
1375
+ conditional?: import(".").JSONSchema | undefined;
1376
+ }[];
1377
+ };
1378
+ actions: ({
1379
+ type: "DECLARE";
1380
+ label: {
1381
+ id: string;
1382
+ description: string;
1383
+ defaultMessage: string;
1384
+ };
1385
+ review: {
1386
+ title: {
1681
1387
  id: string;
1682
- title: {
1683
- id: string;
1684
- description: string;
1685
- defaultMessage: string;
1686
- };
1687
- fields: import("./FieldConfig").Inferred[];
1688
- }[];
1689
- review: {
1690
- title: {
1691
- id: string;
1692
- description: string;
1693
- defaultMessage: string;
1694
- };
1695
- fields: import("./FieldConfig").Inferred[];
1388
+ description: string;
1389
+ defaultMessage: string;
1696
1390
  };
1697
- active?: boolean | undefined;
1698
- }[];
1391
+ fields: import("./FieldConfig").InferredInput[];
1392
+ };
1699
1393
  draft?: boolean | undefined;
1700
1394
  conditionals?: ({
1701
1395
  type: "SHOW";
@@ -1711,39 +1405,14 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1711
1405
  description: string;
1712
1406
  defaultMessage: string;
1713
1407
  };
1714
- forms: {
1715
- version: {
1716
- id: string;
1717
- label: {
1718
- id: string;
1719
- description: string;
1720
- defaultMessage: string;
1721
- };
1722
- };
1723
- label: {
1408
+ review: {
1409
+ title: {
1724
1410
  id: string;
1725
1411
  description: string;
1726
1412
  defaultMessage: string;
1727
1413
  };
1728
- pages: {
1729
- id: string;
1730
- title: {
1731
- id: string;
1732
- description: string;
1733
- defaultMessage: string;
1734
- };
1735
- fields: import("./FieldConfig").Inferred[];
1736
- }[];
1737
- review: {
1738
- title: {
1739
- id: string;
1740
- description: string;
1741
- defaultMessage: string;
1742
- };
1743
- fields: import("./FieldConfig").Inferred[];
1744
- };
1745
- active?: boolean | undefined;
1746
- }[];
1414
+ fields: import("./FieldConfig").InferredInput[];
1415
+ };
1747
1416
  draft?: boolean | undefined;
1748
1417
  conditionals?: ({
1749
1418
  type: "SHOW";
@@ -1753,45 +1422,20 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1753
1422
  conditional: import(".").JSONSchema;
1754
1423
  })[] | undefined;
1755
1424
  } | {
1756
- type: "REJECT";
1425
+ type: "REGISTER";
1757
1426
  label: {
1758
1427
  id: string;
1759
1428
  description: string;
1760
1429
  defaultMessage: string;
1761
1430
  };
1762
- forms: {
1763
- version: {
1764
- id: string;
1765
- label: {
1766
- id: string;
1767
- description: string;
1768
- defaultMessage: string;
1769
- };
1770
- };
1771
- label: {
1431
+ review: {
1432
+ title: {
1772
1433
  id: string;
1773
1434
  description: string;
1774
1435
  defaultMessage: string;
1775
1436
  };
1776
- pages: {
1777
- id: string;
1778
- title: {
1779
- id: string;
1780
- description: string;
1781
- defaultMessage: string;
1782
- };
1783
- fields: import("./FieldConfig").Inferred[];
1784
- }[];
1785
- review: {
1786
- title: {
1787
- id: string;
1788
- description: string;
1789
- defaultMessage: string;
1790
- };
1791
- fields: import("./FieldConfig").Inferred[];
1792
- };
1793
- active?: boolean | undefined;
1794
- }[];
1437
+ fields: import("./FieldConfig").InferredInput[];
1438
+ };
1795
1439
  draft?: boolean | undefined;
1796
1440
  conditionals?: ({
1797
1441
  type: "SHOW";
@@ -1801,45 +1445,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1801
1445
  conditional: import(".").JSONSchema;
1802
1446
  })[] | undefined;
1803
1447
  } | {
1804
- type: "MARKED_AS_DUPLICATE";
1448
+ type: "REJECT";
1805
1449
  label: {
1806
1450
  id: string;
1807
1451
  description: string;
1808
1452
  defaultMessage: string;
1809
1453
  };
1810
- forms: {
1811
- version: {
1812
- id: string;
1813
- label: {
1814
- id: string;
1815
- description: string;
1816
- defaultMessage: string;
1817
- };
1818
- };
1819
- label: {
1820
- id: string;
1821
- description: string;
1822
- defaultMessage: string;
1823
- };
1824
- pages: {
1825
- id: string;
1826
- title: {
1827
- id: string;
1828
- description: string;
1829
- defaultMessage: string;
1830
- };
1831
- fields: import("./FieldConfig").Inferred[];
1832
- }[];
1833
- review: {
1834
- title: {
1835
- id: string;
1836
- description: string;
1837
- defaultMessage: string;
1838
- };
1839
- fields: import("./FieldConfig").Inferred[];
1840
- };
1841
- active?: boolean | undefined;
1842
- }[];
1843
1454
  draft?: boolean | undefined;
1844
1455
  conditionals?: ({
1845
1456
  type: "SHOW";
@@ -1849,45 +1460,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1849
1460
  conditional: import(".").JSONSchema;
1850
1461
  })[] | undefined;
1851
1462
  } | {
1852
- type: "ARCHIVE";
1463
+ type: "MARKED_AS_DUPLICATE";
1853
1464
  label: {
1854
1465
  id: string;
1855
1466
  description: string;
1856
1467
  defaultMessage: string;
1857
1468
  };
1858
- forms: {
1859
- version: {
1860
- id: string;
1861
- label: {
1862
- id: string;
1863
- description: string;
1864
- defaultMessage: string;
1865
- };
1866
- };
1867
- label: {
1868
- id: string;
1869
- description: string;
1870
- defaultMessage: string;
1871
- };
1872
- pages: {
1873
- id: string;
1874
- title: {
1875
- id: string;
1876
- description: string;
1877
- defaultMessage: string;
1878
- };
1879
- fields: import("./FieldConfig").Inferred[];
1880
- }[];
1881
- review: {
1882
- title: {
1883
- id: string;
1884
- description: string;
1885
- defaultMessage: string;
1886
- };
1887
- fields: import("./FieldConfig").Inferred[];
1888
- };
1889
- active?: boolean | undefined;
1890
- }[];
1891
1469
  draft?: boolean | undefined;
1892
1470
  conditionals?: ({
1893
1471
  type: "SHOW";
@@ -1897,45 +1475,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1897
1475
  conditional: import(".").JSONSchema;
1898
1476
  })[] | undefined;
1899
1477
  } | {
1900
- type: "REGISTER";
1478
+ type: "ARCHIVE";
1901
1479
  label: {
1902
1480
  id: string;
1903
1481
  description: string;
1904
1482
  defaultMessage: string;
1905
1483
  };
1906
- forms: {
1907
- version: {
1908
- id: string;
1909
- label: {
1910
- id: string;
1911
- description: string;
1912
- defaultMessage: string;
1913
- };
1914
- };
1915
- label: {
1916
- id: string;
1917
- description: string;
1918
- defaultMessage: string;
1919
- };
1920
- pages: {
1921
- id: string;
1922
- title: {
1923
- id: string;
1924
- description: string;
1925
- defaultMessage: string;
1926
- };
1927
- fields: import("./FieldConfig").Inferred[];
1928
- }[];
1929
- review: {
1930
- title: {
1931
- id: string;
1932
- description: string;
1933
- defaultMessage: string;
1934
- };
1935
- fields: import("./FieldConfig").Inferred[];
1936
- };
1937
- active?: boolean | undefined;
1938
- }[];
1939
1484
  draft?: boolean | undefined;
1940
1485
  conditionals?: ({
1941
1486
  type: "SHOW";
@@ -1951,39 +1496,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1951
1496
  description: string;
1952
1497
  defaultMessage: string;
1953
1498
  };
1954
- forms: {
1955
- version: {
1956
- id: string;
1957
- label: {
1958
- id: string;
1959
- description: string;
1960
- defaultMessage: string;
1961
- };
1962
- };
1963
- label: {
1964
- id: string;
1965
- description: string;
1966
- defaultMessage: string;
1967
- };
1968
- pages: {
1969
- id: string;
1970
- title: {
1971
- id: string;
1972
- description: string;
1973
- defaultMessage: string;
1974
- };
1975
- fields: import("./FieldConfig").Inferred[];
1976
- }[];
1977
- review: {
1978
- title: {
1979
- id: string;
1980
- description: string;
1981
- defaultMessage: string;
1982
- };
1983
- fields: import("./FieldConfig").Inferred[];
1984
- };
1985
- active?: boolean | undefined;
1986
- }[];
1987
1499
  draft?: boolean | undefined;
1988
1500
  conditionals?: ({
1989
1501
  type: "SHOW";
@@ -1999,39 +1511,62 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1999
1511
  description: string;
2000
1512
  defaultMessage: string;
2001
1513
  };
2002
- forms: {
2003
- version: {
2004
- id: string;
2005
- label: {
2006
- id: string;
2007
- description: string;
2008
- defaultMessage: string;
2009
- };
2010
- };
1514
+ printForm: {
2011
1515
  label: {
2012
1516
  id: string;
2013
1517
  description: string;
2014
1518
  defaultMessage: string;
2015
1519
  };
2016
- pages: {
1520
+ pages: ({
2017
1521
  id: string;
2018
1522
  title: {
2019
1523
  id: string;
2020
1524
  description: string;
2021
1525
  defaultMessage: string;
2022
1526
  };
2023
- fields: import("./FieldConfig").Inferred[];
2024
- }[];
2025
- review: {
1527
+ fields: import("./FieldConfig").InferredInput[];
1528
+ type?: "FORM" | undefined;
1529
+ conditional?: import(".").JSONSchema | undefined;
1530
+ } | {
1531
+ type: "VERIFICATION";
1532
+ id: string;
2026
1533
  title: {
2027
1534
  id: string;
2028
1535
  description: string;
2029
1536
  defaultMessage: string;
2030
1537
  };
2031
- fields: import("./FieldConfig").Inferred[];
2032
- };
2033
- active?: boolean | undefined;
2034
- }[];
1538
+ actions: {
1539
+ verify: {
1540
+ label: {
1541
+ id: string;
1542
+ description: string;
1543
+ defaultMessage: string;
1544
+ };
1545
+ };
1546
+ cancel: {
1547
+ label: {
1548
+ id: string;
1549
+ description: string;
1550
+ defaultMessage: string;
1551
+ };
1552
+ confirmation: {
1553
+ title: {
1554
+ id: string;
1555
+ description: string;
1556
+ defaultMessage: string;
1557
+ };
1558
+ body: {
1559
+ id: string;
1560
+ description: string;
1561
+ defaultMessage: string;
1562
+ };
1563
+ };
1564
+ };
1565
+ };
1566
+ fields: import("./FieldConfig").InferredInput[];
1567
+ conditional?: import(".").JSONSchema | undefined;
1568
+ })[];
1569
+ };
2035
1570
  draft?: boolean | undefined;
2036
1571
  conditionals?: ({
2037
1572
  type: "SHOW";
@@ -2047,105 +1582,104 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
2047
1582
  description: string;
2048
1583
  defaultMessage: string;
2049
1584
  };
2050
- forms: {
2051
- version: {
2052
- id: string;
2053
- label: {
2054
- id: string;
2055
- description: string;
2056
- defaultMessage: string;
2057
- };
2058
- };
2059
- label: {
1585
+ onboardingForm: ({
1586
+ id: string;
1587
+ title: {
2060
1588
  id: string;
2061
1589
  description: string;
2062
1590
  defaultMessage: string;
2063
1591
  };
2064
- pages: {
2065
- id: string;
2066
- title: {
2067
- id: string;
2068
- description: string;
2069
- defaultMessage: string;
2070
- };
2071
- fields: import("./FieldConfig").Inferred[];
2072
- }[];
2073
- review: {
2074
- title: {
2075
- id: string;
2076
- description: string;
2077
- defaultMessage: string;
2078
- };
2079
- fields: import("./FieldConfig").Inferred[];
2080
- };
2081
- active?: boolean | undefined;
2082
- }[];
2083
- onboardingForm: {
1592
+ fields: import("./FieldConfig").InferredInput[];
1593
+ type?: "FORM" | undefined;
1594
+ conditional?: import(".").JSONSchema | undefined;
1595
+ } | {
1596
+ type: "VERIFICATION";
2084
1597
  id: string;
2085
1598
  title: {
2086
1599
  id: string;
2087
1600
  description: string;
2088
1601
  defaultMessage: string;
2089
1602
  };
2090
- fields: import("./FieldConfig").Inferred[];
2091
- }[];
2092
- additionalDetailsForm: {
1603
+ actions: {
1604
+ verify: {
1605
+ label: {
1606
+ id: string;
1607
+ description: string;
1608
+ defaultMessage: string;
1609
+ };
1610
+ };
1611
+ cancel: {
1612
+ label: {
1613
+ id: string;
1614
+ description: string;
1615
+ defaultMessage: string;
1616
+ };
1617
+ confirmation: {
1618
+ title: {
1619
+ id: string;
1620
+ description: string;
1621
+ defaultMessage: string;
1622
+ };
1623
+ body: {
1624
+ id: string;
1625
+ description: string;
1626
+ defaultMessage: string;
1627
+ };
1628
+ };
1629
+ };
1630
+ };
1631
+ fields: import("./FieldConfig").InferredInput[];
1632
+ conditional?: import(".").JSONSchema | undefined;
1633
+ })[];
1634
+ additionalDetailsForm: ({
2093
1635
  id: string;
2094
1636
  title: {
2095
1637
  id: string;
2096
1638
  description: string;
2097
1639
  defaultMessage: string;
2098
1640
  };
2099
- fields: import("./FieldConfig").Inferred[];
2100
- }[];
2101
- draft?: boolean | undefined;
2102
- conditionals?: ({
2103
- type: "SHOW";
2104
- conditional: import(".").JSONSchema;
1641
+ fields: import("./FieldConfig").InferredInput[];
1642
+ type?: "FORM" | undefined;
1643
+ conditional?: import(".").JSONSchema | undefined;
2105
1644
  } | {
2106
- type: "ENABLE";
2107
- conditional: import(".").JSONSchema;
2108
- })[] | undefined;
2109
- } | {
2110
- type: "REJECT_CORRECTION";
2111
- label: {
1645
+ type: "VERIFICATION";
2112
1646
  id: string;
2113
- description: string;
2114
- defaultMessage: string;
2115
- };
2116
- forms: {
2117
- version: {
2118
- id: string;
2119
- label: {
2120
- id: string;
2121
- description: string;
2122
- defaultMessage: string;
2123
- };
2124
- };
2125
- label: {
1647
+ title: {
2126
1648
  id: string;
2127
1649
  description: string;
2128
1650
  defaultMessage: string;
2129
1651
  };
2130
- pages: {
2131
- id: string;
2132
- title: {
2133
- id: string;
2134
- description: string;
2135
- defaultMessage: string;
2136
- };
2137
- fields: import("./FieldConfig").Inferred[];
2138
- }[];
2139
- review: {
2140
- title: {
2141
- id: string;
2142
- description: string;
2143
- defaultMessage: string;
2144
- };
2145
- fields: import("./FieldConfig").Inferred[];
2146
- };
2147
- active?: boolean | undefined;
2148
- }[];
1652
+ actions: {
1653
+ verify: {
1654
+ label: {
1655
+ id: string;
1656
+ description: string;
1657
+ defaultMessage: string;
1658
+ };
1659
+ };
1660
+ cancel: {
1661
+ label: {
1662
+ id: string;
1663
+ description: string;
1664
+ defaultMessage: string;
1665
+ };
1666
+ confirmation: {
1667
+ title: {
1668
+ id: string;
1669
+ description: string;
1670
+ defaultMessage: string;
1671
+ };
1672
+ body: {
1673
+ id: string;
1674
+ description: string;
1675
+ defaultMessage: string;
1676
+ };
1677
+ };
1678
+ };
1679
+ };
1680
+ fields: import("./FieldConfig").InferredInput[];
1681
+ conditional?: import(".").JSONSchema | undefined;
1682
+ })[];
2149
1683
  draft?: boolean | undefined;
2150
1684
  conditionals?: ({
2151
1685
  type: "SHOW";
@@ -2155,45 +1689,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
2155
1689
  conditional: import(".").JSONSchema;
2156
1690
  })[] | undefined;
2157
1691
  } | {
2158
- type: "APPROVE_CORRECTION";
1692
+ type: "REJECT_CORRECTION";
2159
1693
  label: {
2160
1694
  id: string;
2161
1695
  description: string;
2162
1696
  defaultMessage: string;
2163
1697
  };
2164
- forms: {
2165
- version: {
2166
- id: string;
2167
- label: {
2168
- id: string;
2169
- description: string;
2170
- defaultMessage: string;
2171
- };
2172
- };
2173
- label: {
2174
- id: string;
2175
- description: string;
2176
- defaultMessage: string;
2177
- };
2178
- pages: {
2179
- id: string;
2180
- title: {
2181
- id: string;
2182
- description: string;
2183
- defaultMessage: string;
2184
- };
2185
- fields: import("./FieldConfig").Inferred[];
2186
- }[];
2187
- review: {
2188
- title: {
2189
- id: string;
2190
- description: string;
2191
- defaultMessage: string;
2192
- };
2193
- fields: import("./FieldConfig").Inferred[];
2194
- };
2195
- active?: boolean | undefined;
2196
- }[];
2197
1698
  draft?: boolean | undefined;
2198
1699
  conditionals?: ({
2199
1700
  type: "SHOW";
@@ -2203,45 +1704,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
2203
1704
  conditional: import(".").JSONSchema;
2204
1705
  })[] | undefined;
2205
1706
  } | {
2206
- type: "CUSTOM";
1707
+ type: "APPROVE_CORRECTION";
2207
1708
  label: {
2208
1709
  id: string;
2209
1710
  description: string;
2210
1711
  defaultMessage: string;
2211
1712
  };
2212
- forms: {
2213
- version: {
2214
- id: string;
2215
- label: {
2216
- id: string;
2217
- description: string;
2218
- defaultMessage: string;
2219
- };
2220
- };
2221
- label: {
2222
- id: string;
2223
- description: string;
2224
- defaultMessage: string;
2225
- };
2226
- pages: {
2227
- id: string;
2228
- title: {
2229
- id: string;
2230
- description: string;
2231
- defaultMessage: string;
2232
- };
2233
- fields: import("./FieldConfig").Inferred[];
2234
- }[];
2235
- review: {
2236
- title: {
2237
- id: string;
2238
- description: string;
2239
- defaultMessage: string;
2240
- };
2241
- fields: import("./FieldConfig").Inferred[];
2242
- };
2243
- active?: boolean | undefined;
2244
- }[];
2245
1713
  draft?: boolean | undefined;
2246
1714
  conditionals?: ({
2247
1715
  type: "SHOW";
@@ -2270,7 +1738,18 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
2270
1738
  defaultMessage: string;
2271
1739
  } | undefined;
2272
1740
  };
2273
- fields: {
1741
+ fields: ({
1742
+ fieldId: string;
1743
+ conditionals?: {
1744
+ type: "SHOW";
1745
+ conditional: import(".").JSONSchema;
1746
+ }[] | undefined;
1747
+ emptyValueMessage?: {
1748
+ id: string;
1749
+ description: string;
1750
+ defaultMessage: string;
1751
+ } | undefined;
1752
+ } | {
2274
1753
  id: string;
2275
1754
  value: {
2276
1755
  id: string;
@@ -2282,12 +1761,16 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
2282
1761
  description: string;
2283
1762
  defaultMessage: string;
2284
1763
  };
1764
+ conditionals?: {
1765
+ type: "SHOW";
1766
+ conditional: import(".").JSONSchema;
1767
+ }[] | undefined;
2285
1768
  emptyValueMessage?: {
2286
1769
  id: string;
2287
1770
  description: string;
2288
1771
  defaultMessage: string;
2289
1772
  } | undefined;
2290
- }[];
1773
+ })[];
2291
1774
  };
2292
1775
  workqueues: {
2293
1776
  id: string;