@ecrvs/opencrvs-toolkit 1.8.1-rc.a7ee8fb

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