@nira-opencrvs/toolkit 1.9.11-rc.1f36427

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 (77) hide show
  1. package/README.md +70 -0
  2. package/build.sh +56 -0
  3. package/dist/api/index.d.ts +11 -0
  4. package/dist/api/index.d.ts.map +1 -0
  5. package/dist/api/index.js +52 -0
  6. package/dist/commons/api/router.d.ts +4125 -0
  7. package/dist/commons/conditionals/conditionals.d.ts +824 -0
  8. package/dist/commons/conditionals/index.d.ts +2 -0
  9. package/dist/commons/conditionals/validate.d.ts +101 -0
  10. package/dist/commons/events/ActionConfig.d.ts +1609 -0
  11. package/dist/commons/events/ActionDocument.d.ts +2180 -0
  12. package/dist/commons/events/ActionInput.d.ts +1229 -0
  13. package/dist/commons/events/ActionType.d.ts +52 -0
  14. package/dist/commons/events/AdvancedSearchConfig.d.ts +1538 -0
  15. package/dist/commons/events/CompositeFieldValue.d.ts +280 -0
  16. package/dist/commons/events/Conditional.d.ts +55 -0
  17. package/dist/commons/events/Constants.d.ts +3 -0
  18. package/dist/commons/events/CountryConfigQueryInput.d.ts +4784 -0
  19. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  20. package/dist/commons/events/DeduplicationConfig.d.ts +233 -0
  21. package/dist/commons/events/Draft.d.ts +118 -0
  22. package/dist/commons/events/DynamicFieldValue.d.ts +139 -0
  23. package/dist/commons/events/EventConfig.d.ts +2255 -0
  24. package/dist/commons/events/EventConfigInput.d.ts +10 -0
  25. package/dist/commons/events/EventDocument.d.ts +1457 -0
  26. package/dist/commons/events/EventIndex.d.ts +1134 -0
  27. package/dist/commons/events/EventInput.d.ts +13 -0
  28. package/dist/commons/events/EventMetadata.d.ts +413 -0
  29. package/dist/commons/events/FieldConfig.d.ts +12935 -0
  30. package/dist/commons/events/FieldType.d.ts +55 -0
  31. package/dist/commons/events/FieldTypeMapping.d.ts +1289 -0
  32. package/dist/commons/events/FieldValue.d.ts +512 -0
  33. package/dist/commons/events/FileUtils.d.ts +4 -0
  34. package/dist/commons/events/FormConfig.d.ts +755 -0
  35. package/dist/commons/events/PageConfig.d.ts +342 -0
  36. package/dist/commons/events/PlainDate.d.ts +19 -0
  37. package/dist/commons/events/SummaryConfig.d.ts +170 -0
  38. package/dist/commons/events/TemplateConfig.d.ts +66 -0
  39. package/dist/commons/events/TranslationConfig.d.ts +15 -0
  40. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  41. package/dist/commons/events/WorkqueueConfig.d.ts +7957 -0
  42. package/dist/commons/events/deduplication.d.ts +69 -0
  43. package/dist/commons/events/defineConfig.d.ts +234 -0
  44. package/dist/commons/events/event.d.ts +80 -0
  45. package/dist/commons/events/field.d.ts +514 -0
  46. package/dist/commons/events/index.d.ts +45 -0
  47. package/dist/commons/events/locations.d.ts +24 -0
  48. package/dist/commons/events/scopes.d.ts +55 -0
  49. package/dist/commons/events/serializer.d.ts +2 -0
  50. package/dist/commons/events/state/availableActions.d.ts +6 -0
  51. package/dist/commons/events/state/flags.d.ts +4 -0
  52. package/dist/commons/events/state/index.d.ts +119 -0
  53. package/dist/commons/events/state/utils.d.ts +311 -0
  54. package/dist/commons/events/test.utils.d.ts +248 -0
  55. package/dist/commons/events/transactions.d.ts +2 -0
  56. package/dist/commons/events/utils.d.ts +486 -0
  57. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  58. package/dist/commons/notification/UserNotifications.d.ts +762 -0
  59. package/dist/commons/notification/index.d.ts +2 -0
  60. package/dist/conditionals/index.d.ts +2 -0
  61. package/dist/conditionals/index.d.ts.map +1 -0
  62. package/dist/conditionals/index.js +689 -0
  63. package/dist/events/deduplication.d.ts +69 -0
  64. package/dist/events/deduplication.d.ts.map +1 -0
  65. package/dist/events/deduplication.js +101 -0
  66. package/dist/events/index.d.ts +2 -0
  67. package/dist/events/index.d.ts.map +1 -0
  68. package/dist/events/index.js +9327 -0
  69. package/dist/notification/index.d.ts +2 -0
  70. package/dist/notification/index.d.ts.map +1 -0
  71. package/dist/notification/index.js +6674 -0
  72. package/dist/scopes/index.d.ts +385 -0
  73. package/dist/scopes/index.d.ts.map +1 -0
  74. package/dist/scopes/index.js +349 -0
  75. package/package.json +40 -0
  76. package/tsconfig.json +27 -0
  77. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,1609 @@
1
+ import { z } from 'zod';
2
+ import { TranslationConfig } from './TranslationConfig';
3
+ import { FieldConfig } from './FieldConfig';
4
+ export declare const DeclarationReviewConfig: z.ZodObject<{
5
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
6
+ id: string;
7
+ description: string;
8
+ defaultMessage: string;
9
+ }>;
10
+ fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
11
+ }, "strip", z.ZodTypeAny, {
12
+ title: TranslationConfig;
13
+ fields: FieldConfig[];
14
+ }, {
15
+ title: {
16
+ id: string;
17
+ description: string;
18
+ defaultMessage: string;
19
+ };
20
+ fields: import("./FieldConfig").FieldConfigInput[];
21
+ }>;
22
+ export type ReviewPageConfig = z.infer<typeof DeclarationReviewConfig>;
23
+ export declare const ActionConfigBase: z.ZodObject<{
24
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
25
+ id: string;
26
+ description: string;
27
+ defaultMessage: string;
28
+ }>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ label: TranslationConfig;
31
+ }, {
32
+ label: {
33
+ id: string;
34
+ description: string;
35
+ defaultMessage: string;
36
+ };
37
+ }>;
38
+ export declare const DeclarationActionBase: z.ZodObject<z.objectUtil.extendShape<{
39
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
40
+ id: string;
41
+ description: string;
42
+ defaultMessage: string;
43
+ }>;
44
+ }, {
45
+ review: z.ZodObject<{
46
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
47
+ id: string;
48
+ description: string;
49
+ defaultMessage: string;
50
+ }>;
51
+ fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
52
+ }, "strip", z.ZodTypeAny, {
53
+ title: TranslationConfig;
54
+ fields: FieldConfig[];
55
+ }, {
56
+ title: {
57
+ id: string;
58
+ description: string;
59
+ defaultMessage: string;
60
+ };
61
+ fields: import("./FieldConfig").FieldConfigInput[];
62
+ }>;
63
+ deduplication: z.ZodOptional<z.ZodObject<{
64
+ id: z.ZodString;
65
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
66
+ id: string;
67
+ description: string;
68
+ defaultMessage: string;
69
+ }>;
70
+ query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ id: string;
73
+ query: import("./DeduplicationConfig").ClauseOutput;
74
+ label: TranslationConfig;
75
+ }, {
76
+ id: string;
77
+ query: import("./DeduplicationConfig").ClauseInput;
78
+ label: {
79
+ id: string;
80
+ description: string;
81
+ defaultMessage: string;
82
+ };
83
+ }>>;
84
+ }>, "strip", z.ZodTypeAny, {
85
+ label: TranslationConfig;
86
+ review: {
87
+ title: TranslationConfig;
88
+ fields: FieldConfig[];
89
+ };
90
+ deduplication?: {
91
+ id: string;
92
+ query: import("./DeduplicationConfig").ClauseOutput;
93
+ label: TranslationConfig;
94
+ } | undefined;
95
+ }, {
96
+ label: {
97
+ id: string;
98
+ description: string;
99
+ defaultMessage: string;
100
+ };
101
+ review: {
102
+ title: {
103
+ id: string;
104
+ description: string;
105
+ defaultMessage: string;
106
+ };
107
+ fields: import("./FieldConfig").FieldConfigInput[];
108
+ };
109
+ deduplication?: {
110
+ id: string;
111
+ query: import("./DeduplicationConfig").ClauseInput;
112
+ label: {
113
+ id: string;
114
+ description: string;
115
+ defaultMessage: string;
116
+ };
117
+ } | undefined;
118
+ }>;
119
+ declare const ReadActionConfig: z.ZodObject<z.objectUtil.extendShape<{
120
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
121
+ id: string;
122
+ description: string;
123
+ defaultMessage: string;
124
+ }>;
125
+ }, {
126
+ type: z.ZodLiteral<"READ">;
127
+ review: z.ZodObject<{
128
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
129
+ id: string;
130
+ description: string;
131
+ defaultMessage: string;
132
+ }>;
133
+ fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
134
+ }, "strip", z.ZodTypeAny, {
135
+ title: TranslationConfig;
136
+ fields: FieldConfig[];
137
+ }, {
138
+ title: {
139
+ id: string;
140
+ description: string;
141
+ defaultMessage: string;
142
+ };
143
+ fields: import("./FieldConfig").FieldConfigInput[];
144
+ }>;
145
+ }>, "strip", z.ZodTypeAny, {
146
+ type: "READ";
147
+ label: TranslationConfig;
148
+ review: {
149
+ title: TranslationConfig;
150
+ fields: FieldConfig[];
151
+ };
152
+ }, {
153
+ type: "READ";
154
+ label: {
155
+ id: string;
156
+ description: string;
157
+ defaultMessage: string;
158
+ };
159
+ review: {
160
+ title: {
161
+ id: string;
162
+ description: string;
163
+ defaultMessage: string;
164
+ };
165
+ fields: import("./FieldConfig").FieldConfigInput[];
166
+ };
167
+ }>;
168
+ declare const DeclareConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
169
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
170
+ id: string;
171
+ description: string;
172
+ defaultMessage: string;
173
+ }>;
174
+ }, {
175
+ review: z.ZodObject<{
176
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
177
+ id: string;
178
+ description: string;
179
+ defaultMessage: string;
180
+ }>;
181
+ fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
182
+ }, "strip", z.ZodTypeAny, {
183
+ title: TranslationConfig;
184
+ fields: FieldConfig[];
185
+ }, {
186
+ title: {
187
+ id: string;
188
+ description: string;
189
+ defaultMessage: string;
190
+ };
191
+ fields: import("./FieldConfig").FieldConfigInput[];
192
+ }>;
193
+ deduplication: z.ZodOptional<z.ZodObject<{
194
+ id: z.ZodString;
195
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
196
+ id: string;
197
+ description: string;
198
+ defaultMessage: string;
199
+ }>;
200
+ query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ id: string;
203
+ query: import("./DeduplicationConfig").ClauseOutput;
204
+ label: TranslationConfig;
205
+ }, {
206
+ id: string;
207
+ query: import("./DeduplicationConfig").ClauseInput;
208
+ label: {
209
+ id: string;
210
+ description: string;
211
+ defaultMessage: string;
212
+ };
213
+ }>>;
214
+ }>, {
215
+ type: z.ZodLiteral<"DECLARE">;
216
+ }>, "strip", z.ZodTypeAny, {
217
+ type: "DECLARE";
218
+ label: TranslationConfig;
219
+ review: {
220
+ title: TranslationConfig;
221
+ fields: FieldConfig[];
222
+ };
223
+ deduplication?: {
224
+ id: string;
225
+ query: import("./DeduplicationConfig").ClauseOutput;
226
+ label: TranslationConfig;
227
+ } | undefined;
228
+ }, {
229
+ type: "DECLARE";
230
+ label: {
231
+ id: string;
232
+ description: string;
233
+ defaultMessage: string;
234
+ };
235
+ review: {
236
+ title: {
237
+ id: string;
238
+ description: string;
239
+ defaultMessage: string;
240
+ };
241
+ fields: import("./FieldConfig").FieldConfigInput[];
242
+ };
243
+ deduplication?: {
244
+ id: string;
245
+ query: import("./DeduplicationConfig").ClauseInput;
246
+ label: {
247
+ id: string;
248
+ description: string;
249
+ defaultMessage: string;
250
+ };
251
+ } | undefined;
252
+ }>;
253
+ declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
254
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
255
+ id: string;
256
+ description: string;
257
+ defaultMessage: string;
258
+ }>;
259
+ }, {
260
+ review: z.ZodObject<{
261
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
262
+ id: string;
263
+ description: string;
264
+ defaultMessage: string;
265
+ }>;
266
+ fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
267
+ }, "strip", z.ZodTypeAny, {
268
+ title: TranslationConfig;
269
+ fields: FieldConfig[];
270
+ }, {
271
+ title: {
272
+ id: string;
273
+ description: string;
274
+ defaultMessage: string;
275
+ };
276
+ fields: import("./FieldConfig").FieldConfigInput[];
277
+ }>;
278
+ deduplication: z.ZodOptional<z.ZodObject<{
279
+ id: z.ZodString;
280
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
281
+ id: string;
282
+ description: string;
283
+ defaultMessage: string;
284
+ }>;
285
+ query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
286
+ }, "strip", z.ZodTypeAny, {
287
+ id: string;
288
+ query: import("./DeduplicationConfig").ClauseOutput;
289
+ label: TranslationConfig;
290
+ }, {
291
+ id: string;
292
+ query: import("./DeduplicationConfig").ClauseInput;
293
+ label: {
294
+ id: string;
295
+ description: string;
296
+ defaultMessage: string;
297
+ };
298
+ }>>;
299
+ }>, {
300
+ type: z.ZodLiteral<"VALIDATE">;
301
+ }>, "strip", z.ZodTypeAny, {
302
+ type: "VALIDATE";
303
+ label: TranslationConfig;
304
+ review: {
305
+ title: TranslationConfig;
306
+ fields: FieldConfig[];
307
+ };
308
+ deduplication?: {
309
+ id: string;
310
+ query: import("./DeduplicationConfig").ClauseOutput;
311
+ label: TranslationConfig;
312
+ } | undefined;
313
+ }, {
314
+ type: "VALIDATE";
315
+ label: {
316
+ id: string;
317
+ description: string;
318
+ defaultMessage: string;
319
+ };
320
+ review: {
321
+ title: {
322
+ id: string;
323
+ description: string;
324
+ defaultMessage: string;
325
+ };
326
+ fields: import("./FieldConfig").FieldConfigInput[];
327
+ };
328
+ deduplication?: {
329
+ id: string;
330
+ query: import("./DeduplicationConfig").ClauseInput;
331
+ label: {
332
+ id: string;
333
+ description: string;
334
+ defaultMessage: string;
335
+ };
336
+ } | undefined;
337
+ }>;
338
+ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
339
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
340
+ id: string;
341
+ description: string;
342
+ defaultMessage: string;
343
+ }>;
344
+ }, {
345
+ review: z.ZodObject<{
346
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
347
+ id: string;
348
+ description: string;
349
+ defaultMessage: string;
350
+ }>;
351
+ fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
352
+ }, "strip", z.ZodTypeAny, {
353
+ title: TranslationConfig;
354
+ fields: FieldConfig[];
355
+ }, {
356
+ title: {
357
+ id: string;
358
+ description: string;
359
+ defaultMessage: string;
360
+ };
361
+ fields: import("./FieldConfig").FieldConfigInput[];
362
+ }>;
363
+ deduplication: z.ZodOptional<z.ZodObject<{
364
+ id: z.ZodString;
365
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
366
+ id: string;
367
+ description: string;
368
+ defaultMessage: string;
369
+ }>;
370
+ query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
371
+ }, "strip", z.ZodTypeAny, {
372
+ id: string;
373
+ query: import("./DeduplicationConfig").ClauseOutput;
374
+ label: TranslationConfig;
375
+ }, {
376
+ id: string;
377
+ query: import("./DeduplicationConfig").ClauseInput;
378
+ label: {
379
+ id: string;
380
+ description: string;
381
+ defaultMessage: string;
382
+ };
383
+ }>>;
384
+ }>, {
385
+ type: z.ZodLiteral<"REGISTER">;
386
+ }>, "strip", z.ZodTypeAny, {
387
+ type: "REGISTER";
388
+ label: TranslationConfig;
389
+ review: {
390
+ title: TranslationConfig;
391
+ fields: FieldConfig[];
392
+ };
393
+ deduplication?: {
394
+ id: string;
395
+ query: import("./DeduplicationConfig").ClauseOutput;
396
+ label: TranslationConfig;
397
+ } | undefined;
398
+ }, {
399
+ type: "REGISTER";
400
+ label: {
401
+ id: string;
402
+ description: string;
403
+ defaultMessage: string;
404
+ };
405
+ review: {
406
+ title: {
407
+ id: string;
408
+ description: string;
409
+ defaultMessage: string;
410
+ };
411
+ fields: import("./FieldConfig").FieldConfigInput[];
412
+ };
413
+ deduplication?: {
414
+ id: string;
415
+ query: import("./DeduplicationConfig").ClauseInput;
416
+ label: {
417
+ id: string;
418
+ description: string;
419
+ defaultMessage: string;
420
+ };
421
+ } | undefined;
422
+ }>;
423
+ declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
424
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
425
+ id: string;
426
+ description: string;
427
+ defaultMessage: string;
428
+ }>;
429
+ }, {
430
+ type: z.ZodLiteral<"REJECT">;
431
+ }>, "strip", z.ZodTypeAny, {
432
+ type: "REJECT";
433
+ label: TranslationConfig;
434
+ }, {
435
+ type: "REJECT";
436
+ label: {
437
+ id: string;
438
+ description: string;
439
+ defaultMessage: string;
440
+ };
441
+ }>;
442
+ declare const ArchiveConfig: z.ZodObject<z.objectUtil.extendShape<{
443
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
444
+ id: string;
445
+ description: string;
446
+ defaultMessage: string;
447
+ }>;
448
+ }, {
449
+ type: z.ZodLiteral<"ARCHIVE">;
450
+ }>, "strip", z.ZodTypeAny, {
451
+ type: "ARCHIVE";
452
+ label: TranslationConfig;
453
+ }, {
454
+ type: "ARCHIVE";
455
+ label: {
456
+ id: string;
457
+ description: string;
458
+ defaultMessage: string;
459
+ };
460
+ }>;
461
+ declare const DeleteConfig: z.ZodObject<z.objectUtil.extendShape<{
462
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
463
+ id: string;
464
+ description: string;
465
+ defaultMessage: string;
466
+ }>;
467
+ }, {
468
+ type: z.ZodLiteral<"DELETE">;
469
+ }>, "strip", z.ZodTypeAny, {
470
+ type: "DELETE";
471
+ label: TranslationConfig;
472
+ }, {
473
+ type: "DELETE";
474
+ label: {
475
+ id: string;
476
+ description: string;
477
+ defaultMessage: string;
478
+ };
479
+ }>;
480
+ declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape<{
481
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
482
+ id: string;
483
+ description: string;
484
+ defaultMessage: string;
485
+ }>;
486
+ }, {
487
+ type: z.ZodLiteral<"PRINT_CERTIFICATE">;
488
+ printForm: z.ZodObject<{
489
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
490
+ id: string;
491
+ description: string;
492
+ defaultMessage: string;
493
+ }>;
494
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", (z.ZodObject<z.objectUtil.extendShape<{
495
+ id: z.ZodString;
496
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
497
+ id: string;
498
+ description: string;
499
+ defaultMessage: string;
500
+ }>;
501
+ requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
502
+ fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
503
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
504
+ }, {
505
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
506
+ }>, "strip", z.ZodTypeAny, {
507
+ type: "FORM";
508
+ id: string;
509
+ title: TranslationConfig;
510
+ fields: FieldConfig[];
511
+ requireCompletionToContinue: boolean;
512
+ conditional?: import(".").JSONSchema | undefined;
513
+ }, {
514
+ id: string;
515
+ title: {
516
+ id: string;
517
+ description: string;
518
+ defaultMessage: string;
519
+ };
520
+ fields: import("./FieldConfig").FieldConfigInput[];
521
+ type?: "FORM" | undefined;
522
+ conditional?: import(".").JSONSchema | undefined;
523
+ requireCompletionToContinue?: boolean | undefined;
524
+ }> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
525
+ id: z.ZodString;
526
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
527
+ id: string;
528
+ description: string;
529
+ defaultMessage: string;
530
+ }>;
531
+ requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
532
+ fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
533
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
534
+ }, {
535
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
536
+ }>, {
537
+ type: z.ZodLiteral<"VERIFICATION">;
538
+ actions: z.ZodObject<{
539
+ verify: z.ZodObject<{
540
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
541
+ id: string;
542
+ description: string;
543
+ defaultMessage: string;
544
+ }>;
545
+ }, "strip", z.ZodTypeAny, {
546
+ label: TranslationConfig;
547
+ }, {
548
+ label: {
549
+ id: string;
550
+ description: string;
551
+ defaultMessage: string;
552
+ };
553
+ }>;
554
+ cancel: z.ZodObject<{
555
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
556
+ id: string;
557
+ description: string;
558
+ defaultMessage: string;
559
+ }>;
560
+ confirmation: z.ZodObject<{
561
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
562
+ id: string;
563
+ description: string;
564
+ defaultMessage: string;
565
+ }>;
566
+ body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
567
+ id: string;
568
+ description: string;
569
+ defaultMessage: string;
570
+ }>;
571
+ }, "strip", z.ZodTypeAny, {
572
+ title: TranslationConfig;
573
+ body: TranslationConfig;
574
+ }, {
575
+ title: {
576
+ id: string;
577
+ description: string;
578
+ defaultMessage: string;
579
+ };
580
+ body: {
581
+ id: string;
582
+ description: string;
583
+ defaultMessage: string;
584
+ };
585
+ }>;
586
+ }, "strip", z.ZodTypeAny, {
587
+ label: TranslationConfig;
588
+ confirmation: {
589
+ title: TranslationConfig;
590
+ body: TranslationConfig;
591
+ };
592
+ }, {
593
+ label: {
594
+ id: string;
595
+ description: string;
596
+ defaultMessage: string;
597
+ };
598
+ confirmation: {
599
+ title: {
600
+ id: string;
601
+ description: string;
602
+ defaultMessage: string;
603
+ };
604
+ body: {
605
+ id: string;
606
+ description: string;
607
+ defaultMessage: string;
608
+ };
609
+ };
610
+ }>;
611
+ }, "strip", z.ZodTypeAny, {
612
+ cancel: {
613
+ label: TranslationConfig;
614
+ confirmation: {
615
+ title: TranslationConfig;
616
+ body: TranslationConfig;
617
+ };
618
+ };
619
+ verify: {
620
+ label: TranslationConfig;
621
+ };
622
+ }, {
623
+ cancel: {
624
+ label: {
625
+ id: string;
626
+ description: string;
627
+ defaultMessage: string;
628
+ };
629
+ confirmation: {
630
+ title: {
631
+ id: string;
632
+ description: string;
633
+ defaultMessage: string;
634
+ };
635
+ body: {
636
+ id: string;
637
+ description: string;
638
+ defaultMessage: string;
639
+ };
640
+ };
641
+ };
642
+ verify: {
643
+ label: {
644
+ id: string;
645
+ description: string;
646
+ defaultMessage: string;
647
+ };
648
+ };
649
+ }>;
650
+ }>, "strip", z.ZodTypeAny, {
651
+ type: "VERIFICATION";
652
+ id: string;
653
+ title: TranslationConfig;
654
+ actions: {
655
+ cancel: {
656
+ label: TranslationConfig;
657
+ confirmation: {
658
+ title: TranslationConfig;
659
+ body: TranslationConfig;
660
+ };
661
+ };
662
+ verify: {
663
+ label: TranslationConfig;
664
+ };
665
+ };
666
+ fields: FieldConfig[];
667
+ requireCompletionToContinue: boolean;
668
+ conditional?: import(".").JSONSchema | undefined;
669
+ }, {
670
+ type: "VERIFICATION";
671
+ id: string;
672
+ title: {
673
+ id: string;
674
+ description: string;
675
+ defaultMessage: string;
676
+ };
677
+ actions: {
678
+ cancel: {
679
+ label: {
680
+ id: string;
681
+ description: string;
682
+ defaultMessage: string;
683
+ };
684
+ confirmation: {
685
+ title: {
686
+ id: string;
687
+ description: string;
688
+ defaultMessage: string;
689
+ };
690
+ body: {
691
+ id: string;
692
+ description: string;
693
+ defaultMessage: string;
694
+ };
695
+ };
696
+ };
697
+ verify: {
698
+ label: {
699
+ id: string;
700
+ description: string;
701
+ defaultMessage: string;
702
+ };
703
+ };
704
+ };
705
+ fields: import("./FieldConfig").FieldConfigInput[];
706
+ conditional?: import(".").JSONSchema | undefined;
707
+ requireCompletionToContinue?: boolean | undefined;
708
+ }>)[]>, "many">;
709
+ }, "strip", z.ZodTypeAny, {
710
+ label: TranslationConfig;
711
+ pages: ({
712
+ type: "FORM";
713
+ id: string;
714
+ title: TranslationConfig;
715
+ fields: FieldConfig[];
716
+ requireCompletionToContinue: boolean;
717
+ conditional?: import(".").JSONSchema | undefined;
718
+ } | {
719
+ type: "VERIFICATION";
720
+ id: string;
721
+ title: TranslationConfig;
722
+ actions: {
723
+ cancel: {
724
+ label: TranslationConfig;
725
+ confirmation: {
726
+ title: TranslationConfig;
727
+ body: TranslationConfig;
728
+ };
729
+ };
730
+ verify: {
731
+ label: TranslationConfig;
732
+ };
733
+ };
734
+ fields: FieldConfig[];
735
+ requireCompletionToContinue: boolean;
736
+ conditional?: import(".").JSONSchema | undefined;
737
+ })[];
738
+ }, {
739
+ label: {
740
+ id: string;
741
+ description: string;
742
+ defaultMessage: string;
743
+ };
744
+ pages: ({
745
+ id: string;
746
+ title: {
747
+ id: string;
748
+ description: string;
749
+ defaultMessage: string;
750
+ };
751
+ fields: import("./FieldConfig").FieldConfigInput[];
752
+ type?: "FORM" | undefined;
753
+ conditional?: import(".").JSONSchema | undefined;
754
+ requireCompletionToContinue?: boolean | undefined;
755
+ } | {
756
+ type: "VERIFICATION";
757
+ id: string;
758
+ title: {
759
+ id: string;
760
+ description: string;
761
+ defaultMessage: string;
762
+ };
763
+ actions: {
764
+ cancel: {
765
+ label: {
766
+ id: string;
767
+ description: string;
768
+ defaultMessage: string;
769
+ };
770
+ confirmation: {
771
+ title: {
772
+ id: string;
773
+ description: string;
774
+ defaultMessage: string;
775
+ };
776
+ body: {
777
+ id: string;
778
+ description: string;
779
+ defaultMessage: string;
780
+ };
781
+ };
782
+ };
783
+ verify: {
784
+ label: {
785
+ id: string;
786
+ description: string;
787
+ defaultMessage: string;
788
+ };
789
+ };
790
+ };
791
+ fields: import("./FieldConfig").FieldConfigInput[];
792
+ conditional?: import(".").JSONSchema | undefined;
793
+ requireCompletionToContinue?: boolean | undefined;
794
+ })[];
795
+ }>;
796
+ }>, "strip", z.ZodTypeAny, {
797
+ type: "PRINT_CERTIFICATE";
798
+ label: TranslationConfig;
799
+ printForm: {
800
+ label: TranslationConfig;
801
+ pages: ({
802
+ type: "FORM";
803
+ id: string;
804
+ title: TranslationConfig;
805
+ fields: FieldConfig[];
806
+ requireCompletionToContinue: boolean;
807
+ conditional?: import(".").JSONSchema | undefined;
808
+ } | {
809
+ type: "VERIFICATION";
810
+ id: string;
811
+ title: TranslationConfig;
812
+ actions: {
813
+ cancel: {
814
+ label: TranslationConfig;
815
+ confirmation: {
816
+ title: TranslationConfig;
817
+ body: TranslationConfig;
818
+ };
819
+ };
820
+ verify: {
821
+ label: TranslationConfig;
822
+ };
823
+ };
824
+ fields: FieldConfig[];
825
+ requireCompletionToContinue: boolean;
826
+ conditional?: import(".").JSONSchema | undefined;
827
+ })[];
828
+ };
829
+ }, {
830
+ type: "PRINT_CERTIFICATE";
831
+ label: {
832
+ id: string;
833
+ description: string;
834
+ defaultMessage: string;
835
+ };
836
+ printForm: {
837
+ label: {
838
+ id: string;
839
+ description: string;
840
+ defaultMessage: string;
841
+ };
842
+ pages: ({
843
+ id: string;
844
+ title: {
845
+ id: string;
846
+ description: string;
847
+ defaultMessage: string;
848
+ };
849
+ fields: import("./FieldConfig").FieldConfigInput[];
850
+ type?: "FORM" | undefined;
851
+ conditional?: import(".").JSONSchema | undefined;
852
+ requireCompletionToContinue?: boolean | undefined;
853
+ } | {
854
+ type: "VERIFICATION";
855
+ id: string;
856
+ title: {
857
+ id: string;
858
+ description: string;
859
+ defaultMessage: string;
860
+ };
861
+ actions: {
862
+ cancel: {
863
+ label: {
864
+ id: string;
865
+ description: string;
866
+ defaultMessage: string;
867
+ };
868
+ confirmation: {
869
+ title: {
870
+ id: string;
871
+ description: string;
872
+ defaultMessage: string;
873
+ };
874
+ body: {
875
+ id: string;
876
+ description: string;
877
+ defaultMessage: string;
878
+ };
879
+ };
880
+ };
881
+ verify: {
882
+ label: {
883
+ id: string;
884
+ description: string;
885
+ defaultMessage: string;
886
+ };
887
+ };
888
+ };
889
+ fields: import("./FieldConfig").FieldConfigInput[];
890
+ conditional?: import(".").JSONSchema | undefined;
891
+ requireCompletionToContinue?: boolean | undefined;
892
+ })[];
893
+ };
894
+ }>;
895
+ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
896
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
897
+ id: string;
898
+ description: string;
899
+ defaultMessage: string;
900
+ }>;
901
+ }, {
902
+ type: z.ZodLiteral<"REQUEST_CORRECTION">;
903
+ correctionForm: z.ZodObject<{
904
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
905
+ id: string;
906
+ description: string;
907
+ defaultMessage: string;
908
+ }>;
909
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", (z.ZodObject<z.objectUtil.extendShape<{
910
+ id: z.ZodString;
911
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
912
+ id: string;
913
+ description: string;
914
+ defaultMessage: string;
915
+ }>;
916
+ requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
917
+ fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
918
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
919
+ }, {
920
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
921
+ }>, "strip", z.ZodTypeAny, {
922
+ type: "FORM";
923
+ id: string;
924
+ title: TranslationConfig;
925
+ fields: FieldConfig[];
926
+ requireCompletionToContinue: boolean;
927
+ conditional?: import(".").JSONSchema | undefined;
928
+ }, {
929
+ id: string;
930
+ title: {
931
+ id: string;
932
+ description: string;
933
+ defaultMessage: string;
934
+ };
935
+ fields: import("./FieldConfig").FieldConfigInput[];
936
+ type?: "FORM" | undefined;
937
+ conditional?: import(".").JSONSchema | undefined;
938
+ requireCompletionToContinue?: boolean | undefined;
939
+ }> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
940
+ id: z.ZodString;
941
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
942
+ id: string;
943
+ description: string;
944
+ defaultMessage: string;
945
+ }>;
946
+ requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
947
+ fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
948
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
949
+ }, {
950
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
951
+ }>, {
952
+ type: z.ZodLiteral<"VERIFICATION">;
953
+ actions: z.ZodObject<{
954
+ verify: z.ZodObject<{
955
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
956
+ id: string;
957
+ description: string;
958
+ defaultMessage: string;
959
+ }>;
960
+ }, "strip", z.ZodTypeAny, {
961
+ label: TranslationConfig;
962
+ }, {
963
+ label: {
964
+ id: string;
965
+ description: string;
966
+ defaultMessage: string;
967
+ };
968
+ }>;
969
+ cancel: z.ZodObject<{
970
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
971
+ id: string;
972
+ description: string;
973
+ defaultMessage: string;
974
+ }>;
975
+ confirmation: z.ZodObject<{
976
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
977
+ id: string;
978
+ description: string;
979
+ defaultMessage: string;
980
+ }>;
981
+ body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
982
+ id: string;
983
+ description: string;
984
+ defaultMessage: string;
985
+ }>;
986
+ }, "strip", z.ZodTypeAny, {
987
+ title: TranslationConfig;
988
+ body: TranslationConfig;
989
+ }, {
990
+ title: {
991
+ id: string;
992
+ description: string;
993
+ defaultMessage: string;
994
+ };
995
+ body: {
996
+ id: string;
997
+ description: string;
998
+ defaultMessage: string;
999
+ };
1000
+ }>;
1001
+ }, "strip", z.ZodTypeAny, {
1002
+ label: TranslationConfig;
1003
+ confirmation: {
1004
+ title: TranslationConfig;
1005
+ body: TranslationConfig;
1006
+ };
1007
+ }, {
1008
+ label: {
1009
+ id: string;
1010
+ description: string;
1011
+ defaultMessage: string;
1012
+ };
1013
+ confirmation: {
1014
+ title: {
1015
+ id: string;
1016
+ description: string;
1017
+ defaultMessage: string;
1018
+ };
1019
+ body: {
1020
+ id: string;
1021
+ description: string;
1022
+ defaultMessage: string;
1023
+ };
1024
+ };
1025
+ }>;
1026
+ }, "strip", z.ZodTypeAny, {
1027
+ cancel: {
1028
+ label: TranslationConfig;
1029
+ confirmation: {
1030
+ title: TranslationConfig;
1031
+ body: TranslationConfig;
1032
+ };
1033
+ };
1034
+ verify: {
1035
+ label: TranslationConfig;
1036
+ };
1037
+ }, {
1038
+ cancel: {
1039
+ label: {
1040
+ id: string;
1041
+ description: string;
1042
+ defaultMessage: string;
1043
+ };
1044
+ confirmation: {
1045
+ title: {
1046
+ id: string;
1047
+ description: string;
1048
+ defaultMessage: string;
1049
+ };
1050
+ body: {
1051
+ id: string;
1052
+ description: string;
1053
+ defaultMessage: string;
1054
+ };
1055
+ };
1056
+ };
1057
+ verify: {
1058
+ label: {
1059
+ id: string;
1060
+ description: string;
1061
+ defaultMessage: string;
1062
+ };
1063
+ };
1064
+ }>;
1065
+ }>, "strip", z.ZodTypeAny, {
1066
+ type: "VERIFICATION";
1067
+ id: string;
1068
+ title: TranslationConfig;
1069
+ actions: {
1070
+ cancel: {
1071
+ label: TranslationConfig;
1072
+ confirmation: {
1073
+ title: TranslationConfig;
1074
+ body: TranslationConfig;
1075
+ };
1076
+ };
1077
+ verify: {
1078
+ label: TranslationConfig;
1079
+ };
1080
+ };
1081
+ fields: FieldConfig[];
1082
+ requireCompletionToContinue: boolean;
1083
+ conditional?: import(".").JSONSchema | undefined;
1084
+ }, {
1085
+ type: "VERIFICATION";
1086
+ id: string;
1087
+ title: {
1088
+ id: string;
1089
+ description: string;
1090
+ defaultMessage: string;
1091
+ };
1092
+ actions: {
1093
+ cancel: {
1094
+ label: {
1095
+ id: string;
1096
+ description: string;
1097
+ defaultMessage: string;
1098
+ };
1099
+ confirmation: {
1100
+ title: {
1101
+ id: string;
1102
+ description: string;
1103
+ defaultMessage: string;
1104
+ };
1105
+ body: {
1106
+ id: string;
1107
+ description: string;
1108
+ defaultMessage: string;
1109
+ };
1110
+ };
1111
+ };
1112
+ verify: {
1113
+ label: {
1114
+ id: string;
1115
+ description: string;
1116
+ defaultMessage: string;
1117
+ };
1118
+ };
1119
+ };
1120
+ fields: import("./FieldConfig").FieldConfigInput[];
1121
+ conditional?: import(".").JSONSchema | undefined;
1122
+ requireCompletionToContinue?: boolean | undefined;
1123
+ }>)[]>, "many">;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ label: TranslationConfig;
1126
+ pages: ({
1127
+ type: "FORM";
1128
+ id: string;
1129
+ title: TranslationConfig;
1130
+ fields: FieldConfig[];
1131
+ requireCompletionToContinue: boolean;
1132
+ conditional?: import(".").JSONSchema | undefined;
1133
+ } | {
1134
+ type: "VERIFICATION";
1135
+ id: string;
1136
+ title: TranslationConfig;
1137
+ actions: {
1138
+ cancel: {
1139
+ label: TranslationConfig;
1140
+ confirmation: {
1141
+ title: TranslationConfig;
1142
+ body: TranslationConfig;
1143
+ };
1144
+ };
1145
+ verify: {
1146
+ label: TranslationConfig;
1147
+ };
1148
+ };
1149
+ fields: FieldConfig[];
1150
+ requireCompletionToContinue: boolean;
1151
+ conditional?: import(".").JSONSchema | undefined;
1152
+ })[];
1153
+ }, {
1154
+ label: {
1155
+ id: string;
1156
+ description: string;
1157
+ defaultMessage: string;
1158
+ };
1159
+ pages: ({
1160
+ id: string;
1161
+ title: {
1162
+ id: string;
1163
+ description: string;
1164
+ defaultMessage: string;
1165
+ };
1166
+ fields: import("./FieldConfig").FieldConfigInput[];
1167
+ type?: "FORM" | undefined;
1168
+ conditional?: import(".").JSONSchema | undefined;
1169
+ requireCompletionToContinue?: boolean | undefined;
1170
+ } | {
1171
+ type: "VERIFICATION";
1172
+ id: string;
1173
+ title: {
1174
+ id: string;
1175
+ description: string;
1176
+ defaultMessage: string;
1177
+ };
1178
+ actions: {
1179
+ cancel: {
1180
+ label: {
1181
+ id: string;
1182
+ description: string;
1183
+ defaultMessage: string;
1184
+ };
1185
+ confirmation: {
1186
+ title: {
1187
+ id: string;
1188
+ description: string;
1189
+ defaultMessage: string;
1190
+ };
1191
+ body: {
1192
+ id: string;
1193
+ description: string;
1194
+ defaultMessage: string;
1195
+ };
1196
+ };
1197
+ };
1198
+ verify: {
1199
+ label: {
1200
+ id: string;
1201
+ description: string;
1202
+ defaultMessage: string;
1203
+ };
1204
+ };
1205
+ };
1206
+ fields: import("./FieldConfig").FieldConfigInput[];
1207
+ conditional?: import(".").JSONSchema | undefined;
1208
+ requireCompletionToContinue?: boolean | undefined;
1209
+ })[];
1210
+ }>;
1211
+ }>, "strip", z.ZodTypeAny, {
1212
+ type: "REQUEST_CORRECTION";
1213
+ label: TranslationConfig;
1214
+ correctionForm: {
1215
+ label: TranslationConfig;
1216
+ pages: ({
1217
+ type: "FORM";
1218
+ id: string;
1219
+ title: TranslationConfig;
1220
+ fields: FieldConfig[];
1221
+ requireCompletionToContinue: boolean;
1222
+ conditional?: import(".").JSONSchema | undefined;
1223
+ } | {
1224
+ type: "VERIFICATION";
1225
+ id: string;
1226
+ title: TranslationConfig;
1227
+ actions: {
1228
+ cancel: {
1229
+ label: TranslationConfig;
1230
+ confirmation: {
1231
+ title: TranslationConfig;
1232
+ body: TranslationConfig;
1233
+ };
1234
+ };
1235
+ verify: {
1236
+ label: TranslationConfig;
1237
+ };
1238
+ };
1239
+ fields: FieldConfig[];
1240
+ requireCompletionToContinue: boolean;
1241
+ conditional?: import(".").JSONSchema | undefined;
1242
+ })[];
1243
+ };
1244
+ }, {
1245
+ type: "REQUEST_CORRECTION";
1246
+ label: {
1247
+ id: string;
1248
+ description: string;
1249
+ defaultMessage: string;
1250
+ };
1251
+ correctionForm: {
1252
+ label: {
1253
+ id: string;
1254
+ description: string;
1255
+ defaultMessage: string;
1256
+ };
1257
+ pages: ({
1258
+ id: string;
1259
+ title: {
1260
+ id: string;
1261
+ description: string;
1262
+ defaultMessage: string;
1263
+ };
1264
+ fields: import("./FieldConfig").FieldConfigInput[];
1265
+ type?: "FORM" | undefined;
1266
+ conditional?: import(".").JSONSchema | undefined;
1267
+ requireCompletionToContinue?: boolean | undefined;
1268
+ } | {
1269
+ type: "VERIFICATION";
1270
+ id: string;
1271
+ title: {
1272
+ id: string;
1273
+ description: string;
1274
+ defaultMessage: string;
1275
+ };
1276
+ actions: {
1277
+ cancel: {
1278
+ label: {
1279
+ id: string;
1280
+ description: string;
1281
+ defaultMessage: string;
1282
+ };
1283
+ confirmation: {
1284
+ title: {
1285
+ id: string;
1286
+ description: string;
1287
+ defaultMessage: string;
1288
+ };
1289
+ body: {
1290
+ id: string;
1291
+ description: string;
1292
+ defaultMessage: string;
1293
+ };
1294
+ };
1295
+ };
1296
+ verify: {
1297
+ label: {
1298
+ id: string;
1299
+ description: string;
1300
+ defaultMessage: string;
1301
+ };
1302
+ };
1303
+ };
1304
+ fields: import("./FieldConfig").FieldConfigInput[];
1305
+ conditional?: import(".").JSONSchema | undefined;
1306
+ requireCompletionToContinue?: boolean | undefined;
1307
+ })[];
1308
+ };
1309
+ }>;
1310
+ declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
1311
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1312
+ id: string;
1313
+ description: string;
1314
+ defaultMessage: string;
1315
+ }>;
1316
+ }, {
1317
+ type: z.ZodLiteral<"REJECT_CORRECTION">;
1318
+ }>, "strip", z.ZodTypeAny, {
1319
+ type: "REJECT_CORRECTION";
1320
+ label: TranslationConfig;
1321
+ }, {
1322
+ type: "REJECT_CORRECTION";
1323
+ label: {
1324
+ id: string;
1325
+ description: string;
1326
+ defaultMessage: string;
1327
+ };
1328
+ }>;
1329
+ declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
1330
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1331
+ id: string;
1332
+ description: string;
1333
+ defaultMessage: string;
1334
+ }>;
1335
+ }, {
1336
+ type: z.ZodLiteral<"APPROVE_CORRECTION">;
1337
+ }>, "strip", z.ZodTypeAny, {
1338
+ type: "APPROVE_CORRECTION";
1339
+ label: TranslationConfig;
1340
+ }, {
1341
+ type: "APPROVE_CORRECTION";
1342
+ label: {
1343
+ id: string;
1344
+ description: string;
1345
+ defaultMessage: string;
1346
+ };
1347
+ }>;
1348
+ /** @knipignore */
1349
+ export type AllActionConfigFields = typeof ReadActionConfig | typeof DeclareConfig | typeof ValidateConfig | typeof RejectDeclarationConfig | typeof ArchiveConfig | typeof RegisterConfig | typeof DeleteConfig | typeof PrintCertificateActionConfig | typeof RequestCorrectionConfig | typeof RejectCorrectionConfig | typeof ApproveCorrectionConfig;
1350
+ /** @knipignore */
1351
+ export type InferredActionConfig = z.infer<typeof ReadActionConfig> | z.infer<typeof DeclareConfig> | z.infer<typeof ValidateConfig> | z.infer<typeof RejectDeclarationConfig> | 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>;
1352
+ export declare const ActionConfig: z.ZodDiscriminatedUnion<"type", AllActionConfigFields[]>;
1353
+ export type ActionConfig = InferredActionConfig;
1354
+ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1355
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1356
+ id: string;
1357
+ description: string;
1358
+ defaultMessage: string;
1359
+ }>;
1360
+ }, {
1361
+ review: z.ZodObject<{
1362
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1363
+ id: string;
1364
+ description: string;
1365
+ defaultMessage: string;
1366
+ }>;
1367
+ fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
1368
+ }, "strip", z.ZodTypeAny, {
1369
+ title: TranslationConfig;
1370
+ fields: FieldConfig[];
1371
+ }, {
1372
+ title: {
1373
+ id: string;
1374
+ description: string;
1375
+ defaultMessage: string;
1376
+ };
1377
+ fields: import("./FieldConfig").FieldConfigInput[];
1378
+ }>;
1379
+ deduplication: z.ZodOptional<z.ZodObject<{
1380
+ id: z.ZodString;
1381
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1382
+ id: string;
1383
+ description: string;
1384
+ defaultMessage: string;
1385
+ }>;
1386
+ query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
1387
+ }, "strip", z.ZodTypeAny, {
1388
+ id: string;
1389
+ query: import("./DeduplicationConfig").ClauseOutput;
1390
+ label: TranslationConfig;
1391
+ }, {
1392
+ id: string;
1393
+ query: import("./DeduplicationConfig").ClauseInput;
1394
+ label: {
1395
+ id: string;
1396
+ description: string;
1397
+ defaultMessage: string;
1398
+ };
1399
+ }>>;
1400
+ }>, {
1401
+ type: z.ZodLiteral<"DECLARE">;
1402
+ }>, "strip", z.ZodTypeAny, {
1403
+ type: "DECLARE";
1404
+ label: TranslationConfig;
1405
+ review: {
1406
+ title: TranslationConfig;
1407
+ fields: FieldConfig[];
1408
+ };
1409
+ deduplication?: {
1410
+ id: string;
1411
+ query: import("./DeduplicationConfig").ClauseOutput;
1412
+ label: TranslationConfig;
1413
+ } | undefined;
1414
+ }, {
1415
+ type: "DECLARE";
1416
+ label: {
1417
+ id: string;
1418
+ description: string;
1419
+ defaultMessage: string;
1420
+ };
1421
+ review: {
1422
+ title: {
1423
+ id: string;
1424
+ description: string;
1425
+ defaultMessage: string;
1426
+ };
1427
+ fields: import("./FieldConfig").FieldConfigInput[];
1428
+ };
1429
+ deduplication?: {
1430
+ id: string;
1431
+ query: import("./DeduplicationConfig").ClauseInput;
1432
+ label: {
1433
+ id: string;
1434
+ description: string;
1435
+ defaultMessage: string;
1436
+ };
1437
+ } | undefined;
1438
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1439
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1440
+ id: string;
1441
+ description: string;
1442
+ defaultMessage: string;
1443
+ }>;
1444
+ }, {
1445
+ review: z.ZodObject<{
1446
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1447
+ id: string;
1448
+ description: string;
1449
+ defaultMessage: string;
1450
+ }>;
1451
+ fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
1452
+ }, "strip", z.ZodTypeAny, {
1453
+ title: TranslationConfig;
1454
+ fields: FieldConfig[];
1455
+ }, {
1456
+ title: {
1457
+ id: string;
1458
+ description: string;
1459
+ defaultMessage: string;
1460
+ };
1461
+ fields: import("./FieldConfig").FieldConfigInput[];
1462
+ }>;
1463
+ deduplication: z.ZodOptional<z.ZodObject<{
1464
+ id: z.ZodString;
1465
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1466
+ id: string;
1467
+ description: string;
1468
+ defaultMessage: string;
1469
+ }>;
1470
+ query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
1471
+ }, "strip", z.ZodTypeAny, {
1472
+ id: string;
1473
+ query: import("./DeduplicationConfig").ClauseOutput;
1474
+ label: TranslationConfig;
1475
+ }, {
1476
+ id: string;
1477
+ query: import("./DeduplicationConfig").ClauseInput;
1478
+ label: {
1479
+ id: string;
1480
+ description: string;
1481
+ defaultMessage: string;
1482
+ };
1483
+ }>>;
1484
+ }>, {
1485
+ type: z.ZodLiteral<"VALIDATE">;
1486
+ }>, "strip", z.ZodTypeAny, {
1487
+ type: "VALIDATE";
1488
+ label: TranslationConfig;
1489
+ review: {
1490
+ title: TranslationConfig;
1491
+ fields: FieldConfig[];
1492
+ };
1493
+ deduplication?: {
1494
+ id: string;
1495
+ query: import("./DeduplicationConfig").ClauseOutput;
1496
+ label: TranslationConfig;
1497
+ } | undefined;
1498
+ }, {
1499
+ type: "VALIDATE";
1500
+ label: {
1501
+ id: string;
1502
+ description: string;
1503
+ defaultMessage: string;
1504
+ };
1505
+ review: {
1506
+ title: {
1507
+ id: string;
1508
+ description: string;
1509
+ defaultMessage: string;
1510
+ };
1511
+ fields: import("./FieldConfig").FieldConfigInput[];
1512
+ };
1513
+ deduplication?: {
1514
+ id: string;
1515
+ query: import("./DeduplicationConfig").ClauseInput;
1516
+ label: {
1517
+ id: string;
1518
+ description: string;
1519
+ defaultMessage: string;
1520
+ };
1521
+ } | undefined;
1522
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1523
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1524
+ id: string;
1525
+ description: string;
1526
+ defaultMessage: string;
1527
+ }>;
1528
+ }, {
1529
+ review: z.ZodObject<{
1530
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1531
+ id: string;
1532
+ description: string;
1533
+ defaultMessage: string;
1534
+ }>;
1535
+ fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
1536
+ }, "strip", z.ZodTypeAny, {
1537
+ title: TranslationConfig;
1538
+ fields: FieldConfig[];
1539
+ }, {
1540
+ title: {
1541
+ id: string;
1542
+ description: string;
1543
+ defaultMessage: string;
1544
+ };
1545
+ fields: import("./FieldConfig").FieldConfigInput[];
1546
+ }>;
1547
+ deduplication: z.ZodOptional<z.ZodObject<{
1548
+ id: z.ZodString;
1549
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1550
+ id: string;
1551
+ description: string;
1552
+ defaultMessage: string;
1553
+ }>;
1554
+ query: z.ZodType<import("./DeduplicationConfig").ClauseOutput, z.ZodTypeDef, import("./DeduplicationConfig").ClauseInput>;
1555
+ }, "strip", z.ZodTypeAny, {
1556
+ id: string;
1557
+ query: import("./DeduplicationConfig").ClauseOutput;
1558
+ label: TranslationConfig;
1559
+ }, {
1560
+ id: string;
1561
+ query: import("./DeduplicationConfig").ClauseInput;
1562
+ label: {
1563
+ id: string;
1564
+ description: string;
1565
+ defaultMessage: string;
1566
+ };
1567
+ }>>;
1568
+ }>, {
1569
+ type: z.ZodLiteral<"REGISTER">;
1570
+ }>, "strip", z.ZodTypeAny, {
1571
+ type: "REGISTER";
1572
+ label: TranslationConfig;
1573
+ review: {
1574
+ title: TranslationConfig;
1575
+ fields: FieldConfig[];
1576
+ };
1577
+ deduplication?: {
1578
+ id: string;
1579
+ query: import("./DeduplicationConfig").ClauseOutput;
1580
+ label: TranslationConfig;
1581
+ } | undefined;
1582
+ }, {
1583
+ type: "REGISTER";
1584
+ label: {
1585
+ id: string;
1586
+ description: string;
1587
+ defaultMessage: string;
1588
+ };
1589
+ review: {
1590
+ title: {
1591
+ id: string;
1592
+ description: string;
1593
+ defaultMessage: string;
1594
+ };
1595
+ fields: import("./FieldConfig").FieldConfigInput[];
1596
+ };
1597
+ deduplication?: {
1598
+ id: string;
1599
+ query: import("./DeduplicationConfig").ClauseInput;
1600
+ label: {
1601
+ id: string;
1602
+ description: string;
1603
+ defaultMessage: string;
1604
+ };
1605
+ } | undefined;
1606
+ }>]>;
1607
+ export type DeclarationActionConfig = z.infer<typeof DeclarationActionConfig>;
1608
+ export {};
1609
+ //# sourceMappingURL=ActionConfig.d.ts.map