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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +6676 -9341
  3. package/dist/commons/conditionals/conditionals.d.ts +26 -3
  4. package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
  5. package/dist/commons/conditionals/validate.d.ts +41 -17
  6. package/dist/commons/conditionals/validate.test.d.ts +2 -0
  7. package/dist/commons/events/ActionConfig.d.ts +1123 -2074
  8. package/dist/commons/events/ActionDocument.d.ts +9488 -312
  9. package/dist/commons/events/ActionInput.d.ts +5328 -471
  10. package/dist/commons/events/ActionType.d.ts +26 -11
  11. package/dist/commons/events/CompositeFieldValue.d.ts +152 -2
  12. package/dist/commons/events/Conditional.d.ts +21 -5
  13. package/dist/commons/events/Draft.d.ts +351 -48
  14. package/dist/commons/events/EventConfig.d.ts +551 -1230
  15. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  16. package/dist/commons/events/EventDocument.d.ts +3340 -424
  17. package/dist/commons/events/EventIndex.d.ts +6 -3
  18. package/dist/commons/events/EventMetadata.d.ts +3 -0
  19. package/dist/commons/events/FieldConfig.d.ts +526 -74
  20. package/dist/commons/events/FieldType.d.ts +2 -1
  21. package/dist/commons/events/FieldTypeMapping.d.ts +124 -3
  22. package/dist/commons/events/FieldValue.d.ts +76 -2
  23. package/dist/commons/events/FormConfig.d.ts +633 -48
  24. package/dist/commons/events/PageConfig.d.ts +335 -0
  25. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  26. package/dist/commons/events/defineConfig.d.ts +91 -222
  27. package/dist/commons/events/index.d.ts +2 -1
  28. package/dist/commons/events/test.utils.d.ts +140 -213
  29. package/dist/commons/events/utils.d.ts +195 -73
  30. package/dist/commons/events/utils.test.d.ts +2 -0
  31. package/dist/conditionals/index.js +166 -81
  32. package/dist/events/index.js +1413 -813
  33. package/package.json +1 -1
@@ -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,126 +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">;
794
- comment: z.ZodString;
795
- isDuplicate: z.ZodBoolean;
287
+ fields: import("./FieldConfig").InferredInput[];
288
+ }>;
796
289
  }>, "strip", z.ZodTypeAny, {
797
- type: "REJECT";
798
- comment: string;
290
+ type: "REGISTER";
799
291
  conditionals: ({
800
292
  type: "SHOW";
801
293
  conditional: import(".").JSONSchema;
@@ -804,67 +296,26 @@ declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
804
296
  conditional: import(".").JSONSchema;
805
297
  })[];
806
298
  label: TranslationConfig;
807
- forms: {
808
- active: boolean;
809
- version: {
810
- id: string;
811
- label: TranslationConfig;
812
- };
813
- label: TranslationConfig;
814
- pages: {
815
- id: string;
816
- title: TranslationConfig;
817
- fields: import("./FieldConfig").Inferred[];
818
- }[];
819
- review: {
820
- title: TranslationConfig;
821
- fields: import("./FieldConfig").Inferred[];
822
- };
823
- }[];
824
- isDuplicate: boolean;
299
+ review: {
300
+ title: TranslationConfig;
301
+ fields: import("./FieldConfig").Inferred[];
302
+ };
825
303
  draft?: boolean | undefined;
826
304
  }, {
827
- type: "REJECT";
828
- comment: string;
305
+ type: "REGISTER";
829
306
  label: {
830
307
  id: string;
831
308
  description: string;
832
309
  defaultMessage: string;
833
310
  };
834
- forms: {
835
- version: {
836
- id: string;
837
- label: {
838
- id: string;
839
- description: string;
840
- defaultMessage: string;
841
- };
842
- };
843
- label: {
311
+ review: {
312
+ title: {
844
313
  id: string;
845
314
  description: string;
846
315
  defaultMessage: string;
847
316
  };
848
- pages: {
849
- id: string;
850
- title: {
851
- id: string;
852
- description: string;
853
- defaultMessage: string;
854
- };
855
- fields: import("./FieldConfig").Inferred[];
856
- }[];
857
- review: {
858
- title: {
859
- id: string;
860
- description: string;
861
- defaultMessage: string;
862
- };
863
- fields: import("./FieldConfig").Inferred[];
864
- };
865
- active?: boolean | undefined;
866
- }[];
867
- isDuplicate: boolean;
317
+ fields: import("./FieldConfig").InferredInput[];
318
+ };
868
319
  draft?: boolean | undefined;
869
320
  conditionals?: ({
870
321
  type: "SHOW";
@@ -874,7 +325,7 @@ declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
874
325
  conditional: import(".").JSONSchema;
875
326
  })[] | undefined;
876
327
  }>;
877
- declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
328
+ declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
878
329
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
879
330
  id: string;
880
331
  description: string;
@@ -900,126 +351,10 @@ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
900
351
  conditional: import(".").JSONSchema;
901
352
  }>]>, "many">>>;
902
353
  draft: z.ZodOptional<z.ZodBoolean>;
903
- forms: z.ZodArray<z.ZodObject<{
904
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
905
- id: string;
906
- description: string;
907
- defaultMessage: string;
908
- }>;
909
- version: z.ZodObject<{
910
- id: z.ZodString;
911
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
912
- id: string;
913
- description: string;
914
- defaultMessage: string;
915
- }>;
916
- }, "strip", z.ZodTypeAny, {
917
- id: string;
918
- label: TranslationConfig;
919
- }, {
920
- id: string;
921
- label: {
922
- id: string;
923
- description: string;
924
- defaultMessage: string;
925
- };
926
- }>;
927
- active: z.ZodDefault<z.ZodBoolean>;
928
- pages: z.ZodArray<z.ZodObject<{
929
- id: z.ZodString;
930
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
931
- id: string;
932
- description: string;
933
- defaultMessage: string;
934
- }>;
935
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
936
- }, "strip", z.ZodTypeAny, {
937
- id: string;
938
- title: TranslationConfig;
939
- fields: import("./FieldConfig").Inferred[];
940
- }, {
941
- id: string;
942
- title: {
943
- id: string;
944
- description: string;
945
- defaultMessage: string;
946
- };
947
- fields: import("./FieldConfig").Inferred[];
948
- }>, "many">;
949
- review: z.ZodObject<{
950
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
951
- id: string;
952
- description: string;
953
- defaultMessage: string;
954
- }>;
955
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
956
- }, "strip", z.ZodTypeAny, {
957
- title: TranslationConfig;
958
- fields: import("./FieldConfig").Inferred[];
959
- }, {
960
- title: {
961
- id: string;
962
- description: string;
963
- defaultMessage: string;
964
- };
965
- fields: import("./FieldConfig").Inferred[];
966
- }>;
967
- }, "strip", z.ZodTypeAny, {
968
- active: boolean;
969
- version: {
970
- id: string;
971
- label: TranslationConfig;
972
- };
973
- label: TranslationConfig;
974
- pages: {
975
- id: string;
976
- title: TranslationConfig;
977
- fields: import("./FieldConfig").Inferred[];
978
- }[];
979
- review: {
980
- title: TranslationConfig;
981
- fields: import("./FieldConfig").Inferred[];
982
- };
983
- }, {
984
- version: {
985
- id: string;
986
- label: {
987
- id: string;
988
- description: string;
989
- defaultMessage: string;
990
- };
991
- };
992
- label: {
993
- id: string;
994
- description: string;
995
- defaultMessage: string;
996
- };
997
- pages: {
998
- id: string;
999
- title: {
1000
- id: string;
1001
- description: string;
1002
- defaultMessage: string;
1003
- };
1004
- fields: import("./FieldConfig").Inferred[];
1005
- }[];
1006
- review: {
1007
- title: {
1008
- id: string;
1009
- description: string;
1010
- defaultMessage: string;
1011
- };
1012
- fields: import("./FieldConfig").Inferred[];
1013
- };
1014
- active?: boolean | undefined;
1015
- }>, "many">;
1016
354
  }, {
1017
- type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1018
- comment: z.ZodString;
1019
- duplicates: z.ZodArray<z.ZodString, "many">;
355
+ type: z.ZodLiteral<"REJECT">;
1020
356
  }>, "strip", z.ZodTypeAny, {
1021
- type: "MARKED_AS_DUPLICATE";
1022
- comment: string;
357
+ type: "REJECT";
1023
358
  conditionals: ({
1024
359
  type: "SHOW";
1025
360
  conditional: import(".").JSONSchema;
@@ -1028,67 +363,14 @@ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
1028
363
  conditional: import(".").JSONSchema;
1029
364
  })[];
1030
365
  label: TranslationConfig;
1031
- forms: {
1032
- active: boolean;
1033
- version: {
1034
- id: string;
1035
- label: TranslationConfig;
1036
- };
1037
- label: TranslationConfig;
1038
- pages: {
1039
- id: string;
1040
- title: TranslationConfig;
1041
- fields: import("./FieldConfig").Inferred[];
1042
- }[];
1043
- review: {
1044
- title: TranslationConfig;
1045
- fields: import("./FieldConfig").Inferred[];
1046
- };
1047
- }[];
1048
- duplicates: string[];
1049
366
  draft?: boolean | undefined;
1050
367
  }, {
1051
- type: "MARKED_AS_DUPLICATE";
1052
- comment: string;
368
+ type: "REJECT";
1053
369
  label: {
1054
370
  id: string;
1055
371
  description: string;
1056
372
  defaultMessage: string;
1057
373
  };
1058
- forms: {
1059
- version: {
1060
- id: string;
1061
- label: {
1062
- id: string;
1063
- description: string;
1064
- defaultMessage: string;
1065
- };
1066
- };
1067
- label: {
1068
- id: string;
1069
- description: string;
1070
- defaultMessage: string;
1071
- };
1072
- pages: {
1073
- id: string;
1074
- title: {
1075
- id: string;
1076
- description: string;
1077
- defaultMessage: string;
1078
- };
1079
- fields: import("./FieldConfig").Inferred[];
1080
- }[];
1081
- review: {
1082
- title: {
1083
- id: string;
1084
- description: string;
1085
- defaultMessage: string;
1086
- };
1087
- fields: import("./FieldConfig").Inferred[];
1088
- };
1089
- active?: boolean | undefined;
1090
- }[];
1091
- duplicates: string[];
1092
374
  draft?: boolean | undefined;
1093
375
  conditionals?: ({
1094
376
  type: "SHOW";
@@ -1098,7 +380,7 @@ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
1098
380
  conditional: import(".").JSONSchema;
1099
381
  })[] | undefined;
1100
382
  }>;
1101
- declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
383
+ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
1102
384
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1103
385
  id: string;
1104
386
  description: string;
@@ -1124,126 +406,10 @@ declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
1124
406
  conditional: import(".").JSONSchema;
1125
407
  }>]>, "many">>>;
1126
408
  draft: z.ZodOptional<z.ZodBoolean>;
1127
- forms: z.ZodArray<z.ZodObject<{
1128
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1129
- id: string;
1130
- description: string;
1131
- defaultMessage: string;
1132
- }>;
1133
- version: z.ZodObject<{
1134
- id: z.ZodString;
1135
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1136
- id: string;
1137
- description: string;
1138
- defaultMessage: string;
1139
- }>;
1140
- }, "strip", z.ZodTypeAny, {
1141
- id: string;
1142
- label: TranslationConfig;
1143
- }, {
1144
- id: string;
1145
- label: {
1146
- id: string;
1147
- description: string;
1148
- defaultMessage: string;
1149
- };
1150
- }>;
1151
- active: z.ZodDefault<z.ZodBoolean>;
1152
- pages: z.ZodArray<z.ZodObject<{
1153
- id: z.ZodString;
1154
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1155
- id: string;
1156
- description: string;
1157
- defaultMessage: string;
1158
- }>;
1159
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1160
- }, "strip", z.ZodTypeAny, {
1161
- id: string;
1162
- title: TranslationConfig;
1163
- fields: import("./FieldConfig").Inferred[];
1164
- }, {
1165
- id: string;
1166
- title: {
1167
- id: string;
1168
- description: string;
1169
- defaultMessage: string;
1170
- };
1171
- fields: import("./FieldConfig").Inferred[];
1172
- }>, "many">;
1173
- review: z.ZodObject<{
1174
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1175
- id: string;
1176
- description: string;
1177
- defaultMessage: string;
1178
- }>;
1179
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1180
- }, "strip", z.ZodTypeAny, {
1181
- title: TranslationConfig;
1182
- fields: import("./FieldConfig").Inferred[];
1183
- }, {
1184
- title: {
1185
- id: string;
1186
- description: string;
1187
- defaultMessage: string;
1188
- };
1189
- fields: import("./FieldConfig").Inferred[];
1190
- }>;
1191
- }, "strip", z.ZodTypeAny, {
1192
- active: boolean;
1193
- version: {
1194
- id: string;
1195
- label: TranslationConfig;
1196
- };
1197
- label: TranslationConfig;
1198
- pages: {
1199
- id: string;
1200
- title: TranslationConfig;
1201
- fields: import("./FieldConfig").Inferred[];
1202
- }[];
1203
- review: {
1204
- title: TranslationConfig;
1205
- fields: import("./FieldConfig").Inferred[];
1206
- };
1207
- }, {
1208
- version: {
1209
- id: string;
1210
- label: {
1211
- id: string;
1212
- description: string;
1213
- defaultMessage: string;
1214
- };
1215
- };
1216
- label: {
1217
- id: string;
1218
- description: string;
1219
- defaultMessage: string;
1220
- };
1221
- pages: {
1222
- id: string;
1223
- title: {
1224
- id: string;
1225
- description: string;
1226
- defaultMessage: string;
1227
- };
1228
- fields: import("./FieldConfig").Inferred[];
1229
- }[];
1230
- review: {
1231
- title: {
1232
- id: string;
1233
- description: string;
1234
- defaultMessage: string;
1235
- };
1236
- fields: import("./FieldConfig").Inferred[];
1237
- };
1238
- active?: boolean | undefined;
1239
- }>, "many">;
1240
409
  }, {
1241
- type: z.ZodLiteral<"ARCHIVE">;
1242
- comment: z.ZodString;
1243
- isDuplicate: z.ZodBoolean;
410
+ type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1244
411
  }>, "strip", z.ZodTypeAny, {
1245
- type: "ARCHIVE";
1246
- comment: string;
412
+ type: "MARKED_AS_DUPLICATE";
1247
413
  conditionals: ({
1248
414
  type: "SHOW";
1249
415
  conditional: import(".").JSONSchema;
@@ -1252,67 +418,14 @@ declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
1252
418
  conditional: import(".").JSONSchema;
1253
419
  })[];
1254
420
  label: TranslationConfig;
1255
- forms: {
1256
- active: boolean;
1257
- version: {
1258
- id: string;
1259
- label: TranslationConfig;
1260
- };
1261
- label: TranslationConfig;
1262
- pages: {
1263
- id: string;
1264
- title: TranslationConfig;
1265
- fields: import("./FieldConfig").Inferred[];
1266
- }[];
1267
- review: {
1268
- title: TranslationConfig;
1269
- fields: import("./FieldConfig").Inferred[];
1270
- };
1271
- }[];
1272
- isDuplicate: boolean;
1273
421
  draft?: boolean | undefined;
1274
422
  }, {
1275
- type: "ARCHIVE";
1276
- comment: string;
423
+ type: "MARKED_AS_DUPLICATE";
1277
424
  label: {
1278
425
  id: string;
1279
426
  description: string;
1280
427
  defaultMessage: string;
1281
428
  };
1282
- forms: {
1283
- version: {
1284
- id: string;
1285
- label: {
1286
- id: string;
1287
- description: string;
1288
- defaultMessage: string;
1289
- };
1290
- };
1291
- label: {
1292
- id: string;
1293
- description: string;
1294
- defaultMessage: string;
1295
- };
1296
- pages: {
1297
- id: string;
1298
- title: {
1299
- id: string;
1300
- description: string;
1301
- defaultMessage: string;
1302
- };
1303
- fields: import("./FieldConfig").Inferred[];
1304
- }[];
1305
- review: {
1306
- title: {
1307
- id: string;
1308
- description: string;
1309
- defaultMessage: string;
1310
- };
1311
- fields: import("./FieldConfig").Inferred[];
1312
- };
1313
- active?: boolean | undefined;
1314
- }[];
1315
- isDuplicate: boolean;
1316
429
  draft?: boolean | undefined;
1317
430
  conditionals?: ({
1318
431
  type: "SHOW";
@@ -1322,7 +435,7 @@ declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
1322
435
  conditional: import(".").JSONSchema;
1323
436
  })[] | undefined;
1324
437
  }>;
1325
- declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
438
+ declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
1326
439
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1327
440
  id: string;
1328
441
  description: string;
@@ -1336,135 +449,22 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
1336
449
  conditional: import(".").JSONSchema;
1337
450
  }, {
1338
451
  type: "SHOW";
1339
- conditional: import(".").JSONSchema;
1340
- }>, z.ZodObject<{
1341
- type: z.ZodLiteral<"ENABLE">;
1342
- conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
1343
- }, "strip", z.ZodTypeAny, {
1344
- type: "ENABLE";
1345
- conditional: import(".").JSONSchema;
1346
- }, {
1347
- type: "ENABLE";
1348
- conditional: import(".").JSONSchema;
1349
- }>]>, "many">>>;
1350
- draft: z.ZodOptional<z.ZodBoolean>;
1351
- forms: z.ZodArray<z.ZodObject<{
1352
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1353
- id: string;
1354
- description: string;
1355
- defaultMessage: string;
1356
- }>;
1357
- version: z.ZodObject<{
1358
- id: z.ZodString;
1359
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1360
- id: string;
1361
- description: string;
1362
- defaultMessage: string;
1363
- }>;
1364
- }, "strip", z.ZodTypeAny, {
1365
- id: string;
1366
- label: TranslationConfig;
1367
- }, {
1368
- id: string;
1369
- label: {
1370
- id: string;
1371
- description: string;
1372
- defaultMessage: string;
1373
- };
1374
- }>;
1375
- active: z.ZodDefault<z.ZodBoolean>;
1376
- pages: z.ZodArray<z.ZodObject<{
1377
- id: z.ZodString;
1378
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1379
- id: string;
1380
- description: string;
1381
- defaultMessage: string;
1382
- }>;
1383
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1384
- }, "strip", z.ZodTypeAny, {
1385
- id: string;
1386
- title: TranslationConfig;
1387
- fields: import("./FieldConfig").Inferred[];
1388
- }, {
1389
- id: string;
1390
- title: {
1391
- id: string;
1392
- description: string;
1393
- defaultMessage: string;
1394
- };
1395
- fields: import("./FieldConfig").Inferred[];
1396
- }>, "many">;
1397
- review: z.ZodObject<{
1398
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1399
- id: string;
1400
- description: string;
1401
- defaultMessage: string;
1402
- }>;
1403
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1404
- }, "strip", z.ZodTypeAny, {
1405
- title: TranslationConfig;
1406
- fields: import("./FieldConfig").Inferred[];
1407
- }, {
1408
- title: {
1409
- id: string;
1410
- description: string;
1411
- defaultMessage: string;
1412
- };
1413
- fields: import("./FieldConfig").Inferred[];
1414
- }>;
1415
- }, "strip", z.ZodTypeAny, {
1416
- active: boolean;
1417
- version: {
1418
- id: string;
1419
- label: TranslationConfig;
1420
- };
1421
- label: TranslationConfig;
1422
- pages: {
1423
- id: string;
1424
- title: TranslationConfig;
1425
- fields: import("./FieldConfig").Inferred[];
1426
- }[];
1427
- review: {
1428
- title: TranslationConfig;
1429
- fields: import("./FieldConfig").Inferred[];
1430
- };
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;
1431
459
  }, {
1432
- version: {
1433
- id: string;
1434
- label: {
1435
- id: string;
1436
- description: string;
1437
- defaultMessage: string;
1438
- };
1439
- };
1440
- label: {
1441
- id: string;
1442
- description: string;
1443
- defaultMessage: string;
1444
- };
1445
- pages: {
1446
- id: string;
1447
- title: {
1448
- id: string;
1449
- description: string;
1450
- defaultMessage: string;
1451
- };
1452
- fields: import("./FieldConfig").Inferred[];
1453
- }[];
1454
- review: {
1455
- title: {
1456
- id: string;
1457
- description: string;
1458
- defaultMessage: string;
1459
- };
1460
- fields: import("./FieldConfig").Inferred[];
1461
- };
1462
- active?: boolean | undefined;
1463
- }>, "many">;
460
+ type: "ENABLE";
461
+ conditional: import(".").JSONSchema;
462
+ }>]>, "many">>>;
463
+ draft: z.ZodOptional<z.ZodBoolean>;
1464
464
  }, {
1465
- type: z.ZodLiteral<"REGISTER">;
465
+ type: z.ZodLiteral<"ARCHIVE">;
1466
466
  }>, "strip", z.ZodTypeAny, {
1467
- type: "REGISTER";
467
+ type: "ARCHIVE";
1468
468
  conditionals: ({
1469
469
  type: "SHOW";
1470
470
  conditional: import(".").JSONSchema;
@@ -1473,64 +473,14 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
1473
473
  conditional: import(".").JSONSchema;
1474
474
  })[];
1475
475
  label: TranslationConfig;
1476
- forms: {
1477
- active: boolean;
1478
- version: {
1479
- id: string;
1480
- label: TranslationConfig;
1481
- };
1482
- label: TranslationConfig;
1483
- pages: {
1484
- id: string;
1485
- title: TranslationConfig;
1486
- fields: import("./FieldConfig").Inferred[];
1487
- }[];
1488
- review: {
1489
- title: TranslationConfig;
1490
- fields: import("./FieldConfig").Inferred[];
1491
- };
1492
- }[];
1493
476
  draft?: boolean | undefined;
1494
477
  }, {
1495
- type: "REGISTER";
478
+ type: "ARCHIVE";
1496
479
  label: {
1497
480
  id: string;
1498
481
  description: string;
1499
482
  defaultMessage: string;
1500
483
  };
1501
- forms: {
1502
- version: {
1503
- id: string;
1504
- label: {
1505
- id: string;
1506
- description: string;
1507
- defaultMessage: string;
1508
- };
1509
- };
1510
- label: {
1511
- id: string;
1512
- description: string;
1513
- defaultMessage: string;
1514
- };
1515
- pages: {
1516
- id: string;
1517
- title: {
1518
- id: string;
1519
- description: string;
1520
- defaultMessage: string;
1521
- };
1522
- fields: import("./FieldConfig").Inferred[];
1523
- }[];
1524
- review: {
1525
- title: {
1526
- id: string;
1527
- description: string;
1528
- defaultMessage: string;
1529
- };
1530
- fields: import("./FieldConfig").Inferred[];
1531
- };
1532
- active?: boolean | undefined;
1533
- }[];
1534
484
  draft?: boolean | undefined;
1535
485
  conditionals?: ({
1536
486
  type: "SHOW";
@@ -1566,119 +516,6 @@ declare const DeleteConfig: z.ZodObject<z.objectUtil.extendShape<{
1566
516
  conditional: import(".").JSONSchema;
1567
517
  }>]>, "many">>>;
1568
518
  draft: z.ZodOptional<z.ZodBoolean>;
1569
- forms: z.ZodArray<z.ZodObject<{
1570
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1571
- id: string;
1572
- description: string;
1573
- defaultMessage: string;
1574
- }>;
1575
- version: z.ZodObject<{
1576
- id: z.ZodString;
1577
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1578
- id: string;
1579
- description: string;
1580
- defaultMessage: string;
1581
- }>;
1582
- }, "strip", z.ZodTypeAny, {
1583
- id: string;
1584
- label: TranslationConfig;
1585
- }, {
1586
- id: string;
1587
- label: {
1588
- id: string;
1589
- description: string;
1590
- defaultMessage: string;
1591
- };
1592
- }>;
1593
- active: z.ZodDefault<z.ZodBoolean>;
1594
- pages: z.ZodArray<z.ZodObject<{
1595
- id: z.ZodString;
1596
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1597
- id: string;
1598
- description: string;
1599
- defaultMessage: string;
1600
- }>;
1601
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1602
- }, "strip", z.ZodTypeAny, {
1603
- id: string;
1604
- title: TranslationConfig;
1605
- fields: import("./FieldConfig").Inferred[];
1606
- }, {
1607
- id: string;
1608
- title: {
1609
- id: string;
1610
- description: string;
1611
- defaultMessage: string;
1612
- };
1613
- fields: import("./FieldConfig").Inferred[];
1614
- }>, "many">;
1615
- review: z.ZodObject<{
1616
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1617
- id: string;
1618
- description: string;
1619
- defaultMessage: string;
1620
- }>;
1621
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1622
- }, "strip", z.ZodTypeAny, {
1623
- title: TranslationConfig;
1624
- fields: import("./FieldConfig").Inferred[];
1625
- }, {
1626
- title: {
1627
- id: string;
1628
- description: string;
1629
- defaultMessage: string;
1630
- };
1631
- fields: import("./FieldConfig").Inferred[];
1632
- }>;
1633
- }, "strip", z.ZodTypeAny, {
1634
- active: boolean;
1635
- version: {
1636
- id: string;
1637
- label: TranslationConfig;
1638
- };
1639
- label: TranslationConfig;
1640
- pages: {
1641
- id: string;
1642
- title: TranslationConfig;
1643
- fields: import("./FieldConfig").Inferred[];
1644
- }[];
1645
- review: {
1646
- title: TranslationConfig;
1647
- fields: import("./FieldConfig").Inferred[];
1648
- };
1649
- }, {
1650
- version: {
1651
- id: string;
1652
- label: {
1653
- id: string;
1654
- description: string;
1655
- defaultMessage: string;
1656
- };
1657
- };
1658
- label: {
1659
- id: string;
1660
- description: string;
1661
- defaultMessage: string;
1662
- };
1663
- pages: {
1664
- id: string;
1665
- title: {
1666
- id: string;
1667
- description: string;
1668
- defaultMessage: string;
1669
- };
1670
- fields: import("./FieldConfig").Inferred[];
1671
- }[];
1672
- review: {
1673
- title: {
1674
- id: string;
1675
- description: string;
1676
- defaultMessage: string;
1677
- };
1678
- fields: import("./FieldConfig").Inferred[];
1679
- };
1680
- active?: boolean | undefined;
1681
- }>, "many">;
1682
519
  }, {
1683
520
  type: z.ZodLiteral<"DELETE">;
1684
521
  }>, "strip", z.ZodTypeAny, {
@@ -1691,23 +528,6 @@ declare const DeleteConfig: z.ZodObject<z.objectUtil.extendShape<{
1691
528
  conditional: import(".").JSONSchema;
1692
529
  })[];
1693
530
  label: TranslationConfig;
1694
- forms: {
1695
- active: boolean;
1696
- version: {
1697
- id: string;
1698
- label: TranslationConfig;
1699
- };
1700
- label: TranslationConfig;
1701
- pages: {
1702
- id: string;
1703
- title: TranslationConfig;
1704
- fields: import("./FieldConfig").Inferred[];
1705
- }[];
1706
- review: {
1707
- title: TranslationConfig;
1708
- fields: import("./FieldConfig").Inferred[];
1709
- };
1710
- }[];
1711
531
  draft?: boolean | undefined;
1712
532
  }, {
1713
533
  type: "DELETE";
@@ -1716,39 +536,6 @@ declare const DeleteConfig: z.ZodObject<z.objectUtil.extendShape<{
1716
536
  description: string;
1717
537
  defaultMessage: string;
1718
538
  };
1719
- forms: {
1720
- version: {
1721
- id: string;
1722
- label: {
1723
- id: string;
1724
- description: string;
1725
- defaultMessage: string;
1726
- };
1727
- };
1728
- label: {
1729
- id: string;
1730
- description: string;
1731
- defaultMessage: string;
1732
- };
1733
- pages: {
1734
- id: string;
1735
- title: {
1736
- id: string;
1737
- description: string;
1738
- defaultMessage: string;
1739
- };
1740
- fields: import("./FieldConfig").Inferred[];
1741
- }[];
1742
- review: {
1743
- title: {
1744
- id: string;
1745
- description: string;
1746
- defaultMessage: string;
1747
- };
1748
- fields: import("./FieldConfig").Inferred[];
1749
- };
1750
- active?: boolean | undefined;
1751
- }[];
1752
539
  draft?: boolean | undefined;
1753
540
  conditionals?: ({
1754
541
  type: "SHOW";
@@ -1784,43 +571,31 @@ declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape
1784
571
  conditional: import(".").JSONSchema;
1785
572
  }>]>, "many">>>;
1786
573
  draft: z.ZodOptional<z.ZodBoolean>;
1787
- forms: z.ZodArray<z.ZodObject<{
574
+ }, {
575
+ type: z.ZodLiteral<"PRINT_CERTIFICATE">;
576
+ printForm: z.ZodObject<{
1788
577
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1789
578
  id: string;
1790
579
  description: string;
1791
580
  defaultMessage: string;
1792
581
  }>;
1793
- version: z.ZodObject<{
1794
- id: z.ZodString;
1795
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1796
- id: string;
1797
- description: string;
1798
- defaultMessage: string;
1799
- }>;
1800
- }, "strip", z.ZodTypeAny, {
1801
- id: string;
1802
- label: TranslationConfig;
1803
- }, {
1804
- id: string;
1805
- label: {
1806
- id: string;
1807
- description: string;
1808
- defaultMessage: string;
1809
- };
1810
- }>;
1811
- active: z.ZodDefault<z.ZodBoolean>;
1812
- pages: z.ZodArray<z.ZodObject<{
582
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", (z.ZodObject<z.objectUtil.extendShape<{
1813
583
  id: z.ZodString;
1814
584
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1815
585
  id: string;
1816
586
  description: string;
1817
587
  defaultMessage: string;
1818
588
  }>;
1819
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1820
- }, "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";
1821
595
  id: string;
1822
596
  title: TranslationConfig;
1823
597
  fields: import("./FieldConfig").Inferred[];
598
+ conditional?: import(".").JSONSchema | undefined;
1824
599
  }, {
1825
600
  id: string;
1826
601
  title: {
@@ -1828,77 +603,274 @@ declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape
1828
603
  description: string;
1829
604
  defaultMessage: string;
1830
605
  };
1831
- fields: import("./FieldConfig").Inferred[];
1832
- }>, "many">;
1833
- 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;
1834
611
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1835
612
  id: string;
1836
613
  description: string;
1837
614
  defaultMessage: string;
1838
615
  }>;
1839
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1840
- }, "strip", z.ZodTypeAny, {
1841
- title: TranslationConfig;
1842
- 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>>;
1843
618
  }, {
1844
- title: {
1845
- id: string;
1846
- description: string;
1847
- 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
+ };
1848
749
  };
1849
750
  fields: import("./FieldConfig").Inferred[];
1850
- }>;
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">;
1851
791
  }, "strip", z.ZodTypeAny, {
1852
- active: boolean;
1853
- version: {
1854
- id: string;
1855
- label: TranslationConfig;
1856
- };
1857
792
  label: TranslationConfig;
1858
- pages: {
793
+ pages: ({
794
+ type: "FORM";
1859
795
  id: string;
1860
796
  title: TranslationConfig;
1861
797
  fields: import("./FieldConfig").Inferred[];
1862
- }[];
1863
- review: {
798
+ conditional?: import(".").JSONSchema | undefined;
799
+ } | {
800
+ type: "VERIFICATION";
801
+ id: string;
1864
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
+ };
1865
815
  fields: import("./FieldConfig").Inferred[];
1866
- };
816
+ conditional?: import(".").JSONSchema | undefined;
817
+ })[];
1867
818
  }, {
1868
- version: {
1869
- id: string;
1870
- label: {
1871
- id: string;
1872
- description: string;
1873
- defaultMessage: string;
1874
- };
1875
- };
1876
819
  label: {
1877
820
  id: string;
1878
821
  description: string;
1879
822
  defaultMessage: string;
1880
823
  };
1881
- pages: {
824
+ pages: ({
1882
825
  id: string;
1883
826
  title: {
1884
827
  id: string;
1885
828
  description: string;
1886
829
  defaultMessage: string;
1887
830
  };
1888
- fields: import("./FieldConfig").Inferred[];
1889
- }[];
1890
- review: {
831
+ fields: import("./FieldConfig").InferredInput[];
832
+ type?: "FORM" | undefined;
833
+ conditional?: import(".").JSONSchema | undefined;
834
+ } | {
835
+ type: "VERIFICATION";
836
+ id: string;
1891
837
  title: {
1892
838
  id: string;
1893
839
  description: string;
1894
840
  defaultMessage: string;
1895
841
  };
1896
- fields: import("./FieldConfig").Inferred[];
1897
- };
1898
- active?: boolean | undefined;
1899
- }>, "many">;
1900
- }, {
1901
- 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
+ }>;
1902
874
  }>, "strip", z.ZodTypeAny, {
1903
875
  type: "PRINT_CERTIFICATE";
1904
876
  conditionals: ({
@@ -1909,23 +881,34 @@ declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape
1909
881
  conditional: import(".").JSONSchema;
1910
882
  })[];
1911
883
  label: TranslationConfig;
1912
- forms: {
1913
- active: boolean;
1914
- version: {
1915
- id: string;
1916
- label: TranslationConfig;
1917
- };
884
+ printForm: {
1918
885
  label: TranslationConfig;
1919
- pages: {
886
+ pages: ({
887
+ type: "FORM";
1920
888
  id: string;
1921
889
  title: TranslationConfig;
1922
890
  fields: import("./FieldConfig").Inferred[];
1923
- }[];
1924
- review: {
891
+ conditional?: import(".").JSONSchema | undefined;
892
+ } | {
893
+ type: "VERIFICATION";
894
+ id: string;
1925
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
+ };
1926
908
  fields: import("./FieldConfig").Inferred[];
1927
- };
1928
- }[];
909
+ conditional?: import(".").JSONSchema | undefined;
910
+ })[];
911
+ };
1929
912
  draft?: boolean | undefined;
1930
913
  }, {
1931
914
  type: "PRINT_CERTIFICATE";
@@ -1934,39 +917,62 @@ declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape
1934
917
  description: string;
1935
918
  defaultMessage: string;
1936
919
  };
1937
- forms: {
1938
- version: {
1939
- id: string;
1940
- label: {
1941
- id: string;
1942
- description: string;
1943
- defaultMessage: string;
1944
- };
1945
- };
920
+ printForm: {
1946
921
  label: {
1947
922
  id: string;
1948
923
  description: string;
1949
924
  defaultMessage: string;
1950
925
  };
1951
- pages: {
926
+ pages: ({
1952
927
  id: string;
1953
928
  title: {
1954
929
  id: string;
1955
930
  description: string;
1956
931
  defaultMessage: string;
1957
932
  };
1958
- fields: import("./FieldConfig").Inferred[];
1959
- }[];
1960
- review: {
933
+ fields: import("./FieldConfig").InferredInput[];
934
+ type?: "FORM" | undefined;
935
+ conditional?: import(".").JSONSchema | undefined;
936
+ } | {
937
+ type: "VERIFICATION";
938
+ id: string;
1961
939
  title: {
1962
940
  id: string;
1963
941
  description: string;
1964
942
  defaultMessage: string;
1965
943
  };
1966
- fields: import("./FieldConfig").Inferred[];
1967
- };
1968
- active?: boolean | undefined;
1969
- }[];
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
+ };
1970
976
  draft?: boolean | undefined;
1971
977
  conditionals?: ({
1972
978
  type: "SHOW";
@@ -2002,165 +1008,686 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2002
1008
  conditional: import(".").JSONSchema;
2003
1009
  }>]>, "many">>>;
2004
1010
  draft: z.ZodOptional<z.ZodBoolean>;
2005
- forms: z.ZodArray<z.ZodObject<{
2006
- 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, {
2007
1016
  id: string;
2008
1017
  description: string;
2009
1018
  defaultMessage: string;
2010
1019
  }>;
2011
- version: z.ZodObject<{
2012
- id: z.ZodString;
2013
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2014
- id: string;
2015
- description: string;
2016
- defaultMessage: string;
2017
- }>;
2018
- }, "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: {
2019
1033
  id: string;
2020
- label: TranslationConfig;
2021
- }, {
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, {
2022
1043
  id: string;
2023
- label: {
2024
- id: string;
2025
- description: string;
2026
- defaultMessage: string;
2027
- };
1044
+ description: string;
1045
+ defaultMessage: string;
2028
1046
  }>;
2029
- active: z.ZodDefault<z.ZodBoolean>;
2030
- pages: z.ZodArray<z.ZodObject<{
2031
- id: z.ZodString;
2032
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2033
- id: string;
2034
- description: string;
2035
- 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
+ };
2036
1068
  }>;
2037
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2038
- }, "strip", z.ZodTypeAny, {
2039
- id: string;
2040
- title: TranslationConfig;
2041
- fields: import("./FieldConfig").Inferred[];
2042
- }, {
2043
- id: string;
2044
- title: {
2045
- id: string;
2046
- description: string;
2047
- defaultMessage: string;
2048
- };
2049
- fields: import("./FieldConfig").Inferred[];
2050
- }>, "many">;
2051
- review: z.ZodObject<{
2052
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2053
- id: string;
2054
- description: string;
2055
- 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
+ };
2056
1125
  }>;
2057
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2058
1126
  }, "strip", z.ZodTypeAny, {
2059
- title: TranslationConfig;
2060
- 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
+ };
2061
1137
  }, {
2062
- title: {
2063
- id: string;
2064
- description: string;
2065
- 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
+ };
2066
1163
  };
2067
- fields: import("./FieldConfig").Inferred[];
2068
1164
  }>;
2069
- }, "strip", z.ZodTypeAny, {
2070
- active: boolean;
2071
- version: {
2072
- id: string;
2073
- 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
+ };
2074
1180
  };
2075
- label: TranslationConfig;
2076
- pages: {
1181
+ fields: import("./FieldConfig").Inferred[];
1182
+ conditional?: import(".").JSONSchema | undefined;
1183
+ }, {
1184
+ type: "VERIFICATION";
1185
+ id: string;
1186
+ title: {
2077
1187
  id: string;
2078
- title: TranslationConfig;
2079
- fields: import("./FieldConfig").Inferred[];
2080
- }[];
2081
- review: {
2082
- title: TranslationConfig;
2083
- fields: import("./FieldConfig").Inferred[];
1188
+ description: string;
1189
+ defaultMessage: string;
2084
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>>;
2085
1231
  }, {
2086
- 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: {
2087
1242
  id: string;
2088
- label: {
2089
- id: string;
2090
- description: string;
2091
- defaultMessage: string;
2092
- };
1243
+ description: string;
1244
+ defaultMessage: string;
2093
1245
  };
2094
- 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, {
2095
1252
  id: string;
2096
1253
  description: string;
2097
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
+ };
2098
1389
  };
2099
- pages: {
1390
+ fields: import("./FieldConfig").Inferred[];
1391
+ conditional?: import(".").JSONSchema | undefined;
1392
+ }, {
1393
+ type: "VERIFICATION";
1394
+ id: string;
1395
+ title: {
2100
1396
  id: string;
2101
- title: {
2102
- id: string;
2103
- description: string;
2104
- 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;
2105
1454
  };
2106
- fields: import("./FieldConfig").Inferred[];
2107
- }[];
2108
- review: {
2109
- title: {
2110
- id: string;
2111
- description: string;
2112
- 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
+ };
2113
1486
  };
2114
- fields: import("./FieldConfig").Inferred[];
2115
1487
  };
2116
- active?: boolean | undefined;
2117
- }>, "many">;
1488
+ fields: import("./FieldConfig").Inferred[];
1489
+ conditional?: import(".").JSONSchema | undefined;
1490
+ })[];
1491
+ draft?: boolean | undefined;
2118
1492
  }, {
2119
- type: z.ZodLiteral<"REQUEST_CORRECTION">;
2120
- onboardingForm: z.ZodArray<z.ZodObject<{
2121
- id: z.ZodString;
2122
- 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: {
2123
1502
  id: string;
2124
1503
  description: string;
2125
1504
  defaultMessage: string;
2126
- }>;
2127
- 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>;
2128
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: {
2129
1648
  id: string;
2130
- title: TranslationConfig;
2131
- fields: import("./FieldConfig").Inferred[];
2132
- }, {
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, {
2133
1663
  id: string;
2134
- title: {
2135
- id: string;
2136
- description: string;
2137
- defaultMessage: string;
2138
- };
2139
- fields: import("./FieldConfig").Inferred[];
2140
- }>, "many">;
2141
- additionalDetailsForm: z.ZodArray<z.ZodObject<{
2142
- id: z.ZodString;
2143
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2144
- id: string;
2145
- description: string;
2146
- defaultMessage: string;
2147
- }>;
2148
- 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>;
2149
1670
  }, "strip", z.ZodTypeAny, {
2150
- id: string;
2151
- title: TranslationConfig;
2152
- fields: import("./FieldConfig").Inferred[];
1671
+ type: "SHOW";
1672
+ conditional: import(".").JSONSchema;
2153
1673
  }, {
2154
- id: string;
2155
- title: {
2156
- id: string;
2157
- description: string;
2158
- defaultMessage: string;
2159
- };
2160
- fields: import("./FieldConfig").Inferred[];
2161
- }>, "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">;
2162
1689
  }>, "strip", z.ZodTypeAny, {
2163
- type: "REQUEST_CORRECTION";
1690
+ type: "APPROVE_CORRECTION";
2164
1691
  conditionals: ({
2165
1692
  type: "SHOW";
2166
1693
  conditional: import(".").JSONSchema;
@@ -2169,92 +1696,14 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2169
1696
  conditional: import(".").JSONSchema;
2170
1697
  })[];
2171
1698
  label: TranslationConfig;
2172
- forms: {
2173
- active: boolean;
2174
- version: {
2175
- id: string;
2176
- label: TranslationConfig;
2177
- };
2178
- label: TranslationConfig;
2179
- pages: {
2180
- id: string;
2181
- title: TranslationConfig;
2182
- fields: import("./FieldConfig").Inferred[];
2183
- }[];
2184
- review: {
2185
- title: TranslationConfig;
2186
- fields: import("./FieldConfig").Inferred[];
2187
- };
2188
- }[];
2189
- onboardingForm: {
2190
- id: string;
2191
- title: TranslationConfig;
2192
- fields: import("./FieldConfig").Inferred[];
2193
- }[];
2194
- additionalDetailsForm: {
2195
- id: string;
2196
- title: TranslationConfig;
2197
- fields: import("./FieldConfig").Inferred[];
2198
- }[];
2199
1699
  draft?: boolean | undefined;
2200
1700
  }, {
2201
- type: "REQUEST_CORRECTION";
1701
+ type: "APPROVE_CORRECTION";
2202
1702
  label: {
2203
1703
  id: string;
2204
1704
  description: string;
2205
1705
  defaultMessage: string;
2206
1706
  };
2207
- forms: {
2208
- version: {
2209
- id: string;
2210
- label: {
2211
- id: string;
2212
- description: string;
2213
- defaultMessage: string;
2214
- };
2215
- };
2216
- label: {
2217
- id: string;
2218
- description: string;
2219
- defaultMessage: string;
2220
- };
2221
- pages: {
2222
- id: string;
2223
- title: {
2224
- id: string;
2225
- description: string;
2226
- defaultMessage: string;
2227
- };
2228
- fields: import("./FieldConfig").Inferred[];
2229
- }[];
2230
- review: {
2231
- title: {
2232
- id: string;
2233
- description: string;
2234
- defaultMessage: string;
2235
- };
2236
- fields: import("./FieldConfig").Inferred[];
2237
- };
2238
- active?: boolean | undefined;
2239
- }[];
2240
- onboardingForm: {
2241
- id: string;
2242
- title: {
2243
- id: string;
2244
- description: string;
2245
- defaultMessage: string;
2246
- };
2247
- fields: import("./FieldConfig").Inferred[];
2248
- }[];
2249
- additionalDetailsForm: {
2250
- id: string;
2251
- title: {
2252
- id: string;
2253
- description: string;
2254
- defaultMessage: string;
2255
- };
2256
- fields: import("./FieldConfig").Inferred[];
2257
- }[];
2258
1707
  draft?: boolean | undefined;
2259
1708
  conditionals?: ({
2260
1709
  type: "SHOW";
@@ -2264,7 +1713,13 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2264
1713
  conditional: import(".").JSONSchema;
2265
1714
  })[] | undefined;
2266
1715
  }>;
2267
- 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<{
2268
1723
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2269
1724
  id: string;
2270
1725
  description: string;
@@ -2290,123 +1745,28 @@ declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2290
1745
  conditional: import(".").JSONSchema;
2291
1746
  }>]>, "many">>>;
2292
1747
  draft: z.ZodOptional<z.ZodBoolean>;
2293
- forms: z.ZodArray<z.ZodObject<{
2294
- 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, {
2295
1752
  id: string;
2296
1753
  description: string;
2297
1754
  defaultMessage: string;
2298
1755
  }>;
2299
- version: z.ZodObject<{
2300
- id: z.ZodString;
2301
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2302
- id: string;
2303
- description: string;
2304
- defaultMessage: string;
2305
- }>;
2306
- }, "strip", z.ZodTypeAny, {
2307
- id: string;
2308
- label: TranslationConfig;
2309
- }, {
2310
- id: string;
2311
- label: {
2312
- id: string;
2313
- description: string;
2314
- defaultMessage: string;
2315
- };
2316
- }>;
2317
- active: z.ZodDefault<z.ZodBoolean>;
2318
- pages: z.ZodArray<z.ZodObject<{
2319
- id: z.ZodString;
2320
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2321
- id: string;
2322
- description: string;
2323
- defaultMessage: string;
2324
- }>;
2325
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2326
- }, "strip", z.ZodTypeAny, {
2327
- id: string;
2328
- title: TranslationConfig;
2329
- fields: import("./FieldConfig").Inferred[];
2330
- }, {
2331
- id: string;
2332
- title: {
2333
- id: string;
2334
- description: string;
2335
- defaultMessage: string;
2336
- };
2337
- fields: import("./FieldConfig").Inferred[];
2338
- }>, "many">;
2339
- review: z.ZodObject<{
2340
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2341
- id: string;
2342
- description: string;
2343
- defaultMessage: string;
2344
- }>;
2345
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2346
- }, "strip", z.ZodTypeAny, {
2347
- title: TranslationConfig;
2348
- fields: import("./FieldConfig").Inferred[];
2349
- }, {
2350
- title: {
2351
- id: string;
2352
- description: string;
2353
- defaultMessage: string;
2354
- };
2355
- fields: import("./FieldConfig").Inferred[];
2356
- }>;
1756
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
2357
1757
  }, "strip", z.ZodTypeAny, {
2358
- active: boolean;
2359
- version: {
2360
- id: string;
2361
- label: TranslationConfig;
2362
- };
2363
- label: TranslationConfig;
2364
- pages: {
2365
- id: string;
2366
- title: TranslationConfig;
2367
- fields: import("./FieldConfig").Inferred[];
2368
- }[];
2369
- review: {
2370
- title: TranslationConfig;
2371
- fields: import("./FieldConfig").Inferred[];
2372
- };
1758
+ title: TranslationConfig;
1759
+ fields: import("./FieldConfig").Inferred[];
2373
1760
  }, {
2374
- version: {
2375
- id: string;
2376
- label: {
2377
- id: string;
2378
- description: string;
2379
- defaultMessage: string;
2380
- };
2381
- };
2382
- label: {
1761
+ title: {
2383
1762
  id: string;
2384
1763
  description: string;
2385
1764
  defaultMessage: string;
2386
1765
  };
2387
- pages: {
2388
- id: string;
2389
- title: {
2390
- id: string;
2391
- description: string;
2392
- defaultMessage: string;
2393
- };
2394
- fields: import("./FieldConfig").Inferred[];
2395
- }[];
2396
- review: {
2397
- title: {
2398
- id: string;
2399
- description: string;
2400
- defaultMessage: string;
2401
- };
2402
- fields: import("./FieldConfig").Inferred[];
2403
- };
2404
- active?: boolean | undefined;
2405
- }>, "many">;
2406
- }, {
2407
- type: z.ZodLiteral<"REJECT_CORRECTION">;
1766
+ fields: import("./FieldConfig").InferredInput[];
1767
+ }>;
2408
1768
  }>, "strip", z.ZodTypeAny, {
2409
- type: "REJECT_CORRECTION";
1769
+ type: "DECLARE";
2410
1770
  conditionals: ({
2411
1771
  type: "SHOW";
2412
1772
  conditional: import(".").JSONSchema;
@@ -2415,64 +1775,26 @@ declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2415
1775
  conditional: import(".").JSONSchema;
2416
1776
  })[];
2417
1777
  label: TranslationConfig;
2418
- forms: {
2419
- active: boolean;
2420
- version: {
2421
- id: string;
2422
- label: TranslationConfig;
2423
- };
2424
- label: TranslationConfig;
2425
- pages: {
2426
- id: string;
2427
- title: TranslationConfig;
2428
- fields: import("./FieldConfig").Inferred[];
2429
- }[];
2430
- review: {
2431
- title: TranslationConfig;
2432
- fields: import("./FieldConfig").Inferred[];
2433
- };
2434
- }[];
1778
+ review: {
1779
+ title: TranslationConfig;
1780
+ fields: import("./FieldConfig").Inferred[];
1781
+ };
2435
1782
  draft?: boolean | undefined;
2436
1783
  }, {
2437
- type: "REJECT_CORRECTION";
1784
+ type: "DECLARE";
2438
1785
  label: {
2439
1786
  id: string;
2440
1787
  description: string;
2441
1788
  defaultMessage: string;
2442
1789
  };
2443
- forms: {
2444
- version: {
2445
- id: string;
2446
- label: {
2447
- id: string;
2448
- description: string;
2449
- defaultMessage: string;
2450
- };
2451
- };
2452
- label: {
1790
+ review: {
1791
+ title: {
2453
1792
  id: string;
2454
1793
  description: string;
2455
1794
  defaultMessage: string;
2456
1795
  };
2457
- pages: {
2458
- id: string;
2459
- title: {
2460
- id: string;
2461
- description: string;
2462
- defaultMessage: string;
2463
- };
2464
- fields: import("./FieldConfig").Inferred[];
2465
- }[];
2466
- review: {
2467
- title: {
2468
- id: string;
2469
- description: string;
2470
- defaultMessage: string;
2471
- };
2472
- fields: import("./FieldConfig").Inferred[];
2473
- };
2474
- active?: boolean | undefined;
2475
- }[];
1796
+ fields: import("./FieldConfig").InferredInput[];
1797
+ };
2476
1798
  draft?: boolean | undefined;
2477
1799
  conditionals?: ({
2478
1800
  type: "SHOW";
@@ -2481,8 +1803,7 @@ declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2481
1803
  type: "ENABLE";
2482
1804
  conditional: import(".").JSONSchema;
2483
1805
  })[] | undefined;
2484
- }>;
2485
- declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
1806
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2486
1807
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2487
1808
  id: string;
2488
1809
  description: string;
@@ -2508,123 +1829,28 @@ declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2508
1829
  conditional: import(".").JSONSchema;
2509
1830
  }>]>, "many">>>;
2510
1831
  draft: z.ZodOptional<z.ZodBoolean>;
2511
- forms: z.ZodArray<z.ZodObject<{
2512
- 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, {
2513
1836
  id: string;
2514
1837
  description: string;
2515
1838
  defaultMessage: string;
2516
1839
  }>;
2517
- version: z.ZodObject<{
2518
- id: z.ZodString;
2519
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2520
- id: string;
2521
- description: string;
2522
- defaultMessage: string;
2523
- }>;
2524
- }, "strip", z.ZodTypeAny, {
2525
- id: string;
2526
- label: TranslationConfig;
2527
- }, {
2528
- id: string;
2529
- label: {
2530
- id: string;
2531
- description: string;
2532
- defaultMessage: string;
2533
- };
2534
- }>;
2535
- active: z.ZodDefault<z.ZodBoolean>;
2536
- pages: z.ZodArray<z.ZodObject<{
2537
- id: z.ZodString;
2538
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2539
- id: string;
2540
- description: string;
2541
- defaultMessage: string;
2542
- }>;
2543
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2544
- }, "strip", z.ZodTypeAny, {
2545
- id: string;
2546
- title: TranslationConfig;
2547
- fields: import("./FieldConfig").Inferred[];
2548
- }, {
2549
- id: string;
2550
- title: {
2551
- id: string;
2552
- description: string;
2553
- defaultMessage: string;
2554
- };
2555
- fields: import("./FieldConfig").Inferred[];
2556
- }>, "many">;
2557
- review: z.ZodObject<{
2558
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2559
- id: string;
2560
- description: string;
2561
- defaultMessage: string;
2562
- }>;
2563
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2564
- }, "strip", z.ZodTypeAny, {
2565
- title: TranslationConfig;
2566
- fields: import("./FieldConfig").Inferred[];
2567
- }, {
2568
- title: {
2569
- id: string;
2570
- description: string;
2571
- defaultMessage: string;
2572
- };
2573
- fields: import("./FieldConfig").Inferred[];
2574
- }>;
1840
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
2575
1841
  }, "strip", z.ZodTypeAny, {
2576
- active: boolean;
2577
- version: {
2578
- id: string;
2579
- label: TranslationConfig;
2580
- };
2581
- label: TranslationConfig;
2582
- pages: {
2583
- id: string;
2584
- title: TranslationConfig;
2585
- fields: import("./FieldConfig").Inferred[];
2586
- }[];
2587
- review: {
2588
- title: TranslationConfig;
2589
- fields: import("./FieldConfig").Inferred[];
2590
- };
1842
+ title: TranslationConfig;
1843
+ fields: import("./FieldConfig").Inferred[];
2591
1844
  }, {
2592
- version: {
2593
- id: string;
2594
- label: {
2595
- id: string;
2596
- description: string;
2597
- defaultMessage: string;
2598
- };
2599
- };
2600
- label: {
1845
+ title: {
2601
1846
  id: string;
2602
1847
  description: string;
2603
1848
  defaultMessage: string;
2604
1849
  };
2605
- pages: {
2606
- id: string;
2607
- title: {
2608
- id: string;
2609
- description: string;
2610
- defaultMessage: string;
2611
- };
2612
- fields: import("./FieldConfig").Inferred[];
2613
- }[];
2614
- review: {
2615
- title: {
2616
- id: string;
2617
- description: string;
2618
- defaultMessage: string;
2619
- };
2620
- fields: import("./FieldConfig").Inferred[];
2621
- };
2622
- active?: boolean | undefined;
2623
- }>, "many">;
2624
- }, {
2625
- type: z.ZodLiteral<"APPROVE_CORRECTION">;
1850
+ fields: import("./FieldConfig").InferredInput[];
1851
+ }>;
2626
1852
  }>, "strip", z.ZodTypeAny, {
2627
- type: "APPROVE_CORRECTION";
1853
+ type: "VALIDATE";
2628
1854
  conditionals: ({
2629
1855
  type: "SHOW";
2630
1856
  conditional: import(".").JSONSchema;
@@ -2633,64 +1859,26 @@ declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2633
1859
  conditional: import(".").JSONSchema;
2634
1860
  })[];
2635
1861
  label: TranslationConfig;
2636
- forms: {
2637
- active: boolean;
2638
- version: {
2639
- id: string;
2640
- label: TranslationConfig;
2641
- };
2642
- label: TranslationConfig;
2643
- pages: {
2644
- id: string;
2645
- title: TranslationConfig;
2646
- fields: import("./FieldConfig").Inferred[];
2647
- }[];
2648
- review: {
2649
- title: TranslationConfig;
2650
- fields: import("./FieldConfig").Inferred[];
2651
- };
2652
- }[];
1862
+ review: {
1863
+ title: TranslationConfig;
1864
+ fields: import("./FieldConfig").Inferred[];
1865
+ };
2653
1866
  draft?: boolean | undefined;
2654
1867
  }, {
2655
- type: "APPROVE_CORRECTION";
1868
+ type: "VALIDATE";
2656
1869
  label: {
2657
1870
  id: string;
2658
1871
  description: string;
2659
1872
  defaultMessage: string;
2660
1873
  };
2661
- forms: {
2662
- version: {
2663
- id: string;
2664
- label: {
2665
- id: string;
2666
- description: string;
2667
- defaultMessage: string;
2668
- };
2669
- };
2670
- label: {
1874
+ review: {
1875
+ title: {
2671
1876
  id: string;
2672
1877
  description: string;
2673
1878
  defaultMessage: string;
2674
1879
  };
2675
- pages: {
2676
- id: string;
2677
- title: {
2678
- id: string;
2679
- description: string;
2680
- defaultMessage: string;
2681
- };
2682
- fields: import("./FieldConfig").Inferred[];
2683
- }[];
2684
- review: {
2685
- title: {
2686
- id: string;
2687
- description: string;
2688
- defaultMessage: string;
2689
- };
2690
- fields: import("./FieldConfig").Inferred[];
2691
- };
2692
- active?: boolean | undefined;
2693
- }[];
1880
+ fields: import("./FieldConfig").InferredInput[];
1881
+ };
2694
1882
  draft?: boolean | undefined;
2695
1883
  conditionals?: ({
2696
1884
  type: "SHOW";
@@ -2699,8 +1887,7 @@ declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2699
1887
  type: "ENABLE";
2700
1888
  conditional: import(".").JSONSchema;
2701
1889
  })[] | undefined;
2702
- }>;
2703
- declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
1890
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2704
1891
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2705
1892
  id: string;
2706
1893
  description: string;
@@ -2726,123 +1913,28 @@ declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
2726
1913
  conditional: import(".").JSONSchema;
2727
1914
  }>]>, "many">>>;
2728
1915
  draft: z.ZodOptional<z.ZodBoolean>;
2729
- forms: z.ZodArray<z.ZodObject<{
2730
- 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, {
2731
1920
  id: string;
2732
1921
  description: string;
2733
1922
  defaultMessage: string;
2734
1923
  }>;
2735
- version: z.ZodObject<{
2736
- id: z.ZodString;
2737
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2738
- id: string;
2739
- description: string;
2740
- defaultMessage: string;
2741
- }>;
2742
- }, "strip", z.ZodTypeAny, {
2743
- id: string;
2744
- label: TranslationConfig;
2745
- }, {
2746
- id: string;
2747
- label: {
2748
- id: string;
2749
- description: string;
2750
- defaultMessage: string;
2751
- };
2752
- }>;
2753
- active: z.ZodDefault<z.ZodBoolean>;
2754
- pages: z.ZodArray<z.ZodObject<{
2755
- id: z.ZodString;
2756
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2757
- id: string;
2758
- description: string;
2759
- defaultMessage: string;
2760
- }>;
2761
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2762
- }, "strip", z.ZodTypeAny, {
2763
- id: string;
2764
- title: TranslationConfig;
2765
- fields: import("./FieldConfig").Inferred[];
2766
- }, {
2767
- id: string;
2768
- title: {
2769
- id: string;
2770
- description: string;
2771
- defaultMessage: string;
2772
- };
2773
- fields: import("./FieldConfig").Inferred[];
2774
- }>, "many">;
2775
- review: z.ZodObject<{
2776
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2777
- id: string;
2778
- description: string;
2779
- defaultMessage: string;
2780
- }>;
2781
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2782
- }, "strip", z.ZodTypeAny, {
2783
- title: TranslationConfig;
2784
- fields: import("./FieldConfig").Inferred[];
2785
- }, {
2786
- title: {
2787
- id: string;
2788
- description: string;
2789
- defaultMessage: string;
2790
- };
2791
- fields: import("./FieldConfig").Inferred[];
2792
- }>;
1924
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
2793
1925
  }, "strip", z.ZodTypeAny, {
2794
- active: boolean;
2795
- version: {
2796
- id: string;
2797
- label: TranslationConfig;
2798
- };
2799
- label: TranslationConfig;
2800
- pages: {
2801
- id: string;
2802
- title: TranslationConfig;
2803
- fields: import("./FieldConfig").Inferred[];
2804
- }[];
2805
- review: {
2806
- title: TranslationConfig;
2807
- fields: import("./FieldConfig").Inferred[];
2808
- };
1926
+ title: TranslationConfig;
1927
+ fields: import("./FieldConfig").Inferred[];
2809
1928
  }, {
2810
- version: {
2811
- id: string;
2812
- label: {
2813
- id: string;
2814
- description: string;
2815
- defaultMessage: string;
2816
- };
2817
- };
2818
- label: {
1929
+ title: {
2819
1930
  id: string;
2820
1931
  description: string;
2821
1932
  defaultMessage: string;
2822
1933
  };
2823
- pages: {
2824
- id: string;
2825
- title: {
2826
- id: string;
2827
- description: string;
2828
- defaultMessage: string;
2829
- };
2830
- fields: import("./FieldConfig").Inferred[];
2831
- }[];
2832
- review: {
2833
- title: {
2834
- id: string;
2835
- description: string;
2836
- defaultMessage: string;
2837
- };
2838
- fields: import("./FieldConfig").Inferred[];
2839
- };
2840
- active?: boolean | undefined;
2841
- }>, "many">;
2842
- }, {
2843
- type: z.ZodLiteral<"CUSTOM">;
1934
+ fields: import("./FieldConfig").InferredInput[];
1935
+ }>;
2844
1936
  }>, "strip", z.ZodTypeAny, {
2845
- type: "CUSTOM";
1937
+ type: "REGISTER";
2846
1938
  conditionals: ({
2847
1939
  type: "SHOW";
2848
1940
  conditional: import(".").JSONSchema;
@@ -2851,64 +1943,26 @@ declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
2851
1943
  conditional: import(".").JSONSchema;
2852
1944
  })[];
2853
1945
  label: TranslationConfig;
2854
- forms: {
2855
- active: boolean;
2856
- version: {
2857
- id: string;
2858
- label: TranslationConfig;
2859
- };
2860
- label: TranslationConfig;
2861
- pages: {
2862
- id: string;
2863
- title: TranslationConfig;
2864
- fields: import("./FieldConfig").Inferred[];
2865
- }[];
2866
- review: {
2867
- title: TranslationConfig;
2868
- fields: import("./FieldConfig").Inferred[];
2869
- };
2870
- }[];
1946
+ review: {
1947
+ title: TranslationConfig;
1948
+ fields: import("./FieldConfig").Inferred[];
1949
+ };
2871
1950
  draft?: boolean | undefined;
2872
1951
  }, {
2873
- type: "CUSTOM";
1952
+ type: "REGISTER";
2874
1953
  label: {
2875
1954
  id: string;
2876
1955
  description: string;
2877
1956
  defaultMessage: string;
2878
1957
  };
2879
- forms: {
2880
- version: {
2881
- id: string;
2882
- label: {
2883
- id: string;
2884
- description: string;
2885
- defaultMessage: string;
2886
- };
2887
- };
2888
- label: {
1958
+ review: {
1959
+ title: {
2889
1960
  id: string;
2890
1961
  description: string;
2891
1962
  defaultMessage: string;
2892
1963
  };
2893
- pages: {
2894
- id: string;
2895
- title: {
2896
- id: string;
2897
- description: string;
2898
- defaultMessage: string;
2899
- };
2900
- fields: import("./FieldConfig").Inferred[];
2901
- }[];
2902
- review: {
2903
- title: {
2904
- id: string;
2905
- description: string;
2906
- defaultMessage: string;
2907
- };
2908
- fields: import("./FieldConfig").Inferred[];
2909
- };
2910
- active?: boolean | undefined;
2911
- }[];
1964
+ fields: import("./FieldConfig").InferredInput[];
1965
+ };
2912
1966
  draft?: boolean | undefined;
2913
1967
  conditionals?: ({
2914
1968
  type: "SHOW";
@@ -2917,12 +1971,7 @@ declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
2917
1971
  type: "ENABLE";
2918
1972
  conditional: import(".").JSONSchema;
2919
1973
  })[] | undefined;
2920
- }>;
2921
- /** @knipignore */
2922
- 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;
2923
- /** @knipignore */
2924
- 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>;
2925
- export declare const ActionConfig: z.ZodDiscriminatedUnion<"type", AllActionConfigFields[]>;
2926
- export type ActionConfig = InferredActionConfig;
1974
+ }>]>;
1975
+ export type DeclarationActionConfig = z.infer<typeof DeclarationActionConfig>;
2927
1976
  export {};
2928
1977
  //# sourceMappingURL=ActionConfig.d.ts.map