@opencrvs/toolkit 1.8.0-rc.ff2e7b6 → 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 +6823 -479
- 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 +4708 -256
- package/dist/commons/events/ActionDocument.d.ts +2546 -71
- package/dist/commons/events/ActionInput.d.ts +4096 -188
- package/dist/commons/events/ActionType.d.ts +6 -0
- package/dist/commons/events/CompositeFieldValue.d.ts +152 -2
- package/dist/commons/events/Draft.d.ts +300 -12
- package/dist/commons/events/EventConfig.d.ts +1844 -188
- package/dist/commons/events/EventConfigInput.d.ts +2 -2
- package/dist/commons/events/EventDocument.d.ts +3239 -156
- package/dist/commons/events/FieldConfig.d.ts +292 -40
- package/dist/commons/events/FieldType.d.ts +2 -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/defineConfig.d.ts +308 -34
- package/dist/commons/events/test.utils.d.ts +161 -13
- package/dist/commons/events/utils.d.ts +229 -12
- package/dist/conditionals/index.js +17 -0
- package/dist/events/index.js +456 -95
- 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,15 +556,26 @@ 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<{
|
@@ -442,6 +610,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
442
610
|
originalFilename: string;
|
443
611
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
444
612
|
country: z.ZodString;
|
613
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
445
614
|
province: z.ZodString;
|
446
615
|
district: z.ZodString;
|
447
616
|
}, {
|
@@ -454,6 +623,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
454
623
|
}>, "strip", z.ZodTypeAny, {
|
455
624
|
country: string;
|
456
625
|
district: string;
|
626
|
+
addressType: "DOMESTIC";
|
457
627
|
province: string;
|
458
628
|
urbanOrRural: "URBAN";
|
459
629
|
number?: string | null | undefined;
|
@@ -464,6 +634,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
464
634
|
}, {
|
465
635
|
country: string;
|
466
636
|
district: string;
|
637
|
+
addressType: "DOMESTIC";
|
467
638
|
province: string;
|
468
639
|
urbanOrRural: "URBAN";
|
469
640
|
number?: string | null | undefined;
|
@@ -473,6 +644,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
473
644
|
zipCode?: string | null | undefined;
|
474
645
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
475
646
|
country: z.ZodString;
|
647
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
476
648
|
province: z.ZodString;
|
477
649
|
district: z.ZodString;
|
478
650
|
}, {
|
@@ -481,15 +653,47 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
481
653
|
}>, "strip", z.ZodTypeAny, {
|
482
654
|
country: string;
|
483
655
|
district: string;
|
656
|
+
addressType: "DOMESTIC";
|
484
657
|
province: string;
|
485
658
|
urbanOrRural: "RURAL";
|
486
659
|
village?: string | null | undefined;
|
487
660
|
}, {
|
488
661
|
country: string;
|
489
662
|
district: string;
|
663
|
+
addressType: "DOMESTIC";
|
490
664
|
province: string;
|
491
665
|
urbanOrRural: "RURAL";
|
492
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;
|
493
697
|
}>]>>;
|
494
698
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
495
699
|
filename: z.ZodString;
|
@@ -520,6 +724,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
520
724
|
originalFilename: string;
|
521
725
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
522
726
|
country: z.ZodString;
|
727
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
523
728
|
province: z.ZodString;
|
524
729
|
district: z.ZodString;
|
525
730
|
}, {
|
@@ -532,6 +737,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
532
737
|
}>, "strip", z.ZodTypeAny, {
|
533
738
|
country: string;
|
534
739
|
district: string;
|
740
|
+
addressType: "DOMESTIC";
|
535
741
|
province: string;
|
536
742
|
urbanOrRural: "URBAN";
|
537
743
|
number?: string | null | undefined;
|
@@ -542,6 +748,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
542
748
|
}, {
|
543
749
|
country: string;
|
544
750
|
district: string;
|
751
|
+
addressType: "DOMESTIC";
|
545
752
|
province: string;
|
546
753
|
urbanOrRural: "URBAN";
|
547
754
|
number?: string | null | undefined;
|
@@ -551,6 +758,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
551
758
|
zipCode?: string | null | undefined;
|
552
759
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
553
760
|
country: z.ZodString;
|
761
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
554
762
|
province: z.ZodString;
|
555
763
|
district: z.ZodString;
|
556
764
|
}, {
|
@@ -559,15 +767,47 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
559
767
|
}>, "strip", z.ZodTypeAny, {
|
560
768
|
country: string;
|
561
769
|
district: string;
|
770
|
+
addressType: "DOMESTIC";
|
562
771
|
province: string;
|
563
772
|
urbanOrRural: "RURAL";
|
564
773
|
village?: string | null | undefined;
|
565
774
|
}, {
|
566
775
|
country: string;
|
567
776
|
district: string;
|
777
|
+
addressType: "DOMESTIC";
|
568
778
|
province: string;
|
569
779
|
urbanOrRural: "RURAL";
|
570
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;
|
571
811
|
}>]>>>;
|
572
812
|
}, {
|
573
813
|
type: z.ZodEnum<[ActionType, ...ActionType[]]>;
|
@@ -580,6 +820,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
580
820
|
} | {
|
581
821
|
country: string;
|
582
822
|
district: string;
|
823
|
+
addressType: "DOMESTIC";
|
583
824
|
province: string;
|
584
825
|
urbanOrRural: "URBAN";
|
585
826
|
number?: string | null | undefined;
|
@@ -590,15 +831,26 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
590
831
|
} | {
|
591
832
|
country: string;
|
592
833
|
district: string;
|
834
|
+
addressType: "DOMESTIC";
|
593
835
|
province: string;
|
594
836
|
urbanOrRural: "RURAL";
|
595
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;
|
596
848
|
} | {
|
597
849
|
type: string;
|
598
850
|
option: string;
|
599
851
|
filename: string;
|
600
852
|
originalFilename: string;
|
601
|
-
}[]>;
|
853
|
+
}[] | undefined>;
|
602
854
|
eventId: string;
|
603
855
|
transactionId: string;
|
604
856
|
metadata?: Record<string, string | number | boolean | {
|
@@ -608,6 +860,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
608
860
|
} | {
|
609
861
|
country: string;
|
610
862
|
district: string;
|
863
|
+
addressType: "DOMESTIC";
|
611
864
|
province: string;
|
612
865
|
urbanOrRural: "URBAN";
|
613
866
|
number?: string | null | undefined;
|
@@ -618,15 +871,26 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
618
871
|
} | {
|
619
872
|
country: string;
|
620
873
|
district: string;
|
874
|
+
addressType: "DOMESTIC";
|
621
875
|
province: string;
|
622
876
|
urbanOrRural: "RURAL";
|
623
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;
|
624
888
|
} | {
|
625
889
|
type: string;
|
626
890
|
option: string;
|
627
891
|
filename: string;
|
628
892
|
originalFilename: string;
|
629
|
-
}[]> | undefined;
|
893
|
+
}[] | undefined> | undefined;
|
630
894
|
}, {
|
631
895
|
type: ActionType;
|
632
896
|
data: Record<string, string | number | boolean | {
|
@@ -636,6 +900,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
636
900
|
} | {
|
637
901
|
country: string;
|
638
902
|
district: string;
|
903
|
+
addressType: "DOMESTIC";
|
639
904
|
province: string;
|
640
905
|
urbanOrRural: "URBAN";
|
641
906
|
number?: string | null | undefined;
|
@@ -646,15 +911,26 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
646
911
|
} | {
|
647
912
|
country: string;
|
648
913
|
district: string;
|
914
|
+
addressType: "DOMESTIC";
|
649
915
|
province: string;
|
650
916
|
urbanOrRural: "RURAL";
|
651
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;
|
652
928
|
} | {
|
653
929
|
type: string;
|
654
930
|
option: string;
|
655
931
|
filename: string;
|
656
932
|
originalFilename: string;
|
657
|
-
}[]>;
|
933
|
+
}[] | undefined>;
|
658
934
|
eventId: string;
|
659
935
|
transactionId: string;
|
660
936
|
metadata?: Record<string, string | number | boolean | {
|
@@ -664,6 +940,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
664
940
|
} | {
|
665
941
|
country: string;
|
666
942
|
district: string;
|
943
|
+
addressType: "DOMESTIC";
|
667
944
|
province: string;
|
668
945
|
urbanOrRural: "URBAN";
|
669
946
|
number?: string | null | undefined;
|
@@ -674,15 +951,26 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
674
951
|
} | {
|
675
952
|
country: string;
|
676
953
|
district: string;
|
954
|
+
addressType: "DOMESTIC";
|
677
955
|
province: string;
|
678
956
|
urbanOrRural: "RURAL";
|
679
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;
|
680
968
|
} | {
|
681
969
|
type: string;
|
682
970
|
option: string;
|
683
971
|
filename: string;
|
684
972
|
originalFilename: string;
|
685
|
-
}[]> | undefined;
|
973
|
+
}[] | undefined> | undefined;
|
686
974
|
}>;
|
687
975
|
export type Draft = z.infer<typeof Draft>;
|
688
976
|
export type DraftInput = z.infer<typeof DraftInput>;
|