@opencrvs/toolkit 1.8.0-rc.ff73871 → 1.8.0-rc.ffb4f66

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