@opencrvs/toolkit 1.8.0-rc.ffe8c17 → 1.8.1-rc.25f3d5c

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