@opencrvs/toolkit 1.8.0-rc.feaeeb7 → 1.8.0-rc.fec1d5d

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