@opencrvs/toolkit 1.8.0-rc.fc43738 → 1.8.0-rc.fc4c805

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