@opencrvs/toolkit 1.8.0-rc.fd6feaa → 1.8.0-rc.fd754eb
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 +10768 -13690
- package/dist/commons/conditionals/conditionals.d.ts +31 -5
- package/dist/commons/conditionals/validate.d.ts +12 -17
- package/dist/commons/events/ActionConfig.d.ts +89454 -2042
- package/dist/commons/events/ActionDocument.d.ts +8396 -446
- package/dist/commons/events/ActionInput.d.ts +3229 -704
- package/dist/commons/events/ActionType.d.ts +26 -11
- package/dist/commons/events/AdvancedSearchConfig.d.ts +369 -25
- package/dist/commons/events/CompositeFieldValue.d.ts +55 -12
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Draft.d.ts +167 -67
- package/dist/commons/events/EventConfig.d.ts +42579 -1766
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +1751 -544
- package/dist/commons/events/EventIndex.d.ts +1346 -10
- package/dist/commons/events/EventInput.d.ts +13 -0
- package/dist/commons/events/EventMetadata.d.ts +273 -8
- package/dist/commons/events/FieldConfig.d.ts +4218 -802
- package/dist/commons/events/FieldType.d.ts +4 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +67 -11
- package/dist/commons/events/FieldValue.d.ts +36 -13
- package/dist/commons/events/FormConfig.d.ts +40636 -73
- package/dist/commons/events/PageConfig.d.ts +10209 -0
- package/dist/commons/events/SummaryConfig.d.ts +95 -39
- package/dist/commons/events/TemplateConfig.d.ts +5 -5
- package/dist/commons/events/User.d.ts +5 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +1135 -19
- package/dist/commons/events/defineConfig.d.ts +7030 -224
- package/dist/commons/events/event.d.ts +27 -0
- package/dist/commons/events/field.d.ts +68 -0
- package/dist/commons/events/index.d.ts +5 -1
- package/dist/commons/events/scopes.d.ts +26 -0
- package/dist/commons/events/test.utils.d.ts +84 -302
- package/dist/commons/events/utils.d.ts +3593 -95
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +196 -108
- package/dist/events/index.js +2530 -1320
- package/dist/scopes/index.d.ts +70 -1
- package/dist/scopes/index.js +130 -0
- package/package.json +3 -2
@@ -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;
|
@@ -7,9 +6,11 @@ export declare const Draft: z.ZodObject<{
|
|
7
6
|
createdAt: z.ZodString;
|
8
7
|
action: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
9
8
|
id: z.ZodString;
|
9
|
+
transactionId: z.ZodString;
|
10
10
|
createdAt: z.ZodString;
|
11
11
|
createdBy: z.ZodString;
|
12
|
-
|
12
|
+
createdByRole: z.ZodString;
|
13
|
+
declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
13
14
|
filename: z.ZodString;
|
14
15
|
originalFilename: z.ZodString;
|
15
16
|
type: z.ZodString;
|
@@ -37,7 +38,8 @@ export declare const Draft: z.ZodObject<{
|
|
37
38
|
filename: string;
|
38
39
|
originalFilename: string;
|
39
40
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
40
|
-
country: z.
|
41
|
+
country: z.ZodString;
|
42
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
41
43
|
province: z.ZodString;
|
42
44
|
district: z.ZodString;
|
43
45
|
}, {
|
@@ -50,6 +52,7 @@ export declare const Draft: z.ZodObject<{
|
|
50
52
|
}>, "strip", z.ZodTypeAny, {
|
51
53
|
country: string;
|
52
54
|
district: string;
|
55
|
+
addressType: "DOMESTIC";
|
53
56
|
province: string;
|
54
57
|
urbanOrRural: "URBAN";
|
55
58
|
number?: string | null | undefined;
|
@@ -60,6 +63,7 @@ export declare const Draft: z.ZodObject<{
|
|
60
63
|
}, {
|
61
64
|
country: string;
|
62
65
|
district: string;
|
66
|
+
addressType: "DOMESTIC";
|
63
67
|
province: string;
|
64
68
|
urbanOrRural: "URBAN";
|
65
69
|
number?: string | null | undefined;
|
@@ -68,7 +72,8 @@ export declare const Draft: z.ZodObject<{
|
|
68
72
|
street?: string | null | undefined;
|
69
73
|
zipCode?: string | null | undefined;
|
70
74
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
71
|
-
country: z.
|
75
|
+
country: z.ZodString;
|
76
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
72
77
|
province: z.ZodString;
|
73
78
|
district: z.ZodString;
|
74
79
|
}, {
|
@@ -77,17 +82,20 @@ export declare const Draft: z.ZodObject<{
|
|
77
82
|
}>, "strip", z.ZodTypeAny, {
|
78
83
|
country: string;
|
79
84
|
district: string;
|
85
|
+
addressType: "DOMESTIC";
|
80
86
|
province: string;
|
81
87
|
urbanOrRural: "RURAL";
|
82
88
|
village?: string | null | undefined;
|
83
89
|
}, {
|
84
90
|
country: string;
|
85
91
|
district: string;
|
92
|
+
addressType: "DOMESTIC";
|
86
93
|
province: string;
|
87
94
|
urbanOrRural: "RURAL";
|
88
95
|
village?: string | null | undefined;
|
89
|
-
}>, z.ZodObject<{
|
90
|
-
country: z.
|
96
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
97
|
+
country: z.ZodString;
|
98
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
91
99
|
state: z.ZodString;
|
92
100
|
district2: z.ZodString;
|
93
101
|
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -98,6 +106,7 @@ export declare const Draft: z.ZodObject<{
|
|
98
106
|
}, "strip", z.ZodTypeAny, {
|
99
107
|
country: string;
|
100
108
|
state: string;
|
109
|
+
addressType: "INTERNATIONAL";
|
101
110
|
district2: string;
|
102
111
|
cityOrTown?: string | null | undefined;
|
103
112
|
addressLine1?: string | null | undefined;
|
@@ -107,6 +116,7 @@ export declare const Draft: z.ZodObject<{
|
|
107
116
|
}, {
|
108
117
|
country: string;
|
109
118
|
state: string;
|
119
|
+
addressType: "INTERNATIONAL";
|
110
120
|
district2: string;
|
111
121
|
cityOrTown?: string | null | undefined;
|
112
122
|
addressLine1?: string | null | undefined;
|
@@ -114,7 +124,7 @@ export declare const Draft: z.ZodObject<{
|
|
114
124
|
addressLine3?: string | null | undefined;
|
115
125
|
postcodeOrZip?: string | null | undefined;
|
116
126
|
}>]>>;
|
117
|
-
|
127
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
118
128
|
filename: z.ZodString;
|
119
129
|
originalFilename: z.ZodString;
|
120
130
|
type: z.ZodString;
|
@@ -142,7 +152,8 @@ export declare const Draft: z.ZodObject<{
|
|
142
152
|
filename: string;
|
143
153
|
originalFilename: string;
|
144
154
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
145
|
-
country: z.
|
155
|
+
country: z.ZodString;
|
156
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
146
157
|
province: z.ZodString;
|
147
158
|
district: z.ZodString;
|
148
159
|
}, {
|
@@ -155,6 +166,7 @@ export declare const Draft: z.ZodObject<{
|
|
155
166
|
}>, "strip", z.ZodTypeAny, {
|
156
167
|
country: string;
|
157
168
|
district: string;
|
169
|
+
addressType: "DOMESTIC";
|
158
170
|
province: string;
|
159
171
|
urbanOrRural: "URBAN";
|
160
172
|
number?: string | null | undefined;
|
@@ -165,6 +177,7 @@ export declare const Draft: z.ZodObject<{
|
|
165
177
|
}, {
|
166
178
|
country: string;
|
167
179
|
district: string;
|
180
|
+
addressType: "DOMESTIC";
|
168
181
|
province: string;
|
169
182
|
urbanOrRural: "URBAN";
|
170
183
|
number?: string | null | undefined;
|
@@ -173,7 +186,8 @@ export declare const Draft: z.ZodObject<{
|
|
173
186
|
street?: string | null | undefined;
|
174
187
|
zipCode?: string | null | undefined;
|
175
188
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
176
|
-
country: z.
|
189
|
+
country: z.ZodString;
|
190
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
177
191
|
province: z.ZodString;
|
178
192
|
district: z.ZodString;
|
179
193
|
}, {
|
@@ -182,17 +196,20 @@ export declare const Draft: z.ZodObject<{
|
|
182
196
|
}>, "strip", z.ZodTypeAny, {
|
183
197
|
country: string;
|
184
198
|
district: string;
|
199
|
+
addressType: "DOMESTIC";
|
185
200
|
province: string;
|
186
201
|
urbanOrRural: "RURAL";
|
187
202
|
village?: string | null | undefined;
|
188
203
|
}, {
|
189
204
|
country: string;
|
190
205
|
district: string;
|
206
|
+
addressType: "DOMESTIC";
|
191
207
|
province: string;
|
192
208
|
urbanOrRural: "RURAL";
|
193
209
|
village?: string | null | undefined;
|
194
|
-
}>, z.ZodObject<{
|
195
|
-
country: z.
|
210
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
211
|
+
country: z.ZodString;
|
212
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
196
213
|
state: z.ZodString;
|
197
214
|
district2: z.ZodString;
|
198
215
|
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -203,6 +220,7 @@ export declare const Draft: z.ZodObject<{
|
|
203
220
|
}, "strip", z.ZodTypeAny, {
|
204
221
|
country: string;
|
205
222
|
state: string;
|
223
|
+
addressType: "INTERNATIONAL";
|
206
224
|
district2: string;
|
207
225
|
cityOrTown?: string | null | undefined;
|
208
226
|
addressLine1?: string | null | undefined;
|
@@ -212,6 +230,7 @@ export declare const Draft: z.ZodObject<{
|
|
212
230
|
}, {
|
213
231
|
country: string;
|
214
232
|
state: string;
|
233
|
+
addressType: "INTERNATIONAL";
|
215
234
|
district2: string;
|
216
235
|
cityOrTown?: string | null | undefined;
|
217
236
|
addressLine1?: string | null | undefined;
|
@@ -220,17 +239,25 @@ export declare const Draft: z.ZodObject<{
|
|
220
239
|
postcodeOrZip?: string | null | undefined;
|
221
240
|
}>]>>>;
|
222
241
|
createdAtLocation: z.ZodString;
|
242
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
243
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
223
244
|
}, {
|
224
|
-
type: z.ZodEnum<[
|
245
|
+
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"]>;
|
225
246
|
}>, "id">, "strip", z.ZodTypeAny, {
|
226
|
-
type:
|
227
|
-
|
247
|
+
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";
|
248
|
+
status: "Rejected" | "Requested" | "Accepted";
|
249
|
+
transactionId: string;
|
250
|
+
createdAt: string;
|
251
|
+
createdBy: string;
|
252
|
+
createdByRole: string;
|
253
|
+
declaration: Record<string, string | number | boolean | {
|
228
254
|
type: string;
|
229
255
|
filename: string;
|
230
256
|
originalFilename: string;
|
231
257
|
} | {
|
232
258
|
country: string;
|
233
259
|
district: string;
|
260
|
+
addressType: "DOMESTIC";
|
234
261
|
province: string;
|
235
262
|
urbanOrRural: "URBAN";
|
236
263
|
number?: string | null | undefined;
|
@@ -241,12 +268,14 @@ export declare const Draft: z.ZodObject<{
|
|
241
268
|
} | {
|
242
269
|
country: string;
|
243
270
|
district: string;
|
271
|
+
addressType: "DOMESTIC";
|
244
272
|
province: string;
|
245
273
|
urbanOrRural: "RURAL";
|
246
274
|
village?: string | null | undefined;
|
247
275
|
} | {
|
248
276
|
country: string;
|
249
277
|
state: string;
|
278
|
+
addressType: "INTERNATIONAL";
|
250
279
|
district2: string;
|
251
280
|
cityOrTown?: string | null | undefined;
|
252
281
|
addressLine1?: string | null | undefined;
|
@@ -258,17 +287,16 @@ export declare const Draft: z.ZodObject<{
|
|
258
287
|
option: string;
|
259
288
|
filename: string;
|
260
289
|
originalFilename: string;
|
261
|
-
}[]>;
|
262
|
-
createdAt: string;
|
263
|
-
createdBy: string;
|
290
|
+
}[] | [string, string] | undefined>;
|
264
291
|
createdAtLocation: string;
|
265
|
-
|
292
|
+
annotation?: Record<string, string | number | boolean | {
|
266
293
|
type: string;
|
267
294
|
filename: string;
|
268
295
|
originalFilename: string;
|
269
296
|
} | {
|
270
297
|
country: string;
|
271
298
|
district: string;
|
299
|
+
addressType: "DOMESTIC";
|
272
300
|
province: string;
|
273
301
|
urbanOrRural: "URBAN";
|
274
302
|
number?: string | null | undefined;
|
@@ -279,12 +307,14 @@ export declare const Draft: z.ZodObject<{
|
|
279
307
|
} | {
|
280
308
|
country: string;
|
281
309
|
district: string;
|
310
|
+
addressType: "DOMESTIC";
|
282
311
|
province: string;
|
283
312
|
urbanOrRural: "RURAL";
|
284
313
|
village?: string | null | undefined;
|
285
314
|
} | {
|
286
315
|
country: string;
|
287
316
|
state: string;
|
317
|
+
addressType: "INTERNATIONAL";
|
288
318
|
district2: string;
|
289
319
|
cityOrTown?: string | null | undefined;
|
290
320
|
addressLine1?: string | null | undefined;
|
@@ -296,16 +326,23 @@ export declare const Draft: z.ZodObject<{
|
|
296
326
|
option: string;
|
297
327
|
filename: string;
|
298
328
|
originalFilename: string;
|
299
|
-
}[]> | undefined;
|
329
|
+
}[] | [string, string] | undefined> | undefined;
|
330
|
+
originalActionId?: string | undefined;
|
300
331
|
}, {
|
301
|
-
type:
|
302
|
-
|
332
|
+
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";
|
333
|
+
status: "Rejected" | "Requested" | "Accepted";
|
334
|
+
transactionId: string;
|
335
|
+
createdAt: string;
|
336
|
+
createdBy: string;
|
337
|
+
createdByRole: string;
|
338
|
+
declaration: Record<string, string | number | boolean | {
|
303
339
|
type: string;
|
304
340
|
filename: string;
|
305
341
|
originalFilename: string;
|
306
342
|
} | {
|
307
343
|
country: string;
|
308
344
|
district: string;
|
345
|
+
addressType: "DOMESTIC";
|
309
346
|
province: string;
|
310
347
|
urbanOrRural: "URBAN";
|
311
348
|
number?: string | null | undefined;
|
@@ -316,12 +353,14 @@ export declare const Draft: z.ZodObject<{
|
|
316
353
|
} | {
|
317
354
|
country: string;
|
318
355
|
district: string;
|
356
|
+
addressType: "DOMESTIC";
|
319
357
|
province: string;
|
320
358
|
urbanOrRural: "RURAL";
|
321
359
|
village?: string | null | undefined;
|
322
360
|
} | {
|
323
361
|
country: string;
|
324
362
|
state: string;
|
363
|
+
addressType: "INTERNATIONAL";
|
325
364
|
district2: string;
|
326
365
|
cityOrTown?: string | null | undefined;
|
327
366
|
addressLine1?: string | null | undefined;
|
@@ -333,17 +372,16 @@ export declare const Draft: z.ZodObject<{
|
|
333
372
|
option: string;
|
334
373
|
filename: string;
|
335
374
|
originalFilename: string;
|
336
|
-
}[]>;
|
337
|
-
createdAt: string;
|
338
|
-
createdBy: string;
|
375
|
+
}[] | [string, string] | undefined>;
|
339
376
|
createdAtLocation: string;
|
340
|
-
|
377
|
+
annotation?: Record<string, string | number | boolean | {
|
341
378
|
type: string;
|
342
379
|
filename: string;
|
343
380
|
originalFilename: string;
|
344
381
|
} | {
|
345
382
|
country: string;
|
346
383
|
district: string;
|
384
|
+
addressType: "DOMESTIC";
|
347
385
|
province: string;
|
348
386
|
urbanOrRural: "URBAN";
|
349
387
|
number?: string | null | undefined;
|
@@ -354,12 +392,14 @@ export declare const Draft: z.ZodObject<{
|
|
354
392
|
} | {
|
355
393
|
country: string;
|
356
394
|
district: string;
|
395
|
+
addressType: "DOMESTIC";
|
357
396
|
province: string;
|
358
397
|
urbanOrRural: "RURAL";
|
359
398
|
village?: string | null | undefined;
|
360
399
|
} | {
|
361
400
|
country: string;
|
362
401
|
state: string;
|
402
|
+
addressType: "INTERNATIONAL";
|
363
403
|
district2: string;
|
364
404
|
cityOrTown?: string | null | undefined;
|
365
405
|
addressLine1?: string | null | undefined;
|
@@ -371,22 +411,29 @@ export declare const Draft: z.ZodObject<{
|
|
371
411
|
option: string;
|
372
412
|
filename: string;
|
373
413
|
originalFilename: string;
|
374
|
-
}[]> | undefined;
|
414
|
+
}[] | [string, string] | undefined> | undefined;
|
415
|
+
originalActionId?: string | undefined;
|
375
416
|
}>;
|
376
417
|
}, "strip", z.ZodTypeAny, {
|
377
418
|
id: string;
|
419
|
+
transactionId: string;
|
378
420
|
createdAt: string;
|
379
421
|
eventId: string;
|
380
|
-
transactionId: string;
|
381
422
|
action: {
|
382
|
-
type:
|
383
|
-
|
423
|
+
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";
|
424
|
+
status: "Rejected" | "Requested" | "Accepted";
|
425
|
+
transactionId: string;
|
426
|
+
createdAt: string;
|
427
|
+
createdBy: string;
|
428
|
+
createdByRole: string;
|
429
|
+
declaration: Record<string, string | number | boolean | {
|
384
430
|
type: string;
|
385
431
|
filename: string;
|
386
432
|
originalFilename: string;
|
387
433
|
} | {
|
388
434
|
country: string;
|
389
435
|
district: string;
|
436
|
+
addressType: "DOMESTIC";
|
390
437
|
province: string;
|
391
438
|
urbanOrRural: "URBAN";
|
392
439
|
number?: string | null | undefined;
|
@@ -397,12 +444,14 @@ export declare const Draft: z.ZodObject<{
|
|
397
444
|
} | {
|
398
445
|
country: string;
|
399
446
|
district: string;
|
447
|
+
addressType: "DOMESTIC";
|
400
448
|
province: string;
|
401
449
|
urbanOrRural: "RURAL";
|
402
450
|
village?: string | null | undefined;
|
403
451
|
} | {
|
404
452
|
country: string;
|
405
453
|
state: string;
|
454
|
+
addressType: "INTERNATIONAL";
|
406
455
|
district2: string;
|
407
456
|
cityOrTown?: string | null | undefined;
|
408
457
|
addressLine1?: string | null | undefined;
|
@@ -414,17 +463,16 @@ export declare const Draft: z.ZodObject<{
|
|
414
463
|
option: string;
|
415
464
|
filename: string;
|
416
465
|
originalFilename: string;
|
417
|
-
}[]>;
|
418
|
-
createdAt: string;
|
419
|
-
createdBy: string;
|
466
|
+
}[] | [string, string] | undefined>;
|
420
467
|
createdAtLocation: string;
|
421
|
-
|
468
|
+
annotation?: Record<string, string | number | boolean | {
|
422
469
|
type: string;
|
423
470
|
filename: string;
|
424
471
|
originalFilename: string;
|
425
472
|
} | {
|
426
473
|
country: string;
|
427
474
|
district: string;
|
475
|
+
addressType: "DOMESTIC";
|
428
476
|
province: string;
|
429
477
|
urbanOrRural: "URBAN";
|
430
478
|
number?: string | null | undefined;
|
@@ -435,12 +483,14 @@ export declare const Draft: z.ZodObject<{
|
|
435
483
|
} | {
|
436
484
|
country: string;
|
437
485
|
district: string;
|
486
|
+
addressType: "DOMESTIC";
|
438
487
|
province: string;
|
439
488
|
urbanOrRural: "RURAL";
|
440
489
|
village?: string | null | undefined;
|
441
490
|
} | {
|
442
491
|
country: string;
|
443
492
|
state: string;
|
493
|
+
addressType: "INTERNATIONAL";
|
444
494
|
district2: string;
|
445
495
|
cityOrTown?: string | null | undefined;
|
446
496
|
addressLine1?: string | null | undefined;
|
@@ -452,22 +502,29 @@ export declare const Draft: z.ZodObject<{
|
|
452
502
|
option: string;
|
453
503
|
filename: string;
|
454
504
|
originalFilename: string;
|
455
|
-
}[]> | undefined;
|
505
|
+
}[] | [string, string] | undefined> | undefined;
|
506
|
+
originalActionId?: string | undefined;
|
456
507
|
};
|
457
508
|
}, {
|
458
509
|
id: string;
|
510
|
+
transactionId: string;
|
459
511
|
createdAt: string;
|
460
512
|
eventId: string;
|
461
|
-
transactionId: string;
|
462
513
|
action: {
|
463
|
-
type:
|
464
|
-
|
514
|
+
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";
|
515
|
+
status: "Rejected" | "Requested" | "Accepted";
|
516
|
+
transactionId: string;
|
517
|
+
createdAt: string;
|
518
|
+
createdBy: string;
|
519
|
+
createdByRole: string;
|
520
|
+
declaration: Record<string, string | number | boolean | {
|
465
521
|
type: string;
|
466
522
|
filename: string;
|
467
523
|
originalFilename: string;
|
468
524
|
} | {
|
469
525
|
country: string;
|
470
526
|
district: string;
|
527
|
+
addressType: "DOMESTIC";
|
471
528
|
province: string;
|
472
529
|
urbanOrRural: "URBAN";
|
473
530
|
number?: string | null | undefined;
|
@@ -478,12 +535,14 @@ export declare const Draft: z.ZodObject<{
|
|
478
535
|
} | {
|
479
536
|
country: string;
|
480
537
|
district: string;
|
538
|
+
addressType: "DOMESTIC";
|
481
539
|
province: string;
|
482
540
|
urbanOrRural: "RURAL";
|
483
541
|
village?: string | null | undefined;
|
484
542
|
} | {
|
485
543
|
country: string;
|
486
544
|
state: string;
|
545
|
+
addressType: "INTERNATIONAL";
|
487
546
|
district2: string;
|
488
547
|
cityOrTown?: string | null | undefined;
|
489
548
|
addressLine1?: string | null | undefined;
|
@@ -495,17 +554,16 @@ export declare const Draft: z.ZodObject<{
|
|
495
554
|
option: string;
|
496
555
|
filename: string;
|
497
556
|
originalFilename: string;
|
498
|
-
}[]>;
|
499
|
-
createdAt: string;
|
500
|
-
createdBy: string;
|
557
|
+
}[] | [string, string] | undefined>;
|
501
558
|
createdAtLocation: string;
|
502
|
-
|
559
|
+
annotation?: Record<string, string | number | boolean | {
|
503
560
|
type: string;
|
504
561
|
filename: string;
|
505
562
|
originalFilename: string;
|
506
563
|
} | {
|
507
564
|
country: string;
|
508
565
|
district: string;
|
566
|
+
addressType: "DOMESTIC";
|
509
567
|
province: string;
|
510
568
|
urbanOrRural: "URBAN";
|
511
569
|
number?: string | null | undefined;
|
@@ -516,12 +574,14 @@ export declare const Draft: z.ZodObject<{
|
|
516
574
|
} | {
|
517
575
|
country: string;
|
518
576
|
district: string;
|
577
|
+
addressType: "DOMESTIC";
|
519
578
|
province: string;
|
520
579
|
urbanOrRural: "RURAL";
|
521
580
|
village?: string | null | undefined;
|
522
581
|
} | {
|
523
582
|
country: string;
|
524
583
|
state: string;
|
584
|
+
addressType: "INTERNATIONAL";
|
525
585
|
district2: string;
|
526
586
|
cityOrTown?: string | null | undefined;
|
527
587
|
addressLine1?: string | null | undefined;
|
@@ -533,13 +593,14 @@ export declare const Draft: z.ZodObject<{
|
|
533
593
|
option: string;
|
534
594
|
filename: string;
|
535
595
|
originalFilename: string;
|
536
|
-
}[]> | undefined;
|
596
|
+
}[] | [string, string] | undefined> | undefined;
|
597
|
+
originalActionId?: string | undefined;
|
537
598
|
};
|
538
599
|
}>;
|
539
600
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
540
601
|
eventId: z.ZodString;
|
541
602
|
transactionId: z.ZodString;
|
542
|
-
|
603
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
543
604
|
filename: z.ZodString;
|
544
605
|
originalFilename: z.ZodString;
|
545
606
|
type: z.ZodString;
|
@@ -567,7 +628,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
567
628
|
filename: string;
|
568
629
|
originalFilename: string;
|
569
630
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
570
|
-
country: z.
|
631
|
+
country: z.ZodString;
|
632
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
571
633
|
province: z.ZodString;
|
572
634
|
district: z.ZodString;
|
573
635
|
}, {
|
@@ -580,6 +642,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
580
642
|
}>, "strip", z.ZodTypeAny, {
|
581
643
|
country: string;
|
582
644
|
district: string;
|
645
|
+
addressType: "DOMESTIC";
|
583
646
|
province: string;
|
584
647
|
urbanOrRural: "URBAN";
|
585
648
|
number?: string | null | undefined;
|
@@ -590,6 +653,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
590
653
|
}, {
|
591
654
|
country: string;
|
592
655
|
district: string;
|
656
|
+
addressType: "DOMESTIC";
|
593
657
|
province: string;
|
594
658
|
urbanOrRural: "URBAN";
|
595
659
|
number?: string | null | undefined;
|
@@ -598,7 +662,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
598
662
|
street?: string | null | undefined;
|
599
663
|
zipCode?: string | null | undefined;
|
600
664
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
601
|
-
country: z.
|
665
|
+
country: z.ZodString;
|
666
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
602
667
|
province: z.ZodString;
|
603
668
|
district: z.ZodString;
|
604
669
|
}, {
|
@@ -607,17 +672,20 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
607
672
|
}>, "strip", z.ZodTypeAny, {
|
608
673
|
country: string;
|
609
674
|
district: string;
|
675
|
+
addressType: "DOMESTIC";
|
610
676
|
province: string;
|
611
677
|
urbanOrRural: "RURAL";
|
612
678
|
village?: string | null | undefined;
|
613
679
|
}, {
|
614
680
|
country: string;
|
615
681
|
district: string;
|
682
|
+
addressType: "DOMESTIC";
|
616
683
|
province: string;
|
617
684
|
urbanOrRural: "RURAL";
|
618
685
|
village?: string | null | undefined;
|
619
|
-
}>, z.ZodObject<{
|
620
|
-
country: z.
|
686
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
687
|
+
country: z.ZodString;
|
688
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
621
689
|
state: z.ZodString;
|
622
690
|
district2: z.ZodString;
|
623
691
|
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -628,6 +696,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
628
696
|
}, "strip", z.ZodTypeAny, {
|
629
697
|
country: string;
|
630
698
|
state: string;
|
699
|
+
addressType: "INTERNATIONAL";
|
631
700
|
district2: string;
|
632
701
|
cityOrTown?: string | null | undefined;
|
633
702
|
addressLine1?: string | null | undefined;
|
@@ -637,14 +706,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
637
706
|
}, {
|
638
707
|
country: string;
|
639
708
|
state: string;
|
709
|
+
addressType: "INTERNATIONAL";
|
640
710
|
district2: string;
|
641
711
|
cityOrTown?: string | null | undefined;
|
642
712
|
addressLine1?: string | null | undefined;
|
643
713
|
addressLine2?: string | null | undefined;
|
644
714
|
addressLine3?: string | null | undefined;
|
645
715
|
postcodeOrZip?: string | null | undefined;
|
646
|
-
}>]
|
647
|
-
|
716
|
+
}>]>>>;
|
717
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
648
718
|
filename: z.ZodString;
|
649
719
|
originalFilename: z.ZodString;
|
650
720
|
type: z.ZodString;
|
@@ -672,7 +742,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
672
742
|
filename: string;
|
673
743
|
originalFilename: string;
|
674
744
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
675
|
-
country: z.
|
745
|
+
country: z.ZodString;
|
746
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
676
747
|
province: z.ZodString;
|
677
748
|
district: z.ZodString;
|
678
749
|
}, {
|
@@ -685,6 +756,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
685
756
|
}>, "strip", z.ZodTypeAny, {
|
686
757
|
country: string;
|
687
758
|
district: string;
|
759
|
+
addressType: "DOMESTIC";
|
688
760
|
province: string;
|
689
761
|
urbanOrRural: "URBAN";
|
690
762
|
number?: string | null | undefined;
|
@@ -695,6 +767,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
695
767
|
}, {
|
696
768
|
country: string;
|
697
769
|
district: string;
|
770
|
+
addressType: "DOMESTIC";
|
698
771
|
province: string;
|
699
772
|
urbanOrRural: "URBAN";
|
700
773
|
number?: string | null | undefined;
|
@@ -703,7 +776,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
703
776
|
street?: string | null | undefined;
|
704
777
|
zipCode?: string | null | undefined;
|
705
778
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
706
|
-
country: z.
|
779
|
+
country: z.ZodString;
|
780
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
707
781
|
province: z.ZodString;
|
708
782
|
district: z.ZodString;
|
709
783
|
}, {
|
@@ -712,17 +786,20 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
712
786
|
}>, "strip", z.ZodTypeAny, {
|
713
787
|
country: string;
|
714
788
|
district: string;
|
789
|
+
addressType: "DOMESTIC";
|
715
790
|
province: string;
|
716
791
|
urbanOrRural: "RURAL";
|
717
792
|
village?: string | null | undefined;
|
718
793
|
}, {
|
719
794
|
country: string;
|
720
795
|
district: string;
|
796
|
+
addressType: "DOMESTIC";
|
721
797
|
province: string;
|
722
798
|
urbanOrRural: "RURAL";
|
723
799
|
village?: string | null | undefined;
|
724
|
-
}>, z.ZodObject<{
|
725
|
-
country: z.
|
800
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
801
|
+
country: z.ZodString;
|
802
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
726
803
|
state: z.ZodString;
|
727
804
|
district2: z.ZodString;
|
728
805
|
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -733,6 +810,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
733
810
|
}, "strip", z.ZodTypeAny, {
|
734
811
|
country: string;
|
735
812
|
state: string;
|
813
|
+
addressType: "INTERNATIONAL";
|
736
814
|
district2: string;
|
737
815
|
cityOrTown?: string | null | undefined;
|
738
816
|
addressLine1?: string | null | undefined;
|
@@ -742,6 +820,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
742
820
|
}, {
|
743
821
|
country: string;
|
744
822
|
state: string;
|
823
|
+
addressType: "INTERNATIONAL";
|
745
824
|
district2: string;
|
746
825
|
cityOrTown?: string | null | undefined;
|
747
826
|
addressLine1?: string | null | undefined;
|
@@ -749,17 +828,23 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
749
828
|
addressLine3?: string | null | undefined;
|
750
829
|
postcodeOrZip?: string | null | undefined;
|
751
830
|
}>]>>>;
|
831
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
832
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
752
833
|
}, {
|
753
|
-
type: z.ZodEnum<[
|
834
|
+
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"]>;
|
835
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
754
836
|
}>, "strip", z.ZodTypeAny, {
|
755
|
-
type:
|
756
|
-
|
837
|
+
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";
|
838
|
+
status: "Rejected" | "Requested" | "Accepted";
|
839
|
+
transactionId: string;
|
840
|
+
declaration: Record<string, string | number | boolean | {
|
757
841
|
type: string;
|
758
842
|
filename: string;
|
759
843
|
originalFilename: string;
|
760
844
|
} | {
|
761
845
|
country: string;
|
762
846
|
district: string;
|
847
|
+
addressType: "DOMESTIC";
|
763
848
|
province: string;
|
764
849
|
urbanOrRural: "URBAN";
|
765
850
|
number?: string | null | undefined;
|
@@ -770,12 +855,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
770
855
|
} | {
|
771
856
|
country: string;
|
772
857
|
district: string;
|
858
|
+
addressType: "DOMESTIC";
|
773
859
|
province: string;
|
774
860
|
urbanOrRural: "RURAL";
|
775
861
|
village?: string | null | undefined;
|
776
862
|
} | {
|
777
863
|
country: string;
|
778
864
|
state: string;
|
865
|
+
addressType: "INTERNATIONAL";
|
779
866
|
district2: string;
|
780
867
|
cityOrTown?: string | null | undefined;
|
781
868
|
addressLine1?: string | null | undefined;
|
@@ -787,16 +874,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
787
874
|
option: string;
|
788
875
|
filename: string;
|
789
876
|
originalFilename: string;
|
790
|
-
}[]>;
|
877
|
+
}[] | [string, string] | undefined>;
|
791
878
|
eventId: string;
|
792
|
-
|
793
|
-
metadata?: Record<string, string | number | boolean | {
|
879
|
+
annotation?: Record<string, string | number | boolean | {
|
794
880
|
type: string;
|
795
881
|
filename: string;
|
796
882
|
originalFilename: string;
|
797
883
|
} | {
|
798
884
|
country: string;
|
799
885
|
district: string;
|
886
|
+
addressType: "DOMESTIC";
|
800
887
|
province: string;
|
801
888
|
urbanOrRural: "URBAN";
|
802
889
|
number?: string | null | undefined;
|
@@ -807,12 +894,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
807
894
|
} | {
|
808
895
|
country: string;
|
809
896
|
district: string;
|
897
|
+
addressType: "DOMESTIC";
|
810
898
|
province: string;
|
811
899
|
urbanOrRural: "RURAL";
|
812
900
|
village?: string | null | undefined;
|
813
901
|
} | {
|
814
902
|
country: string;
|
815
903
|
state: string;
|
904
|
+
addressType: "INTERNATIONAL";
|
816
905
|
district2: string;
|
817
906
|
cityOrTown?: string | null | undefined;
|
818
907
|
addressLine1?: string | null | undefined;
|
@@ -824,16 +913,22 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
824
913
|
option: string;
|
825
914
|
filename: string;
|
826
915
|
originalFilename: string;
|
827
|
-
}[]> | undefined;
|
916
|
+
}[] | [string, string] | undefined> | undefined;
|
917
|
+
originalActionId?: string | undefined;
|
918
|
+
keepAssignment?: boolean | undefined;
|
828
919
|
}, {
|
829
|
-
type:
|
830
|
-
|
920
|
+
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";
|
921
|
+
status: "Rejected" | "Requested" | "Accepted";
|
922
|
+
transactionId: string;
|
923
|
+
eventId: string;
|
924
|
+
declaration?: Record<string, string | number | boolean | {
|
831
925
|
type: string;
|
832
926
|
filename: string;
|
833
927
|
originalFilename: string;
|
834
928
|
} | {
|
835
929
|
country: string;
|
836
930
|
district: string;
|
931
|
+
addressType: "DOMESTIC";
|
837
932
|
province: string;
|
838
933
|
urbanOrRural: "URBAN";
|
839
934
|
number?: string | null | undefined;
|
@@ -844,12 +939,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
844
939
|
} | {
|
845
940
|
country: string;
|
846
941
|
district: string;
|
942
|
+
addressType: "DOMESTIC";
|
847
943
|
province: string;
|
848
944
|
urbanOrRural: "RURAL";
|
849
945
|
village?: string | null | undefined;
|
850
946
|
} | {
|
851
947
|
country: string;
|
852
948
|
state: string;
|
949
|
+
addressType: "INTERNATIONAL";
|
853
950
|
district2: string;
|
854
951
|
cityOrTown?: string | null | undefined;
|
855
952
|
addressLine1?: string | null | undefined;
|
@@ -861,16 +958,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
861
958
|
option: string;
|
862
959
|
filename: string;
|
863
960
|
originalFilename: string;
|
864
|
-
}[]
|
865
|
-
|
866
|
-
transactionId: string;
|
867
|
-
metadata?: Record<string, string | number | boolean | {
|
961
|
+
}[] | [string, string] | undefined> | undefined;
|
962
|
+
annotation?: Record<string, string | number | boolean | {
|
868
963
|
type: string;
|
869
964
|
filename: string;
|
870
965
|
originalFilename: string;
|
871
966
|
} | {
|
872
967
|
country: string;
|
873
968
|
district: string;
|
969
|
+
addressType: "DOMESTIC";
|
874
970
|
province: string;
|
875
971
|
urbanOrRural: "URBAN";
|
876
972
|
number?: string | null | undefined;
|
@@ -881,12 +977,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
881
977
|
} | {
|
882
978
|
country: string;
|
883
979
|
district: string;
|
980
|
+
addressType: "DOMESTIC";
|
884
981
|
province: string;
|
885
982
|
urbanOrRural: "RURAL";
|
886
983
|
village?: string | null | undefined;
|
887
984
|
} | {
|
888
985
|
country: string;
|
889
986
|
state: string;
|
987
|
+
addressType: "INTERNATIONAL";
|
890
988
|
district2: string;
|
891
989
|
cityOrTown?: string | null | undefined;
|
892
990
|
addressLine1?: string | null | undefined;
|
@@ -898,7 +996,9 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
898
996
|
option: string;
|
899
997
|
filename: string;
|
900
998
|
originalFilename: string;
|
901
|
-
}[]> | undefined;
|
999
|
+
}[] | [string, string] | undefined> | undefined;
|
1000
|
+
originalActionId?: string | undefined;
|
1001
|
+
keepAssignment?: boolean | undefined;
|
902
1002
|
}>;
|
903
1003
|
export type Draft = z.infer<typeof Draft>;
|
904
1004
|
export type DraftInput = z.infer<typeof DraftInput>;
|