@opencrvs/toolkit 1.8.0-rc.f7e8fb5 → 1.8.0-rc.f876361
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/commons/api/router.d.ts +5260 -10679
- package/dist/commons/conditionals/conditionals.d.ts +17 -1
- 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 +1123 -2056
- package/dist/commons/events/ActionDocument.d.ts +9482 -312
- package/dist/commons/events/ActionInput.d.ts +4321 -359
- package/dist/commons/events/ActionType.d.ts +24 -11
- package/dist/commons/events/CompositeFieldValue.d.ts +152 -2
- package/dist/commons/events/Draft.d.ts +342 -46
- package/dist/commons/events/EventConfig.d.ts +551 -1206
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +3335 -424
- package/dist/commons/events/EventIndex.d.ts +6 -3
- package/dist/commons/events/EventMetadata.d.ts +3 -0
- package/dist/commons/events/FieldConfig.d.ts +366 -52
- 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 +633 -48
- package/dist/commons/events/PageConfig.d.ts +359 -0
- package/dist/commons/events/defineConfig.d.ts +91 -216
- package/dist/commons/events/index.d.ts +2 -1
- package/dist/commons/events/test.utils.d.ts +159 -140
- package/dist/commons/events/utils.d.ts +115 -82
- package/dist/conditionals/index.js +120 -15
- package/dist/events/index.js +1166 -671
- package/package.json +1 -1
@@ -1,5 +1,4 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
import { ActionType } from './ActionType';
|
3
2
|
export declare const Draft: z.ZodObject<{
|
4
3
|
id: z.ZodString;
|
5
4
|
eventId: z.ZodString;
|
@@ -9,7 +8,7 @@ export declare const Draft: z.ZodObject<{
|
|
9
8
|
id: z.ZodString;
|
10
9
|
createdAt: z.ZodString;
|
11
10
|
createdBy: z.ZodString;
|
12
|
-
|
11
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
13
12
|
filename: z.ZodString;
|
14
13
|
originalFilename: z.ZodString;
|
15
14
|
type: z.ZodString;
|
@@ -38,6 +37,7 @@ export declare const Draft: z.ZodObject<{
|
|
38
37
|
originalFilename: string;
|
39
38
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
40
39
|
country: z.ZodString;
|
40
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
41
41
|
province: z.ZodString;
|
42
42
|
district: z.ZodString;
|
43
43
|
}, {
|
@@ -50,6 +50,7 @@ export declare const Draft: z.ZodObject<{
|
|
50
50
|
}>, "strip", z.ZodTypeAny, {
|
51
51
|
country: string;
|
52
52
|
district: string;
|
53
|
+
addressType: "DOMESTIC";
|
53
54
|
province: string;
|
54
55
|
urbanOrRural: "URBAN";
|
55
56
|
number?: string | null | undefined;
|
@@ -60,6 +61,7 @@ export declare const Draft: z.ZodObject<{
|
|
60
61
|
}, {
|
61
62
|
country: string;
|
62
63
|
district: string;
|
64
|
+
addressType: "DOMESTIC";
|
63
65
|
province: string;
|
64
66
|
urbanOrRural: "URBAN";
|
65
67
|
number?: string | null | undefined;
|
@@ -69,6 +71,7 @@ export declare const Draft: z.ZodObject<{
|
|
69
71
|
zipCode?: string | null | undefined;
|
70
72
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
71
73
|
country: z.ZodString;
|
74
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
72
75
|
province: z.ZodString;
|
73
76
|
district: z.ZodString;
|
74
77
|
}, {
|
@@ -77,17 +80,49 @@ export declare const Draft: z.ZodObject<{
|
|
77
80
|
}>, "strip", z.ZodTypeAny, {
|
78
81
|
country: string;
|
79
82
|
district: string;
|
83
|
+
addressType: "DOMESTIC";
|
80
84
|
province: string;
|
81
85
|
urbanOrRural: "RURAL";
|
82
86
|
village?: string | null | undefined;
|
83
87
|
}, {
|
84
88
|
country: string;
|
85
89
|
district: string;
|
90
|
+
addressType: "DOMESTIC";
|
86
91
|
province: string;
|
87
92
|
urbanOrRural: "RURAL";
|
88
93
|
village?: string | null | undefined;
|
94
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
95
|
+
country: z.ZodString;
|
96
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
97
|
+
state: z.ZodString;
|
98
|
+
district2: z.ZodString;
|
99
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
100
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
101
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
102
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
103
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
105
|
+
country: string;
|
106
|
+
state: string;
|
107
|
+
addressType: "INTERNATIONAL";
|
108
|
+
district2: string;
|
109
|
+
cityOrTown?: string | null | undefined;
|
110
|
+
addressLine1?: string | null | undefined;
|
111
|
+
addressLine2?: string | null | undefined;
|
112
|
+
addressLine3?: string | null | undefined;
|
113
|
+
postcodeOrZip?: string | null | undefined;
|
114
|
+
}, {
|
115
|
+
country: string;
|
116
|
+
state: string;
|
117
|
+
addressType: "INTERNATIONAL";
|
118
|
+
district2: string;
|
119
|
+
cityOrTown?: string | null | undefined;
|
120
|
+
addressLine1?: string | null | undefined;
|
121
|
+
addressLine2?: string | null | undefined;
|
122
|
+
addressLine3?: string | null | undefined;
|
123
|
+
postcodeOrZip?: string | null | undefined;
|
89
124
|
}>]>>;
|
90
|
-
|
125
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
91
126
|
filename: z.ZodString;
|
92
127
|
originalFilename: z.ZodString;
|
93
128
|
type: z.ZodString;
|
@@ -116,6 +151,7 @@ export declare const Draft: z.ZodObject<{
|
|
116
151
|
originalFilename: string;
|
117
152
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
118
153
|
country: z.ZodString;
|
154
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
119
155
|
province: z.ZodString;
|
120
156
|
district: z.ZodString;
|
121
157
|
}, {
|
@@ -128,6 +164,7 @@ export declare const Draft: z.ZodObject<{
|
|
128
164
|
}>, "strip", z.ZodTypeAny, {
|
129
165
|
country: string;
|
130
166
|
district: string;
|
167
|
+
addressType: "DOMESTIC";
|
131
168
|
province: string;
|
132
169
|
urbanOrRural: "URBAN";
|
133
170
|
number?: string | null | undefined;
|
@@ -138,6 +175,7 @@ export declare const Draft: z.ZodObject<{
|
|
138
175
|
}, {
|
139
176
|
country: string;
|
140
177
|
district: string;
|
178
|
+
addressType: "DOMESTIC";
|
141
179
|
province: string;
|
142
180
|
urbanOrRural: "URBAN";
|
143
181
|
number?: string | null | undefined;
|
@@ -147,6 +185,7 @@ export declare const Draft: z.ZodObject<{
|
|
147
185
|
zipCode?: string | null | undefined;
|
148
186
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
149
187
|
country: z.ZodString;
|
188
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
150
189
|
province: z.ZodString;
|
151
190
|
district: z.ZodString;
|
152
191
|
}, {
|
@@ -155,28 +194,65 @@ export declare const Draft: z.ZodObject<{
|
|
155
194
|
}>, "strip", z.ZodTypeAny, {
|
156
195
|
country: string;
|
157
196
|
district: string;
|
197
|
+
addressType: "DOMESTIC";
|
158
198
|
province: string;
|
159
199
|
urbanOrRural: "RURAL";
|
160
200
|
village?: string | null | undefined;
|
161
201
|
}, {
|
162
202
|
country: string;
|
163
203
|
district: string;
|
204
|
+
addressType: "DOMESTIC";
|
164
205
|
province: string;
|
165
206
|
urbanOrRural: "RURAL";
|
166
207
|
village?: string | null | undefined;
|
208
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
209
|
+
country: z.ZodString;
|
210
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
211
|
+
state: z.ZodString;
|
212
|
+
district2: z.ZodString;
|
213
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
214
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
215
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
216
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
217
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
219
|
+
country: string;
|
220
|
+
state: string;
|
221
|
+
addressType: "INTERNATIONAL";
|
222
|
+
district2: string;
|
223
|
+
cityOrTown?: string | null | undefined;
|
224
|
+
addressLine1?: string | null | undefined;
|
225
|
+
addressLine2?: string | null | undefined;
|
226
|
+
addressLine3?: string | null | undefined;
|
227
|
+
postcodeOrZip?: string | null | undefined;
|
228
|
+
}, {
|
229
|
+
country: string;
|
230
|
+
state: string;
|
231
|
+
addressType: "INTERNATIONAL";
|
232
|
+
district2: string;
|
233
|
+
cityOrTown?: string | null | undefined;
|
234
|
+
addressLine1?: string | null | undefined;
|
235
|
+
addressLine2?: string | null | undefined;
|
236
|
+
addressLine3?: string | null | undefined;
|
237
|
+
postcodeOrZip?: string | null | undefined;
|
167
238
|
}>]>>>;
|
168
239
|
createdAtLocation: z.ZodString;
|
240
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
241
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
169
242
|
}, {
|
170
|
-
type: z.ZodEnum<[
|
171
|
-
}>, "id">, "strip", z.ZodTypeAny, {
|
172
|
-
type:
|
173
|
-
|
243
|
+
type: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
|
244
|
+
}>, "id" | "status">, "strip", z.ZodTypeAny, {
|
245
|
+
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
246
|
+
createdAt: string;
|
247
|
+
createdBy: string;
|
248
|
+
declaration: Record<string, string | number | boolean | {
|
174
249
|
type: string;
|
175
250
|
filename: string;
|
176
251
|
originalFilename: string;
|
177
252
|
} | {
|
178
253
|
country: string;
|
179
254
|
district: string;
|
255
|
+
addressType: "DOMESTIC";
|
180
256
|
province: string;
|
181
257
|
urbanOrRural: "URBAN";
|
182
258
|
number?: string | null | undefined;
|
@@ -187,25 +263,35 @@ export declare const Draft: z.ZodObject<{
|
|
187
263
|
} | {
|
188
264
|
country: string;
|
189
265
|
district: string;
|
266
|
+
addressType: "DOMESTIC";
|
190
267
|
province: string;
|
191
268
|
urbanOrRural: "RURAL";
|
192
269
|
village?: string | null | undefined;
|
270
|
+
} | {
|
271
|
+
country: string;
|
272
|
+
state: string;
|
273
|
+
addressType: "INTERNATIONAL";
|
274
|
+
district2: string;
|
275
|
+
cityOrTown?: string | null | undefined;
|
276
|
+
addressLine1?: string | null | undefined;
|
277
|
+
addressLine2?: string | null | undefined;
|
278
|
+
addressLine3?: string | null | undefined;
|
279
|
+
postcodeOrZip?: string | null | undefined;
|
193
280
|
} | {
|
194
281
|
type: string;
|
195
282
|
option: string;
|
196
283
|
filename: string;
|
197
284
|
originalFilename: string;
|
198
|
-
}[]>;
|
199
|
-
createdAt: string;
|
200
|
-
createdBy: string;
|
285
|
+
}[] | undefined>;
|
201
286
|
createdAtLocation: string;
|
202
|
-
|
287
|
+
annotation?: Record<string, string | number | boolean | {
|
203
288
|
type: string;
|
204
289
|
filename: string;
|
205
290
|
originalFilename: string;
|
206
291
|
} | {
|
207
292
|
country: string;
|
208
293
|
district: string;
|
294
|
+
addressType: "DOMESTIC";
|
209
295
|
province: string;
|
210
296
|
urbanOrRural: "URBAN";
|
211
297
|
number?: string | null | undefined;
|
@@ -216,24 +302,39 @@ export declare const Draft: z.ZodObject<{
|
|
216
302
|
} | {
|
217
303
|
country: string;
|
218
304
|
district: string;
|
305
|
+
addressType: "DOMESTIC";
|
219
306
|
province: string;
|
220
307
|
urbanOrRural: "RURAL";
|
221
308
|
village?: string | null | undefined;
|
309
|
+
} | {
|
310
|
+
country: string;
|
311
|
+
state: string;
|
312
|
+
addressType: "INTERNATIONAL";
|
313
|
+
district2: string;
|
314
|
+
cityOrTown?: string | null | undefined;
|
315
|
+
addressLine1?: string | null | undefined;
|
316
|
+
addressLine2?: string | null | undefined;
|
317
|
+
addressLine3?: string | null | undefined;
|
318
|
+
postcodeOrZip?: string | null | undefined;
|
222
319
|
} | {
|
223
320
|
type: string;
|
224
321
|
option: string;
|
225
322
|
filename: string;
|
226
323
|
originalFilename: string;
|
227
|
-
}[]> | undefined;
|
324
|
+
}[] | undefined> | undefined;
|
325
|
+
originalActionId?: string | undefined;
|
228
326
|
}, {
|
229
|
-
type:
|
230
|
-
|
327
|
+
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
328
|
+
createdAt: string;
|
329
|
+
createdBy: string;
|
330
|
+
declaration: Record<string, string | number | boolean | {
|
231
331
|
type: string;
|
232
332
|
filename: string;
|
233
333
|
originalFilename: string;
|
234
334
|
} | {
|
235
335
|
country: string;
|
236
336
|
district: string;
|
337
|
+
addressType: "DOMESTIC";
|
237
338
|
province: string;
|
238
339
|
urbanOrRural: "URBAN";
|
239
340
|
number?: string | null | undefined;
|
@@ -244,25 +345,35 @@ export declare const Draft: z.ZodObject<{
|
|
244
345
|
} | {
|
245
346
|
country: string;
|
246
347
|
district: string;
|
348
|
+
addressType: "DOMESTIC";
|
247
349
|
province: string;
|
248
350
|
urbanOrRural: "RURAL";
|
249
351
|
village?: string | null | undefined;
|
352
|
+
} | {
|
353
|
+
country: string;
|
354
|
+
state: string;
|
355
|
+
addressType: "INTERNATIONAL";
|
356
|
+
district2: string;
|
357
|
+
cityOrTown?: string | null | undefined;
|
358
|
+
addressLine1?: string | null | undefined;
|
359
|
+
addressLine2?: string | null | undefined;
|
360
|
+
addressLine3?: string | null | undefined;
|
361
|
+
postcodeOrZip?: string | null | undefined;
|
250
362
|
} | {
|
251
363
|
type: string;
|
252
364
|
option: string;
|
253
365
|
filename: string;
|
254
366
|
originalFilename: string;
|
255
|
-
}[]>;
|
256
|
-
createdAt: string;
|
257
|
-
createdBy: string;
|
367
|
+
}[] | undefined>;
|
258
368
|
createdAtLocation: string;
|
259
|
-
|
369
|
+
annotation?: Record<string, string | number | boolean | {
|
260
370
|
type: string;
|
261
371
|
filename: string;
|
262
372
|
originalFilename: string;
|
263
373
|
} | {
|
264
374
|
country: string;
|
265
375
|
district: string;
|
376
|
+
addressType: "DOMESTIC";
|
266
377
|
province: string;
|
267
378
|
urbanOrRural: "URBAN";
|
268
379
|
number?: string | null | undefined;
|
@@ -273,15 +384,27 @@ export declare const Draft: z.ZodObject<{
|
|
273
384
|
} | {
|
274
385
|
country: string;
|
275
386
|
district: string;
|
387
|
+
addressType: "DOMESTIC";
|
276
388
|
province: string;
|
277
389
|
urbanOrRural: "RURAL";
|
278
390
|
village?: string | null | undefined;
|
391
|
+
} | {
|
392
|
+
country: string;
|
393
|
+
state: string;
|
394
|
+
addressType: "INTERNATIONAL";
|
395
|
+
district2: string;
|
396
|
+
cityOrTown?: string | null | undefined;
|
397
|
+
addressLine1?: string | null | undefined;
|
398
|
+
addressLine2?: string | null | undefined;
|
399
|
+
addressLine3?: string | null | undefined;
|
400
|
+
postcodeOrZip?: string | null | undefined;
|
279
401
|
} | {
|
280
402
|
type: string;
|
281
403
|
option: string;
|
282
404
|
filename: string;
|
283
405
|
originalFilename: string;
|
284
|
-
}[]> | undefined;
|
406
|
+
}[] | undefined> | undefined;
|
407
|
+
originalActionId?: string | undefined;
|
285
408
|
}>;
|
286
409
|
}, "strip", z.ZodTypeAny, {
|
287
410
|
id: string;
|
@@ -289,14 +412,17 @@ export declare const Draft: z.ZodObject<{
|
|
289
412
|
eventId: string;
|
290
413
|
transactionId: string;
|
291
414
|
action: {
|
292
|
-
type:
|
293
|
-
|
415
|
+
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
416
|
+
createdAt: string;
|
417
|
+
createdBy: string;
|
418
|
+
declaration: Record<string, string | number | boolean | {
|
294
419
|
type: string;
|
295
420
|
filename: string;
|
296
421
|
originalFilename: string;
|
297
422
|
} | {
|
298
423
|
country: string;
|
299
424
|
district: string;
|
425
|
+
addressType: "DOMESTIC";
|
300
426
|
province: string;
|
301
427
|
urbanOrRural: "URBAN";
|
302
428
|
number?: string | null | undefined;
|
@@ -307,25 +433,35 @@ export declare const Draft: z.ZodObject<{
|
|
307
433
|
} | {
|
308
434
|
country: string;
|
309
435
|
district: string;
|
436
|
+
addressType: "DOMESTIC";
|
310
437
|
province: string;
|
311
438
|
urbanOrRural: "RURAL";
|
312
439
|
village?: string | null | undefined;
|
440
|
+
} | {
|
441
|
+
country: string;
|
442
|
+
state: string;
|
443
|
+
addressType: "INTERNATIONAL";
|
444
|
+
district2: string;
|
445
|
+
cityOrTown?: string | null | undefined;
|
446
|
+
addressLine1?: string | null | undefined;
|
447
|
+
addressLine2?: string | null | undefined;
|
448
|
+
addressLine3?: string | null | undefined;
|
449
|
+
postcodeOrZip?: string | null | undefined;
|
313
450
|
} | {
|
314
451
|
type: string;
|
315
452
|
option: string;
|
316
453
|
filename: string;
|
317
454
|
originalFilename: string;
|
318
|
-
}[]>;
|
319
|
-
createdAt: string;
|
320
|
-
createdBy: string;
|
455
|
+
}[] | undefined>;
|
321
456
|
createdAtLocation: string;
|
322
|
-
|
457
|
+
annotation?: Record<string, string | number | boolean | {
|
323
458
|
type: string;
|
324
459
|
filename: string;
|
325
460
|
originalFilename: string;
|
326
461
|
} | {
|
327
462
|
country: string;
|
328
463
|
district: string;
|
464
|
+
addressType: "DOMESTIC";
|
329
465
|
province: string;
|
330
466
|
urbanOrRural: "URBAN";
|
331
467
|
number?: string | null | undefined;
|
@@ -336,15 +472,27 @@ export declare const Draft: z.ZodObject<{
|
|
336
472
|
} | {
|
337
473
|
country: string;
|
338
474
|
district: string;
|
475
|
+
addressType: "DOMESTIC";
|
339
476
|
province: string;
|
340
477
|
urbanOrRural: "RURAL";
|
341
478
|
village?: string | null | undefined;
|
479
|
+
} | {
|
480
|
+
country: string;
|
481
|
+
state: string;
|
482
|
+
addressType: "INTERNATIONAL";
|
483
|
+
district2: string;
|
484
|
+
cityOrTown?: string | null | undefined;
|
485
|
+
addressLine1?: string | null | undefined;
|
486
|
+
addressLine2?: string | null | undefined;
|
487
|
+
addressLine3?: string | null | undefined;
|
488
|
+
postcodeOrZip?: string | null | undefined;
|
342
489
|
} | {
|
343
490
|
type: string;
|
344
491
|
option: string;
|
345
492
|
filename: string;
|
346
493
|
originalFilename: string;
|
347
|
-
}[]> | undefined;
|
494
|
+
}[] | undefined> | undefined;
|
495
|
+
originalActionId?: string | undefined;
|
348
496
|
};
|
349
497
|
}, {
|
350
498
|
id: string;
|
@@ -352,14 +500,17 @@ export declare const Draft: z.ZodObject<{
|
|
352
500
|
eventId: string;
|
353
501
|
transactionId: string;
|
354
502
|
action: {
|
355
|
-
type:
|
356
|
-
|
503
|
+
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
504
|
+
createdAt: string;
|
505
|
+
createdBy: string;
|
506
|
+
declaration: Record<string, string | number | boolean | {
|
357
507
|
type: string;
|
358
508
|
filename: string;
|
359
509
|
originalFilename: string;
|
360
510
|
} | {
|
361
511
|
country: string;
|
362
512
|
district: string;
|
513
|
+
addressType: "DOMESTIC";
|
363
514
|
province: string;
|
364
515
|
urbanOrRural: "URBAN";
|
365
516
|
number?: string | null | undefined;
|
@@ -370,25 +521,35 @@ export declare const Draft: z.ZodObject<{
|
|
370
521
|
} | {
|
371
522
|
country: string;
|
372
523
|
district: string;
|
524
|
+
addressType: "DOMESTIC";
|
373
525
|
province: string;
|
374
526
|
urbanOrRural: "RURAL";
|
375
527
|
village?: string | null | undefined;
|
528
|
+
} | {
|
529
|
+
country: string;
|
530
|
+
state: string;
|
531
|
+
addressType: "INTERNATIONAL";
|
532
|
+
district2: string;
|
533
|
+
cityOrTown?: string | null | undefined;
|
534
|
+
addressLine1?: string | null | undefined;
|
535
|
+
addressLine2?: string | null | undefined;
|
536
|
+
addressLine3?: string | null | undefined;
|
537
|
+
postcodeOrZip?: string | null | undefined;
|
376
538
|
} | {
|
377
539
|
type: string;
|
378
540
|
option: string;
|
379
541
|
filename: string;
|
380
542
|
originalFilename: string;
|
381
|
-
}[]>;
|
382
|
-
createdAt: string;
|
383
|
-
createdBy: string;
|
543
|
+
}[] | undefined>;
|
384
544
|
createdAtLocation: string;
|
385
|
-
|
545
|
+
annotation?: Record<string, string | number | boolean | {
|
386
546
|
type: string;
|
387
547
|
filename: string;
|
388
548
|
originalFilename: string;
|
389
549
|
} | {
|
390
550
|
country: string;
|
391
551
|
district: string;
|
552
|
+
addressType: "DOMESTIC";
|
392
553
|
province: string;
|
393
554
|
urbanOrRural: "URBAN";
|
394
555
|
number?: string | null | undefined;
|
@@ -399,21 +560,33 @@ export declare const Draft: z.ZodObject<{
|
|
399
560
|
} | {
|
400
561
|
country: string;
|
401
562
|
district: string;
|
563
|
+
addressType: "DOMESTIC";
|
402
564
|
province: string;
|
403
565
|
urbanOrRural: "RURAL";
|
404
566
|
village?: string | null | undefined;
|
567
|
+
} | {
|
568
|
+
country: string;
|
569
|
+
state: string;
|
570
|
+
addressType: "INTERNATIONAL";
|
571
|
+
district2: string;
|
572
|
+
cityOrTown?: string | null | undefined;
|
573
|
+
addressLine1?: string | null | undefined;
|
574
|
+
addressLine2?: string | null | undefined;
|
575
|
+
addressLine3?: string | null | undefined;
|
576
|
+
postcodeOrZip?: string | null | undefined;
|
405
577
|
} | {
|
406
578
|
type: string;
|
407
579
|
option: string;
|
408
580
|
filename: string;
|
409
581
|
originalFilename: string;
|
410
|
-
}[]> | undefined;
|
582
|
+
}[] | undefined> | undefined;
|
583
|
+
originalActionId?: string | undefined;
|
411
584
|
};
|
412
585
|
}>;
|
413
586
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
414
587
|
eventId: z.ZodString;
|
415
588
|
transactionId: z.ZodString;
|
416
|
-
|
589
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
417
590
|
filename: z.ZodString;
|
418
591
|
originalFilename: z.ZodString;
|
419
592
|
type: z.ZodString;
|
@@ -442,6 +615,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
442
615
|
originalFilename: string;
|
443
616
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
444
617
|
country: z.ZodString;
|
618
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
445
619
|
province: z.ZodString;
|
446
620
|
district: z.ZodString;
|
447
621
|
}, {
|
@@ -454,6 +628,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
454
628
|
}>, "strip", z.ZodTypeAny, {
|
455
629
|
country: string;
|
456
630
|
district: string;
|
631
|
+
addressType: "DOMESTIC";
|
457
632
|
province: string;
|
458
633
|
urbanOrRural: "URBAN";
|
459
634
|
number?: string | null | undefined;
|
@@ -464,6 +639,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
464
639
|
}, {
|
465
640
|
country: string;
|
466
641
|
district: string;
|
642
|
+
addressType: "DOMESTIC";
|
467
643
|
province: string;
|
468
644
|
urbanOrRural: "URBAN";
|
469
645
|
number?: string | null | undefined;
|
@@ -473,6 +649,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
473
649
|
zipCode?: string | null | undefined;
|
474
650
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
475
651
|
country: z.ZodString;
|
652
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
476
653
|
province: z.ZodString;
|
477
654
|
district: z.ZodString;
|
478
655
|
}, {
|
@@ -481,17 +658,49 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
481
658
|
}>, "strip", z.ZodTypeAny, {
|
482
659
|
country: string;
|
483
660
|
district: string;
|
661
|
+
addressType: "DOMESTIC";
|
484
662
|
province: string;
|
485
663
|
urbanOrRural: "RURAL";
|
486
664
|
village?: string | null | undefined;
|
487
665
|
}, {
|
488
666
|
country: string;
|
489
667
|
district: string;
|
668
|
+
addressType: "DOMESTIC";
|
490
669
|
province: string;
|
491
670
|
urbanOrRural: "RURAL";
|
492
671
|
village?: string | null | undefined;
|
672
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
673
|
+
country: z.ZodString;
|
674
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
675
|
+
state: z.ZodString;
|
676
|
+
district2: z.ZodString;
|
677
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
678
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
679
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
680
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
681
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
682
|
+
}, "strip", z.ZodTypeAny, {
|
683
|
+
country: string;
|
684
|
+
state: string;
|
685
|
+
addressType: "INTERNATIONAL";
|
686
|
+
district2: string;
|
687
|
+
cityOrTown?: string | null | undefined;
|
688
|
+
addressLine1?: string | null | undefined;
|
689
|
+
addressLine2?: string | null | undefined;
|
690
|
+
addressLine3?: string | null | undefined;
|
691
|
+
postcodeOrZip?: string | null | undefined;
|
692
|
+
}, {
|
693
|
+
country: string;
|
694
|
+
state: string;
|
695
|
+
addressType: "INTERNATIONAL";
|
696
|
+
district2: string;
|
697
|
+
cityOrTown?: string | null | undefined;
|
698
|
+
addressLine1?: string | null | undefined;
|
699
|
+
addressLine2?: string | null | undefined;
|
700
|
+
addressLine3?: string | null | undefined;
|
701
|
+
postcodeOrZip?: string | null | undefined;
|
493
702
|
}>]>>;
|
494
|
-
|
703
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
495
704
|
filename: z.ZodString;
|
496
705
|
originalFilename: z.ZodString;
|
497
706
|
type: z.ZodString;
|
@@ -520,6 +729,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
520
729
|
originalFilename: string;
|
521
730
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
522
731
|
country: z.ZodString;
|
732
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
523
733
|
province: z.ZodString;
|
524
734
|
district: z.ZodString;
|
525
735
|
}, {
|
@@ -532,6 +742,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
532
742
|
}>, "strip", z.ZodTypeAny, {
|
533
743
|
country: string;
|
534
744
|
district: string;
|
745
|
+
addressType: "DOMESTIC";
|
535
746
|
province: string;
|
536
747
|
urbanOrRural: "URBAN";
|
537
748
|
number?: string | null | undefined;
|
@@ -542,6 +753,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
542
753
|
}, {
|
543
754
|
country: string;
|
544
755
|
district: string;
|
756
|
+
addressType: "DOMESTIC";
|
545
757
|
province: string;
|
546
758
|
urbanOrRural: "URBAN";
|
547
759
|
number?: string | null | undefined;
|
@@ -551,6 +763,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
551
763
|
zipCode?: string | null | undefined;
|
552
764
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
553
765
|
country: z.ZodString;
|
766
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
554
767
|
province: z.ZodString;
|
555
768
|
district: z.ZodString;
|
556
769
|
}, {
|
@@ -559,27 +772,61 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
559
772
|
}>, "strip", z.ZodTypeAny, {
|
560
773
|
country: string;
|
561
774
|
district: string;
|
775
|
+
addressType: "DOMESTIC";
|
562
776
|
province: string;
|
563
777
|
urbanOrRural: "RURAL";
|
564
778
|
village?: string | null | undefined;
|
565
779
|
}, {
|
566
780
|
country: string;
|
567
781
|
district: string;
|
782
|
+
addressType: "DOMESTIC";
|
568
783
|
province: string;
|
569
784
|
urbanOrRural: "RURAL";
|
570
785
|
village?: string | null | undefined;
|
786
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
787
|
+
country: z.ZodString;
|
788
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
789
|
+
state: z.ZodString;
|
790
|
+
district2: z.ZodString;
|
791
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
792
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
793
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
794
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
795
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
796
|
+
}, "strip", z.ZodTypeAny, {
|
797
|
+
country: string;
|
798
|
+
state: string;
|
799
|
+
addressType: "INTERNATIONAL";
|
800
|
+
district2: string;
|
801
|
+
cityOrTown?: string | null | undefined;
|
802
|
+
addressLine1?: string | null | undefined;
|
803
|
+
addressLine2?: string | null | undefined;
|
804
|
+
addressLine3?: string | null | undefined;
|
805
|
+
postcodeOrZip?: string | null | undefined;
|
806
|
+
}, {
|
807
|
+
country: string;
|
808
|
+
state: string;
|
809
|
+
addressType: "INTERNATIONAL";
|
810
|
+
district2: string;
|
811
|
+
cityOrTown?: string | null | undefined;
|
812
|
+
addressLine1?: string | null | undefined;
|
813
|
+
addressLine2?: string | null | undefined;
|
814
|
+
addressLine3?: string | null | undefined;
|
815
|
+
postcodeOrZip?: string | null | undefined;
|
571
816
|
}>]>>>;
|
817
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
572
818
|
}, {
|
573
|
-
type: z.ZodEnum<[
|
819
|
+
type: z.ZodEnum<["DELETE", "CREATE", "NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "DETECT_DUPLICATE", "REJECT", "MARKED_AS_DUPLICATE", "ARCHIVE", "PRINT_CERTIFICATE", "REQUEST_CORRECTION", "REJECT_CORRECTION", "APPROVE_CORRECTION", "READ", "ASSIGN", "UNASSIGN"]>;
|
574
820
|
}>, "strip", z.ZodTypeAny, {
|
575
|
-
type:
|
576
|
-
|
821
|
+
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
822
|
+
declaration: Record<string, string | number | boolean | {
|
577
823
|
type: string;
|
578
824
|
filename: string;
|
579
825
|
originalFilename: string;
|
580
826
|
} | {
|
581
827
|
country: string;
|
582
828
|
district: string;
|
829
|
+
addressType: "DOMESTIC";
|
583
830
|
province: string;
|
584
831
|
urbanOrRural: "URBAN";
|
585
832
|
number?: string | null | undefined;
|
@@ -590,24 +837,36 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
590
837
|
} | {
|
591
838
|
country: string;
|
592
839
|
district: string;
|
840
|
+
addressType: "DOMESTIC";
|
593
841
|
province: string;
|
594
842
|
urbanOrRural: "RURAL";
|
595
843
|
village?: string | null | undefined;
|
844
|
+
} | {
|
845
|
+
country: string;
|
846
|
+
state: string;
|
847
|
+
addressType: "INTERNATIONAL";
|
848
|
+
district2: string;
|
849
|
+
cityOrTown?: string | null | undefined;
|
850
|
+
addressLine1?: string | null | undefined;
|
851
|
+
addressLine2?: string | null | undefined;
|
852
|
+
addressLine3?: string | null | undefined;
|
853
|
+
postcodeOrZip?: string | null | undefined;
|
596
854
|
} | {
|
597
855
|
type: string;
|
598
856
|
option: string;
|
599
857
|
filename: string;
|
600
858
|
originalFilename: string;
|
601
|
-
}[]>;
|
859
|
+
}[] | undefined>;
|
602
860
|
eventId: string;
|
603
861
|
transactionId: string;
|
604
|
-
|
862
|
+
annotation?: Record<string, string | number | boolean | {
|
605
863
|
type: string;
|
606
864
|
filename: string;
|
607
865
|
originalFilename: string;
|
608
866
|
} | {
|
609
867
|
country: string;
|
610
868
|
district: string;
|
869
|
+
addressType: "DOMESTIC";
|
611
870
|
province: string;
|
612
871
|
urbanOrRural: "URBAN";
|
613
872
|
number?: string | null | undefined;
|
@@ -618,24 +877,37 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
618
877
|
} | {
|
619
878
|
country: string;
|
620
879
|
district: string;
|
880
|
+
addressType: "DOMESTIC";
|
621
881
|
province: string;
|
622
882
|
urbanOrRural: "RURAL";
|
623
883
|
village?: string | null | undefined;
|
884
|
+
} | {
|
885
|
+
country: string;
|
886
|
+
state: string;
|
887
|
+
addressType: "INTERNATIONAL";
|
888
|
+
district2: string;
|
889
|
+
cityOrTown?: string | null | undefined;
|
890
|
+
addressLine1?: string | null | undefined;
|
891
|
+
addressLine2?: string | null | undefined;
|
892
|
+
addressLine3?: string | null | undefined;
|
893
|
+
postcodeOrZip?: string | null | undefined;
|
624
894
|
} | {
|
625
895
|
type: string;
|
626
896
|
option: string;
|
627
897
|
filename: string;
|
628
898
|
originalFilename: string;
|
629
|
-
}[]> | undefined;
|
899
|
+
}[] | undefined> | undefined;
|
900
|
+
originalActionId?: string | undefined;
|
630
901
|
}, {
|
631
|
-
type:
|
632
|
-
|
902
|
+
type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
|
903
|
+
declaration: Record<string, string | number | boolean | {
|
633
904
|
type: string;
|
634
905
|
filename: string;
|
635
906
|
originalFilename: string;
|
636
907
|
} | {
|
637
908
|
country: string;
|
638
909
|
district: string;
|
910
|
+
addressType: "DOMESTIC";
|
639
911
|
province: string;
|
640
912
|
urbanOrRural: "URBAN";
|
641
913
|
number?: string | null | undefined;
|
@@ -646,24 +918,36 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
646
918
|
} | {
|
647
919
|
country: string;
|
648
920
|
district: string;
|
921
|
+
addressType: "DOMESTIC";
|
649
922
|
province: string;
|
650
923
|
urbanOrRural: "RURAL";
|
651
924
|
village?: string | null | undefined;
|
925
|
+
} | {
|
926
|
+
country: string;
|
927
|
+
state: string;
|
928
|
+
addressType: "INTERNATIONAL";
|
929
|
+
district2: string;
|
930
|
+
cityOrTown?: string | null | undefined;
|
931
|
+
addressLine1?: string | null | undefined;
|
932
|
+
addressLine2?: string | null | undefined;
|
933
|
+
addressLine3?: string | null | undefined;
|
934
|
+
postcodeOrZip?: string | null | undefined;
|
652
935
|
} | {
|
653
936
|
type: string;
|
654
937
|
option: string;
|
655
938
|
filename: string;
|
656
939
|
originalFilename: string;
|
657
|
-
}[]>;
|
940
|
+
}[] | undefined>;
|
658
941
|
eventId: string;
|
659
942
|
transactionId: string;
|
660
|
-
|
943
|
+
annotation?: Record<string, string | number | boolean | {
|
661
944
|
type: string;
|
662
945
|
filename: string;
|
663
946
|
originalFilename: string;
|
664
947
|
} | {
|
665
948
|
country: string;
|
666
949
|
district: string;
|
950
|
+
addressType: "DOMESTIC";
|
667
951
|
province: string;
|
668
952
|
urbanOrRural: "URBAN";
|
669
953
|
number?: string | null | undefined;
|
@@ -674,15 +958,27 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
674
958
|
} | {
|
675
959
|
country: string;
|
676
960
|
district: string;
|
961
|
+
addressType: "DOMESTIC";
|
677
962
|
province: string;
|
678
963
|
urbanOrRural: "RURAL";
|
679
964
|
village?: string | null | undefined;
|
965
|
+
} | {
|
966
|
+
country: string;
|
967
|
+
state: string;
|
968
|
+
addressType: "INTERNATIONAL";
|
969
|
+
district2: string;
|
970
|
+
cityOrTown?: string | null | undefined;
|
971
|
+
addressLine1?: string | null | undefined;
|
972
|
+
addressLine2?: string | null | undefined;
|
973
|
+
addressLine3?: string | null | undefined;
|
974
|
+
postcodeOrZip?: string | null | undefined;
|
680
975
|
} | {
|
681
976
|
type: string;
|
682
977
|
option: string;
|
683
978
|
filename: string;
|
684
979
|
originalFilename: string;
|
685
|
-
}[]> | undefined;
|
980
|
+
}[] | undefined> | undefined;
|
981
|
+
originalActionId?: string | undefined;
|
686
982
|
}>;
|
687
983
|
export type Draft = z.infer<typeof Draft>;
|
688
984
|
export type DraftInput = z.infer<typeof DraftInput>;
|