@opencrvs/toolkit 1.8.0-rc.fd16d13 → 1.8.0-rc.fd31705

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +6304 -12729
  3. package/dist/commons/conditionals/conditionals.d.ts +26 -3
  4. package/dist/commons/conditionals/validate.d.ts +12 -11
  5. package/dist/commons/events/ActionConfig.d.ts +1123 -2056
  6. package/dist/commons/events/ActionDocument.d.ts +8065 -452
  7. package/dist/commons/events/ActionInput.d.ts +3021 -594
  8. package/dist/commons/events/ActionType.d.ts +24 -11
  9. package/dist/commons/events/CompositeFieldValue.d.ts +52 -12
  10. package/dist/commons/events/Conditional.d.ts +21 -5
  11. package/dist/commons/events/Draft.d.ts +145 -61
  12. package/dist/commons/events/EventConfig.d.ts +551 -1206
  13. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  14. package/dist/commons/events/EventDocument.d.ts +1565 -544
  15. package/dist/commons/events/EventIndex.d.ts +6 -3
  16. package/dist/commons/events/EventMetadata.d.ts +3 -0
  17. package/dist/commons/events/FieldConfig.d.ts +483 -76
  18. package/dist/commons/events/FieldType.d.ts +2 -1
  19. package/dist/commons/events/FieldTypeMapping.d.ts +57 -8
  20. package/dist/commons/events/FieldValue.d.ts +30 -10
  21. package/dist/commons/events/FormConfig.d.ts +633 -48
  22. package/dist/commons/events/PageConfig.d.ts +335 -0
  23. package/dist/commons/events/TemplateConfig.d.ts +2 -2
  24. package/dist/commons/events/defineConfig.d.ts +91 -216
  25. package/dist/commons/events/index.d.ts +2 -1
  26. package/dist/commons/events/test.utils.d.ts +87 -268
  27. package/dist/commons/events/utils.d.ts +90 -83
  28. package/dist/conditionals/index.js +166 -81
  29. package/dist/events/index.js +1188 -743
  30. 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,26 +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";
332
+ type: "REGISTER";
288
333
  conditionals: ({
289
334
  type: "SHOW";
290
335
  conditional: import(".").JSONSchema;
@@ -293,26 +338,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
293
338
  conditional: import(".").JSONSchema;
294
339
  })[];
295
340
  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
- }[];
341
+ review: {
342
+ title: TranslationConfig;
343
+ fields: import("./FieldConfig").Inferred[];
344
+ };
313
345
  draft?: boolean | undefined;
314
346
  } | {
315
- type: "MARKED_AS_DUPLICATE";
347
+ type: "REJECT";
316
348
  conditionals: ({
317
349
  type: "SHOW";
318
350
  conditional: import(".").JSONSchema;
@@ -321,26 +353,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
321
353
  conditional: import(".").JSONSchema;
322
354
  })[];
323
355
  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
356
  draft?: boolean | undefined;
342
357
  } | {
343
- type: "ARCHIVE";
358
+ type: "MARKED_AS_DUPLICATE";
344
359
  conditionals: ({
345
360
  type: "SHOW";
346
361
  conditional: import(".").JSONSchema;
@@ -349,26 +364,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
349
364
  conditional: import(".").JSONSchema;
350
365
  })[];
351
366
  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
367
  draft?: boolean | undefined;
370
368
  } | {
371
- type: "REGISTER";
369
+ type: "ARCHIVE";
372
370
  conditionals: ({
373
371
  type: "SHOW";
374
372
  conditional: import(".").JSONSchema;
@@ -377,23 +375,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
377
375
  conditional: import(".").JSONSchema;
378
376
  })[];
379
377
  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
378
  draft?: boolean | undefined;
398
379
  } | {
399
380
  type: "DELETE";
@@ -405,23 +386,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
405
386
  conditional: import(".").JSONSchema;
406
387
  })[];
407
388
  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
389
  draft?: boolean | undefined;
426
390
  } | {
427
391
  type: "PRINT_CERTIFICATE";
@@ -433,23 +397,34 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
433
397
  conditional: import(".").JSONSchema;
434
398
  })[];
435
399
  label: TranslationConfig;
436
- forms: {
437
- active: boolean;
438
- version: {
439
- id: string;
440
- label: TranslationConfig;
441
- };
400
+ printForm: {
442
401
  label: TranslationConfig;
443
- pages: {
402
+ pages: ({
403
+ type: "FORM";
444
404
  id: string;
445
405
  title: TranslationConfig;
446
406
  fields: import("./FieldConfig").Inferred[];
447
- }[];
448
- review: {
407
+ conditional?: import(".").JSONSchema | undefined;
408
+ } | {
409
+ type: "VERIFICATION";
410
+ id: string;
449
411
  title: TranslationConfig;
450
- fields: import("./FieldConfig").Inferred[];
451
- };
452
- }[];
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
+ };
453
428
  draft?: boolean | undefined;
454
429
  } | {
455
430
  type: "REQUEST_CORRECTION";
@@ -461,33 +436,56 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
461
436
  conditional: import(".").JSONSchema;
462
437
  })[];
463
438
  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[];
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
+ };
479
460
  };
480
- }[];
481
- onboardingForm: {
461
+ fields: import("./FieldConfig").Inferred[];
462
+ conditional?: import(".").JSONSchema | undefined;
463
+ })[];
464
+ additionalDetailsForm: ({
465
+ type: "FORM";
482
466
  id: string;
483
467
  title: TranslationConfig;
484
468
  fields: import("./FieldConfig").Inferred[];
485
- }[];
486
- additionalDetailsForm: {
469
+ conditional?: import(".").JSONSchema | undefined;
470
+ } | {
471
+ type: "VERIFICATION";
487
472
  id: string;
488
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
+ };
489
486
  fields: import("./FieldConfig").Inferred[];
490
- }[];
487
+ conditional?: import(".").JSONSchema | undefined;
488
+ })[];
491
489
  draft?: boolean | undefined;
492
490
  } | {
493
491
  type: "REJECT_CORRECTION";
@@ -499,23 +497,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
499
497
  conditional: import(".").JSONSchema;
500
498
  })[];
501
499
  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
500
  draft?: boolean | undefined;
520
501
  } | {
521
502
  type: "APPROVE_CORRECTION";
@@ -527,51 +508,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
527
508
  conditional: import(".").JSONSchema;
528
509
  })[];
529
510
  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
511
  draft?: boolean | undefined;
576
512
  })[];
577
513
  label: TranslationConfig;
@@ -610,46 +546,39 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
610
546
  }[];
611
547
  }, {
612
548
  id: string;
613
- actions: ({
614
- type: "DECLARE";
549
+ declaration: {
615
550
  label: {
616
551
  id: string;
617
552
  description: string;
618
553
  defaultMessage: string;
619
554
  };
620
- forms: {
621
- version: {
622
- id: string;
623
- label: {
624
- id: string;
625
- description: string;
626
- defaultMessage: string;
627
- };
628
- };
629
- label: {
555
+ pages: {
556
+ id: string;
557
+ title: {
630
558
  id: string;
631
559
  description: string;
632
560
  defaultMessage: string;
633
561
  };
634
- 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: {
635
576
  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[];
577
+ description: string;
578
+ defaultMessage: string;
650
579
  };
651
- active?: boolean | undefined;
652
- }[];
580
+ fields: import("./FieldConfig").InferredInput[];
581
+ };
653
582
  draft?: boolean | undefined;
654
583
  conditionals?: ({
655
584
  type: "SHOW";
@@ -665,39 +594,14 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
665
594
  description: string;
666
595
  defaultMessage: string;
667
596
  };
668
- forms: {
669
- version: {
670
- id: string;
671
- label: {
672
- id: string;
673
- description: string;
674
- defaultMessage: string;
675
- };
676
- };
677
- label: {
597
+ review: {
598
+ title: {
678
599
  id: string;
679
600
  description: string;
680
601
  defaultMessage: string;
681
602
  };
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
- }[];
603
+ fields: import("./FieldConfig").InferredInput[];
604
+ };
701
605
  draft?: boolean | undefined;
702
606
  conditionals?: ({
703
607
  type: "SHOW";
@@ -707,45 +611,20 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
707
611
  conditional: import(".").JSONSchema;
708
612
  })[] | undefined;
709
613
  } | {
710
- type: "REJECT";
614
+ type: "REGISTER";
711
615
  label: {
712
616
  id: string;
713
617
  description: string;
714
618
  defaultMessage: string;
715
619
  };
716
- forms: {
717
- version: {
718
- id: string;
719
- label: {
720
- id: string;
721
- description: string;
722
- defaultMessage: string;
723
- };
724
- };
725
- label: {
620
+ review: {
621
+ title: {
726
622
  id: string;
727
623
  description: string;
728
624
  defaultMessage: string;
729
625
  };
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
- }[];
626
+ fields: import("./FieldConfig").InferredInput[];
627
+ };
749
628
  draft?: boolean | undefined;
750
629
  conditionals?: ({
751
630
  type: "SHOW";
@@ -755,45 +634,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
755
634
  conditional: import(".").JSONSchema;
756
635
  })[] | undefined;
757
636
  } | {
758
- type: "MARKED_AS_DUPLICATE";
637
+ type: "REJECT";
759
638
  label: {
760
639
  id: string;
761
640
  description: string;
762
641
  defaultMessage: string;
763
642
  };
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
643
  draft?: boolean | undefined;
798
644
  conditionals?: ({
799
645
  type: "SHOW";
@@ -803,45 +649,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
803
649
  conditional: import(".").JSONSchema;
804
650
  })[] | undefined;
805
651
  } | {
806
- type: "ARCHIVE";
652
+ type: "MARKED_AS_DUPLICATE";
807
653
  label: {
808
654
  id: string;
809
655
  description: string;
810
656
  defaultMessage: string;
811
657
  };
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
658
  draft?: boolean | undefined;
846
659
  conditionals?: ({
847
660
  type: "SHOW";
@@ -851,45 +664,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
851
664
  conditional: import(".").JSONSchema;
852
665
  })[] | undefined;
853
666
  } | {
854
- type: "REGISTER";
667
+ type: "ARCHIVE";
855
668
  label: {
856
669
  id: string;
857
670
  description: string;
858
671
  defaultMessage: string;
859
672
  };
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
673
  draft?: boolean | undefined;
894
674
  conditionals?: ({
895
675
  type: "SHOW";
@@ -905,39 +685,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
905
685
  description: string;
906
686
  defaultMessage: string;
907
687
  };
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
688
  draft?: boolean | undefined;
942
689
  conditionals?: ({
943
690
  type: "SHOW";
@@ -953,39 +700,62 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
953
700
  description: string;
954
701
  defaultMessage: string;
955
702
  };
956
- forms: {
957
- version: {
958
- id: string;
959
- label: {
960
- id: string;
961
- description: string;
962
- defaultMessage: string;
963
- };
964
- };
703
+ printForm: {
965
704
  label: {
966
705
  id: string;
967
706
  description: string;
968
707
  defaultMessage: string;
969
708
  };
970
- pages: {
709
+ pages: ({
971
710
  id: string;
972
711
  title: {
973
712
  id: string;
974
713
  description: string;
975
714
  defaultMessage: string;
976
715
  };
977
- fields: import("./FieldConfig").Inferred[];
978
- }[];
979
- review: {
716
+ fields: import("./FieldConfig").InferredInput[];
717
+ type?: "FORM" | undefined;
718
+ conditional?: import(".").JSONSchema | undefined;
719
+ } | {
720
+ type: "VERIFICATION";
721
+ id: string;
980
722
  title: {
981
723
  id: string;
982
724
  description: string;
983
725
  defaultMessage: string;
984
726
  };
985
- fields: import("./FieldConfig").Inferred[];
986
- };
987
- active?: boolean | undefined;
988
- }[];
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
+ };
989
759
  draft?: boolean | undefined;
990
760
  conditionals?: ({
991
761
  type: "SHOW";
@@ -1001,57 +771,104 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1001
771
  description: string;
1002
772
  defaultMessage: string;
1003
773
  };
1004
- forms: {
1005
- version: {
1006
- id: string;
1007
- label: {
1008
- id: string;
1009
- description: string;
1010
- defaultMessage: string;
1011
- };
1012
- };
1013
- label: {
774
+ onboardingForm: ({
775
+ id: string;
776
+ title: {
1014
777
  id: string;
1015
778
  description: string;
1016
779
  defaultMessage: string;
1017
780
  };
1018
- pages: {
781
+ fields: import("./FieldConfig").InferredInput[];
782
+ type?: "FORM" | undefined;
783
+ conditional?: import(".").JSONSchema | undefined;
784
+ } | {
785
+ type: "VERIFICATION";
786
+ id: string;
787
+ title: {
1019
788
  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[];
789
+ description: string;
790
+ defaultMessage: string;
1034
791
  };
1035
- active?: boolean | undefined;
1036
- }[];
1037
- 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: ({
1038
824
  id: string;
1039
825
  title: {
1040
826
  id: string;
1041
827
  description: string;
1042
828
  defaultMessage: string;
1043
829
  };
1044
- fields: import("./FieldConfig").Inferred[];
1045
- }[];
1046
- additionalDetailsForm: {
830
+ fields: import("./FieldConfig").InferredInput[];
831
+ type?: "FORM" | undefined;
832
+ conditional?: import(".").JSONSchema | undefined;
833
+ } | {
834
+ type: "VERIFICATION";
1047
835
  id: string;
1048
836
  title: {
1049
837
  id: string;
1050
838
  description: string;
1051
839
  defaultMessage: string;
1052
840
  };
1053
- fields: import("./FieldConfig").Inferred[];
1054
- }[];
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
+ })[];
1055
872
  draft?: boolean | undefined;
1056
873
  conditionals?: ({
1057
874
  type: "SHOW";
@@ -1067,39 +884,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1067
884
  description: string;
1068
885
  defaultMessage: string;
1069
886
  };
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
887
  draft?: boolean | undefined;
1104
888
  conditionals?: ({
1105
889
  type: "SHOW";
@@ -1115,87 +899,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1115
899
  description: string;
1116
900
  defaultMessage: string;
1117
901
  };
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
902
  draft?: boolean | undefined;
1200
903
  conditionals?: ({
1201
904
  type: "SHOW";
@@ -1273,6 +976,16 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1273
976
  }[] | undefined;
1274
977
  }>, {
1275
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
+ };
1276
989
  actions: ({
1277
990
  type: "DECLARE";
1278
991
  conditionals: ({
@@ -1283,23 +996,10 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1283
996
  conditional: import(".").JSONSchema;
1284
997
  })[];
1285
998
  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
- }[];
999
+ review: {
1000
+ title: TranslationConfig;
1001
+ fields: import("./FieldConfig").Inferred[];
1002
+ };
1303
1003
  draft?: boolean | undefined;
1304
1004
  } | {
1305
1005
  type: "VALIDATE";
@@ -1311,26 +1011,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1311
1011
  conditional: import(".").JSONSchema;
1312
1012
  })[];
1313
1013
  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
- }[];
1014
+ review: {
1015
+ title: TranslationConfig;
1016
+ fields: import("./FieldConfig").Inferred[];
1017
+ };
1331
1018
  draft?: boolean | undefined;
1332
1019
  } | {
1333
- type: "REJECT";
1020
+ type: "REGISTER";
1334
1021
  conditionals: ({
1335
1022
  type: "SHOW";
1336
1023
  conditional: import(".").JSONSchema;
@@ -1339,26 +1026,13 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1339
1026
  conditional: import(".").JSONSchema;
1340
1027
  })[];
1341
1028
  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
- }[];
1029
+ review: {
1030
+ title: TranslationConfig;
1031
+ fields: import("./FieldConfig").Inferred[];
1032
+ };
1359
1033
  draft?: boolean | undefined;
1360
1034
  } | {
1361
- type: "MARKED_AS_DUPLICATE";
1035
+ type: "REJECT";
1362
1036
  conditionals: ({
1363
1037
  type: "SHOW";
1364
1038
  conditional: import(".").JSONSchema;
@@ -1367,26 +1041,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1367
1041
  conditional: import(".").JSONSchema;
1368
1042
  })[];
1369
1043
  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
1044
  draft?: boolean | undefined;
1388
1045
  } | {
1389
- type: "ARCHIVE";
1046
+ type: "MARKED_AS_DUPLICATE";
1390
1047
  conditionals: ({
1391
1048
  type: "SHOW";
1392
1049
  conditional: import(".").JSONSchema;
@@ -1395,26 +1052,9 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1395
1052
  conditional: import(".").JSONSchema;
1396
1053
  })[];
1397
1054
  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
1055
  draft?: boolean | undefined;
1416
1056
  } | {
1417
- type: "REGISTER";
1057
+ type: "ARCHIVE";
1418
1058
  conditionals: ({
1419
1059
  type: "SHOW";
1420
1060
  conditional: import(".").JSONSchema;
@@ -1423,23 +1063,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1423
1063
  conditional: import(".").JSONSchema;
1424
1064
  })[];
1425
1065
  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
1066
  draft?: boolean | undefined;
1444
1067
  } | {
1445
1068
  type: "DELETE";
@@ -1451,23 +1074,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1451
1074
  conditional: import(".").JSONSchema;
1452
1075
  })[];
1453
1076
  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
1077
  draft?: boolean | undefined;
1472
1078
  } | {
1473
1079
  type: "PRINT_CERTIFICATE";
@@ -1479,23 +1085,34 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1479
1085
  conditional: import(".").JSONSchema;
1480
1086
  })[];
1481
1087
  label: TranslationConfig;
1482
- forms: {
1483
- active: boolean;
1484
- version: {
1485
- id: string;
1486
- label: TranslationConfig;
1487
- };
1088
+ printForm: {
1488
1089
  label: TranslationConfig;
1489
- pages: {
1090
+ pages: ({
1091
+ type: "FORM";
1490
1092
  id: string;
1491
1093
  title: TranslationConfig;
1492
1094
  fields: import("./FieldConfig").Inferred[];
1493
- }[];
1494
- review: {
1095
+ conditional?: import(".").JSONSchema | undefined;
1096
+ } | {
1097
+ type: "VERIFICATION";
1098
+ id: string;
1495
1099
  title: TranslationConfig;
1496
- fields: import("./FieldConfig").Inferred[];
1497
- };
1498
- }[];
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
+ };
1499
1116
  draft?: boolean | undefined;
1500
1117
  } | {
1501
1118
  type: "REQUEST_CORRECTION";
@@ -1507,33 +1124,56 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1507
1124
  conditional: import(".").JSONSchema;
1508
1125
  })[];
1509
1126
  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[];
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
+ };
1525
1148
  };
1526
- }[];
1527
- onboardingForm: {
1149
+ fields: import("./FieldConfig").Inferred[];
1150
+ conditional?: import(".").JSONSchema | undefined;
1151
+ })[];
1152
+ additionalDetailsForm: ({
1153
+ type: "FORM";
1528
1154
  id: string;
1529
1155
  title: TranslationConfig;
1530
1156
  fields: import("./FieldConfig").Inferred[];
1531
- }[];
1532
- additionalDetailsForm: {
1157
+ conditional?: import(".").JSONSchema | undefined;
1158
+ } | {
1159
+ type: "VERIFICATION";
1533
1160
  id: string;
1534
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
+ };
1535
1174
  fields: import("./FieldConfig").Inferred[];
1536
- }[];
1175
+ conditional?: import(".").JSONSchema | undefined;
1176
+ })[];
1537
1177
  draft?: boolean | undefined;
1538
1178
  } | {
1539
1179
  type: "REJECT_CORRECTION";
@@ -1545,23 +1185,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1545
1185
  conditional: import(".").JSONSchema;
1546
1186
  })[];
1547
1187
  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
1188
  draft?: boolean | undefined;
1566
1189
  } | {
1567
1190
  type: "APPROVE_CORRECTION";
@@ -1573,51 +1196,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1573
1196
  conditional: import(".").JSONSchema;
1574
1197
  })[];
1575
1198
  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
- 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
1199
  draft?: boolean | undefined;
1622
1200
  })[];
1623
1201
  label: TranslationConfig;
@@ -1656,46 +1234,39 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1656
1234
  }[];
1657
1235
  }, {
1658
1236
  id: string;
1659
- actions: ({
1660
- type: "DECLARE";
1237
+ declaration: {
1661
1238
  label: {
1662
1239
  id: string;
1663
1240
  description: string;
1664
1241
  defaultMessage: string;
1665
1242
  };
1666
- forms: {
1667
- version: {
1668
- id: string;
1669
- label: {
1670
- id: string;
1671
- description: string;
1672
- defaultMessage: string;
1673
- };
1674
- };
1675
- label: {
1243
+ pages: {
1244
+ id: string;
1245
+ title: {
1676
1246
  id: string;
1677
1247
  description: string;
1678
1248
  defaultMessage: string;
1679
1249
  };
1680
- 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: {
1681
1264
  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[];
1265
+ description: string;
1266
+ defaultMessage: string;
1696
1267
  };
1697
- active?: boolean | undefined;
1698
- }[];
1268
+ fields: import("./FieldConfig").InferredInput[];
1269
+ };
1699
1270
  draft?: boolean | undefined;
1700
1271
  conditionals?: ({
1701
1272
  type: "SHOW";
@@ -1711,39 +1282,14 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1711
1282
  description: string;
1712
1283
  defaultMessage: string;
1713
1284
  };
1714
- forms: {
1715
- version: {
1716
- id: string;
1717
- label: {
1718
- id: string;
1719
- description: string;
1720
- defaultMessage: string;
1721
- };
1722
- };
1723
- label: {
1285
+ review: {
1286
+ title: {
1724
1287
  id: string;
1725
1288
  description: string;
1726
1289
  defaultMessage: string;
1727
1290
  };
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
- }[];
1291
+ fields: import("./FieldConfig").InferredInput[];
1292
+ };
1747
1293
  draft?: boolean | undefined;
1748
1294
  conditionals?: ({
1749
1295
  type: "SHOW";
@@ -1753,45 +1299,20 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1753
1299
  conditional: import(".").JSONSchema;
1754
1300
  })[] | undefined;
1755
1301
  } | {
1756
- type: "REJECT";
1302
+ type: "REGISTER";
1757
1303
  label: {
1758
1304
  id: string;
1759
1305
  description: string;
1760
1306
  defaultMessage: string;
1761
1307
  };
1762
- forms: {
1763
- version: {
1764
- id: string;
1765
- label: {
1766
- id: string;
1767
- description: string;
1768
- defaultMessage: string;
1769
- };
1770
- };
1771
- label: {
1308
+ review: {
1309
+ title: {
1772
1310
  id: string;
1773
1311
  description: string;
1774
1312
  defaultMessage: string;
1775
1313
  };
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
- }[];
1314
+ fields: import("./FieldConfig").InferredInput[];
1315
+ };
1795
1316
  draft?: boolean | undefined;
1796
1317
  conditionals?: ({
1797
1318
  type: "SHOW";
@@ -1801,45 +1322,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1801
1322
  conditional: import(".").JSONSchema;
1802
1323
  })[] | undefined;
1803
1324
  } | {
1804
- type: "MARKED_AS_DUPLICATE";
1325
+ type: "REJECT";
1805
1326
  label: {
1806
1327
  id: string;
1807
1328
  description: string;
1808
1329
  defaultMessage: string;
1809
1330
  };
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
1331
  draft?: boolean | undefined;
1844
1332
  conditionals?: ({
1845
1333
  type: "SHOW";
@@ -1849,45 +1337,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1849
1337
  conditional: import(".").JSONSchema;
1850
1338
  })[] | undefined;
1851
1339
  } | {
1852
- type: "ARCHIVE";
1340
+ type: "MARKED_AS_DUPLICATE";
1853
1341
  label: {
1854
1342
  id: string;
1855
1343
  description: string;
1856
1344
  defaultMessage: string;
1857
1345
  };
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
1346
  draft?: boolean | undefined;
1892
1347
  conditionals?: ({
1893
1348
  type: "SHOW";
@@ -1897,45 +1352,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1897
1352
  conditional: import(".").JSONSchema;
1898
1353
  })[] | undefined;
1899
1354
  } | {
1900
- type: "REGISTER";
1355
+ type: "ARCHIVE";
1901
1356
  label: {
1902
1357
  id: string;
1903
1358
  description: string;
1904
1359
  defaultMessage: string;
1905
1360
  };
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
1361
  draft?: boolean | undefined;
1940
1362
  conditionals?: ({
1941
1363
  type: "SHOW";
@@ -1951,39 +1373,6 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1951
1373
  description: string;
1952
1374
  defaultMessage: string;
1953
1375
  };
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
1376
  draft?: boolean | undefined;
1988
1377
  conditionals?: ({
1989
1378
  type: "SHOW";
@@ -1999,39 +1388,62 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
1999
1388
  description: string;
2000
1389
  defaultMessage: string;
2001
1390
  };
2002
- forms: {
2003
- version: {
2004
- id: string;
2005
- label: {
2006
- id: string;
2007
- description: string;
2008
- defaultMessage: string;
2009
- };
2010
- };
1391
+ printForm: {
2011
1392
  label: {
2012
1393
  id: string;
2013
1394
  description: string;
2014
1395
  defaultMessage: string;
2015
1396
  };
2016
- pages: {
1397
+ pages: ({
2017
1398
  id: string;
2018
1399
  title: {
2019
1400
  id: string;
2020
1401
  description: string;
2021
1402
  defaultMessage: string;
2022
1403
  };
2023
- fields: import("./FieldConfig").Inferred[];
2024
- }[];
2025
- review: {
1404
+ fields: import("./FieldConfig").InferredInput[];
1405
+ type?: "FORM" | undefined;
1406
+ conditional?: import(".").JSONSchema | undefined;
1407
+ } | {
1408
+ type: "VERIFICATION";
1409
+ id: string;
2026
1410
  title: {
2027
1411
  id: string;
2028
1412
  description: string;
2029
1413
  defaultMessage: string;
2030
1414
  };
2031
- fields: import("./FieldConfig").Inferred[];
2032
- };
2033
- active?: boolean | undefined;
2034
- }[];
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
+ };
2035
1447
  draft?: boolean | undefined;
2036
1448
  conditionals?: ({
2037
1449
  type: "SHOW";
@@ -2047,105 +1459,104 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
2047
1459
  description: string;
2048
1460
  defaultMessage: string;
2049
1461
  };
2050
- forms: {
2051
- version: {
2052
- id: string;
2053
- label: {
2054
- id: string;
2055
- description: string;
2056
- defaultMessage: string;
2057
- };
2058
- };
2059
- label: {
1462
+ onboardingForm: ({
1463
+ id: string;
1464
+ title: {
2060
1465
  id: string;
2061
1466
  description: string;
2062
1467
  defaultMessage: string;
2063
1468
  };
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: {
1469
+ fields: import("./FieldConfig").InferredInput[];
1470
+ type?: "FORM" | undefined;
1471
+ conditional?: import(".").JSONSchema | undefined;
1472
+ } | {
1473
+ type: "VERIFICATION";
2084
1474
  id: string;
2085
1475
  title: {
2086
1476
  id: string;
2087
1477
  description: string;
2088
1478
  defaultMessage: string;
2089
1479
  };
2090
- fields: import("./FieldConfig").Inferred[];
2091
- }[];
2092
- 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: ({
2093
1512
  id: string;
2094
1513
  title: {
2095
1514
  id: string;
2096
1515
  description: string;
2097
1516
  defaultMessage: string;
2098
1517
  };
2099
- fields: import("./FieldConfig").Inferred[];
2100
- }[];
2101
- draft?: boolean | undefined;
2102
- conditionals?: ({
2103
- type: "SHOW";
2104
- conditional: import(".").JSONSchema;
1518
+ fields: import("./FieldConfig").InferredInput[];
1519
+ type?: "FORM" | undefined;
1520
+ conditional?: import(".").JSONSchema | undefined;
2105
1521
  } | {
2106
- type: "ENABLE";
2107
- conditional: import(".").JSONSchema;
2108
- })[] | undefined;
2109
- } | {
2110
- type: "REJECT_CORRECTION";
2111
- label: {
1522
+ type: "VERIFICATION";
2112
1523
  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: {
1524
+ title: {
2126
1525
  id: string;
2127
1526
  description: string;
2128
1527
  defaultMessage: string;
2129
1528
  };
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
- }[];
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
+ })[];
2149
1560
  draft?: boolean | undefined;
2150
1561
  conditionals?: ({
2151
1562
  type: "SHOW";
@@ -2155,45 +1566,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
2155
1566
  conditional: import(".").JSONSchema;
2156
1567
  })[] | undefined;
2157
1568
  } | {
2158
- type: "APPROVE_CORRECTION";
1569
+ type: "REJECT_CORRECTION";
2159
1570
  label: {
2160
1571
  id: string;
2161
1572
  description: string;
2162
1573
  defaultMessage: string;
2163
1574
  };
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
1575
  draft?: boolean | undefined;
2198
1576
  conditionals?: ({
2199
1577
  type: "SHOW";
@@ -2203,45 +1581,12 @@ export declare const EventConfig: z.ZodEffects<z.ZodObject<{
2203
1581
  conditional: import(".").JSONSchema;
2204
1582
  })[] | undefined;
2205
1583
  } | {
2206
- type: "CUSTOM";
1584
+ type: "APPROVE_CORRECTION";
2207
1585
  label: {
2208
1586
  id: string;
2209
1587
  description: string;
2210
1588
  defaultMessage: string;
2211
1589
  };
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
1590
  draft?: boolean | undefined;
2246
1591
  conditionals?: ({
2247
1592
  type: "SHOW";