@opencrvs/toolkit 1.8.0-rc.fd6feaa → 1.8.0-rc.fea3888
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 +10466 -13734
- 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 +85746 -1981
- package/dist/commons/events/ActionDocument.d.ts +8433 -503
- 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 +371 -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 +174 -72
- package/dist/commons/events/EventConfig.d.ts +40845 -1776
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +1897 -619
- package/dist/commons/events/EventIndex.d.ts +921 -7
- package/dist/commons/events/EventInput.d.ts +13 -0
- package/dist/commons/events/EventMetadata.d.ts +16 -3
- package/dist/commons/events/FieldConfig.d.ts +3911 -759
- package/dist/commons/events/FieldType.d.ts +2 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +57 -8
- package/dist/commons/events/FieldValue.d.ts +31 -11
- package/dist/commons/events/FormConfig.d.ts +38982 -69
- package/dist/commons/events/PageConfig.d.ts +9803 -0
- package/dist/commons/events/SummaryConfig.d.ts +81 -42
- 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 +44 -20
- package/dist/commons/events/defineConfig.d.ts +6749 -224
- package/dist/commons/events/event.d.ts +25 -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 +3444 -118
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/conditionals/index.js +196 -108
- package/dist/events/index.js +1984 -1136
- 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.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.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;
|
@@ -219,18 +238,27 @@ export declare const Draft: z.ZodObject<{
|
|
219
238
|
addressLine3?: string | null | undefined;
|
220
239
|
postcodeOrZip?: string | null | undefined;
|
221
240
|
}>]>>>;
|
222
|
-
createdAtLocation: z.ZodString
|
241
|
+
createdAtLocation: z.ZodOptional<z.ZodString>;
|
242
|
+
updatedAtLocation: z.ZodOptional<z.ZodString>;
|
243
|
+
status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
|
244
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
223
245
|
}, {
|
224
|
-
type: z.ZodEnum<[
|
246
|
+
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
247
|
}>, "id">, "strip", z.ZodTypeAny, {
|
226
|
-
type:
|
227
|
-
|
248
|
+
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";
|
249
|
+
status: "Rejected" | "Requested" | "Accepted";
|
250
|
+
transactionId: string;
|
251
|
+
createdAt: string;
|
252
|
+
createdBy: string;
|
253
|
+
createdByRole: string;
|
254
|
+
declaration: Record<string, string | number | boolean | {
|
228
255
|
type: string;
|
229
256
|
filename: string;
|
230
257
|
originalFilename: string;
|
231
258
|
} | {
|
232
259
|
country: string;
|
233
260
|
district: string;
|
261
|
+
addressType: "DOMESTIC";
|
234
262
|
province: string;
|
235
263
|
urbanOrRural: "URBAN";
|
236
264
|
number?: string | null | undefined;
|
@@ -241,12 +269,14 @@ export declare const Draft: z.ZodObject<{
|
|
241
269
|
} | {
|
242
270
|
country: string;
|
243
271
|
district: string;
|
272
|
+
addressType: "DOMESTIC";
|
244
273
|
province: string;
|
245
274
|
urbanOrRural: "RURAL";
|
246
275
|
village?: string | null | undefined;
|
247
276
|
} | {
|
248
277
|
country: string;
|
249
278
|
state: string;
|
279
|
+
addressType: "INTERNATIONAL";
|
250
280
|
district2: string;
|
251
281
|
cityOrTown?: string | null | undefined;
|
252
282
|
addressLine1?: string | null | undefined;
|
@@ -258,17 +288,15 @@ export declare const Draft: z.ZodObject<{
|
|
258
288
|
option: string;
|
259
289
|
filename: string;
|
260
290
|
originalFilename: string;
|
261
|
-
}[]>;
|
262
|
-
|
263
|
-
createdBy: string;
|
264
|
-
createdAtLocation: string;
|
265
|
-
metadata?: Record<string, string | number | boolean | {
|
291
|
+
}[] | undefined>;
|
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,25 @@ export declare const Draft: z.ZodObject<{
|
|
296
326
|
option: string;
|
297
327
|
filename: string;
|
298
328
|
originalFilename: string;
|
299
|
-
}[]> | undefined;
|
329
|
+
}[] | undefined> | undefined;
|
330
|
+
createdAtLocation?: string | undefined;
|
331
|
+
updatedAtLocation?: string | undefined;
|
332
|
+
originalActionId?: string | undefined;
|
300
333
|
}, {
|
301
|
-
type:
|
302
|
-
|
334
|
+
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";
|
335
|
+
status: "Rejected" | "Requested" | "Accepted";
|
336
|
+
transactionId: string;
|
337
|
+
createdAt: string;
|
338
|
+
createdBy: string;
|
339
|
+
createdByRole: string;
|
340
|
+
declaration: Record<string, string | number | boolean | {
|
303
341
|
type: string;
|
304
342
|
filename: string;
|
305
343
|
originalFilename: string;
|
306
344
|
} | {
|
307
345
|
country: string;
|
308
346
|
district: string;
|
347
|
+
addressType: "DOMESTIC";
|
309
348
|
province: string;
|
310
349
|
urbanOrRural: "URBAN";
|
311
350
|
number?: string | null | undefined;
|
@@ -316,12 +355,14 @@ export declare const Draft: z.ZodObject<{
|
|
316
355
|
} | {
|
317
356
|
country: string;
|
318
357
|
district: string;
|
358
|
+
addressType: "DOMESTIC";
|
319
359
|
province: string;
|
320
360
|
urbanOrRural: "RURAL";
|
321
361
|
village?: string | null | undefined;
|
322
362
|
} | {
|
323
363
|
country: string;
|
324
364
|
state: string;
|
365
|
+
addressType: "INTERNATIONAL";
|
325
366
|
district2: string;
|
326
367
|
cityOrTown?: string | null | undefined;
|
327
368
|
addressLine1?: string | null | undefined;
|
@@ -333,17 +374,15 @@ export declare const Draft: z.ZodObject<{
|
|
333
374
|
option: string;
|
334
375
|
filename: string;
|
335
376
|
originalFilename: string;
|
336
|
-
}[]>;
|
337
|
-
|
338
|
-
createdBy: string;
|
339
|
-
createdAtLocation: string;
|
340
|
-
metadata?: Record<string, string | number | boolean | {
|
377
|
+
}[] | undefined>;
|
378
|
+
annotation?: Record<string, string | number | boolean | {
|
341
379
|
type: string;
|
342
380
|
filename: string;
|
343
381
|
originalFilename: string;
|
344
382
|
} | {
|
345
383
|
country: string;
|
346
384
|
district: string;
|
385
|
+
addressType: "DOMESTIC";
|
347
386
|
province: string;
|
348
387
|
urbanOrRural: "URBAN";
|
349
388
|
number?: string | null | undefined;
|
@@ -354,12 +393,14 @@ export declare const Draft: z.ZodObject<{
|
|
354
393
|
} | {
|
355
394
|
country: string;
|
356
395
|
district: string;
|
396
|
+
addressType: "DOMESTIC";
|
357
397
|
province: string;
|
358
398
|
urbanOrRural: "RURAL";
|
359
399
|
village?: string | null | undefined;
|
360
400
|
} | {
|
361
401
|
country: string;
|
362
402
|
state: string;
|
403
|
+
addressType: "INTERNATIONAL";
|
363
404
|
district2: string;
|
364
405
|
cityOrTown?: string | null | undefined;
|
365
406
|
addressLine1?: string | null | undefined;
|
@@ -371,22 +412,31 @@ export declare const Draft: z.ZodObject<{
|
|
371
412
|
option: string;
|
372
413
|
filename: string;
|
373
414
|
originalFilename: string;
|
374
|
-
}[]> | undefined;
|
415
|
+
}[] | undefined> | undefined;
|
416
|
+
createdAtLocation?: string | undefined;
|
417
|
+
updatedAtLocation?: string | undefined;
|
418
|
+
originalActionId?: string | undefined;
|
375
419
|
}>;
|
376
420
|
}, "strip", z.ZodTypeAny, {
|
377
421
|
id: string;
|
422
|
+
transactionId: string;
|
378
423
|
createdAt: string;
|
379
424
|
eventId: string;
|
380
|
-
transactionId: string;
|
381
425
|
action: {
|
382
|
-
type:
|
383
|
-
|
426
|
+
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";
|
427
|
+
status: "Rejected" | "Requested" | "Accepted";
|
428
|
+
transactionId: string;
|
429
|
+
createdAt: string;
|
430
|
+
createdBy: string;
|
431
|
+
createdByRole: string;
|
432
|
+
declaration: Record<string, string | number | boolean | {
|
384
433
|
type: string;
|
385
434
|
filename: string;
|
386
435
|
originalFilename: string;
|
387
436
|
} | {
|
388
437
|
country: string;
|
389
438
|
district: string;
|
439
|
+
addressType: "DOMESTIC";
|
390
440
|
province: string;
|
391
441
|
urbanOrRural: "URBAN";
|
392
442
|
number?: string | null | undefined;
|
@@ -397,12 +447,14 @@ export declare const Draft: z.ZodObject<{
|
|
397
447
|
} | {
|
398
448
|
country: string;
|
399
449
|
district: string;
|
450
|
+
addressType: "DOMESTIC";
|
400
451
|
province: string;
|
401
452
|
urbanOrRural: "RURAL";
|
402
453
|
village?: string | null | undefined;
|
403
454
|
} | {
|
404
455
|
country: string;
|
405
456
|
state: string;
|
457
|
+
addressType: "INTERNATIONAL";
|
406
458
|
district2: string;
|
407
459
|
cityOrTown?: string | null | undefined;
|
408
460
|
addressLine1?: string | null | undefined;
|
@@ -414,17 +466,15 @@ export declare const Draft: z.ZodObject<{
|
|
414
466
|
option: string;
|
415
467
|
filename: string;
|
416
468
|
originalFilename: string;
|
417
|
-
}[]>;
|
418
|
-
|
419
|
-
createdBy: string;
|
420
|
-
createdAtLocation: string;
|
421
|
-
metadata?: Record<string, string | number | boolean | {
|
469
|
+
}[] | undefined>;
|
470
|
+
annotation?: Record<string, string | number | boolean | {
|
422
471
|
type: string;
|
423
472
|
filename: string;
|
424
473
|
originalFilename: string;
|
425
474
|
} | {
|
426
475
|
country: string;
|
427
476
|
district: string;
|
477
|
+
addressType: "DOMESTIC";
|
428
478
|
province: string;
|
429
479
|
urbanOrRural: "URBAN";
|
430
480
|
number?: string | null | undefined;
|
@@ -435,12 +485,14 @@ export declare const Draft: z.ZodObject<{
|
|
435
485
|
} | {
|
436
486
|
country: string;
|
437
487
|
district: string;
|
488
|
+
addressType: "DOMESTIC";
|
438
489
|
province: string;
|
439
490
|
urbanOrRural: "RURAL";
|
440
491
|
village?: string | null | undefined;
|
441
492
|
} | {
|
442
493
|
country: string;
|
443
494
|
state: string;
|
495
|
+
addressType: "INTERNATIONAL";
|
444
496
|
district2: string;
|
445
497
|
cityOrTown?: string | null | undefined;
|
446
498
|
addressLine1?: string | null | undefined;
|
@@ -452,22 +504,31 @@ export declare const Draft: z.ZodObject<{
|
|
452
504
|
option: string;
|
453
505
|
filename: string;
|
454
506
|
originalFilename: string;
|
455
|
-
}[]> | undefined;
|
507
|
+
}[] | undefined> | undefined;
|
508
|
+
createdAtLocation?: string | undefined;
|
509
|
+
updatedAtLocation?: string | undefined;
|
510
|
+
originalActionId?: string | undefined;
|
456
511
|
};
|
457
512
|
}, {
|
458
513
|
id: string;
|
514
|
+
transactionId: string;
|
459
515
|
createdAt: string;
|
460
516
|
eventId: string;
|
461
|
-
transactionId: string;
|
462
517
|
action: {
|
463
|
-
type:
|
464
|
-
|
518
|
+
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";
|
519
|
+
status: "Rejected" | "Requested" | "Accepted";
|
520
|
+
transactionId: string;
|
521
|
+
createdAt: string;
|
522
|
+
createdBy: string;
|
523
|
+
createdByRole: string;
|
524
|
+
declaration: Record<string, string | number | boolean | {
|
465
525
|
type: string;
|
466
526
|
filename: string;
|
467
527
|
originalFilename: string;
|
468
528
|
} | {
|
469
529
|
country: string;
|
470
530
|
district: string;
|
531
|
+
addressType: "DOMESTIC";
|
471
532
|
province: string;
|
472
533
|
urbanOrRural: "URBAN";
|
473
534
|
number?: string | null | undefined;
|
@@ -478,12 +539,14 @@ export declare const Draft: z.ZodObject<{
|
|
478
539
|
} | {
|
479
540
|
country: string;
|
480
541
|
district: string;
|
542
|
+
addressType: "DOMESTIC";
|
481
543
|
province: string;
|
482
544
|
urbanOrRural: "RURAL";
|
483
545
|
village?: string | null | undefined;
|
484
546
|
} | {
|
485
547
|
country: string;
|
486
548
|
state: string;
|
549
|
+
addressType: "INTERNATIONAL";
|
487
550
|
district2: string;
|
488
551
|
cityOrTown?: string | null | undefined;
|
489
552
|
addressLine1?: string | null | undefined;
|
@@ -495,17 +558,15 @@ export declare const Draft: z.ZodObject<{
|
|
495
558
|
option: string;
|
496
559
|
filename: string;
|
497
560
|
originalFilename: string;
|
498
|
-
}[]>;
|
499
|
-
|
500
|
-
createdBy: string;
|
501
|
-
createdAtLocation: string;
|
502
|
-
metadata?: Record<string, string | number | boolean | {
|
561
|
+
}[] | undefined>;
|
562
|
+
annotation?: Record<string, string | number | boolean | {
|
503
563
|
type: string;
|
504
564
|
filename: string;
|
505
565
|
originalFilename: string;
|
506
566
|
} | {
|
507
567
|
country: string;
|
508
568
|
district: string;
|
569
|
+
addressType: "DOMESTIC";
|
509
570
|
province: string;
|
510
571
|
urbanOrRural: "URBAN";
|
511
572
|
number?: string | null | undefined;
|
@@ -516,12 +577,14 @@ export declare const Draft: z.ZodObject<{
|
|
516
577
|
} | {
|
517
578
|
country: string;
|
518
579
|
district: string;
|
580
|
+
addressType: "DOMESTIC";
|
519
581
|
province: string;
|
520
582
|
urbanOrRural: "RURAL";
|
521
583
|
village?: string | null | undefined;
|
522
584
|
} | {
|
523
585
|
country: string;
|
524
586
|
state: string;
|
587
|
+
addressType: "INTERNATIONAL";
|
525
588
|
district2: string;
|
526
589
|
cityOrTown?: string | null | undefined;
|
527
590
|
addressLine1?: string | null | undefined;
|
@@ -533,13 +596,16 @@ export declare const Draft: z.ZodObject<{
|
|
533
596
|
option: string;
|
534
597
|
filename: string;
|
535
598
|
originalFilename: string;
|
536
|
-
}[]> | undefined;
|
599
|
+
}[] | undefined> | undefined;
|
600
|
+
createdAtLocation?: string | undefined;
|
601
|
+
updatedAtLocation?: string | undefined;
|
602
|
+
originalActionId?: string | undefined;
|
537
603
|
};
|
538
604
|
}>;
|
539
605
|
export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
540
606
|
eventId: z.ZodString;
|
541
607
|
transactionId: z.ZodString;
|
542
|
-
|
608
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
543
609
|
filename: z.ZodString;
|
544
610
|
originalFilename: z.ZodString;
|
545
611
|
type: z.ZodString;
|
@@ -567,7 +633,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
567
633
|
filename: string;
|
568
634
|
originalFilename: string;
|
569
635
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
570
|
-
country: z.
|
636
|
+
country: z.ZodString;
|
637
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
571
638
|
province: z.ZodString;
|
572
639
|
district: z.ZodString;
|
573
640
|
}, {
|
@@ -580,6 +647,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
580
647
|
}>, "strip", z.ZodTypeAny, {
|
581
648
|
country: string;
|
582
649
|
district: string;
|
650
|
+
addressType: "DOMESTIC";
|
583
651
|
province: string;
|
584
652
|
urbanOrRural: "URBAN";
|
585
653
|
number?: string | null | undefined;
|
@@ -590,6 +658,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
590
658
|
}, {
|
591
659
|
country: string;
|
592
660
|
district: string;
|
661
|
+
addressType: "DOMESTIC";
|
593
662
|
province: string;
|
594
663
|
urbanOrRural: "URBAN";
|
595
664
|
number?: string | null | undefined;
|
@@ -598,7 +667,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
598
667
|
street?: string | null | undefined;
|
599
668
|
zipCode?: string | null | undefined;
|
600
669
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
601
|
-
country: z.
|
670
|
+
country: z.ZodString;
|
671
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
602
672
|
province: z.ZodString;
|
603
673
|
district: z.ZodString;
|
604
674
|
}, {
|
@@ -607,17 +677,20 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
607
677
|
}>, "strip", z.ZodTypeAny, {
|
608
678
|
country: string;
|
609
679
|
district: string;
|
680
|
+
addressType: "DOMESTIC";
|
610
681
|
province: string;
|
611
682
|
urbanOrRural: "RURAL";
|
612
683
|
village?: string | null | undefined;
|
613
684
|
}, {
|
614
685
|
country: string;
|
615
686
|
district: string;
|
687
|
+
addressType: "DOMESTIC";
|
616
688
|
province: string;
|
617
689
|
urbanOrRural: "RURAL";
|
618
690
|
village?: string | null | undefined;
|
619
|
-
}>, z.ZodObject<{
|
620
|
-
country: z.
|
691
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
692
|
+
country: z.ZodString;
|
693
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
621
694
|
state: z.ZodString;
|
622
695
|
district2: z.ZodString;
|
623
696
|
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -628,6 +701,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
628
701
|
}, "strip", z.ZodTypeAny, {
|
629
702
|
country: string;
|
630
703
|
state: string;
|
704
|
+
addressType: "INTERNATIONAL";
|
631
705
|
district2: string;
|
632
706
|
cityOrTown?: string | null | undefined;
|
633
707
|
addressLine1?: string | null | undefined;
|
@@ -637,14 +711,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
637
711
|
}, {
|
638
712
|
country: string;
|
639
713
|
state: string;
|
714
|
+
addressType: "INTERNATIONAL";
|
640
715
|
district2: string;
|
641
716
|
cityOrTown?: string | null | undefined;
|
642
717
|
addressLine1?: string | null | undefined;
|
643
718
|
addressLine2?: string | null | undefined;
|
644
719
|
addressLine3?: string | null | undefined;
|
645
720
|
postcodeOrZip?: string | null | undefined;
|
646
|
-
}>]
|
647
|
-
|
721
|
+
}>]>>>;
|
722
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
|
648
723
|
filename: z.ZodString;
|
649
724
|
originalFilename: z.ZodString;
|
650
725
|
type: z.ZodString;
|
@@ -672,7 +747,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
672
747
|
filename: string;
|
673
748
|
originalFilename: string;
|
674
749
|
}>, "many">, z.ZodObject<z.objectUtil.extendShape<{
|
675
|
-
country: z.
|
750
|
+
country: z.ZodString;
|
751
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
676
752
|
province: z.ZodString;
|
677
753
|
district: z.ZodString;
|
678
754
|
}, {
|
@@ -685,6 +761,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
685
761
|
}>, "strip", z.ZodTypeAny, {
|
686
762
|
country: string;
|
687
763
|
district: string;
|
764
|
+
addressType: "DOMESTIC";
|
688
765
|
province: string;
|
689
766
|
urbanOrRural: "URBAN";
|
690
767
|
number?: string | null | undefined;
|
@@ -695,6 +772,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
695
772
|
}, {
|
696
773
|
country: string;
|
697
774
|
district: string;
|
775
|
+
addressType: "DOMESTIC";
|
698
776
|
province: string;
|
699
777
|
urbanOrRural: "URBAN";
|
700
778
|
number?: string | null | undefined;
|
@@ -703,7 +781,8 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
703
781
|
street?: string | null | undefined;
|
704
782
|
zipCode?: string | null | undefined;
|
705
783
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
706
|
-
country: z.
|
784
|
+
country: z.ZodString;
|
785
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
707
786
|
province: z.ZodString;
|
708
787
|
district: z.ZodString;
|
709
788
|
}, {
|
@@ -712,17 +791,20 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
712
791
|
}>, "strip", z.ZodTypeAny, {
|
713
792
|
country: string;
|
714
793
|
district: string;
|
794
|
+
addressType: "DOMESTIC";
|
715
795
|
province: string;
|
716
796
|
urbanOrRural: "RURAL";
|
717
797
|
village?: string | null | undefined;
|
718
798
|
}, {
|
719
799
|
country: string;
|
720
800
|
district: string;
|
801
|
+
addressType: "DOMESTIC";
|
721
802
|
province: string;
|
722
803
|
urbanOrRural: "RURAL";
|
723
804
|
village?: string | null | undefined;
|
724
|
-
}>, z.ZodObject<{
|
725
|
-
country: z.
|
805
|
+
}>, z.ZodUndefined, z.ZodObject<{
|
806
|
+
country: z.ZodString;
|
807
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
726
808
|
state: z.ZodString;
|
727
809
|
district2: z.ZodString;
|
728
810
|
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -733,6 +815,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
733
815
|
}, "strip", z.ZodTypeAny, {
|
734
816
|
country: string;
|
735
817
|
state: string;
|
818
|
+
addressType: "INTERNATIONAL";
|
736
819
|
district2: string;
|
737
820
|
cityOrTown?: string | null | undefined;
|
738
821
|
addressLine1?: string | null | undefined;
|
@@ -742,6 +825,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
742
825
|
}, {
|
743
826
|
country: string;
|
744
827
|
state: string;
|
828
|
+
addressType: "INTERNATIONAL";
|
745
829
|
district2: string;
|
746
830
|
cityOrTown?: string | null | undefined;
|
747
831
|
addressLine1?: string | null | undefined;
|
@@ -749,17 +833,21 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
749
833
|
addressLine3?: string | null | undefined;
|
750
834
|
postcodeOrZip?: string | null | undefined;
|
751
835
|
}>]>>>;
|
836
|
+
originalActionId: z.ZodOptional<z.ZodString>;
|
837
|
+
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
752
838
|
}, {
|
753
|
-
type: z.ZodEnum<[
|
839
|
+
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"]>;
|
754
840
|
}>, "strip", z.ZodTypeAny, {
|
755
|
-
type:
|
756
|
-
|
841
|
+
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";
|
842
|
+
transactionId: string;
|
843
|
+
declaration: Record<string, string | number | boolean | {
|
757
844
|
type: string;
|
758
845
|
filename: string;
|
759
846
|
originalFilename: string;
|
760
847
|
} | {
|
761
848
|
country: string;
|
762
849
|
district: string;
|
850
|
+
addressType: "DOMESTIC";
|
763
851
|
province: string;
|
764
852
|
urbanOrRural: "URBAN";
|
765
853
|
number?: string | null | undefined;
|
@@ -770,12 +858,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
770
858
|
} | {
|
771
859
|
country: string;
|
772
860
|
district: string;
|
861
|
+
addressType: "DOMESTIC";
|
773
862
|
province: string;
|
774
863
|
urbanOrRural: "RURAL";
|
775
864
|
village?: string | null | undefined;
|
776
865
|
} | {
|
777
866
|
country: string;
|
778
867
|
state: string;
|
868
|
+
addressType: "INTERNATIONAL";
|
779
869
|
district2: string;
|
780
870
|
cityOrTown?: string | null | undefined;
|
781
871
|
addressLine1?: string | null | undefined;
|
@@ -787,16 +877,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
787
877
|
option: string;
|
788
878
|
filename: string;
|
789
879
|
originalFilename: string;
|
790
|
-
}[]>;
|
880
|
+
}[] | undefined>;
|
791
881
|
eventId: string;
|
792
|
-
|
793
|
-
metadata?: Record<string, string | number | boolean | {
|
882
|
+
annotation?: Record<string, string | number | boolean | {
|
794
883
|
type: string;
|
795
884
|
filename: string;
|
796
885
|
originalFilename: string;
|
797
886
|
} | {
|
798
887
|
country: string;
|
799
888
|
district: string;
|
889
|
+
addressType: "DOMESTIC";
|
800
890
|
province: string;
|
801
891
|
urbanOrRural: "URBAN";
|
802
892
|
number?: string | null | undefined;
|
@@ -807,12 +897,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
807
897
|
} | {
|
808
898
|
country: string;
|
809
899
|
district: string;
|
900
|
+
addressType: "DOMESTIC";
|
810
901
|
province: string;
|
811
902
|
urbanOrRural: "RURAL";
|
812
903
|
village?: string | null | undefined;
|
813
904
|
} | {
|
814
905
|
country: string;
|
815
906
|
state: string;
|
907
|
+
addressType: "INTERNATIONAL";
|
816
908
|
district2: string;
|
817
909
|
cityOrTown?: string | null | undefined;
|
818
910
|
addressLine1?: string | null | undefined;
|
@@ -824,16 +916,21 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
824
916
|
option: string;
|
825
917
|
filename: string;
|
826
918
|
originalFilename: string;
|
827
|
-
}[]> | undefined;
|
919
|
+
}[] | undefined> | undefined;
|
920
|
+
originalActionId?: string | undefined;
|
921
|
+
keepAssignment?: boolean | undefined;
|
828
922
|
}, {
|
829
|
-
type:
|
830
|
-
|
923
|
+
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";
|
924
|
+
transactionId: string;
|
925
|
+
eventId: string;
|
926
|
+
declaration?: Record<string, string | number | boolean | {
|
831
927
|
type: string;
|
832
928
|
filename: string;
|
833
929
|
originalFilename: string;
|
834
930
|
} | {
|
835
931
|
country: string;
|
836
932
|
district: string;
|
933
|
+
addressType: "DOMESTIC";
|
837
934
|
province: string;
|
838
935
|
urbanOrRural: "URBAN";
|
839
936
|
number?: string | null | undefined;
|
@@ -844,12 +941,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
844
941
|
} | {
|
845
942
|
country: string;
|
846
943
|
district: string;
|
944
|
+
addressType: "DOMESTIC";
|
847
945
|
province: string;
|
848
946
|
urbanOrRural: "RURAL";
|
849
947
|
village?: string | null | undefined;
|
850
948
|
} | {
|
851
949
|
country: string;
|
852
950
|
state: string;
|
951
|
+
addressType: "INTERNATIONAL";
|
853
952
|
district2: string;
|
854
953
|
cityOrTown?: string | null | undefined;
|
855
954
|
addressLine1?: string | null | undefined;
|
@@ -861,16 +960,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
861
960
|
option: string;
|
862
961
|
filename: string;
|
863
962
|
originalFilename: string;
|
864
|
-
}[]
|
865
|
-
|
866
|
-
transactionId: string;
|
867
|
-
metadata?: Record<string, string | number | boolean | {
|
963
|
+
}[] | undefined> | undefined;
|
964
|
+
annotation?: Record<string, string | number | boolean | {
|
868
965
|
type: string;
|
869
966
|
filename: string;
|
870
967
|
originalFilename: string;
|
871
968
|
} | {
|
872
969
|
country: string;
|
873
970
|
district: string;
|
971
|
+
addressType: "DOMESTIC";
|
874
972
|
province: string;
|
875
973
|
urbanOrRural: "URBAN";
|
876
974
|
number?: string | null | undefined;
|
@@ -881,12 +979,14 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
881
979
|
} | {
|
882
980
|
country: string;
|
883
981
|
district: string;
|
982
|
+
addressType: "DOMESTIC";
|
884
983
|
province: string;
|
885
984
|
urbanOrRural: "RURAL";
|
886
985
|
village?: string | null | undefined;
|
887
986
|
} | {
|
888
987
|
country: string;
|
889
988
|
state: string;
|
989
|
+
addressType: "INTERNATIONAL";
|
890
990
|
district2: string;
|
891
991
|
cityOrTown?: string | null | undefined;
|
892
992
|
addressLine1?: string | null | undefined;
|
@@ -898,7 +998,9 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
|
|
898
998
|
option: string;
|
899
999
|
filename: string;
|
900
1000
|
originalFilename: string;
|
901
|
-
}[]> | undefined;
|
1001
|
+
}[] | undefined> | undefined;
|
1002
|
+
originalActionId?: string | undefined;
|
1003
|
+
keepAssignment?: boolean | undefined;
|
902
1004
|
}>;
|
903
1005
|
export type Draft = z.infer<typeof Draft>;
|
904
1006
|
export type DraftInput = z.infer<typeof DraftInput>;
|