@opencrvs/toolkit 1.8.0-rc.fca3e39 → 1.8.0-rc.fcf46fc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +6922 -14585
  3. package/dist/commons/conditionals/conditionals.d.ts +25 -3
  4. package/dist/commons/conditionals/validate.d.ts +14 -17
  5. package/dist/commons/events/ActionConfig.d.ts +1123 -2056
  6. package/dist/commons/events/ActionDocument.d.ts +7447 -347
  7. package/dist/commons/events/ActionInput.d.ts +2259 -522
  8. package/dist/commons/events/ActionType.d.ts +26 -16
  9. package/dist/commons/events/Conditional.d.ts +21 -5
  10. package/dist/commons/events/Draft.d.ts +67 -52
  11. package/dist/commons/events/EventConfig.d.ts +551 -1206
  12. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  13. package/dist/commons/events/EventDocument.d.ts +850 -454
  14. package/dist/commons/events/EventIndex.d.ts +6 -3
  15. package/dist/commons/events/EventMetadata.d.ts +3 -0
  16. package/dist/commons/events/FieldConfig.d.ts +465 -73
  17. package/dist/commons/events/FieldType.d.ts +2 -1
  18. package/dist/commons/events/FieldTypeMapping.d.ts +23 -2
  19. package/dist/commons/events/FieldValue.d.ts +6 -4
  20. package/dist/commons/events/FormConfig.d.ts +633 -48
  21. package/dist/commons/events/PageConfig.d.ts +335 -0
  22. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  23. package/dist/commons/events/defineConfig.d.ts +91 -216
  24. package/dist/commons/events/index.d.ts +2 -1
  25. package/dist/commons/events/test.utils.d.ts +70 -287
  26. package/dist/commons/events/utils.d.ts +89 -83
  27. package/dist/commons/events/utils.test.d.ts +2 -0
  28. package/dist/conditionals/index.js +161 -93
  29. package/dist/events/index.js +1264 -781
  30. 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,119 +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.ZodObject<{
55
- id: z.ZodString;
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
- id: string;
64
- title: TranslationConfig;
65
- fields: import("./FieldConfig").Inferred[];
66
- }, {
67
- id: string;
68
- title: {
69
- id: string;
70
- description: string;
71
- defaultMessage: string;
72
- };
73
- fields: import("./FieldConfig").Inferred[];
74
- }>, "many">;
75
- review: z.ZodObject<{
76
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
77
- id: string;
78
- description: string;
79
- defaultMessage: string;
80
- }>;
81
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
82
- }, "strip", z.ZodTypeAny, {
83
- title: TranslationConfig;
84
- fields: import("./FieldConfig").Inferred[];
85
- }, {
86
- title: {
87
- id: string;
88
- description: string;
89
- defaultMessage: string;
90
- };
91
- fields: import("./FieldConfig").Inferred[];
92
- }>;
93
- }, "strip", z.ZodTypeAny, {
94
- active: boolean;
95
- version: {
96
- id: string;
97
- label: TranslationConfig;
98
- };
99
- label: TranslationConfig;
100
- pages: {
101
- id: string;
102
- title: TranslationConfig;
103
- fields: import("./FieldConfig").Inferred[];
104
- }[];
105
- review: {
106
- title: TranslationConfig;
107
- fields: import("./FieldConfig").Inferred[];
108
- };
109
- }, {
110
- version: {
111
- id: string;
112
- label: {
113
- id: string;
114
- description: string;
115
- defaultMessage: string;
116
- };
117
- };
118
- label: {
119
- id: string;
120
- description: string;
121
- defaultMessage: string;
122
- };
123
- pages: {
124
- id: string;
125
- title: {
126
- id: string;
127
- description: string;
128
- defaultMessage: string;
129
- };
130
- fields: import("./FieldConfig").Inferred[];
131
- }[];
132
- review: {
133
- title: {
134
- id: string;
135
- description: string;
136
- defaultMessage: string;
137
- };
138
- fields: import("./FieldConfig").Inferred[];
139
- };
140
- active?: boolean | undefined;
141
- }>, "many">;
142
48
  }, "strip", z.ZodTypeAny, {
143
49
  conditionals: ({
144
50
  type: "SHOW";
@@ -148,23 +54,6 @@ export declare const ActionConfigBase: z.ZodObject<{
148
54
  conditional: import(".").JSONSchema;
149
55
  })[];
150
56
  label: TranslationConfig;
151
- forms: {
152
- active: boolean;
153
- version: {
154
- id: string;
155
- label: TranslationConfig;
156
- };
157
- label: TranslationConfig;
158
- pages: {
159
- id: string;
160
- title: TranslationConfig;
161
- fields: import("./FieldConfig").Inferred[];
162
- }[];
163
- review: {
164
- title: TranslationConfig;
165
- fields: import("./FieldConfig").Inferred[];
166
- };
167
- }[];
168
57
  draft?: boolean | undefined;
169
58
  }, {
170
59
  label: {
@@ -172,39 +61,6 @@ export declare const ActionConfigBase: z.ZodObject<{
172
61
  description: string;
173
62
  defaultMessage: string;
174
63
  };
175
- forms: {
176
- version: {
177
- id: string;
178
- label: {
179
- id: string;
180
- description: string;
181
- defaultMessage: string;
182
- };
183
- };
184
- label: {
185
- id: string;
186
- description: string;
187
- defaultMessage: string;
188
- };
189
- pages: {
190
- id: string;
191
- title: {
192
- id: string;
193
- description: string;
194
- defaultMessage: string;
195
- };
196
- fields: import("./FieldConfig").Inferred[];
197
- }[];
198
- review: {
199
- title: {
200
- id: string;
201
- description: string;
202
- defaultMessage: string;
203
- };
204
- fields: import("./FieldConfig").Inferred[];
205
- };
206
- active?: boolean | undefined;
207
- }[];
208
64
  draft?: boolean | undefined;
209
65
  conditionals?: ({
210
66
  type: "SHOW";
@@ -240,121 +96,26 @@ declare const DeclareConfig: z.ZodObject<z.objectUtil.extendShape<{
240
96
  conditional: import(".").JSONSchema;
241
97
  }>]>, "many">>>;
242
98
  draft: z.ZodOptional<z.ZodBoolean>;
243
- forms: z.ZodArray<z.ZodObject<{
244
- 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, {
245
103
  id: string;
246
104
  description: string;
247
105
  defaultMessage: string;
248
106
  }>;
249
- version: z.ZodObject<{
250
- id: z.ZodString;
251
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
252
- id: string;
253
- description: string;
254
- defaultMessage: string;
255
- }>;
256
- }, "strip", z.ZodTypeAny, {
257
- id: string;
258
- label: TranslationConfig;
259
- }, {
260
- id: string;
261
- label: {
262
- id: string;
263
- description: string;
264
- defaultMessage: string;
265
- };
266
- }>;
267
- active: z.ZodDefault<z.ZodBoolean>;
268
- pages: z.ZodArray<z.ZodObject<{
269
- id: z.ZodString;
270
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
271
- id: string;
272
- description: string;
273
- defaultMessage: string;
274
- }>;
275
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
276
- }, "strip", z.ZodTypeAny, {
277
- id: string;
278
- title: TranslationConfig;
279
- fields: import("./FieldConfig").Inferred[];
280
- }, {
281
- id: string;
282
- title: {
283
- id: string;
284
- description: string;
285
- defaultMessage: string;
286
- };
287
- fields: import("./FieldConfig").Inferred[];
288
- }>, "many">;
289
- review: z.ZodObject<{
290
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
291
- id: string;
292
- description: string;
293
- defaultMessage: string;
294
- }>;
295
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
296
- }, "strip", z.ZodTypeAny, {
297
- title: TranslationConfig;
298
- fields: import("./FieldConfig").Inferred[];
299
- }, {
300
- title: {
301
- id: string;
302
- description: string;
303
- defaultMessage: string;
304
- };
305
- fields: import("./FieldConfig").Inferred[];
306
- }>;
107
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
307
108
  }, "strip", z.ZodTypeAny, {
308
- active: boolean;
309
- version: {
310
- id: string;
311
- label: TranslationConfig;
312
- };
313
- label: TranslationConfig;
314
- pages: {
315
- id: string;
316
- title: TranslationConfig;
317
- fields: import("./FieldConfig").Inferred[];
318
- }[];
319
- review: {
320
- title: TranslationConfig;
321
- fields: import("./FieldConfig").Inferred[];
322
- };
109
+ title: TranslationConfig;
110
+ fields: import("./FieldConfig").Inferred[];
323
111
  }, {
324
- version: {
325
- id: string;
326
- label: {
327
- id: string;
328
- description: string;
329
- defaultMessage: string;
330
- };
331
- };
332
- label: {
112
+ title: {
333
113
  id: string;
334
114
  description: string;
335
115
  defaultMessage: string;
336
116
  };
337
- pages: {
338
- id: string;
339
- title: {
340
- id: string;
341
- description: string;
342
- defaultMessage: string;
343
- };
344
- fields: import("./FieldConfig").Inferred[];
345
- }[];
346
- review: {
347
- title: {
348
- id: string;
349
- description: string;
350
- defaultMessage: string;
351
- };
352
- fields: import("./FieldConfig").Inferred[];
353
- };
354
- active?: boolean | undefined;
355
- }>, "many">;
356
- }, {
357
- type: z.ZodLiteral<"DECLARE">;
117
+ fields: import("./FieldConfig").InferredInput[];
118
+ }>;
358
119
  }>, "strip", z.ZodTypeAny, {
359
120
  type: "DECLARE";
360
121
  conditionals: ({
@@ -365,23 +126,10 @@ declare const DeclareConfig: z.ZodObject<z.objectUtil.extendShape<{
365
126
  conditional: import(".").JSONSchema;
366
127
  })[];
367
128
  label: TranslationConfig;
368
- forms: {
369
- active: boolean;
370
- version: {
371
- id: string;
372
- label: TranslationConfig;
373
- };
374
- label: TranslationConfig;
375
- pages: {
376
- id: string;
377
- title: TranslationConfig;
378
- fields: import("./FieldConfig").Inferred[];
379
- }[];
380
- review: {
381
- title: TranslationConfig;
382
- fields: import("./FieldConfig").Inferred[];
383
- };
384
- }[];
129
+ review: {
130
+ title: TranslationConfig;
131
+ fields: import("./FieldConfig").Inferred[];
132
+ };
385
133
  draft?: boolean | undefined;
386
134
  }, {
387
135
  type: "DECLARE";
@@ -390,39 +138,14 @@ declare const DeclareConfig: z.ZodObject<z.objectUtil.extendShape<{
390
138
  description: string;
391
139
  defaultMessage: string;
392
140
  };
393
- forms: {
394
- version: {
395
- id: string;
396
- label: {
397
- id: string;
398
- description: string;
399
- defaultMessage: string;
400
- };
401
- };
402
- label: {
141
+ review: {
142
+ title: {
403
143
  id: string;
404
144
  description: string;
405
145
  defaultMessage: string;
406
146
  };
407
- pages: {
408
- id: string;
409
- title: {
410
- id: string;
411
- description: string;
412
- defaultMessage: string;
413
- };
414
- fields: import("./FieldConfig").Inferred[];
415
- }[];
416
- review: {
417
- title: {
418
- id: string;
419
- description: string;
420
- defaultMessage: string;
421
- };
422
- fields: import("./FieldConfig").Inferred[];
423
- };
424
- active?: boolean | undefined;
425
- }[];
147
+ fields: import("./FieldConfig").InferredInput[];
148
+ };
426
149
  draft?: boolean | undefined;
427
150
  conditionals?: ({
428
151
  type: "SHOW";
@@ -458,121 +181,26 @@ declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<{
458
181
  conditional: import(".").JSONSchema;
459
182
  }>]>, "many">>>;
460
183
  draft: z.ZodOptional<z.ZodBoolean>;
461
- forms: z.ZodArray<z.ZodObject<{
462
- 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, {
463
188
  id: string;
464
189
  description: string;
465
190
  defaultMessage: string;
466
191
  }>;
467
- version: z.ZodObject<{
468
- id: z.ZodString;
469
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
470
- id: string;
471
- description: string;
472
- defaultMessage: string;
473
- }>;
474
- }, "strip", z.ZodTypeAny, {
475
- id: string;
476
- label: TranslationConfig;
477
- }, {
478
- id: string;
479
- label: {
480
- id: string;
481
- description: string;
482
- defaultMessage: string;
483
- };
484
- }>;
485
- active: z.ZodDefault<z.ZodBoolean>;
486
- pages: z.ZodArray<z.ZodObject<{
487
- id: z.ZodString;
488
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
489
- id: string;
490
- description: string;
491
- defaultMessage: string;
492
- }>;
493
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
494
- }, "strip", z.ZodTypeAny, {
495
- id: string;
496
- title: TranslationConfig;
497
- fields: import("./FieldConfig").Inferred[];
498
- }, {
499
- id: string;
500
- title: {
501
- id: string;
502
- description: string;
503
- defaultMessage: string;
504
- };
505
- fields: import("./FieldConfig").Inferred[];
506
- }>, "many">;
507
- review: z.ZodObject<{
508
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
509
- id: string;
510
- description: string;
511
- defaultMessage: string;
512
- }>;
513
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
514
- }, "strip", z.ZodTypeAny, {
515
- title: TranslationConfig;
516
- fields: import("./FieldConfig").Inferred[];
517
- }, {
518
- title: {
519
- id: string;
520
- description: string;
521
- defaultMessage: string;
522
- };
523
- fields: import("./FieldConfig").Inferred[];
524
- }>;
192
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
525
193
  }, "strip", z.ZodTypeAny, {
526
- active: boolean;
527
- version: {
528
- id: string;
529
- label: TranslationConfig;
530
- };
531
- label: TranslationConfig;
532
- pages: {
533
- id: string;
534
- title: TranslationConfig;
535
- fields: import("./FieldConfig").Inferred[];
536
- }[];
537
- review: {
538
- title: TranslationConfig;
539
- fields: import("./FieldConfig").Inferred[];
540
- };
194
+ title: TranslationConfig;
195
+ fields: import("./FieldConfig").Inferred[];
541
196
  }, {
542
- version: {
543
- id: string;
544
- label: {
545
- id: string;
546
- description: string;
547
- defaultMessage: string;
548
- };
549
- };
550
- label: {
197
+ title: {
551
198
  id: string;
552
199
  description: string;
553
200
  defaultMessage: string;
554
201
  };
555
- pages: {
556
- id: string;
557
- title: {
558
- id: string;
559
- description: string;
560
- defaultMessage: string;
561
- };
562
- fields: import("./FieldConfig").Inferred[];
563
- }[];
564
- review: {
565
- title: {
566
- id: string;
567
- description: string;
568
- defaultMessage: string;
569
- };
570
- fields: import("./FieldConfig").Inferred[];
571
- };
572
- active?: boolean | undefined;
573
- }>, "many">;
574
- }, {
575
- type: z.ZodLiteral<"VALIDATE">;
202
+ fields: import("./FieldConfig").InferredInput[];
203
+ }>;
576
204
  }>, "strip", z.ZodTypeAny, {
577
205
  type: "VALIDATE";
578
206
  conditionals: ({
@@ -583,23 +211,10 @@ declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<{
583
211
  conditional: import(".").JSONSchema;
584
212
  })[];
585
213
  label: TranslationConfig;
586
- forms: {
587
- active: boolean;
588
- version: {
589
- id: string;
590
- label: TranslationConfig;
591
- };
592
- label: TranslationConfig;
593
- pages: {
594
- id: string;
595
- title: TranslationConfig;
596
- fields: import("./FieldConfig").Inferred[];
597
- }[];
598
- review: {
599
- title: TranslationConfig;
600
- fields: import("./FieldConfig").Inferred[];
601
- };
602
- }[];
214
+ review: {
215
+ title: TranslationConfig;
216
+ fields: import("./FieldConfig").Inferred[];
217
+ };
603
218
  draft?: boolean | undefined;
604
219
  }, {
605
220
  type: "VALIDATE";
@@ -608,39 +223,14 @@ declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<{
608
223
  description: string;
609
224
  defaultMessage: string;
610
225
  };
611
- forms: {
612
- version: {
613
- id: string;
614
- label: {
615
- id: string;
616
- description: string;
617
- defaultMessage: string;
618
- };
619
- };
620
- label: {
226
+ review: {
227
+ title: {
621
228
  id: string;
622
229
  description: string;
623
230
  defaultMessage: string;
624
231
  };
625
- pages: {
626
- id: string;
627
- title: {
628
- id: string;
629
- description: string;
630
- defaultMessage: string;
631
- };
632
- fields: import("./FieldConfig").Inferred[];
633
- }[];
634
- review: {
635
- title: {
636
- id: string;
637
- description: string;
638
- defaultMessage: string;
639
- };
640
- fields: import("./FieldConfig").Inferred[];
641
- };
642
- active?: boolean | undefined;
643
- }[];
232
+ fields: import("./FieldConfig").InferredInput[];
233
+ };
644
234
  draft?: boolean | undefined;
645
235
  conditionals?: ({
646
236
  type: "SHOW";
@@ -650,7 +240,7 @@ declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<{
650
240
  conditional: import(".").JSONSchema;
651
241
  })[] | undefined;
652
242
  }>;
653
- declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
243
+ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
654
244
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
655
245
  id: string;
656
246
  description: string;
@@ -676,123 +266,28 @@ declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
676
266
  conditional: import(".").JSONSchema;
677
267
  }>]>, "many">>>;
678
268
  draft: z.ZodOptional<z.ZodBoolean>;
679
- forms: z.ZodArray<z.ZodObject<{
680
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
269
+ }, {
270
+ type: z.ZodLiteral<"REGISTER">;
271
+ review: z.ZodObject<{
272
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
681
273
  id: string;
682
274
  description: string;
683
275
  defaultMessage: string;
684
276
  }>;
685
- version: z.ZodObject<{
686
- id: z.ZodString;
687
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
688
- id: string;
689
- description: string;
690
- defaultMessage: string;
691
- }>;
692
- }, "strip", z.ZodTypeAny, {
693
- id: string;
694
- label: TranslationConfig;
695
- }, {
696
- id: string;
697
- label: {
698
- id: string;
699
- description: string;
700
- defaultMessage: string;
701
- };
702
- }>;
703
- active: z.ZodDefault<z.ZodBoolean>;
704
- pages: z.ZodArray<z.ZodObject<{
705
- id: z.ZodString;
706
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
707
- id: string;
708
- description: string;
709
- defaultMessage: string;
710
- }>;
711
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
712
- }, "strip", z.ZodTypeAny, {
713
- id: string;
714
- title: TranslationConfig;
715
- fields: import("./FieldConfig").Inferred[];
716
- }, {
717
- id: string;
718
- title: {
719
- id: string;
720
- description: string;
721
- defaultMessage: string;
722
- };
723
- fields: import("./FieldConfig").Inferred[];
724
- }>, "many">;
725
- review: z.ZodObject<{
726
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
727
- id: string;
728
- description: string;
729
- defaultMessage: string;
730
- }>;
731
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
732
- }, "strip", z.ZodTypeAny, {
733
- title: TranslationConfig;
734
- fields: import("./FieldConfig").Inferred[];
735
- }, {
736
- title: {
737
- id: string;
738
- description: string;
739
- defaultMessage: string;
740
- };
741
- fields: import("./FieldConfig").Inferred[];
742
- }>;
277
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
743
278
  }, "strip", z.ZodTypeAny, {
744
- active: boolean;
745
- version: {
746
- id: string;
747
- label: TranslationConfig;
748
- };
749
- label: TranslationConfig;
750
- pages: {
751
- id: string;
752
- title: TranslationConfig;
753
- fields: import("./FieldConfig").Inferred[];
754
- }[];
755
- review: {
756
- title: TranslationConfig;
757
- fields: import("./FieldConfig").Inferred[];
758
- };
279
+ title: TranslationConfig;
280
+ fields: import("./FieldConfig").Inferred[];
759
281
  }, {
760
- version: {
761
- id: string;
762
- label: {
763
- id: string;
764
- description: string;
765
- defaultMessage: string;
766
- };
767
- };
768
- label: {
282
+ title: {
769
283
  id: string;
770
284
  description: string;
771
285
  defaultMessage: string;
772
286
  };
773
- pages: {
774
- id: string;
775
- title: {
776
- id: string;
777
- description: string;
778
- defaultMessage: string;
779
- };
780
- fields: import("./FieldConfig").Inferred[];
781
- }[];
782
- review: {
783
- title: {
784
- id: string;
785
- description: string;
786
- defaultMessage: string;
787
- };
788
- fields: import("./FieldConfig").Inferred[];
789
- };
790
- active?: boolean | undefined;
791
- }>, "many">;
792
- }, {
793
- type: z.ZodLiteral<"REJECT">;
287
+ fields: import("./FieldConfig").InferredInput[];
288
+ }>;
794
289
  }>, "strip", z.ZodTypeAny, {
795
- type: "REJECT";
290
+ type: "REGISTER";
796
291
  conditionals: ({
797
292
  type: "SHOW";
798
293
  conditional: import(".").JSONSchema;
@@ -801,64 +296,26 @@ declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
801
296
  conditional: import(".").JSONSchema;
802
297
  })[];
803
298
  label: TranslationConfig;
804
- forms: {
805
- active: boolean;
806
- version: {
807
- id: string;
808
- label: TranslationConfig;
809
- };
810
- label: TranslationConfig;
811
- pages: {
812
- id: string;
813
- title: TranslationConfig;
814
- fields: import("./FieldConfig").Inferred[];
815
- }[];
816
- review: {
817
- title: TranslationConfig;
818
- fields: import("./FieldConfig").Inferred[];
819
- };
820
- }[];
299
+ review: {
300
+ title: TranslationConfig;
301
+ fields: import("./FieldConfig").Inferred[];
302
+ };
821
303
  draft?: boolean | undefined;
822
304
  }, {
823
- type: "REJECT";
305
+ type: "REGISTER";
824
306
  label: {
825
307
  id: string;
826
308
  description: string;
827
309
  defaultMessage: string;
828
310
  };
829
- forms: {
830
- version: {
831
- id: string;
832
- label: {
833
- id: string;
834
- description: string;
835
- defaultMessage: string;
836
- };
837
- };
838
- label: {
311
+ review: {
312
+ title: {
839
313
  id: string;
840
314
  description: string;
841
315
  defaultMessage: string;
842
316
  };
843
- pages: {
844
- id: string;
845
- title: {
846
- id: string;
847
- description: string;
848
- defaultMessage: string;
849
- };
850
- fields: import("./FieldConfig").Inferred[];
851
- }[];
852
- review: {
853
- title: {
854
- id: string;
855
- description: string;
856
- defaultMessage: string;
857
- };
858
- fields: import("./FieldConfig").Inferred[];
859
- };
860
- active?: boolean | undefined;
861
- }[];
317
+ fields: import("./FieldConfig").InferredInput[];
318
+ };
862
319
  draft?: boolean | undefined;
863
320
  conditionals?: ({
864
321
  type: "SHOW";
@@ -868,7 +325,7 @@ declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
868
325
  conditional: import(".").JSONSchema;
869
326
  })[] | undefined;
870
327
  }>;
871
- declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
328
+ declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
872
329
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
873
330
  id: string;
874
331
  description: string;
@@ -894,123 +351,10 @@ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
894
351
  conditional: import(".").JSONSchema;
895
352
  }>]>, "many">>>;
896
353
  draft: z.ZodOptional<z.ZodBoolean>;
897
- forms: z.ZodArray<z.ZodObject<{
898
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
899
- id: string;
900
- description: string;
901
- defaultMessage: string;
902
- }>;
903
- version: z.ZodObject<{
904
- id: z.ZodString;
905
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
906
- id: string;
907
- description: string;
908
- defaultMessage: string;
909
- }>;
910
- }, "strip", z.ZodTypeAny, {
911
- id: string;
912
- label: TranslationConfig;
913
- }, {
914
- id: string;
915
- label: {
916
- id: string;
917
- description: string;
918
- defaultMessage: string;
919
- };
920
- }>;
921
- active: z.ZodDefault<z.ZodBoolean>;
922
- pages: z.ZodArray<z.ZodObject<{
923
- id: z.ZodString;
924
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
925
- id: string;
926
- description: string;
927
- defaultMessage: string;
928
- }>;
929
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
930
- }, "strip", z.ZodTypeAny, {
931
- id: string;
932
- title: TranslationConfig;
933
- fields: import("./FieldConfig").Inferred[];
934
- }, {
935
- id: string;
936
- title: {
937
- id: string;
938
- description: string;
939
- defaultMessage: string;
940
- };
941
- fields: import("./FieldConfig").Inferred[];
942
- }>, "many">;
943
- review: z.ZodObject<{
944
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
945
- id: string;
946
- description: string;
947
- defaultMessage: string;
948
- }>;
949
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
950
- }, "strip", z.ZodTypeAny, {
951
- title: TranslationConfig;
952
- fields: import("./FieldConfig").Inferred[];
953
- }, {
954
- title: {
955
- id: string;
956
- description: string;
957
- defaultMessage: string;
958
- };
959
- fields: import("./FieldConfig").Inferred[];
960
- }>;
961
- }, "strip", z.ZodTypeAny, {
962
- active: boolean;
963
- version: {
964
- id: string;
965
- label: TranslationConfig;
966
- };
967
- label: TranslationConfig;
968
- pages: {
969
- id: string;
970
- title: TranslationConfig;
971
- fields: import("./FieldConfig").Inferred[];
972
- }[];
973
- review: {
974
- title: TranslationConfig;
975
- fields: import("./FieldConfig").Inferred[];
976
- };
977
- }, {
978
- version: {
979
- id: string;
980
- label: {
981
- id: string;
982
- description: string;
983
- defaultMessage: string;
984
- };
985
- };
986
- label: {
987
- id: string;
988
- description: string;
989
- defaultMessage: string;
990
- };
991
- pages: {
992
- id: string;
993
- title: {
994
- id: string;
995
- description: string;
996
- defaultMessage: string;
997
- };
998
- fields: import("./FieldConfig").Inferred[];
999
- }[];
1000
- review: {
1001
- title: {
1002
- id: string;
1003
- description: string;
1004
- defaultMessage: string;
1005
- };
1006
- fields: import("./FieldConfig").Inferred[];
1007
- };
1008
- active?: boolean | undefined;
1009
- }>, "many">;
1010
354
  }, {
1011
- type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
355
+ type: z.ZodLiteral<"REJECT">;
1012
356
  }>, "strip", z.ZodTypeAny, {
1013
- type: "MARKED_AS_DUPLICATE";
357
+ type: "REJECT";
1014
358
  conditionals: ({
1015
359
  type: "SHOW";
1016
360
  conditional: import(".").JSONSchema;
@@ -1019,64 +363,14 @@ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
1019
363
  conditional: import(".").JSONSchema;
1020
364
  })[];
1021
365
  label: TranslationConfig;
1022
- forms: {
1023
- active: boolean;
1024
- version: {
1025
- id: string;
1026
- label: TranslationConfig;
1027
- };
1028
- label: TranslationConfig;
1029
- pages: {
1030
- id: string;
1031
- title: TranslationConfig;
1032
- fields: import("./FieldConfig").Inferred[];
1033
- }[];
1034
- review: {
1035
- title: TranslationConfig;
1036
- fields: import("./FieldConfig").Inferred[];
1037
- };
1038
- }[];
1039
366
  draft?: boolean | undefined;
1040
367
  }, {
1041
- type: "MARKED_AS_DUPLICATE";
368
+ type: "REJECT";
1042
369
  label: {
1043
370
  id: string;
1044
371
  description: string;
1045
372
  defaultMessage: string;
1046
373
  };
1047
- forms: {
1048
- version: {
1049
- id: string;
1050
- label: {
1051
- id: string;
1052
- description: string;
1053
- defaultMessage: string;
1054
- };
1055
- };
1056
- label: {
1057
- id: string;
1058
- description: string;
1059
- defaultMessage: string;
1060
- };
1061
- pages: {
1062
- id: string;
1063
- title: {
1064
- id: string;
1065
- description: string;
1066
- defaultMessage: string;
1067
- };
1068
- fields: import("./FieldConfig").Inferred[];
1069
- }[];
1070
- review: {
1071
- title: {
1072
- id: string;
1073
- description: string;
1074
- defaultMessage: string;
1075
- };
1076
- fields: import("./FieldConfig").Inferred[];
1077
- };
1078
- active?: boolean | undefined;
1079
- }[];
1080
374
  draft?: boolean | undefined;
1081
375
  conditionals?: ({
1082
376
  type: "SHOW";
@@ -1086,7 +380,7 @@ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
1086
380
  conditional: import(".").JSONSchema;
1087
381
  })[] | undefined;
1088
382
  }>;
1089
- declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
383
+ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
1090
384
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1091
385
  id: string;
1092
386
  description: string;
@@ -1112,123 +406,10 @@ declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
1112
406
  conditional: import(".").JSONSchema;
1113
407
  }>]>, "many">>>;
1114
408
  draft: z.ZodOptional<z.ZodBoolean>;
1115
- forms: z.ZodArray<z.ZodObject<{
1116
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1117
- id: string;
1118
- description: string;
1119
- defaultMessage: string;
1120
- }>;
1121
- version: z.ZodObject<{
1122
- id: z.ZodString;
1123
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1124
- id: string;
1125
- description: string;
1126
- defaultMessage: string;
1127
- }>;
1128
- }, "strip", z.ZodTypeAny, {
1129
- id: string;
1130
- label: TranslationConfig;
1131
- }, {
1132
- id: string;
1133
- label: {
1134
- id: string;
1135
- description: string;
1136
- defaultMessage: string;
1137
- };
1138
- }>;
1139
- active: z.ZodDefault<z.ZodBoolean>;
1140
- pages: z.ZodArray<z.ZodObject<{
1141
- id: z.ZodString;
1142
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1143
- id: string;
1144
- description: string;
1145
- defaultMessage: string;
1146
- }>;
1147
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1148
- }, "strip", z.ZodTypeAny, {
1149
- id: string;
1150
- title: TranslationConfig;
1151
- fields: import("./FieldConfig").Inferred[];
1152
- }, {
1153
- id: string;
1154
- title: {
1155
- id: string;
1156
- description: string;
1157
- defaultMessage: string;
1158
- };
1159
- fields: import("./FieldConfig").Inferred[];
1160
- }>, "many">;
1161
- review: z.ZodObject<{
1162
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1163
- id: string;
1164
- description: string;
1165
- defaultMessage: string;
1166
- }>;
1167
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1168
- }, "strip", z.ZodTypeAny, {
1169
- title: TranslationConfig;
1170
- fields: import("./FieldConfig").Inferred[];
1171
- }, {
1172
- title: {
1173
- id: string;
1174
- description: string;
1175
- defaultMessage: string;
1176
- };
1177
- fields: import("./FieldConfig").Inferred[];
1178
- }>;
1179
- }, "strip", z.ZodTypeAny, {
1180
- active: boolean;
1181
- version: {
1182
- id: string;
1183
- label: TranslationConfig;
1184
- };
1185
- label: TranslationConfig;
1186
- pages: {
1187
- id: string;
1188
- title: TranslationConfig;
1189
- fields: import("./FieldConfig").Inferred[];
1190
- }[];
1191
- review: {
1192
- title: TranslationConfig;
1193
- fields: import("./FieldConfig").Inferred[];
1194
- };
1195
- }, {
1196
- version: {
1197
- id: string;
1198
- label: {
1199
- id: string;
1200
- description: string;
1201
- defaultMessage: string;
1202
- };
1203
- };
1204
- label: {
1205
- id: string;
1206
- description: string;
1207
- defaultMessage: string;
1208
- };
1209
- pages: {
1210
- id: string;
1211
- title: {
1212
- id: string;
1213
- description: string;
1214
- defaultMessage: string;
1215
- };
1216
- fields: import("./FieldConfig").Inferred[];
1217
- }[];
1218
- review: {
1219
- title: {
1220
- id: string;
1221
- description: string;
1222
- defaultMessage: string;
1223
- };
1224
- fields: import("./FieldConfig").Inferred[];
1225
- };
1226
- active?: boolean | undefined;
1227
- }>, "many">;
1228
409
  }, {
1229
- type: z.ZodLiteral<"ARCHIVE">;
410
+ type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1230
411
  }>, "strip", z.ZodTypeAny, {
1231
- type: "ARCHIVE";
412
+ type: "MARKED_AS_DUPLICATE";
1232
413
  conditionals: ({
1233
414
  type: "SHOW";
1234
415
  conditional: import(".").JSONSchema;
@@ -1237,64 +418,14 @@ declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
1237
418
  conditional: import(".").JSONSchema;
1238
419
  })[];
1239
420
  label: TranslationConfig;
1240
- forms: {
1241
- active: boolean;
1242
- version: {
1243
- id: string;
1244
- label: TranslationConfig;
1245
- };
1246
- label: TranslationConfig;
1247
- pages: {
1248
- id: string;
1249
- title: TranslationConfig;
1250
- fields: import("./FieldConfig").Inferred[];
1251
- }[];
1252
- review: {
1253
- title: TranslationConfig;
1254
- fields: import("./FieldConfig").Inferred[];
1255
- };
1256
- }[];
1257
421
  draft?: boolean | undefined;
1258
422
  }, {
1259
- type: "ARCHIVE";
423
+ type: "MARKED_AS_DUPLICATE";
1260
424
  label: {
1261
425
  id: string;
1262
426
  description: string;
1263
427
  defaultMessage: string;
1264
428
  };
1265
- forms: {
1266
- version: {
1267
- id: string;
1268
- label: {
1269
- id: string;
1270
- description: string;
1271
- defaultMessage: string;
1272
- };
1273
- };
1274
- label: {
1275
- id: string;
1276
- description: string;
1277
- defaultMessage: string;
1278
- };
1279
- pages: {
1280
- id: string;
1281
- title: {
1282
- id: string;
1283
- description: string;
1284
- defaultMessage: string;
1285
- };
1286
- fields: import("./FieldConfig").Inferred[];
1287
- }[];
1288
- review: {
1289
- title: {
1290
- id: string;
1291
- description: string;
1292
- defaultMessage: string;
1293
- };
1294
- fields: import("./FieldConfig").Inferred[];
1295
- };
1296
- active?: boolean | undefined;
1297
- }[];
1298
429
  draft?: boolean | undefined;
1299
430
  conditionals?: ({
1300
431
  type: "SHOW";
@@ -1304,7 +435,7 @@ declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
1304
435
  conditional: import(".").JSONSchema;
1305
436
  })[] | undefined;
1306
437
  }>;
1307
- declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
438
+ declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
1308
439
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1309
440
  id: string;
1310
441
  description: string;
@@ -1318,135 +449,22 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
1318
449
  conditional: import(".").JSONSchema;
1319
450
  }, {
1320
451
  type: "SHOW";
1321
- conditional: import(".").JSONSchema;
1322
- }>, z.ZodObject<{
1323
- type: z.ZodLiteral<"ENABLE">;
1324
- conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1325
- }, "strip", z.ZodTypeAny, {
1326
- type: "ENABLE";
1327
- conditional: import(".").JSONSchema;
1328
- }, {
1329
- type: "ENABLE";
1330
- conditional: import(".").JSONSchema;
1331
- }>]>, "many">>>;
1332
- draft: z.ZodOptional<z.ZodBoolean>;
1333
- forms: z.ZodArray<z.ZodObject<{
1334
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1335
- id: string;
1336
- description: string;
1337
- defaultMessage: string;
1338
- }>;
1339
- version: z.ZodObject<{
1340
- id: z.ZodString;
1341
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1342
- id: string;
1343
- description: string;
1344
- defaultMessage: string;
1345
- }>;
1346
- }, "strip", z.ZodTypeAny, {
1347
- id: string;
1348
- label: TranslationConfig;
1349
- }, {
1350
- id: string;
1351
- label: {
1352
- id: string;
1353
- description: string;
1354
- defaultMessage: string;
1355
- };
1356
- }>;
1357
- active: z.ZodDefault<z.ZodBoolean>;
1358
- pages: z.ZodArray<z.ZodObject<{
1359
- id: z.ZodString;
1360
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1361
- id: string;
1362
- description: string;
1363
- defaultMessage: string;
1364
- }>;
1365
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1366
- }, "strip", z.ZodTypeAny, {
1367
- id: string;
1368
- title: TranslationConfig;
1369
- fields: import("./FieldConfig").Inferred[];
1370
- }, {
1371
- id: string;
1372
- title: {
1373
- id: string;
1374
- description: string;
1375
- defaultMessage: string;
1376
- };
1377
- fields: import("./FieldConfig").Inferred[];
1378
- }>, "many">;
1379
- review: z.ZodObject<{
1380
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1381
- id: string;
1382
- description: string;
1383
- defaultMessage: string;
1384
- }>;
1385
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1386
- }, "strip", z.ZodTypeAny, {
1387
- title: TranslationConfig;
1388
- fields: import("./FieldConfig").Inferred[];
1389
- }, {
1390
- title: {
1391
- id: string;
1392
- description: string;
1393
- defaultMessage: string;
1394
- };
1395
- fields: import("./FieldConfig").Inferred[];
1396
- }>;
1397
- }, "strip", z.ZodTypeAny, {
1398
- active: boolean;
1399
- version: {
1400
- id: string;
1401
- label: TranslationConfig;
1402
- };
1403
- label: TranslationConfig;
1404
- pages: {
1405
- id: string;
1406
- title: TranslationConfig;
1407
- fields: import("./FieldConfig").Inferred[];
1408
- }[];
1409
- review: {
1410
- title: TranslationConfig;
1411
- fields: import("./FieldConfig").Inferred[];
1412
- };
452
+ conditional: import(".").JSONSchema;
453
+ }>, z.ZodObject<{
454
+ type: z.ZodLiteral<"ENABLE">;
455
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
456
+ }, "strip", z.ZodTypeAny, {
457
+ type: "ENABLE";
458
+ conditional: import(".").JSONSchema;
1413
459
  }, {
1414
- version: {
1415
- id: string;
1416
- label: {
1417
- id: string;
1418
- description: string;
1419
- defaultMessage: string;
1420
- };
1421
- };
1422
- label: {
1423
- id: string;
1424
- description: string;
1425
- defaultMessage: string;
1426
- };
1427
- pages: {
1428
- id: string;
1429
- title: {
1430
- id: string;
1431
- description: string;
1432
- defaultMessage: string;
1433
- };
1434
- fields: import("./FieldConfig").Inferred[];
1435
- }[];
1436
- review: {
1437
- title: {
1438
- id: string;
1439
- description: string;
1440
- defaultMessage: string;
1441
- };
1442
- fields: import("./FieldConfig").Inferred[];
1443
- };
1444
- active?: boolean | undefined;
1445
- }>, "many">;
460
+ type: "ENABLE";
461
+ conditional: import(".").JSONSchema;
462
+ }>]>, "many">>>;
463
+ draft: z.ZodOptional<z.ZodBoolean>;
1446
464
  }, {
1447
- type: z.ZodLiteral<"REGISTER">;
465
+ type: z.ZodLiteral<"ARCHIVE">;
1448
466
  }>, "strip", z.ZodTypeAny, {
1449
- type: "REGISTER";
467
+ type: "ARCHIVE";
1450
468
  conditionals: ({
1451
469
  type: "SHOW";
1452
470
  conditional: import(".").JSONSchema;
@@ -1455,64 +473,14 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
1455
473
  conditional: import(".").JSONSchema;
1456
474
  })[];
1457
475
  label: TranslationConfig;
1458
- forms: {
1459
- active: boolean;
1460
- version: {
1461
- id: string;
1462
- label: TranslationConfig;
1463
- };
1464
- label: TranslationConfig;
1465
- pages: {
1466
- id: string;
1467
- title: TranslationConfig;
1468
- fields: import("./FieldConfig").Inferred[];
1469
- }[];
1470
- review: {
1471
- title: TranslationConfig;
1472
- fields: import("./FieldConfig").Inferred[];
1473
- };
1474
- }[];
1475
476
  draft?: boolean | undefined;
1476
477
  }, {
1477
- type: "REGISTER";
478
+ type: "ARCHIVE";
1478
479
  label: {
1479
480
  id: string;
1480
481
  description: string;
1481
482
  defaultMessage: string;
1482
483
  };
1483
- forms: {
1484
- version: {
1485
- id: string;
1486
- label: {
1487
- id: string;
1488
- description: string;
1489
- defaultMessage: string;
1490
- };
1491
- };
1492
- label: {
1493
- id: string;
1494
- description: string;
1495
- defaultMessage: string;
1496
- };
1497
- pages: {
1498
- id: string;
1499
- title: {
1500
- id: string;
1501
- description: string;
1502
- defaultMessage: string;
1503
- };
1504
- fields: import("./FieldConfig").Inferred[];
1505
- }[];
1506
- review: {
1507
- title: {
1508
- id: string;
1509
- description: string;
1510
- defaultMessage: string;
1511
- };
1512
- fields: import("./FieldConfig").Inferred[];
1513
- };
1514
- active?: boolean | undefined;
1515
- }[];
1516
484
  draft?: boolean | undefined;
1517
485
  conditionals?: ({
1518
486
  type: "SHOW";
@@ -1548,119 +516,6 @@ declare const DeleteConfig: z.ZodObject<z.objectUtil.extendShape<{
1548
516
  conditional: import(".").JSONSchema;
1549
517
  }>]>, "many">>>;
1550
518
  draft: z.ZodOptional<z.ZodBoolean>;
1551
- forms: z.ZodArray<z.ZodObject<{
1552
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1553
- id: string;
1554
- description: string;
1555
- defaultMessage: string;
1556
- }>;
1557
- version: z.ZodObject<{
1558
- id: z.ZodString;
1559
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1560
- id: string;
1561
- description: string;
1562
- defaultMessage: string;
1563
- }>;
1564
- }, "strip", z.ZodTypeAny, {
1565
- id: string;
1566
- label: TranslationConfig;
1567
- }, {
1568
- id: string;
1569
- label: {
1570
- id: string;
1571
- description: string;
1572
- defaultMessage: string;
1573
- };
1574
- }>;
1575
- active: z.ZodDefault<z.ZodBoolean>;
1576
- pages: z.ZodArray<z.ZodObject<{
1577
- id: z.ZodString;
1578
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1579
- id: string;
1580
- description: string;
1581
- defaultMessage: string;
1582
- }>;
1583
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1584
- }, "strip", z.ZodTypeAny, {
1585
- id: string;
1586
- title: TranslationConfig;
1587
- fields: import("./FieldConfig").Inferred[];
1588
- }, {
1589
- id: string;
1590
- title: {
1591
- id: string;
1592
- description: string;
1593
- defaultMessage: string;
1594
- };
1595
- fields: import("./FieldConfig").Inferred[];
1596
- }>, "many">;
1597
- review: z.ZodObject<{
1598
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1599
- id: string;
1600
- description: string;
1601
- defaultMessage: string;
1602
- }>;
1603
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1604
- }, "strip", z.ZodTypeAny, {
1605
- title: TranslationConfig;
1606
- fields: import("./FieldConfig").Inferred[];
1607
- }, {
1608
- title: {
1609
- id: string;
1610
- description: string;
1611
- defaultMessage: string;
1612
- };
1613
- fields: import("./FieldConfig").Inferred[];
1614
- }>;
1615
- }, "strip", z.ZodTypeAny, {
1616
- active: boolean;
1617
- version: {
1618
- id: string;
1619
- label: TranslationConfig;
1620
- };
1621
- label: TranslationConfig;
1622
- pages: {
1623
- id: string;
1624
- title: TranslationConfig;
1625
- fields: import("./FieldConfig").Inferred[];
1626
- }[];
1627
- review: {
1628
- title: TranslationConfig;
1629
- fields: import("./FieldConfig").Inferred[];
1630
- };
1631
- }, {
1632
- version: {
1633
- id: string;
1634
- label: {
1635
- id: string;
1636
- description: string;
1637
- defaultMessage: string;
1638
- };
1639
- };
1640
- label: {
1641
- id: string;
1642
- description: string;
1643
- defaultMessage: string;
1644
- };
1645
- pages: {
1646
- id: string;
1647
- title: {
1648
- id: string;
1649
- description: string;
1650
- defaultMessage: string;
1651
- };
1652
- fields: import("./FieldConfig").Inferred[];
1653
- }[];
1654
- review: {
1655
- title: {
1656
- id: string;
1657
- description: string;
1658
- defaultMessage: string;
1659
- };
1660
- fields: import("./FieldConfig").Inferred[];
1661
- };
1662
- active?: boolean | undefined;
1663
- }>, "many">;
1664
519
  }, {
1665
520
  type: z.ZodLiteral<"DELETE">;
1666
521
  }>, "strip", z.ZodTypeAny, {
@@ -1673,23 +528,6 @@ declare const DeleteConfig: z.ZodObject<z.objectUtil.extendShape<{
1673
528
  conditional: import(".").JSONSchema;
1674
529
  })[];
1675
530
  label: TranslationConfig;
1676
- forms: {
1677
- active: boolean;
1678
- version: {
1679
- id: string;
1680
- label: TranslationConfig;
1681
- };
1682
- label: TranslationConfig;
1683
- pages: {
1684
- id: string;
1685
- title: TranslationConfig;
1686
- fields: import("./FieldConfig").Inferred[];
1687
- }[];
1688
- review: {
1689
- title: TranslationConfig;
1690
- fields: import("./FieldConfig").Inferred[];
1691
- };
1692
- }[];
1693
531
  draft?: boolean | undefined;
1694
532
  }, {
1695
533
  type: "DELETE";
@@ -1698,39 +536,6 @@ declare const DeleteConfig: z.ZodObject<z.objectUtil.extendShape<{
1698
536
  description: string;
1699
537
  defaultMessage: string;
1700
538
  };
1701
- forms: {
1702
- version: {
1703
- id: string;
1704
- label: {
1705
- id: string;
1706
- description: string;
1707
- defaultMessage: string;
1708
- };
1709
- };
1710
- label: {
1711
- id: string;
1712
- description: string;
1713
- defaultMessage: string;
1714
- };
1715
- pages: {
1716
- id: string;
1717
- title: {
1718
- id: string;
1719
- description: string;
1720
- defaultMessage: string;
1721
- };
1722
- fields: import("./FieldConfig").Inferred[];
1723
- }[];
1724
- review: {
1725
- title: {
1726
- id: string;
1727
- description: string;
1728
- defaultMessage: string;
1729
- };
1730
- fields: import("./FieldConfig").Inferred[];
1731
- };
1732
- active?: boolean | undefined;
1733
- }[];
1734
539
  draft?: boolean | undefined;
1735
540
  conditionals?: ({
1736
541
  type: "SHOW";
@@ -1766,43 +571,31 @@ declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape
1766
571
  conditional: import(".").JSONSchema;
1767
572
  }>]>, "many">>>;
1768
573
  draft: z.ZodOptional<z.ZodBoolean>;
1769
- forms: z.ZodArray<z.ZodObject<{
574
+ }, {
575
+ type: z.ZodLiteral<"PRINT_CERTIFICATE">;
576
+ printForm: z.ZodObject<{
1770
577
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1771
578
  id: string;
1772
579
  description: string;
1773
580
  defaultMessage: string;
1774
581
  }>;
1775
- version: z.ZodObject<{
1776
- id: z.ZodString;
1777
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1778
- id: string;
1779
- description: string;
1780
- defaultMessage: string;
1781
- }>;
1782
- }, "strip", z.ZodTypeAny, {
1783
- id: string;
1784
- label: TranslationConfig;
1785
- }, {
1786
- id: string;
1787
- label: {
1788
- id: string;
1789
- description: string;
1790
- defaultMessage: string;
1791
- };
1792
- }>;
1793
- active: z.ZodDefault<z.ZodBoolean>;
1794
- pages: z.ZodArray<z.ZodObject<{
582
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", (z.ZodObject<z.objectUtil.extendShape<{
1795
583
  id: z.ZodString;
1796
584
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1797
585
  id: string;
1798
586
  description: string;
1799
587
  defaultMessage: string;
1800
588
  }>;
1801
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1802
- }, "strip", z.ZodTypeAny, {
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";
1803
595
  id: string;
1804
596
  title: TranslationConfig;
1805
597
  fields: import("./FieldConfig").Inferred[];
598
+ conditional?: import(".").JSONSchema | undefined;
1806
599
  }, {
1807
600
  id: string;
1808
601
  title: {
@@ -1810,77 +603,274 @@ declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape
1810
603
  description: string;
1811
604
  defaultMessage: string;
1812
605
  };
1813
- fields: import("./FieldConfig").Inferred[];
1814
- }>, "many">;
1815
- review: z.ZodObject<{
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;
1816
611
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1817
612
  id: string;
1818
613
  description: string;
1819
614
  defaultMessage: string;
1820
615
  }>;
1821
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1822
- }, "strip", z.ZodTypeAny, {
1823
- title: TranslationConfig;
1824
- fields: import("./FieldConfig").Inferred[];
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>>;
1825
618
  }, {
1826
- title: {
1827
- id: string;
1828
- description: string;
1829
- defaultMessage: string;
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
+ }, {
707
+ verify: {
708
+ label: {
709
+ id: string;
710
+ description: string;
711
+ defaultMessage: string;
712
+ };
713
+ };
714
+ cancel: {
715
+ label: {
716
+ id: string;
717
+ description: string;
718
+ defaultMessage: string;
719
+ };
720
+ confirmation: {
721
+ title: {
722
+ id: string;
723
+ description: string;
724
+ defaultMessage: string;
725
+ };
726
+ body: {
727
+ id: string;
728
+ description: string;
729
+ defaultMessage: string;
730
+ };
731
+ };
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
+ };
1830
749
  };
1831
750
  fields: import("./FieldConfig").Inferred[];
1832
- }>;
751
+ conditional?: import(".").JSONSchema | undefined;
752
+ }, {
753
+ type: "VERIFICATION";
754
+ id: string;
755
+ title: {
756
+ id: string;
757
+ description: string;
758
+ defaultMessage: string;
759
+ };
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">;
1833
791
  }, "strip", z.ZodTypeAny, {
1834
- active: boolean;
1835
- version: {
1836
- id: string;
1837
- label: TranslationConfig;
1838
- };
1839
792
  label: TranslationConfig;
1840
- pages: {
793
+ pages: ({
794
+ type: "FORM";
1841
795
  id: string;
1842
796
  title: TranslationConfig;
1843
797
  fields: import("./FieldConfig").Inferred[];
1844
- }[];
1845
- review: {
798
+ conditional?: import(".").JSONSchema | undefined;
799
+ } | {
800
+ type: "VERIFICATION";
801
+ id: string;
1846
802
  title: TranslationConfig;
803
+ actions: {
804
+ verify: {
805
+ label: TranslationConfig;
806
+ };
807
+ cancel: {
808
+ label: TranslationConfig;
809
+ confirmation: {
810
+ title: TranslationConfig;
811
+ body: TranslationConfig;
812
+ };
813
+ };
814
+ };
1847
815
  fields: import("./FieldConfig").Inferred[];
1848
- };
816
+ conditional?: import(".").JSONSchema | undefined;
817
+ })[];
1849
818
  }, {
1850
- version: {
1851
- id: string;
1852
- label: {
1853
- id: string;
1854
- description: string;
1855
- defaultMessage: string;
1856
- };
1857
- };
1858
819
  label: {
1859
820
  id: string;
1860
821
  description: string;
1861
822
  defaultMessage: string;
1862
823
  };
1863
- pages: {
824
+ pages: ({
1864
825
  id: string;
1865
826
  title: {
1866
827
  id: string;
1867
828
  description: string;
1868
829
  defaultMessage: string;
1869
830
  };
1870
- fields: import("./FieldConfig").Inferred[];
1871
- }[];
1872
- review: {
831
+ fields: import("./FieldConfig").InferredInput[];
832
+ type?: "FORM" | undefined;
833
+ conditional?: import(".").JSONSchema | undefined;
834
+ } | {
835
+ type: "VERIFICATION";
836
+ id: string;
1873
837
  title: {
1874
838
  id: string;
1875
839
  description: string;
1876
840
  defaultMessage: string;
1877
841
  };
1878
- fields: import("./FieldConfig").Inferred[];
1879
- };
1880
- active?: boolean | undefined;
1881
- }>, "many">;
1882
- }, {
1883
- type: z.ZodLiteral<"PRINT_CERTIFICATE">;
842
+ actions: {
843
+ verify: {
844
+ label: {
845
+ id: string;
846
+ description: string;
847
+ defaultMessage: string;
848
+ };
849
+ };
850
+ cancel: {
851
+ label: {
852
+ id: string;
853
+ description: string;
854
+ defaultMessage: string;
855
+ };
856
+ confirmation: {
857
+ title: {
858
+ id: string;
859
+ description: string;
860
+ defaultMessage: string;
861
+ };
862
+ body: {
863
+ id: string;
864
+ description: string;
865
+ defaultMessage: string;
866
+ };
867
+ };
868
+ };
869
+ };
870
+ fields: import("./FieldConfig").InferredInput[];
871
+ conditional?: import(".").JSONSchema | undefined;
872
+ })[];
873
+ }>;
1884
874
  }>, "strip", z.ZodTypeAny, {
1885
875
  type: "PRINT_CERTIFICATE";
1886
876
  conditionals: ({
@@ -1891,23 +881,34 @@ declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape
1891
881
  conditional: import(".").JSONSchema;
1892
882
  })[];
1893
883
  label: TranslationConfig;
1894
- forms: {
1895
- active: boolean;
1896
- version: {
1897
- id: string;
1898
- label: TranslationConfig;
1899
- };
884
+ printForm: {
1900
885
  label: TranslationConfig;
1901
- pages: {
886
+ pages: ({
887
+ type: "FORM";
1902
888
  id: string;
1903
889
  title: TranslationConfig;
1904
890
  fields: import("./FieldConfig").Inferred[];
1905
- }[];
1906
- review: {
891
+ conditional?: import(".").JSONSchema | undefined;
892
+ } | {
893
+ type: "VERIFICATION";
894
+ id: string;
1907
895
  title: TranslationConfig;
896
+ actions: {
897
+ verify: {
898
+ label: TranslationConfig;
899
+ };
900
+ cancel: {
901
+ label: TranslationConfig;
902
+ confirmation: {
903
+ title: TranslationConfig;
904
+ body: TranslationConfig;
905
+ };
906
+ };
907
+ };
1908
908
  fields: import("./FieldConfig").Inferred[];
1909
- };
1910
- }[];
909
+ conditional?: import(".").JSONSchema | undefined;
910
+ })[];
911
+ };
1911
912
  draft?: boolean | undefined;
1912
913
  }, {
1913
914
  type: "PRINT_CERTIFICATE";
@@ -1916,39 +917,62 @@ declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape
1916
917
  description: string;
1917
918
  defaultMessage: string;
1918
919
  };
1919
- forms: {
1920
- version: {
1921
- id: string;
1922
- label: {
1923
- id: string;
1924
- description: string;
1925
- defaultMessage: string;
1926
- };
1927
- };
920
+ printForm: {
1928
921
  label: {
1929
922
  id: string;
1930
923
  description: string;
1931
924
  defaultMessage: string;
1932
925
  };
1933
- pages: {
926
+ pages: ({
1934
927
  id: string;
1935
928
  title: {
1936
929
  id: string;
1937
930
  description: string;
1938
931
  defaultMessage: string;
1939
932
  };
1940
- fields: import("./FieldConfig").Inferred[];
1941
- }[];
1942
- review: {
933
+ fields: import("./FieldConfig").InferredInput[];
934
+ type?: "FORM" | undefined;
935
+ conditional?: import(".").JSONSchema | undefined;
936
+ } | {
937
+ type: "VERIFICATION";
938
+ id: string;
1943
939
  title: {
1944
940
  id: string;
1945
941
  description: string;
1946
942
  defaultMessage: string;
1947
943
  };
1948
- fields: import("./FieldConfig").Inferred[];
1949
- };
1950
- active?: boolean | undefined;
1951
- }[];
944
+ actions: {
945
+ verify: {
946
+ label: {
947
+ id: string;
948
+ description: string;
949
+ defaultMessage: string;
950
+ };
951
+ };
952
+ cancel: {
953
+ label: {
954
+ id: string;
955
+ description: string;
956
+ defaultMessage: string;
957
+ };
958
+ confirmation: {
959
+ title: {
960
+ id: string;
961
+ description: string;
962
+ defaultMessage: string;
963
+ };
964
+ body: {
965
+ id: string;
966
+ description: string;
967
+ defaultMessage: string;
968
+ };
969
+ };
970
+ };
971
+ };
972
+ fields: import("./FieldConfig").InferredInput[];
973
+ conditional?: import(".").JSONSchema | undefined;
974
+ })[];
975
+ };
1952
976
  draft?: boolean | undefined;
1953
977
  conditionals?: ({
1954
978
  type: "SHOW";
@@ -1984,165 +1008,686 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
1984
1008
  conditional: import(".").JSONSchema;
1985
1009
  }>]>, "many">>>;
1986
1010
  draft: z.ZodOptional<z.ZodBoolean>;
1987
- forms: z.ZodArray<z.ZodObject<{
1988
- 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, {
1989
1016
  id: string;
1990
1017
  description: string;
1991
1018
  defaultMessage: string;
1992
1019
  }>;
1993
- version: z.ZodObject<{
1994
- id: z.ZodString;
1995
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1996
- id: string;
1997
- description: string;
1998
- defaultMessage: string;
1999
- }>;
2000
- }, "strip", z.ZodTypeAny, {
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: {
2001
1033
  id: string;
2002
- label: TranslationConfig;
2003
- }, {
1034
+ description: string;
1035
+ defaultMessage: string;
1036
+ };
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, {
2004
1043
  id: string;
2005
- label: {
2006
- id: string;
2007
- description: string;
2008
- defaultMessage: string;
2009
- };
1044
+ description: string;
1045
+ defaultMessage: string;
2010
1046
  }>;
2011
- active: z.ZodDefault<z.ZodBoolean>;
2012
- pages: z.ZodArray<z.ZodObject<{
2013
- id: z.ZodString;
2014
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2015
- id: string;
2016
- description: string;
2017
- defaultMessage: string;
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>>;
1049
+ }, {
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
+ };
2018
1068
  }>;
2019
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2020
- }, "strip", z.ZodTypeAny, {
2021
- id: string;
2022
- title: TranslationConfig;
2023
- fields: import("./FieldConfig").Inferred[];
2024
- }, {
2025
- id: string;
2026
- title: {
2027
- id: string;
2028
- description: string;
2029
- defaultMessage: string;
2030
- };
2031
- fields: import("./FieldConfig").Inferred[];
2032
- }>, "many">;
2033
- review: z.ZodObject<{
2034
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2035
- id: string;
2036
- description: string;
2037
- defaultMessage: string;
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: {
1096
+ id: string;
1097
+ description: string;
1098
+ defaultMessage: string;
1099
+ };
1100
+ }>;
1101
+ }, "strip", z.ZodTypeAny, {
1102
+ label: TranslationConfig;
1103
+ confirmation: {
1104
+ title: TranslationConfig;
1105
+ body: TranslationConfig;
1106
+ };
1107
+ }, {
1108
+ label: {
1109
+ id: string;
1110
+ description: string;
1111
+ defaultMessage: string;
1112
+ };
1113
+ confirmation: {
1114
+ title: {
1115
+ id: string;
1116
+ description: string;
1117
+ defaultMessage: string;
1118
+ };
1119
+ body: {
1120
+ id: string;
1121
+ description: string;
1122
+ defaultMessage: string;
1123
+ };
1124
+ };
2038
1125
  }>;
2039
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2040
1126
  }, "strip", z.ZodTypeAny, {
2041
- title: TranslationConfig;
2042
- fields: import("./FieldConfig").Inferred[];
1127
+ verify: {
1128
+ label: TranslationConfig;
1129
+ };
1130
+ cancel: {
1131
+ label: TranslationConfig;
1132
+ confirmation: {
1133
+ title: TranslationConfig;
1134
+ body: TranslationConfig;
1135
+ };
1136
+ };
2043
1137
  }, {
2044
- title: {
2045
- id: string;
2046
- description: string;
2047
- defaultMessage: string;
1138
+ verify: {
1139
+ label: {
1140
+ id: string;
1141
+ description: string;
1142
+ defaultMessage: string;
1143
+ };
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;
1161
+ };
1162
+ };
2048
1163
  };
2049
- fields: import("./FieldConfig").Inferred[];
2050
1164
  }>;
2051
- }, "strip", z.ZodTypeAny, {
2052
- active: boolean;
2053
- version: {
2054
- id: string;
2055
- label: TranslationConfig;
1165
+ }>, "strip", z.ZodTypeAny, {
1166
+ type: "VERIFICATION";
1167
+ id: 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
+ };
1179
+ };
2056
1180
  };
2057
- label: TranslationConfig;
2058
- pages: {
1181
+ fields: import("./FieldConfig").Inferred[];
1182
+ conditional?: import(".").JSONSchema | undefined;
1183
+ }, {
1184
+ type: "VERIFICATION";
1185
+ id: string;
1186
+ title: {
2059
1187
  id: string;
2060
- title: TranslationConfig;
2061
- fields: import("./FieldConfig").Inferred[];
2062
- }[];
2063
- review: {
2064
- title: TranslationConfig;
2065
- fields: import("./FieldConfig").Inferred[];
1188
+ description: string;
1189
+ defaultMessage: string;
2066
1190
  };
1191
+ actions: {
1192
+ verify: {
1193
+ label: {
1194
+ id: string;
1195
+ description: string;
1196
+ defaultMessage: string;
1197
+ };
1198
+ };
1199
+ cancel: {
1200
+ label: {
1201
+ id: string;
1202
+ description: string;
1203
+ defaultMessage: string;
1204
+ };
1205
+ confirmation: {
1206
+ title: {
1207
+ id: string;
1208
+ description: string;
1209
+ defaultMessage: string;
1210
+ };
1211
+ body: {
1212
+ id: string;
1213
+ description: string;
1214
+ defaultMessage: string;
1215
+ };
1216
+ };
1217
+ };
1218
+ };
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, {
1225
+ id: string;
1226
+ description: string;
1227
+ defaultMessage: string;
1228
+ }>;
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>>;
2067
1231
  }, {
2068
- version: {
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: {
2069
1242
  id: string;
2070
- label: {
2071
- id: string;
2072
- description: string;
2073
- defaultMessage: string;
2074
- };
1243
+ description: string;
1244
+ defaultMessage: string;
2075
1245
  };
2076
- label: {
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, {
2077
1252
  id: string;
2078
1253
  description: string;
2079
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, {
1286
+ id: string;
1287
+ description: string;
1288
+ defaultMessage: string;
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: {
1300
+ id: string;
1301
+ description: string;
1302
+ defaultMessage: string;
1303
+ };
1304
+ body: {
1305
+ id: string;
1306
+ description: string;
1307
+ defaultMessage: string;
1308
+ };
1309
+ }>;
1310
+ }, "strip", z.ZodTypeAny, {
1311
+ label: TranslationConfig;
1312
+ confirmation: {
1313
+ title: TranslationConfig;
1314
+ body: TranslationConfig;
1315
+ };
1316
+ }, {
1317
+ label: {
1318
+ id: string;
1319
+ description: string;
1320
+ defaultMessage: string;
1321
+ };
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;
1332
+ };
1333
+ };
1334
+ }>;
1335
+ }, "strip", z.ZodTypeAny, {
1336
+ verify: {
1337
+ label: TranslationConfig;
1338
+ };
1339
+ cancel: {
1340
+ label: TranslationConfig;
1341
+ confirmation: {
1342
+ title: TranslationConfig;
1343
+ body: TranslationConfig;
1344
+ };
1345
+ };
1346
+ }, {
1347
+ verify: {
1348
+ label: {
1349
+ id: string;
1350
+ description: string;
1351
+ defaultMessage: string;
1352
+ };
1353
+ };
1354
+ cancel: {
1355
+ label: {
1356
+ id: string;
1357
+ description: string;
1358
+ defaultMessage: string;
1359
+ };
1360
+ confirmation: {
1361
+ title: {
1362
+ id: string;
1363
+ description: string;
1364
+ defaultMessage: string;
1365
+ };
1366
+ body: {
1367
+ id: string;
1368
+ description: string;
1369
+ defaultMessage: string;
1370
+ };
1371
+ };
1372
+ };
1373
+ }>;
1374
+ }>, "strip", z.ZodTypeAny, {
1375
+ type: "VERIFICATION";
1376
+ id: string;
1377
+ title: TranslationConfig;
1378
+ actions: {
1379
+ verify: {
1380
+ label: TranslationConfig;
1381
+ };
1382
+ cancel: {
1383
+ label: TranslationConfig;
1384
+ confirmation: {
1385
+ title: TranslationConfig;
1386
+ body: TranslationConfig;
1387
+ };
1388
+ };
2080
1389
  };
2081
- pages: {
1390
+ fields: import("./FieldConfig").Inferred[];
1391
+ conditional?: import(".").JSONSchema | undefined;
1392
+ }, {
1393
+ type: "VERIFICATION";
1394
+ id: string;
1395
+ title: {
2082
1396
  id: string;
2083
- title: {
2084
- id: string;
2085
- description: string;
2086
- defaultMessage: string;
1397
+ description: string;
1398
+ defaultMessage: string;
1399
+ };
1400
+ actions: {
1401
+ verify: {
1402
+ label: {
1403
+ id: string;
1404
+ description: string;
1405
+ defaultMessage: string;
1406
+ };
1407
+ };
1408
+ cancel: {
1409
+ label: {
1410
+ id: string;
1411
+ description: string;
1412
+ defaultMessage: string;
1413
+ };
1414
+ confirmation: {
1415
+ title: {
1416
+ id: string;
1417
+ description: string;
1418
+ defaultMessage: string;
1419
+ };
1420
+ body: {
1421
+ id: string;
1422
+ description: string;
1423
+ defaultMessage: string;
1424
+ };
1425
+ };
1426
+ };
1427
+ };
1428
+ fields: import("./FieldConfig").InferredInput[];
1429
+ conditional?: import(".").JSONSchema | undefined;
1430
+ }>)[]>, "many">;
1431
+ }>, "strip", z.ZodTypeAny, {
1432
+ type: "REQUEST_CORRECTION";
1433
+ conditionals: ({
1434
+ type: "SHOW";
1435
+ conditional: import(".").JSONSchema;
1436
+ } | {
1437
+ type: "ENABLE";
1438
+ conditional: import(".").JSONSchema;
1439
+ })[];
1440
+ label: TranslationConfig;
1441
+ onboardingForm: ({
1442
+ type: "FORM";
1443
+ id: string;
1444
+ title: TranslationConfig;
1445
+ fields: import("./FieldConfig").Inferred[];
1446
+ conditional?: import(".").JSONSchema | undefined;
1447
+ } | {
1448
+ type: "VERIFICATION";
1449
+ id: string;
1450
+ title: TranslationConfig;
1451
+ actions: {
1452
+ verify: {
1453
+ label: TranslationConfig;
2087
1454
  };
2088
- fields: import("./FieldConfig").Inferred[];
2089
- }[];
2090
- review: {
2091
- title: {
2092
- id: string;
2093
- description: string;
2094
- defaultMessage: string;
1455
+ cancel: {
1456
+ label: TranslationConfig;
1457
+ confirmation: {
1458
+ title: TranslationConfig;
1459
+ body: TranslationConfig;
1460
+ };
1461
+ };
1462
+ };
1463
+ fields: import("./FieldConfig").Inferred[];
1464
+ conditional?: import(".").JSONSchema | undefined;
1465
+ })[];
1466
+ additionalDetailsForm: ({
1467
+ type: "FORM";
1468
+ id: string;
1469
+ title: TranslationConfig;
1470
+ fields: import("./FieldConfig").Inferred[];
1471
+ conditional?: import(".").JSONSchema | undefined;
1472
+ } | {
1473
+ type: "VERIFICATION";
1474
+ id: string;
1475
+ title: TranslationConfig;
1476
+ actions: {
1477
+ verify: {
1478
+ label: TranslationConfig;
1479
+ };
1480
+ cancel: {
1481
+ label: TranslationConfig;
1482
+ confirmation: {
1483
+ title: TranslationConfig;
1484
+ body: TranslationConfig;
1485
+ };
2095
1486
  };
2096
- fields: import("./FieldConfig").Inferred[];
2097
1487
  };
2098
- active?: boolean | undefined;
2099
- }>, "many">;
1488
+ fields: import("./FieldConfig").Inferred[];
1489
+ conditional?: import(".").JSONSchema | undefined;
1490
+ })[];
1491
+ draft?: boolean | undefined;
2100
1492
  }, {
2101
- type: z.ZodLiteral<"REQUEST_CORRECTION">;
2102
- onboardingForm: z.ZodArray<z.ZodObject<{
2103
- id: z.ZodString;
2104
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1493
+ type: "REQUEST_CORRECTION";
1494
+ label: {
1495
+ id: string;
1496
+ description: string;
1497
+ defaultMessage: string;
1498
+ };
1499
+ onboardingForm: ({
1500
+ id: string;
1501
+ title: {
2105
1502
  id: string;
2106
1503
  description: string;
2107
1504
  defaultMessage: string;
2108
- }>;
2109
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1505
+ };
1506
+ fields: import("./FieldConfig").InferredInput[];
1507
+ type?: "FORM" | undefined;
1508
+ conditional?: import(".").JSONSchema | undefined;
1509
+ } | {
1510
+ type: "VERIFICATION";
1511
+ id: string;
1512
+ title: {
1513
+ id: string;
1514
+ description: string;
1515
+ defaultMessage: string;
1516
+ };
1517
+ actions: {
1518
+ verify: {
1519
+ label: {
1520
+ id: string;
1521
+ description: string;
1522
+ defaultMessage: string;
1523
+ };
1524
+ };
1525
+ cancel: {
1526
+ label: {
1527
+ id: string;
1528
+ description: string;
1529
+ defaultMessage: string;
1530
+ };
1531
+ confirmation: {
1532
+ title: {
1533
+ id: string;
1534
+ description: string;
1535
+ defaultMessage: string;
1536
+ };
1537
+ body: {
1538
+ id: string;
1539
+ description: string;
1540
+ defaultMessage: string;
1541
+ };
1542
+ };
1543
+ };
1544
+ };
1545
+ fields: import("./FieldConfig").InferredInput[];
1546
+ conditional?: import(".").JSONSchema | undefined;
1547
+ })[];
1548
+ additionalDetailsForm: ({
1549
+ id: string;
1550
+ title: {
1551
+ id: string;
1552
+ description: string;
1553
+ defaultMessage: string;
1554
+ };
1555
+ fields: import("./FieldConfig").InferredInput[];
1556
+ type?: "FORM" | undefined;
1557
+ conditional?: import(".").JSONSchema | undefined;
1558
+ } | {
1559
+ type: "VERIFICATION";
1560
+ id: string;
1561
+ title: {
1562
+ id: string;
1563
+ description: string;
1564
+ defaultMessage: string;
1565
+ };
1566
+ actions: {
1567
+ verify: {
1568
+ label: {
1569
+ id: string;
1570
+ description: string;
1571
+ defaultMessage: string;
1572
+ };
1573
+ };
1574
+ cancel: {
1575
+ label: {
1576
+ id: string;
1577
+ description: string;
1578
+ defaultMessage: string;
1579
+ };
1580
+ confirmation: {
1581
+ title: {
1582
+ id: string;
1583
+ description: string;
1584
+ defaultMessage: string;
1585
+ };
1586
+ body: {
1587
+ id: string;
1588
+ description: string;
1589
+ defaultMessage: string;
1590
+ };
1591
+ };
1592
+ };
1593
+ };
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>;
2110
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: {
2111
1648
  id: string;
2112
- title: TranslationConfig;
2113
- fields: import("./FieldConfig").Inferred[];
2114
- }, {
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, {
2115
1663
  id: string;
2116
- title: {
2117
- id: string;
2118
- description: string;
2119
- defaultMessage: string;
2120
- };
2121
- fields: import("./FieldConfig").Inferred[];
2122
- }>, "many">;
2123
- additionalDetailsForm: z.ZodArray<z.ZodObject<{
2124
- id: z.ZodString;
2125
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2126
- id: string;
2127
- description: string;
2128
- defaultMessage: string;
2129
- }>;
2130
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
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>;
2131
1670
  }, "strip", z.ZodTypeAny, {
2132
- id: string;
2133
- title: TranslationConfig;
2134
- fields: import("./FieldConfig").Inferred[];
1671
+ type: "SHOW";
1672
+ conditional: import(".").JSONSchema;
2135
1673
  }, {
2136
- id: string;
2137
- title: {
2138
- id: string;
2139
- description: string;
2140
- defaultMessage: string;
2141
- };
2142
- fields: import("./FieldConfig").Inferred[];
2143
- }>, "many">;
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">;
2144
1689
  }>, "strip", z.ZodTypeAny, {
2145
- type: "REQUEST_CORRECTION";
1690
+ type: "APPROVE_CORRECTION";
2146
1691
  conditionals: ({
2147
1692
  type: "SHOW";
2148
1693
  conditional: import(".").JSONSchema;
@@ -2151,92 +1696,14 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2151
1696
  conditional: import(".").JSONSchema;
2152
1697
  })[];
2153
1698
  label: TranslationConfig;
2154
- forms: {
2155
- active: boolean;
2156
- version: {
2157
- id: string;
2158
- label: TranslationConfig;
2159
- };
2160
- label: TranslationConfig;
2161
- pages: {
2162
- id: string;
2163
- title: TranslationConfig;
2164
- fields: import("./FieldConfig").Inferred[];
2165
- }[];
2166
- review: {
2167
- title: TranslationConfig;
2168
- fields: import("./FieldConfig").Inferred[];
2169
- };
2170
- }[];
2171
- onboardingForm: {
2172
- id: string;
2173
- title: TranslationConfig;
2174
- fields: import("./FieldConfig").Inferred[];
2175
- }[];
2176
- additionalDetailsForm: {
2177
- id: string;
2178
- title: TranslationConfig;
2179
- fields: import("./FieldConfig").Inferred[];
2180
- }[];
2181
1699
  draft?: boolean | undefined;
2182
1700
  }, {
2183
- type: "REQUEST_CORRECTION";
1701
+ type: "APPROVE_CORRECTION";
2184
1702
  label: {
2185
1703
  id: string;
2186
1704
  description: string;
2187
1705
  defaultMessage: string;
2188
1706
  };
2189
- forms: {
2190
- version: {
2191
- id: string;
2192
- label: {
2193
- id: string;
2194
- description: string;
2195
- defaultMessage: string;
2196
- };
2197
- };
2198
- label: {
2199
- id: string;
2200
- description: string;
2201
- defaultMessage: string;
2202
- };
2203
- pages: {
2204
- id: string;
2205
- title: {
2206
- id: string;
2207
- description: string;
2208
- defaultMessage: string;
2209
- };
2210
- fields: import("./FieldConfig").Inferred[];
2211
- }[];
2212
- review: {
2213
- title: {
2214
- id: string;
2215
- description: string;
2216
- defaultMessage: string;
2217
- };
2218
- fields: import("./FieldConfig").Inferred[];
2219
- };
2220
- active?: boolean | undefined;
2221
- }[];
2222
- onboardingForm: {
2223
- id: string;
2224
- title: {
2225
- id: string;
2226
- description: string;
2227
- defaultMessage: string;
2228
- };
2229
- fields: import("./FieldConfig").Inferred[];
2230
- }[];
2231
- additionalDetailsForm: {
2232
- id: string;
2233
- title: {
2234
- id: string;
2235
- description: string;
2236
- defaultMessage: string;
2237
- };
2238
- fields: import("./FieldConfig").Inferred[];
2239
- }[];
2240
1707
  draft?: boolean | undefined;
2241
1708
  conditionals?: ({
2242
1709
  type: "SHOW";
@@ -2246,7 +1713,13 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2246
1713
  conditional: import(".").JSONSchema;
2247
1714
  })[] | undefined;
2248
1715
  }>;
2249
- 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<{
2250
1723
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2251
1724
  id: string;
2252
1725
  description: string;
@@ -2272,123 +1745,28 @@ declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2272
1745
  conditional: import(".").JSONSchema;
2273
1746
  }>]>, "many">>>;
2274
1747
  draft: z.ZodOptional<z.ZodBoolean>;
2275
- forms: z.ZodArray<z.ZodObject<{
2276
- 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, {
2277
1752
  id: string;
2278
1753
  description: string;
2279
1754
  defaultMessage: string;
2280
1755
  }>;
2281
- version: z.ZodObject<{
2282
- id: z.ZodString;
2283
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2284
- id: string;
2285
- description: string;
2286
- defaultMessage: string;
2287
- }>;
2288
- }, "strip", z.ZodTypeAny, {
2289
- id: string;
2290
- label: TranslationConfig;
2291
- }, {
2292
- id: string;
2293
- label: {
2294
- id: string;
2295
- description: string;
2296
- defaultMessage: string;
2297
- };
2298
- }>;
2299
- active: z.ZodDefault<z.ZodBoolean>;
2300
- pages: z.ZodArray<z.ZodObject<{
2301
- id: z.ZodString;
2302
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2303
- id: string;
2304
- description: string;
2305
- defaultMessage: string;
2306
- }>;
2307
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2308
- }, "strip", z.ZodTypeAny, {
2309
- id: string;
2310
- title: TranslationConfig;
2311
- fields: import("./FieldConfig").Inferred[];
2312
- }, {
2313
- id: string;
2314
- title: {
2315
- id: string;
2316
- description: string;
2317
- defaultMessage: string;
2318
- };
2319
- fields: import("./FieldConfig").Inferred[];
2320
- }>, "many">;
2321
- review: z.ZodObject<{
2322
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2323
- id: string;
2324
- description: string;
2325
- defaultMessage: string;
2326
- }>;
2327
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2328
- }, "strip", z.ZodTypeAny, {
2329
- title: TranslationConfig;
2330
- fields: import("./FieldConfig").Inferred[];
2331
- }, {
2332
- title: {
2333
- id: string;
2334
- description: string;
2335
- defaultMessage: string;
2336
- };
2337
- fields: import("./FieldConfig").Inferred[];
2338
- }>;
1756
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
2339
1757
  }, "strip", z.ZodTypeAny, {
2340
- active: boolean;
2341
- version: {
2342
- id: string;
2343
- label: TranslationConfig;
2344
- };
2345
- label: TranslationConfig;
2346
- pages: {
2347
- id: string;
2348
- title: TranslationConfig;
2349
- fields: import("./FieldConfig").Inferred[];
2350
- }[];
2351
- review: {
2352
- title: TranslationConfig;
2353
- fields: import("./FieldConfig").Inferred[];
2354
- };
1758
+ title: TranslationConfig;
1759
+ fields: import("./FieldConfig").Inferred[];
2355
1760
  }, {
2356
- version: {
2357
- id: string;
2358
- label: {
2359
- id: string;
2360
- description: string;
2361
- defaultMessage: string;
2362
- };
2363
- };
2364
- label: {
1761
+ title: {
2365
1762
  id: string;
2366
1763
  description: string;
2367
1764
  defaultMessage: string;
2368
1765
  };
2369
- pages: {
2370
- id: string;
2371
- title: {
2372
- id: string;
2373
- description: string;
2374
- defaultMessage: string;
2375
- };
2376
- fields: import("./FieldConfig").Inferred[];
2377
- }[];
2378
- review: {
2379
- title: {
2380
- id: string;
2381
- description: string;
2382
- defaultMessage: string;
2383
- };
2384
- fields: import("./FieldConfig").Inferred[];
2385
- };
2386
- active?: boolean | undefined;
2387
- }>, "many">;
2388
- }, {
2389
- type: z.ZodLiteral<"REJECT_CORRECTION">;
1766
+ fields: import("./FieldConfig").InferredInput[];
1767
+ }>;
2390
1768
  }>, "strip", z.ZodTypeAny, {
2391
- type: "REJECT_CORRECTION";
1769
+ type: "DECLARE";
2392
1770
  conditionals: ({
2393
1771
  type: "SHOW";
2394
1772
  conditional: import(".").JSONSchema;
@@ -2397,64 +1775,26 @@ declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2397
1775
  conditional: import(".").JSONSchema;
2398
1776
  })[];
2399
1777
  label: TranslationConfig;
2400
- forms: {
2401
- active: boolean;
2402
- version: {
2403
- id: string;
2404
- label: TranslationConfig;
2405
- };
2406
- label: TranslationConfig;
2407
- pages: {
2408
- id: string;
2409
- title: TranslationConfig;
2410
- fields: import("./FieldConfig").Inferred[];
2411
- }[];
2412
- review: {
2413
- title: TranslationConfig;
2414
- fields: import("./FieldConfig").Inferred[];
2415
- };
2416
- }[];
1778
+ review: {
1779
+ title: TranslationConfig;
1780
+ fields: import("./FieldConfig").Inferred[];
1781
+ };
2417
1782
  draft?: boolean | undefined;
2418
1783
  }, {
2419
- type: "REJECT_CORRECTION";
1784
+ type: "DECLARE";
2420
1785
  label: {
2421
1786
  id: string;
2422
1787
  description: string;
2423
1788
  defaultMessage: string;
2424
1789
  };
2425
- forms: {
2426
- version: {
2427
- id: string;
2428
- label: {
2429
- id: string;
2430
- description: string;
2431
- defaultMessage: string;
2432
- };
2433
- };
2434
- label: {
1790
+ review: {
1791
+ title: {
2435
1792
  id: string;
2436
1793
  description: string;
2437
1794
  defaultMessage: string;
2438
1795
  };
2439
- pages: {
2440
- id: string;
2441
- title: {
2442
- id: string;
2443
- description: string;
2444
- defaultMessage: string;
2445
- };
2446
- fields: import("./FieldConfig").Inferred[];
2447
- }[];
2448
- review: {
2449
- title: {
2450
- id: string;
2451
- description: string;
2452
- defaultMessage: string;
2453
- };
2454
- fields: import("./FieldConfig").Inferred[];
2455
- };
2456
- active?: boolean | undefined;
2457
- }[];
1796
+ fields: import("./FieldConfig").InferredInput[];
1797
+ };
2458
1798
  draft?: boolean | undefined;
2459
1799
  conditionals?: ({
2460
1800
  type: "SHOW";
@@ -2463,8 +1803,7 @@ declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2463
1803
  type: "ENABLE";
2464
1804
  conditional: import(".").JSONSchema;
2465
1805
  })[] | undefined;
2466
- }>;
2467
- declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
1806
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2468
1807
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2469
1808
  id: string;
2470
1809
  description: string;
@@ -2490,123 +1829,28 @@ declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2490
1829
  conditional: import(".").JSONSchema;
2491
1830
  }>]>, "many">>>;
2492
1831
  draft: z.ZodOptional<z.ZodBoolean>;
2493
- forms: z.ZodArray<z.ZodObject<{
2494
- 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, {
2495
1836
  id: string;
2496
1837
  description: string;
2497
1838
  defaultMessage: string;
2498
1839
  }>;
2499
- version: z.ZodObject<{
2500
- id: z.ZodString;
2501
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2502
- id: string;
2503
- description: string;
2504
- defaultMessage: string;
2505
- }>;
2506
- }, "strip", z.ZodTypeAny, {
2507
- id: string;
2508
- label: TranslationConfig;
2509
- }, {
2510
- id: string;
2511
- label: {
2512
- id: string;
2513
- description: string;
2514
- defaultMessage: string;
2515
- };
2516
- }>;
2517
- active: z.ZodDefault<z.ZodBoolean>;
2518
- pages: z.ZodArray<z.ZodObject<{
2519
- id: z.ZodString;
2520
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2521
- id: string;
2522
- description: string;
2523
- defaultMessage: string;
2524
- }>;
2525
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2526
- }, "strip", z.ZodTypeAny, {
2527
- id: string;
2528
- title: TranslationConfig;
2529
- fields: import("./FieldConfig").Inferred[];
2530
- }, {
2531
- id: string;
2532
- title: {
2533
- id: string;
2534
- description: string;
2535
- defaultMessage: string;
2536
- };
2537
- fields: import("./FieldConfig").Inferred[];
2538
- }>, "many">;
2539
- review: z.ZodObject<{
2540
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2541
- id: string;
2542
- description: string;
2543
- defaultMessage: string;
2544
- }>;
2545
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2546
- }, "strip", z.ZodTypeAny, {
2547
- title: TranslationConfig;
2548
- fields: import("./FieldConfig").Inferred[];
2549
- }, {
2550
- title: {
2551
- id: string;
2552
- description: string;
2553
- defaultMessage: string;
2554
- };
2555
- fields: import("./FieldConfig").Inferred[];
2556
- }>;
1840
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
2557
1841
  }, "strip", z.ZodTypeAny, {
2558
- active: boolean;
2559
- version: {
2560
- id: string;
2561
- label: TranslationConfig;
2562
- };
2563
- label: TranslationConfig;
2564
- pages: {
2565
- id: string;
2566
- title: TranslationConfig;
2567
- fields: import("./FieldConfig").Inferred[];
2568
- }[];
2569
- review: {
2570
- title: TranslationConfig;
2571
- fields: import("./FieldConfig").Inferred[];
2572
- };
1842
+ title: TranslationConfig;
1843
+ fields: import("./FieldConfig").Inferred[];
2573
1844
  }, {
2574
- version: {
2575
- id: string;
2576
- label: {
2577
- id: string;
2578
- description: string;
2579
- defaultMessage: string;
2580
- };
2581
- };
2582
- label: {
1845
+ title: {
2583
1846
  id: string;
2584
1847
  description: string;
2585
1848
  defaultMessage: string;
2586
1849
  };
2587
- pages: {
2588
- id: string;
2589
- title: {
2590
- id: string;
2591
- description: string;
2592
- defaultMessage: string;
2593
- };
2594
- fields: import("./FieldConfig").Inferred[];
2595
- }[];
2596
- review: {
2597
- title: {
2598
- id: string;
2599
- description: string;
2600
- defaultMessage: string;
2601
- };
2602
- fields: import("./FieldConfig").Inferred[];
2603
- };
2604
- active?: boolean | undefined;
2605
- }>, "many">;
2606
- }, {
2607
- type: z.ZodLiteral<"APPROVE_CORRECTION">;
1850
+ fields: import("./FieldConfig").InferredInput[];
1851
+ }>;
2608
1852
  }>, "strip", z.ZodTypeAny, {
2609
- type: "APPROVE_CORRECTION";
1853
+ type: "VALIDATE";
2610
1854
  conditionals: ({
2611
1855
  type: "SHOW";
2612
1856
  conditional: import(".").JSONSchema;
@@ -2615,64 +1859,26 @@ declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2615
1859
  conditional: import(".").JSONSchema;
2616
1860
  })[];
2617
1861
  label: TranslationConfig;
2618
- forms: {
2619
- active: boolean;
2620
- version: {
2621
- id: string;
2622
- label: TranslationConfig;
2623
- };
2624
- label: TranslationConfig;
2625
- pages: {
2626
- id: string;
2627
- title: TranslationConfig;
2628
- fields: import("./FieldConfig").Inferred[];
2629
- }[];
2630
- review: {
2631
- title: TranslationConfig;
2632
- fields: import("./FieldConfig").Inferred[];
2633
- };
2634
- }[];
1862
+ review: {
1863
+ title: TranslationConfig;
1864
+ fields: import("./FieldConfig").Inferred[];
1865
+ };
2635
1866
  draft?: boolean | undefined;
2636
1867
  }, {
2637
- type: "APPROVE_CORRECTION";
1868
+ type: "VALIDATE";
2638
1869
  label: {
2639
1870
  id: string;
2640
1871
  description: string;
2641
1872
  defaultMessage: string;
2642
1873
  };
2643
- forms: {
2644
- version: {
2645
- id: string;
2646
- label: {
2647
- id: string;
2648
- description: string;
2649
- defaultMessage: string;
2650
- };
2651
- };
2652
- label: {
1874
+ review: {
1875
+ title: {
2653
1876
  id: string;
2654
1877
  description: string;
2655
1878
  defaultMessage: string;
2656
1879
  };
2657
- pages: {
2658
- id: string;
2659
- title: {
2660
- id: string;
2661
- description: string;
2662
- defaultMessage: string;
2663
- };
2664
- fields: import("./FieldConfig").Inferred[];
2665
- }[];
2666
- review: {
2667
- title: {
2668
- id: string;
2669
- description: string;
2670
- defaultMessage: string;
2671
- };
2672
- fields: import("./FieldConfig").Inferred[];
2673
- };
2674
- active?: boolean | undefined;
2675
- }[];
1880
+ fields: import("./FieldConfig").InferredInput[];
1881
+ };
2676
1882
  draft?: boolean | undefined;
2677
1883
  conditionals?: ({
2678
1884
  type: "SHOW";
@@ -2681,8 +1887,7 @@ declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2681
1887
  type: "ENABLE";
2682
1888
  conditional: import(".").JSONSchema;
2683
1889
  })[] | undefined;
2684
- }>;
2685
- declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
1890
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2686
1891
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2687
1892
  id: string;
2688
1893
  description: string;
@@ -2708,123 +1913,28 @@ declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
2708
1913
  conditional: import(".").JSONSchema;
2709
1914
  }>]>, "many">>>;
2710
1915
  draft: z.ZodOptional<z.ZodBoolean>;
2711
- forms: z.ZodArray<z.ZodObject<{
2712
- 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, {
2713
1920
  id: string;
2714
1921
  description: string;
2715
1922
  defaultMessage: string;
2716
1923
  }>;
2717
- version: z.ZodObject<{
2718
- id: z.ZodString;
2719
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2720
- id: string;
2721
- description: string;
2722
- defaultMessage: string;
2723
- }>;
2724
- }, "strip", z.ZodTypeAny, {
2725
- id: string;
2726
- label: TranslationConfig;
2727
- }, {
2728
- id: string;
2729
- label: {
2730
- id: string;
2731
- description: string;
2732
- defaultMessage: string;
2733
- };
2734
- }>;
2735
- active: z.ZodDefault<z.ZodBoolean>;
2736
- pages: z.ZodArray<z.ZodObject<{
2737
- id: z.ZodString;
2738
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2739
- id: string;
2740
- description: string;
2741
- defaultMessage: string;
2742
- }>;
2743
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2744
- }, "strip", z.ZodTypeAny, {
2745
- id: string;
2746
- title: TranslationConfig;
2747
- fields: import("./FieldConfig").Inferred[];
2748
- }, {
2749
- id: string;
2750
- title: {
2751
- id: string;
2752
- description: string;
2753
- defaultMessage: string;
2754
- };
2755
- fields: import("./FieldConfig").Inferred[];
2756
- }>, "many">;
2757
- review: z.ZodObject<{
2758
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2759
- id: string;
2760
- description: string;
2761
- defaultMessage: string;
2762
- }>;
2763
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2764
- }, "strip", z.ZodTypeAny, {
2765
- title: TranslationConfig;
2766
- fields: import("./FieldConfig").Inferred[];
2767
- }, {
2768
- title: {
2769
- id: string;
2770
- description: string;
2771
- defaultMessage: string;
2772
- };
2773
- fields: import("./FieldConfig").Inferred[];
2774
- }>;
1924
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
2775
1925
  }, "strip", z.ZodTypeAny, {
2776
- active: boolean;
2777
- version: {
2778
- id: string;
2779
- label: TranslationConfig;
2780
- };
2781
- label: TranslationConfig;
2782
- pages: {
2783
- id: string;
2784
- title: TranslationConfig;
2785
- fields: import("./FieldConfig").Inferred[];
2786
- }[];
2787
- review: {
2788
- title: TranslationConfig;
2789
- fields: import("./FieldConfig").Inferred[];
2790
- };
1926
+ title: TranslationConfig;
1927
+ fields: import("./FieldConfig").Inferred[];
2791
1928
  }, {
2792
- version: {
2793
- id: string;
2794
- label: {
2795
- id: string;
2796
- description: string;
2797
- defaultMessage: string;
2798
- };
2799
- };
2800
- label: {
1929
+ title: {
2801
1930
  id: string;
2802
1931
  description: string;
2803
1932
  defaultMessage: string;
2804
1933
  };
2805
- pages: {
2806
- id: string;
2807
- title: {
2808
- id: string;
2809
- description: string;
2810
- defaultMessage: string;
2811
- };
2812
- fields: import("./FieldConfig").Inferred[];
2813
- }[];
2814
- review: {
2815
- title: {
2816
- id: string;
2817
- description: string;
2818
- defaultMessage: string;
2819
- };
2820
- fields: import("./FieldConfig").Inferred[];
2821
- };
2822
- active?: boolean | undefined;
2823
- }>, "many">;
2824
- }, {
2825
- type: z.ZodLiteral<"CUSTOM">;
1934
+ fields: import("./FieldConfig").InferredInput[];
1935
+ }>;
2826
1936
  }>, "strip", z.ZodTypeAny, {
2827
- type: "CUSTOM";
1937
+ type: "REGISTER";
2828
1938
  conditionals: ({
2829
1939
  type: "SHOW";
2830
1940
  conditional: import(".").JSONSchema;
@@ -2833,64 +1943,26 @@ declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
2833
1943
  conditional: import(".").JSONSchema;
2834
1944
  })[];
2835
1945
  label: TranslationConfig;
2836
- forms: {
2837
- active: boolean;
2838
- version: {
2839
- id: string;
2840
- label: TranslationConfig;
2841
- };
2842
- label: TranslationConfig;
2843
- pages: {
2844
- id: string;
2845
- title: TranslationConfig;
2846
- fields: import("./FieldConfig").Inferred[];
2847
- }[];
2848
- review: {
2849
- title: TranslationConfig;
2850
- fields: import("./FieldConfig").Inferred[];
2851
- };
2852
- }[];
1946
+ review: {
1947
+ title: TranslationConfig;
1948
+ fields: import("./FieldConfig").Inferred[];
1949
+ };
2853
1950
  draft?: boolean | undefined;
2854
1951
  }, {
2855
- type: "CUSTOM";
1952
+ type: "REGISTER";
2856
1953
  label: {
2857
1954
  id: string;
2858
1955
  description: string;
2859
1956
  defaultMessage: string;
2860
1957
  };
2861
- forms: {
2862
- version: {
2863
- id: string;
2864
- label: {
2865
- id: string;
2866
- description: string;
2867
- defaultMessage: string;
2868
- };
2869
- };
2870
- label: {
1958
+ review: {
1959
+ title: {
2871
1960
  id: string;
2872
1961
  description: string;
2873
1962
  defaultMessage: string;
2874
1963
  };
2875
- pages: {
2876
- id: string;
2877
- title: {
2878
- id: string;
2879
- description: string;
2880
- defaultMessage: string;
2881
- };
2882
- fields: import("./FieldConfig").Inferred[];
2883
- }[];
2884
- review: {
2885
- title: {
2886
- id: string;
2887
- description: string;
2888
- defaultMessage: string;
2889
- };
2890
- fields: import("./FieldConfig").Inferred[];
2891
- };
2892
- active?: boolean | undefined;
2893
- }[];
1964
+ fields: import("./FieldConfig").InferredInput[];
1965
+ };
2894
1966
  draft?: boolean | undefined;
2895
1967
  conditionals?: ({
2896
1968
  type: "SHOW";
@@ -2899,12 +1971,7 @@ declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
2899
1971
  type: "ENABLE";
2900
1972
  conditional: import(".").JSONSchema;
2901
1973
  })[] | undefined;
2902
- }>;
2903
- /** @knipignore */
2904
- 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;
2905
- /** @knipignore */
2906
- 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>;
2907
- export declare const ActionConfig: z.ZodDiscriminatedUnion<"type", AllActionConfigFields[]>;
2908
- export type ActionConfig = InferredActionConfig;
1974
+ }>]>;
1975
+ export type DeclarationActionConfig = z.infer<typeof DeclarationActionConfig>;
2909
1976
  export {};
2910
1977
  //# sourceMappingURL=ActionConfig.d.ts.map