@opencrvs/toolkit 1.8.0-rc.f5b8a8a → 1.8.0-rc.fbb7263
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 +2828 -2869
- package/dist/commons/conditionals/conditionals.d.ts +2 -2
- package/dist/commons/conditionals/validate.d.ts +6 -6
- package/dist/commons/events/ActionDocument.d.ts +1117 -1110
- package/dist/commons/events/ActionInput.d.ts +1664 -1742
- package/dist/commons/events/CompositeFieldValue.d.ts +264 -0
- package/dist/commons/events/Draft.d.ts +152 -155
- package/dist/commons/events/EventDocument.d.ts +1320 -1320
- package/dist/commons/events/EventIndex.d.ts +3 -3
- package/dist/commons/events/EventMetadata.d.ts +3 -3
- package/dist/commons/events/FieldConfig.d.ts +2 -0
- package/dist/commons/events/FieldTypeMapping.d.ts +122 -38
- package/dist/commons/events/FieldValue.d.ts +62 -65
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/test.utils.d.ts +72 -66
- package/dist/commons/events/utils.d.ts +19 -4
- package/dist/events/index.js +514 -427
- package/package.json +1 -1
@@ -9,7 +9,7 @@ export declare const Draft: z.ZodObject<{
|
|
9
9
|
id: z.ZodString;
|
10
10
|
createdAt: z.ZodString;
|
11
11
|
createdBy: z.ZodString;
|
12
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodObject<{
|
12
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
13
13
|
filename: z.ZodString;
|
14
14
|
originalFilename: z.ZodString;
|
15
15
|
type: z.ZodString;
|
@@ -36,58 +36,58 @@ export declare const Draft: z.ZodObject<{
|
|
36
36
|
option: string;
|
37
37
|
filename: string;
|
38
38
|
originalFilename: string;
|
39
|
-
}>, "many">, z.
|
39
|
+
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
40
40
|
country: z.ZodString;
|
41
41
|
province: z.ZodString;
|
42
42
|
district: z.ZodString;
|
43
43
|
}, {
|
44
44
|
urbanOrRural: z.ZodLiteral<"URBAN">;
|
45
|
-
town: z.ZodOptional<z.ZodString
|
46
|
-
residentialArea: z.ZodOptional<z.ZodString
|
47
|
-
street: z.ZodOptional<z.ZodString
|
48
|
-
number: z.ZodOptional<z.ZodString
|
49
|
-
zipCode: z.ZodOptional<z.ZodString
|
45
|
+
town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
46
|
+
residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
47
|
+
street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
48
|
+
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
49
|
+
zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
50
50
|
}>, "strip", z.ZodTypeAny, {
|
51
51
|
country: string;
|
52
52
|
district: string;
|
53
53
|
province: string;
|
54
54
|
urbanOrRural: "URBAN";
|
55
|
-
number?: string | undefined;
|
56
|
-
town?: string | undefined;
|
57
|
-
residentialArea?: string | undefined;
|
58
|
-
street?: string | undefined;
|
59
|
-
zipCode?: string | undefined;
|
55
|
+
number?: string | null | undefined;
|
56
|
+
town?: string | null | undefined;
|
57
|
+
residentialArea?: string | null | undefined;
|
58
|
+
street?: string | null | undefined;
|
59
|
+
zipCode?: string | null | undefined;
|
60
60
|
}, {
|
61
61
|
country: string;
|
62
62
|
district: string;
|
63
63
|
province: string;
|
64
64
|
urbanOrRural: "URBAN";
|
65
|
-
number?: string | undefined;
|
66
|
-
town?: string | undefined;
|
67
|
-
residentialArea?: string | undefined;
|
68
|
-
street?: string | undefined;
|
69
|
-
zipCode?: string | undefined;
|
65
|
+
number?: string | null | undefined;
|
66
|
+
town?: string | null | undefined;
|
67
|
+
residentialArea?: string | null | undefined;
|
68
|
+
street?: string | null | undefined;
|
69
|
+
zipCode?: string | null | undefined;
|
70
70
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
71
71
|
country: z.ZodString;
|
72
72
|
province: z.ZodString;
|
73
73
|
district: z.ZodString;
|
74
74
|
}, {
|
75
75
|
urbanOrRural: z.ZodLiteral<"RURAL">;
|
76
|
-
village: z.ZodOptional<z.ZodString
|
76
|
+
village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
77
77
|
}>, "strip", z.ZodTypeAny, {
|
78
78
|
country: string;
|
79
79
|
district: string;
|
80
80
|
province: string;
|
81
81
|
urbanOrRural: "RURAL";
|
82
|
-
village?: string | undefined;
|
82
|
+
village?: string | null | undefined;
|
83
83
|
}, {
|
84
84
|
country: string;
|
85
85
|
district: string;
|
86
86
|
province: string;
|
87
87
|
urbanOrRural: "RURAL";
|
88
|
-
village?: string | undefined;
|
88
|
+
village?: string | null | undefined;
|
89
89
|
}>]>>;
|
90
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodObject<{
|
90
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
91
91
|
filename: z.ZodString;
|
92
92
|
originalFilename: z.ZodString;
|
93
93
|
type: z.ZodString;
|
@@ -114,56 +114,56 @@ export declare const Draft: z.ZodObject<{
|
|
114
114
|
option: string;
|
115
115
|
filename: string;
|
116
116
|
originalFilename: string;
|
117
|
-
}>, "many">, z.
|
117
|
+
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
118
118
|
country: z.ZodString;
|
119
119
|
province: z.ZodString;
|
120
120
|
district: z.ZodString;
|
121
121
|
}, {
|
122
122
|
urbanOrRural: z.ZodLiteral<"URBAN">;
|
123
|
-
town: z.ZodOptional<z.ZodString
|
124
|
-
residentialArea: z.ZodOptional<z.ZodString
|
125
|
-
street: z.ZodOptional<z.ZodString
|
126
|
-
number: z.ZodOptional<z.ZodString
|
127
|
-
zipCode: z.ZodOptional<z.ZodString
|
123
|
+
town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
124
|
+
residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
125
|
+
street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
126
|
+
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
127
|
+
zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
128
128
|
}>, "strip", z.ZodTypeAny, {
|
129
129
|
country: string;
|
130
130
|
district: string;
|
131
131
|
province: string;
|
132
132
|
urbanOrRural: "URBAN";
|
133
|
-
number?: string | undefined;
|
134
|
-
town?: string | undefined;
|
135
|
-
residentialArea?: string | undefined;
|
136
|
-
street?: string | undefined;
|
137
|
-
zipCode?: string | undefined;
|
133
|
+
number?: string | null | undefined;
|
134
|
+
town?: string | null | undefined;
|
135
|
+
residentialArea?: string | null | undefined;
|
136
|
+
street?: string | null | undefined;
|
137
|
+
zipCode?: string | null | undefined;
|
138
138
|
}, {
|
139
139
|
country: string;
|
140
140
|
district: string;
|
141
141
|
province: string;
|
142
142
|
urbanOrRural: "URBAN";
|
143
|
-
number?: string | undefined;
|
144
|
-
town?: string | undefined;
|
145
|
-
residentialArea?: string | undefined;
|
146
|
-
street?: string | undefined;
|
147
|
-
zipCode?: string | undefined;
|
143
|
+
number?: string | null | undefined;
|
144
|
+
town?: string | null | undefined;
|
145
|
+
residentialArea?: string | null | undefined;
|
146
|
+
street?: string | null | undefined;
|
147
|
+
zipCode?: string | null | undefined;
|
148
148
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
149
149
|
country: z.ZodString;
|
150
150
|
province: z.ZodString;
|
151
151
|
district: z.ZodString;
|
152
152
|
}, {
|
153
153
|
urbanOrRural: z.ZodLiteral<"RURAL">;
|
154
|
-
village: z.ZodOptional<z.ZodString
|
154
|
+
village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
155
155
|
}>, "strip", z.ZodTypeAny, {
|
156
156
|
country: string;
|
157
157
|
district: string;
|
158
158
|
province: string;
|
159
159
|
urbanOrRural: "RURAL";
|
160
|
-
village?: string | undefined;
|
160
|
+
village?: string | null | undefined;
|
161
161
|
}, {
|
162
162
|
country: string;
|
163
163
|
district: string;
|
164
164
|
province: string;
|
165
165
|
urbanOrRural: "RURAL";
|
166
|
-
village?: string | undefined;
|
166
|
+
village?: string | null | undefined;
|
167
167
|
}>]>>>;
|
168
168
|
createdAtLocation: z.ZodString;
|
169
169
|
}, {
|
@@ -179,17 +179,17 @@ export declare const Draft: z.ZodObject<{
|
|
179
179
|
district: string;
|
180
180
|
province: string;
|
181
181
|
urbanOrRural: "URBAN";
|
182
|
-
number?: string | undefined;
|
183
|
-
town?: string | undefined;
|
184
|
-
residentialArea?: string | undefined;
|
185
|
-
street?: string | undefined;
|
186
|
-
zipCode?: string | undefined;
|
182
|
+
number?: string | null | undefined;
|
183
|
+
town?: string | null | undefined;
|
184
|
+
residentialArea?: string | null | undefined;
|
185
|
+
street?: string | null | undefined;
|
186
|
+
zipCode?: string | null | undefined;
|
187
187
|
} | {
|
188
188
|
country: string;
|
189
189
|
district: string;
|
190
190
|
province: string;
|
191
191
|
urbanOrRural: "RURAL";
|
192
|
-
village?: string | undefined;
|
192
|
+
village?: string | null | undefined;
|
193
193
|
} | {
|
194
194
|
type: string;
|
195
195
|
option: string;
|
@@ -208,17 +208,17 @@ export declare const Draft: z.ZodObject<{
|
|
208
208
|
district: string;
|
209
209
|
province: string;
|
210
210
|
urbanOrRural: "URBAN";
|
211
|
-
number?: string | undefined;
|
212
|
-
town?: string | undefined;
|
213
|
-
residentialArea?: string | undefined;
|
214
|
-
street?: string | undefined;
|
215
|
-
zipCode?: string | undefined;
|
211
|
+
number?: string | null | undefined;
|
212
|
+
town?: string | null | undefined;
|
213
|
+
residentialArea?: string | null | undefined;
|
214
|
+
street?: string | null | undefined;
|
215
|
+
zipCode?: string | null | undefined;
|
216
216
|
} | {
|
217
217
|
country: string;
|
218
218
|
district: string;
|
219
219
|
province: string;
|
220
220
|
urbanOrRural: "RURAL";
|
221
|
-
village?: string | undefined;
|
221
|
+
village?: string | null | undefined;
|
222
222
|
} | {
|
223
223
|
type: string;
|
224
224
|
option: string;
|
@@ -236,17 +236,17 @@ export declare const Draft: z.ZodObject<{
|
|
236
236
|
district: string;
|
237
237
|
province: string;
|
238
238
|
urbanOrRural: "URBAN";
|
239
|
-
number?: string | undefined;
|
240
|
-
town?: string | undefined;
|
241
|
-
residentialArea?: string | undefined;
|
242
|
-
street?: string | undefined;
|
243
|
-
zipCode?: string | undefined;
|
239
|
+
number?: string | null | undefined;
|
240
|
+
town?: string | null | undefined;
|
241
|
+
residentialArea?: string | null | undefined;
|
242
|
+
street?: string | null | undefined;
|
243
|
+
zipCode?: string | null | undefined;
|
244
244
|
} | {
|
245
245
|
country: string;
|
246
246
|
district: string;
|
247
247
|
province: string;
|
248
248
|
urbanOrRural: "RURAL";
|
249
|
-
village?: string | undefined;
|
249
|
+
village?: string | null | undefined;
|
250
250
|
} | {
|
251
251
|
type: string;
|
252
252
|
option: string;
|
@@ -265,17 +265,17 @@ export declare const Draft: z.ZodObject<{
|
|
265
265
|
district: string;
|
266
266
|
province: string;
|
267
267
|
urbanOrRural: "URBAN";
|
268
|
-
number?: string | undefined;
|
269
|
-
town?: string | undefined;
|
270
|
-
residentialArea?: string | undefined;
|
271
|
-
street?: string | undefined;
|
272
|
-
zipCode?: string | undefined;
|
268
|
+
number?: string | null | undefined;
|
269
|
+
town?: string | null | undefined;
|
270
|
+
residentialArea?: string | null | undefined;
|
271
|
+
street?: string | null | undefined;
|
272
|
+
zipCode?: string | null | undefined;
|
273
273
|
} | {
|
274
274
|
country: string;
|
275
275
|
district: string;
|
276
276
|
province: string;
|
277
277
|
urbanOrRural: "RURAL";
|
278
|
-
village?: string | undefined;
|
278
|
+
village?: string | null | undefined;
|
279
279
|
} | {
|
280
280
|
type: string;
|
281
281
|
option: string;
|
@@ -299,17 +299,17 @@ export declare const Draft: z.ZodObject<{
|
|
299
299
|
district: string;
|
300
300
|
province: string;
|
301
301
|
urbanOrRural: "URBAN";
|
302
|
-
number?: string | undefined;
|
303
|
-
town?: string | undefined;
|
304
|
-
residentialArea?: string | undefined;
|
305
|
-
street?: string | undefined;
|
306
|
-
zipCode?: string | undefined;
|
302
|
+
number?: string | null | undefined;
|
303
|
+
town?: string | null | undefined;
|
304
|
+
residentialArea?: string | null | undefined;
|
305
|
+
street?: string | null | undefined;
|
306
|
+
zipCode?: string | null | undefined;
|
307
307
|
} | {
|
308
308
|
country: string;
|
309
309
|
district: string;
|
310
310
|
province: string;
|
311
311
|
urbanOrRural: "RURAL";
|
312
|
-
village?: string | undefined;
|
312
|
+
village?: string | null | undefined;
|
313
313
|
} | {
|
314
314
|
type: string;
|
315
315
|
option: string;
|
@@ -328,17 +328,17 @@ export declare const Draft: z.ZodObject<{
|
|
328
328
|
district: string;
|
329
329
|
province: string;
|
330
330
|
urbanOrRural: "URBAN";
|
331
|
-
number?: string | undefined;
|
332
|
-
town?: string | undefined;
|
333
|
-
residentialArea?: string | undefined;
|
334
|
-
street?: string | undefined;
|
335
|
-
zipCode?: string | undefined;
|
331
|
+
number?: string | null | undefined;
|
332
|
+
town?: string | null | undefined;
|
333
|
+
residentialArea?: string | null | undefined;
|
334
|
+
street?: string | null | undefined;
|
335
|
+
zipCode?: string | null | undefined;
|
336
336
|
} | {
|
337
337
|
country: string;
|
338
338
|
district: string;
|
339
339
|
province: string;
|
340
340
|
urbanOrRural: "RURAL";
|
341
|
-
village?: string | undefined;
|
341
|
+
village?: string | null | undefined;
|
342
342
|
} | {
|
343
343
|
type: string;
|
344
344
|
option: string;
|
@@ -362,17 +362,17 @@ export declare const Draft: z.ZodObject<{
|
|
362
362
|
district: string;
|
363
363
|
province: string;
|
364
364
|
urbanOrRural: "URBAN";
|
365
|
-
number?: string | undefined;
|
366
|
-
town?: string | undefined;
|
367
|
-
residentialArea?: string | undefined;
|
368
|
-
street?: string | undefined;
|
369
|
-
zipCode?: string | undefined;
|
365
|
+
number?: string | null | undefined;
|
366
|
+
town?: string | null | undefined;
|
367
|
+
residentialArea?: string | null | undefined;
|
368
|
+
street?: string | null | undefined;
|
369
|
+
zipCode?: string | null | undefined;
|
370
370
|
} | {
|
371
371
|
country: string;
|
372
372
|
district: string;
|
373
373
|
province: string;
|
374
374
|
urbanOrRural: "RURAL";
|
375
|
-
village?: string | undefined;
|
375
|
+
village?: string | null | undefined;
|
376
376
|
} | {
|
377
377
|
type: string;
|
378
378
|
option: string;
|
@@ -391,17 +391,17 @@ export declare const Draft: z.ZodObject<{
|
|
391
391
|
district: string;
|
392
392
|
province: string;
|
393
393
|
urbanOrRural: "URBAN";
|
394
|
-
number?: string | undefined;
|
395
|
-
town?: string | undefined;
|
396
|
-
residentialArea?: string | undefined;
|
397
|
-
street?: string | undefined;
|
398
|
-
zipCode?: string | undefined;
|
394
|
+
number?: string | null | undefined;
|
395
|
+
town?: string | null | undefined;
|
396
|
+
residentialArea?: string | null | undefined;
|
397
|
+
street?: string | null | undefined;
|
398
|
+
zipCode?: string | null | undefined;
|
399
399
|
} | {
|
400
400
|
country: string;
|
401
401
|
district: string;
|
402
402
|
province: string;
|
403
403
|
urbanOrRural: "RURAL";
|
404
|
-
village?: string | undefined;
|
404
|
+
village?: string | null | undefined;
|
405
405
|
} | {
|
406
406
|
type: string;
|
407
407
|
option: string;
|
@@ -413,8 +413,7 @@ export declare const Draft: z.ZodObject<{
|
|
413
413
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
414
414
|
eventId: z.ZodString;
|
415
415
|
transactionId: z.ZodString;
|
416
|
-
|
417
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodObject<{
|
416
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
418
417
|
filename: z.ZodString;
|
419
418
|
originalFilename: z.ZodString;
|
420
419
|
type: z.ZodString;
|
@@ -441,58 +440,58 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
441
440
|
option: string;
|
442
441
|
filename: string;
|
443
442
|
originalFilename: string;
|
444
|
-
}>, "many">, z.
|
443
|
+
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
445
444
|
country: z.ZodString;
|
446
445
|
province: z.ZodString;
|
447
446
|
district: z.ZodString;
|
448
447
|
}, {
|
449
448
|
urbanOrRural: z.ZodLiteral<"URBAN">;
|
450
|
-
town: z.ZodOptional<z.ZodString
|
451
|
-
residentialArea: z.ZodOptional<z.ZodString
|
452
|
-
street: z.ZodOptional<z.ZodString
|
453
|
-
number: z.ZodOptional<z.ZodString
|
454
|
-
zipCode: z.ZodOptional<z.ZodString
|
449
|
+
town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
450
|
+
residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
451
|
+
street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
452
|
+
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
453
|
+
zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
455
454
|
}>, "strip", z.ZodTypeAny, {
|
456
455
|
country: string;
|
457
456
|
district: string;
|
458
457
|
province: string;
|
459
458
|
urbanOrRural: "URBAN";
|
460
|
-
number?: string | undefined;
|
461
|
-
town?: string | undefined;
|
462
|
-
residentialArea?: string | undefined;
|
463
|
-
street?: string | undefined;
|
464
|
-
zipCode?: string | undefined;
|
459
|
+
number?: string | null | undefined;
|
460
|
+
town?: string | null | undefined;
|
461
|
+
residentialArea?: string | null | undefined;
|
462
|
+
street?: string | null | undefined;
|
463
|
+
zipCode?: string | null | undefined;
|
465
464
|
}, {
|
466
465
|
country: string;
|
467
466
|
district: string;
|
468
467
|
province: string;
|
469
468
|
urbanOrRural: "URBAN";
|
470
|
-
number?: string | undefined;
|
471
|
-
town?: string | undefined;
|
472
|
-
residentialArea?: string | undefined;
|
473
|
-
street?: string | undefined;
|
474
|
-
zipCode?: string | undefined;
|
469
|
+
number?: string | null | undefined;
|
470
|
+
town?: string | null | undefined;
|
471
|
+
residentialArea?: string | null | undefined;
|
472
|
+
street?: string | null | undefined;
|
473
|
+
zipCode?: string | null | undefined;
|
475
474
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
476
475
|
country: z.ZodString;
|
477
476
|
province: z.ZodString;
|
478
477
|
district: z.ZodString;
|
479
478
|
}, {
|
480
479
|
urbanOrRural: z.ZodLiteral<"RURAL">;
|
481
|
-
village: z.ZodOptional<z.ZodString
|
480
|
+
village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
482
481
|
}>, "strip", z.ZodTypeAny, {
|
483
482
|
country: string;
|
484
483
|
district: string;
|
485
484
|
province: string;
|
486
485
|
urbanOrRural: "RURAL";
|
487
|
-
village?: string | undefined;
|
486
|
+
village?: string | null | undefined;
|
488
487
|
}, {
|
489
488
|
country: string;
|
490
489
|
district: string;
|
491
490
|
province: string;
|
492
491
|
urbanOrRural: "RURAL";
|
493
|
-
village?: string | undefined;
|
492
|
+
village?: string | null | undefined;
|
494
493
|
}>]>>;
|
495
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodObject<{
|
494
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
496
495
|
filename: z.ZodString;
|
497
496
|
originalFilename: z.ZodString;
|
498
497
|
type: z.ZodString;
|
@@ -519,56 +518,56 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
519
518
|
option: string;
|
520
519
|
filename: string;
|
521
520
|
originalFilename: string;
|
522
|
-
}>, "many">, z.
|
521
|
+
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
523
522
|
country: z.ZodString;
|
524
523
|
province: z.ZodString;
|
525
524
|
district: z.ZodString;
|
526
525
|
}, {
|
527
526
|
urbanOrRural: z.ZodLiteral<"URBAN">;
|
528
|
-
town: z.ZodOptional<z.ZodString
|
529
|
-
residentialArea: z.ZodOptional<z.ZodString
|
530
|
-
street: z.ZodOptional<z.ZodString
|
531
|
-
number: z.ZodOptional<z.ZodString
|
532
|
-
zipCode: z.ZodOptional<z.ZodString
|
527
|
+
town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
528
|
+
residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
529
|
+
street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
530
|
+
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
531
|
+
zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
533
532
|
}>, "strip", z.ZodTypeAny, {
|
534
533
|
country: string;
|
535
534
|
district: string;
|
536
535
|
province: string;
|
537
536
|
urbanOrRural: "URBAN";
|
538
|
-
number?: string | undefined;
|
539
|
-
town?: string | undefined;
|
540
|
-
residentialArea?: string | undefined;
|
541
|
-
street?: string | undefined;
|
542
|
-
zipCode?: string | undefined;
|
537
|
+
number?: string | null | undefined;
|
538
|
+
town?: string | null | undefined;
|
539
|
+
residentialArea?: string | null | undefined;
|
540
|
+
street?: string | null | undefined;
|
541
|
+
zipCode?: string | null | undefined;
|
543
542
|
}, {
|
544
543
|
country: string;
|
545
544
|
district: string;
|
546
545
|
province: string;
|
547
546
|
urbanOrRural: "URBAN";
|
548
|
-
number?: string | undefined;
|
549
|
-
town?: string | undefined;
|
550
|
-
residentialArea?: string | undefined;
|
551
|
-
street?: string | undefined;
|
552
|
-
zipCode?: string | undefined;
|
547
|
+
number?: string | null | undefined;
|
548
|
+
town?: string | null | undefined;
|
549
|
+
residentialArea?: string | null | undefined;
|
550
|
+
street?: string | null | undefined;
|
551
|
+
zipCode?: string | null | undefined;
|
553
552
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
554
553
|
country: z.ZodString;
|
555
554
|
province: z.ZodString;
|
556
555
|
district: z.ZodString;
|
557
556
|
}, {
|
558
557
|
urbanOrRural: z.ZodLiteral<"RURAL">;
|
559
|
-
village: z.ZodOptional<z.ZodString
|
558
|
+
village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
560
559
|
}>, "strip", z.ZodTypeAny, {
|
561
560
|
country: string;
|
562
561
|
district: string;
|
563
562
|
province: string;
|
564
563
|
urbanOrRural: "RURAL";
|
565
|
-
village?: string | undefined;
|
564
|
+
village?: string | null | undefined;
|
566
565
|
}, {
|
567
566
|
country: string;
|
568
567
|
district: string;
|
569
568
|
province: string;
|
570
569
|
urbanOrRural: "RURAL";
|
571
|
-
village?: string | undefined;
|
570
|
+
village?: string | null | undefined;
|
572
571
|
}>]>>>;
|
573
572
|
}, {
|
574
573
|
type: z.ZodEnum<[ActionType, ...ActionType[]]>;
|
@@ -583,17 +582,17 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
583
582
|
district: string;
|
584
583
|
province: string;
|
585
584
|
urbanOrRural: "URBAN";
|
586
|
-
number?: string | undefined;
|
587
|
-
town?: string | undefined;
|
588
|
-
residentialArea?: string | undefined;
|
589
|
-
street?: string | undefined;
|
590
|
-
zipCode?: string | undefined;
|
585
|
+
number?: string | null | undefined;
|
586
|
+
town?: string | null | undefined;
|
587
|
+
residentialArea?: string | null | undefined;
|
588
|
+
street?: string | null | undefined;
|
589
|
+
zipCode?: string | null | undefined;
|
591
590
|
} | {
|
592
591
|
country: string;
|
593
592
|
district: string;
|
594
593
|
province: string;
|
595
594
|
urbanOrRural: "RURAL";
|
596
|
-
village?: string | undefined;
|
595
|
+
village?: string | null | undefined;
|
597
596
|
} | {
|
598
597
|
type: string;
|
599
598
|
option: string;
|
@@ -602,7 +601,6 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
602
601
|
}[]>;
|
603
602
|
eventId: string;
|
604
603
|
transactionId: string;
|
605
|
-
incomplete: boolean;
|
606
604
|
metadata?: Record<string, string | number | boolean | {
|
607
605
|
type: string;
|
608
606
|
filename: string;
|
@@ -612,17 +610,17 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
612
610
|
district: string;
|
613
611
|
province: string;
|
614
612
|
urbanOrRural: "URBAN";
|
615
|
-
number?: string | undefined;
|
616
|
-
town?: string | undefined;
|
617
|
-
residentialArea?: string | undefined;
|
618
|
-
street?: string | undefined;
|
619
|
-
zipCode?: string | undefined;
|
613
|
+
number?: string | null | undefined;
|
614
|
+
town?: string | null | undefined;
|
615
|
+
residentialArea?: string | null | undefined;
|
616
|
+
street?: string | null | undefined;
|
617
|
+
zipCode?: string | null | undefined;
|
620
618
|
} | {
|
621
619
|
country: string;
|
622
620
|
district: string;
|
623
621
|
province: string;
|
624
622
|
urbanOrRural: "RURAL";
|
625
|
-
village?: string | undefined;
|
623
|
+
village?: string | null | undefined;
|
626
624
|
} | {
|
627
625
|
type: string;
|
628
626
|
option: string;
|
@@ -640,17 +638,17 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
640
638
|
district: string;
|
641
639
|
province: string;
|
642
640
|
urbanOrRural: "URBAN";
|
643
|
-
number?: string | undefined;
|
644
|
-
town?: string | undefined;
|
645
|
-
residentialArea?: string | undefined;
|
646
|
-
street?: string | undefined;
|
647
|
-
zipCode?: string | undefined;
|
641
|
+
number?: string | null | undefined;
|
642
|
+
town?: string | null | undefined;
|
643
|
+
residentialArea?: string | null | undefined;
|
644
|
+
street?: string | null | undefined;
|
645
|
+
zipCode?: string | null | undefined;
|
648
646
|
} | {
|
649
647
|
country: string;
|
650
648
|
district: string;
|
651
649
|
province: string;
|
652
650
|
urbanOrRural: "RURAL";
|
653
|
-
village?: string | undefined;
|
651
|
+
village?: string | null | undefined;
|
654
652
|
} | {
|
655
653
|
type: string;
|
656
654
|
option: string;
|
@@ -668,24 +666,23 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
668
666
|
district: string;
|
669
667
|
province: string;
|
670
668
|
urbanOrRural: "URBAN";
|
671
|
-
number?: string | undefined;
|
672
|
-
town?: string | undefined;
|
673
|
-
residentialArea?: string | undefined;
|
674
|
-
street?: string | undefined;
|
675
|
-
zipCode?: string | undefined;
|
669
|
+
number?: string | null | undefined;
|
670
|
+
town?: string | null | undefined;
|
671
|
+
residentialArea?: string | null | undefined;
|
672
|
+
street?: string | null | undefined;
|
673
|
+
zipCode?: string | null | undefined;
|
676
674
|
} | {
|
677
675
|
country: string;
|
678
676
|
district: string;
|
679
677
|
province: string;
|
680
678
|
urbanOrRural: "RURAL";
|
681
|
-
village?: string | undefined;
|
679
|
+
village?: string | null | undefined;
|
682
680
|
} | {
|
683
681
|
type: string;
|
684
682
|
option: string;
|
685
683
|
filename: string;
|
686
684
|
originalFilename: string;
|
687
685
|
}[]> | undefined;
|
688
|
-
incomplete?: boolean | undefined;
|
689
686
|
}>;
|
690
687
|
export type Draft = z.infer<typeof Draft>;
|
691
688
|
export type DraftInput = z.infer<typeof DraftInput>;
|