@opencrvs/toolkit 1.8.0-rc.ffe8c17 → 1.8.1-rc.a372970
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 +6644 -9555
- package/dist/commons/conditionals/conditionals.d.ts +26 -3
- package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
- package/dist/commons/conditionals/validate.d.ts +14 -17
- package/dist/commons/events/ActionConfig.d.ts +1008 -3209
- package/dist/commons/events/ActionDocument.d.ts +9488 -312
- package/dist/commons/events/ActionInput.d.ts +5329 -472
- package/dist/commons/events/ActionType.d.ts +26 -11
- package/dist/commons/events/CompositeFieldValue.d.ts +152 -2
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +351 -48
- package/dist/commons/events/EventConfig.d.ts +639 -2862
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +3340 -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 +383 -104
- package/dist/commons/events/FieldTypeMapping.d.ts +104 -207
- package/dist/commons/events/FieldValue.d.ts +71 -76
- package/dist/commons/events/FormConfig.d.ts +527 -279
- package/dist/commons/events/PageConfig.d.ts +335 -0
- package/dist/commons/events/TemplateConfig.d.ts +5 -5
- package/dist/commons/events/defineConfig.d.ts +40 -417
- package/dist/commons/events/index.d.ts +2 -1
- package/dist/commons/events/test.utils.d.ts +140 -213
- package/dist/commons/events/utils.d.ts +126 -156
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +166 -81
- package/dist/events/index.js +1287 -795
- package/dist/scopes/index.d.ts +70 -1
- package/dist/scopes/index.js +130 -0
- 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,66 @@ 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<[
|
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"]>;
|
171
244
|
}>, "id">, "strip", z.ZodTypeAny, {
|
172
|
-
type:
|
173
|
-
|
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
|
+
status: "Rejected" | "Requested" | "Accepted";
|
247
|
+
createdAt: string;
|
248
|
+
createdBy: string;
|
249
|
+
declaration: Record<string, string | number | boolean | {
|
174
250
|
type: string;
|
175
251
|
filename: string;
|
176
252
|
originalFilename: string;
|
177
253
|
} | {
|
178
254
|
country: string;
|
179
255
|
district: string;
|
256
|
+
addressType: "DOMESTIC";
|
180
257
|
province: string;
|
181
258
|
urbanOrRural: "URBAN";
|
182
259
|
number?: string | null | undefined;
|
@@ -187,25 +264,35 @@ export declare const Draft: z.ZodObject<{
|
|
187
264
|
} | {
|
188
265
|
country: string;
|
189
266
|
district: string;
|
267
|
+
addressType: "DOMESTIC";
|
190
268
|
province: string;
|
191
269
|
urbanOrRural: "RURAL";
|
192
270
|
village?: string | null | undefined;
|
271
|
+
} | {
|
272
|
+
country: string;
|
273
|
+
state: string;
|
274
|
+
addressType: "INTERNATIONAL";
|
275
|
+
district2: string;
|
276
|
+
cityOrTown?: string | null | undefined;
|
277
|
+
addressLine1?: string | null | undefined;
|
278
|
+
addressLine2?: string | null | undefined;
|
279
|
+
addressLine3?: string | null | undefined;
|
280
|
+
postcodeOrZip?: string | null | undefined;
|
193
281
|
} | {
|
194
282
|
type: string;
|
195
283
|
option: string;
|
196
284
|
filename: string;
|
197
285
|
originalFilename: string;
|
198
|
-
}[]>;
|
199
|
-
createdAt: string;
|
200
|
-
createdBy: string;
|
286
|
+
}[] | undefined>;
|
201
287
|
createdAtLocation: string;
|
202
|
-
|
288
|
+
annotation?: Record<string, string | number | boolean | {
|
203
289
|
type: string;
|
204
290
|
filename: string;
|
205
291
|
originalFilename: string;
|
206
292
|
} | {
|
207
293
|
country: string;
|
208
294
|
district: string;
|
295
|
+
addressType: "DOMESTIC";
|
209
296
|
province: string;
|
210
297
|
urbanOrRural: "URBAN";
|
211
298
|
number?: string | null | undefined;
|
@@ -216,24 +303,40 @@ export declare const Draft: z.ZodObject<{
|
|
216
303
|
} | {
|
217
304
|
country: string;
|
218
305
|
district: string;
|
306
|
+
addressType: "DOMESTIC";
|
219
307
|
province: string;
|
220
308
|
urbanOrRural: "RURAL";
|
221
309
|
village?: string | null | undefined;
|
310
|
+
} | {
|
311
|
+
country: string;
|
312
|
+
state: string;
|
313
|
+
addressType: "INTERNATIONAL";
|
314
|
+
district2: string;
|
315
|
+
cityOrTown?: string | null | undefined;
|
316
|
+
addressLine1?: string | null | undefined;
|
317
|
+
addressLine2?: string | null | undefined;
|
318
|
+
addressLine3?: string | null | undefined;
|
319
|
+
postcodeOrZip?: string | null | undefined;
|
222
320
|
} | {
|
223
321
|
type: string;
|
224
322
|
option: string;
|
225
323
|
filename: string;
|
226
324
|
originalFilename: string;
|
227
|
-
}[]> | undefined;
|
325
|
+
}[] | undefined> | undefined;
|
326
|
+
originalActionId?: string | undefined;
|
228
327
|
}, {
|
229
|
-
type:
|
230
|
-
|
328
|
+
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";
|
329
|
+
status: "Rejected" | "Requested" | "Accepted";
|
330
|
+
createdAt: string;
|
331
|
+
createdBy: string;
|
332
|
+
declaration: Record<string, string | number | boolean | {
|
231
333
|
type: string;
|
232
334
|
filename: string;
|
233
335
|
originalFilename: string;
|
234
336
|
} | {
|
235
337
|
country: string;
|
236
338
|
district: string;
|
339
|
+
addressType: "DOMESTIC";
|
237
340
|
province: string;
|
238
341
|
urbanOrRural: "URBAN";
|
239
342
|
number?: string | null | undefined;
|
@@ -244,25 +347,35 @@ export declare const Draft: z.ZodObject<{
|
|
244
347
|
} | {
|
245
348
|
country: string;
|
246
349
|
district: string;
|
350
|
+
addressType: "DOMESTIC";
|
247
351
|
province: string;
|
248
352
|
urbanOrRural: "RURAL";
|
249
353
|
village?: string | null | undefined;
|
354
|
+
} | {
|
355
|
+
country: string;
|
356
|
+
state: string;
|
357
|
+
addressType: "INTERNATIONAL";
|
358
|
+
district2: string;
|
359
|
+
cityOrTown?: string | null | undefined;
|
360
|
+
addressLine1?: string | null | undefined;
|
361
|
+
addressLine2?: string | null | undefined;
|
362
|
+
addressLine3?: string | null | undefined;
|
363
|
+
postcodeOrZip?: string | null | undefined;
|
250
364
|
} | {
|
251
365
|
type: string;
|
252
366
|
option: string;
|
253
367
|
filename: string;
|
254
368
|
originalFilename: string;
|
255
|
-
}[]>;
|
256
|
-
createdAt: string;
|
257
|
-
createdBy: string;
|
369
|
+
}[] | undefined>;
|
258
370
|
createdAtLocation: string;
|
259
|
-
|
371
|
+
annotation?: Record<string, string | number | boolean | {
|
260
372
|
type: string;
|
261
373
|
filename: string;
|
262
374
|
originalFilename: string;
|
263
375
|
} | {
|
264
376
|
country: string;
|
265
377
|
district: string;
|
378
|
+
addressType: "DOMESTIC";
|
266
379
|
province: string;
|
267
380
|
urbanOrRural: "URBAN";
|
268
381
|
number?: string | null | undefined;
|
@@ -273,15 +386,27 @@ export declare const Draft: z.ZodObject<{
|
|
273
386
|
} | {
|
274
387
|
country: string;
|
275
388
|
district: string;
|
389
|
+
addressType: "DOMESTIC";
|
276
390
|
province: string;
|
277
391
|
urbanOrRural: "RURAL";
|
278
392
|
village?: string | null | undefined;
|
393
|
+
} | {
|
394
|
+
country: string;
|
395
|
+
state: string;
|
396
|
+
addressType: "INTERNATIONAL";
|
397
|
+
district2: string;
|
398
|
+
cityOrTown?: string | null | undefined;
|
399
|
+
addressLine1?: string | null | undefined;
|
400
|
+
addressLine2?: string | null | undefined;
|
401
|
+
addressLine3?: string | null | undefined;
|
402
|
+
postcodeOrZip?: string | null | undefined;
|
279
403
|
} | {
|
280
404
|
type: string;
|
281
405
|
option: string;
|
282
406
|
filename: string;
|
283
407
|
originalFilename: string;
|
284
|
-
}[]> | undefined;
|
408
|
+
}[] | undefined> | undefined;
|
409
|
+
originalActionId?: string | undefined;
|
285
410
|
}>;
|
286
411
|
}, "strip", z.ZodTypeAny, {
|
287
412
|
id: string;
|
@@ -289,14 +414,18 @@ export declare const Draft: z.ZodObject<{
|
|
289
414
|
eventId: string;
|
290
415
|
transactionId: string;
|
291
416
|
action: {
|
292
|
-
type:
|
293
|
-
|
417
|
+
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";
|
418
|
+
status: "Rejected" | "Requested" | "Accepted";
|
419
|
+
createdAt: string;
|
420
|
+
createdBy: string;
|
421
|
+
declaration: Record<string, string | number | boolean | {
|
294
422
|
type: string;
|
295
423
|
filename: string;
|
296
424
|
originalFilename: string;
|
297
425
|
} | {
|
298
426
|
country: string;
|
299
427
|
district: string;
|
428
|
+
addressType: "DOMESTIC";
|
300
429
|
province: string;
|
301
430
|
urbanOrRural: "URBAN";
|
302
431
|
number?: string | null | undefined;
|
@@ -307,25 +436,35 @@ export declare const Draft: z.ZodObject<{
|
|
307
436
|
} | {
|
308
437
|
country: string;
|
309
438
|
district: string;
|
439
|
+
addressType: "DOMESTIC";
|
310
440
|
province: string;
|
311
441
|
urbanOrRural: "RURAL";
|
312
442
|
village?: string | null | undefined;
|
443
|
+
} | {
|
444
|
+
country: string;
|
445
|
+
state: string;
|
446
|
+
addressType: "INTERNATIONAL";
|
447
|
+
district2: string;
|
448
|
+
cityOrTown?: string | null | undefined;
|
449
|
+
addressLine1?: string | null | undefined;
|
450
|
+
addressLine2?: string | null | undefined;
|
451
|
+
addressLine3?: string | null | undefined;
|
452
|
+
postcodeOrZip?: string | null | undefined;
|
313
453
|
} | {
|
314
454
|
type: string;
|
315
455
|
option: string;
|
316
456
|
filename: string;
|
317
457
|
originalFilename: string;
|
318
|
-
}[]>;
|
319
|
-
createdAt: string;
|
320
|
-
createdBy: string;
|
458
|
+
}[] | undefined>;
|
321
459
|
createdAtLocation: string;
|
322
|
-
|
460
|
+
annotation?: Record<string, string | number | boolean | {
|
323
461
|
type: string;
|
324
462
|
filename: string;
|
325
463
|
originalFilename: string;
|
326
464
|
} | {
|
327
465
|
country: string;
|
328
466
|
district: string;
|
467
|
+
addressType: "DOMESTIC";
|
329
468
|
province: string;
|
330
469
|
urbanOrRural: "URBAN";
|
331
470
|
number?: string | null | undefined;
|
@@ -336,15 +475,27 @@ export declare const Draft: z.ZodObject<{
|
|
336
475
|
} | {
|
337
476
|
country: string;
|
338
477
|
district: string;
|
478
|
+
addressType: "DOMESTIC";
|
339
479
|
province: string;
|
340
480
|
urbanOrRural: "RURAL";
|
341
481
|
village?: string | null | undefined;
|
482
|
+
} | {
|
483
|
+
country: string;
|
484
|
+
state: string;
|
485
|
+
addressType: "INTERNATIONAL";
|
486
|
+
district2: string;
|
487
|
+
cityOrTown?: string | null | undefined;
|
488
|
+
addressLine1?: string | null | undefined;
|
489
|
+
addressLine2?: string | null | undefined;
|
490
|
+
addressLine3?: string | null | undefined;
|
491
|
+
postcodeOrZip?: string | null | undefined;
|
342
492
|
} | {
|
343
493
|
type: string;
|
344
494
|
option: string;
|
345
495
|
filename: string;
|
346
496
|
originalFilename: string;
|
347
|
-
}[]> | undefined;
|
497
|
+
}[] | undefined> | undefined;
|
498
|
+
originalActionId?: string | undefined;
|
348
499
|
};
|
349
500
|
}, {
|
350
501
|
id: string;
|
@@ -352,14 +503,18 @@ export declare const Draft: z.ZodObject<{
|
|
352
503
|
eventId: string;
|
353
504
|
transactionId: string;
|
354
505
|
action: {
|
355
|
-
type:
|
356
|
-
|
506
|
+
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";
|
507
|
+
status: "Rejected" | "Requested" | "Accepted";
|
508
|
+
createdAt: string;
|
509
|
+
createdBy: string;
|
510
|
+
declaration: Record<string, string | number | boolean | {
|
357
511
|
type: string;
|
358
512
|
filename: string;
|
359
513
|
originalFilename: string;
|
360
514
|
} | {
|
361
515
|
country: string;
|
362
516
|
district: string;
|
517
|
+
addressType: "DOMESTIC";
|
363
518
|
province: string;
|
364
519
|
urbanOrRural: "URBAN";
|
365
520
|
number?: string | null | undefined;
|
@@ -370,25 +525,35 @@ export declare const Draft: z.ZodObject<{
|
|
370
525
|
} | {
|
371
526
|
country: string;
|
372
527
|
district: string;
|
528
|
+
addressType: "DOMESTIC";
|
373
529
|
province: string;
|
374
530
|
urbanOrRural: "RURAL";
|
375
531
|
village?: string | null | undefined;
|
532
|
+
} | {
|
533
|
+
country: string;
|
534
|
+
state: string;
|
535
|
+
addressType: "INTERNATIONAL";
|
536
|
+
district2: string;
|
537
|
+
cityOrTown?: string | null | undefined;
|
538
|
+
addressLine1?: string | null | undefined;
|
539
|
+
addressLine2?: string | null | undefined;
|
540
|
+
addressLine3?: string | null | undefined;
|
541
|
+
postcodeOrZip?: string | null | undefined;
|
376
542
|
} | {
|
377
543
|
type: string;
|
378
544
|
option: string;
|
379
545
|
filename: string;
|
380
546
|
originalFilename: string;
|
381
|
-
}[]>;
|
382
|
-
createdAt: string;
|
383
|
-
createdBy: string;
|
547
|
+
}[] | undefined>;
|
384
548
|
createdAtLocation: string;
|
385
|
-
|
549
|
+
annotation?: Record<string, string | number | boolean | {
|
386
550
|
type: string;
|
387
551
|
filename: string;
|
388
552
|
originalFilename: string;
|
389
553
|
} | {
|
390
554
|
country: string;
|
391
555
|
district: string;
|
556
|
+
addressType: "DOMESTIC";
|
392
557
|
province: string;
|
393
558
|
urbanOrRural: "URBAN";
|
394
559
|
number?: string | null | undefined;
|
@@ -399,21 +564,33 @@ export declare const Draft: z.ZodObject<{
|
|
399
564
|
} | {
|
400
565
|
country: string;
|
401
566
|
district: string;
|
567
|
+
addressType: "DOMESTIC";
|
402
568
|
province: string;
|
403
569
|
urbanOrRural: "RURAL";
|
404
570
|
village?: string | null | undefined;
|
571
|
+
} | {
|
572
|
+
country: string;
|
573
|
+
state: string;
|
574
|
+
addressType: "INTERNATIONAL";
|
575
|
+
district2: string;
|
576
|
+
cityOrTown?: string | null | undefined;
|
577
|
+
addressLine1?: string | null | undefined;
|
578
|
+
addressLine2?: string | null | undefined;
|
579
|
+
addressLine3?: string | null | undefined;
|
580
|
+
postcodeOrZip?: string | null | undefined;
|
405
581
|
} | {
|
406
582
|
type: string;
|
407
583
|
option: string;
|
408
584
|
filename: string;
|
409
585
|
originalFilename: string;
|
410
|
-
}[]> | undefined;
|
586
|
+
}[] | undefined> | undefined;
|
587
|
+
originalActionId?: string | undefined;
|
411
588
|
};
|
412
589
|
}>;
|
413
590
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
414
591
|
eventId: z.ZodString;
|
415
592
|
transactionId: z.ZodString;
|
416
|
-
|
593
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
417
594
|
filename: z.ZodString;
|
418
595
|
originalFilename: z.ZodString;
|
419
596
|
type: z.ZodString;
|
@@ -442,6 +619,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
442
619
|
originalFilename: string;
|
443
620
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
444
621
|
country: z.ZodString;
|
622
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
445
623
|
province: z.ZodString;
|
446
624
|
district: z.ZodString;
|
447
625
|
}, {
|
@@ -454,6 +632,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
454
632
|
}>, "strip", z.ZodTypeAny, {
|
455
633
|
country: string;
|
456
634
|
district: string;
|
635
|
+
addressType: "DOMESTIC";
|
457
636
|
province: string;
|
458
637
|
urbanOrRural: "URBAN";
|
459
638
|
number?: string | null | undefined;
|
@@ -464,6 +643,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
464
643
|
}, {
|
465
644
|
country: string;
|
466
645
|
district: string;
|
646
|
+
addressType: "DOMESTIC";
|
467
647
|
province: string;
|
468
648
|
urbanOrRural: "URBAN";
|
469
649
|
number?: string | null | undefined;
|
@@ -473,6 +653,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
473
653
|
zipCode?: string | null | undefined;
|
474
654
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
475
655
|
country: z.ZodString;
|
656
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
476
657
|
province: z.ZodString;
|
477
658
|
district: z.ZodString;
|
478
659
|
}, {
|
@@ -481,17 +662,49 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
481
662
|
}>, "strip", z.ZodTypeAny, {
|
482
663
|
country: string;
|
483
664
|
district: string;
|
665
|
+
addressType: "DOMESTIC";
|
484
666
|
province: string;
|
485
667
|
urbanOrRural: "RURAL";
|
486
668
|
village?: string | null | undefined;
|
487
669
|
}, {
|
488
670
|
country: string;
|
489
671
|
district: string;
|
672
|
+
addressType: "DOMESTIC";
|
490
673
|
province: string;
|
491
674
|
urbanOrRural: "RURAL";
|
492
675
|
village?: string | null | undefined;
|
493
|
-
}
|
494
|
-
|
676
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
677
|
+
country: z.ZodString;
|
678
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
679
|
+
state: z.ZodString;
|
680
|
+
district2: z.ZodString;
|
681
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
682
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
683
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
684
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
685
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
686
|
+
}, "strip", z.ZodTypeAny, {
|
687
|
+
country: string;
|
688
|
+
state: string;
|
689
|
+
addressType: "INTERNATIONAL";
|
690
|
+
district2: string;
|
691
|
+
cityOrTown?: string | null | undefined;
|
692
|
+
addressLine1?: string | null | undefined;
|
693
|
+
addressLine2?: string | null | undefined;
|
694
|
+
addressLine3?: string | null | undefined;
|
695
|
+
postcodeOrZip?: string | null | undefined;
|
696
|
+
}, {
|
697
|
+
country: string;
|
698
|
+
state: string;
|
699
|
+
addressType: "INTERNATIONAL";
|
700
|
+
district2: string;
|
701
|
+
cityOrTown?: string | null | undefined;
|
702
|
+
addressLine1?: string | null | undefined;
|
703
|
+
addressLine2?: string | null | undefined;
|
704
|
+
addressLine3?: string | null | undefined;
|
705
|
+
postcodeOrZip?: string | null | undefined;
|
706
|
+
}>]>>>;
|
707
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
495
708
|
filename: z.ZodString;
|
496
709
|
originalFilename: z.ZodString;
|
497
710
|
type: z.ZodString;
|
@@ -520,6 +733,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
520
733
|
originalFilename: string;
|
521
734
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
522
735
|
country: z.ZodString;
|
736
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
523
737
|
province: z.ZodString;
|
524
738
|
district: z.ZodString;
|
525
739
|
}, {
|
@@ -532,6 +746,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
532
746
|
}>, "strip", z.ZodTypeAny, {
|
533
747
|
country: string;
|
534
748
|
district: string;
|
749
|
+
addressType: "DOMESTIC";
|
535
750
|
province: string;
|
536
751
|
urbanOrRural: "URBAN";
|
537
752
|
number?: string | null | undefined;
|
@@ -542,6 +757,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
542
757
|
}, {
|
543
758
|
country: string;
|
544
759
|
district: string;
|
760
|
+
addressType: "DOMESTIC";
|
545
761
|
province: string;
|
546
762
|
urbanOrRural: "URBAN";
|
547
763
|
number?: string | null | undefined;
|
@@ -551,6 +767,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
551
767
|
zipCode?: string | null | undefined;
|
552
768
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
553
769
|
country: z.ZodString;
|
770
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
554
771
|
province: z.ZodString;
|
555
772
|
district: z.ZodString;
|
556
773
|
}, {
|
@@ -559,27 +776,62 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
559
776
|
}>, "strip", z.ZodTypeAny, {
|
560
777
|
country: string;
|
561
778
|
district: string;
|
779
|
+
addressType: "DOMESTIC";
|
562
780
|
province: string;
|
563
781
|
urbanOrRural: "RURAL";
|
564
782
|
village?: string | null | undefined;
|
565
783
|
}, {
|
566
784
|
country: string;
|
567
785
|
district: string;
|
786
|
+
addressType: "DOMESTIC";
|
568
787
|
province: string;
|
569
788
|
urbanOrRural: "RURAL";
|
570
789
|
village?: string | null | undefined;
|
790
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
791
|
+
country: z.ZodString;
|
792
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
793
|
+
state: z.ZodString;
|
794
|
+
district2: z.ZodString;
|
795
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
796
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
797
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
798
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
799
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
800
|
+
}, "strip", z.ZodTypeAny, {
|
801
|
+
country: string;
|
802
|
+
state: string;
|
803
|
+
addressType: "INTERNATIONAL";
|
804
|
+
district2: string;
|
805
|
+
cityOrTown?: string | null | undefined;
|
806
|
+
addressLine1?: string | null | undefined;
|
807
|
+
addressLine2?: string | null | undefined;
|
808
|
+
addressLine3?: string | null | undefined;
|
809
|
+
postcodeOrZip?: string | null | undefined;
|
810
|
+
}, {
|
811
|
+
country: string;
|
812
|
+
state: string;
|
813
|
+
addressType: "INTERNATIONAL";
|
814
|
+
district2: string;
|
815
|
+
cityOrTown?: string | null | undefined;
|
816
|
+
addressLine1?: string | null | undefined;
|
817
|
+
addressLine2?: string | null | undefined;
|
818
|
+
addressLine3?: string | null | undefined;
|
819
|
+
postcodeOrZip?: string | null | undefined;
|
571
820
|
}>]>>>;
|
821
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
822
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
572
823
|
}, {
|
573
|
-
type: z.ZodEnum<[
|
824
|
+
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
825
|
}>, "strip", z.ZodTypeAny, {
|
575
|
-
type:
|
576
|
-
|
826
|
+
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";
|
827
|
+
declaration: Record<string, string | number | boolean | {
|
577
828
|
type: string;
|
578
829
|
filename: string;
|
579
830
|
originalFilename: string;
|
580
831
|
} | {
|
581
832
|
country: string;
|
582
833
|
district: string;
|
834
|
+
addressType: "DOMESTIC";
|
583
835
|
province: string;
|
584
836
|
urbanOrRural: "URBAN";
|
585
837
|
number?: string | null | undefined;
|
@@ -590,24 +842,36 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
590
842
|
} | {
|
591
843
|
country: string;
|
592
844
|
district: string;
|
845
|
+
addressType: "DOMESTIC";
|
593
846
|
province: string;
|
594
847
|
urbanOrRural: "RURAL";
|
595
848
|
village?: string | null | undefined;
|
849
|
+
} | {
|
850
|
+
country: string;
|
851
|
+
state: string;
|
852
|
+
addressType: "INTERNATIONAL";
|
853
|
+
district2: string;
|
854
|
+
cityOrTown?: string | null | undefined;
|
855
|
+
addressLine1?: string | null | undefined;
|
856
|
+
addressLine2?: string | null | undefined;
|
857
|
+
addressLine3?: string | null | undefined;
|
858
|
+
postcodeOrZip?: string | null | undefined;
|
596
859
|
} | {
|
597
860
|
type: string;
|
598
861
|
option: string;
|
599
862
|
filename: string;
|
600
863
|
originalFilename: string;
|
601
|
-
}[]>;
|
864
|
+
}[] | undefined>;
|
602
865
|
eventId: string;
|
603
866
|
transactionId: string;
|
604
|
-
|
867
|
+
annotation?: Record<string, string | number | boolean | {
|
605
868
|
type: string;
|
606
869
|
filename: string;
|
607
870
|
originalFilename: string;
|
608
871
|
} | {
|
609
872
|
country: string;
|
610
873
|
district: string;
|
874
|
+
addressType: "DOMESTIC";
|
611
875
|
province: string;
|
612
876
|
urbanOrRural: "URBAN";
|
613
877
|
number?: string | null | undefined;
|
@@ -618,24 +882,40 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
618
882
|
} | {
|
619
883
|
country: string;
|
620
884
|
district: string;
|
885
|
+
addressType: "DOMESTIC";
|
621
886
|
province: string;
|
622
887
|
urbanOrRural: "RURAL";
|
623
888
|
village?: string | null | undefined;
|
889
|
+
} | {
|
890
|
+
country: string;
|
891
|
+
state: string;
|
892
|
+
addressType: "INTERNATIONAL";
|
893
|
+
district2: string;
|
894
|
+
cityOrTown?: string | null | undefined;
|
895
|
+
addressLine1?: string | null | undefined;
|
896
|
+
addressLine2?: string | null | undefined;
|
897
|
+
addressLine3?: string | null | undefined;
|
898
|
+
postcodeOrZip?: string | null | undefined;
|
624
899
|
} | {
|
625
900
|
type: string;
|
626
901
|
option: string;
|
627
902
|
filename: string;
|
628
903
|
originalFilename: string;
|
629
|
-
}[]> | undefined;
|
904
|
+
}[] | undefined> | undefined;
|
905
|
+
originalActionId?: string | undefined;
|
906
|
+
keepAssignment?: boolean | undefined;
|
630
907
|
}, {
|
631
|
-
type:
|
632
|
-
|
908
|
+
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";
|
909
|
+
eventId: string;
|
910
|
+
transactionId: string;
|
911
|
+
declaration?: Record<string, string | number | boolean | {
|
633
912
|
type: string;
|
634
913
|
filename: string;
|
635
914
|
originalFilename: string;
|
636
915
|
} | {
|
637
916
|
country: string;
|
638
917
|
district: string;
|
918
|
+
addressType: "DOMESTIC";
|
639
919
|
province: string;
|
640
920
|
urbanOrRural: "URBAN";
|
641
921
|
number?: string | null | undefined;
|
@@ -646,24 +926,34 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
646
926
|
} | {
|
647
927
|
country: string;
|
648
928
|
district: string;
|
929
|
+
addressType: "DOMESTIC";
|
649
930
|
province: string;
|
650
931
|
urbanOrRural: "RURAL";
|
651
932
|
village?: string | null | undefined;
|
933
|
+
} | {
|
934
|
+
country: string;
|
935
|
+
state: string;
|
936
|
+
addressType: "INTERNATIONAL";
|
937
|
+
district2: string;
|
938
|
+
cityOrTown?: string | null | undefined;
|
939
|
+
addressLine1?: string | null | undefined;
|
940
|
+
addressLine2?: string | null | undefined;
|
941
|
+
addressLine3?: string | null | undefined;
|
942
|
+
postcodeOrZip?: string | null | undefined;
|
652
943
|
} | {
|
653
944
|
type: string;
|
654
945
|
option: string;
|
655
946
|
filename: string;
|
656
947
|
originalFilename: string;
|
657
|
-
}[]
|
658
|
-
|
659
|
-
transactionId: string;
|
660
|
-
metadata?: Record<string, string | number | boolean | {
|
948
|
+
}[] | undefined> | undefined;
|
949
|
+
annotation?: Record<string, string | number | boolean | {
|
661
950
|
type: string;
|
662
951
|
filename: string;
|
663
952
|
originalFilename: string;
|
664
953
|
} | {
|
665
954
|
country: string;
|
666
955
|
district: string;
|
956
|
+
addressType: "DOMESTIC";
|
667
957
|
province: string;
|
668
958
|
urbanOrRural: "URBAN";
|
669
959
|
number?: string | null | undefined;
|
@@ -674,15 +964,28 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
674
964
|
} | {
|
675
965
|
country: string;
|
676
966
|
district: string;
|
967
|
+
addressType: "DOMESTIC";
|
677
968
|
province: string;
|
678
969
|
urbanOrRural: "RURAL";
|
679
970
|
village?: string | null | undefined;
|
971
|
+
} | {
|
972
|
+
country: string;
|
973
|
+
state: string;
|
974
|
+
addressType: "INTERNATIONAL";
|
975
|
+
district2: string;
|
976
|
+
cityOrTown?: string | null | undefined;
|
977
|
+
addressLine1?: string | null | undefined;
|
978
|
+
addressLine2?: string | null | undefined;
|
979
|
+
addressLine3?: string | null | undefined;
|
980
|
+
postcodeOrZip?: string | null | undefined;
|
680
981
|
} | {
|
681
982
|
type: string;
|
682
983
|
option: string;
|
683
984
|
filename: string;
|
684
985
|
originalFilename: string;
|
685
|
-
}[]> | undefined;
|
986
|
+
}[] | undefined> | undefined;
|
987
|
+
originalActionId?: string | undefined;
|
988
|
+
keepAssignment?: boolean | undefined;
|
686
989
|
}>;
|
687
990
|
export type Draft = z.infer<typeof Draft>;
|
688
991
|
export type DraftInput = z.infer<typeof DraftInput>;
|