@opencrvs/toolkit 1.8.0-rc.ff62f9e → 1.8.0-rc.ffb4f66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/commons/api/router.d.ts +6496 -15505
- package/dist/commons/conditionals/conditionals.d.ts +25 -3
- package/dist/commons/conditionals/validate.d.ts +14 -17
- package/dist/commons/events/ActionConfig.d.ts +1202 -6605
- package/dist/commons/events/ActionDocument.d.ts +6956 -255
- package/dist/commons/events/ActionInput.d.ts +1316 -367
- package/dist/commons/events/ActionType.d.ts +25 -16
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +52 -37
- package/dist/commons/events/EventConfig.d.ts +648 -2983
- package/dist/commons/events/EventConfigInput.d.ts +5 -2
- package/dist/commons/events/EventDocument.d.ts +495 -662
- 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 +245 -45
- package/dist/commons/events/FormConfig.d.ts +559 -322
- package/dist/commons/events/PageConfig.d.ts +335 -0
- package/dist/commons/events/TemplateConfig.d.ts +5 -5
- package/dist/commons/events/defineConfig.d.ts +28 -433
- package/dist/commons/events/index.d.ts +2 -1
- package/dist/commons/events/test.utils.d.ts +63 -284
- package/dist/commons/events/utils.d.ts +83 -178
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +161 -93
- package/dist/events/index.js +1103 -819
- package/package.json +1 -1
@@ -1,384 +1,644 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { TranslationConfig } from './TranslationConfig';
|
3
|
-
export declare const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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").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">;
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
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
|
+
}[];
|
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").InferredInput[];
|
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, {
|
11
68
|
id: string;
|
12
69
|
description: string;
|
13
70
|
defaultMessage: string;
|
14
71
|
}>;
|
15
|
-
|
16
|
-
|
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").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";
|
85
|
+
id: string;
|
86
|
+
title: TranslationConfig;
|
87
|
+
fields: import("./FieldConfig").Inferred[];
|
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").InferredInput[];
|
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").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";
|
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").Inferred[];
|
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").InferredInput[];
|
279
|
+
conditional?: import(".").JSONSchema | undefined;
|
280
|
+
}>)[]>, "many">;
|
17
281
|
}, "strip", z.ZodTypeAny, {
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
282
|
+
label: TranslationConfig;
|
283
|
+
pages: ({
|
284
|
+
type: "FORM";
|
285
|
+
id: string;
|
286
|
+
title: TranslationConfig;
|
287
|
+
fields: import("./FieldConfig").Inferred[];
|
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
|
+
})[];
|
23
308
|
}, {
|
24
|
-
|
25
|
-
title: {
|
309
|
+
label: {
|
26
310
|
id: string;
|
27
311
|
description: string;
|
28
312
|
defaultMessage: string;
|
29
313
|
};
|
30
|
-
|
31
|
-
|
32
|
-
|
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
|
+
})[];
|
33
363
|
}>;
|
34
|
-
export
|
35
|
-
|
36
|
-
|
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, {
|
37
375
|
id: string;
|
38
376
|
description: string;
|
39
377
|
defaultMessage: string;
|
40
378
|
}>;
|
41
|
-
|
42
|
-
|
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>>;
|
43
381
|
}, {
|
44
|
-
|
382
|
+
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
383
|
+
}>, "strip", z.ZodTypeAny, {
|
384
|
+
type: "FORM";
|
385
|
+
id: string;
|
386
|
+
title: TranslationConfig;
|
387
|
+
fields: import("./FieldConfig").Inferred[];
|
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").InferredInput[];
|
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").Inferred[];
|
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: {
|
45
418
|
id: string;
|
46
419
|
description: string;
|
47
420
|
defaultMessage: string;
|
48
421
|
};
|
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, {
|
428
|
+
id: string;
|
429
|
+
description: string;
|
430
|
+
defaultMessage: string;
|
49
431
|
}>;
|
50
|
-
|
51
|
-
|
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, {
|
52
435
|
id: string;
|
53
436
|
description: string;
|
54
437
|
defaultMessage: string;
|
55
438
|
}>;
|
56
|
-
|
57
|
-
|
58
|
-
id: string;
|
59
|
-
description: string;
|
60
|
-
defaultMessage: string;
|
61
|
-
}>;
|
62
|
-
body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
63
|
-
id: string;
|
64
|
-
description: string;
|
65
|
-
defaultMessage: string;
|
66
|
-
}>;
|
67
|
-
}, "strip", z.ZodTypeAny, {
|
68
|
-
title: TranslationConfig;
|
69
|
-
body: TranslationConfig;
|
70
|
-
}, {
|
71
|
-
title: {
|
72
|
-
id: string;
|
73
|
-
description: string;
|
74
|
-
defaultMessage: string;
|
75
|
-
};
|
76
|
-
body: {
|
77
|
-
id: string;
|
78
|
-
description: string;
|
79
|
-
defaultMessage: string;
|
80
|
-
};
|
81
|
-
}>;
|
82
|
-
}, "strip", z.ZodTypeAny, {
|
83
|
-
label: TranslationConfig;
|
84
|
-
confirmation: {
|
85
|
-
title: TranslationConfig;
|
86
|
-
body: TranslationConfig;
|
87
|
-
};
|
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>>;
|
88
441
|
}, {
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
};
|
100
|
-
body: {
|
101
|
-
id: string;
|
102
|
-
description: string;
|
103
|
-
defaultMessage: string;
|
104
|
-
};
|
105
|
-
};
|
106
|
-
}>;
|
107
|
-
}, "strip", z.ZodTypeAny, {
|
108
|
-
verify: {
|
109
|
-
label: TranslationConfig;
|
110
|
-
};
|
111
|
-
cancel: {
|
112
|
-
label: TranslationConfig;
|
113
|
-
confirmation: {
|
114
|
-
title: TranslationConfig;
|
115
|
-
body: TranslationConfig;
|
116
|
-
};
|
117
|
-
};
|
118
|
-
}, {
|
119
|
-
verify: {
|
120
|
-
label: {
|
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
|
+
}, {
|
450
|
+
id: string;
|
451
|
+
title: {
|
121
452
|
id: string;
|
122
453
|
description: string;
|
123
454
|
defaultMessage: string;
|
124
455
|
};
|
125
|
-
|
126
|
-
|
127
|
-
|
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, {
|
128
462
|
id: string;
|
129
463
|
description: string;
|
130
464
|
defaultMessage: string;
|
131
|
-
};
|
132
|
-
confirmation: {
|
133
|
-
title: {
|
134
|
-
id: string;
|
135
|
-
description: string;
|
136
|
-
defaultMessage: string;
|
137
|
-
};
|
138
|
-
body: {
|
139
|
-
id: string;
|
140
|
-
description: string;
|
141
|
-
defaultMessage: string;
|
142
|
-
};
|
143
|
-
};
|
144
|
-
};
|
145
|
-
}>;
|
146
|
-
export declare const VerificationPage: z.ZodObject<z.objectUtil.extendShape<{
|
147
|
-
id: z.ZodString;
|
148
|
-
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
149
|
-
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
150
|
-
id: string;
|
151
|
-
description: string;
|
152
|
-
defaultMessage: string;
|
153
|
-
}>;
|
154
|
-
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
|
155
|
-
conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
|
156
|
-
}, {
|
157
|
-
type: z.ZodLiteral<"VERIFICATION">;
|
158
|
-
actions: z.ZodObject<{
|
159
|
-
verify: z.ZodObject<{
|
160
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
161
|
-
id: string;
|
162
|
-
description: string;
|
163
|
-
defaultMessage: string;
|
164
|
-
}>;
|
165
|
-
}, "strip", z.ZodTypeAny, {
|
166
|
-
label: TranslationConfig;
|
167
|
-
}, {
|
168
|
-
label: {
|
169
|
-
id: string;
|
170
|
-
description: string;
|
171
|
-
defaultMessage: string;
|
172
|
-
};
|
173
465
|
}>;
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
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, {
|
182
475
|
id: string;
|
183
476
|
description: string;
|
184
477
|
defaultMessage: string;
|
185
478
|
}>;
|
186
|
-
|
479
|
+
}, "strip", z.ZodTypeAny, {
|
480
|
+
label: TranslationConfig;
|
481
|
+
}, {
|
482
|
+
label: {
|
187
483
|
id: string;
|
188
484
|
description: string;
|
189
485
|
defaultMessage: string;
|
190
|
-
}
|
191
|
-
}
|
192
|
-
|
193
|
-
|
194
|
-
}, {
|
195
|
-
title: {
|
486
|
+
};
|
487
|
+
}>;
|
488
|
+
cancel: z.ZodObject<{
|
489
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
196
490
|
id: string;
|
197
491
|
description: string;
|
198
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;
|
199
525
|
};
|
200
|
-
|
526
|
+
}, {
|
527
|
+
label: {
|
201
528
|
id: string;
|
202
529
|
description: string;
|
203
530
|
defaultMessage: string;
|
204
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
|
+
};
|
205
544
|
}>;
|
206
545
|
}, "strip", z.ZodTypeAny, {
|
207
|
-
|
208
|
-
|
209
|
-
title: TranslationConfig;
|
210
|
-
body: TranslationConfig;
|
546
|
+
verify: {
|
547
|
+
label: TranslationConfig;
|
211
548
|
};
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
549
|
+
cancel: {
|
550
|
+
label: TranslationConfig;
|
551
|
+
confirmation: {
|
552
|
+
title: TranslationConfig;
|
553
|
+
body: TranslationConfig;
|
554
|
+
};
|
217
555
|
};
|
218
|
-
|
219
|
-
|
556
|
+
}, {
|
557
|
+
verify: {
|
558
|
+
label: {
|
220
559
|
id: string;
|
221
560
|
description: string;
|
222
561
|
defaultMessage: string;
|
223
562
|
};
|
224
|
-
|
563
|
+
};
|
564
|
+
cancel: {
|
565
|
+
label: {
|
225
566
|
id: string;
|
226
567
|
description: string;
|
227
568
|
defaultMessage: string;
|
228
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
|
+
};
|
229
582
|
};
|
230
583
|
}>;
|
231
|
-
}
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
title: TranslationConfig;
|
239
|
-
body: TranslationConfig;
|
240
|
-
};
|
241
|
-
};
|
242
|
-
}, {
|
243
|
-
verify: {
|
244
|
-
label: {
|
245
|
-
id: string;
|
246
|
-
description: string;
|
247
|
-
defaultMessage: string;
|
248
|
-
};
|
249
|
-
};
|
250
|
-
cancel: {
|
251
|
-
label: {
|
252
|
-
id: string;
|
253
|
-
description: string;
|
254
|
-
defaultMessage: string;
|
584
|
+
}>, "strip", z.ZodTypeAny, {
|
585
|
+
type: "VERIFICATION";
|
586
|
+
id: string;
|
587
|
+
title: TranslationConfig;
|
588
|
+
actions: {
|
589
|
+
verify: {
|
590
|
+
label: TranslationConfig;
|
255
591
|
};
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
};
|
262
|
-
body: {
|
263
|
-
id: string;
|
264
|
-
description: string;
|
265
|
-
defaultMessage: string;
|
592
|
+
cancel: {
|
593
|
+
label: TranslationConfig;
|
594
|
+
confirmation: {
|
595
|
+
title: TranslationConfig;
|
596
|
+
body: TranslationConfig;
|
266
597
|
};
|
267
598
|
};
|
268
599
|
};
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
title: TranslationConfig;
|
274
|
-
actions: {
|
275
|
-
verify: {
|
276
|
-
label: TranslationConfig;
|
277
|
-
};
|
278
|
-
cancel: {
|
279
|
-
label: TranslationConfig;
|
280
|
-
confirmation: {
|
281
|
-
title: TranslationConfig;
|
282
|
-
body: TranslationConfig;
|
283
|
-
};
|
284
|
-
};
|
285
|
-
};
|
286
|
-
fields: import("./FieldConfig").Inferred[];
|
287
|
-
conditional?: import(".").JSONSchema | undefined;
|
288
|
-
}, {
|
289
|
-
type: "VERIFICATION";
|
290
|
-
id: string;
|
291
|
-
title: {
|
600
|
+
fields: import("./FieldConfig").Inferred[];
|
601
|
+
conditional?: import(".").JSONSchema | undefined;
|
602
|
+
}, {
|
603
|
+
type: "VERIFICATION";
|
292
604
|
id: string;
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
verify: {
|
298
|
-
label: {
|
299
|
-
id: string;
|
300
|
-
description: string;
|
301
|
-
defaultMessage: string;
|
302
|
-
};
|
605
|
+
title: {
|
606
|
+
id: string;
|
607
|
+
description: string;
|
608
|
+
defaultMessage: string;
|
303
609
|
};
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
description: string;
|
308
|
-
defaultMessage: string;
|
309
|
-
};
|
310
|
-
confirmation: {
|
311
|
-
title: {
|
610
|
+
actions: {
|
611
|
+
verify: {
|
612
|
+
label: {
|
312
613
|
id: string;
|
313
614
|
description: string;
|
314
615
|
defaultMessage: string;
|
315
616
|
};
|
316
|
-
|
617
|
+
};
|
618
|
+
cancel: {
|
619
|
+
label: {
|
317
620
|
id: string;
|
318
621
|
description: string;
|
319
622
|
defaultMessage: string;
|
320
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
|
+
};
|
321
636
|
};
|
322
637
|
};
|
323
|
-
};
|
324
|
-
fields: import("./FieldConfig").InferredInput[];
|
325
|
-
conditional?: import(".").JSONSchema | undefined;
|
326
|
-
}>;
|
327
|
-
export type VerificationPageConfig = z.infer<typeof VerificationPageConfig>;
|
328
|
-
type AllPageConfigs = typeof FormPage | typeof VerificationPage;
|
329
|
-
export declare const FormPageConfig: z.ZodDiscriminatedUnion<"type", AllPageConfigs[]>;
|
330
|
-
export type FormPageConfigInput = z.input<typeof FormPageConfig>;
|
331
|
-
export type FormPageConfig = z.infer<typeof FormPageConfig>;
|
332
|
-
export declare const FormConfig: z.ZodObject<{
|
333
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
334
|
-
id: string;
|
335
|
-
description: string;
|
336
|
-
defaultMessage: string;
|
337
|
-
}>;
|
338
|
-
version: z.ZodObject<{
|
339
|
-
id: z.ZodString;
|
340
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
341
|
-
id: string;
|
342
|
-
description: string;
|
343
|
-
defaultMessage: string;
|
344
|
-
}>;
|
345
|
-
}, "strip", z.ZodTypeAny, {
|
346
|
-
id: string;
|
347
|
-
label: TranslationConfig;
|
348
|
-
}, {
|
349
|
-
id: string;
|
350
|
-
label: {
|
351
|
-
id: string;
|
352
|
-
description: string;
|
353
|
-
defaultMessage: string;
|
354
|
-
};
|
355
|
-
}>;
|
356
|
-
active: z.ZodDefault<z.ZodBoolean>;
|
357
|
-
pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", AllPageConfigs[]>, "many">;
|
358
|
-
review: z.ZodObject<{
|
359
|
-
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
360
|
-
id: string;
|
361
|
-
description: string;
|
362
|
-
defaultMessage: string;
|
363
|
-
}>;
|
364
|
-
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
|
365
|
-
}, "strip", z.ZodTypeAny, {
|
366
|
-
title: TranslationConfig;
|
367
|
-
fields: import("./FieldConfig").Inferred[];
|
368
|
-
}, {
|
369
|
-
title: {
|
370
|
-
id: string;
|
371
|
-
description: string;
|
372
|
-
defaultMessage: string;
|
373
|
-
};
|
374
638
|
fields: import("./FieldConfig").InferredInput[];
|
375
|
-
|
639
|
+
conditional?: import(".").JSONSchema | undefined;
|
640
|
+
}>)[]>, "many">;
|
376
641
|
}, "strip", z.ZodTypeAny, {
|
377
|
-
active: boolean;
|
378
|
-
version: {
|
379
|
-
id: string;
|
380
|
-
label: TranslationConfig;
|
381
|
-
};
|
382
642
|
label: TranslationConfig;
|
383
643
|
pages: ({
|
384
644
|
type: "FORM";
|
@@ -405,19 +665,7 @@ export declare const FormConfig: z.ZodObject<{
|
|
405
665
|
fields: import("./FieldConfig").Inferred[];
|
406
666
|
conditional?: import(".").JSONSchema | undefined;
|
407
667
|
})[];
|
408
|
-
review: {
|
409
|
-
title: TranslationConfig;
|
410
|
-
fields: import("./FieldConfig").Inferred[];
|
411
|
-
};
|
412
668
|
}, {
|
413
|
-
version: {
|
414
|
-
id: string;
|
415
|
-
label: {
|
416
|
-
id: string;
|
417
|
-
description: string;
|
418
|
-
defaultMessage: string;
|
419
|
-
};
|
420
|
-
};
|
421
669
|
label: {
|
422
670
|
id: string;
|
423
671
|
description: string;
|
@@ -472,17 +720,6 @@ export declare const FormConfig: z.ZodObject<{
|
|
472
720
|
fields: import("./FieldConfig").InferredInput[];
|
473
721
|
conditional?: import(".").JSONSchema | undefined;
|
474
722
|
})[];
|
475
|
-
|
476
|
-
title: {
|
477
|
-
id: string;
|
478
|
-
description: string;
|
479
|
-
defaultMessage: string;
|
480
|
-
};
|
481
|
-
fields: import("./FieldConfig").InferredInput[];
|
482
|
-
};
|
483
|
-
active?: boolean | undefined;
|
484
|
-
}>;
|
723
|
+
}>]>;
|
485
724
|
export type FormConfig = z.infer<typeof FormConfig>;
|
486
|
-
export type FormConfigInput = z.input<typeof FormConfig>;
|
487
|
-
export {};
|
488
725
|
//# sourceMappingURL=FormConfig.d.ts.map
|