@opencrvs/toolkit 1.8.0-rc.feaeeb7 → 1.8.0-rc.ff62f9e
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/dist/commons/api/router.d.ts +6838 -506
- package/dist/commons/conditionals/conditionals.d.ts +1 -0
- package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
- package/dist/commons/conditionals/validate.d.ts +27 -0
- package/dist/commons/conditionals/validate.test.d.ts +2 -0
- package/dist/commons/events/ActionConfig.d.ts +4714 -262
- package/dist/commons/events/ActionDocument.d.ts +2549 -74
- package/dist/commons/events/ActionInput.d.ts +4100 -276
- package/dist/commons/events/ActionType.d.ts +7 -1
- package/dist/commons/events/CompositeFieldValue.d.ts +152 -2
- package/dist/commons/events/Draft.d.ts +300 -15
- package/dist/commons/events/EventConfig.d.ts +1848 -192
- package/dist/commons/events/EventConfigInput.d.ts +2 -2
- package/dist/commons/events/EventDocument.d.ts +3244 -161
- package/dist/commons/events/FieldConfig.d.ts +293 -40
- package/dist/commons/events/FieldType.d.ts +6 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +154 -3
- package/dist/commons/events/FieldValue.d.ts +76 -2
- package/dist/commons/events/FormConfig.d.ts +377 -29
- package/dist/commons/events/TemplateConfig.d.ts +28 -8
- package/dist/commons/events/defineConfig.d.ts +309 -35
- package/dist/commons/events/test.utils.d.ts +164 -16
- package/dist/commons/events/utils.d.ts +232 -10
- package/dist/conditionals/index.js +17 -0
- package/dist/events/index.js +505 -116
- package/package.json +1 -1
@@ -38,6 +38,7 @@ export declare const Draft: z.ZodObject<{
|
|
38
38
|
originalFilename: string;
|
39
39
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
40
40
|
country: z.ZodString;
|
41
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
41
42
|
province: z.ZodString;
|
42
43
|
district: z.ZodString;
|
43
44
|
}, {
|
@@ -50,6 +51,7 @@ export declare const Draft: z.ZodObject<{
|
|
50
51
|
}>, "strip", z.ZodTypeAny, {
|
51
52
|
country: string;
|
52
53
|
district: string;
|
54
|
+
addressType: "DOMESTIC";
|
53
55
|
province: string;
|
54
56
|
urbanOrRural: "URBAN";
|
55
57
|
number?: string | null | undefined;
|
@@ -60,6 +62,7 @@ export declare const Draft: z.ZodObject<{
|
|
60
62
|
}, {
|
61
63
|
country: string;
|
62
64
|
district: string;
|
65
|
+
addressType: "DOMESTIC";
|
63
66
|
province: string;
|
64
67
|
urbanOrRural: "URBAN";
|
65
68
|
number?: string | null | undefined;
|
@@ -69,6 +72,7 @@ export declare const Draft: z.ZodObject<{
|
|
69
72
|
zipCode?: string | null | undefined;
|
70
73
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
71
74
|
country: z.ZodString;
|
75
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
72
76
|
province: z.ZodString;
|
73
77
|
district: z.ZodString;
|
74
78
|
}, {
|
@@ -77,15 +81,47 @@ export declare const Draft: z.ZodObject<{
|
|
77
81
|
}>, "strip", z.ZodTypeAny, {
|
78
82
|
country: string;
|
79
83
|
district: string;
|
84
|
+
addressType: "DOMESTIC";
|
80
85
|
province: string;
|
81
86
|
urbanOrRural: "RURAL";
|
82
87
|
village?: string | null | undefined;
|
83
88
|
}, {
|
84
89
|
country: string;
|
85
90
|
district: string;
|
91
|
+
addressType: "DOMESTIC";
|
86
92
|
province: string;
|
87
93
|
urbanOrRural: "RURAL";
|
88
94
|
village?: string | null | undefined;
|
95
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
96
|
+
country: z.ZodString;
|
97
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
98
|
+
state: z.ZodString;
|
99
|
+
district2: z.ZodString;
|
100
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
101
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
102
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
103
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
104
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
106
|
+
country: string;
|
107
|
+
state: string;
|
108
|
+
addressType: "INTERNATIONAL";
|
109
|
+
district2: string;
|
110
|
+
cityOrTown?: string | null | undefined;
|
111
|
+
addressLine1?: string | null | undefined;
|
112
|
+
addressLine2?: string | null | undefined;
|
113
|
+
addressLine3?: string | null | undefined;
|
114
|
+
postcodeOrZip?: string | null | undefined;
|
115
|
+
}, {
|
116
|
+
country: string;
|
117
|
+
state: string;
|
118
|
+
addressType: "INTERNATIONAL";
|
119
|
+
district2: string;
|
120
|
+
cityOrTown?: string | null | undefined;
|
121
|
+
addressLine1?: string | null | undefined;
|
122
|
+
addressLine2?: string | null | undefined;
|
123
|
+
addressLine3?: string | null | undefined;
|
124
|
+
postcodeOrZip?: string | null | undefined;
|
89
125
|
}>]>>;
|
90
126
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
91
127
|
filename: z.ZodString;
|
@@ -116,6 +152,7 @@ export declare const Draft: z.ZodObject<{
|
|
116
152
|
originalFilename: string;
|
117
153
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
118
154
|
country: z.ZodString;
|
155
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
119
156
|
province: z.ZodString;
|
120
157
|
district: z.ZodString;
|
121
158
|
}, {
|
@@ -128,6 +165,7 @@ export declare const Draft: z.ZodObject<{
|
|
128
165
|
}>, "strip", z.ZodTypeAny, {
|
129
166
|
country: string;
|
130
167
|
district: string;
|
168
|
+
addressType: "DOMESTIC";
|
131
169
|
province: string;
|
132
170
|
urbanOrRural: "URBAN";
|
133
171
|
number?: string | null | undefined;
|
@@ -138,6 +176,7 @@ export declare const Draft: z.ZodObject<{
|
|
138
176
|
}, {
|
139
177
|
country: string;
|
140
178
|
district: string;
|
179
|
+
addressType: "DOMESTIC";
|
141
180
|
province: string;
|
142
181
|
urbanOrRural: "URBAN";
|
143
182
|
number?: string | null | undefined;
|
@@ -147,6 +186,7 @@ export declare const Draft: z.ZodObject<{
|
|
147
186
|
zipCode?: string | null | undefined;
|
148
187
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
149
188
|
country: z.ZodString;
|
189
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
150
190
|
province: z.ZodString;
|
151
191
|
district: z.ZodString;
|
152
192
|
}, {
|
@@ -155,15 +195,47 @@ export declare const Draft: z.ZodObject<{
|
|
155
195
|
}>, "strip", z.ZodTypeAny, {
|
156
196
|
country: string;
|
157
197
|
district: string;
|
198
|
+
addressType: "DOMESTIC";
|
158
199
|
province: string;
|
159
200
|
urbanOrRural: "RURAL";
|
160
201
|
village?: string | null | undefined;
|
161
202
|
}, {
|
162
203
|
country: string;
|
163
204
|
district: string;
|
205
|
+
addressType: "DOMESTIC";
|
164
206
|
province: string;
|
165
207
|
urbanOrRural: "RURAL";
|
166
208
|
village?: string | null | undefined;
|
209
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
210
|
+
country: z.ZodString;
|
211
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
212
|
+
state: z.ZodString;
|
213
|
+
district2: z.ZodString;
|
214
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
215
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
216
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
217
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
218
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
219
|
+
}, "strip", z.ZodTypeAny, {
|
220
|
+
country: string;
|
221
|
+
state: string;
|
222
|
+
addressType: "INTERNATIONAL";
|
223
|
+
district2: string;
|
224
|
+
cityOrTown?: string | null | undefined;
|
225
|
+
addressLine1?: string | null | undefined;
|
226
|
+
addressLine2?: string | null | undefined;
|
227
|
+
addressLine3?: string | null | undefined;
|
228
|
+
postcodeOrZip?: string | null | undefined;
|
229
|
+
}, {
|
230
|
+
country: string;
|
231
|
+
state: string;
|
232
|
+
addressType: "INTERNATIONAL";
|
233
|
+
district2: string;
|
234
|
+
cityOrTown?: string | null | undefined;
|
235
|
+
addressLine1?: string | null | undefined;
|
236
|
+
addressLine2?: string | null | undefined;
|
237
|
+
addressLine3?: string | null | undefined;
|
238
|
+
postcodeOrZip?: string | null | undefined;
|
167
239
|
}>]>>>;
|
168
240
|
createdAtLocation: z.ZodString;
|
169
241
|
}, {
|
@@ -177,6 +249,7 @@ export declare const Draft: z.ZodObject<{
|
|
177
249
|
} | {
|
178
250
|
country: string;
|
179
251
|
district: string;
|
252
|
+
addressType: "DOMESTIC";
|
180
253
|
province: string;
|
181
254
|
urbanOrRural: "URBAN";
|
182
255
|
number?: string | null | undefined;
|
@@ -187,15 +260,26 @@ export declare const Draft: z.ZodObject<{
|
|
187
260
|
} | {
|
188
261
|
country: string;
|
189
262
|
district: string;
|
263
|
+
addressType: "DOMESTIC";
|
190
264
|
province: string;
|
191
265
|
urbanOrRural: "RURAL";
|
192
266
|
village?: string | null | undefined;
|
267
|
+
} | {
|
268
|
+
country: string;
|
269
|
+
state: string;
|
270
|
+
addressType: "INTERNATIONAL";
|
271
|
+
district2: string;
|
272
|
+
cityOrTown?: string | null | undefined;
|
273
|
+
addressLine1?: string | null | undefined;
|
274
|
+
addressLine2?: string | null | undefined;
|
275
|
+
addressLine3?: string | null | undefined;
|
276
|
+
postcodeOrZip?: string | null | undefined;
|
193
277
|
} | {
|
194
278
|
type: string;
|
195
279
|
option: string;
|
196
280
|
filename: string;
|
197
281
|
originalFilename: string;
|
198
|
-
}[]>;
|
282
|
+
}[] | undefined>;
|
199
283
|
createdAt: string;
|
200
284
|
createdBy: string;
|
201
285
|
createdAtLocation: string;
|
@@ -206,6 +290,7 @@ export declare const Draft: z.ZodObject<{
|
|
206
290
|
} | {
|
207
291
|
country: string;
|
208
292
|
district: string;
|
293
|
+
addressType: "DOMESTIC";
|
209
294
|
province: string;
|
210
295
|
urbanOrRural: "URBAN";
|
211
296
|
number?: string | null | undefined;
|
@@ -216,15 +301,26 @@ export declare const Draft: z.ZodObject<{
|
|
216
301
|
} | {
|
217
302
|
country: string;
|
218
303
|
district: string;
|
304
|
+
addressType: "DOMESTIC";
|
219
305
|
province: string;
|
220
306
|
urbanOrRural: "RURAL";
|
221
307
|
village?: string | null | undefined;
|
308
|
+
} | {
|
309
|
+
country: string;
|
310
|
+
state: string;
|
311
|
+
addressType: "INTERNATIONAL";
|
312
|
+
district2: string;
|
313
|
+
cityOrTown?: string | null | undefined;
|
314
|
+
addressLine1?: string | null | undefined;
|
315
|
+
addressLine2?: string | null | undefined;
|
316
|
+
addressLine3?: string | null | undefined;
|
317
|
+
postcodeOrZip?: string | null | undefined;
|
222
318
|
} | {
|
223
319
|
type: string;
|
224
320
|
option: string;
|
225
321
|
filename: string;
|
226
322
|
originalFilename: string;
|
227
|
-
}[]> | undefined;
|
323
|
+
}[] | undefined> | undefined;
|
228
324
|
}, {
|
229
325
|
type: ActionType;
|
230
326
|
data: Record<string, string | number | boolean | {
|
@@ -234,6 +330,7 @@ export declare const Draft: z.ZodObject<{
|
|
234
330
|
} | {
|
235
331
|
country: string;
|
236
332
|
district: string;
|
333
|
+
addressType: "DOMESTIC";
|
237
334
|
province: string;
|
238
335
|
urbanOrRural: "URBAN";
|
239
336
|
number?: string | null | undefined;
|
@@ -244,15 +341,26 @@ export declare const Draft: z.ZodObject<{
|
|
244
341
|
} | {
|
245
342
|
country: string;
|
246
343
|
district: string;
|
344
|
+
addressType: "DOMESTIC";
|
247
345
|
province: string;
|
248
346
|
urbanOrRural: "RURAL";
|
249
347
|
village?: string | null | undefined;
|
348
|
+
} | {
|
349
|
+
country: string;
|
350
|
+
state: string;
|
351
|
+
addressType: "INTERNATIONAL";
|
352
|
+
district2: string;
|
353
|
+
cityOrTown?: string | null | undefined;
|
354
|
+
addressLine1?: string | null | undefined;
|
355
|
+
addressLine2?: string | null | undefined;
|
356
|
+
addressLine3?: string | null | undefined;
|
357
|
+
postcodeOrZip?: string | null | undefined;
|
250
358
|
} | {
|
251
359
|
type: string;
|
252
360
|
option: string;
|
253
361
|
filename: string;
|
254
362
|
originalFilename: string;
|
255
|
-
}[]>;
|
363
|
+
}[] | undefined>;
|
256
364
|
createdAt: string;
|
257
365
|
createdBy: string;
|
258
366
|
createdAtLocation: string;
|
@@ -263,6 +371,7 @@ export declare const Draft: z.ZodObject<{
|
|
263
371
|
} | {
|
264
372
|
country: string;
|
265
373
|
district: string;
|
374
|
+
addressType: "DOMESTIC";
|
266
375
|
province: string;
|
267
376
|
urbanOrRural: "URBAN";
|
268
377
|
number?: string | null | undefined;
|
@@ -273,15 +382,26 @@ export declare const Draft: z.ZodObject<{
|
|
273
382
|
} | {
|
274
383
|
country: string;
|
275
384
|
district: string;
|
385
|
+
addressType: "DOMESTIC";
|
276
386
|
province: string;
|
277
387
|
urbanOrRural: "RURAL";
|
278
388
|
village?: string | null | undefined;
|
389
|
+
} | {
|
390
|
+
country: string;
|
391
|
+
state: string;
|
392
|
+
addressType: "INTERNATIONAL";
|
393
|
+
district2: string;
|
394
|
+
cityOrTown?: string | null | undefined;
|
395
|
+
addressLine1?: string | null | undefined;
|
396
|
+
addressLine2?: string | null | undefined;
|
397
|
+
addressLine3?: string | null | undefined;
|
398
|
+
postcodeOrZip?: string | null | undefined;
|
279
399
|
} | {
|
280
400
|
type: string;
|
281
401
|
option: string;
|
282
402
|
filename: string;
|
283
403
|
originalFilename: string;
|
284
|
-
}[]> | undefined;
|
404
|
+
}[] | undefined> | undefined;
|
285
405
|
}>;
|
286
406
|
}, "strip", z.ZodTypeAny, {
|
287
407
|
id: string;
|
@@ -297,6 +417,7 @@ export declare const Draft: z.ZodObject<{
|
|
297
417
|
} | {
|
298
418
|
country: string;
|
299
419
|
district: string;
|
420
|
+
addressType: "DOMESTIC";
|
300
421
|
province: string;
|
301
422
|
urbanOrRural: "URBAN";
|
302
423
|
number?: string | null | undefined;
|
@@ -307,15 +428,26 @@ export declare const Draft: z.ZodObject<{
|
|
307
428
|
} | {
|
308
429
|
country: string;
|
309
430
|
district: string;
|
431
|
+
addressType: "DOMESTIC";
|
310
432
|
province: string;
|
311
433
|
urbanOrRural: "RURAL";
|
312
434
|
village?: string | null | undefined;
|
435
|
+
} | {
|
436
|
+
country: string;
|
437
|
+
state: string;
|
438
|
+
addressType: "INTERNATIONAL";
|
439
|
+
district2: string;
|
440
|
+
cityOrTown?: string | null | undefined;
|
441
|
+
addressLine1?: string | null | undefined;
|
442
|
+
addressLine2?: string | null | undefined;
|
443
|
+
addressLine3?: string | null | undefined;
|
444
|
+
postcodeOrZip?: string | null | undefined;
|
313
445
|
} | {
|
314
446
|
type: string;
|
315
447
|
option: string;
|
316
448
|
filename: string;
|
317
449
|
originalFilename: string;
|
318
|
-
}[]>;
|
450
|
+
}[] | undefined>;
|
319
451
|
createdAt: string;
|
320
452
|
createdBy: string;
|
321
453
|
createdAtLocation: string;
|
@@ -326,6 +458,7 @@ export declare const Draft: z.ZodObject<{
|
|
326
458
|
} | {
|
327
459
|
country: string;
|
328
460
|
district: string;
|
461
|
+
addressType: "DOMESTIC";
|
329
462
|
province: string;
|
330
463
|
urbanOrRural: "URBAN";
|
331
464
|
number?: string | null | undefined;
|
@@ -336,15 +469,26 @@ export declare const Draft: z.ZodObject<{
|
|
336
469
|
} | {
|
337
470
|
country: string;
|
338
471
|
district: string;
|
472
|
+
addressType: "DOMESTIC";
|
339
473
|
province: string;
|
340
474
|
urbanOrRural: "RURAL";
|
341
475
|
village?: string | null | undefined;
|
476
|
+
} | {
|
477
|
+
country: string;
|
478
|
+
state: string;
|
479
|
+
addressType: "INTERNATIONAL";
|
480
|
+
district2: string;
|
481
|
+
cityOrTown?: string | null | undefined;
|
482
|
+
addressLine1?: string | null | undefined;
|
483
|
+
addressLine2?: string | null | undefined;
|
484
|
+
addressLine3?: string | null | undefined;
|
485
|
+
postcodeOrZip?: string | null | undefined;
|
342
486
|
} | {
|
343
487
|
type: string;
|
344
488
|
option: string;
|
345
489
|
filename: string;
|
346
490
|
originalFilename: string;
|
347
|
-
}[]> | undefined;
|
491
|
+
}[] | undefined> | undefined;
|
348
492
|
};
|
349
493
|
}, {
|
350
494
|
id: string;
|
@@ -360,6 +504,7 @@ export declare const Draft: z.ZodObject<{
|
|
360
504
|
} | {
|
361
505
|
country: string;
|
362
506
|
district: string;
|
507
|
+
addressType: "DOMESTIC";
|
363
508
|
province: string;
|
364
509
|
urbanOrRural: "URBAN";
|
365
510
|
number?: string | null | undefined;
|
@@ -370,15 +515,26 @@ export declare const Draft: z.ZodObject<{
|
|
370
515
|
} | {
|
371
516
|
country: string;
|
372
517
|
district: string;
|
518
|
+
addressType: "DOMESTIC";
|
373
519
|
province: string;
|
374
520
|
urbanOrRural: "RURAL";
|
375
521
|
village?: string | null | undefined;
|
522
|
+
} | {
|
523
|
+
country: string;
|
524
|
+
state: string;
|
525
|
+
addressType: "INTERNATIONAL";
|
526
|
+
district2: string;
|
527
|
+
cityOrTown?: string | null | undefined;
|
528
|
+
addressLine1?: string | null | undefined;
|
529
|
+
addressLine2?: string | null | undefined;
|
530
|
+
addressLine3?: string | null | undefined;
|
531
|
+
postcodeOrZip?: string | null | undefined;
|
376
532
|
} | {
|
377
533
|
type: string;
|
378
534
|
option: string;
|
379
535
|
filename: string;
|
380
536
|
originalFilename: string;
|
381
|
-
}[]>;
|
537
|
+
}[] | undefined>;
|
382
538
|
createdAt: string;
|
383
539
|
createdBy: string;
|
384
540
|
createdAtLocation: string;
|
@@ -389,6 +545,7 @@ export declare const Draft: z.ZodObject<{
|
|
389
545
|
} | {
|
390
546
|
country: string;
|
391
547
|
district: string;
|
548
|
+
addressType: "DOMESTIC";
|
392
549
|
province: string;
|
393
550
|
urbanOrRural: "URBAN";
|
394
551
|
number?: string | null | undefined;
|
@@ -399,21 +556,31 @@ export declare const Draft: z.ZodObject<{
|
|
399
556
|
} | {
|
400
557
|
country: string;
|
401
558
|
district: string;
|
559
|
+
addressType: "DOMESTIC";
|
402
560
|
province: string;
|
403
561
|
urbanOrRural: "RURAL";
|
404
562
|
village?: string | null | undefined;
|
563
|
+
} | {
|
564
|
+
country: string;
|
565
|
+
state: string;
|
566
|
+
addressType: "INTERNATIONAL";
|
567
|
+
district2: string;
|
568
|
+
cityOrTown?: string | null | undefined;
|
569
|
+
addressLine1?: string | null | undefined;
|
570
|
+
addressLine2?: string | null | undefined;
|
571
|
+
addressLine3?: string | null | undefined;
|
572
|
+
postcodeOrZip?: string | null | undefined;
|
405
573
|
} | {
|
406
574
|
type: string;
|
407
575
|
option: string;
|
408
576
|
filename: string;
|
409
577
|
originalFilename: string;
|
410
|
-
}[]> | undefined;
|
578
|
+
}[] | undefined> | undefined;
|
411
579
|
};
|
412
580
|
}>;
|
413
581
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
414
582
|
eventId: z.ZodString;
|
415
583
|
transactionId: z.ZodString;
|
416
|
-
incomplete: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
417
584
|
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
418
585
|
filename: z.ZodString;
|
419
586
|
originalFilename: z.ZodString;
|
@@ -443,6 +610,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
443
610
|
originalFilename: string;
|
444
611
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
445
612
|
country: z.ZodString;
|
613
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
446
614
|
province: z.ZodString;
|
447
615
|
district: z.ZodString;
|
448
616
|
}, {
|
@@ -455,6 +623,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
455
623
|
}>, "strip", z.ZodTypeAny, {
|
456
624
|
country: string;
|
457
625
|
district: string;
|
626
|
+
addressType: "DOMESTIC";
|
458
627
|
province: string;
|
459
628
|
urbanOrRural: "URBAN";
|
460
629
|
number?: string | null | undefined;
|
@@ -465,6 +634,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
465
634
|
}, {
|
466
635
|
country: string;
|
467
636
|
district: string;
|
637
|
+
addressType: "DOMESTIC";
|
468
638
|
province: string;
|
469
639
|
urbanOrRural: "URBAN";
|
470
640
|
number?: string | null | undefined;
|
@@ -474,6 +644,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
474
644
|
zipCode?: string | null | undefined;
|
475
645
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
476
646
|
country: z.ZodString;
|
647
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
477
648
|
province: z.ZodString;
|
478
649
|
district: z.ZodString;
|
479
650
|
}, {
|
@@ -482,15 +653,47 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
482
653
|
}>, "strip", z.ZodTypeAny, {
|
483
654
|
country: string;
|
484
655
|
district: string;
|
656
|
+
addressType: "DOMESTIC";
|
485
657
|
province: string;
|
486
658
|
urbanOrRural: "RURAL";
|
487
659
|
village?: string | null | undefined;
|
488
660
|
}, {
|
489
661
|
country: string;
|
490
662
|
district: string;
|
663
|
+
addressType: "DOMESTIC";
|
491
664
|
province: string;
|
492
665
|
urbanOrRural: "RURAL";
|
493
666
|
village?: string | null | undefined;
|
667
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
668
|
+
country: z.ZodString;
|
669
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
670
|
+
state: z.ZodString;
|
671
|
+
district2: z.ZodString;
|
672
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
673
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
674
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
675
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
676
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
677
|
+
}, "strip", z.ZodTypeAny, {
|
678
|
+
country: string;
|
679
|
+
state: string;
|
680
|
+
addressType: "INTERNATIONAL";
|
681
|
+
district2: string;
|
682
|
+
cityOrTown?: string | null | undefined;
|
683
|
+
addressLine1?: string | null | undefined;
|
684
|
+
addressLine2?: string | null | undefined;
|
685
|
+
addressLine3?: string | null | undefined;
|
686
|
+
postcodeOrZip?: string | null | undefined;
|
687
|
+
}, {
|
688
|
+
country: string;
|
689
|
+
state: string;
|
690
|
+
addressType: "INTERNATIONAL";
|
691
|
+
district2: string;
|
692
|
+
cityOrTown?: string | null | undefined;
|
693
|
+
addressLine1?: string | null | undefined;
|
694
|
+
addressLine2?: string | null | undefined;
|
695
|
+
addressLine3?: string | null | undefined;
|
696
|
+
postcodeOrZip?: string | null | undefined;
|
494
697
|
}>]>>;
|
495
698
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
496
699
|
filename: z.ZodString;
|
@@ -521,6 +724,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
521
724
|
originalFilename: string;
|
522
725
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
523
726
|
country: z.ZodString;
|
727
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
524
728
|
province: z.ZodString;
|
525
729
|
district: z.ZodString;
|
526
730
|
}, {
|
@@ -533,6 +737,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
533
737
|
}>, "strip", z.ZodTypeAny, {
|
534
738
|
country: string;
|
535
739
|
district: string;
|
740
|
+
addressType: "DOMESTIC";
|
536
741
|
province: string;
|
537
742
|
urbanOrRural: "URBAN";
|
538
743
|
number?: string | null | undefined;
|
@@ -543,6 +748,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
543
748
|
}, {
|
544
749
|
country: string;
|
545
750
|
district: string;
|
751
|
+
addressType: "DOMESTIC";
|
546
752
|
province: string;
|
547
753
|
urbanOrRural: "URBAN";
|
548
754
|
number?: string | null | undefined;
|
@@ -552,6 +758,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
552
758
|
zipCode?: string | null | undefined;
|
553
759
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
554
760
|
country: z.ZodString;
|
761
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
555
762
|
province: z.ZodString;
|
556
763
|
district: z.ZodString;
|
557
764
|
}, {
|
@@ -560,15 +767,47 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
560
767
|
}>, "strip", z.ZodTypeAny, {
|
561
768
|
country: string;
|
562
769
|
district: string;
|
770
|
+
addressType: "DOMESTIC";
|
563
771
|
province: string;
|
564
772
|
urbanOrRural: "RURAL";
|
565
773
|
village?: string | null | undefined;
|
566
774
|
}, {
|
567
775
|
country: string;
|
568
776
|
district: string;
|
777
|
+
addressType: "DOMESTIC";
|
569
778
|
province: string;
|
570
779
|
urbanOrRural: "RURAL";
|
571
780
|
village?: string | null | undefined;
|
781
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
782
|
+
country: z.ZodString;
|
783
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
784
|
+
state: z.ZodString;
|
785
|
+
district2: z.ZodString;
|
786
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
787
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
788
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
789
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
790
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
791
|
+
}, "strip", z.ZodTypeAny, {
|
792
|
+
country: string;
|
793
|
+
state: string;
|
794
|
+
addressType: "INTERNATIONAL";
|
795
|
+
district2: string;
|
796
|
+
cityOrTown?: string | null | undefined;
|
797
|
+
addressLine1?: string | null | undefined;
|
798
|
+
addressLine2?: string | null | undefined;
|
799
|
+
addressLine3?: string | null | undefined;
|
800
|
+
postcodeOrZip?: string | null | undefined;
|
801
|
+
}, {
|
802
|
+
country: string;
|
803
|
+
state: string;
|
804
|
+
addressType: "INTERNATIONAL";
|
805
|
+
district2: string;
|
806
|
+
cityOrTown?: string | null | undefined;
|
807
|
+
addressLine1?: string | null | undefined;
|
808
|
+
addressLine2?: string | null | undefined;
|
809
|
+
addressLine3?: string | null | undefined;
|
810
|
+
postcodeOrZip?: string | null | undefined;
|
572
811
|
}>]>>>;
|
573
812
|
}, {
|
574
813
|
type: z.ZodEnum<[ActionType, ...ActionType[]]>;
|
@@ -581,6 +820,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
581
820
|
} | {
|
582
821
|
country: string;
|
583
822
|
district: string;
|
823
|
+
addressType: "DOMESTIC";
|
584
824
|
province: string;
|
585
825
|
urbanOrRural: "URBAN";
|
586
826
|
number?: string | null | undefined;
|
@@ -591,18 +831,28 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
591
831
|
} | {
|
592
832
|
country: string;
|
593
833
|
district: string;
|
834
|
+
addressType: "DOMESTIC";
|
594
835
|
province: string;
|
595
836
|
urbanOrRural: "RURAL";
|
596
837
|
village?: string | null | undefined;
|
838
|
+
} | {
|
839
|
+
country: string;
|
840
|
+
state: string;
|
841
|
+
addressType: "INTERNATIONAL";
|
842
|
+
district2: string;
|
843
|
+
cityOrTown?: string | null | undefined;
|
844
|
+
addressLine1?: string | null | undefined;
|
845
|
+
addressLine2?: string | null | undefined;
|
846
|
+
addressLine3?: string | null | undefined;
|
847
|
+
postcodeOrZip?: string | null | undefined;
|
597
848
|
} | {
|
598
849
|
type: string;
|
599
850
|
option: string;
|
600
851
|
filename: string;
|
601
852
|
originalFilename: string;
|
602
|
-
}[]>;
|
853
|
+
}[] | undefined>;
|
603
854
|
eventId: string;
|
604
855
|
transactionId: string;
|
605
|
-
incomplete: boolean;
|
606
856
|
metadata?: Record<string, string | number | boolean | {
|
607
857
|
type: string;
|
608
858
|
filename: string;
|
@@ -610,6 +860,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
610
860
|
} | {
|
611
861
|
country: string;
|
612
862
|
district: string;
|
863
|
+
addressType: "DOMESTIC";
|
613
864
|
province: string;
|
614
865
|
urbanOrRural: "URBAN";
|
615
866
|
number?: string | null | undefined;
|
@@ -620,15 +871,26 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
620
871
|
} | {
|
621
872
|
country: string;
|
622
873
|
district: string;
|
874
|
+
addressType: "DOMESTIC";
|
623
875
|
province: string;
|
624
876
|
urbanOrRural: "RURAL";
|
625
877
|
village?: string | null | undefined;
|
878
|
+
} | {
|
879
|
+
country: string;
|
880
|
+
state: string;
|
881
|
+
addressType: "INTERNATIONAL";
|
882
|
+
district2: string;
|
883
|
+
cityOrTown?: string | null | undefined;
|
884
|
+
addressLine1?: string | null | undefined;
|
885
|
+
addressLine2?: string | null | undefined;
|
886
|
+
addressLine3?: string | null | undefined;
|
887
|
+
postcodeOrZip?: string | null | undefined;
|
626
888
|
} | {
|
627
889
|
type: string;
|
628
890
|
option: string;
|
629
891
|
filename: string;
|
630
892
|
originalFilename: string;
|
631
|
-
}[]> | undefined;
|
893
|
+
}[] | undefined> | undefined;
|
632
894
|
}, {
|
633
895
|
type: ActionType;
|
634
896
|
data: Record<string, string | number | boolean | {
|
@@ -638,6 +900,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
638
900
|
} | {
|
639
901
|
country: string;
|
640
902
|
district: string;
|
903
|
+
addressType: "DOMESTIC";
|
641
904
|
province: string;
|
642
905
|
urbanOrRural: "URBAN";
|
643
906
|
number?: string | null | undefined;
|
@@ -648,15 +911,26 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
648
911
|
} | {
|
649
912
|
country: string;
|
650
913
|
district: string;
|
914
|
+
addressType: "DOMESTIC";
|
651
915
|
province: string;
|
652
916
|
urbanOrRural: "RURAL";
|
653
917
|
village?: string | null | undefined;
|
918
|
+
} | {
|
919
|
+
country: string;
|
920
|
+
state: string;
|
921
|
+
addressType: "INTERNATIONAL";
|
922
|
+
district2: string;
|
923
|
+
cityOrTown?: string | null | undefined;
|
924
|
+
addressLine1?: string | null | undefined;
|
925
|
+
addressLine2?: string | null | undefined;
|
926
|
+
addressLine3?: string | null | undefined;
|
927
|
+
postcodeOrZip?: string | null | undefined;
|
654
928
|
} | {
|
655
929
|
type: string;
|
656
930
|
option: string;
|
657
931
|
filename: string;
|
658
932
|
originalFilename: string;
|
659
|
-
}[]>;
|
933
|
+
}[] | undefined>;
|
660
934
|
eventId: string;
|
661
935
|
transactionId: string;
|
662
936
|
metadata?: Record<string, string | number | boolean | {
|
@@ -666,6 +940,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
666
940
|
} | {
|
667
941
|
country: string;
|
668
942
|
district: string;
|
943
|
+
addressType: "DOMESTIC";
|
669
944
|
province: string;
|
670
945
|
urbanOrRural: "URBAN";
|
671
946
|
number?: string | null | undefined;
|
@@ -676,16 +951,26 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
676
951
|
} | {
|
677
952
|
country: string;
|
678
953
|
district: string;
|
954
|
+
addressType: "DOMESTIC";
|
679
955
|
province: string;
|
680
956
|
urbanOrRural: "RURAL";
|
681
957
|
village?: string | null | undefined;
|
958
|
+
} | {
|
959
|
+
country: string;
|
960
|
+
state: string;
|
961
|
+
addressType: "INTERNATIONAL";
|
962
|
+
district2: string;
|
963
|
+
cityOrTown?: string | null | undefined;
|
964
|
+
addressLine1?: string | null | undefined;
|
965
|
+
addressLine2?: string | null | undefined;
|
966
|
+
addressLine3?: string | null | undefined;
|
967
|
+
postcodeOrZip?: string | null | undefined;
|
682
968
|
} | {
|
683
969
|
type: string;
|
684
970
|
option: string;
|
685
971
|
filename: string;
|
686
972
|
originalFilename: string;
|
687
|
-
}[]> | undefined;
|
688
|
-
incomplete?: boolean | undefined;
|
973
|
+
}[] | undefined> | undefined;
|
689
974
|
}>;
|
690
975
|
export type Draft = z.infer<typeof Draft>;
|
691
976
|
export type DraftInput = z.infer<typeof DraftInput>;
|