@opencrvs/toolkit 1.8.0-rc.feaeeb7 → 1.8.0-rc.fef85f2
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 +6711 -9366
- 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 +39 -17
- package/dist/commons/conditionals/validate.test.d.ts +2 -0
- package/dist/commons/events/ActionConfig.d.ts +1116 -2067
- package/dist/commons/events/ActionDocument.d.ts +9488 -312
- package/dist/commons/events/ActionInput.d.ts +5331 -558
- package/dist/commons/events/ActionType.d.ts +27 -12
- package/dist/commons/events/CompositeFieldValue.d.ts +155 -2
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +351 -51
- package/dist/commons/events/EventConfig.d.ts +704 -1245
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +3348 -429
- package/dist/commons/events/EventIndex.d.ts +9 -3
- package/dist/commons/events/EventMetadata.d.ts +6 -0
- package/dist/commons/events/FieldConfig.d.ts +568 -74
- package/dist/commons/events/FieldType.d.ts +6 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +154 -3
- package/dist/commons/events/FieldValue.d.ts +76 -2
- package/dist/commons/events/FormConfig.d.ts +633 -48
- package/dist/commons/events/PageConfig.d.ts +335 -0
- package/dist/commons/events/SummaryConfig.d.ts +93 -7
- package/dist/commons/events/TemplateConfig.d.ts +30 -10
- package/dist/commons/events/User.d.ts +5 -0
- package/dist/commons/events/defineConfig.d.ts +104 -224
- package/dist/commons/events/index.d.ts +3 -1
- package/dist/commons/events/scopes.d.ts +25 -0
- package/dist/commons/events/test.utils.d.ts +141 -214
- package/dist/commons/events/utils.d.ts +196 -69
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +166 -81
- package/dist/events/index.js +1717 -843
- 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,22 +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
|
-
|
417
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
593
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
418
594
|
filename: z.ZodString;
|
419
595
|
originalFilename: z.ZodString;
|
420
596
|
type: z.ZodString;
|
@@ -443,6 +619,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
443
619
|
originalFilename: string;
|
444
620
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
445
621
|
country: z.ZodString;
|
622
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
446
623
|
province: z.ZodString;
|
447
624
|
district: z.ZodString;
|
448
625
|
}, {
|
@@ -455,6 +632,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
455
632
|
}>, "strip", z.ZodTypeAny, {
|
456
633
|
country: string;
|
457
634
|
district: string;
|
635
|
+
addressType: "DOMESTIC";
|
458
636
|
province: string;
|
459
637
|
urbanOrRural: "URBAN";
|
460
638
|
number?: string | null | undefined;
|
@@ -465,6 +643,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
465
643
|
}, {
|
466
644
|
country: string;
|
467
645
|
district: string;
|
646
|
+
addressType: "DOMESTIC";
|
468
647
|
province: string;
|
469
648
|
urbanOrRural: "URBAN";
|
470
649
|
number?: string | null | undefined;
|
@@ -474,6 +653,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
474
653
|
zipCode?: string | null | undefined;
|
475
654
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
476
655
|
country: z.ZodString;
|
656
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
477
657
|
province: z.ZodString;
|
478
658
|
district: z.ZodString;
|
479
659
|
}, {
|
@@ -482,17 +662,49 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
482
662
|
}>, "strip", z.ZodTypeAny, {
|
483
663
|
country: string;
|
484
664
|
district: string;
|
665
|
+
addressType: "DOMESTIC";
|
485
666
|
province: string;
|
486
667
|
urbanOrRural: "RURAL";
|
487
668
|
village?: string | null | undefined;
|
488
669
|
}, {
|
489
670
|
country: string;
|
490
671
|
district: string;
|
672
|
+
addressType: "DOMESTIC";
|
491
673
|
province: string;
|
492
674
|
urbanOrRural: "RURAL";
|
493
675
|
village?: string | null | undefined;
|
494
|
-
}
|
495
|
-
|
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<{
|
496
708
|
filename: z.ZodString;
|
497
709
|
originalFilename: z.ZodString;
|
498
710
|
type: z.ZodString;
|
@@ -521,6 +733,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
521
733
|
originalFilename: string;
|
522
734
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
523
735
|
country: z.ZodString;
|
736
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
524
737
|
province: z.ZodString;
|
525
738
|
district: z.ZodString;
|
526
739
|
}, {
|
@@ -533,6 +746,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
533
746
|
}>, "strip", z.ZodTypeAny, {
|
534
747
|
country: string;
|
535
748
|
district: string;
|
749
|
+
addressType: "DOMESTIC";
|
536
750
|
province: string;
|
537
751
|
urbanOrRural: "URBAN";
|
538
752
|
number?: string | null | undefined;
|
@@ -543,6 +757,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
543
757
|
}, {
|
544
758
|
country: string;
|
545
759
|
district: string;
|
760
|
+
addressType: "DOMESTIC";
|
546
761
|
province: string;
|
547
762
|
urbanOrRural: "URBAN";
|
548
763
|
number?: string | null | undefined;
|
@@ -552,6 +767,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
552
767
|
zipCode?: string | null | undefined;
|
553
768
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
554
769
|
country: z.ZodString;
|
770
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
555
771
|
province: z.ZodString;
|
556
772
|
district: z.ZodString;
|
557
773
|
}, {
|
@@ -560,27 +776,62 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
560
776
|
}>, "strip", z.ZodTypeAny, {
|
561
777
|
country: string;
|
562
778
|
district: string;
|
779
|
+
addressType: "DOMESTIC";
|
563
780
|
province: string;
|
564
781
|
urbanOrRural: "RURAL";
|
565
782
|
village?: string | null | undefined;
|
566
783
|
}, {
|
567
784
|
country: string;
|
568
785
|
district: string;
|
786
|
+
addressType: "DOMESTIC";
|
569
787
|
province: string;
|
570
788
|
urbanOrRural: "RURAL";
|
571
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;
|
572
820
|
}>]>>>;
|
821
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
822
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
573
823
|
}, {
|
574
|
-
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"]>;
|
575
825
|
}>, "strip", z.ZodTypeAny, {
|
576
|
-
type:
|
577
|
-
|
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 | {
|
578
828
|
type: string;
|
579
829
|
filename: string;
|
580
830
|
originalFilename: string;
|
581
831
|
} | {
|
582
832
|
country: string;
|
583
833
|
district: string;
|
834
|
+
addressType: "DOMESTIC";
|
584
835
|
province: string;
|
585
836
|
urbanOrRural: "URBAN";
|
586
837
|
number?: string | null | undefined;
|
@@ -591,25 +842,36 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
591
842
|
} | {
|
592
843
|
country: string;
|
593
844
|
district: string;
|
845
|
+
addressType: "DOMESTIC";
|
594
846
|
province: string;
|
595
847
|
urbanOrRural: "RURAL";
|
596
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;
|
597
859
|
} | {
|
598
860
|
type: string;
|
599
861
|
option: string;
|
600
862
|
filename: string;
|
601
863
|
originalFilename: string;
|
602
|
-
}[]>;
|
864
|
+
}[] | undefined>;
|
603
865
|
eventId: string;
|
604
866
|
transactionId: string;
|
605
|
-
|
606
|
-
metadata?: Record<string, string | number | boolean | {
|
867
|
+
annotation?: Record<string, string | number | boolean | {
|
607
868
|
type: string;
|
608
869
|
filename: string;
|
609
870
|
originalFilename: string;
|
610
871
|
} | {
|
611
872
|
country: string;
|
612
873
|
district: string;
|
874
|
+
addressType: "DOMESTIC";
|
613
875
|
province: string;
|
614
876
|
urbanOrRural: "URBAN";
|
615
877
|
number?: string | null | undefined;
|
@@ -620,24 +882,40 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
620
882
|
} | {
|
621
883
|
country: string;
|
622
884
|
district: string;
|
885
|
+
addressType: "DOMESTIC";
|
623
886
|
province: string;
|
624
887
|
urbanOrRural: "RURAL";
|
625
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;
|
626
899
|
} | {
|
627
900
|
type: string;
|
628
901
|
option: string;
|
629
902
|
filename: string;
|
630
903
|
originalFilename: string;
|
631
|
-
}[]> | undefined;
|
904
|
+
}[] | undefined> | undefined;
|
905
|
+
originalActionId?: string | undefined;
|
906
|
+
keepAssignment?: boolean | undefined;
|
632
907
|
}, {
|
633
|
-
type:
|
634
|
-
|
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 | {
|
635
912
|
type: string;
|
636
913
|
filename: string;
|
637
914
|
originalFilename: string;
|
638
915
|
} | {
|
639
916
|
country: string;
|
640
917
|
district: string;
|
918
|
+
addressType: "DOMESTIC";
|
641
919
|
province: string;
|
642
920
|
urbanOrRural: "URBAN";
|
643
921
|
number?: string | null | undefined;
|
@@ -648,24 +926,34 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
648
926
|
} | {
|
649
927
|
country: string;
|
650
928
|
district: string;
|
929
|
+
addressType: "DOMESTIC";
|
651
930
|
province: string;
|
652
931
|
urbanOrRural: "RURAL";
|
653
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;
|
654
943
|
} | {
|
655
944
|
type: string;
|
656
945
|
option: string;
|
657
946
|
filename: string;
|
658
947
|
originalFilename: string;
|
659
|
-
}[]
|
660
|
-
|
661
|
-
transactionId: string;
|
662
|
-
metadata?: Record<string, string | number | boolean | {
|
948
|
+
}[] | undefined> | undefined;
|
949
|
+
annotation?: Record<string, string | number | boolean | {
|
663
950
|
type: string;
|
664
951
|
filename: string;
|
665
952
|
originalFilename: string;
|
666
953
|
} | {
|
667
954
|
country: string;
|
668
955
|
district: string;
|
956
|
+
addressType: "DOMESTIC";
|
669
957
|
province: string;
|
670
958
|
urbanOrRural: "URBAN";
|
671
959
|
number?: string | null | undefined;
|
@@ -676,16 +964,28 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
676
964
|
} | {
|
677
965
|
country: string;
|
678
966
|
district: string;
|
967
|
+
addressType: "DOMESTIC";
|
679
968
|
province: string;
|
680
969
|
urbanOrRural: "RURAL";
|
681
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;
|
682
981
|
} | {
|
683
982
|
type: string;
|
684
983
|
option: string;
|
685
984
|
filename: string;
|
686
985
|
originalFilename: string;
|
687
|
-
}[]> | undefined;
|
688
|
-
|
986
|
+
}[] | undefined> | undefined;
|
987
|
+
originalActionId?: string | undefined;
|
988
|
+
keepAssignment?: boolean | undefined;
|
689
989
|
}>;
|
690
990
|
export type Draft = z.infer<typeof Draft>;
|
691
991
|
export type DraftInput = z.infer<typeof DraftInput>;
|