@nira-opencrvs/toolkit 1.9.11-rc.39d8d68

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,755 @@
1
+ import { z } from 'zod';
2
+ import { TranslationConfig } from './TranslationConfig';
3
+ export declare const DeclarationFormConfig: z.ZodObject<{
4
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
5
+ id: string;
6
+ description: string;
7
+ defaultMessage: string;
8
+ }>;
9
+ pages: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
10
+ id: z.ZodString;
11
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
12
+ id: string;
13
+ description: string;
14
+ defaultMessage: string;
15
+ }>;
16
+ requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
17
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
18
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
19
+ }, {
20
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
21
+ }>, "strip", z.ZodTypeAny, {
22
+ type: "FORM";
23
+ id: string;
24
+ title: TranslationConfig;
25
+ fields: import("./FieldConfig").FieldConfig[];
26
+ requireCompletionToContinue: boolean;
27
+ conditional?: import(".").JSONSchema | undefined;
28
+ }, {
29
+ id: string;
30
+ title: {
31
+ id: string;
32
+ description: string;
33
+ defaultMessage: string;
34
+ };
35
+ fields: import("./FieldConfig").FieldConfigInput[];
36
+ type?: "FORM" | undefined;
37
+ conditional?: import(".").JSONSchema | undefined;
38
+ requireCompletionToContinue?: boolean | undefined;
39
+ }>, "many">;
40
+ }, "strip", z.ZodTypeAny, {
41
+ label: TranslationConfig;
42
+ pages: {
43
+ type: "FORM";
44
+ id: string;
45
+ title: TranslationConfig;
46
+ fields: import("./FieldConfig").FieldConfig[];
47
+ requireCompletionToContinue: boolean;
48
+ conditional?: import(".").JSONSchema | undefined;
49
+ }[];
50
+ }, {
51
+ label: {
52
+ id: string;
53
+ description: string;
54
+ defaultMessage: string;
55
+ };
56
+ pages: {
57
+ id: string;
58
+ title: {
59
+ id: string;
60
+ description: string;
61
+ defaultMessage: string;
62
+ };
63
+ fields: import("./FieldConfig").FieldConfigInput[];
64
+ type?: "FORM" | undefined;
65
+ conditional?: import(".").JSONSchema | undefined;
66
+ requireCompletionToContinue?: boolean | undefined;
67
+ }[];
68
+ }>;
69
+ export type DeclarationFormConfig = z.infer<typeof DeclarationFormConfig>;
70
+ export type DeclarationFormConfigInput = z.input<typeof DeclarationFormConfig>;
71
+ export declare const ActionFormConfig: z.ZodObject<{
72
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
73
+ id: string;
74
+ description: string;
75
+ defaultMessage: string;
76
+ }>;
77
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", (z.ZodObject<z.objectUtil.extendShape<{
78
+ id: z.ZodString;
79
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
80
+ id: string;
81
+ description: string;
82
+ defaultMessage: string;
83
+ }>;
84
+ requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
85
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
86
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
87
+ }, {
88
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
89
+ }>, "strip", z.ZodTypeAny, {
90
+ type: "FORM";
91
+ id: string;
92
+ title: TranslationConfig;
93
+ fields: import("./FieldConfig").FieldConfig[];
94
+ requireCompletionToContinue: boolean;
95
+ conditional?: import(".").JSONSchema | undefined;
96
+ }, {
97
+ id: string;
98
+ title: {
99
+ id: string;
100
+ description: string;
101
+ defaultMessage: string;
102
+ };
103
+ fields: import("./FieldConfig").FieldConfigInput[];
104
+ type?: "FORM" | undefined;
105
+ conditional?: import(".").JSONSchema | undefined;
106
+ requireCompletionToContinue?: boolean | undefined;
107
+ }> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
108
+ id: z.ZodString;
109
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
110
+ id: string;
111
+ description: string;
112
+ defaultMessage: string;
113
+ }>;
114
+ requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
115
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
116
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
117
+ }, {
118
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
119
+ }>, {
120
+ type: z.ZodLiteral<"VERIFICATION">;
121
+ actions: z.ZodObject<{
122
+ verify: z.ZodObject<{
123
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
124
+ id: string;
125
+ description: string;
126
+ defaultMessage: string;
127
+ }>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ label: TranslationConfig;
130
+ }, {
131
+ label: {
132
+ id: string;
133
+ description: string;
134
+ defaultMessage: string;
135
+ };
136
+ }>;
137
+ cancel: z.ZodObject<{
138
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
139
+ id: string;
140
+ description: string;
141
+ defaultMessage: string;
142
+ }>;
143
+ confirmation: z.ZodObject<{
144
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
145
+ id: string;
146
+ description: string;
147
+ defaultMessage: string;
148
+ }>;
149
+ body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
150
+ id: string;
151
+ description: string;
152
+ defaultMessage: string;
153
+ }>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ title: TranslationConfig;
156
+ body: TranslationConfig;
157
+ }, {
158
+ title: {
159
+ id: string;
160
+ description: string;
161
+ defaultMessage: string;
162
+ };
163
+ body: {
164
+ id: string;
165
+ description: string;
166
+ defaultMessage: string;
167
+ };
168
+ }>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ label: TranslationConfig;
171
+ confirmation: {
172
+ title: TranslationConfig;
173
+ body: TranslationConfig;
174
+ };
175
+ }, {
176
+ label: {
177
+ id: string;
178
+ description: string;
179
+ defaultMessage: string;
180
+ };
181
+ confirmation: {
182
+ title: {
183
+ id: string;
184
+ description: string;
185
+ defaultMessage: string;
186
+ };
187
+ body: {
188
+ id: string;
189
+ description: string;
190
+ defaultMessage: string;
191
+ };
192
+ };
193
+ }>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ cancel: {
196
+ label: TranslationConfig;
197
+ confirmation: {
198
+ title: TranslationConfig;
199
+ body: TranslationConfig;
200
+ };
201
+ };
202
+ verify: {
203
+ label: TranslationConfig;
204
+ };
205
+ }, {
206
+ cancel: {
207
+ label: {
208
+ id: string;
209
+ description: string;
210
+ defaultMessage: string;
211
+ };
212
+ confirmation: {
213
+ title: {
214
+ id: string;
215
+ description: string;
216
+ defaultMessage: string;
217
+ };
218
+ body: {
219
+ id: string;
220
+ description: string;
221
+ defaultMessage: string;
222
+ };
223
+ };
224
+ };
225
+ verify: {
226
+ label: {
227
+ id: string;
228
+ description: string;
229
+ defaultMessage: string;
230
+ };
231
+ };
232
+ }>;
233
+ }>, "strip", z.ZodTypeAny, {
234
+ type: "VERIFICATION";
235
+ id: string;
236
+ title: TranslationConfig;
237
+ actions: {
238
+ cancel: {
239
+ label: TranslationConfig;
240
+ confirmation: {
241
+ title: TranslationConfig;
242
+ body: TranslationConfig;
243
+ };
244
+ };
245
+ verify: {
246
+ label: TranslationConfig;
247
+ };
248
+ };
249
+ fields: import("./FieldConfig").FieldConfig[];
250
+ requireCompletionToContinue: boolean;
251
+ conditional?: import(".").JSONSchema | undefined;
252
+ }, {
253
+ type: "VERIFICATION";
254
+ id: string;
255
+ title: {
256
+ id: string;
257
+ description: string;
258
+ defaultMessage: string;
259
+ };
260
+ actions: {
261
+ cancel: {
262
+ label: {
263
+ id: string;
264
+ description: string;
265
+ defaultMessage: string;
266
+ };
267
+ confirmation: {
268
+ title: {
269
+ id: string;
270
+ description: string;
271
+ defaultMessage: string;
272
+ };
273
+ body: {
274
+ id: string;
275
+ description: string;
276
+ defaultMessage: string;
277
+ };
278
+ };
279
+ };
280
+ verify: {
281
+ label: {
282
+ id: string;
283
+ description: string;
284
+ defaultMessage: string;
285
+ };
286
+ };
287
+ };
288
+ fields: import("./FieldConfig").FieldConfigInput[];
289
+ conditional?: import(".").JSONSchema | undefined;
290
+ requireCompletionToContinue?: boolean | undefined;
291
+ }>)[]>, "many">;
292
+ }, "strip", z.ZodTypeAny, {
293
+ label: TranslationConfig;
294
+ pages: ({
295
+ type: "FORM";
296
+ id: string;
297
+ title: TranslationConfig;
298
+ fields: import("./FieldConfig").FieldConfig[];
299
+ requireCompletionToContinue: boolean;
300
+ conditional?: import(".").JSONSchema | undefined;
301
+ } | {
302
+ type: "VERIFICATION";
303
+ id: string;
304
+ title: TranslationConfig;
305
+ actions: {
306
+ cancel: {
307
+ label: TranslationConfig;
308
+ confirmation: {
309
+ title: TranslationConfig;
310
+ body: TranslationConfig;
311
+ };
312
+ };
313
+ verify: {
314
+ label: TranslationConfig;
315
+ };
316
+ };
317
+ fields: import("./FieldConfig").FieldConfig[];
318
+ requireCompletionToContinue: boolean;
319
+ conditional?: import(".").JSONSchema | undefined;
320
+ })[];
321
+ }, {
322
+ label: {
323
+ id: string;
324
+ description: string;
325
+ defaultMessage: string;
326
+ };
327
+ pages: ({
328
+ id: string;
329
+ title: {
330
+ id: string;
331
+ description: string;
332
+ defaultMessage: string;
333
+ };
334
+ fields: import("./FieldConfig").FieldConfigInput[];
335
+ type?: "FORM" | undefined;
336
+ conditional?: import(".").JSONSchema | undefined;
337
+ requireCompletionToContinue?: boolean | undefined;
338
+ } | {
339
+ type: "VERIFICATION";
340
+ id: string;
341
+ title: {
342
+ id: string;
343
+ description: string;
344
+ defaultMessage: string;
345
+ };
346
+ actions: {
347
+ cancel: {
348
+ label: {
349
+ id: string;
350
+ description: string;
351
+ defaultMessage: string;
352
+ };
353
+ confirmation: {
354
+ title: {
355
+ id: string;
356
+ description: string;
357
+ defaultMessage: string;
358
+ };
359
+ body: {
360
+ id: string;
361
+ description: string;
362
+ defaultMessage: string;
363
+ };
364
+ };
365
+ };
366
+ verify: {
367
+ label: {
368
+ id: string;
369
+ description: string;
370
+ defaultMessage: string;
371
+ };
372
+ };
373
+ };
374
+ fields: import("./FieldConfig").FieldConfigInput[];
375
+ conditional?: import(".").JSONSchema | undefined;
376
+ requireCompletionToContinue?: boolean | undefined;
377
+ })[];
378
+ }>;
379
+ export type ActionFormConfig = z.infer<typeof ActionFormConfig>;
380
+ export type ActionFormConfigInput = z.input<typeof ActionFormConfig>;
381
+ export declare const FormConfig: z.ZodUnion<[z.ZodObject<{
382
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
383
+ id: string;
384
+ description: string;
385
+ defaultMessage: string;
386
+ }>;
387
+ pages: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
388
+ id: z.ZodString;
389
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
390
+ id: string;
391
+ description: string;
392
+ defaultMessage: string;
393
+ }>;
394
+ requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
395
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
396
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
397
+ }, {
398
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
399
+ }>, "strip", z.ZodTypeAny, {
400
+ type: "FORM";
401
+ id: string;
402
+ title: TranslationConfig;
403
+ fields: import("./FieldConfig").FieldConfig[];
404
+ requireCompletionToContinue: boolean;
405
+ conditional?: import(".").JSONSchema | undefined;
406
+ }, {
407
+ id: string;
408
+ title: {
409
+ id: string;
410
+ description: string;
411
+ defaultMessage: string;
412
+ };
413
+ fields: import("./FieldConfig").FieldConfigInput[];
414
+ type?: "FORM" | undefined;
415
+ conditional?: import(".").JSONSchema | undefined;
416
+ requireCompletionToContinue?: boolean | undefined;
417
+ }>, "many">;
418
+ }, "strip", z.ZodTypeAny, {
419
+ label: TranslationConfig;
420
+ pages: {
421
+ type: "FORM";
422
+ id: string;
423
+ title: TranslationConfig;
424
+ fields: import("./FieldConfig").FieldConfig[];
425
+ requireCompletionToContinue: boolean;
426
+ conditional?: import(".").JSONSchema | undefined;
427
+ }[];
428
+ }, {
429
+ label: {
430
+ id: string;
431
+ description: string;
432
+ defaultMessage: string;
433
+ };
434
+ pages: {
435
+ id: string;
436
+ title: {
437
+ id: string;
438
+ description: string;
439
+ defaultMessage: string;
440
+ };
441
+ fields: import("./FieldConfig").FieldConfigInput[];
442
+ type?: "FORM" | undefined;
443
+ conditional?: import(".").JSONSchema | undefined;
444
+ requireCompletionToContinue?: boolean | undefined;
445
+ }[];
446
+ }>, z.ZodObject<{
447
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
448
+ id: string;
449
+ description: string;
450
+ defaultMessage: string;
451
+ }>;
452
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", (z.ZodObject<z.objectUtil.extendShape<{
453
+ id: z.ZodString;
454
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
455
+ id: string;
456
+ description: string;
457
+ defaultMessage: string;
458
+ }>;
459
+ requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
460
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
461
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
462
+ }, {
463
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
464
+ }>, "strip", z.ZodTypeAny, {
465
+ type: "FORM";
466
+ id: string;
467
+ title: TranslationConfig;
468
+ fields: import("./FieldConfig").FieldConfig[];
469
+ requireCompletionToContinue: boolean;
470
+ conditional?: import(".").JSONSchema | undefined;
471
+ }, {
472
+ id: string;
473
+ title: {
474
+ id: string;
475
+ description: string;
476
+ defaultMessage: string;
477
+ };
478
+ fields: import("./FieldConfig").FieldConfigInput[];
479
+ type?: "FORM" | undefined;
480
+ conditional?: import(".").JSONSchema | undefined;
481
+ requireCompletionToContinue?: boolean | undefined;
482
+ }> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
483
+ id: z.ZodString;
484
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
485
+ id: string;
486
+ description: string;
487
+ defaultMessage: string;
488
+ }>;
489
+ requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
490
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
491
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
492
+ }, {
493
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
494
+ }>, {
495
+ type: z.ZodLiteral<"VERIFICATION">;
496
+ actions: z.ZodObject<{
497
+ verify: z.ZodObject<{
498
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
499
+ id: string;
500
+ description: string;
501
+ defaultMessage: string;
502
+ }>;
503
+ }, "strip", z.ZodTypeAny, {
504
+ label: TranslationConfig;
505
+ }, {
506
+ label: {
507
+ id: string;
508
+ description: string;
509
+ defaultMessage: string;
510
+ };
511
+ }>;
512
+ cancel: z.ZodObject<{
513
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
514
+ id: string;
515
+ description: string;
516
+ defaultMessage: string;
517
+ }>;
518
+ confirmation: z.ZodObject<{
519
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
520
+ id: string;
521
+ description: string;
522
+ defaultMessage: string;
523
+ }>;
524
+ body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
525
+ id: string;
526
+ description: string;
527
+ defaultMessage: string;
528
+ }>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ title: TranslationConfig;
531
+ body: TranslationConfig;
532
+ }, {
533
+ title: {
534
+ id: string;
535
+ description: string;
536
+ defaultMessage: string;
537
+ };
538
+ body: {
539
+ id: string;
540
+ description: string;
541
+ defaultMessage: string;
542
+ };
543
+ }>;
544
+ }, "strip", z.ZodTypeAny, {
545
+ label: TranslationConfig;
546
+ confirmation: {
547
+ title: TranslationConfig;
548
+ body: TranslationConfig;
549
+ };
550
+ }, {
551
+ label: {
552
+ id: string;
553
+ description: string;
554
+ defaultMessage: string;
555
+ };
556
+ confirmation: {
557
+ title: {
558
+ id: string;
559
+ description: string;
560
+ defaultMessage: string;
561
+ };
562
+ body: {
563
+ id: string;
564
+ description: string;
565
+ defaultMessage: string;
566
+ };
567
+ };
568
+ }>;
569
+ }, "strip", z.ZodTypeAny, {
570
+ cancel: {
571
+ label: TranslationConfig;
572
+ confirmation: {
573
+ title: TranslationConfig;
574
+ body: TranslationConfig;
575
+ };
576
+ };
577
+ verify: {
578
+ label: TranslationConfig;
579
+ };
580
+ }, {
581
+ cancel: {
582
+ label: {
583
+ id: string;
584
+ description: string;
585
+ defaultMessage: string;
586
+ };
587
+ confirmation: {
588
+ title: {
589
+ id: string;
590
+ description: string;
591
+ defaultMessage: string;
592
+ };
593
+ body: {
594
+ id: string;
595
+ description: string;
596
+ defaultMessage: string;
597
+ };
598
+ };
599
+ };
600
+ verify: {
601
+ label: {
602
+ id: string;
603
+ description: string;
604
+ defaultMessage: string;
605
+ };
606
+ };
607
+ }>;
608
+ }>, "strip", z.ZodTypeAny, {
609
+ type: "VERIFICATION";
610
+ id: string;
611
+ title: TranslationConfig;
612
+ actions: {
613
+ cancel: {
614
+ label: TranslationConfig;
615
+ confirmation: {
616
+ title: TranslationConfig;
617
+ body: TranslationConfig;
618
+ };
619
+ };
620
+ verify: {
621
+ label: TranslationConfig;
622
+ };
623
+ };
624
+ fields: import("./FieldConfig").FieldConfig[];
625
+ requireCompletionToContinue: boolean;
626
+ conditional?: import(".").JSONSchema | undefined;
627
+ }, {
628
+ type: "VERIFICATION";
629
+ id: string;
630
+ title: {
631
+ id: string;
632
+ description: string;
633
+ defaultMessage: string;
634
+ };
635
+ actions: {
636
+ cancel: {
637
+ label: {
638
+ id: string;
639
+ description: string;
640
+ defaultMessage: string;
641
+ };
642
+ confirmation: {
643
+ title: {
644
+ id: string;
645
+ description: string;
646
+ defaultMessage: string;
647
+ };
648
+ body: {
649
+ id: string;
650
+ description: string;
651
+ defaultMessage: string;
652
+ };
653
+ };
654
+ };
655
+ verify: {
656
+ label: {
657
+ id: string;
658
+ description: string;
659
+ defaultMessage: string;
660
+ };
661
+ };
662
+ };
663
+ fields: import("./FieldConfig").FieldConfigInput[];
664
+ conditional?: import(".").JSONSchema | undefined;
665
+ requireCompletionToContinue?: boolean | undefined;
666
+ }>)[]>, "many">;
667
+ }, "strip", z.ZodTypeAny, {
668
+ label: TranslationConfig;
669
+ pages: ({
670
+ type: "FORM";
671
+ id: string;
672
+ title: TranslationConfig;
673
+ fields: import("./FieldConfig").FieldConfig[];
674
+ requireCompletionToContinue: boolean;
675
+ conditional?: import(".").JSONSchema | undefined;
676
+ } | {
677
+ type: "VERIFICATION";
678
+ id: string;
679
+ title: TranslationConfig;
680
+ actions: {
681
+ cancel: {
682
+ label: TranslationConfig;
683
+ confirmation: {
684
+ title: TranslationConfig;
685
+ body: TranslationConfig;
686
+ };
687
+ };
688
+ verify: {
689
+ label: TranslationConfig;
690
+ };
691
+ };
692
+ fields: import("./FieldConfig").FieldConfig[];
693
+ requireCompletionToContinue: boolean;
694
+ conditional?: import(".").JSONSchema | undefined;
695
+ })[];
696
+ }, {
697
+ label: {
698
+ id: string;
699
+ description: string;
700
+ defaultMessage: string;
701
+ };
702
+ pages: ({
703
+ id: string;
704
+ title: {
705
+ id: string;
706
+ description: string;
707
+ defaultMessage: string;
708
+ };
709
+ fields: import("./FieldConfig").FieldConfigInput[];
710
+ type?: "FORM" | undefined;
711
+ conditional?: import(".").JSONSchema | undefined;
712
+ requireCompletionToContinue?: boolean | undefined;
713
+ } | {
714
+ type: "VERIFICATION";
715
+ id: string;
716
+ title: {
717
+ id: string;
718
+ description: string;
719
+ defaultMessage: string;
720
+ };
721
+ actions: {
722
+ cancel: {
723
+ label: {
724
+ id: string;
725
+ description: string;
726
+ defaultMessage: string;
727
+ };
728
+ confirmation: {
729
+ title: {
730
+ id: string;
731
+ description: string;
732
+ defaultMessage: string;
733
+ };
734
+ body: {
735
+ id: string;
736
+ description: string;
737
+ defaultMessage: string;
738
+ };
739
+ };
740
+ };
741
+ verify: {
742
+ label: {
743
+ id: string;
744
+ description: string;
745
+ defaultMessage: string;
746
+ };
747
+ };
748
+ };
749
+ fields: import("./FieldConfig").FieldConfigInput[];
750
+ conditional?: import(".").JSONSchema | undefined;
751
+ requireCompletionToContinue?: boolean | undefined;
752
+ })[];
753
+ }>]>;
754
+ export type FormConfig = z.infer<typeof FormConfig>;
755
+ //# sourceMappingURL=FormConfig.d.ts.map