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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +6644 -9555
  3. package/dist/commons/conditionals/conditionals.d.ts +26 -3
  4. package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
  5. package/dist/commons/conditionals/validate.d.ts +14 -17
  6. package/dist/commons/events/ActionConfig.d.ts +1008 -3209
  7. package/dist/commons/events/ActionDocument.d.ts +9488 -312
  8. package/dist/commons/events/ActionInput.d.ts +5329 -472
  9. package/dist/commons/events/ActionType.d.ts +26 -11
  10. package/dist/commons/events/CompositeFieldValue.d.ts +152 -2
  11. package/dist/commons/events/Conditional.d.ts +21 -5
  12. package/dist/commons/events/Draft.d.ts +351 -48
  13. package/dist/commons/events/EventConfig.d.ts +639 -2862
  14. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  15. package/dist/commons/events/EventDocument.d.ts +3340 -424
  16. package/dist/commons/events/EventIndex.d.ts +6 -3
  17. package/dist/commons/events/EventMetadata.d.ts +3 -0
  18. package/dist/commons/events/FieldConfig.d.ts +383 -104
  19. package/dist/commons/events/FieldTypeMapping.d.ts +104 -207
  20. package/dist/commons/events/FieldValue.d.ts +71 -76
  21. package/dist/commons/events/FormConfig.d.ts +527 -279
  22. package/dist/commons/events/PageConfig.d.ts +335 -0
  23. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  24. package/dist/commons/events/defineConfig.d.ts +40 -417
  25. package/dist/commons/events/index.d.ts +2 -1
  26. package/dist/commons/events/test.utils.d.ts +140 -213
  27. package/dist/commons/events/utils.d.ts +126 -156
  28. package/dist/commons/events/utils.test.d.ts +2 -0
  29. package/dist/conditionals/index.js +166 -81
  30. package/dist/events/index.js +1287 -795
  31. package/dist/scopes/index.d.ts +70 -1
  32. package/dist/scopes/index.js +130 -0
  33. package/package.json +1 -1
@@ -1,5 +1,24 @@
1
1
  import { z } from 'zod';
2
2
  import { TranslationConfig } from './TranslationConfig';
3
+ export declare const DeclarationReviewConfig: z.ZodObject<{
4
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5
+ id: string;
6
+ description: string;
7
+ defaultMessage: string;
8
+ }>;
9
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
10
+ }, "strip", z.ZodTypeAny, {
11
+ title: TranslationConfig;
12
+ fields: import("./FieldConfig").Inferred[];
13
+ }, {
14
+ title: {
15
+ id: string;
16
+ description: string;
17
+ defaultMessage: string;
18
+ };
19
+ fields: import("./FieldConfig").InferredInput[];
20
+ }>;
21
+ export type ReviewPageConfig = z.infer<typeof DeclarationReviewConfig>;
3
22
  export declare const ActionConfigBase: z.ZodObject<{
4
23
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5
24
  id: string;
@@ -26,155 +45,6 @@ export declare const ActionConfigBase: z.ZodObject<{
26
45
  conditional: import(".").JSONSchema;
27
46
  }>]>, "many">>>;
28
47
  draft: z.ZodOptional<z.ZodBoolean>;
29
- forms: z.ZodArray<z.ZodObject<{
30
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
31
- id: string;
32
- description: string;
33
- defaultMessage: string;
34
- }>;
35
- version: z.ZodObject<{
36
- id: z.ZodString;
37
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
38
- id: string;
39
- description: string;
40
- defaultMessage: string;
41
- }>;
42
- }, "strip", z.ZodTypeAny, {
43
- id: string;
44
- label: TranslationConfig;
45
- }, {
46
- id: string;
47
- label: {
48
- id: string;
49
- description: string;
50
- defaultMessage: string;
51
- };
52
- }>;
53
- active: z.ZodDefault<z.ZodBoolean>;
54
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
55
- review: z.ZodObject<{
56
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
57
- id: string;
58
- description: string;
59
- defaultMessage: string;
60
- }>;
61
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
62
- }, "strip", z.ZodTypeAny, {
63
- title: TranslationConfig;
64
- fields: import("./FieldConfig").Inferred[];
65
- }, {
66
- title: {
67
- id: string;
68
- description: string;
69
- defaultMessage: string;
70
- };
71
- fields: import("./FieldConfig").Inferred[];
72
- }>;
73
- }, "strip", z.ZodTypeAny, {
74
- active: boolean;
75
- version: {
76
- id: string;
77
- label: TranslationConfig;
78
- };
79
- label: TranslationConfig;
80
- pages: ({
81
- type: import("./FormConfig").PageType.FORM;
82
- id: string;
83
- title: TranslationConfig;
84
- fields: import("./FieldConfig").Inferred[];
85
- } | {
86
- type: import("./FormConfig").PageType.VERIFICATION;
87
- id: string;
88
- title: TranslationConfig;
89
- actions: {
90
- verify: {
91
- label: TranslationConfig;
92
- };
93
- cancel: {
94
- label: TranslationConfig;
95
- confirmation: {
96
- title: TranslationConfig;
97
- body: TranslationConfig;
98
- };
99
- };
100
- };
101
- fields: import("./FieldConfig").Inferred[];
102
- })[];
103
- review: {
104
- title: TranslationConfig;
105
- fields: import("./FieldConfig").Inferred[];
106
- };
107
- }, {
108
- version: {
109
- id: string;
110
- label: {
111
- id: string;
112
- description: string;
113
- defaultMessage: string;
114
- };
115
- };
116
- label: {
117
- id: string;
118
- description: string;
119
- defaultMessage: string;
120
- };
121
- pages: ({
122
- id: string;
123
- title: {
124
- id: string;
125
- description: string;
126
- defaultMessage: string;
127
- };
128
- fields: import("./FieldConfig").Inferred[];
129
- type?: import("./FormConfig").PageType.FORM | undefined;
130
- } | {
131
- type: import("./FormConfig").PageType.VERIFICATION;
132
- id: string;
133
- title: {
134
- id: string;
135
- description: string;
136
- defaultMessage: string;
137
- };
138
- actions: {
139
- verify: {
140
- label: {
141
- id: string;
142
- description: string;
143
- defaultMessage: string;
144
- };
145
- };
146
- cancel: {
147
- label: {
148
- id: string;
149
- description: string;
150
- defaultMessage: string;
151
- };
152
- confirmation: {
153
- title: {
154
- id: string;
155
- description: string;
156
- defaultMessage: string;
157
- };
158
- body: {
159
- id: string;
160
- description: string;
161
- defaultMessage: string;
162
- };
163
- };
164
- };
165
- };
166
- fields: import("./FieldConfig").Inferred[];
167
- })[];
168
- review: {
169
- title: {
170
- id: string;
171
- description: string;
172
- defaultMessage: string;
173
- };
174
- fields: import("./FieldConfig").Inferred[];
175
- };
176
- active?: boolean | undefined;
177
- }>, "many">;
178
48
  }, "strip", z.ZodTypeAny, {
179
49
  conditionals: ({
180
50
  type: "SHOW";
@@ -184,41 +54,6 @@ export declare const ActionConfigBase: z.ZodObject<{
184
54
  conditional: import(".").JSONSchema;
185
55
  })[];
186
56
  label: TranslationConfig;
187
- forms: {
188
- active: boolean;
189
- version: {
190
- id: string;
191
- label: TranslationConfig;
192
- };
193
- label: TranslationConfig;
194
- pages: ({
195
- type: import("./FormConfig").PageType.FORM;
196
- id: string;
197
- title: TranslationConfig;
198
- fields: import("./FieldConfig").Inferred[];
199
- } | {
200
- type: import("./FormConfig").PageType.VERIFICATION;
201
- id: string;
202
- title: TranslationConfig;
203
- actions: {
204
- verify: {
205
- label: TranslationConfig;
206
- };
207
- cancel: {
208
- label: TranslationConfig;
209
- confirmation: {
210
- title: TranslationConfig;
211
- body: TranslationConfig;
212
- };
213
- };
214
- };
215
- fields: import("./FieldConfig").Inferred[];
216
- })[];
217
- review: {
218
- title: TranslationConfig;
219
- fields: import("./FieldConfig").Inferred[];
220
- };
221
- }[];
222
57
  draft?: boolean | undefined;
223
58
  }, {
224
59
  label: {
@@ -226,77 +61,6 @@ export declare const ActionConfigBase: z.ZodObject<{
226
61
  description: string;
227
62
  defaultMessage: string;
228
63
  };
229
- forms: {
230
- version: {
231
- id: string;
232
- label: {
233
- id: string;
234
- description: string;
235
- defaultMessage: string;
236
- };
237
- };
238
- label: {
239
- id: string;
240
- description: string;
241
- defaultMessage: string;
242
- };
243
- pages: ({
244
- id: string;
245
- title: {
246
- id: string;
247
- description: string;
248
- defaultMessage: string;
249
- };
250
- fields: import("./FieldConfig").Inferred[];
251
- type?: import("./FormConfig").PageType.FORM | undefined;
252
- } | {
253
- type: import("./FormConfig").PageType.VERIFICATION;
254
- id: string;
255
- title: {
256
- id: string;
257
- description: string;
258
- defaultMessage: string;
259
- };
260
- actions: {
261
- verify: {
262
- label: {
263
- id: string;
264
- description: string;
265
- defaultMessage: string;
266
- };
267
- };
268
- cancel: {
269
- label: {
270
- id: string;
271
- description: string;
272
- defaultMessage: string;
273
- };
274
- confirmation: {
275
- title: {
276
- id: string;
277
- description: string;
278
- defaultMessage: string;
279
- };
280
- body: {
281
- id: string;
282
- description: string;
283
- defaultMessage: string;
284
- };
285
- };
286
- };
287
- };
288
- fields: import("./FieldConfig").Inferred[];
289
- })[];
290
- review: {
291
- title: {
292
- id: string;
293
- description: string;
294
- defaultMessage: string;
295
- };
296
- fields: import("./FieldConfig").Inferred[];
297
- };
298
- active?: boolean | undefined;
299
- }[];
300
64
  draft?: boolean | undefined;
301
65
  conditionals?: ({
302
66
  type: "SHOW";
@@ -332,157 +96,26 @@ declare const DeclareConfig: z.ZodObject<z.objectUtil.extendShape<{
332
96
  conditional: import(".").JSONSchema;
333
97
  }>]>, "many">>>;
334
98
  draft: z.ZodOptional<z.ZodBoolean>;
335
- forms: z.ZodArray<z.ZodObject<{
336
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
99
+ }, {
100
+ type: z.ZodLiteral<"DECLARE">;
101
+ review: z.ZodObject<{
102
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
337
103
  id: string;
338
104
  description: string;
339
105
  defaultMessage: string;
340
106
  }>;
341
- version: z.ZodObject<{
342
- id: z.ZodString;
343
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
344
- id: string;
345
- description: string;
346
- defaultMessage: string;
347
- }>;
348
- }, "strip", z.ZodTypeAny, {
349
- id: string;
350
- label: TranslationConfig;
351
- }, {
352
- id: string;
353
- label: {
354
- id: string;
355
- description: string;
356
- defaultMessage: string;
357
- };
358
- }>;
359
- active: z.ZodDefault<z.ZodBoolean>;
360
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
361
- review: z.ZodObject<{
362
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
363
- id: string;
364
- description: string;
365
- defaultMessage: string;
366
- }>;
367
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
368
- }, "strip", z.ZodTypeAny, {
369
- title: TranslationConfig;
370
- fields: import("./FieldConfig").Inferred[];
371
- }, {
372
- title: {
373
- id: string;
374
- description: string;
375
- defaultMessage: string;
376
- };
377
- fields: import("./FieldConfig").Inferred[];
378
- }>;
379
- }, "strip", z.ZodTypeAny, {
380
- active: boolean;
381
- version: {
382
- id: string;
383
- label: TranslationConfig;
384
- };
385
- label: TranslationConfig;
386
- pages: ({
387
- type: import("./FormConfig").PageType.FORM;
388
- id: string;
389
- title: TranslationConfig;
390
- fields: import("./FieldConfig").Inferred[];
391
- } | {
392
- type: import("./FormConfig").PageType.VERIFICATION;
393
- id: string;
394
- title: TranslationConfig;
395
- actions: {
396
- verify: {
397
- label: TranslationConfig;
398
- };
399
- cancel: {
400
- label: TranslationConfig;
401
- confirmation: {
402
- title: TranslationConfig;
403
- body: TranslationConfig;
404
- };
405
- };
406
- };
407
- fields: import("./FieldConfig").Inferred[];
408
- })[];
409
- review: {
410
- title: TranslationConfig;
411
- fields: import("./FieldConfig").Inferred[];
412
- };
413
- }, {
414
- version: {
415
- id: string;
416
- label: {
417
- id: string;
418
- description: string;
419
- defaultMessage: string;
420
- };
421
- };
422
- label: {
107
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
108
+ }, "strip", z.ZodTypeAny, {
109
+ title: TranslationConfig;
110
+ fields: import("./FieldConfig").Inferred[];
111
+ }, {
112
+ title: {
423
113
  id: string;
424
114
  description: string;
425
115
  defaultMessage: string;
426
116
  };
427
- pages: ({
428
- id: string;
429
- title: {
430
- id: string;
431
- description: string;
432
- defaultMessage: string;
433
- };
434
- fields: import("./FieldConfig").Inferred[];
435
- type?: import("./FormConfig").PageType.FORM | undefined;
436
- } | {
437
- type: import("./FormConfig").PageType.VERIFICATION;
438
- id: string;
439
- title: {
440
- id: string;
441
- description: string;
442
- defaultMessage: string;
443
- };
444
- actions: {
445
- verify: {
446
- label: {
447
- id: string;
448
- description: string;
449
- defaultMessage: string;
450
- };
451
- };
452
- cancel: {
453
- label: {
454
- id: string;
455
- description: string;
456
- defaultMessage: string;
457
- };
458
- confirmation: {
459
- title: {
460
- id: string;
461
- description: string;
462
- defaultMessage: string;
463
- };
464
- body: {
465
- id: string;
466
- description: string;
467
- defaultMessage: string;
468
- };
469
- };
470
- };
471
- };
472
- fields: import("./FieldConfig").Inferred[];
473
- })[];
474
- review: {
475
- title: {
476
- id: string;
477
- description: string;
478
- defaultMessage: string;
479
- };
480
- fields: import("./FieldConfig").Inferred[];
481
- };
482
- active?: boolean | undefined;
483
- }>, "many">;
484
- }, {
485
- type: z.ZodLiteral<"DECLARE">;
117
+ fields: import("./FieldConfig").InferredInput[];
118
+ }>;
486
119
  }>, "strip", z.ZodTypeAny, {
487
120
  type: "DECLARE";
488
121
  conditionals: ({
@@ -493,41 +126,10 @@ declare const DeclareConfig: z.ZodObject<z.objectUtil.extendShape<{
493
126
  conditional: import(".").JSONSchema;
494
127
  })[];
495
128
  label: TranslationConfig;
496
- forms: {
497
- active: boolean;
498
- version: {
499
- id: string;
500
- label: TranslationConfig;
501
- };
502
- label: TranslationConfig;
503
- pages: ({
504
- type: import("./FormConfig").PageType.FORM;
505
- id: string;
506
- title: TranslationConfig;
507
- fields: import("./FieldConfig").Inferred[];
508
- } | {
509
- type: import("./FormConfig").PageType.VERIFICATION;
510
- id: string;
511
- title: TranslationConfig;
512
- actions: {
513
- verify: {
514
- label: TranslationConfig;
515
- };
516
- cancel: {
517
- label: TranslationConfig;
518
- confirmation: {
519
- title: TranslationConfig;
520
- body: TranslationConfig;
521
- };
522
- };
523
- };
524
- fields: import("./FieldConfig").Inferred[];
525
- })[];
526
- review: {
527
- title: TranslationConfig;
528
- fields: import("./FieldConfig").Inferred[];
529
- };
530
- }[];
129
+ review: {
130
+ title: TranslationConfig;
131
+ fields: import("./FieldConfig").Inferred[];
132
+ };
531
133
  draft?: boolean | undefined;
532
134
  }, {
533
135
  type: "DECLARE";
@@ -536,77 +138,14 @@ declare const DeclareConfig: z.ZodObject<z.objectUtil.extendShape<{
536
138
  description: string;
537
139
  defaultMessage: string;
538
140
  };
539
- forms: {
540
- version: {
541
- id: string;
542
- label: {
543
- id: string;
544
- description: string;
545
- defaultMessage: string;
546
- };
547
- };
548
- label: {
141
+ review: {
142
+ title: {
549
143
  id: string;
550
144
  description: string;
551
145
  defaultMessage: string;
552
146
  };
553
- pages: ({
554
- id: string;
555
- title: {
556
- id: string;
557
- description: string;
558
- defaultMessage: string;
559
- };
560
- fields: import("./FieldConfig").Inferred[];
561
- type?: import("./FormConfig").PageType.FORM | undefined;
562
- } | {
563
- type: import("./FormConfig").PageType.VERIFICATION;
564
- id: string;
565
- title: {
566
- id: string;
567
- description: string;
568
- defaultMessage: string;
569
- };
570
- actions: {
571
- verify: {
572
- label: {
573
- id: string;
574
- description: string;
575
- defaultMessage: string;
576
- };
577
- };
578
- cancel: {
579
- label: {
580
- id: string;
581
- description: string;
582
- defaultMessage: string;
583
- };
584
- confirmation: {
585
- title: {
586
- id: string;
587
- description: string;
588
- defaultMessage: string;
589
- };
590
- body: {
591
- id: string;
592
- description: string;
593
- defaultMessage: string;
594
- };
595
- };
596
- };
597
- };
598
- fields: import("./FieldConfig").Inferred[];
599
- })[];
600
- review: {
601
- title: {
602
- id: string;
603
- description: string;
604
- defaultMessage: string;
605
- };
606
- fields: import("./FieldConfig").Inferred[];
607
- };
608
- active?: boolean | undefined;
609
- }[];
147
+ fields: import("./FieldConfig").InferredInput[];
148
+ };
610
149
  draft?: boolean | undefined;
611
150
  conditionals?: ({
612
151
  type: "SHOW";
@@ -642,159 +181,113 @@ declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<{
642
181
  conditional: import(".").JSONSchema;
643
182
  }>]>, "many">>>;
644
183
  draft: z.ZodOptional<z.ZodBoolean>;
645
- forms: z.ZodArray<z.ZodObject<{
646
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
184
+ }, {
185
+ type: z.ZodLiteral<"VALIDATE">;
186
+ review: z.ZodObject<{
187
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
647
188
  id: string;
648
189
  description: string;
649
190
  defaultMessage: string;
650
191
  }>;
651
- version: z.ZodObject<{
652
- id: z.ZodString;
653
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
654
- id: string;
655
- description: string;
656
- defaultMessage: string;
657
- }>;
658
- }, "strip", z.ZodTypeAny, {
659
- id: string;
660
- label: TranslationConfig;
661
- }, {
662
- id: string;
663
- label: {
664
- id: string;
665
- description: string;
666
- defaultMessage: string;
667
- };
668
- }>;
669
- active: z.ZodDefault<z.ZodBoolean>;
670
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
671
- review: z.ZodObject<{
672
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
673
- id: string;
674
- description: string;
675
- defaultMessage: string;
676
- }>;
677
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
678
- }, "strip", z.ZodTypeAny, {
679
- title: TranslationConfig;
680
- fields: import("./FieldConfig").Inferred[];
681
- }, {
682
- title: {
683
- id: string;
684
- description: string;
685
- defaultMessage: string;
686
- };
687
- fields: import("./FieldConfig").Inferred[];
688
- }>;
192
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
689
193
  }, "strip", z.ZodTypeAny, {
690
- active: boolean;
691
- version: {
194
+ title: TranslationConfig;
195
+ fields: import("./FieldConfig").Inferred[];
196
+ }, {
197
+ title: {
692
198
  id: string;
693
- label: TranslationConfig;
199
+ description: string;
200
+ defaultMessage: string;
694
201
  };
695
- label: TranslationConfig;
696
- pages: ({
697
- type: import("./FormConfig").PageType.FORM;
202
+ fields: import("./FieldConfig").InferredInput[];
203
+ }>;
204
+ }>, "strip", z.ZodTypeAny, {
205
+ type: "VALIDATE";
206
+ conditionals: ({
207
+ type: "SHOW";
208
+ conditional: import(".").JSONSchema;
209
+ } | {
210
+ type: "ENABLE";
211
+ conditional: import(".").JSONSchema;
212
+ })[];
213
+ label: TranslationConfig;
214
+ review: {
215
+ title: TranslationConfig;
216
+ fields: import("./FieldConfig").Inferred[];
217
+ };
218
+ draft?: boolean | undefined;
219
+ }, {
220
+ type: "VALIDATE";
221
+ label: {
222
+ id: string;
223
+ description: string;
224
+ defaultMessage: string;
225
+ };
226
+ review: {
227
+ title: {
698
228
  id: string;
699
- title: TranslationConfig;
700
- fields: import("./FieldConfig").Inferred[];
701
- } | {
702
- type: import("./FormConfig").PageType.VERIFICATION;
703
- id: string;
704
- title: TranslationConfig;
705
- actions: {
706
- verify: {
707
- label: TranslationConfig;
708
- };
709
- cancel: {
710
- label: TranslationConfig;
711
- confirmation: {
712
- title: TranslationConfig;
713
- body: TranslationConfig;
714
- };
715
- };
716
- };
717
- fields: import("./FieldConfig").Inferred[];
718
- })[];
719
- review: {
720
- title: TranslationConfig;
721
- fields: import("./FieldConfig").Inferred[];
229
+ description: string;
230
+ defaultMessage: string;
722
231
  };
232
+ fields: import("./FieldConfig").InferredInput[];
233
+ };
234
+ draft?: boolean | undefined;
235
+ conditionals?: ({
236
+ type: "SHOW";
237
+ conditional: import(".").JSONSchema;
238
+ } | {
239
+ type: "ENABLE";
240
+ conditional: import(".").JSONSchema;
241
+ })[] | undefined;
242
+ }>;
243
+ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
244
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
245
+ id: string;
246
+ description: string;
247
+ defaultMessage: string;
248
+ }>;
249
+ conditionals: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
250
+ type: z.ZodLiteral<"SHOW">;
251
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ type: "SHOW";
254
+ conditional: import(".").JSONSchema;
723
255
  }, {
724
- version: {
725
- id: string;
726
- label: {
727
- id: string;
728
- description: string;
729
- defaultMessage: string;
730
- };
731
- };
732
- label: {
256
+ type: "SHOW";
257
+ conditional: import(".").JSONSchema;
258
+ }>, z.ZodObject<{
259
+ type: z.ZodLiteral<"ENABLE">;
260
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ type: "ENABLE";
263
+ conditional: import(".").JSONSchema;
264
+ }, {
265
+ type: "ENABLE";
266
+ conditional: import(".").JSONSchema;
267
+ }>]>, "many">>>;
268
+ draft: z.ZodOptional<z.ZodBoolean>;
269
+ }, {
270
+ type: z.ZodLiteral<"REGISTER">;
271
+ review: z.ZodObject<{
272
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
733
273
  id: string;
734
274
  description: string;
735
275
  defaultMessage: string;
736
- };
737
- pages: ({
738
- id: string;
739
- title: {
740
- id: string;
741
- description: string;
742
- defaultMessage: string;
743
- };
744
- fields: import("./FieldConfig").Inferred[];
745
- type?: import("./FormConfig").PageType.FORM | undefined;
746
- } | {
747
- type: import("./FormConfig").PageType.VERIFICATION;
276
+ }>;
277
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
278
+ }, "strip", z.ZodTypeAny, {
279
+ title: TranslationConfig;
280
+ fields: import("./FieldConfig").Inferred[];
281
+ }, {
282
+ title: {
748
283
  id: string;
749
- title: {
750
- id: string;
751
- description: string;
752
- defaultMessage: string;
753
- };
754
- actions: {
755
- verify: {
756
- label: {
757
- id: string;
758
- description: string;
759
- defaultMessage: string;
760
- };
761
- };
762
- cancel: {
763
- label: {
764
- id: string;
765
- description: string;
766
- defaultMessage: string;
767
- };
768
- confirmation: {
769
- title: {
770
- id: string;
771
- description: string;
772
- defaultMessage: string;
773
- };
774
- body: {
775
- id: string;
776
- description: string;
777
- defaultMessage: string;
778
- };
779
- };
780
- };
781
- };
782
- fields: import("./FieldConfig").Inferred[];
783
- })[];
784
- review: {
785
- title: {
786
- id: string;
787
- description: string;
788
- defaultMessage: string;
789
- };
790
- fields: import("./FieldConfig").Inferred[];
284
+ description: string;
285
+ defaultMessage: string;
791
286
  };
792
- active?: boolean | undefined;
793
- }>, "many">;
794
- }, {
795
- type: z.ZodLiteral<"VALIDATE">;
287
+ fields: import("./FieldConfig").InferredInput[];
288
+ }>;
796
289
  }>, "strip", z.ZodTypeAny, {
797
- type: "VALIDATE";
290
+ type: "REGISTER";
798
291
  conditionals: ({
799
292
  type: "SHOW";
800
293
  conditional: import(".").JSONSchema;
@@ -803,120 +296,26 @@ declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<{
803
296
  conditional: import(".").JSONSchema;
804
297
  })[];
805
298
  label: TranslationConfig;
806
- forms: {
807
- active: boolean;
808
- version: {
809
- id: string;
810
- label: TranslationConfig;
811
- };
812
- label: TranslationConfig;
813
- pages: ({
814
- type: import("./FormConfig").PageType.FORM;
815
- id: string;
816
- title: TranslationConfig;
817
- fields: import("./FieldConfig").Inferred[];
818
- } | {
819
- type: import("./FormConfig").PageType.VERIFICATION;
820
- id: string;
821
- title: TranslationConfig;
822
- actions: {
823
- verify: {
824
- label: TranslationConfig;
825
- };
826
- cancel: {
827
- label: TranslationConfig;
828
- confirmation: {
829
- title: TranslationConfig;
830
- body: TranslationConfig;
831
- };
832
- };
833
- };
834
- fields: import("./FieldConfig").Inferred[];
835
- })[];
836
- review: {
837
- title: TranslationConfig;
838
- fields: import("./FieldConfig").Inferred[];
839
- };
840
- }[];
299
+ review: {
300
+ title: TranslationConfig;
301
+ fields: import("./FieldConfig").Inferred[];
302
+ };
841
303
  draft?: boolean | undefined;
842
304
  }, {
843
- type: "VALIDATE";
305
+ type: "REGISTER";
844
306
  label: {
845
307
  id: string;
846
308
  description: string;
847
309
  defaultMessage: string;
848
310
  };
849
- forms: {
850
- version: {
851
- id: string;
852
- label: {
853
- id: string;
854
- description: string;
855
- defaultMessage: string;
856
- };
857
- };
858
- label: {
311
+ review: {
312
+ title: {
859
313
  id: string;
860
314
  description: string;
861
315
  defaultMessage: string;
862
316
  };
863
- pages: ({
864
- id: string;
865
- title: {
866
- id: string;
867
- description: string;
868
- defaultMessage: string;
869
- };
870
- fields: import("./FieldConfig").Inferred[];
871
- type?: import("./FormConfig").PageType.FORM | undefined;
872
- } | {
873
- type: import("./FormConfig").PageType.VERIFICATION;
874
- id: string;
875
- title: {
876
- id: string;
877
- description: string;
878
- defaultMessage: string;
879
- };
880
- actions: {
881
- verify: {
882
- label: {
883
- id: string;
884
- description: string;
885
- defaultMessage: string;
886
- };
887
- };
888
- cancel: {
889
- label: {
890
- id: string;
891
- description: string;
892
- defaultMessage: string;
893
- };
894
- confirmation: {
895
- title: {
896
- id: string;
897
- description: string;
898
- defaultMessage: string;
899
- };
900
- body: {
901
- id: string;
902
- description: string;
903
- defaultMessage: string;
904
- };
905
- };
906
- };
907
- };
908
- fields: import("./FieldConfig").Inferred[];
909
- })[];
910
- review: {
911
- title: {
912
- id: string;
913
- description: string;
914
- defaultMessage: string;
915
- };
916
- fields: import("./FieldConfig").Inferred[];
917
- };
918
- active?: boolean | undefined;
919
- }[];
317
+ fields: import("./FieldConfig").InferredInput[];
318
+ };
920
319
  draft?: boolean | undefined;
921
320
  conditionals?: ({
922
321
  type: "SHOW";
@@ -952,155 +351,6 @@ declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
952
351
  conditional: import(".").JSONSchema;
953
352
  }>]>, "many">>>;
954
353
  draft: z.ZodOptional<z.ZodBoolean>;
955
- forms: z.ZodArray<z.ZodObject<{
956
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
957
- id: string;
958
- description: string;
959
- defaultMessage: string;
960
- }>;
961
- version: z.ZodObject<{
962
- id: z.ZodString;
963
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
964
- id: string;
965
- description: string;
966
- defaultMessage: string;
967
- }>;
968
- }, "strip", z.ZodTypeAny, {
969
- id: string;
970
- label: TranslationConfig;
971
- }, {
972
- id: string;
973
- label: {
974
- id: string;
975
- description: string;
976
- defaultMessage: string;
977
- };
978
- }>;
979
- active: z.ZodDefault<z.ZodBoolean>;
980
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
981
- review: z.ZodObject<{
982
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
983
- id: string;
984
- description: string;
985
- defaultMessage: string;
986
- }>;
987
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
988
- }, "strip", z.ZodTypeAny, {
989
- title: TranslationConfig;
990
- fields: import("./FieldConfig").Inferred[];
991
- }, {
992
- title: {
993
- id: string;
994
- description: string;
995
- defaultMessage: string;
996
- };
997
- fields: import("./FieldConfig").Inferred[];
998
- }>;
999
- }, "strip", z.ZodTypeAny, {
1000
- active: boolean;
1001
- version: {
1002
- id: string;
1003
- label: TranslationConfig;
1004
- };
1005
- label: TranslationConfig;
1006
- pages: ({
1007
- type: import("./FormConfig").PageType.FORM;
1008
- id: string;
1009
- title: TranslationConfig;
1010
- fields: import("./FieldConfig").Inferred[];
1011
- } | {
1012
- type: import("./FormConfig").PageType.VERIFICATION;
1013
- id: string;
1014
- title: TranslationConfig;
1015
- actions: {
1016
- verify: {
1017
- label: TranslationConfig;
1018
- };
1019
- cancel: {
1020
- label: TranslationConfig;
1021
- confirmation: {
1022
- title: TranslationConfig;
1023
- body: TranslationConfig;
1024
- };
1025
- };
1026
- };
1027
- fields: import("./FieldConfig").Inferred[];
1028
- })[];
1029
- review: {
1030
- title: TranslationConfig;
1031
- fields: import("./FieldConfig").Inferred[];
1032
- };
1033
- }, {
1034
- version: {
1035
- id: string;
1036
- label: {
1037
- id: string;
1038
- description: string;
1039
- defaultMessage: string;
1040
- };
1041
- };
1042
- label: {
1043
- id: string;
1044
- description: string;
1045
- defaultMessage: string;
1046
- };
1047
- pages: ({
1048
- id: string;
1049
- title: {
1050
- id: string;
1051
- description: string;
1052
- defaultMessage: string;
1053
- };
1054
- fields: import("./FieldConfig").Inferred[];
1055
- type?: import("./FormConfig").PageType.FORM | undefined;
1056
- } | {
1057
- type: import("./FormConfig").PageType.VERIFICATION;
1058
- id: string;
1059
- title: {
1060
- id: string;
1061
- description: string;
1062
- defaultMessage: string;
1063
- };
1064
- actions: {
1065
- verify: {
1066
- label: {
1067
- id: string;
1068
- description: string;
1069
- defaultMessage: string;
1070
- };
1071
- };
1072
- cancel: {
1073
- label: {
1074
- id: string;
1075
- description: string;
1076
- defaultMessage: string;
1077
- };
1078
- confirmation: {
1079
- title: {
1080
- id: string;
1081
- description: string;
1082
- defaultMessage: string;
1083
- };
1084
- body: {
1085
- id: string;
1086
- description: string;
1087
- defaultMessage: string;
1088
- };
1089
- };
1090
- };
1091
- };
1092
- fields: import("./FieldConfig").Inferred[];
1093
- })[];
1094
- review: {
1095
- title: {
1096
- id: string;
1097
- description: string;
1098
- defaultMessage: string;
1099
- };
1100
- fields: import("./FieldConfig").Inferred[];
1101
- };
1102
- active?: boolean | undefined;
1103
- }>, "many">;
1104
354
  }, {
1105
355
  type: z.ZodLiteral<"REJECT">;
1106
356
  }>, "strip", z.ZodTypeAny, {
@@ -1113,41 +363,6 @@ declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
1113
363
  conditional: import(".").JSONSchema;
1114
364
  })[];
1115
365
  label: TranslationConfig;
1116
- forms: {
1117
- active: boolean;
1118
- version: {
1119
- id: string;
1120
- label: TranslationConfig;
1121
- };
1122
- label: TranslationConfig;
1123
- pages: ({
1124
- type: import("./FormConfig").PageType.FORM;
1125
- id: string;
1126
- title: TranslationConfig;
1127
- fields: import("./FieldConfig").Inferred[];
1128
- } | {
1129
- type: import("./FormConfig").PageType.VERIFICATION;
1130
- id: string;
1131
- title: TranslationConfig;
1132
- actions: {
1133
- verify: {
1134
- label: TranslationConfig;
1135
- };
1136
- cancel: {
1137
- label: TranslationConfig;
1138
- confirmation: {
1139
- title: TranslationConfig;
1140
- body: TranslationConfig;
1141
- };
1142
- };
1143
- };
1144
- fields: import("./FieldConfig").Inferred[];
1145
- })[];
1146
- review: {
1147
- title: TranslationConfig;
1148
- fields: import("./FieldConfig").Inferred[];
1149
- };
1150
- }[];
1151
366
  draft?: boolean | undefined;
1152
367
  }, {
1153
368
  type: "REJECT";
@@ -1156,77 +371,6 @@ declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
1156
371
  description: string;
1157
372
  defaultMessage: string;
1158
373
  };
1159
- forms: {
1160
- version: {
1161
- id: string;
1162
- label: {
1163
- id: string;
1164
- description: string;
1165
- defaultMessage: string;
1166
- };
1167
- };
1168
- label: {
1169
- id: string;
1170
- description: string;
1171
- defaultMessage: string;
1172
- };
1173
- pages: ({
1174
- id: string;
1175
- title: {
1176
- id: string;
1177
- description: string;
1178
- defaultMessage: string;
1179
- };
1180
- fields: import("./FieldConfig").Inferred[];
1181
- type?: import("./FormConfig").PageType.FORM | undefined;
1182
- } | {
1183
- type: import("./FormConfig").PageType.VERIFICATION;
1184
- id: string;
1185
- title: {
1186
- id: string;
1187
- description: string;
1188
- defaultMessage: string;
1189
- };
1190
- actions: {
1191
- verify: {
1192
- label: {
1193
- id: string;
1194
- description: string;
1195
- defaultMessage: string;
1196
- };
1197
- };
1198
- cancel: {
1199
- label: {
1200
- id: string;
1201
- description: string;
1202
- defaultMessage: string;
1203
- };
1204
- confirmation: {
1205
- title: {
1206
- id: string;
1207
- description: string;
1208
- defaultMessage: string;
1209
- };
1210
- body: {
1211
- id: string;
1212
- description: string;
1213
- defaultMessage: string;
1214
- };
1215
- };
1216
- };
1217
- };
1218
- fields: import("./FieldConfig").Inferred[];
1219
- })[];
1220
- review: {
1221
- title: {
1222
- id: string;
1223
- description: string;
1224
- defaultMessage: string;
1225
- };
1226
- fields: import("./FieldConfig").Inferred[];
1227
- };
1228
- active?: boolean | undefined;
1229
- }[];
1230
374
  draft?: boolean | undefined;
1231
375
  conditionals?: ({
1232
376
  type: "SHOW";
@@ -1262,155 +406,6 @@ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
1262
406
  conditional: import(".").JSONSchema;
1263
407
  }>]>, "many">>>;
1264
408
  draft: z.ZodOptional<z.ZodBoolean>;
1265
- forms: z.ZodArray<z.ZodObject<{
1266
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1267
- id: string;
1268
- description: string;
1269
- defaultMessage: string;
1270
- }>;
1271
- version: z.ZodObject<{
1272
- id: z.ZodString;
1273
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1274
- id: string;
1275
- description: string;
1276
- defaultMessage: string;
1277
- }>;
1278
- }, "strip", z.ZodTypeAny, {
1279
- id: string;
1280
- label: TranslationConfig;
1281
- }, {
1282
- id: string;
1283
- label: {
1284
- id: string;
1285
- description: string;
1286
- defaultMessage: string;
1287
- };
1288
- }>;
1289
- active: z.ZodDefault<z.ZodBoolean>;
1290
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
1291
- review: z.ZodObject<{
1292
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1293
- id: string;
1294
- description: string;
1295
- defaultMessage: string;
1296
- }>;
1297
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1298
- }, "strip", z.ZodTypeAny, {
1299
- title: TranslationConfig;
1300
- fields: import("./FieldConfig").Inferred[];
1301
- }, {
1302
- title: {
1303
- id: string;
1304
- description: string;
1305
- defaultMessage: string;
1306
- };
1307
- fields: import("./FieldConfig").Inferred[];
1308
- }>;
1309
- }, "strip", z.ZodTypeAny, {
1310
- active: boolean;
1311
- version: {
1312
- id: string;
1313
- label: TranslationConfig;
1314
- };
1315
- label: TranslationConfig;
1316
- pages: ({
1317
- type: import("./FormConfig").PageType.FORM;
1318
- id: string;
1319
- title: TranslationConfig;
1320
- fields: import("./FieldConfig").Inferred[];
1321
- } | {
1322
- type: import("./FormConfig").PageType.VERIFICATION;
1323
- id: string;
1324
- title: TranslationConfig;
1325
- actions: {
1326
- verify: {
1327
- label: TranslationConfig;
1328
- };
1329
- cancel: {
1330
- label: TranslationConfig;
1331
- confirmation: {
1332
- title: TranslationConfig;
1333
- body: TranslationConfig;
1334
- };
1335
- };
1336
- };
1337
- fields: import("./FieldConfig").Inferred[];
1338
- })[];
1339
- review: {
1340
- title: TranslationConfig;
1341
- fields: import("./FieldConfig").Inferred[];
1342
- };
1343
- }, {
1344
- version: {
1345
- id: string;
1346
- label: {
1347
- id: string;
1348
- description: string;
1349
- defaultMessage: string;
1350
- };
1351
- };
1352
- label: {
1353
- id: string;
1354
- description: string;
1355
- defaultMessage: string;
1356
- };
1357
- pages: ({
1358
- id: string;
1359
- title: {
1360
- id: string;
1361
- description: string;
1362
- defaultMessage: string;
1363
- };
1364
- fields: import("./FieldConfig").Inferred[];
1365
- type?: import("./FormConfig").PageType.FORM | undefined;
1366
- } | {
1367
- type: import("./FormConfig").PageType.VERIFICATION;
1368
- id: string;
1369
- title: {
1370
- id: string;
1371
- description: string;
1372
- defaultMessage: string;
1373
- };
1374
- actions: {
1375
- verify: {
1376
- label: {
1377
- id: string;
1378
- description: string;
1379
- defaultMessage: string;
1380
- };
1381
- };
1382
- cancel: {
1383
- label: {
1384
- id: string;
1385
- description: string;
1386
- defaultMessage: string;
1387
- };
1388
- confirmation: {
1389
- title: {
1390
- id: string;
1391
- description: string;
1392
- defaultMessage: string;
1393
- };
1394
- body: {
1395
- id: string;
1396
- description: string;
1397
- defaultMessage: string;
1398
- };
1399
- };
1400
- };
1401
- };
1402
- fields: import("./FieldConfig").Inferred[];
1403
- })[];
1404
- review: {
1405
- title: {
1406
- id: string;
1407
- description: string;
1408
- defaultMessage: string;
1409
- };
1410
- fields: import("./FieldConfig").Inferred[];
1411
- };
1412
- active?: boolean | undefined;
1413
- }>, "many">;
1414
409
  }, {
1415
410
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1416
411
  }>, "strip", z.ZodTypeAny, {
@@ -1423,41 +418,6 @@ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
1423
418
  conditional: import(".").JSONSchema;
1424
419
  })[];
1425
420
  label: TranslationConfig;
1426
- forms: {
1427
- active: boolean;
1428
- version: {
1429
- id: string;
1430
- label: TranslationConfig;
1431
- };
1432
- label: TranslationConfig;
1433
- pages: ({
1434
- type: import("./FormConfig").PageType.FORM;
1435
- id: string;
1436
- title: TranslationConfig;
1437
- fields: import("./FieldConfig").Inferred[];
1438
- } | {
1439
- type: import("./FormConfig").PageType.VERIFICATION;
1440
- id: string;
1441
- title: TranslationConfig;
1442
- actions: {
1443
- verify: {
1444
- label: TranslationConfig;
1445
- };
1446
- cancel: {
1447
- label: TranslationConfig;
1448
- confirmation: {
1449
- title: TranslationConfig;
1450
- body: TranslationConfig;
1451
- };
1452
- };
1453
- };
1454
- fields: import("./FieldConfig").Inferred[];
1455
- })[];
1456
- review: {
1457
- title: TranslationConfig;
1458
- fields: import("./FieldConfig").Inferred[];
1459
- };
1460
- }[];
1461
421
  draft?: boolean | undefined;
1462
422
  }, {
1463
423
  type: "MARKED_AS_DUPLICATE";
@@ -1466,77 +426,6 @@ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
1466
426
  description: string;
1467
427
  defaultMessage: string;
1468
428
  };
1469
- forms: {
1470
- version: {
1471
- id: string;
1472
- label: {
1473
- id: string;
1474
- description: string;
1475
- defaultMessage: string;
1476
- };
1477
- };
1478
- label: {
1479
- id: string;
1480
- description: string;
1481
- defaultMessage: string;
1482
- };
1483
- pages: ({
1484
- id: string;
1485
- title: {
1486
- id: string;
1487
- description: string;
1488
- defaultMessage: string;
1489
- };
1490
- fields: import("./FieldConfig").Inferred[];
1491
- type?: import("./FormConfig").PageType.FORM | undefined;
1492
- } | {
1493
- type: import("./FormConfig").PageType.VERIFICATION;
1494
- id: string;
1495
- title: {
1496
- id: string;
1497
- description: string;
1498
- defaultMessage: string;
1499
- };
1500
- actions: {
1501
- verify: {
1502
- label: {
1503
- id: string;
1504
- description: string;
1505
- defaultMessage: string;
1506
- };
1507
- };
1508
- cancel: {
1509
- label: {
1510
- id: string;
1511
- description: string;
1512
- defaultMessage: string;
1513
- };
1514
- confirmation: {
1515
- title: {
1516
- id: string;
1517
- description: string;
1518
- defaultMessage: string;
1519
- };
1520
- body: {
1521
- id: string;
1522
- description: string;
1523
- defaultMessage: string;
1524
- };
1525
- };
1526
- };
1527
- };
1528
- fields: import("./FieldConfig").Inferred[];
1529
- })[];
1530
- review: {
1531
- title: {
1532
- id: string;
1533
- description: string;
1534
- defaultMessage: string;
1535
- };
1536
- fields: import("./FieldConfig").Inferred[];
1537
- };
1538
- active?: boolean | undefined;
1539
- }[];
1540
429
  draft?: boolean | undefined;
1541
430
  conditionals?: ({
1542
431
  type: "SHOW";
@@ -1572,116 +461,249 @@ declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
1572
461
  conditional: import(".").JSONSchema;
1573
462
  }>]>, "many">>>;
1574
463
  draft: z.ZodOptional<z.ZodBoolean>;
1575
- forms: z.ZodArray<z.ZodObject<{
1576
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1577
- id: string;
1578
- description: string;
1579
- defaultMessage: string;
1580
- }>;
1581
- version: z.ZodObject<{
1582
- id: z.ZodString;
1583
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1584
- id: string;
1585
- description: string;
1586
- defaultMessage: string;
1587
- }>;
1588
- }, "strip", z.ZodTypeAny, {
1589
- id: string;
1590
- label: TranslationConfig;
1591
- }, {
1592
- id: string;
1593
- label: {
1594
- id: string;
1595
- description: string;
1596
- defaultMessage: string;
1597
- };
1598
- }>;
1599
- active: z.ZodDefault<z.ZodBoolean>;
1600
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
1601
- review: z.ZodObject<{
1602
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1603
- id: string;
1604
- description: string;
1605
- defaultMessage: string;
1606
- }>;
1607
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1608
- }, "strip", z.ZodTypeAny, {
1609
- title: TranslationConfig;
1610
- fields: import("./FieldConfig").Inferred[];
1611
- }, {
1612
- title: {
1613
- id: string;
1614
- description: string;
1615
- defaultMessage: string;
1616
- };
1617
- fields: import("./FieldConfig").Inferred[];
1618
- }>;
464
+ }, {
465
+ type: z.ZodLiteral<"ARCHIVE">;
466
+ }>, "strip", z.ZodTypeAny, {
467
+ type: "ARCHIVE";
468
+ conditionals: ({
469
+ type: "SHOW";
470
+ conditional: import(".").JSONSchema;
471
+ } | {
472
+ type: "ENABLE";
473
+ conditional: import(".").JSONSchema;
474
+ })[];
475
+ label: TranslationConfig;
476
+ draft?: boolean | undefined;
477
+ }, {
478
+ type: "ARCHIVE";
479
+ label: {
480
+ id: string;
481
+ description: string;
482
+ defaultMessage: string;
483
+ };
484
+ draft?: boolean | undefined;
485
+ conditionals?: ({
486
+ type: "SHOW";
487
+ conditional: import(".").JSONSchema;
488
+ } | {
489
+ type: "ENABLE";
490
+ conditional: import(".").JSONSchema;
491
+ })[] | undefined;
492
+ }>;
493
+ declare const DeleteConfig: z.ZodObject<z.objectUtil.extendShape<{
494
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
495
+ id: string;
496
+ description: string;
497
+ defaultMessage: string;
498
+ }>;
499
+ conditionals: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
500
+ type: z.ZodLiteral<"SHOW">;
501
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1619
502
  }, "strip", z.ZodTypeAny, {
1620
- active: boolean;
1621
- version: {
1622
- id: string;
1623
- label: TranslationConfig;
1624
- };
1625
- label: TranslationConfig;
1626
- pages: ({
1627
- type: import("./FormConfig").PageType.FORM;
1628
- id: string;
1629
- title: TranslationConfig;
1630
- fields: import("./FieldConfig").Inferred[];
1631
- } | {
1632
- type: import("./FormConfig").PageType.VERIFICATION;
1633
- id: string;
1634
- title: TranslationConfig;
1635
- actions: {
1636
- verify: {
1637
- label: TranslationConfig;
1638
- };
1639
- cancel: {
1640
- label: TranslationConfig;
1641
- confirmation: {
1642
- title: TranslationConfig;
1643
- body: TranslationConfig;
1644
- };
1645
- };
1646
- };
1647
- fields: import("./FieldConfig").Inferred[];
1648
- })[];
1649
- review: {
1650
- title: TranslationConfig;
1651
- fields: import("./FieldConfig").Inferred[];
1652
- };
503
+ type: "SHOW";
504
+ conditional: import(".").JSONSchema;
1653
505
  }, {
1654
- version: {
1655
- id: string;
1656
- label: {
1657
- id: string;
1658
- description: string;
1659
- defaultMessage: string;
1660
- };
1661
- };
1662
- label: {
1663
- id: string;
506
+ type: "SHOW";
507
+ conditional: import(".").JSONSchema;
508
+ }>, z.ZodObject<{
509
+ type: z.ZodLiteral<"ENABLE">;
510
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
511
+ }, "strip", z.ZodTypeAny, {
512
+ type: "ENABLE";
513
+ conditional: import(".").JSONSchema;
514
+ }, {
515
+ type: "ENABLE";
516
+ conditional: import(".").JSONSchema;
517
+ }>]>, "many">>>;
518
+ draft: z.ZodOptional<z.ZodBoolean>;
519
+ }, {
520
+ type: z.ZodLiteral<"DELETE">;
521
+ }>, "strip", z.ZodTypeAny, {
522
+ type: "DELETE";
523
+ conditionals: ({
524
+ type: "SHOW";
525
+ conditional: import(".").JSONSchema;
526
+ } | {
527
+ type: "ENABLE";
528
+ conditional: import(".").JSONSchema;
529
+ })[];
530
+ label: TranslationConfig;
531
+ draft?: boolean | undefined;
532
+ }, {
533
+ type: "DELETE";
534
+ label: {
535
+ id: string;
536
+ description: string;
537
+ defaultMessage: string;
538
+ };
539
+ draft?: boolean | undefined;
540
+ conditionals?: ({
541
+ type: "SHOW";
542
+ conditional: import(".").JSONSchema;
543
+ } | {
544
+ type: "ENABLE";
545
+ conditional: import(".").JSONSchema;
546
+ })[] | undefined;
547
+ }>;
548
+ declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape<{
549
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
550
+ id: string;
551
+ description: string;
552
+ defaultMessage: string;
553
+ }>;
554
+ conditionals: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
555
+ type: z.ZodLiteral<"SHOW">;
556
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
557
+ }, "strip", z.ZodTypeAny, {
558
+ type: "SHOW";
559
+ conditional: import(".").JSONSchema;
560
+ }, {
561
+ type: "SHOW";
562
+ conditional: import(".").JSONSchema;
563
+ }>, z.ZodObject<{
564
+ type: z.ZodLiteral<"ENABLE">;
565
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
566
+ }, "strip", z.ZodTypeAny, {
567
+ type: "ENABLE";
568
+ conditional: import(".").JSONSchema;
569
+ }, {
570
+ type: "ENABLE";
571
+ conditional: import(".").JSONSchema;
572
+ }>]>, "many">>>;
573
+ draft: z.ZodOptional<z.ZodBoolean>;
574
+ }, {
575
+ type: z.ZodLiteral<"PRINT_CERTIFICATE">;
576
+ printForm: z.ZodObject<{
577
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
578
+ id: string;
1664
579
  description: string;
1665
580
  defaultMessage: string;
1666
- };
1667
- pages: ({
1668
- id: string;
1669
- title: {
581
+ }>;
582
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", (z.ZodObject<z.objectUtil.extendShape<{
583
+ id: z.ZodString;
584
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1670
585
  id: string;
1671
586
  description: string;
1672
587
  defaultMessage: string;
1673
- };
588
+ }>;
589
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
590
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
591
+ }, {
592
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
593
+ }>, "strip", z.ZodTypeAny, {
594
+ type: "FORM";
595
+ id: string;
596
+ title: TranslationConfig;
1674
597
  fields: import("./FieldConfig").Inferred[];
1675
- type?: import("./FormConfig").PageType.FORM | undefined;
1676
- } | {
1677
- type: import("./FormConfig").PageType.VERIFICATION;
598
+ conditional?: import(".").JSONSchema | undefined;
599
+ }, {
1678
600
  id: string;
1679
601
  title: {
1680
602
  id: string;
1681
603
  description: string;
1682
604
  defaultMessage: string;
1683
605
  };
1684
- actions: {
606
+ fields: import("./FieldConfig").InferredInput[];
607
+ type?: "FORM" | undefined;
608
+ conditional?: import(".").JSONSchema | undefined;
609
+ }> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
610
+ id: z.ZodString;
611
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
612
+ id: string;
613
+ description: string;
614
+ defaultMessage: string;
615
+ }>;
616
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
617
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
618
+ }, {
619
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
620
+ }>, {
621
+ type: z.ZodLiteral<"VERIFICATION">;
622
+ actions: z.ZodObject<{
623
+ verify: z.ZodObject<{
624
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
625
+ id: string;
626
+ description: string;
627
+ defaultMessage: string;
628
+ }>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ label: TranslationConfig;
631
+ }, {
632
+ label: {
633
+ id: string;
634
+ description: string;
635
+ defaultMessage: string;
636
+ };
637
+ }>;
638
+ cancel: z.ZodObject<{
639
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
640
+ id: string;
641
+ description: string;
642
+ defaultMessage: string;
643
+ }>;
644
+ confirmation: z.ZodObject<{
645
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
646
+ id: string;
647
+ description: string;
648
+ defaultMessage: string;
649
+ }>;
650
+ body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
651
+ id: string;
652
+ description: string;
653
+ defaultMessage: string;
654
+ }>;
655
+ }, "strip", z.ZodTypeAny, {
656
+ title: TranslationConfig;
657
+ body: TranslationConfig;
658
+ }, {
659
+ title: {
660
+ id: string;
661
+ description: string;
662
+ defaultMessage: string;
663
+ };
664
+ body: {
665
+ id: string;
666
+ description: string;
667
+ defaultMessage: string;
668
+ };
669
+ }>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ label: TranslationConfig;
672
+ confirmation: {
673
+ title: TranslationConfig;
674
+ body: TranslationConfig;
675
+ };
676
+ }, {
677
+ label: {
678
+ id: string;
679
+ description: string;
680
+ defaultMessage: string;
681
+ };
682
+ confirmation: {
683
+ title: {
684
+ id: string;
685
+ description: string;
686
+ defaultMessage: string;
687
+ };
688
+ body: {
689
+ id: string;
690
+ description: string;
691
+ defaultMessage: string;
692
+ };
693
+ };
694
+ }>;
695
+ }, "strip", z.ZodTypeAny, {
696
+ verify: {
697
+ label: TranslationConfig;
698
+ };
699
+ cancel: {
700
+ label: TranslationConfig;
701
+ confirmation: {
702
+ title: TranslationConfig;
703
+ body: TranslationConfig;
704
+ };
705
+ };
706
+ }, {
1685
707
  verify: {
1686
708
  label: {
1687
709
  id: string;
@@ -1708,45 +730,74 @@ declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
1708
730
  };
1709
731
  };
1710
732
  };
733
+ }>;
734
+ }>, "strip", z.ZodTypeAny, {
735
+ type: "VERIFICATION";
736
+ id: string;
737
+ title: TranslationConfig;
738
+ actions: {
739
+ verify: {
740
+ label: TranslationConfig;
741
+ };
742
+ cancel: {
743
+ label: TranslationConfig;
744
+ confirmation: {
745
+ title: TranslationConfig;
746
+ body: TranslationConfig;
747
+ };
748
+ };
1711
749
  };
1712
750
  fields: import("./FieldConfig").Inferred[];
1713
- })[];
1714
- review: {
751
+ conditional?: import(".").JSONSchema | undefined;
752
+ }, {
753
+ type: "VERIFICATION";
754
+ id: string;
1715
755
  title: {
1716
756
  id: string;
1717
757
  description: string;
1718
758
  defaultMessage: string;
1719
759
  };
1720
- fields: import("./FieldConfig").Inferred[];
1721
- };
1722
- active?: boolean | undefined;
1723
- }>, "many">;
1724
- }, {
1725
- type: z.ZodLiteral<"ARCHIVE">;
1726
- }>, "strip", z.ZodTypeAny, {
1727
- type: "ARCHIVE";
1728
- conditionals: ({
1729
- type: "SHOW";
1730
- conditional: import(".").JSONSchema;
1731
- } | {
1732
- type: "ENABLE";
1733
- conditional: import(".").JSONSchema;
1734
- })[];
1735
- label: TranslationConfig;
1736
- forms: {
1737
- active: boolean;
1738
- version: {
1739
- id: string;
1740
- label: TranslationConfig;
1741
- };
760
+ actions: {
761
+ verify: {
762
+ label: {
763
+ id: string;
764
+ description: string;
765
+ defaultMessage: string;
766
+ };
767
+ };
768
+ cancel: {
769
+ label: {
770
+ id: string;
771
+ description: string;
772
+ defaultMessage: string;
773
+ };
774
+ confirmation: {
775
+ title: {
776
+ id: string;
777
+ description: string;
778
+ defaultMessage: string;
779
+ };
780
+ body: {
781
+ id: string;
782
+ description: string;
783
+ defaultMessage: string;
784
+ };
785
+ };
786
+ };
787
+ };
788
+ fields: import("./FieldConfig").InferredInput[];
789
+ conditional?: import(".").JSONSchema | undefined;
790
+ }>)[]>, "many">;
791
+ }, "strip", z.ZodTypeAny, {
1742
792
  label: TranslationConfig;
1743
793
  pages: ({
1744
- type: import("./FormConfig").PageType.FORM;
794
+ type: "FORM";
1745
795
  id: string;
1746
796
  title: TranslationConfig;
1747
797
  fields: import("./FieldConfig").Inferred[];
798
+ conditional?: import(".").JSONSchema | undefined;
1748
799
  } | {
1749
- type: import("./FormConfig").PageType.VERIFICATION;
800
+ type: "VERIFICATION";
1750
801
  id: string;
1751
802
  title: TranslationConfig;
1752
803
  actions: {
@@ -1762,29 +813,9 @@ declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
1762
813
  };
1763
814
  };
1764
815
  fields: import("./FieldConfig").Inferred[];
816
+ conditional?: import(".").JSONSchema | undefined;
1765
817
  })[];
1766
- review: {
1767
- title: TranslationConfig;
1768
- fields: import("./FieldConfig").Inferred[];
1769
- };
1770
- }[];
1771
- draft?: boolean | undefined;
1772
- }, {
1773
- type: "ARCHIVE";
1774
- label: {
1775
- id: string;
1776
- description: string;
1777
- defaultMessage: string;
1778
- };
1779
- forms: {
1780
- version: {
1781
- id: string;
1782
- label: {
1783
- id: string;
1784
- description: string;
1785
- defaultMessage: string;
1786
- };
1787
- };
818
+ }, {
1788
819
  label: {
1789
820
  id: string;
1790
821
  description: string;
@@ -1797,10 +828,11 @@ declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
1797
828
  description: string;
1798
829
  defaultMessage: string;
1799
830
  };
1800
- fields: import("./FieldConfig").Inferred[];
1801
- type?: import("./FormConfig").PageType.FORM | undefined;
831
+ fields: import("./FieldConfig").InferredInput[];
832
+ type?: "FORM" | undefined;
833
+ conditional?: import(".").JSONSchema | undefined;
1802
834
  } | {
1803
- type: import("./FormConfig").PageType.VERIFICATION;
835
+ type: "VERIFICATION";
1804
836
  id: string;
1805
837
  title: {
1806
838
  id: string;
@@ -1835,207 +867,13 @@ declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
1835
867
  };
1836
868
  };
1837
869
  };
1838
- fields: import("./FieldConfig").Inferred[];
870
+ fields: import("./FieldConfig").InferredInput[];
871
+ conditional?: import(".").JSONSchema | undefined;
1839
872
  })[];
1840
- review: {
1841
- title: {
1842
- id: string;
1843
- description: string;
1844
- defaultMessage: string;
1845
- };
1846
- fields: import("./FieldConfig").Inferred[];
1847
- };
1848
- active?: boolean | undefined;
1849
- }[];
1850
- draft?: boolean | undefined;
1851
- conditionals?: ({
1852
- type: "SHOW";
1853
- conditional: import(".").JSONSchema;
1854
- } | {
1855
- type: "ENABLE";
1856
- conditional: import(".").JSONSchema;
1857
- })[] | undefined;
1858
- }>;
1859
- declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
1860
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1861
- id: string;
1862
- description: string;
1863
- defaultMessage: string;
1864
- }>;
1865
- conditionals: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1866
- type: z.ZodLiteral<"SHOW">;
1867
- conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1868
- }, "strip", z.ZodTypeAny, {
1869
- type: "SHOW";
1870
- conditional: import(".").JSONSchema;
1871
- }, {
1872
- type: "SHOW";
1873
- conditional: import(".").JSONSchema;
1874
- }>, z.ZodObject<{
1875
- type: z.ZodLiteral<"ENABLE">;
1876
- conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1877
- }, "strip", z.ZodTypeAny, {
1878
- type: "ENABLE";
1879
- conditional: import(".").JSONSchema;
1880
- }, {
1881
- type: "ENABLE";
1882
- conditional: import(".").JSONSchema;
1883
- }>]>, "many">>>;
1884
- draft: z.ZodOptional<z.ZodBoolean>;
1885
- forms: z.ZodArray<z.ZodObject<{
1886
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1887
- id: string;
1888
- description: string;
1889
- defaultMessage: string;
1890
- }>;
1891
- version: z.ZodObject<{
1892
- id: z.ZodString;
1893
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1894
- id: string;
1895
- description: string;
1896
- defaultMessage: string;
1897
- }>;
1898
- }, "strip", z.ZodTypeAny, {
1899
- id: string;
1900
- label: TranslationConfig;
1901
- }, {
1902
- id: string;
1903
- label: {
1904
- id: string;
1905
- description: string;
1906
- defaultMessage: string;
1907
- };
1908
- }>;
1909
- active: z.ZodDefault<z.ZodBoolean>;
1910
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
1911
- review: z.ZodObject<{
1912
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1913
- id: string;
1914
- description: string;
1915
- defaultMessage: string;
1916
- }>;
1917
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1918
- }, "strip", z.ZodTypeAny, {
1919
- title: TranslationConfig;
1920
- fields: import("./FieldConfig").Inferred[];
1921
- }, {
1922
- title: {
1923
- id: string;
1924
- description: string;
1925
- defaultMessage: string;
1926
- };
1927
- fields: import("./FieldConfig").Inferred[];
1928
- }>;
1929
- }, "strip", z.ZodTypeAny, {
1930
- active: boolean;
1931
- version: {
1932
- id: string;
1933
- label: TranslationConfig;
1934
- };
1935
- label: TranslationConfig;
1936
- pages: ({
1937
- type: import("./FormConfig").PageType.FORM;
1938
- id: string;
1939
- title: TranslationConfig;
1940
- fields: import("./FieldConfig").Inferred[];
1941
- } | {
1942
- type: import("./FormConfig").PageType.VERIFICATION;
1943
- id: string;
1944
- title: TranslationConfig;
1945
- actions: {
1946
- verify: {
1947
- label: TranslationConfig;
1948
- };
1949
- cancel: {
1950
- label: TranslationConfig;
1951
- confirmation: {
1952
- title: TranslationConfig;
1953
- body: TranslationConfig;
1954
- };
1955
- };
1956
- };
1957
- fields: import("./FieldConfig").Inferred[];
1958
- })[];
1959
- review: {
1960
- title: TranslationConfig;
1961
- fields: import("./FieldConfig").Inferred[];
1962
- };
1963
- }, {
1964
- version: {
1965
- id: string;
1966
- label: {
1967
- id: string;
1968
- description: string;
1969
- defaultMessage: string;
1970
- };
1971
- };
1972
- label: {
1973
- id: string;
1974
- description: string;
1975
- defaultMessage: string;
1976
- };
1977
- pages: ({
1978
- id: string;
1979
- title: {
1980
- id: string;
1981
- description: string;
1982
- defaultMessage: string;
1983
- };
1984
- fields: import("./FieldConfig").Inferred[];
1985
- type?: import("./FormConfig").PageType.FORM | undefined;
1986
- } | {
1987
- type: import("./FormConfig").PageType.VERIFICATION;
1988
- id: string;
1989
- title: {
1990
- id: string;
1991
- description: string;
1992
- defaultMessage: string;
1993
- };
1994
- actions: {
1995
- verify: {
1996
- label: {
1997
- id: string;
1998
- description: string;
1999
- defaultMessage: string;
2000
- };
2001
- };
2002
- cancel: {
2003
- label: {
2004
- id: string;
2005
- description: string;
2006
- defaultMessage: string;
2007
- };
2008
- confirmation: {
2009
- title: {
2010
- id: string;
2011
- description: string;
2012
- defaultMessage: string;
2013
- };
2014
- body: {
2015
- id: string;
2016
- description: string;
2017
- defaultMessage: string;
2018
- };
2019
- };
2020
- };
2021
- };
2022
- fields: import("./FieldConfig").Inferred[];
2023
- })[];
2024
- review: {
2025
- title: {
2026
- id: string;
2027
- description: string;
2028
- defaultMessage: string;
2029
- };
2030
- fields: import("./FieldConfig").Inferred[];
2031
- };
2032
- active?: boolean | undefined;
2033
- }>, "many">;
2034
- }, {
2035
- type: z.ZodLiteral<"REGISTER">;
2036
- }>, "strip", z.ZodTypeAny, {
2037
- type: "REGISTER";
2038
- conditionals: ({
873
+ }>;
874
+ }>, "strip", z.ZodTypeAny, {
875
+ type: "PRINT_CERTIFICATE";
876
+ conditionals: ({
2039
877
  type: "SHOW";
2040
878
  conditional: import(".").JSONSchema;
2041
879
  } | {
@@ -2043,20 +881,16 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
2043
881
  conditional: import(".").JSONSchema;
2044
882
  })[];
2045
883
  label: TranslationConfig;
2046
- forms: {
2047
- active: boolean;
2048
- version: {
2049
- id: string;
2050
- label: TranslationConfig;
2051
- };
884
+ printForm: {
2052
885
  label: TranslationConfig;
2053
886
  pages: ({
2054
- type: import("./FormConfig").PageType.FORM;
887
+ type: "FORM";
2055
888
  id: string;
2056
889
  title: TranslationConfig;
2057
890
  fields: import("./FieldConfig").Inferred[];
891
+ conditional?: import(".").JSONSchema | undefined;
2058
892
  } | {
2059
- type: import("./FormConfig").PageType.VERIFICATION;
893
+ type: "VERIFICATION";
2060
894
  id: string;
2061
895
  title: TranslationConfig;
2062
896
  actions: {
@@ -2072,29 +906,18 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
2072
906
  };
2073
907
  };
2074
908
  fields: import("./FieldConfig").Inferred[];
909
+ conditional?: import(".").JSONSchema | undefined;
2075
910
  })[];
2076
- review: {
2077
- title: TranslationConfig;
2078
- fields: import("./FieldConfig").Inferred[];
2079
- };
2080
- }[];
911
+ };
2081
912
  draft?: boolean | undefined;
2082
913
  }, {
2083
- type: "REGISTER";
914
+ type: "PRINT_CERTIFICATE";
2084
915
  label: {
2085
916
  id: string;
2086
917
  description: string;
2087
918
  defaultMessage: string;
2088
919
  };
2089
- forms: {
2090
- version: {
2091
- id: string;
2092
- label: {
2093
- id: string;
2094
- description: string;
2095
- defaultMessage: string;
2096
- };
2097
- };
920
+ printForm: {
2098
921
  label: {
2099
922
  id: string;
2100
923
  description: string;
@@ -2107,10 +930,11 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
2107
930
  description: string;
2108
931
  defaultMessage: string;
2109
932
  };
2110
- fields: import("./FieldConfig").Inferred[];
2111
- type?: import("./FormConfig").PageType.FORM | undefined;
933
+ fields: import("./FieldConfig").InferredInput[];
934
+ type?: "FORM" | undefined;
935
+ conditional?: import(".").JSONSchema | undefined;
2112
936
  } | {
2113
- type: import("./FormConfig").PageType.VERIFICATION;
937
+ type: "VERIFICATION";
2114
938
  id: string;
2115
939
  title: {
2116
940
  id: string;
@@ -2145,18 +969,10 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
2145
969
  };
2146
970
  };
2147
971
  };
2148
- fields: import("./FieldConfig").Inferred[];
972
+ fields: import("./FieldConfig").InferredInput[];
973
+ conditional?: import(".").JSONSchema | undefined;
2149
974
  })[];
2150
- review: {
2151
- title: {
2152
- id: string;
2153
- description: string;
2154
- defaultMessage: string;
2155
- };
2156
- fields: import("./FieldConfig").Inferred[];
2157
- };
2158
- active?: boolean | undefined;
2159
- }[];
975
+ };
2160
976
  draft?: boolean | undefined;
2161
977
  conditionals?: ({
2162
978
  type: "SHOW";
@@ -2166,7 +982,7 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
2166
982
  conditional: import(".").JSONSchema;
2167
983
  })[] | undefined;
2168
984
  }>;
2169
- declare const DeleteConfig: z.ZodObject<z.objectUtil.extendShape<{
985
+ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2170
986
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2171
987
  id: string;
2172
988
  description: string;
@@ -2192,779 +1008,426 @@ declare const DeleteConfig: z.ZodObject<z.objectUtil.extendShape<{
2192
1008
  conditional: import(".").JSONSchema;
2193
1009
  }>]>, "many">>>;
2194
1010
  draft: z.ZodOptional<z.ZodBoolean>;
2195
- forms: z.ZodArray<z.ZodObject<{
2196
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1011
+ }, {
1012
+ type: z.ZodLiteral<"REQUEST_CORRECTION">;
1013
+ onboardingForm: z.ZodArray<z.ZodDiscriminatedUnion<"type", (z.ZodObject<z.objectUtil.extendShape<{
1014
+ id: z.ZodString;
1015
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2197
1016
  id: string;
2198
1017
  description: string;
2199
1018
  defaultMessage: string;
2200
1019
  }>;
2201
- version: z.ZodObject<{
2202
- id: z.ZodString;
2203
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2204
- id: string;
2205
- description: string;
2206
- defaultMessage: string;
2207
- }>;
2208
- }, "strip", z.ZodTypeAny, {
2209
- id: string;
2210
- label: TranslationConfig;
2211
- }, {
2212
- id: string;
2213
- label: {
2214
- id: string;
2215
- description: string;
2216
- defaultMessage: string;
2217
- };
2218
- }>;
2219
- active: z.ZodDefault<z.ZodBoolean>;
2220
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
2221
- review: z.ZodObject<{
2222
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2223
- id: string;
2224
- description: string;
2225
- defaultMessage: string;
2226
- }>;
2227
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2228
- }, "strip", z.ZodTypeAny, {
2229
- title: TranslationConfig;
2230
- fields: import("./FieldConfig").Inferred[];
2231
- }, {
2232
- title: {
2233
- id: string;
2234
- description: string;
2235
- defaultMessage: string;
2236
- };
2237
- fields: import("./FieldConfig").Inferred[];
2238
- }>;
2239
- }, "strip", z.ZodTypeAny, {
2240
- active: boolean;
2241
- version: {
1020
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
1021
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
1022
+ }, {
1023
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
1024
+ }>, "strip", z.ZodTypeAny, {
1025
+ type: "FORM";
1026
+ id: string;
1027
+ title: TranslationConfig;
1028
+ fields: import("./FieldConfig").Inferred[];
1029
+ conditional?: import(".").JSONSchema | undefined;
1030
+ }, {
1031
+ id: string;
1032
+ title: {
2242
1033
  id: string;
2243
- label: TranslationConfig;
1034
+ description: string;
1035
+ defaultMessage: string;
2244
1036
  };
2245
- label: TranslationConfig;
2246
- pages: ({
2247
- type: import("./FormConfig").PageType.FORM;
2248
- id: string;
2249
- title: TranslationConfig;
2250
- fields: import("./FieldConfig").Inferred[];
2251
- } | {
2252
- type: import("./FormConfig").PageType.VERIFICATION;
1037
+ fields: import("./FieldConfig").InferredInput[];
1038
+ type?: "FORM" | undefined;
1039
+ conditional?: import(".").JSONSchema | undefined;
1040
+ }> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1041
+ id: z.ZodString;
1042
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2253
1043
  id: string;
2254
- title: TranslationConfig;
2255
- actions: {
2256
- verify: {
2257
- label: TranslationConfig;
2258
- };
2259
- cancel: {
2260
- label: TranslationConfig;
2261
- confirmation: {
2262
- title: TranslationConfig;
2263
- body: TranslationConfig;
2264
- };
2265
- };
2266
- };
2267
- fields: import("./FieldConfig").Inferred[];
2268
- })[];
2269
- review: {
2270
- title: TranslationConfig;
2271
- fields: import("./FieldConfig").Inferred[];
2272
- };
1044
+ description: string;
1045
+ defaultMessage: string;
1046
+ }>;
1047
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
1048
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
2273
1049
  }, {
2274
- version: {
2275
- id: string;
2276
- label: {
2277
- id: string;
2278
- description: string;
2279
- defaultMessage: string;
2280
- };
2281
- };
2282
- label: {
2283
- id: string;
2284
- description: string;
2285
- defaultMessage: string;
2286
- };
2287
- pages: ({
2288
- id: string;
2289
- title: {
2290
- id: string;
2291
- description: string;
2292
- defaultMessage: string;
2293
- };
2294
- fields: import("./FieldConfig").Inferred[];
2295
- type?: import("./FormConfig").PageType.FORM | undefined;
2296
- } | {
2297
- type: import("./FormConfig").PageType.VERIFICATION;
2298
- id: string;
2299
- title: {
2300
- id: string;
2301
- description: string;
2302
- defaultMessage: string;
2303
- };
2304
- actions: {
2305
- verify: {
2306
- label: {
1050
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
1051
+ }>, {
1052
+ type: z.ZodLiteral<"VERIFICATION">;
1053
+ actions: z.ZodObject<{
1054
+ verify: z.ZodObject<{
1055
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1056
+ id: string;
1057
+ description: string;
1058
+ defaultMessage: string;
1059
+ }>;
1060
+ }, "strip", z.ZodTypeAny, {
1061
+ label: TranslationConfig;
1062
+ }, {
1063
+ label: {
1064
+ id: string;
1065
+ description: string;
1066
+ defaultMessage: string;
1067
+ };
1068
+ }>;
1069
+ cancel: z.ZodObject<{
1070
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1071
+ id: string;
1072
+ description: string;
1073
+ defaultMessage: string;
1074
+ }>;
1075
+ confirmation: z.ZodObject<{
1076
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1077
+ id: string;
1078
+ description: string;
1079
+ defaultMessage: string;
1080
+ }>;
1081
+ body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1082
+ id: string;
1083
+ description: string;
1084
+ defaultMessage: string;
1085
+ }>;
1086
+ }, "strip", z.ZodTypeAny, {
1087
+ title: TranslationConfig;
1088
+ body: TranslationConfig;
1089
+ }, {
1090
+ title: {
1091
+ id: string;
1092
+ description: string;
1093
+ defaultMessage: string;
1094
+ };
1095
+ body: {
2307
1096
  id: string;
2308
1097
  description: string;
2309
1098
  defaultMessage: string;
2310
1099
  };
1100
+ }>;
1101
+ }, "strip", z.ZodTypeAny, {
1102
+ label: TranslationConfig;
1103
+ confirmation: {
1104
+ title: TranslationConfig;
1105
+ body: TranslationConfig;
2311
1106
  };
2312
- cancel: {
2313
- label: {
1107
+ }, {
1108
+ label: {
1109
+ id: string;
1110
+ description: string;
1111
+ defaultMessage: string;
1112
+ };
1113
+ confirmation: {
1114
+ title: {
2314
1115
  id: string;
2315
1116
  description: string;
2316
1117
  defaultMessage: string;
2317
1118
  };
2318
- confirmation: {
2319
- title: {
2320
- id: string;
2321
- description: string;
2322
- defaultMessage: string;
2323
- };
2324
- body: {
2325
- id: string;
2326
- description: string;
2327
- defaultMessage: string;
2328
- };
1119
+ body: {
1120
+ id: string;
1121
+ description: string;
1122
+ defaultMessage: string;
2329
1123
  };
2330
1124
  };
1125
+ }>;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ verify: {
1128
+ label: TranslationConfig;
2331
1129
  };
2332
- fields: import("./FieldConfig").Inferred[];
2333
- })[];
2334
- review: {
2335
- title: {
2336
- id: string;
2337
- description: string;
2338
- defaultMessage: string;
1130
+ cancel: {
1131
+ label: TranslationConfig;
1132
+ confirmation: {
1133
+ title: TranslationConfig;
1134
+ body: TranslationConfig;
1135
+ };
2339
1136
  };
2340
- fields: import("./FieldConfig").Inferred[];
2341
- };
2342
- active?: boolean | undefined;
2343
- }>, "many">;
2344
- }, {
2345
- type: z.ZodLiteral<"DELETE">;
2346
- }>, "strip", z.ZodTypeAny, {
2347
- type: "DELETE";
2348
- conditionals: ({
2349
- type: "SHOW";
2350
- conditional: import(".").JSONSchema;
2351
- } | {
2352
- type: "ENABLE";
2353
- conditional: import(".").JSONSchema;
2354
- })[];
2355
- label: TranslationConfig;
2356
- forms: {
2357
- active: boolean;
2358
- version: {
2359
- id: string;
2360
- label: TranslationConfig;
2361
- };
2362
- label: TranslationConfig;
2363
- pages: ({
2364
- type: import("./FormConfig").PageType.FORM;
2365
- id: string;
2366
- title: TranslationConfig;
2367
- fields: import("./FieldConfig").Inferred[];
2368
- } | {
2369
- type: import("./FormConfig").PageType.VERIFICATION;
2370
- id: string;
2371
- title: TranslationConfig;
2372
- actions: {
2373
- verify: {
2374
- label: TranslationConfig;
1137
+ }, {
1138
+ verify: {
1139
+ label: {
1140
+ id: string;
1141
+ description: string;
1142
+ defaultMessage: string;
2375
1143
  };
2376
- cancel: {
2377
- label: TranslationConfig;
2378
- confirmation: {
2379
- title: TranslationConfig;
2380
- body: TranslationConfig;
1144
+ };
1145
+ cancel: {
1146
+ label: {
1147
+ id: string;
1148
+ description: string;
1149
+ defaultMessage: string;
1150
+ };
1151
+ confirmation: {
1152
+ title: {
1153
+ id: string;
1154
+ description: string;
1155
+ defaultMessage: string;
1156
+ };
1157
+ body: {
1158
+ id: string;
1159
+ description: string;
1160
+ defaultMessage: string;
2381
1161
  };
2382
1162
  };
2383
1163
  };
2384
- fields: import("./FieldConfig").Inferred[];
2385
- })[];
2386
- review: {
2387
- title: TranslationConfig;
2388
- fields: import("./FieldConfig").Inferred[];
2389
- };
2390
- }[];
2391
- draft?: boolean | undefined;
2392
- }, {
2393
- type: "DELETE";
2394
- label: {
1164
+ }>;
1165
+ }>, "strip", z.ZodTypeAny, {
1166
+ type: "VERIFICATION";
2395
1167
  id: string;
2396
- description: string;
2397
- defaultMessage: string;
2398
- };
2399
- forms: {
2400
- version: {
2401
- id: string;
2402
- label: {
2403
- id: string;
2404
- description: string;
2405
- defaultMessage: string;
1168
+ title: TranslationConfig;
1169
+ actions: {
1170
+ verify: {
1171
+ label: TranslationConfig;
1172
+ };
1173
+ cancel: {
1174
+ label: TranslationConfig;
1175
+ confirmation: {
1176
+ title: TranslationConfig;
1177
+ body: TranslationConfig;
1178
+ };
2406
1179
  };
2407
1180
  };
2408
- label: {
1181
+ fields: import("./FieldConfig").Inferred[];
1182
+ conditional?: import(".").JSONSchema | undefined;
1183
+ }, {
1184
+ type: "VERIFICATION";
1185
+ id: string;
1186
+ title: {
2409
1187
  id: string;
2410
1188
  description: string;
2411
1189
  defaultMessage: string;
2412
1190
  };
2413
- pages: ({
2414
- id: string;
2415
- title: {
2416
- id: string;
2417
- description: string;
2418
- defaultMessage: string;
2419
- };
2420
- fields: import("./FieldConfig").Inferred[];
2421
- type?: import("./FormConfig").PageType.FORM | undefined;
2422
- } | {
2423
- type: import("./FormConfig").PageType.VERIFICATION;
2424
- id: string;
2425
- title: {
2426
- id: string;
2427
- description: string;
2428
- defaultMessage: string;
1191
+ actions: {
1192
+ verify: {
1193
+ label: {
1194
+ id: string;
1195
+ description: string;
1196
+ defaultMessage: string;
1197
+ };
2429
1198
  };
2430
- actions: {
2431
- verify: {
2432
- label: {
1199
+ cancel: {
1200
+ label: {
1201
+ id: string;
1202
+ description: string;
1203
+ defaultMessage: string;
1204
+ };
1205
+ confirmation: {
1206
+ title: {
2433
1207
  id: string;
2434
1208
  description: string;
2435
1209
  defaultMessage: string;
2436
1210
  };
2437
- };
2438
- cancel: {
2439
- label: {
1211
+ body: {
2440
1212
  id: string;
2441
1213
  description: string;
2442
1214
  defaultMessage: string;
2443
1215
  };
2444
- confirmation: {
2445
- title: {
2446
- id: string;
2447
- description: string;
2448
- defaultMessage: string;
2449
- };
2450
- body: {
2451
- id: string;
2452
- description: string;
2453
- defaultMessage: string;
2454
- };
2455
- };
2456
1216
  };
2457
1217
  };
2458
- fields: import("./FieldConfig").Inferred[];
2459
- })[];
2460
- review: {
2461
- title: {
2462
- id: string;
2463
- description: string;
2464
- defaultMessage: string;
2465
- };
2466
- fields: import("./FieldConfig").Inferred[];
2467
1218
  };
2468
- active?: boolean | undefined;
2469
- }[];
2470
- draft?: boolean | undefined;
2471
- conditionals?: ({
2472
- type: "SHOW";
2473
- conditional: import(".").JSONSchema;
2474
- } | {
2475
- type: "ENABLE";
2476
- conditional: import(".").JSONSchema;
2477
- })[] | undefined;
2478
- }>;
2479
- declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape<{
2480
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2481
- id: string;
2482
- description: string;
2483
- defaultMessage: string;
2484
- }>;
2485
- conditionals: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2486
- type: z.ZodLiteral<"SHOW">;
2487
- conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
2488
- }, "strip", z.ZodTypeAny, {
2489
- type: "SHOW";
2490
- conditional: import(".").JSONSchema;
2491
- }, {
2492
- type: "SHOW";
2493
- conditional: import(".").JSONSchema;
2494
- }>, z.ZodObject<{
2495
- type: z.ZodLiteral<"ENABLE">;
2496
- conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
2497
- }, "strip", z.ZodTypeAny, {
2498
- type: "ENABLE";
2499
- conditional: import(".").JSONSchema;
2500
- }, {
2501
- type: "ENABLE";
2502
- conditional: import(".").JSONSchema;
2503
- }>]>, "many">>>;
2504
- draft: z.ZodOptional<z.ZodBoolean>;
2505
- forms: z.ZodArray<z.ZodObject<{
2506
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1219
+ fields: import("./FieldConfig").InferredInput[];
1220
+ conditional?: import(".").JSONSchema | undefined;
1221
+ }>)[]>, "many">;
1222
+ additionalDetailsForm: z.ZodArray<z.ZodDiscriminatedUnion<"type", (z.ZodObject<z.objectUtil.extendShape<{
1223
+ id: z.ZodString;
1224
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2507
1225
  id: string;
2508
1226
  description: string;
2509
1227
  defaultMessage: string;
2510
1228
  }>;
2511
- version: z.ZodObject<{
2512
- id: z.ZodString;
2513
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2514
- id: string;
2515
- description: string;
2516
- defaultMessage: string;
2517
- }>;
2518
- }, "strip", z.ZodTypeAny, {
2519
- id: string;
2520
- label: TranslationConfig;
2521
- }, {
2522
- id: string;
2523
- label: {
2524
- id: string;
2525
- description: string;
2526
- defaultMessage: string;
2527
- };
2528
- }>;
2529
- active: z.ZodDefault<z.ZodBoolean>;
2530
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
2531
- review: z.ZodObject<{
2532
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2533
- id: string;
2534
- description: string;
2535
- defaultMessage: string;
2536
- }>;
2537
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2538
- }, "strip", z.ZodTypeAny, {
2539
- title: TranslationConfig;
2540
- fields: import("./FieldConfig").Inferred[];
2541
- }, {
2542
- title: {
2543
- id: string;
2544
- description: string;
2545
- defaultMessage: string;
2546
- };
2547
- fields: import("./FieldConfig").Inferred[];
2548
- }>;
2549
- }, "strip", z.ZodTypeAny, {
2550
- active: boolean;
2551
- version: {
2552
- id: string;
2553
- label: TranslationConfig;
2554
- };
2555
- label: TranslationConfig;
2556
- pages: ({
2557
- type: import("./FormConfig").PageType.FORM;
2558
- id: string;
2559
- title: TranslationConfig;
2560
- fields: import("./FieldConfig").Inferred[];
2561
- } | {
2562
- type: import("./FormConfig").PageType.VERIFICATION;
2563
- id: string;
2564
- title: TranslationConfig;
2565
- actions: {
2566
- verify: {
2567
- label: TranslationConfig;
2568
- };
2569
- cancel: {
2570
- label: TranslationConfig;
2571
- confirmation: {
2572
- title: TranslationConfig;
2573
- body: TranslationConfig;
2574
- };
2575
- };
2576
- };
2577
- fields: import("./FieldConfig").Inferred[];
2578
- })[];
2579
- review: {
2580
- title: TranslationConfig;
2581
- fields: import("./FieldConfig").Inferred[];
2582
- };
1229
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
1230
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
2583
1231
  }, {
2584
- version: {
2585
- id: string;
2586
- label: {
2587
- id: string;
2588
- description: string;
2589
- defaultMessage: string;
2590
- };
2591
- };
2592
- label: {
1232
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
1233
+ }>, "strip", z.ZodTypeAny, {
1234
+ type: "FORM";
1235
+ id: string;
1236
+ title: TranslationConfig;
1237
+ fields: import("./FieldConfig").Inferred[];
1238
+ conditional?: import(".").JSONSchema | undefined;
1239
+ }, {
1240
+ id: string;
1241
+ title: {
2593
1242
  id: string;
2594
1243
  description: string;
2595
1244
  defaultMessage: string;
2596
1245
  };
2597
- pages: ({
1246
+ fields: import("./FieldConfig").InferredInput[];
1247
+ type?: "FORM" | undefined;
1248
+ conditional?: import(".").JSONSchema | undefined;
1249
+ }> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1250
+ id: z.ZodString;
1251
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2598
1252
  id: string;
2599
- title: {
2600
- id: string;
2601
- description: string;
2602
- defaultMessage: string;
2603
- };
2604
- fields: import("./FieldConfig").Inferred[];
2605
- type?: import("./FormConfig").PageType.FORM | undefined;
2606
- } | {
2607
- type: import("./FormConfig").PageType.VERIFICATION;
2608
- id: string;
2609
- title: {
2610
- id: string;
2611
- description: string;
2612
- defaultMessage: string;
2613
- };
2614
- actions: {
2615
- verify: {
2616
- label: {
1253
+ description: string;
1254
+ defaultMessage: string;
1255
+ }>;
1256
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
1257
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
1258
+ }, {
1259
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
1260
+ }>, {
1261
+ type: z.ZodLiteral<"VERIFICATION">;
1262
+ actions: z.ZodObject<{
1263
+ verify: z.ZodObject<{
1264
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1265
+ id: string;
1266
+ description: string;
1267
+ defaultMessage: string;
1268
+ }>;
1269
+ }, "strip", z.ZodTypeAny, {
1270
+ label: TranslationConfig;
1271
+ }, {
1272
+ label: {
1273
+ id: string;
1274
+ description: string;
1275
+ defaultMessage: string;
1276
+ };
1277
+ }>;
1278
+ cancel: z.ZodObject<{
1279
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1280
+ id: string;
1281
+ description: string;
1282
+ defaultMessage: string;
1283
+ }>;
1284
+ confirmation: z.ZodObject<{
1285
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2617
1286
  id: string;
2618
1287
  description: string;
2619
1288
  defaultMessage: string;
2620
- };
2621
- };
2622
- cancel: {
2623
- label: {
1289
+ }>;
1290
+ body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1291
+ id: string;
1292
+ description: string;
1293
+ defaultMessage: string;
1294
+ }>;
1295
+ }, "strip", z.ZodTypeAny, {
1296
+ title: TranslationConfig;
1297
+ body: TranslationConfig;
1298
+ }, {
1299
+ title: {
2624
1300
  id: string;
2625
1301
  description: string;
2626
1302
  defaultMessage: string;
2627
1303
  };
2628
- confirmation: {
2629
- title: {
2630
- id: string;
2631
- description: string;
2632
- defaultMessage: string;
2633
- };
2634
- body: {
2635
- id: string;
2636
- description: string;
2637
- defaultMessage: string;
2638
- };
1304
+ body: {
1305
+ id: string;
1306
+ description: string;
1307
+ defaultMessage: string;
2639
1308
  };
1309
+ }>;
1310
+ }, "strip", z.ZodTypeAny, {
1311
+ label: TranslationConfig;
1312
+ confirmation: {
1313
+ title: TranslationConfig;
1314
+ body: TranslationConfig;
2640
1315
  };
2641
- };
2642
- fields: import("./FieldConfig").Inferred[];
2643
- })[];
2644
- review: {
2645
- title: {
2646
- id: string;
2647
- description: string;
2648
- defaultMessage: string;
2649
- };
2650
- fields: import("./FieldConfig").Inferred[];
2651
- };
2652
- active?: boolean | undefined;
2653
- }>, "many">;
2654
- }, {
2655
- type: z.ZodLiteral<"PRINT_CERTIFICATE">;
2656
- }>, "strip", z.ZodTypeAny, {
2657
- type: "PRINT_CERTIFICATE";
2658
- conditionals: ({
2659
- type: "SHOW";
2660
- conditional: import(".").JSONSchema;
2661
- } | {
2662
- type: "ENABLE";
2663
- conditional: import(".").JSONSchema;
2664
- })[];
2665
- label: TranslationConfig;
2666
- forms: {
2667
- active: boolean;
2668
- version: {
2669
- id: string;
2670
- label: TranslationConfig;
2671
- };
2672
- label: TranslationConfig;
2673
- pages: ({
2674
- type: import("./FormConfig").PageType.FORM;
2675
- id: string;
2676
- title: TranslationConfig;
2677
- fields: import("./FieldConfig").Inferred[];
2678
- } | {
2679
- type: import("./FormConfig").PageType.VERIFICATION;
2680
- id: string;
2681
- title: TranslationConfig;
2682
- actions: {
2683
- verify: {
2684
- label: TranslationConfig;
1316
+ }, {
1317
+ label: {
1318
+ id: string;
1319
+ description: string;
1320
+ defaultMessage: string;
2685
1321
  };
2686
- cancel: {
2687
- label: TranslationConfig;
2688
- confirmation: {
2689
- title: TranslationConfig;
2690
- body: TranslationConfig;
1322
+ confirmation: {
1323
+ title: {
1324
+ id: string;
1325
+ description: string;
1326
+ defaultMessage: string;
1327
+ };
1328
+ body: {
1329
+ id: string;
1330
+ description: string;
1331
+ defaultMessage: string;
2691
1332
  };
2692
1333
  };
1334
+ }>;
1335
+ }, "strip", z.ZodTypeAny, {
1336
+ verify: {
1337
+ label: TranslationConfig;
2693
1338
  };
2694
- fields: import("./FieldConfig").Inferred[];
2695
- })[];
2696
- review: {
2697
- title: TranslationConfig;
2698
- fields: import("./FieldConfig").Inferred[];
2699
- };
2700
- }[];
2701
- draft?: boolean | undefined;
2702
- }, {
2703
- type: "PRINT_CERTIFICATE";
2704
- label: {
2705
- id: string;
2706
- description: string;
2707
- defaultMessage: string;
2708
- };
2709
- forms: {
2710
- version: {
2711
- id: string;
2712
- label: {
2713
- id: string;
2714
- description: string;
2715
- defaultMessage: string;
2716
- };
2717
- };
2718
- label: {
2719
- id: string;
2720
- description: string;
2721
- defaultMessage: string;
2722
- };
2723
- pages: ({
2724
- id: string;
2725
- title: {
2726
- id: string;
2727
- description: string;
2728
- defaultMessage: string;
1339
+ cancel: {
1340
+ label: TranslationConfig;
1341
+ confirmation: {
1342
+ title: TranslationConfig;
1343
+ body: TranslationConfig;
1344
+ };
2729
1345
  };
2730
- fields: import("./FieldConfig").Inferred[];
2731
- type?: import("./FormConfig").PageType.FORM | undefined;
2732
- } | {
2733
- type: import("./FormConfig").PageType.VERIFICATION;
2734
- id: string;
2735
- title: {
2736
- id: string;
2737
- description: string;
2738
- defaultMessage: string;
1346
+ }, {
1347
+ verify: {
1348
+ label: {
1349
+ id: string;
1350
+ description: string;
1351
+ defaultMessage: string;
1352
+ };
2739
1353
  };
2740
- actions: {
2741
- verify: {
2742
- label: {
1354
+ cancel: {
1355
+ label: {
1356
+ id: string;
1357
+ description: string;
1358
+ defaultMessage: string;
1359
+ };
1360
+ confirmation: {
1361
+ title: {
2743
1362
  id: string;
2744
1363
  description: string;
2745
1364
  defaultMessage: string;
2746
1365
  };
2747
- };
2748
- cancel: {
2749
- label: {
1366
+ body: {
2750
1367
  id: string;
2751
1368
  description: string;
2752
1369
  defaultMessage: string;
2753
1370
  };
2754
- confirmation: {
2755
- title: {
2756
- id: string;
2757
- description: string;
2758
- defaultMessage: string;
2759
- };
2760
- body: {
2761
- id: string;
2762
- description: string;
2763
- defaultMessage: string;
2764
- };
2765
- };
2766
1371
  };
2767
1372
  };
2768
- fields: import("./FieldConfig").Inferred[];
2769
- })[];
2770
- review: {
2771
- title: {
2772
- id: string;
2773
- description: string;
2774
- defaultMessage: string;
2775
- };
2776
- fields: import("./FieldConfig").Inferred[];
2777
- };
2778
- active?: boolean | undefined;
2779
- }[];
2780
- draft?: boolean | undefined;
2781
- conditionals?: ({
2782
- type: "SHOW";
2783
- conditional: import(".").JSONSchema;
2784
- } | {
2785
- type: "ENABLE";
2786
- conditional: import(".").JSONSchema;
2787
- })[] | undefined;
2788
- }>;
2789
- declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2790
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2791
- id: string;
2792
- description: string;
2793
- defaultMessage: string;
2794
- }>;
2795
- conditionals: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2796
- type: z.ZodLiteral<"SHOW">;
2797
- conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
2798
- }, "strip", z.ZodTypeAny, {
2799
- type: "SHOW";
2800
- conditional: import(".").JSONSchema;
2801
- }, {
2802
- type: "SHOW";
2803
- conditional: import(".").JSONSchema;
2804
- }>, z.ZodObject<{
2805
- type: z.ZodLiteral<"ENABLE">;
2806
- conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
2807
- }, "strip", z.ZodTypeAny, {
2808
- type: "ENABLE";
2809
- conditional: import(".").JSONSchema;
2810
- }, {
2811
- type: "ENABLE";
2812
- conditional: import(".").JSONSchema;
2813
- }>]>, "many">>>;
2814
- draft: z.ZodOptional<z.ZodBoolean>;
2815
- forms: z.ZodArray<z.ZodObject<{
2816
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2817
- id: string;
2818
- description: string;
2819
- defaultMessage: string;
2820
1373
  }>;
2821
- version: z.ZodObject<{
2822
- id: z.ZodString;
2823
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2824
- id: string;
2825
- description: string;
2826
- defaultMessage: string;
2827
- }>;
2828
- }, "strip", z.ZodTypeAny, {
2829
- id: string;
2830
- label: TranslationConfig;
2831
- }, {
2832
- id: string;
2833
- label: {
2834
- id: string;
2835
- description: string;
2836
- defaultMessage: string;
2837
- };
2838
- }>;
2839
- active: z.ZodDefault<z.ZodBoolean>;
2840
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
2841
- review: z.ZodObject<{
2842
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2843
- id: string;
2844
- description: string;
2845
- defaultMessage: string;
2846
- }>;
2847
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2848
- }, "strip", z.ZodTypeAny, {
2849
- title: TranslationConfig;
2850
- fields: import("./FieldConfig").Inferred[];
2851
- }, {
2852
- title: {
2853
- id: string;
2854
- description: string;
2855
- defaultMessage: string;
1374
+ }>, "strip", z.ZodTypeAny, {
1375
+ type: "VERIFICATION";
1376
+ id: string;
1377
+ title: TranslationConfig;
1378
+ actions: {
1379
+ verify: {
1380
+ label: TranslationConfig;
2856
1381
  };
2857
- fields: import("./FieldConfig").Inferred[];
2858
- }>;
2859
- }, "strip", z.ZodTypeAny, {
2860
- active: boolean;
2861
- version: {
2862
- id: string;
2863
- label: TranslationConfig;
2864
- };
2865
- label: TranslationConfig;
2866
- pages: ({
2867
- type: import("./FormConfig").PageType.FORM;
2868
- id: string;
2869
- title: TranslationConfig;
2870
- fields: import("./FieldConfig").Inferred[];
2871
- } | {
2872
- type: import("./FormConfig").PageType.VERIFICATION;
2873
- id: string;
2874
- title: TranslationConfig;
2875
- actions: {
2876
- verify: {
2877
- label: TranslationConfig;
2878
- };
2879
- cancel: {
2880
- label: TranslationConfig;
2881
- confirmation: {
2882
- title: TranslationConfig;
2883
- body: TranslationConfig;
2884
- };
1382
+ cancel: {
1383
+ label: TranslationConfig;
1384
+ confirmation: {
1385
+ title: TranslationConfig;
1386
+ body: TranslationConfig;
2885
1387
  };
2886
1388
  };
2887
- fields: import("./FieldConfig").Inferred[];
2888
- })[];
2889
- review: {
2890
- title: TranslationConfig;
2891
- fields: import("./FieldConfig").Inferred[];
2892
1389
  };
1390
+ fields: import("./FieldConfig").Inferred[];
1391
+ conditional?: import(".").JSONSchema | undefined;
2893
1392
  }, {
2894
- version: {
2895
- id: string;
2896
- label: {
2897
- id: string;
2898
- description: string;
2899
- defaultMessage: string;
2900
- };
2901
- };
2902
- label: {
1393
+ type: "VERIFICATION";
1394
+ id: string;
1395
+ title: {
2903
1396
  id: string;
2904
1397
  description: string;
2905
1398
  defaultMessage: string;
2906
1399
  };
2907
- pages: ({
2908
- id: string;
2909
- title: {
2910
- id: string;
2911
- description: string;
2912
- defaultMessage: string;
2913
- };
2914
- fields: import("./FieldConfig").Inferred[];
2915
- type?: import("./FormConfig").PageType.FORM | undefined;
2916
- } | {
2917
- type: import("./FormConfig").PageType.VERIFICATION;
2918
- id: string;
2919
- title: {
2920
- id: string;
2921
- description: string;
2922
- defaultMessage: string;
1400
+ actions: {
1401
+ verify: {
1402
+ label: {
1403
+ id: string;
1404
+ description: string;
1405
+ defaultMessage: string;
1406
+ };
2923
1407
  };
2924
- actions: {
2925
- verify: {
2926
- label: {
1408
+ cancel: {
1409
+ label: {
1410
+ id: string;
1411
+ description: string;
1412
+ defaultMessage: string;
1413
+ };
1414
+ confirmation: {
1415
+ title: {
2927
1416
  id: string;
2928
1417
  description: string;
2929
1418
  defaultMessage: string;
2930
1419
  };
2931
- };
2932
- cancel: {
2933
- label: {
1420
+ body: {
2934
1421
  id: string;
2935
1422
  description: string;
2936
1423
  defaultMessage: string;
2937
1424
  };
2938
- confirmation: {
2939
- title: {
2940
- id: string;
2941
- description: string;
2942
- defaultMessage: string;
2943
- };
2944
- body: {
2945
- id: string;
2946
- description: string;
2947
- defaultMessage: string;
2948
- };
2949
- };
2950
1425
  };
2951
1426
  };
2952
- fields: import("./FieldConfig").Inferred[];
2953
- })[];
2954
- review: {
2955
- title: {
2956
- id: string;
2957
- description: string;
2958
- defaultMessage: string;
2959
- };
2960
- fields: import("./FieldConfig").Inferred[];
2961
1427
  };
2962
- active?: boolean | undefined;
2963
- }>, "many">;
2964
- }, {
2965
- type: z.ZodLiteral<"REQUEST_CORRECTION">;
2966
- onboardingForm: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
2967
- additionalDetailsForm: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
1428
+ fields: import("./FieldConfig").InferredInput[];
1429
+ conditional?: import(".").JSONSchema | undefined;
1430
+ }>)[]>, "many">;
2968
1431
  }>, "strip", z.ZodTypeAny, {
2969
1432
  type: "REQUEST_CORRECTION";
2970
1433
  conditionals: ({
@@ -2975,48 +1438,14 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2975
1438
  conditional: import(".").JSONSchema;
2976
1439
  })[];
2977
1440
  label: TranslationConfig;
2978
- forms: {
2979
- active: boolean;
2980
- version: {
2981
- id: string;
2982
- label: TranslationConfig;
2983
- };
2984
- label: TranslationConfig;
2985
- pages: ({
2986
- type: import("./FormConfig").PageType.FORM;
2987
- id: string;
2988
- title: TranslationConfig;
2989
- fields: import("./FieldConfig").Inferred[];
2990
- } | {
2991
- type: import("./FormConfig").PageType.VERIFICATION;
2992
- id: string;
2993
- title: TranslationConfig;
2994
- actions: {
2995
- verify: {
2996
- label: TranslationConfig;
2997
- };
2998
- cancel: {
2999
- label: TranslationConfig;
3000
- confirmation: {
3001
- title: TranslationConfig;
3002
- body: TranslationConfig;
3003
- };
3004
- };
3005
- };
3006
- fields: import("./FieldConfig").Inferred[];
3007
- })[];
3008
- review: {
3009
- title: TranslationConfig;
3010
- fields: import("./FieldConfig").Inferred[];
3011
- };
3012
- }[];
3013
1441
  onboardingForm: ({
3014
- type: import("./FormConfig").PageType.FORM;
1442
+ type: "FORM";
3015
1443
  id: string;
3016
1444
  title: TranslationConfig;
3017
1445
  fields: import("./FieldConfig").Inferred[];
1446
+ conditional?: import(".").JSONSchema | undefined;
3018
1447
  } | {
3019
- type: import("./FormConfig").PageType.VERIFICATION;
1448
+ type: "VERIFICATION";
3020
1449
  id: string;
3021
1450
  title: TranslationConfig;
3022
1451
  actions: {
@@ -3032,14 +1461,16 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
3032
1461
  };
3033
1462
  };
3034
1463
  fields: import("./FieldConfig").Inferred[];
1464
+ conditional?: import(".").JSONSchema | undefined;
3035
1465
  })[];
3036
1466
  additionalDetailsForm: ({
3037
- type: import("./FormConfig").PageType.FORM;
1467
+ type: "FORM";
3038
1468
  id: string;
3039
1469
  title: TranslationConfig;
3040
1470
  fields: import("./FieldConfig").Inferred[];
1471
+ conditional?: import(".").JSONSchema | undefined;
3041
1472
  } | {
3042
- type: import("./FormConfig").PageType.VERIFICATION;
1473
+ type: "VERIFICATION";
3043
1474
  id: string;
3044
1475
  title: TranslationConfig;
3045
1476
  actions: {
@@ -3055,6 +1486,7 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
3055
1486
  };
3056
1487
  };
3057
1488
  fields: import("./FieldConfig").Inferred[];
1489
+ conditional?: import(".").JSONSchema | undefined;
3058
1490
  })[];
3059
1491
  draft?: boolean | undefined;
3060
1492
  }, {
@@ -3064,77 +1496,6 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
3064
1496
  description: string;
3065
1497
  defaultMessage: string;
3066
1498
  };
3067
- forms: {
3068
- version: {
3069
- id: string;
3070
- label: {
3071
- id: string;
3072
- description: string;
3073
- defaultMessage: string;
3074
- };
3075
- };
3076
- label: {
3077
- id: string;
3078
- description: string;
3079
- defaultMessage: string;
3080
- };
3081
- pages: ({
3082
- id: string;
3083
- title: {
3084
- id: string;
3085
- description: string;
3086
- defaultMessage: string;
3087
- };
3088
- fields: import("./FieldConfig").Inferred[];
3089
- type?: import("./FormConfig").PageType.FORM | undefined;
3090
- } | {
3091
- type: import("./FormConfig").PageType.VERIFICATION;
3092
- id: string;
3093
- title: {
3094
- id: string;
3095
- description: string;
3096
- defaultMessage: string;
3097
- };
3098
- actions: {
3099
- verify: {
3100
- label: {
3101
- id: string;
3102
- description: string;
3103
- defaultMessage: string;
3104
- };
3105
- };
3106
- cancel: {
3107
- label: {
3108
- id: string;
3109
- description: string;
3110
- defaultMessage: string;
3111
- };
3112
- confirmation: {
3113
- title: {
3114
- id: string;
3115
- description: string;
3116
- defaultMessage: string;
3117
- };
3118
- body: {
3119
- id: string;
3120
- description: string;
3121
- defaultMessage: string;
3122
- };
3123
- };
3124
- };
3125
- };
3126
- fields: import("./FieldConfig").Inferred[];
3127
- })[];
3128
- review: {
3129
- title: {
3130
- id: string;
3131
- description: string;
3132
- defaultMessage: string;
3133
- };
3134
- fields: import("./FieldConfig").Inferred[];
3135
- };
3136
- active?: boolean | undefined;
3137
- }[];
3138
1499
  onboardingForm: ({
3139
1500
  id: string;
3140
1501
  title: {
@@ -3142,10 +1503,11 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
3142
1503
  description: string;
3143
1504
  defaultMessage: string;
3144
1505
  };
3145
- fields: import("./FieldConfig").Inferred[];
3146
- type?: import("./FormConfig").PageType.FORM | undefined;
1506
+ fields: import("./FieldConfig").InferredInput[];
1507
+ type?: "FORM" | undefined;
1508
+ conditional?: import(".").JSONSchema | undefined;
3147
1509
  } | {
3148
- type: import("./FormConfig").PageType.VERIFICATION;
1510
+ type: "VERIFICATION";
3149
1511
  id: string;
3150
1512
  title: {
3151
1513
  id: string;
@@ -3180,7 +1542,8 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
3180
1542
  };
3181
1543
  };
3182
1544
  };
3183
- fields: import("./FieldConfig").Inferred[];
1545
+ fields: import("./FieldConfig").InferredInput[];
1546
+ conditional?: import(".").JSONSchema | undefined;
3184
1547
  })[];
3185
1548
  additionalDetailsForm: ({
3186
1549
  id: string;
@@ -3189,10 +1552,11 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
3189
1552
  description: string;
3190
1553
  defaultMessage: string;
3191
1554
  };
3192
- fields: import("./FieldConfig").Inferred[];
3193
- type?: import("./FormConfig").PageType.FORM | undefined;
1555
+ fields: import("./FieldConfig").InferredInput[];
1556
+ type?: "FORM" | undefined;
1557
+ conditional?: import(".").JSONSchema | undefined;
3194
1558
  } | {
3195
- type: import("./FormConfig").PageType.VERIFICATION;
1559
+ type: "VERIFICATION";
3196
1560
  id: string;
3197
1561
  title: {
3198
1562
  id: string;
@@ -3227,8 +1591,119 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
3227
1591
  };
3228
1592
  };
3229
1593
  };
3230
- fields: import("./FieldConfig").Inferred[];
1594
+ fields: import("./FieldConfig").InferredInput[];
1595
+ conditional?: import(".").JSONSchema | undefined;
1596
+ })[];
1597
+ draft?: boolean | undefined;
1598
+ conditionals?: ({
1599
+ type: "SHOW";
1600
+ conditional: import(".").JSONSchema;
1601
+ } | {
1602
+ type: "ENABLE";
1603
+ conditional: import(".").JSONSchema;
1604
+ })[] | undefined;
1605
+ }>;
1606
+ declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
1607
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1608
+ id: string;
1609
+ description: string;
1610
+ defaultMessage: string;
1611
+ }>;
1612
+ conditionals: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1613
+ type: z.ZodLiteral<"SHOW">;
1614
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1615
+ }, "strip", z.ZodTypeAny, {
1616
+ type: "SHOW";
1617
+ conditional: import(".").JSONSchema;
1618
+ }, {
1619
+ type: "SHOW";
1620
+ conditional: import(".").JSONSchema;
1621
+ }>, z.ZodObject<{
1622
+ type: z.ZodLiteral<"ENABLE">;
1623
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1624
+ }, "strip", z.ZodTypeAny, {
1625
+ type: "ENABLE";
1626
+ conditional: import(".").JSONSchema;
1627
+ }, {
1628
+ type: "ENABLE";
1629
+ conditional: import(".").JSONSchema;
1630
+ }>]>, "many">>>;
1631
+ draft: z.ZodOptional<z.ZodBoolean>;
1632
+ }, {
1633
+ type: z.ZodLiteral<"REJECT_CORRECTION">;
1634
+ }>, "strip", z.ZodTypeAny, {
1635
+ type: "REJECT_CORRECTION";
1636
+ conditionals: ({
1637
+ type: "SHOW";
1638
+ conditional: import(".").JSONSchema;
1639
+ } | {
1640
+ type: "ENABLE";
1641
+ conditional: import(".").JSONSchema;
1642
+ })[];
1643
+ label: TranslationConfig;
1644
+ draft?: boolean | undefined;
1645
+ }, {
1646
+ type: "REJECT_CORRECTION";
1647
+ label: {
1648
+ id: string;
1649
+ description: string;
1650
+ defaultMessage: string;
1651
+ };
1652
+ draft?: boolean | undefined;
1653
+ conditionals?: ({
1654
+ type: "SHOW";
1655
+ conditional: import(".").JSONSchema;
1656
+ } | {
1657
+ type: "ENABLE";
1658
+ conditional: import(".").JSONSchema;
1659
+ })[] | undefined;
1660
+ }>;
1661
+ declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
1662
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1663
+ id: string;
1664
+ description: string;
1665
+ defaultMessage: string;
1666
+ }>;
1667
+ conditionals: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1668
+ type: z.ZodLiteral<"SHOW">;
1669
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1670
+ }, "strip", z.ZodTypeAny, {
1671
+ type: "SHOW";
1672
+ conditional: import(".").JSONSchema;
1673
+ }, {
1674
+ type: "SHOW";
1675
+ conditional: import(".").JSONSchema;
1676
+ }>, z.ZodObject<{
1677
+ type: z.ZodLiteral<"ENABLE">;
1678
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1679
+ }, "strip", z.ZodTypeAny, {
1680
+ type: "ENABLE";
1681
+ conditional: import(".").JSONSchema;
1682
+ }, {
1683
+ type: "ENABLE";
1684
+ conditional: import(".").JSONSchema;
1685
+ }>]>, "many">>>;
1686
+ draft: z.ZodOptional<z.ZodBoolean>;
1687
+ }, {
1688
+ type: z.ZodLiteral<"APPROVE_CORRECTION">;
1689
+ }>, "strip", z.ZodTypeAny, {
1690
+ type: "APPROVE_CORRECTION";
1691
+ conditionals: ({
1692
+ type: "SHOW";
1693
+ conditional: import(".").JSONSchema;
1694
+ } | {
1695
+ type: "ENABLE";
1696
+ conditional: import(".").JSONSchema;
3231
1697
  })[];
1698
+ label: TranslationConfig;
1699
+ draft?: boolean | undefined;
1700
+ }, {
1701
+ type: "APPROVE_CORRECTION";
1702
+ label: {
1703
+ id: string;
1704
+ description: string;
1705
+ defaultMessage: string;
1706
+ };
3232
1707
  draft?: boolean | undefined;
3233
1708
  conditionals?: ({
3234
1709
  type: "SHOW";
@@ -3238,7 +1713,13 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
3238
1713
  conditional: import(".").JSONSchema;
3239
1714
  })[] | undefined;
3240
1715
  }>;
3241
- declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
1716
+ /** @knipignore */
1717
+ export type AllActionConfigFields = typeof DeclareConfig | typeof ValidateConfig | typeof RejectDeclarationConfig | typeof MarkedAsDuplicateConfig | typeof ArchiveConfig | typeof RegisterConfig | typeof DeleteConfig | typeof PrintCertificateActionConfig | typeof RequestCorrectionConfig | typeof RejectCorrectionConfig | typeof ApproveCorrectionConfig;
1718
+ /** @knipignore */
1719
+ export type InferredActionConfig = z.infer<typeof DeclareConfig> | z.infer<typeof ValidateConfig> | z.infer<typeof RejectDeclarationConfig> | z.infer<typeof MarkedAsDuplicateConfig> | z.infer<typeof ArchiveConfig> | z.infer<typeof RegisterConfig> | z.infer<typeof DeleteConfig> | z.infer<typeof PrintCertificateActionConfig> | z.infer<typeof RequestCorrectionConfig> | z.infer<typeof RejectCorrectionConfig> | z.infer<typeof ApproveCorrectionConfig>;
1720
+ export declare const ActionConfig: z.ZodDiscriminatedUnion<"type", AllActionConfigFields[]>;
1721
+ export type ActionConfig = InferredActionConfig;
1722
+ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
3242
1723
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3243
1724
  id: string;
3244
1725
  description: string;
@@ -3264,281 +1745,56 @@ declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
3264
1745
  conditional: import(".").JSONSchema;
3265
1746
  }>]>, "many">>>;
3266
1747
  draft: z.ZodOptional<z.ZodBoolean>;
3267
- forms: z.ZodArray<z.ZodObject<{
3268
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1748
+ }, {
1749
+ type: z.ZodLiteral<"DECLARE">;
1750
+ review: z.ZodObject<{
1751
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3269
1752
  id: string;
3270
1753
  description: string;
3271
1754
  defaultMessage: string;
3272
1755
  }>;
3273
- version: z.ZodObject<{
3274
- id: z.ZodString;
3275
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3276
- id: string;
3277
- description: string;
3278
- defaultMessage: string;
3279
- }>;
3280
- }, "strip", z.ZodTypeAny, {
3281
- id: string;
3282
- label: TranslationConfig;
3283
- }, {
3284
- id: string;
3285
- label: {
3286
- id: string;
3287
- description: string;
3288
- defaultMessage: string;
3289
- };
3290
- }>;
3291
- active: z.ZodDefault<z.ZodBoolean>;
3292
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
3293
- review: z.ZodObject<{
3294
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3295
- id: string;
3296
- description: string;
3297
- defaultMessage: string;
3298
- }>;
3299
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
3300
- }, "strip", z.ZodTypeAny, {
3301
- title: TranslationConfig;
3302
- fields: import("./FieldConfig").Inferred[];
3303
- }, {
3304
- title: {
3305
- id: string;
3306
- description: string;
3307
- defaultMessage: string;
3308
- };
3309
- fields: import("./FieldConfig").Inferred[];
3310
- }>;
1756
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
3311
1757
  }, "strip", z.ZodTypeAny, {
3312
- active: boolean;
3313
- version: {
3314
- id: string;
3315
- label: TranslationConfig;
3316
- };
3317
- label: TranslationConfig;
3318
- pages: ({
3319
- type: import("./FormConfig").PageType.FORM;
3320
- id: string;
3321
- title: TranslationConfig;
3322
- fields: import("./FieldConfig").Inferred[];
3323
- } | {
3324
- type: import("./FormConfig").PageType.VERIFICATION;
3325
- id: string;
3326
- title: TranslationConfig;
3327
- actions: {
3328
- verify: {
3329
- label: TranslationConfig;
3330
- };
3331
- cancel: {
3332
- label: TranslationConfig;
3333
- confirmation: {
3334
- title: TranslationConfig;
3335
- body: TranslationConfig;
3336
- };
3337
- };
3338
- };
3339
- fields: import("./FieldConfig").Inferred[];
3340
- })[];
3341
- review: {
3342
- title: TranslationConfig;
3343
- fields: import("./FieldConfig").Inferred[];
3344
- };
1758
+ title: TranslationConfig;
1759
+ fields: import("./FieldConfig").Inferred[];
3345
1760
  }, {
3346
- version: {
3347
- id: string;
3348
- label: {
3349
- id: string;
3350
- description: string;
3351
- defaultMessage: string;
3352
- };
3353
- };
3354
- label: {
1761
+ title: {
3355
1762
  id: string;
3356
1763
  description: string;
3357
1764
  defaultMessage: string;
3358
1765
  };
3359
- pages: ({
3360
- id: string;
3361
- title: {
3362
- id: string;
3363
- description: string;
3364
- defaultMessage: string;
3365
- };
3366
- fields: import("./FieldConfig").Inferred[];
3367
- type?: import("./FormConfig").PageType.FORM | undefined;
3368
- } | {
3369
- type: import("./FormConfig").PageType.VERIFICATION;
3370
- id: string;
3371
- title: {
3372
- id: string;
3373
- description: string;
3374
- defaultMessage: string;
3375
- };
3376
- actions: {
3377
- verify: {
3378
- label: {
3379
- id: string;
3380
- description: string;
3381
- defaultMessage: string;
3382
- };
3383
- };
3384
- cancel: {
3385
- label: {
3386
- id: string;
3387
- description: string;
3388
- defaultMessage: string;
3389
- };
3390
- confirmation: {
3391
- title: {
3392
- id: string;
3393
- description: string;
3394
- defaultMessage: string;
3395
- };
3396
- body: {
3397
- id: string;
3398
- description: string;
3399
- defaultMessage: string;
3400
- };
3401
- };
3402
- };
3403
- };
3404
- fields: import("./FieldConfig").Inferred[];
3405
- })[];
3406
- review: {
3407
- title: {
3408
- id: string;
3409
- description: string;
3410
- defaultMessage: string;
3411
- };
3412
- fields: import("./FieldConfig").Inferred[];
3413
- };
3414
- active?: boolean | undefined;
3415
- }>, "many">;
3416
- }, {
3417
- type: z.ZodLiteral<"REJECT_CORRECTION">;
1766
+ fields: import("./FieldConfig").InferredInput[];
1767
+ }>;
3418
1768
  }>, "strip", z.ZodTypeAny, {
3419
- type: "REJECT_CORRECTION";
1769
+ type: "DECLARE";
3420
1770
  conditionals: ({
3421
1771
  type: "SHOW";
3422
1772
  conditional: import(".").JSONSchema;
3423
1773
  } | {
3424
1774
  type: "ENABLE";
3425
- conditional: import(".").JSONSchema;
3426
- })[];
3427
- label: TranslationConfig;
3428
- forms: {
3429
- active: boolean;
3430
- version: {
3431
- id: string;
3432
- label: TranslationConfig;
3433
- };
3434
- label: TranslationConfig;
3435
- pages: ({
3436
- type: import("./FormConfig").PageType.FORM;
3437
- id: string;
3438
- title: TranslationConfig;
3439
- fields: import("./FieldConfig").Inferred[];
3440
- } | {
3441
- type: import("./FormConfig").PageType.VERIFICATION;
3442
- id: string;
3443
- title: TranslationConfig;
3444
- actions: {
3445
- verify: {
3446
- label: TranslationConfig;
3447
- };
3448
- cancel: {
3449
- label: TranslationConfig;
3450
- confirmation: {
3451
- title: TranslationConfig;
3452
- body: TranslationConfig;
3453
- };
3454
- };
3455
- };
3456
- fields: import("./FieldConfig").Inferred[];
3457
- })[];
3458
- review: {
3459
- title: TranslationConfig;
3460
- fields: import("./FieldConfig").Inferred[];
3461
- };
3462
- }[];
3463
- draft?: boolean | undefined;
3464
- }, {
3465
- type: "REJECT_CORRECTION";
3466
- label: {
3467
- id: string;
3468
- description: string;
3469
- defaultMessage: string;
3470
- };
3471
- forms: {
3472
- version: {
3473
- id: string;
3474
- label: {
3475
- id: string;
3476
- description: string;
3477
- defaultMessage: string;
3478
- };
3479
- };
3480
- label: {
3481
- id: string;
3482
- description: string;
3483
- defaultMessage: string;
3484
- };
3485
- pages: ({
3486
- id: string;
3487
- title: {
3488
- id: string;
3489
- description: string;
3490
- defaultMessage: string;
3491
- };
3492
- fields: import("./FieldConfig").Inferred[];
3493
- type?: import("./FormConfig").PageType.FORM | undefined;
3494
- } | {
3495
- type: import("./FormConfig").PageType.VERIFICATION;
3496
- id: string;
3497
- title: {
3498
- id: string;
3499
- description: string;
3500
- defaultMessage: string;
3501
- };
3502
- actions: {
3503
- verify: {
3504
- label: {
3505
- id: string;
3506
- description: string;
3507
- defaultMessage: string;
3508
- };
3509
- };
3510
- cancel: {
3511
- label: {
3512
- id: string;
3513
- description: string;
3514
- defaultMessage: string;
3515
- };
3516
- confirmation: {
3517
- title: {
3518
- id: string;
3519
- description: string;
3520
- defaultMessage: string;
3521
- };
3522
- body: {
3523
- id: string;
3524
- description: string;
3525
- defaultMessage: string;
3526
- };
3527
- };
3528
- };
3529
- };
3530
- fields: import("./FieldConfig").Inferred[];
3531
- })[];
3532
- review: {
3533
- title: {
3534
- id: string;
3535
- description: string;
3536
- defaultMessage: string;
3537
- };
3538
- fields: import("./FieldConfig").Inferred[];
1775
+ conditional: import(".").JSONSchema;
1776
+ })[];
1777
+ label: TranslationConfig;
1778
+ review: {
1779
+ title: TranslationConfig;
1780
+ fields: import("./FieldConfig").Inferred[];
1781
+ };
1782
+ draft?: boolean | undefined;
1783
+ }, {
1784
+ type: "DECLARE";
1785
+ label: {
1786
+ id: string;
1787
+ description: string;
1788
+ defaultMessage: string;
1789
+ };
1790
+ review: {
1791
+ title: {
1792
+ id: string;
1793
+ description: string;
1794
+ defaultMessage: string;
3539
1795
  };
3540
- active?: boolean | undefined;
3541
- }[];
1796
+ fields: import("./FieldConfig").InferredInput[];
1797
+ };
3542
1798
  draft?: boolean | undefined;
3543
1799
  conditionals?: ({
3544
1800
  type: "SHOW";
@@ -3547,8 +1803,7 @@ declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
3547
1803
  type: "ENABLE";
3548
1804
  conditional: import(".").JSONSchema;
3549
1805
  })[] | undefined;
3550
- }>;
3551
- declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
1806
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3552
1807
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3553
1808
  id: string;
3554
1809
  description: string;
@@ -3574,281 +1829,56 @@ declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
3574
1829
  conditional: import(".").JSONSchema;
3575
1830
  }>]>, "many">>>;
3576
1831
  draft: z.ZodOptional<z.ZodBoolean>;
3577
- forms: z.ZodArray<z.ZodObject<{
3578
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1832
+ }, {
1833
+ type: z.ZodLiteral<"VALIDATE">;
1834
+ review: z.ZodObject<{
1835
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3579
1836
  id: string;
3580
1837
  description: string;
3581
1838
  defaultMessage: string;
3582
1839
  }>;
3583
- version: z.ZodObject<{
3584
- id: z.ZodString;
3585
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3586
- id: string;
3587
- description: string;
3588
- defaultMessage: string;
3589
- }>;
3590
- }, "strip", z.ZodTypeAny, {
3591
- id: string;
3592
- label: TranslationConfig;
3593
- }, {
3594
- id: string;
3595
- label: {
3596
- id: string;
3597
- description: string;
3598
- defaultMessage: string;
3599
- };
3600
- }>;
3601
- active: z.ZodDefault<z.ZodBoolean>;
3602
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
3603
- review: z.ZodObject<{
3604
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3605
- id: string;
3606
- description: string;
3607
- defaultMessage: string;
3608
- }>;
3609
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
3610
- }, "strip", z.ZodTypeAny, {
3611
- title: TranslationConfig;
3612
- fields: import("./FieldConfig").Inferred[];
3613
- }, {
3614
- title: {
3615
- id: string;
3616
- description: string;
3617
- defaultMessage: string;
3618
- };
3619
- fields: import("./FieldConfig").Inferred[];
3620
- }>;
1840
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
3621
1841
  }, "strip", z.ZodTypeAny, {
3622
- active: boolean;
3623
- version: {
3624
- id: string;
3625
- label: TranslationConfig;
3626
- };
3627
- label: TranslationConfig;
3628
- pages: ({
3629
- type: import("./FormConfig").PageType.FORM;
3630
- id: string;
3631
- title: TranslationConfig;
3632
- fields: import("./FieldConfig").Inferred[];
3633
- } | {
3634
- type: import("./FormConfig").PageType.VERIFICATION;
3635
- id: string;
3636
- title: TranslationConfig;
3637
- actions: {
3638
- verify: {
3639
- label: TranslationConfig;
3640
- };
3641
- cancel: {
3642
- label: TranslationConfig;
3643
- confirmation: {
3644
- title: TranslationConfig;
3645
- body: TranslationConfig;
3646
- };
3647
- };
3648
- };
3649
- fields: import("./FieldConfig").Inferred[];
3650
- })[];
3651
- review: {
3652
- title: TranslationConfig;
3653
- fields: import("./FieldConfig").Inferred[];
3654
- };
3655
- }, {
3656
- version: {
3657
- id: string;
3658
- label: {
3659
- id: string;
3660
- description: string;
3661
- defaultMessage: string;
3662
- };
3663
- };
3664
- label: {
3665
- id: string;
3666
- description: string;
3667
- defaultMessage: string;
3668
- };
3669
- pages: ({
3670
- id: string;
3671
- title: {
3672
- id: string;
3673
- description: string;
3674
- defaultMessage: string;
3675
- };
3676
- fields: import("./FieldConfig").Inferred[];
3677
- type?: import("./FormConfig").PageType.FORM | undefined;
3678
- } | {
3679
- type: import("./FormConfig").PageType.VERIFICATION;
3680
- id: string;
3681
- title: {
3682
- id: string;
3683
- description: string;
3684
- defaultMessage: string;
3685
- };
3686
- actions: {
3687
- verify: {
3688
- label: {
3689
- id: string;
3690
- description: string;
3691
- defaultMessage: string;
3692
- };
3693
- };
3694
- cancel: {
3695
- label: {
3696
- id: string;
3697
- description: string;
3698
- defaultMessage: string;
3699
- };
3700
- confirmation: {
3701
- title: {
3702
- id: string;
3703
- description: string;
3704
- defaultMessage: string;
3705
- };
3706
- body: {
3707
- id: string;
3708
- description: string;
3709
- defaultMessage: string;
3710
- };
3711
- };
3712
- };
3713
- };
3714
- fields: import("./FieldConfig").Inferred[];
3715
- })[];
3716
- review: {
3717
- title: {
3718
- id: string;
3719
- description: string;
3720
- defaultMessage: string;
3721
- };
3722
- fields: import("./FieldConfig").Inferred[];
3723
- };
3724
- active?: boolean | undefined;
3725
- }>, "many">;
3726
- }, {
3727
- type: z.ZodLiteral<"APPROVE_CORRECTION">;
3728
- }>, "strip", z.ZodTypeAny, {
3729
- type: "APPROVE_CORRECTION";
3730
- conditionals: ({
3731
- type: "SHOW";
3732
- conditional: import(".").JSONSchema;
3733
- } | {
3734
- type: "ENABLE";
3735
- conditional: import(".").JSONSchema;
3736
- })[];
3737
- label: TranslationConfig;
3738
- forms: {
3739
- active: boolean;
3740
- version: {
3741
- id: string;
3742
- label: TranslationConfig;
3743
- };
3744
- label: TranslationConfig;
3745
- pages: ({
3746
- type: import("./FormConfig").PageType.FORM;
3747
- id: string;
3748
- title: TranslationConfig;
3749
- fields: import("./FieldConfig").Inferred[];
3750
- } | {
3751
- type: import("./FormConfig").PageType.VERIFICATION;
3752
- id: string;
3753
- title: TranslationConfig;
3754
- actions: {
3755
- verify: {
3756
- label: TranslationConfig;
3757
- };
3758
- cancel: {
3759
- label: TranslationConfig;
3760
- confirmation: {
3761
- title: TranslationConfig;
3762
- body: TranslationConfig;
3763
- };
3764
- };
3765
- };
3766
- fields: import("./FieldConfig").Inferred[];
3767
- })[];
3768
- review: {
3769
- title: TranslationConfig;
3770
- fields: import("./FieldConfig").Inferred[];
3771
- };
3772
- }[];
3773
- draft?: boolean | undefined;
3774
- }, {
3775
- type: "APPROVE_CORRECTION";
3776
- label: {
3777
- id: string;
3778
- description: string;
3779
- defaultMessage: string;
3780
- };
3781
- forms: {
3782
- version: {
3783
- id: string;
3784
- label: {
3785
- id: string;
3786
- description: string;
3787
- defaultMessage: string;
3788
- };
3789
- };
3790
- label: {
3791
- id: string;
3792
- description: string;
3793
- defaultMessage: string;
3794
- };
3795
- pages: ({
3796
- id: string;
3797
- title: {
3798
- id: string;
3799
- description: string;
3800
- defaultMessage: string;
3801
- };
3802
- fields: import("./FieldConfig").Inferred[];
3803
- type?: import("./FormConfig").PageType.FORM | undefined;
3804
- } | {
3805
- type: import("./FormConfig").PageType.VERIFICATION;
3806
- id: string;
3807
- title: {
3808
- id: string;
3809
- description: string;
3810
- defaultMessage: string;
3811
- };
3812
- actions: {
3813
- verify: {
3814
- label: {
3815
- id: string;
3816
- description: string;
3817
- defaultMessage: string;
3818
- };
3819
- };
3820
- cancel: {
3821
- label: {
3822
- id: string;
3823
- description: string;
3824
- defaultMessage: string;
3825
- };
3826
- confirmation: {
3827
- title: {
3828
- id: string;
3829
- description: string;
3830
- defaultMessage: string;
3831
- };
3832
- body: {
3833
- id: string;
3834
- description: string;
3835
- defaultMessage: string;
3836
- };
3837
- };
3838
- };
3839
- };
3840
- fields: import("./FieldConfig").Inferred[];
3841
- })[];
3842
- review: {
3843
- title: {
3844
- id: string;
3845
- description: string;
3846
- defaultMessage: string;
3847
- };
3848
- fields: import("./FieldConfig").Inferred[];
1842
+ title: TranslationConfig;
1843
+ fields: import("./FieldConfig").Inferred[];
1844
+ }, {
1845
+ title: {
1846
+ id: string;
1847
+ description: string;
1848
+ defaultMessage: string;
1849
+ };
1850
+ fields: import("./FieldConfig").InferredInput[];
1851
+ }>;
1852
+ }>, "strip", z.ZodTypeAny, {
1853
+ type: "VALIDATE";
1854
+ conditionals: ({
1855
+ type: "SHOW";
1856
+ conditional: import(".").JSONSchema;
1857
+ } | {
1858
+ type: "ENABLE";
1859
+ conditional: import(".").JSONSchema;
1860
+ })[];
1861
+ label: TranslationConfig;
1862
+ review: {
1863
+ title: TranslationConfig;
1864
+ fields: import("./FieldConfig").Inferred[];
1865
+ };
1866
+ draft?: boolean | undefined;
1867
+ }, {
1868
+ type: "VALIDATE";
1869
+ label: {
1870
+ id: string;
1871
+ description: string;
1872
+ defaultMessage: string;
1873
+ };
1874
+ review: {
1875
+ title: {
1876
+ id: string;
1877
+ description: string;
1878
+ defaultMessage: string;
3849
1879
  };
3850
- active?: boolean | undefined;
3851
- }[];
1880
+ fields: import("./FieldConfig").InferredInput[];
1881
+ };
3852
1882
  draft?: boolean | undefined;
3853
1883
  conditionals?: ({
3854
1884
  type: "SHOW";
@@ -3857,8 +1887,7 @@ declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
3857
1887
  type: "ENABLE";
3858
1888
  conditional: import(".").JSONSchema;
3859
1889
  })[] | undefined;
3860
- }>;
3861
- declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
1890
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3862
1891
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3863
1892
  id: string;
3864
1893
  description: string;
@@ -3884,159 +1913,28 @@ declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
3884
1913
  conditional: import(".").JSONSchema;
3885
1914
  }>]>, "many">>>;
3886
1915
  draft: z.ZodOptional<z.ZodBoolean>;
3887
- forms: z.ZodArray<z.ZodObject<{
3888
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1916
+ }, {
1917
+ type: z.ZodLiteral<"REGISTER">;
1918
+ review: z.ZodObject<{
1919
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3889
1920
  id: string;
3890
1921
  description: string;
3891
1922
  defaultMessage: string;
3892
1923
  }>;
3893
- version: z.ZodObject<{
3894
- id: z.ZodString;
3895
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3896
- id: string;
3897
- description: string;
3898
- defaultMessage: string;
3899
- }>;
3900
- }, "strip", z.ZodTypeAny, {
3901
- id: string;
3902
- label: TranslationConfig;
3903
- }, {
3904
- id: string;
3905
- label: {
3906
- id: string;
3907
- description: string;
3908
- defaultMessage: string;
3909
- };
3910
- }>;
3911
- active: z.ZodDefault<z.ZodBoolean>;
3912
- pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
3913
- review: z.ZodObject<{
3914
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
3915
- id: string;
3916
- description: string;
3917
- defaultMessage: string;
3918
- }>;
3919
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
3920
- }, "strip", z.ZodTypeAny, {
3921
- title: TranslationConfig;
3922
- fields: import("./FieldConfig").Inferred[];
3923
- }, {
3924
- title: {
3925
- id: string;
3926
- description: string;
3927
- defaultMessage: string;
3928
- };
3929
- fields: import("./FieldConfig").Inferred[];
3930
- }>;
1924
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
3931
1925
  }, "strip", z.ZodTypeAny, {
3932
- active: boolean;
3933
- version: {
3934
- id: string;
3935
- label: TranslationConfig;
3936
- };
3937
- label: TranslationConfig;
3938
- pages: ({
3939
- type: import("./FormConfig").PageType.FORM;
3940
- id: string;
3941
- title: TranslationConfig;
3942
- fields: import("./FieldConfig").Inferred[];
3943
- } | {
3944
- type: import("./FormConfig").PageType.VERIFICATION;
3945
- id: string;
3946
- title: TranslationConfig;
3947
- actions: {
3948
- verify: {
3949
- label: TranslationConfig;
3950
- };
3951
- cancel: {
3952
- label: TranslationConfig;
3953
- confirmation: {
3954
- title: TranslationConfig;
3955
- body: TranslationConfig;
3956
- };
3957
- };
3958
- };
3959
- fields: import("./FieldConfig").Inferred[];
3960
- })[];
3961
- review: {
3962
- title: TranslationConfig;
3963
- fields: import("./FieldConfig").Inferred[];
3964
- };
1926
+ title: TranslationConfig;
1927
+ fields: import("./FieldConfig").Inferred[];
3965
1928
  }, {
3966
- version: {
3967
- id: string;
3968
- label: {
3969
- id: string;
3970
- description: string;
3971
- defaultMessage: string;
3972
- };
3973
- };
3974
- label: {
1929
+ title: {
3975
1930
  id: string;
3976
1931
  description: string;
3977
1932
  defaultMessage: string;
3978
1933
  };
3979
- pages: ({
3980
- id: string;
3981
- title: {
3982
- id: string;
3983
- description: string;
3984
- defaultMessage: string;
3985
- };
3986
- fields: import("./FieldConfig").Inferred[];
3987
- type?: import("./FormConfig").PageType.FORM | undefined;
3988
- } | {
3989
- type: import("./FormConfig").PageType.VERIFICATION;
3990
- id: string;
3991
- title: {
3992
- id: string;
3993
- description: string;
3994
- defaultMessage: string;
3995
- };
3996
- actions: {
3997
- verify: {
3998
- label: {
3999
- id: string;
4000
- description: string;
4001
- defaultMessage: string;
4002
- };
4003
- };
4004
- cancel: {
4005
- label: {
4006
- id: string;
4007
- description: string;
4008
- defaultMessage: string;
4009
- };
4010
- confirmation: {
4011
- title: {
4012
- id: string;
4013
- description: string;
4014
- defaultMessage: string;
4015
- };
4016
- body: {
4017
- id: string;
4018
- description: string;
4019
- defaultMessage: string;
4020
- };
4021
- };
4022
- };
4023
- };
4024
- fields: import("./FieldConfig").Inferred[];
4025
- })[];
4026
- review: {
4027
- title: {
4028
- id: string;
4029
- description: string;
4030
- defaultMessage: string;
4031
- };
4032
- fields: import("./FieldConfig").Inferred[];
4033
- };
4034
- active?: boolean | undefined;
4035
- }>, "many">;
4036
- }, {
4037
- type: z.ZodLiteral<"CUSTOM">;
1934
+ fields: import("./FieldConfig").InferredInput[];
1935
+ }>;
4038
1936
  }>, "strip", z.ZodTypeAny, {
4039
- type: "CUSTOM";
1937
+ type: "REGISTER";
4040
1938
  conditionals: ({
4041
1939
  type: "SHOW";
4042
1940
  conditional: import(".").JSONSchema;
@@ -4045,120 +1943,26 @@ declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
4045
1943
  conditional: import(".").JSONSchema;
4046
1944
  })[];
4047
1945
  label: TranslationConfig;
4048
- forms: {
4049
- active: boolean;
4050
- version: {
4051
- id: string;
4052
- label: TranslationConfig;
4053
- };
4054
- label: TranslationConfig;
4055
- pages: ({
4056
- type: import("./FormConfig").PageType.FORM;
4057
- id: string;
4058
- title: TranslationConfig;
4059
- fields: import("./FieldConfig").Inferred[];
4060
- } | {
4061
- type: import("./FormConfig").PageType.VERIFICATION;
4062
- id: string;
4063
- title: TranslationConfig;
4064
- actions: {
4065
- verify: {
4066
- label: TranslationConfig;
4067
- };
4068
- cancel: {
4069
- label: TranslationConfig;
4070
- confirmation: {
4071
- title: TranslationConfig;
4072
- body: TranslationConfig;
4073
- };
4074
- };
4075
- };
4076
- fields: import("./FieldConfig").Inferred[];
4077
- })[];
4078
- review: {
4079
- title: TranslationConfig;
4080
- fields: import("./FieldConfig").Inferred[];
4081
- };
4082
- }[];
1946
+ review: {
1947
+ title: TranslationConfig;
1948
+ fields: import("./FieldConfig").Inferred[];
1949
+ };
4083
1950
  draft?: boolean | undefined;
4084
1951
  }, {
4085
- type: "CUSTOM";
1952
+ type: "REGISTER";
4086
1953
  label: {
4087
1954
  id: string;
4088
1955
  description: string;
4089
1956
  defaultMessage: string;
4090
1957
  };
4091
- forms: {
4092
- version: {
4093
- id: string;
4094
- label: {
4095
- id: string;
4096
- description: string;
4097
- defaultMessage: string;
4098
- };
4099
- };
4100
- label: {
1958
+ review: {
1959
+ title: {
4101
1960
  id: string;
4102
1961
  description: string;
4103
1962
  defaultMessage: string;
4104
1963
  };
4105
- pages: ({
4106
- id: string;
4107
- title: {
4108
- id: string;
4109
- description: string;
4110
- defaultMessage: string;
4111
- };
4112
- fields: import("./FieldConfig").Inferred[];
4113
- type?: import("./FormConfig").PageType.FORM | undefined;
4114
- } | {
4115
- type: import("./FormConfig").PageType.VERIFICATION;
4116
- id: string;
4117
- title: {
4118
- id: string;
4119
- description: string;
4120
- defaultMessage: string;
4121
- };
4122
- actions: {
4123
- verify: {
4124
- label: {
4125
- id: string;
4126
- description: string;
4127
- defaultMessage: string;
4128
- };
4129
- };
4130
- cancel: {
4131
- label: {
4132
- id: string;
4133
- description: string;
4134
- defaultMessage: string;
4135
- };
4136
- confirmation: {
4137
- title: {
4138
- id: string;
4139
- description: string;
4140
- defaultMessage: string;
4141
- };
4142
- body: {
4143
- id: string;
4144
- description: string;
4145
- defaultMessage: string;
4146
- };
4147
- };
4148
- };
4149
- };
4150
- fields: import("./FieldConfig").Inferred[];
4151
- })[];
4152
- review: {
4153
- title: {
4154
- id: string;
4155
- description: string;
4156
- defaultMessage: string;
4157
- };
4158
- fields: import("./FieldConfig").Inferred[];
4159
- };
4160
- active?: boolean | undefined;
4161
- }[];
1964
+ fields: import("./FieldConfig").InferredInput[];
1965
+ };
4162
1966
  draft?: boolean | undefined;
4163
1967
  conditionals?: ({
4164
1968
  type: "SHOW";
@@ -4167,12 +1971,7 @@ declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
4167
1971
  type: "ENABLE";
4168
1972
  conditional: import(".").JSONSchema;
4169
1973
  })[] | undefined;
4170
- }>;
4171
- /** @knipignore */
4172
- export type AllActionConfigFields = typeof DeclareConfig | typeof ValidateConfig | typeof RejectDeclarationConfig | typeof MarkedAsDuplicateConfig | typeof ArchiveConfig | typeof RegisterConfig | typeof DeleteConfig | typeof PrintCertificateActionConfig | typeof RequestCorrectionConfig | typeof RejectCorrectionConfig | typeof ApproveCorrectionConfig | typeof CustomConfig;
4173
- /** @knipignore */
4174
- export type InferredActionConfig = z.infer<typeof DeclareConfig> | z.infer<typeof ValidateConfig> | z.infer<typeof RejectDeclarationConfig> | z.infer<typeof MarkedAsDuplicateConfig> | z.infer<typeof ArchiveConfig> | z.infer<typeof RegisterConfig> | z.infer<typeof DeleteConfig> | z.infer<typeof PrintCertificateActionConfig> | z.infer<typeof RequestCorrectionConfig> | z.infer<typeof RejectCorrectionConfig> | z.infer<typeof ApproveCorrectionConfig> | z.infer<typeof CustomConfig>;
4175
- export declare const ActionConfig: z.ZodDiscriminatedUnion<"type", AllActionConfigFields[]>;
4176
- export type ActionConfig = InferredActionConfig;
1974
+ }>]>;
1975
+ export type DeclarationActionConfig = z.infer<typeof DeclarationActionConfig>;
4177
1976
  export {};
4178
1977
  //# sourceMappingURL=ActionConfig.d.ts.map