@opencrvs/toolkit 1.8.0-rc.fe799b0 → 1.8.0-rc.fe7c504

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.
Files changed (49) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +12626 -10500
  3. package/dist/commons/conditionals/conditionals.d.ts +37 -6
  4. package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
  5. package/dist/commons/conditionals/validate.d.ts +45 -17
  6. package/dist/commons/conditionals/validate.test.d.ts +2 -0
  7. package/dist/commons/events/ActionConfig.d.ts +119422 -2084
  8. package/dist/commons/events/ActionDocument.d.ts +11632 -435
  9. package/dist/commons/events/ActionInput.d.ts +6716 -663
  10. package/dist/commons/events/ActionType.d.ts +31 -12
  11. package/dist/commons/events/AdvancedSearchConfig.d.ts +1233 -22
  12. package/dist/commons/events/CompositeFieldValue.d.ts +183 -2
  13. package/dist/commons/events/Conditional.d.ts +21 -5
  14. package/dist/commons/events/Constants.d.ts +3 -0
  15. package/dist/commons/events/CountryConfigQueryInput.d.ts +3730 -0
  16. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  17. package/dist/commons/events/Draft.d.ts +488 -69
  18. package/dist/commons/events/EventConfig.d.ts +57615 -1821
  19. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  20. package/dist/commons/events/EventDocument.d.ts +4762 -607
  21. package/dist/commons/events/EventIndex.d.ts +2012 -24
  22. package/dist/commons/events/EventMetadata.d.ts +343 -42
  23. package/dist/commons/events/FieldConfig.d.ts +6001 -972
  24. package/dist/commons/events/FieldType.d.ts +10 -2
  25. package/dist/commons/events/FieldTypeMapping.d.ts +218 -18
  26. package/dist/commons/events/FieldValue.d.ts +123 -8
  27. package/dist/commons/events/FormConfig.d.ts +50409 -90
  28. package/dist/commons/events/PageConfig.d.ts +12597 -0
  29. package/dist/commons/events/SummaryConfig.d.ts +93 -42
  30. package/dist/commons/events/TemplateConfig.d.ts +38 -0
  31. package/dist/commons/events/User.d.ts +34 -2
  32. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  33. package/dist/commons/events/WorkqueueConfig.d.ts +7300 -20
  34. package/dist/commons/events/defineConfig.d.ts +9405 -307
  35. package/dist/commons/events/event.d.ts +54 -0
  36. package/dist/commons/events/field.d.ts +82 -0
  37. package/dist/commons/events/index.d.ts +11 -1
  38. package/dist/commons/events/scopes.d.ts +44 -0
  39. package/dist/commons/events/serializer.d.ts +2 -0
  40. package/dist/commons/events/test.utils.d.ts +245 -225
  41. package/dist/commons/events/transactions.d.ts +1 -1
  42. package/dist/commons/events/utils.d.ts +13906 -69
  43. package/dist/commons/events/utils.test.d.ts +2 -0
  44. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  45. package/dist/conditionals/index.js +244 -115
  46. package/dist/events/index.js +5263 -1871
  47. package/dist/scopes/index.d.ts +247 -1
  48. package/dist/scopes/index.js +231 -1
  49. package/package.json +4 -3
@@ -1,15 +1,19 @@
1
1
  import { z } from 'zod';
2
- import { ActionType } from './ActionType';
3
2
  export declare const Draft: z.ZodObject<{
4
- id: z.ZodString;
5
- eventId: z.ZodString;
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
4
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
6
5
  transactionId: z.ZodString;
7
6
  createdAt: z.ZodString;
8
7
  action: z.ZodObject<Omit<z.objectUtil.extendShape<{
9
- id: z.ZodString;
8
+ id: z.ZodBranded<z.ZodString, "UUID">;
9
+ transactionId: z.ZodString;
10
+ createdByUserType: z.ZodEnum<["user", "system"]>;
10
11
  createdAt: z.ZodString;
11
12
  createdBy: z.ZodString;
12
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13
+ createdByRole: z.ZodString;
14
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
16
+ 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
17
  filename: z.ZodString;
14
18
  originalFilename: z.ZodString;
15
19
  type: z.ZodString;
@@ -38,6 +42,7 @@ export declare const Draft: z.ZodObject<{
38
42
  originalFilename: string;
39
43
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
40
44
  country: z.ZodString;
45
+ addressType: z.ZodLiteral<"DOMESTIC">;
41
46
  province: z.ZodString;
42
47
  district: z.ZodString;
43
48
  }, {
@@ -50,6 +55,7 @@ export declare const Draft: z.ZodObject<{
50
55
  }>, "strip", z.ZodTypeAny, {
51
56
  country: string;
52
57
  district: string;
58
+ addressType: "DOMESTIC";
53
59
  province: string;
54
60
  urbanOrRural: "URBAN";
55
61
  number?: string | null | undefined;
@@ -60,6 +66,7 @@ export declare const Draft: z.ZodObject<{
60
66
  }, {
61
67
  country: string;
62
68
  district: string;
69
+ addressType: "DOMESTIC";
63
70
  province: string;
64
71
  urbanOrRural: "URBAN";
65
72
  number?: string | null | undefined;
@@ -69,6 +76,7 @@ export declare const Draft: z.ZodObject<{
69
76
  zipCode?: string | null | undefined;
70
77
  }>, z.ZodObject<z.objectUtil.extendShape<{
71
78
  country: z.ZodString;
79
+ addressType: z.ZodLiteral<"DOMESTIC">;
72
80
  province: z.ZodString;
73
81
  district: z.ZodString;
74
82
  }, {
@@ -77,17 +85,61 @@ export declare const Draft: z.ZodObject<{
77
85
  }>, "strip", z.ZodTypeAny, {
78
86
  country: string;
79
87
  district: string;
88
+ addressType: "DOMESTIC";
80
89
  province: string;
81
90
  urbanOrRural: "RURAL";
82
91
  village?: string | null | undefined;
83
92
  }, {
84
93
  country: string;
85
94
  district: string;
95
+ addressType: "DOMESTIC";
86
96
  province: string;
87
97
  urbanOrRural: "RURAL";
88
98
  village?: string | null | undefined;
89
- }>]>>;
90
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
99
+ }>, z.ZodUndefined, z.ZodObject<{
100
+ country: z.ZodString;
101
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
102
+ state: z.ZodString;
103
+ district2: z.ZodString;
104
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ country: string;
111
+ state: string;
112
+ addressType: "INTERNATIONAL";
113
+ district2: string;
114
+ cityOrTown?: string | null | undefined;
115
+ addressLine1?: string | null | undefined;
116
+ addressLine2?: string | null | undefined;
117
+ addressLine3?: string | null | undefined;
118
+ postcodeOrZip?: string | null | undefined;
119
+ }, {
120
+ country: string;
121
+ state: string;
122
+ addressType: "INTERNATIONAL";
123
+ district2: string;
124
+ cityOrTown?: string | null | undefined;
125
+ addressLine1?: string | null | undefined;
126
+ addressLine2?: string | null | undefined;
127
+ addressLine3?: string | null | undefined;
128
+ postcodeOrZip?: string | null | undefined;
129
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
130
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ firstname?: string | null | undefined;
135
+ surname?: string | null | undefined;
136
+ middlename?: string | null | undefined;
137
+ }, {
138
+ firstname?: string | null | undefined;
139
+ surname?: string | null | undefined;
140
+ middlename?: string | null | undefined;
141
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
142
+ annotation: z.ZodNullable<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<{
91
143
  filename: z.ZodString;
92
144
  originalFilename: z.ZodString;
93
145
  type: z.ZodString;
@@ -116,6 +168,7 @@ export declare const Draft: z.ZodObject<{
116
168
  originalFilename: string;
117
169
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
118
170
  country: z.ZodString;
171
+ addressType: z.ZodLiteral<"DOMESTIC">;
119
172
  province: z.ZodString;
120
173
  district: z.ZodString;
121
174
  }, {
@@ -128,6 +181,7 @@ export declare const Draft: z.ZodObject<{
128
181
  }>, "strip", z.ZodTypeAny, {
129
182
  country: string;
130
183
  district: string;
184
+ addressType: "DOMESTIC";
131
185
  province: string;
132
186
  urbanOrRural: "URBAN";
133
187
  number?: string | null | undefined;
@@ -138,6 +192,7 @@ export declare const Draft: z.ZodObject<{
138
192
  }, {
139
193
  country: string;
140
194
  district: string;
195
+ addressType: "DOMESTIC";
141
196
  province: string;
142
197
  urbanOrRural: "URBAN";
143
198
  number?: string | null | undefined;
@@ -147,6 +202,7 @@ export declare const Draft: z.ZodObject<{
147
202
  zipCode?: string | null | undefined;
148
203
  }>, z.ZodObject<z.objectUtil.extendShape<{
149
204
  country: z.ZodString;
205
+ addressType: z.ZodLiteral<"DOMESTIC">;
150
206
  province: z.ZodString;
151
207
  district: z.ZodString;
152
208
  }, {
@@ -155,28 +211,80 @@ export declare const Draft: z.ZodObject<{
155
211
  }>, "strip", z.ZodTypeAny, {
156
212
  country: string;
157
213
  district: string;
214
+ addressType: "DOMESTIC";
158
215
  province: string;
159
216
  urbanOrRural: "RURAL";
160
217
  village?: string | null | undefined;
161
218
  }, {
162
219
  country: string;
163
220
  district: string;
221
+ addressType: "DOMESTIC";
164
222
  province: string;
165
223
  urbanOrRural: "RURAL";
166
224
  village?: string | null | undefined;
167
- }>]>>>;
168
- createdAtLocation: z.ZodString;
225
+ }>, z.ZodUndefined, z.ZodObject<{
226
+ country: z.ZodString;
227
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
228
+ state: z.ZodString;
229
+ district2: z.ZodString;
230
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
234
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ country: string;
237
+ state: string;
238
+ addressType: "INTERNATIONAL";
239
+ district2: string;
240
+ cityOrTown?: string | null | undefined;
241
+ addressLine1?: string | null | undefined;
242
+ addressLine2?: string | null | undefined;
243
+ addressLine3?: string | null | undefined;
244
+ postcodeOrZip?: string | null | undefined;
245
+ }, {
246
+ country: string;
247
+ state: string;
248
+ addressType: "INTERNATIONAL";
249
+ district2: string;
250
+ cityOrTown?: string | null | undefined;
251
+ addressLine1?: string | null | undefined;
252
+ addressLine2?: string | null | undefined;
253
+ addressLine3?: string | null | undefined;
254
+ postcodeOrZip?: string | null | undefined;
255
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
256
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
258
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ firstname?: string | null | undefined;
261
+ surname?: string | null | undefined;
262
+ middlename?: string | null | undefined;
263
+ }, {
264
+ firstname?: string | null | undefined;
265
+ surname?: string | null | undefined;
266
+ middlename?: string | null | undefined;
267
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
268
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
269
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
169
270
  }, {
170
- type: z.ZodEnum<[ActionType, ...ActionType[]]>;
271
+ 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
272
  }>, "id">, "strip", z.ZodTypeAny, {
172
- type: ActionType;
173
- data: Record<string, string | number | boolean | {
273
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
274
+ status: "Rejected" | "Requested" | "Accepted";
275
+ transactionId: string;
276
+ createdByUserType: "system" | "user";
277
+ createdAt: string;
278
+ createdBy: string;
279
+ createdByRole: string;
280
+ declaration: Record<string, string | number | boolean | {
174
281
  type: string;
175
282
  filename: string;
176
283
  originalFilename: string;
177
284
  } | {
178
285
  country: string;
179
286
  district: string;
287
+ addressType: "DOMESTIC";
180
288
  province: string;
181
289
  urbanOrRural: "URBAN";
182
290
  number?: string | null | undefined;
@@ -184,28 +292,43 @@ export declare const Draft: z.ZodObject<{
184
292
  residentialArea?: string | null | undefined;
185
293
  street?: string | null | undefined;
186
294
  zipCode?: string | null | undefined;
295
+ } | {
296
+ firstname?: string | null | undefined;
297
+ surname?: string | null | undefined;
298
+ middlename?: string | null | undefined;
187
299
  } | {
188
300
  country: string;
189
301
  district: string;
302
+ addressType: "DOMESTIC";
190
303
  province: string;
191
304
  urbanOrRural: "RURAL";
192
305
  village?: string | null | undefined;
306
+ } | {
307
+ country: string;
308
+ state: string;
309
+ addressType: "INTERNATIONAL";
310
+ district2: string;
311
+ cityOrTown?: string | null | undefined;
312
+ addressLine1?: string | null | undefined;
313
+ addressLine2?: string | null | undefined;
314
+ addressLine3?: string | null | undefined;
315
+ postcodeOrZip?: string | null | undefined;
193
316
  } | {
194
317
  type: string;
195
318
  option: string;
196
319
  filename: string;
197
320
  originalFilename: string;
198
- }[]>;
199
- createdAt: string;
200
- createdBy: string;
201
- createdAtLocation: string;
202
- metadata?: Record<string, string | number | boolean | {
321
+ }[] | [string, string] | null | undefined>;
322
+ createdBySignature?: string | null | undefined;
323
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
324
+ annotation?: Record<string, string | number | boolean | {
203
325
  type: string;
204
326
  filename: string;
205
327
  originalFilename: string;
206
328
  } | {
207
329
  country: string;
208
330
  district: string;
331
+ addressType: "DOMESTIC";
209
332
  province: string;
210
333
  urbanOrRural: "URBAN";
211
334
  number?: string | null | undefined;
@@ -213,27 +336,50 @@ export declare const Draft: z.ZodObject<{
213
336
  residentialArea?: string | null | undefined;
214
337
  street?: string | null | undefined;
215
338
  zipCode?: string | null | undefined;
339
+ } | {
340
+ firstname?: string | null | undefined;
341
+ surname?: string | null | undefined;
342
+ middlename?: string | null | undefined;
216
343
  } | {
217
344
  country: string;
218
345
  district: string;
346
+ addressType: "DOMESTIC";
219
347
  province: string;
220
348
  urbanOrRural: "RURAL";
221
349
  village?: string | null | undefined;
350
+ } | {
351
+ country: string;
352
+ state: string;
353
+ addressType: "INTERNATIONAL";
354
+ district2: string;
355
+ cityOrTown?: string | null | undefined;
356
+ addressLine1?: string | null | undefined;
357
+ addressLine2?: string | null | undefined;
358
+ addressLine3?: string | null | undefined;
359
+ postcodeOrZip?: string | null | undefined;
222
360
  } | {
223
361
  type: string;
224
362
  option: string;
225
363
  filename: string;
226
364
  originalFilename: string;
227
- }[]> | undefined;
365
+ }[] | [string, string] | null | undefined> | null | undefined;
366
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
228
367
  }, {
229
- type: ActionType;
230
- data: Record<string, string | number | boolean | {
368
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
369
+ status: "Rejected" | "Requested" | "Accepted";
370
+ transactionId: string;
371
+ createdByUserType: "system" | "user";
372
+ createdAt: string;
373
+ createdBy: string;
374
+ createdByRole: string;
375
+ declaration: Record<string, string | number | boolean | {
231
376
  type: string;
232
377
  filename: string;
233
378
  originalFilename: string;
234
379
  } | {
235
380
  country: string;
236
381
  district: string;
382
+ addressType: "DOMESTIC";
237
383
  province: string;
238
384
  urbanOrRural: "URBAN";
239
385
  number?: string | null | undefined;
@@ -241,28 +387,43 @@ export declare const Draft: z.ZodObject<{
241
387
  residentialArea?: string | null | undefined;
242
388
  street?: string | null | undefined;
243
389
  zipCode?: string | null | undefined;
390
+ } | {
391
+ firstname?: string | null | undefined;
392
+ surname?: string | null | undefined;
393
+ middlename?: string | null | undefined;
244
394
  } | {
245
395
  country: string;
246
396
  district: string;
397
+ addressType: "DOMESTIC";
247
398
  province: string;
248
399
  urbanOrRural: "RURAL";
249
400
  village?: string | null | undefined;
401
+ } | {
402
+ country: string;
403
+ state: string;
404
+ addressType: "INTERNATIONAL";
405
+ district2: string;
406
+ cityOrTown?: string | null | undefined;
407
+ addressLine1?: string | null | undefined;
408
+ addressLine2?: string | null | undefined;
409
+ addressLine3?: string | null | undefined;
410
+ postcodeOrZip?: string | null | undefined;
250
411
  } | {
251
412
  type: string;
252
413
  option: string;
253
414
  filename: string;
254
415
  originalFilename: string;
255
- }[]>;
256
- createdAt: string;
257
- createdBy: string;
258
- createdAtLocation: string;
259
- metadata?: Record<string, string | number | boolean | {
416
+ }[] | [string, string] | null | undefined>;
417
+ createdBySignature?: string | null | undefined;
418
+ createdAtLocation?: string | null | undefined;
419
+ annotation?: Record<string, string | number | boolean | {
260
420
  type: string;
261
421
  filename: string;
262
422
  originalFilename: string;
263
423
  } | {
264
424
  country: string;
265
425
  district: string;
426
+ addressType: "DOMESTIC";
266
427
  province: string;
267
428
  urbanOrRural: "URBAN";
268
429
  number?: string | null | undefined;
@@ -270,33 +431,56 @@ export declare const Draft: z.ZodObject<{
270
431
  residentialArea?: string | null | undefined;
271
432
  street?: string | null | undefined;
272
433
  zipCode?: string | null | undefined;
434
+ } | {
435
+ firstname?: string | null | undefined;
436
+ surname?: string | null | undefined;
437
+ middlename?: string | null | undefined;
273
438
  } | {
274
439
  country: string;
275
440
  district: string;
441
+ addressType: "DOMESTIC";
276
442
  province: string;
277
443
  urbanOrRural: "RURAL";
278
444
  village?: string | null | undefined;
445
+ } | {
446
+ country: string;
447
+ state: string;
448
+ addressType: "INTERNATIONAL";
449
+ district2: string;
450
+ cityOrTown?: string | null | undefined;
451
+ addressLine1?: string | null | undefined;
452
+ addressLine2?: string | null | undefined;
453
+ addressLine3?: string | null | undefined;
454
+ postcodeOrZip?: string | null | undefined;
279
455
  } | {
280
456
  type: string;
281
457
  option: string;
282
458
  filename: string;
283
459
  originalFilename: string;
284
- }[]> | undefined;
460
+ }[] | [string, string] | null | undefined> | null | undefined;
461
+ originalActionId?: string | null | undefined;
285
462
  }>;
286
463
  }, "strip", z.ZodTypeAny, {
287
- id: string;
288
- createdAt: string;
289
- eventId: string;
464
+ id: string & z.BRAND<"UUID">;
290
465
  transactionId: string;
466
+ createdAt: string;
467
+ eventId: string & z.BRAND<"UUID">;
291
468
  action: {
292
- type: ActionType;
293
- data: Record<string, string | number | boolean | {
469
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
470
+ status: "Rejected" | "Requested" | "Accepted";
471
+ transactionId: string;
472
+ createdByUserType: "system" | "user";
473
+ createdAt: string;
474
+ createdBy: string;
475
+ createdByRole: string;
476
+ declaration: Record<string, string | number | boolean | {
294
477
  type: string;
295
478
  filename: string;
296
479
  originalFilename: string;
297
480
  } | {
298
481
  country: string;
299
482
  district: string;
483
+ addressType: "DOMESTIC";
300
484
  province: string;
301
485
  urbanOrRural: "URBAN";
302
486
  number?: string | null | undefined;
@@ -304,28 +488,43 @@ export declare const Draft: z.ZodObject<{
304
488
  residentialArea?: string | null | undefined;
305
489
  street?: string | null | undefined;
306
490
  zipCode?: string | null | undefined;
491
+ } | {
492
+ firstname?: string | null | undefined;
493
+ surname?: string | null | undefined;
494
+ middlename?: string | null | undefined;
307
495
  } | {
308
496
  country: string;
309
497
  district: string;
498
+ addressType: "DOMESTIC";
310
499
  province: string;
311
500
  urbanOrRural: "RURAL";
312
501
  village?: string | null | undefined;
502
+ } | {
503
+ country: string;
504
+ state: string;
505
+ addressType: "INTERNATIONAL";
506
+ district2: string;
507
+ cityOrTown?: string | null | undefined;
508
+ addressLine1?: string | null | undefined;
509
+ addressLine2?: string | null | undefined;
510
+ addressLine3?: string | null | undefined;
511
+ postcodeOrZip?: string | null | undefined;
313
512
  } | {
314
513
  type: string;
315
514
  option: string;
316
515
  filename: string;
317
516
  originalFilename: string;
318
- }[]>;
319
- createdAt: string;
320
- createdBy: string;
321
- createdAtLocation: string;
322
- metadata?: Record<string, string | number | boolean | {
517
+ }[] | [string, string] | null | undefined>;
518
+ createdBySignature?: string | null | undefined;
519
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
520
+ annotation?: Record<string, string | number | boolean | {
323
521
  type: string;
324
522
  filename: string;
325
523
  originalFilename: string;
326
524
  } | {
327
525
  country: string;
328
526
  district: string;
527
+ addressType: "DOMESTIC";
329
528
  province: string;
330
529
  urbanOrRural: "URBAN";
331
530
  number?: string | null | undefined;
@@ -333,33 +532,56 @@ export declare const Draft: z.ZodObject<{
333
532
  residentialArea?: string | null | undefined;
334
533
  street?: string | null | undefined;
335
534
  zipCode?: string | null | undefined;
535
+ } | {
536
+ firstname?: string | null | undefined;
537
+ surname?: string | null | undefined;
538
+ middlename?: string | null | undefined;
336
539
  } | {
337
540
  country: string;
338
541
  district: string;
542
+ addressType: "DOMESTIC";
339
543
  province: string;
340
544
  urbanOrRural: "RURAL";
341
545
  village?: string | null | undefined;
546
+ } | {
547
+ country: string;
548
+ state: string;
549
+ addressType: "INTERNATIONAL";
550
+ district2: string;
551
+ cityOrTown?: string | null | undefined;
552
+ addressLine1?: string | null | undefined;
553
+ addressLine2?: string | null | undefined;
554
+ addressLine3?: string | null | undefined;
555
+ postcodeOrZip?: string | null | undefined;
342
556
  } | {
343
557
  type: string;
344
558
  option: string;
345
559
  filename: string;
346
560
  originalFilename: string;
347
- }[]> | undefined;
561
+ }[] | [string, string] | null | undefined> | null | undefined;
562
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
348
563
  };
349
564
  }, {
350
565
  id: string;
566
+ transactionId: string;
351
567
  createdAt: string;
352
568
  eventId: string;
353
- transactionId: string;
354
569
  action: {
355
- type: ActionType;
356
- data: Record<string, string | number | boolean | {
570
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
571
+ status: "Rejected" | "Requested" | "Accepted";
572
+ transactionId: string;
573
+ createdByUserType: "system" | "user";
574
+ createdAt: string;
575
+ createdBy: string;
576
+ createdByRole: string;
577
+ declaration: Record<string, string | number | boolean | {
357
578
  type: string;
358
579
  filename: string;
359
580
  originalFilename: string;
360
581
  } | {
361
582
  country: string;
362
583
  district: string;
584
+ addressType: "DOMESTIC";
363
585
  province: string;
364
586
  urbanOrRural: "URBAN";
365
587
  number?: string | null | undefined;
@@ -367,28 +589,43 @@ export declare const Draft: z.ZodObject<{
367
589
  residentialArea?: string | null | undefined;
368
590
  street?: string | null | undefined;
369
591
  zipCode?: string | null | undefined;
592
+ } | {
593
+ firstname?: string | null | undefined;
594
+ surname?: string | null | undefined;
595
+ middlename?: string | null | undefined;
370
596
  } | {
371
597
  country: string;
372
598
  district: string;
599
+ addressType: "DOMESTIC";
373
600
  province: string;
374
601
  urbanOrRural: "RURAL";
375
602
  village?: string | null | undefined;
603
+ } | {
604
+ country: string;
605
+ state: string;
606
+ addressType: "INTERNATIONAL";
607
+ district2: string;
608
+ cityOrTown?: string | null | undefined;
609
+ addressLine1?: string | null | undefined;
610
+ addressLine2?: string | null | undefined;
611
+ addressLine3?: string | null | undefined;
612
+ postcodeOrZip?: string | null | undefined;
376
613
  } | {
377
614
  type: string;
378
615
  option: string;
379
616
  filename: string;
380
617
  originalFilename: string;
381
- }[]>;
382
- createdAt: string;
383
- createdBy: string;
384
- createdAtLocation: string;
385
- metadata?: Record<string, string | number | boolean | {
618
+ }[] | [string, string] | null | undefined>;
619
+ createdBySignature?: string | null | undefined;
620
+ createdAtLocation?: string | null | undefined;
621
+ annotation?: Record<string, string | number | boolean | {
386
622
  type: string;
387
623
  filename: string;
388
624
  originalFilename: string;
389
625
  } | {
390
626
  country: string;
391
627
  district: string;
628
+ addressType: "DOMESTIC";
392
629
  province: string;
393
630
  urbanOrRural: "URBAN";
394
631
  number?: string | null | undefined;
@@ -396,25 +633,40 @@ export declare const Draft: z.ZodObject<{
396
633
  residentialArea?: string | null | undefined;
397
634
  street?: string | null | undefined;
398
635
  zipCode?: string | null | undefined;
636
+ } | {
637
+ firstname?: string | null | undefined;
638
+ surname?: string | null | undefined;
639
+ middlename?: string | null | undefined;
399
640
  } | {
400
641
  country: string;
401
642
  district: string;
643
+ addressType: "DOMESTIC";
402
644
  province: string;
403
645
  urbanOrRural: "RURAL";
404
646
  village?: string | null | undefined;
647
+ } | {
648
+ country: string;
649
+ state: string;
650
+ addressType: "INTERNATIONAL";
651
+ district2: string;
652
+ cityOrTown?: string | null | undefined;
653
+ addressLine1?: string | null | undefined;
654
+ addressLine2?: string | null | undefined;
655
+ addressLine3?: string | null | undefined;
656
+ postcodeOrZip?: string | null | undefined;
405
657
  } | {
406
658
  type: string;
407
659
  option: string;
408
660
  filename: string;
409
661
  originalFilename: string;
410
- }[]> | undefined;
662
+ }[] | [string, string] | null | undefined> | null | undefined;
663
+ originalActionId?: string | null | undefined;
411
664
  };
412
665
  }>;
413
666
  export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
414
- eventId: z.ZodString;
667
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
415
668
  transactionId: z.ZodString;
416
- incomplete: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
417
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
669
+ 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<{
418
670
  filename: z.ZodString;
419
671
  originalFilename: z.ZodString;
420
672
  type: z.ZodString;
@@ -443,6 +695,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
443
695
  originalFilename: string;
444
696
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
445
697
  country: z.ZodString;
698
+ addressType: z.ZodLiteral<"DOMESTIC">;
446
699
  province: z.ZodString;
447
700
  district: z.ZodString;
448
701
  }, {
@@ -455,6 +708,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
455
708
  }>, "strip", z.ZodTypeAny, {
456
709
  country: string;
457
710
  district: string;
711
+ addressType: "DOMESTIC";
458
712
  province: string;
459
713
  urbanOrRural: "URBAN";
460
714
  number?: string | null | undefined;
@@ -465,6 +719,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
465
719
  }, {
466
720
  country: string;
467
721
  district: string;
722
+ addressType: "DOMESTIC";
468
723
  province: string;
469
724
  urbanOrRural: "URBAN";
470
725
  number?: string | null | undefined;
@@ -474,6 +729,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
474
729
  zipCode?: string | null | undefined;
475
730
  }>, z.ZodObject<z.objectUtil.extendShape<{
476
731
  country: z.ZodString;
732
+ addressType: z.ZodLiteral<"DOMESTIC">;
477
733
  province: z.ZodString;
478
734
  district: z.ZodString;
479
735
  }, {
@@ -482,17 +738,61 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
482
738
  }>, "strip", z.ZodTypeAny, {
483
739
  country: string;
484
740
  district: string;
741
+ addressType: "DOMESTIC";
485
742
  province: string;
486
743
  urbanOrRural: "RURAL";
487
744
  village?: string | null | undefined;
488
745
  }, {
489
746
  country: string;
490
747
  district: string;
748
+ addressType: "DOMESTIC";
491
749
  province: string;
492
750
  urbanOrRural: "RURAL";
493
751
  village?: string | null | undefined;
494
- }>]>>;
495
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
752
+ }>, z.ZodUndefined, z.ZodObject<{
753
+ country: z.ZodString;
754
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
755
+ state: z.ZodString;
756
+ district2: z.ZodString;
757
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
758
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
759
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
760
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
761
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
762
+ }, "strip", z.ZodTypeAny, {
763
+ country: string;
764
+ state: string;
765
+ addressType: "INTERNATIONAL";
766
+ district2: string;
767
+ cityOrTown?: string | null | undefined;
768
+ addressLine1?: string | null | undefined;
769
+ addressLine2?: string | null | undefined;
770
+ addressLine3?: string | null | undefined;
771
+ postcodeOrZip?: string | null | undefined;
772
+ }, {
773
+ country: string;
774
+ state: string;
775
+ addressType: "INTERNATIONAL";
776
+ district2: string;
777
+ cityOrTown?: string | null | undefined;
778
+ addressLine1?: string | null | undefined;
779
+ addressLine2?: string | null | undefined;
780
+ addressLine3?: string | null | undefined;
781
+ postcodeOrZip?: string | null | undefined;
782
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
783
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
784
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
785
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
786
+ }, "strip", z.ZodTypeAny, {
787
+ firstname?: string | null | undefined;
788
+ surname?: string | null | undefined;
789
+ middlename?: string | null | undefined;
790
+ }, {
791
+ firstname?: string | null | undefined;
792
+ surname?: string | null | undefined;
793
+ middlename?: string | null | undefined;
794
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
795
+ 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<{
496
796
  filename: z.ZodString;
497
797
  originalFilename: z.ZodString;
498
798
  type: z.ZodString;
@@ -521,6 +821,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
521
821
  originalFilename: string;
522
822
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
523
823
  country: z.ZodString;
824
+ addressType: z.ZodLiteral<"DOMESTIC">;
524
825
  province: z.ZodString;
525
826
  district: z.ZodString;
526
827
  }, {
@@ -533,6 +834,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
533
834
  }>, "strip", z.ZodTypeAny, {
534
835
  country: string;
535
836
  district: string;
837
+ addressType: "DOMESTIC";
536
838
  province: string;
537
839
  urbanOrRural: "URBAN";
538
840
  number?: string | null | undefined;
@@ -543,6 +845,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
543
845
  }, {
544
846
  country: string;
545
847
  district: string;
848
+ addressType: "DOMESTIC";
546
849
  province: string;
547
850
  urbanOrRural: "URBAN";
548
851
  number?: string | null | undefined;
@@ -552,6 +855,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
552
855
  zipCode?: string | null | undefined;
553
856
  }>, z.ZodObject<z.objectUtil.extendShape<{
554
857
  country: z.ZodString;
858
+ addressType: z.ZodLiteral<"DOMESTIC">;
555
859
  province: z.ZodString;
556
860
  district: z.ZodString;
557
861
  }, {
@@ -560,27 +864,77 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
560
864
  }>, "strip", z.ZodTypeAny, {
561
865
  country: string;
562
866
  district: string;
867
+ addressType: "DOMESTIC";
563
868
  province: string;
564
869
  urbanOrRural: "RURAL";
565
870
  village?: string | null | undefined;
566
871
  }, {
567
872
  country: string;
568
873
  district: string;
874
+ addressType: "DOMESTIC";
569
875
  province: string;
570
876
  urbanOrRural: "RURAL";
571
877
  village?: string | null | undefined;
572
- }>]>>>;
878
+ }>, z.ZodUndefined, z.ZodObject<{
879
+ country: z.ZodString;
880
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
881
+ state: z.ZodString;
882
+ district2: z.ZodString;
883
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
884
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
885
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
886
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
887
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
888
+ }, "strip", z.ZodTypeAny, {
889
+ country: string;
890
+ state: string;
891
+ addressType: "INTERNATIONAL";
892
+ district2: string;
893
+ cityOrTown?: string | null | undefined;
894
+ addressLine1?: string | null | undefined;
895
+ addressLine2?: string | null | undefined;
896
+ addressLine3?: string | null | undefined;
897
+ postcodeOrZip?: string | null | undefined;
898
+ }, {
899
+ country: string;
900
+ state: string;
901
+ addressType: "INTERNATIONAL";
902
+ district2: string;
903
+ cityOrTown?: string | null | undefined;
904
+ addressLine1?: string | null | undefined;
905
+ addressLine2?: string | null | undefined;
906
+ addressLine3?: string | null | undefined;
907
+ postcodeOrZip?: string | null | undefined;
908
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
909
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
910
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
911
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
912
+ }, "strip", z.ZodTypeAny, {
913
+ firstname?: string | null | undefined;
914
+ surname?: string | null | undefined;
915
+ middlename?: string | null | undefined;
916
+ }, {
917
+ firstname?: string | null | undefined;
918
+ surname?: string | null | undefined;
919
+ middlename?: string | null | undefined;
920
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
921
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
922
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
573
923
  }, {
574
- type: z.ZodEnum<[ActionType, ...ActionType[]]>;
924
+ 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"]>;
925
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
575
926
  }>, "strip", z.ZodTypeAny, {
576
- type: ActionType;
577
- data: Record<string, string | number | boolean | {
927
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
928
+ status: "Rejected" | "Requested" | "Accepted";
929
+ transactionId: string;
930
+ declaration: Record<string, string | number | boolean | {
578
931
  type: string;
579
932
  filename: string;
580
933
  originalFilename: string;
581
934
  } | {
582
935
  country: string;
583
936
  district: string;
937
+ addressType: "DOMESTIC";
584
938
  province: string;
585
939
  urbanOrRural: "URBAN";
586
940
  number?: string | null | undefined;
@@ -588,28 +942,42 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
588
942
  residentialArea?: string | null | undefined;
589
943
  street?: string | null | undefined;
590
944
  zipCode?: string | null | undefined;
945
+ } | {
946
+ firstname?: string | null | undefined;
947
+ surname?: string | null | undefined;
948
+ middlename?: string | null | undefined;
591
949
  } | {
592
950
  country: string;
593
951
  district: string;
952
+ addressType: "DOMESTIC";
594
953
  province: string;
595
954
  urbanOrRural: "RURAL";
596
955
  village?: string | null | undefined;
956
+ } | {
957
+ country: string;
958
+ state: string;
959
+ addressType: "INTERNATIONAL";
960
+ district2: string;
961
+ cityOrTown?: string | null | undefined;
962
+ addressLine1?: string | null | undefined;
963
+ addressLine2?: string | null | undefined;
964
+ addressLine3?: string | null | undefined;
965
+ postcodeOrZip?: string | null | undefined;
597
966
  } | {
598
967
  type: string;
599
968
  option: string;
600
969
  filename: string;
601
970
  originalFilename: string;
602
- }[]>;
603
- eventId: string;
604
- transactionId: string;
605
- incomplete: boolean;
606
- metadata?: Record<string, string | number | boolean | {
971
+ }[] | [string, string] | null | undefined>;
972
+ eventId: string & z.BRAND<"UUID">;
973
+ annotation?: Record<string, string | number | boolean | {
607
974
  type: string;
608
975
  filename: string;
609
976
  originalFilename: string;
610
977
  } | {
611
978
  country: string;
612
979
  district: string;
980
+ addressType: "DOMESTIC";
613
981
  province: string;
614
982
  urbanOrRural: "URBAN";
615
983
  number?: string | null | undefined;
@@ -617,27 +985,48 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
617
985
  residentialArea?: string | null | undefined;
618
986
  street?: string | null | undefined;
619
987
  zipCode?: string | null | undefined;
988
+ } | {
989
+ firstname?: string | null | undefined;
990
+ surname?: string | null | undefined;
991
+ middlename?: string | null | undefined;
620
992
  } | {
621
993
  country: string;
622
994
  district: string;
995
+ addressType: "DOMESTIC";
623
996
  province: string;
624
997
  urbanOrRural: "RURAL";
625
998
  village?: string | null | undefined;
999
+ } | {
1000
+ country: string;
1001
+ state: string;
1002
+ addressType: "INTERNATIONAL";
1003
+ district2: string;
1004
+ cityOrTown?: string | null | undefined;
1005
+ addressLine1?: string | null | undefined;
1006
+ addressLine2?: string | null | undefined;
1007
+ addressLine3?: string | null | undefined;
1008
+ postcodeOrZip?: string | null | undefined;
626
1009
  } | {
627
1010
  type: string;
628
1011
  option: string;
629
1012
  filename: string;
630
1013
  originalFilename: string;
631
- }[]> | undefined;
1014
+ }[] | [string, string] | null | undefined> | undefined;
1015
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
1016
+ keepAssignment?: boolean | undefined;
632
1017
  }, {
633
- type: ActionType;
634
- data: Record<string, string | number | boolean | {
1018
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
1019
+ status: "Rejected" | "Requested" | "Accepted";
1020
+ transactionId: string;
1021
+ eventId: string;
1022
+ declaration?: Record<string, string | number | boolean | {
635
1023
  type: string;
636
1024
  filename: string;
637
1025
  originalFilename: string;
638
1026
  } | {
639
1027
  country: string;
640
1028
  district: string;
1029
+ addressType: "DOMESTIC";
641
1030
  province: string;
642
1031
  urbanOrRural: "URBAN";
643
1032
  number?: string | null | undefined;
@@ -645,27 +1034,41 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
645
1034
  residentialArea?: string | null | undefined;
646
1035
  street?: string | null | undefined;
647
1036
  zipCode?: string | null | undefined;
1037
+ } | {
1038
+ firstname?: string | null | undefined;
1039
+ surname?: string | null | undefined;
1040
+ middlename?: string | null | undefined;
648
1041
  } | {
649
1042
  country: string;
650
1043
  district: string;
1044
+ addressType: "DOMESTIC";
651
1045
  province: string;
652
1046
  urbanOrRural: "RURAL";
653
1047
  village?: string | null | undefined;
1048
+ } | {
1049
+ country: string;
1050
+ state: string;
1051
+ addressType: "INTERNATIONAL";
1052
+ district2: string;
1053
+ cityOrTown?: string | null | undefined;
1054
+ addressLine1?: string | null | undefined;
1055
+ addressLine2?: string | null | undefined;
1056
+ addressLine3?: string | null | undefined;
1057
+ postcodeOrZip?: string | null | undefined;
654
1058
  } | {
655
1059
  type: string;
656
1060
  option: string;
657
1061
  filename: string;
658
1062
  originalFilename: string;
659
- }[]>;
660
- eventId: string;
661
- transactionId: string;
662
- metadata?: Record<string, string | number | boolean | {
1063
+ }[] | [string, string] | null | undefined> | undefined;
1064
+ annotation?: Record<string, string | number | boolean | {
663
1065
  type: string;
664
1066
  filename: string;
665
1067
  originalFilename: string;
666
1068
  } | {
667
1069
  country: string;
668
1070
  district: string;
1071
+ addressType: "DOMESTIC";
669
1072
  province: string;
670
1073
  urbanOrRural: "URBAN";
671
1074
  number?: string | null | undefined;
@@ -673,19 +1076,35 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
673
1076
  residentialArea?: string | null | undefined;
674
1077
  street?: string | null | undefined;
675
1078
  zipCode?: string | null | undefined;
1079
+ } | {
1080
+ firstname?: string | null | undefined;
1081
+ surname?: string | null | undefined;
1082
+ middlename?: string | null | undefined;
676
1083
  } | {
677
1084
  country: string;
678
1085
  district: string;
1086
+ addressType: "DOMESTIC";
679
1087
  province: string;
680
1088
  urbanOrRural: "RURAL";
681
1089
  village?: string | null | undefined;
1090
+ } | {
1091
+ country: string;
1092
+ state: string;
1093
+ addressType: "INTERNATIONAL";
1094
+ district2: string;
1095
+ cityOrTown?: string | null | undefined;
1096
+ addressLine1?: string | null | undefined;
1097
+ addressLine2?: string | null | undefined;
1098
+ addressLine3?: string | null | undefined;
1099
+ postcodeOrZip?: string | null | undefined;
682
1100
  } | {
683
1101
  type: string;
684
1102
  option: string;
685
1103
  filename: string;
686
1104
  originalFilename: string;
687
- }[]> | undefined;
688
- incomplete?: boolean | undefined;
1105
+ }[] | [string, string] | null | undefined> | undefined;
1106
+ originalActionId?: string | undefined;
1107
+ keepAssignment?: boolean | undefined;
689
1108
  }>;
690
1109
  export type Draft = z.infer<typeof Draft>;
691
1110
  export type DraftInput = z.infer<typeof DraftInput>;