@opencrvs/toolkit 1.8.0-rc.ffe8c17 → 1.8.1-rc.a372970
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 +6644 -9555
- 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 +14 -17
- package/dist/commons/events/ActionConfig.d.ts +1008 -3209
- package/dist/commons/events/ActionDocument.d.ts +9488 -312
- package/dist/commons/events/ActionInput.d.ts +5329 -472
- package/dist/commons/events/ActionType.d.ts +26 -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 +351 -48
- package/dist/commons/events/EventConfig.d.ts +639 -2862
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +3340 -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 +383 -104
- package/dist/commons/events/FieldTypeMapping.d.ts +104 -207
- package/dist/commons/events/FieldValue.d.ts +71 -76
- package/dist/commons/events/FormConfig.d.ts +527 -279
- 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 +40 -417
- package/dist/commons/events/index.d.ts +2 -1
- package/dist/commons/events/test.utils.d.ts +140 -213
- package/dist/commons/events/utils.d.ts +126 -156
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +166 -81
- package/dist/events/index.js +1287 -795
- package/dist/scopes/index.d.ts +70 -1
- package/dist/scopes/index.js +130 -0
- package/package.json +1 -1
@@ -1,386 +1,653 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { TranslationConfig } from './TranslationConfig';
|
3
|
-
export declare
|
4
|
-
|
5
|
-
VERIFICATION = "VERIFICATION"
|
6
|
-
}
|
7
|
-
export declare const FormPage: z.ZodObject<{
|
8
|
-
id: z.ZodString;
|
9
|
-
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, {
|
10
5
|
id: string;
|
11
6
|
description: string;
|
12
7
|
defaultMessage: string;
|
13
8
|
}>;
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
type: PageType.FORM;
|
18
|
-
id: string;
|
19
|
-
title: TranslationConfig;
|
20
|
-
fields: import("./FieldConfig").Inferred[];
|
21
|
-
}, {
|
22
|
-
id: string;
|
23
|
-
title: {
|
24
|
-
id: string;
|
25
|
-
description: string;
|
26
|
-
defaultMessage: string;
|
27
|
-
};
|
28
|
-
fields: import("./FieldConfig").Inferred[];
|
29
|
-
type?: PageType.FORM | undefined;
|
30
|
-
}>;
|
31
|
-
export declare const VerificationPageConfig: z.ZodObject<{
|
32
|
-
verify: z.ZodObject<{
|
33
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
9
|
+
pages: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
10
|
+
id: z.ZodString;
|
11
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
34
12
|
id: string;
|
35
13
|
description: string;
|
36
14
|
defaultMessage: string;
|
37
15
|
}>;
|
38
|
-
|
39
|
-
|
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>>;
|
40
18
|
}, {
|
41
|
-
|
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: {
|
42
29
|
id: string;
|
43
30
|
description: string;
|
44
31
|
defaultMessage: string;
|
45
32
|
};
|
46
|
-
|
47
|
-
|
48
|
-
|
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: {
|
49
55
|
id: string;
|
50
56
|
description: string;
|
51
57
|
defaultMessage: string;
|
52
|
-
}>;
|
53
|
-
confirmation: z.ZodObject<{
|
54
|
-
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
55
|
-
id: string;
|
56
|
-
description: string;
|
57
|
-
defaultMessage: string;
|
58
|
-
}>;
|
59
|
-
body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
60
|
-
id: string;
|
61
|
-
description: string;
|
62
|
-
defaultMessage: string;
|
63
|
-
}>;
|
64
|
-
}, "strip", z.ZodTypeAny, {
|
65
|
-
title: TranslationConfig;
|
66
|
-
body: TranslationConfig;
|
67
|
-
}, {
|
68
|
-
title: {
|
69
|
-
id: string;
|
70
|
-
description: string;
|
71
|
-
defaultMessage: string;
|
72
|
-
};
|
73
|
-
body: {
|
74
|
-
id: string;
|
75
|
-
description: string;
|
76
|
-
defaultMessage: string;
|
77
|
-
};
|
78
|
-
}>;
|
79
|
-
}, "strip", z.ZodTypeAny, {
|
80
|
-
label: TranslationConfig;
|
81
|
-
confirmation: {
|
82
|
-
title: TranslationConfig;
|
83
|
-
body: TranslationConfig;
|
84
58
|
};
|
85
|
-
|
86
|
-
|
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, {
|
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, {
|
87
75
|
id: string;
|
88
76
|
description: string;
|
89
77
|
defaultMessage: string;
|
90
|
-
}
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
}, "strip", z.ZodTypeAny, {
|
105
|
-
verify: {
|
106
|
-
label: TranslationConfig;
|
107
|
-
};
|
108
|
-
cancel: {
|
109
|
-
label: TranslationConfig;
|
110
|
-
confirmation: {
|
111
|
-
title: TranslationConfig;
|
112
|
-
body: TranslationConfig;
|
113
|
-
};
|
114
|
-
};
|
115
|
-
}, {
|
116
|
-
verify: {
|
117
|
-
label: {
|
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: {
|
118
92
|
id: string;
|
119
93
|
description: string;
|
120
94
|
defaultMessage: string;
|
121
95
|
};
|
122
|
-
|
123
|
-
|
124
|
-
|
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, {
|
125
102
|
id: string;
|
126
103
|
description: string;
|
127
104
|
defaultMessage: string;
|
128
|
-
};
|
129
|
-
confirmation: {
|
130
|
-
title: {
|
131
|
-
id: string;
|
132
|
-
description: string;
|
133
|
-
defaultMessage: string;
|
134
|
-
};
|
135
|
-
body: {
|
136
|
-
id: string;
|
137
|
-
description: string;
|
138
|
-
defaultMessage: string;
|
139
|
-
};
|
140
|
-
};
|
141
|
-
};
|
142
|
-
}>;
|
143
|
-
export declare const VerificationPage: z.ZodObject<z.objectUtil.extendShape<{
|
144
|
-
id: z.ZodString;
|
145
|
-
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
146
|
-
id: string;
|
147
|
-
description: string;
|
148
|
-
defaultMessage: string;
|
149
|
-
}>;
|
150
|
-
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
|
151
|
-
type: z.ZodDefault<z.ZodLiteral<PageType.FORM>>;
|
152
|
-
}, {
|
153
|
-
type: z.ZodLiteral<PageType.VERIFICATION>;
|
154
|
-
actions: z.ZodObject<{
|
155
|
-
verify: z.ZodObject<{
|
156
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
157
|
-
id: string;
|
158
|
-
description: string;
|
159
|
-
defaultMessage: string;
|
160
|
-
}>;
|
161
|
-
}, "strip", z.ZodTypeAny, {
|
162
|
-
label: TranslationConfig;
|
163
|
-
}, {
|
164
|
-
label: {
|
165
|
-
id: string;
|
166
|
-
description: string;
|
167
|
-
defaultMessage: string;
|
168
|
-
};
|
169
105
|
}>;
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
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, {
|
178
115
|
id: string;
|
179
116
|
description: string;
|
180
117
|
defaultMessage: string;
|
181
118
|
}>;
|
182
|
-
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
120
|
+
label: TranslationConfig;
|
121
|
+
}, {
|
122
|
+
label: {
|
183
123
|
id: string;
|
184
124
|
description: string;
|
185
125
|
defaultMessage: string;
|
186
|
-
}
|
187
|
-
}
|
188
|
-
|
189
|
-
|
190
|
-
}, {
|
191
|
-
title: {
|
126
|
+
};
|
127
|
+
}>;
|
128
|
+
cancel: z.ZodObject<{
|
129
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
192
130
|
id: string;
|
193
131
|
description: string;
|
194
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;
|
195
165
|
};
|
196
|
-
|
166
|
+
}, {
|
167
|
+
label: {
|
197
168
|
id: string;
|
198
169
|
description: string;
|
199
170
|
defaultMessage: string;
|
200
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
|
+
};
|
201
184
|
}>;
|
202
185
|
}, "strip", z.ZodTypeAny, {
|
203
|
-
|
204
|
-
|
205
|
-
title: TranslationConfig;
|
206
|
-
body: TranslationConfig;
|
186
|
+
verify: {
|
187
|
+
label: TranslationConfig;
|
207
188
|
};
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
189
|
+
cancel: {
|
190
|
+
label: TranslationConfig;
|
191
|
+
confirmation: {
|
192
|
+
title: TranslationConfig;
|
193
|
+
body: TranslationConfig;
|
194
|
+
};
|
213
195
|
};
|
214
|
-
|
215
|
-
|
196
|
+
}, {
|
197
|
+
verify: {
|
198
|
+
label: {
|
216
199
|
id: string;
|
217
200
|
description: string;
|
218
201
|
defaultMessage: string;
|
219
202
|
};
|
220
|
-
|
203
|
+
};
|
204
|
+
cancel: {
|
205
|
+
label: {
|
221
206
|
id: string;
|
222
207
|
description: string;
|
223
208
|
defaultMessage: string;
|
224
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
|
+
};
|
225
222
|
};
|
226
223
|
}>;
|
227
|
-
}
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
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
|
+
};
|
236
238
|
};
|
237
239
|
};
|
240
|
+
fields: import("./FieldConfig").Inferred[];
|
241
|
+
conditional?: import(".").JSONSchema | undefined;
|
238
242
|
}, {
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
243
|
+
type: "VERIFICATION";
|
244
|
+
id: string;
|
245
|
+
title: {
|
246
|
+
id: string;
|
247
|
+
description: string;
|
248
|
+
defaultMessage: string;
|
245
249
|
};
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
description: string;
|
250
|
-
defaultMessage: string;
|
251
|
-
};
|
252
|
-
confirmation: {
|
253
|
-
title: {
|
250
|
+
actions: {
|
251
|
+
verify: {
|
252
|
+
label: {
|
254
253
|
id: string;
|
255
254
|
description: string;
|
256
255
|
defaultMessage: string;
|
257
256
|
};
|
258
|
-
|
257
|
+
};
|
258
|
+
cancel: {
|
259
|
+
label: {
|
259
260
|
id: string;
|
260
261
|
description: string;
|
261
262
|
defaultMessage: string;
|
262
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
|
+
};
|
263
276
|
};
|
264
277
|
};
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
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;
|
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
|
+
};
|
279
303
|
};
|
280
304
|
};
|
281
|
-
|
282
|
-
|
305
|
+
fields: import("./FieldConfig").Inferred[];
|
306
|
+
conditional?: import(".").JSONSchema | undefined;
|
307
|
+
})[];
|
283
308
|
}, {
|
284
|
-
|
285
|
-
id: string;
|
286
|
-
title: {
|
309
|
+
label: {
|
287
310
|
id: string;
|
288
311
|
description: string;
|
289
312
|
defaultMessage: string;
|
290
313
|
};
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
};
|
314
|
+
pages: ({
|
315
|
+
id: string;
|
316
|
+
title: {
|
317
|
+
id: string;
|
318
|
+
description: string;
|
319
|
+
defaultMessage: string;
|
298
320
|
};
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
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: {
|
307
335
|
id: string;
|
308
336
|
description: string;
|
309
337
|
defaultMessage: string;
|
310
338
|
};
|
311
|
-
|
339
|
+
};
|
340
|
+
cancel: {
|
341
|
+
label: {
|
312
342
|
id: string;
|
313
343
|
description: string;
|
314
344
|
defaultMessage: string;
|
315
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
|
+
};
|
316
358
|
};
|
317
359
|
};
|
318
|
-
|
319
|
-
|
360
|
+
fields: import("./FieldConfig").InferredInput[];
|
361
|
+
conditional?: import(".").JSONSchema | undefined;
|
362
|
+
})[];
|
320
363
|
}>;
|
321
|
-
export type
|
322
|
-
export type
|
323
|
-
export declare const
|
324
|
-
export type PageInput = z.input<typeof PageConfig>;
|
325
|
-
export type Page = z.infer<typeof PageConfig>;
|
326
|
-
export declare const FormConfig: z.ZodObject<{
|
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<{
|
327
367
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
328
368
|
id: string;
|
329
369
|
description: string;
|
330
370
|
defaultMessage: string;
|
331
371
|
}>;
|
332
|
-
|
372
|
+
pages: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
333
373
|
id: z.ZodString;
|
334
|
-
|
374
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
335
375
|
id: string;
|
336
376
|
description: string;
|
337
377
|
defaultMessage: string;
|
338
378
|
}>;
|
339
|
-
|
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";
|
340
385
|
id: string;
|
341
|
-
|
386
|
+
title: TranslationConfig;
|
387
|
+
fields: import("./FieldConfig").Inferred[];
|
388
|
+
conditional?: import(".").JSONSchema | undefined;
|
342
389
|
}, {
|
343
390
|
id: string;
|
344
|
-
|
391
|
+
title: {
|
345
392
|
id: string;
|
346
393
|
description: string;
|
347
394
|
defaultMessage: string;
|
348
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: {
|
418
|
+
id: string;
|
419
|
+
description: string;
|
420
|
+
defaultMessage: string;
|
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;
|
349
431
|
}>;
|
350
|
-
|
351
|
-
|
352
|
-
review: z.ZodObject<{
|
432
|
+
pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", (z.ZodObject<z.objectUtil.extendShape<{
|
433
|
+
id: z.ZodString;
|
353
434
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
354
435
|
id: string;
|
355
436
|
description: string;
|
356
437
|
defaultMessage: string;
|
357
438
|
}>;
|
358
|
-
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").
|
359
|
-
|
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;
|
360
446
|
title: TranslationConfig;
|
361
447
|
fields: import("./FieldConfig").Inferred[];
|
448
|
+
conditional?: import(".").JSONSchema | undefined;
|
362
449
|
}, {
|
450
|
+
id: string;
|
363
451
|
title: {
|
364
452
|
id: string;
|
365
453
|
description: string;
|
366
454
|
defaultMessage: string;
|
367
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
|
+
};
|
368
600
|
fields: import("./FieldConfig").Inferred[];
|
369
|
-
|
370
|
-
},
|
371
|
-
|
372
|
-
version: {
|
601
|
+
conditional?: import(".").JSONSchema | undefined;
|
602
|
+
}, {
|
603
|
+
type: "VERIFICATION";
|
373
604
|
id: string;
|
374
|
-
|
375
|
-
|
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").InferredInput[];
|
639
|
+
conditional?: import(".").JSONSchema | undefined;
|
640
|
+
}>)[]>, "many">;
|
641
|
+
}, "strip", z.ZodTypeAny, {
|
376
642
|
label: TranslationConfig;
|
377
643
|
pages: ({
|
378
|
-
type:
|
644
|
+
type: "FORM";
|
379
645
|
id: string;
|
380
646
|
title: TranslationConfig;
|
381
647
|
fields: import("./FieldConfig").Inferred[];
|
648
|
+
conditional?: import(".").JSONSchema | undefined;
|
382
649
|
} | {
|
383
|
-
type:
|
650
|
+
type: "VERIFICATION";
|
384
651
|
id: string;
|
385
652
|
title: TranslationConfig;
|
386
653
|
actions: {
|
@@ -396,20 +663,9 @@ export declare const FormConfig: z.ZodObject<{
|
|
396
663
|
};
|
397
664
|
};
|
398
665
|
fields: import("./FieldConfig").Inferred[];
|
666
|
+
conditional?: import(".").JSONSchema | undefined;
|
399
667
|
})[];
|
400
|
-
review: {
|
401
|
-
title: TranslationConfig;
|
402
|
-
fields: import("./FieldConfig").Inferred[];
|
403
|
-
};
|
404
668
|
}, {
|
405
|
-
version: {
|
406
|
-
id: string;
|
407
|
-
label: {
|
408
|
-
id: string;
|
409
|
-
description: string;
|
410
|
-
defaultMessage: string;
|
411
|
-
};
|
412
|
-
};
|
413
669
|
label: {
|
414
670
|
id: string;
|
415
671
|
description: string;
|
@@ -422,10 +678,11 @@ export declare const FormConfig: z.ZodObject<{
|
|
422
678
|
description: string;
|
423
679
|
defaultMessage: string;
|
424
680
|
};
|
425
|
-
fields: import("./FieldConfig").
|
426
|
-
type?:
|
681
|
+
fields: import("./FieldConfig").InferredInput[];
|
682
|
+
type?: "FORM" | undefined;
|
683
|
+
conditional?: import(".").JSONSchema | undefined;
|
427
684
|
} | {
|
428
|
-
type:
|
685
|
+
type: "VERIFICATION";
|
429
686
|
id: string;
|
430
687
|
title: {
|
431
688
|
id: string;
|
@@ -460,18 +717,9 @@ export declare const FormConfig: z.ZodObject<{
|
|
460
717
|
};
|
461
718
|
};
|
462
719
|
};
|
463
|
-
fields: import("./FieldConfig").
|
720
|
+
fields: import("./FieldConfig").InferredInput[];
|
721
|
+
conditional?: import(".").JSONSchema | undefined;
|
464
722
|
})[];
|
465
|
-
|
466
|
-
title: {
|
467
|
-
id: string;
|
468
|
-
description: string;
|
469
|
-
defaultMessage: string;
|
470
|
-
};
|
471
|
-
fields: import("./FieldConfig").Inferred[];
|
472
|
-
};
|
473
|
-
active?: boolean | undefined;
|
474
|
-
}>;
|
723
|
+
}>]>;
|
475
724
|
export type FormConfig = z.infer<typeof FormConfig>;
|
476
|
-
export type FormConfigInput = z.input<typeof FormConfig>;
|
477
725
|
//# sourceMappingURL=FormConfig.d.ts.map
|