@opencrvs/toolkit 1.8.0-rc.ff73871 → 1.8.0-rc.ffbb9d7
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.
- package/README.md +1 -1
- package/dist/commons/api/router.d.ts +6663 -9341
- package/dist/commons/conditionals/conditionals.d.ts +26 -3
- package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
- package/dist/commons/conditionals/validate.d.ts +39 -11
- package/dist/commons/conditionals/validate.test.d.ts +2 -0
- package/dist/commons/events/ActionConfig.d.ts +1123 -2074
- package/dist/commons/events/ActionDocument.d.ts +9482 -312
- package/dist/commons/events/ActionInput.d.ts +5238 -471
- package/dist/commons/events/ActionType.d.ts +24 -11
- package/dist/commons/events/CompositeFieldValue.d.ts +152 -2
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +348 -48
- package/dist/commons/events/EventConfig.d.ts +551 -1230
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +3335 -424
- package/dist/commons/events/EventIndex.d.ts +6 -3
- package/dist/commons/events/EventMetadata.d.ts +3 -0
- package/dist/commons/events/FieldConfig.d.ts +526 -74
- package/dist/commons/events/FieldType.d.ts +2 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +124 -3
- package/dist/commons/events/FieldValue.d.ts +76 -2
- package/dist/commons/events/FormConfig.d.ts +633 -48
- package/dist/commons/events/PageConfig.d.ts +335 -0
- package/dist/commons/events/TemplateConfig.d.ts +2 -2
- package/dist/commons/events/defineConfig.d.ts +91 -222
- package/dist/commons/events/index.d.ts +2 -1
- package/dist/commons/events/test.utils.d.ts +139 -212
- package/dist/commons/events/utils.d.ts +187 -73
- package/dist/conditionals/index.js +166 -81
- package/dist/events/index.js +1331 -801
- package/package.json +1 -1
@@ -1,140 +1,725 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { TranslationConfig } from './TranslationConfig';
|
3
|
-
export declare const
|
4
|
-
|
5
|
-
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
3
|
+
export declare const DeclarationFormConfig: z.ZodObject<{
|
4
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
6
5
|
id: string;
|
7
6
|
description: string;
|
8
7
|
defaultMessage: string;
|
9
8
|
}>;
|
10
|
-
|
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").Inferred, any, import("./FieldConfig").InferredInput>, "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").Inferred[];
|
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").InferredInput[];
|
34
|
+
type?: "FORM" | undefined;
|
35
|
+
conditional?: import(".").JSONSchema | undefined;
|
36
|
+
}>, "many">;
|
11
37
|
}, "strip", z.ZodTypeAny, {
|
12
|
-
|
13
|
-
|
14
|
-
|
38
|
+
label: TranslationConfig;
|
39
|
+
pages: {
|
40
|
+
type: "FORM";
|
41
|
+
id: string;
|
42
|
+
title: TranslationConfig;
|
43
|
+
fields: import("./FieldConfig").Inferred[];
|
44
|
+
conditional?: import(".").JSONSchema | undefined;
|
45
|
+
}[];
|
15
46
|
}, {
|
16
|
-
|
17
|
-
title: {
|
47
|
+
label: {
|
18
48
|
id: string;
|
19
49
|
description: string;
|
20
50
|
defaultMessage: string;
|
21
51
|
};
|
22
|
-
|
52
|
+
pages: {
|
53
|
+
id: string;
|
54
|
+
title: {
|
55
|
+
id: string;
|
56
|
+
description: string;
|
57
|
+
defaultMessage: string;
|
58
|
+
};
|
59
|
+
fields: import("./FieldConfig").InferredInput[];
|
60
|
+
type?: "FORM" | undefined;
|
61
|
+
conditional?: import(".").JSONSchema | undefined;
|
62
|
+
}[];
|
23
63
|
}>;
|
24
|
-
export
|
64
|
+
export type DeclarationFormConfig = z.infer<typeof DeclarationFormConfig>;
|
65
|
+
export type DeclarationFormConfigInput = z.input<typeof DeclarationFormConfig>;
|
66
|
+
export declare const ActionFormConfig: z.ZodObject<{
|
25
67
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
26
68
|
id: string;
|
27
69
|
description: string;
|
28
70
|
defaultMessage: string;
|
29
71
|
}>;
|
30
|
-
|
72
|
+
pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", (z.ZodObject<z.objectUtil.extendShape<{
|
31
73
|
id: z.ZodString;
|
32
|
-
|
74
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
33
75
|
id: string;
|
34
76
|
description: string;
|
35
77
|
defaultMessage: string;
|
36
78
|
}>;
|
37
|
-
|
79
|
+
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "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";
|
38
85
|
id: string;
|
39
|
-
|
86
|
+
title: TranslationConfig;
|
87
|
+
fields: import("./FieldConfig").Inferred[];
|
88
|
+
conditional?: import(".").JSONSchema | undefined;
|
40
89
|
}, {
|
41
90
|
id: string;
|
42
|
-
|
91
|
+
title: {
|
43
92
|
id: string;
|
44
93
|
description: string;
|
45
94
|
defaultMessage: string;
|
46
95
|
};
|
47
|
-
|
48
|
-
|
49
|
-
|
96
|
+
fields: import("./FieldConfig").InferredInput[];
|
97
|
+
type?: "FORM" | undefined;
|
98
|
+
conditional?: import(".").JSONSchema | undefined;
|
99
|
+
}> | z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
50
100
|
id: z.ZodString;
|
51
101
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
52
102
|
id: string;
|
53
103
|
description: string;
|
54
104
|
defaultMessage: string;
|
55
105
|
}>;
|
56
|
-
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").
|
57
|
-
|
106
|
+
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "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";
|
58
226
|
id: string;
|
59
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
|
+
};
|
60
240
|
fields: import("./FieldConfig").Inferred[];
|
241
|
+
conditional?: import(".").JSONSchema | undefined;
|
61
242
|
}, {
|
243
|
+
type: "VERIFICATION";
|
62
244
|
id: string;
|
63
245
|
title: {
|
64
246
|
id: string;
|
65
247
|
description: string;
|
66
248
|
defaultMessage: string;
|
67
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").InferredInput[];
|
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;
|
68
287
|
fields: import("./FieldConfig").Inferred[];
|
69
|
-
|
70
|
-
|
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").Inferred[];
|
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").InferredInput[];
|
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").InferredInput[];
|
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;
|
71
374
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
72
375
|
id: string;
|
73
376
|
description: string;
|
74
377
|
defaultMessage: string;
|
75
378
|
}>;
|
76
|
-
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").
|
77
|
-
|
379
|
+
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "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;
|
78
386
|
title: TranslationConfig;
|
79
387
|
fields: import("./FieldConfig").Inferred[];
|
388
|
+
conditional?: import(".").JSONSchema | undefined;
|
80
389
|
}, {
|
390
|
+
id: string;
|
81
391
|
title: {
|
82
392
|
id: string;
|
83
393
|
description: string;
|
84
394
|
defaultMessage: string;
|
85
395
|
};
|
86
|
-
fields: import("./FieldConfig").
|
87
|
-
|
396
|
+
fields: import("./FieldConfig").InferredInput[];
|
397
|
+
type?: "FORM" | undefined;
|
398
|
+
conditional?: import(".").JSONSchema | undefined;
|
399
|
+
}>, "many">;
|
88
400
|
}, "strip", z.ZodTypeAny, {
|
89
|
-
active: boolean;
|
90
|
-
version: {
|
91
|
-
id: string;
|
92
|
-
label: TranslationConfig;
|
93
|
-
};
|
94
401
|
label: TranslationConfig;
|
95
402
|
pages: {
|
403
|
+
type: "FORM";
|
96
404
|
id: string;
|
97
405
|
title: TranslationConfig;
|
98
406
|
fields: import("./FieldConfig").Inferred[];
|
407
|
+
conditional?: import(".").JSONSchema | undefined;
|
99
408
|
}[];
|
100
|
-
review: {
|
101
|
-
title: TranslationConfig;
|
102
|
-
fields: import("./FieldConfig").Inferred[];
|
103
|
-
};
|
104
409
|
}, {
|
105
|
-
|
410
|
+
label: {
|
411
|
+
id: string;
|
412
|
+
description: string;
|
413
|
+
defaultMessage: string;
|
414
|
+
};
|
415
|
+
pages: {
|
106
416
|
id: string;
|
107
|
-
|
417
|
+
title: {
|
108
418
|
id: string;
|
109
419
|
description: string;
|
110
420
|
defaultMessage: string;
|
111
421
|
};
|
112
|
-
|
113
|
-
|
422
|
+
fields: import("./FieldConfig").InferredInput[];
|
423
|
+
type?: "FORM" | undefined;
|
424
|
+
conditional?: import(".").JSONSchema | undefined;
|
425
|
+
}[];
|
426
|
+
}>, z.ZodObject<{
|
427
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
114
428
|
id: string;
|
115
429
|
description: string;
|
116
430
|
defaultMessage: string;
|
117
|
-
}
|
118
|
-
pages: {
|
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").Inferred, any, import("./FieldConfig").InferredInput>, "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").Inferred[];
|
448
|
+
conditional?: import(".").JSONSchema | undefined;
|
449
|
+
}, {
|
119
450
|
id: string;
|
120
451
|
title: {
|
121
452
|
id: string;
|
122
453
|
description: string;
|
123
454
|
defaultMessage: string;
|
124
455
|
};
|
456
|
+
fields: import("./FieldConfig").InferredInput[];
|
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").Inferred, any, import("./FieldConfig").InferredInput>, "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
|
+
};
|
125
600
|
fields: import("./FieldConfig").Inferred[];
|
126
|
-
|
127
|
-
|
601
|
+
conditional?: import(".").JSONSchema | undefined;
|
602
|
+
}, {
|
603
|
+
type: "VERIFICATION";
|
604
|
+
id: string;
|
128
605
|
title: {
|
129
606
|
id: string;
|
130
607
|
description: string;
|
131
608
|
defaultMessage: string;
|
132
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").InferredInput[];
|
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").Inferred[];
|
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
|
+
};
|
133
665
|
fields: import("./FieldConfig").Inferred[];
|
666
|
+
conditional?: import(".").JSONSchema | undefined;
|
667
|
+
})[];
|
668
|
+
}, {
|
669
|
+
label: {
|
670
|
+
id: string;
|
671
|
+
description: string;
|
672
|
+
defaultMessage: string;
|
134
673
|
};
|
135
|
-
|
136
|
-
|
137
|
-
|
674
|
+
pages: ({
|
675
|
+
id: string;
|
676
|
+
title: {
|
677
|
+
id: string;
|
678
|
+
description: string;
|
679
|
+
defaultMessage: string;
|
680
|
+
};
|
681
|
+
fields: import("./FieldConfig").InferredInput[];
|
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").InferredInput[];
|
721
|
+
conditional?: import(".").JSONSchema | undefined;
|
722
|
+
})[];
|
723
|
+
}>]>;
|
138
724
|
export type FormConfig = z.infer<typeof FormConfig>;
|
139
|
-
export type FormConfigInput = z.input<typeof FormConfig>;
|
140
725
|
//# sourceMappingURL=FormConfig.d.ts.map
|