@opencrvs/toolkit 1.8.0-rc.fa72fdf → 1.8.0-rc.faacbde

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.
@@ -0,0 +1,359 @@
1
+ import { z } from 'zod';
2
+ import { TranslationConfig } from './TranslationConfig';
3
+ export declare const PageTypes: z.ZodEnum<["FORM", "VERIFICATION"]>;
4
+ export type PageType = z.infer<typeof PageTypes>;
5
+ export declare const PageConfigBase: z.ZodObject<{
6
+ id: z.ZodString;
7
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
8
+ id: string;
9
+ description: string;
10
+ defaultMessage: string;
11
+ }>;
12
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
13
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ id: string;
16
+ title: TranslationConfig;
17
+ fields: import("./FieldConfig").Inferred[];
18
+ conditional?: import(".").JSONSchema | undefined;
19
+ }, {
20
+ id: string;
21
+ title: {
22
+ id: string;
23
+ description: string;
24
+ defaultMessage: string;
25
+ };
26
+ fields: import("./FieldConfig").InferredInput[];
27
+ conditional?: import(".").JSONSchema | undefined;
28
+ }>;
29
+ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
30
+ id: z.ZodString;
31
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
32
+ id: string;
33
+ description: string;
34
+ defaultMessage: string;
35
+ }>;
36
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
37
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
38
+ }, {
39
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
40
+ }>, "strip", z.ZodTypeAny, {
41
+ type: "FORM";
42
+ id: string;
43
+ title: TranslationConfig;
44
+ fields: import("./FieldConfig").Inferred[];
45
+ conditional?: import(".").JSONSchema | undefined;
46
+ }, {
47
+ id: string;
48
+ title: {
49
+ id: string;
50
+ description: string;
51
+ defaultMessage: string;
52
+ };
53
+ fields: import("./FieldConfig").InferredInput[];
54
+ type?: "FORM" | undefined;
55
+ conditional?: import(".").JSONSchema | undefined;
56
+ }>;
57
+ export type FormPageConfig = z.infer<typeof FormPageConfig>;
58
+ export type FormPageConfigInput = z.input<typeof FormPageConfig>;
59
+ export declare const VerificationActionConfig: z.ZodObject<{
60
+ verify: z.ZodObject<{
61
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
62
+ id: string;
63
+ description: string;
64
+ defaultMessage: string;
65
+ }>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ label: TranslationConfig;
68
+ }, {
69
+ label: {
70
+ id: string;
71
+ description: string;
72
+ defaultMessage: string;
73
+ };
74
+ }>;
75
+ cancel: z.ZodObject<{
76
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
77
+ id: string;
78
+ description: string;
79
+ defaultMessage: string;
80
+ }>;
81
+ confirmation: z.ZodObject<{
82
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
83
+ id: string;
84
+ description: string;
85
+ defaultMessage: string;
86
+ }>;
87
+ body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
88
+ id: string;
89
+ description: string;
90
+ defaultMessage: string;
91
+ }>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ title: TranslationConfig;
94
+ body: TranslationConfig;
95
+ }, {
96
+ title: {
97
+ id: string;
98
+ description: string;
99
+ defaultMessage: string;
100
+ };
101
+ body: {
102
+ id: string;
103
+ description: string;
104
+ defaultMessage: string;
105
+ };
106
+ }>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ label: TranslationConfig;
109
+ confirmation: {
110
+ title: TranslationConfig;
111
+ body: TranslationConfig;
112
+ };
113
+ }, {
114
+ label: {
115
+ id: string;
116
+ description: string;
117
+ defaultMessage: string;
118
+ };
119
+ confirmation: {
120
+ title: {
121
+ id: string;
122
+ description: string;
123
+ defaultMessage: string;
124
+ };
125
+ body: {
126
+ id: string;
127
+ description: string;
128
+ defaultMessage: string;
129
+ };
130
+ };
131
+ }>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ verify: {
134
+ label: TranslationConfig;
135
+ };
136
+ cancel: {
137
+ label: TranslationConfig;
138
+ confirmation: {
139
+ title: TranslationConfig;
140
+ body: TranslationConfig;
141
+ };
142
+ };
143
+ }, {
144
+ verify: {
145
+ label: {
146
+ id: string;
147
+ description: string;
148
+ defaultMessage: string;
149
+ };
150
+ };
151
+ cancel: {
152
+ label: {
153
+ id: string;
154
+ description: string;
155
+ defaultMessage: string;
156
+ };
157
+ confirmation: {
158
+ title: {
159
+ id: string;
160
+ description: string;
161
+ defaultMessage: string;
162
+ };
163
+ body: {
164
+ id: string;
165
+ description: string;
166
+ defaultMessage: string;
167
+ };
168
+ };
169
+ };
170
+ }>;
171
+ export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
172
+ id: z.ZodString;
173
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
174
+ id: string;
175
+ description: string;
176
+ defaultMessage: string;
177
+ }>;
178
+ fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">;
179
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
180
+ }, {
181
+ type: z.ZodDefault<z.ZodLiteral<"FORM">>;
182
+ }>, {
183
+ type: z.ZodLiteral<"VERIFICATION">;
184
+ actions: z.ZodObject<{
185
+ verify: z.ZodObject<{
186
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
187
+ id: string;
188
+ description: string;
189
+ defaultMessage: string;
190
+ }>;
191
+ }, "strip", z.ZodTypeAny, {
192
+ label: TranslationConfig;
193
+ }, {
194
+ label: {
195
+ id: string;
196
+ description: string;
197
+ defaultMessage: string;
198
+ };
199
+ }>;
200
+ cancel: z.ZodObject<{
201
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
202
+ id: string;
203
+ description: string;
204
+ defaultMessage: string;
205
+ }>;
206
+ confirmation: z.ZodObject<{
207
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
208
+ id: string;
209
+ description: string;
210
+ defaultMessage: string;
211
+ }>;
212
+ body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
213
+ id: string;
214
+ description: string;
215
+ defaultMessage: string;
216
+ }>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ title: TranslationConfig;
219
+ body: TranslationConfig;
220
+ }, {
221
+ title: {
222
+ id: string;
223
+ description: string;
224
+ defaultMessage: string;
225
+ };
226
+ body: {
227
+ id: string;
228
+ description: string;
229
+ defaultMessage: string;
230
+ };
231
+ }>;
232
+ }, "strip", z.ZodTypeAny, {
233
+ label: TranslationConfig;
234
+ confirmation: {
235
+ title: TranslationConfig;
236
+ body: TranslationConfig;
237
+ };
238
+ }, {
239
+ label: {
240
+ id: string;
241
+ description: string;
242
+ defaultMessage: string;
243
+ };
244
+ confirmation: {
245
+ title: {
246
+ id: string;
247
+ description: string;
248
+ defaultMessage: string;
249
+ };
250
+ body: {
251
+ id: string;
252
+ description: string;
253
+ defaultMessage: string;
254
+ };
255
+ };
256
+ }>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ verify: {
259
+ label: TranslationConfig;
260
+ };
261
+ cancel: {
262
+ label: TranslationConfig;
263
+ confirmation: {
264
+ title: TranslationConfig;
265
+ body: TranslationConfig;
266
+ };
267
+ };
268
+ }, {
269
+ verify: {
270
+ label: {
271
+ id: string;
272
+ description: string;
273
+ defaultMessage: string;
274
+ };
275
+ };
276
+ cancel: {
277
+ label: {
278
+ id: string;
279
+ description: string;
280
+ defaultMessage: string;
281
+ };
282
+ confirmation: {
283
+ title: {
284
+ id: string;
285
+ description: string;
286
+ defaultMessage: string;
287
+ };
288
+ body: {
289
+ id: string;
290
+ description: string;
291
+ defaultMessage: string;
292
+ };
293
+ };
294
+ };
295
+ }>;
296
+ }>, "strip", z.ZodTypeAny, {
297
+ type: "VERIFICATION";
298
+ id: string;
299
+ title: TranslationConfig;
300
+ actions: {
301
+ verify: {
302
+ label: TranslationConfig;
303
+ };
304
+ cancel: {
305
+ label: TranslationConfig;
306
+ confirmation: {
307
+ title: TranslationConfig;
308
+ body: TranslationConfig;
309
+ };
310
+ };
311
+ };
312
+ fields: import("./FieldConfig").Inferred[];
313
+ conditional?: import(".").JSONSchema | undefined;
314
+ }, {
315
+ type: "VERIFICATION";
316
+ id: string;
317
+ title: {
318
+ id: string;
319
+ description: string;
320
+ defaultMessage: string;
321
+ };
322
+ actions: {
323
+ verify: {
324
+ label: {
325
+ id: string;
326
+ description: string;
327
+ defaultMessage: string;
328
+ };
329
+ };
330
+ cancel: {
331
+ label: {
332
+ id: string;
333
+ description: string;
334
+ defaultMessage: string;
335
+ };
336
+ confirmation: {
337
+ title: {
338
+ id: string;
339
+ description: string;
340
+ defaultMessage: string;
341
+ };
342
+ body: {
343
+ id: string;
344
+ description: string;
345
+ defaultMessage: string;
346
+ };
347
+ };
348
+ };
349
+ };
350
+ fields: import("./FieldConfig").InferredInput[];
351
+ conditional?: import(".").JSONSchema | undefined;
352
+ }>;
353
+ export type VerificationPageConfig = z.infer<typeof VerificationPageConfig>;
354
+ type AllPageConfig = typeof VerificationPageConfig | typeof FormPageConfig;
355
+ export declare const PageConfig: z.ZodDiscriminatedUnion<"type", AllPageConfig[]>;
356
+ export type PageConfig = z.infer<typeof PageConfig>;
357
+ export type PageConfigInput = z.input<typeof PageConfig>;
358
+ export {};
359
+ //# sourceMappingURL=PageConfig.d.ts.map