@opencrvs/toolkit 1.8.0-rc.fd6feaa → 1.8.0-rc.fd8a78f

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