@opencrvs/toolkit 1.8.0-rc.ffe8c17 → 1.8.1-rc.1e3e9b5

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 +8904 -10983
  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 +13518 -788
  8. package/dist/commons/events/ActionInput.d.ts +8131 -1094
  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 +608 -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 +5801 -998
  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 +15486 -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 +5238 -1874
  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,80 @@ 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
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
287
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
169
288
  }, {
170
- type: z.ZodEnum<[ActionType, ...ActionType[]]>;
289
+ 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
290
  }>, "id">, "strip", z.ZodTypeAny, {
172
- type: ActionType;
173
- data: Record<string, string | number | boolean | {
291
+ 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";
292
+ status: "Rejected" | "Requested" | "Accepted";
293
+ transactionId: string;
294
+ createdByUserType: "system" | "user";
295
+ createdAt: string;
296
+ createdBy: string;
297
+ createdByRole: string;
298
+ declaration: Record<string, string | number | boolean | {
174
299
  type: string;
175
- filename: string;
300
+ path: string;
176
301
  originalFilename: string;
177
302
  } | {
178
303
  country: string;
179
304
  district: string;
305
+ addressType: "DOMESTIC";
180
306
  province: string;
181
307
  urbanOrRural: "URBAN";
182
308
  number?: string | null | undefined;
@@ -184,28 +310,46 @@ export declare const Draft: z.ZodObject<{
184
310
  residentialArea?: string | null | undefined;
185
311
  street?: string | null | undefined;
186
312
  zipCode?: string | null | undefined;
313
+ } | {
314
+ firstname?: string | null | undefined;
315
+ surname?: string | null | undefined;
316
+ middlename?: string | null | undefined;
187
317
  } | {
188
318
  country: string;
189
319
  district: string;
320
+ addressType: "DOMESTIC";
190
321
  province: string;
191
322
  urbanOrRural: "RURAL";
192
323
  village?: string | null | undefined;
324
+ } | {
325
+ country: string;
326
+ state: string;
327
+ addressType: "INTERNATIONAL";
328
+ district2: string;
329
+ cityOrTown?: string | null | undefined;
330
+ addressLine1?: string | null | undefined;
331
+ addressLine2?: string | null | undefined;
332
+ addressLine3?: string | null | undefined;
333
+ postcodeOrZip?: string | null | undefined;
193
334
  } | {
194
335
  type: string;
195
336
  option: string;
196
- filename: string;
337
+ path: string;
197
338
  originalFilename: string;
198
- }[]>;
199
- createdAt: string;
200
- createdBy: string;
201
- createdAtLocation: string;
202
- metadata?: Record<string, string | number | boolean | {
339
+ }[] | {
340
+ start: string;
341
+ end: string;
342
+ } | null | undefined>;
343
+ createdBySignature?: string | null | undefined;
344
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
345
+ annotation?: Record<string, string | number | boolean | {
203
346
  type: string;
204
- filename: string;
347
+ path: string;
205
348
  originalFilename: string;
206
349
  } | {
207
350
  country: string;
208
351
  district: string;
352
+ addressType: "DOMESTIC";
209
353
  province: string;
210
354
  urbanOrRural: "URBAN";
211
355
  number?: string | null | undefined;
@@ -213,27 +357,53 @@ export declare const Draft: z.ZodObject<{
213
357
  residentialArea?: string | null | undefined;
214
358
  street?: string | null | undefined;
215
359
  zipCode?: string | null | undefined;
360
+ } | {
361
+ firstname?: string | null | undefined;
362
+ surname?: string | null | undefined;
363
+ middlename?: string | null | undefined;
216
364
  } | {
217
365
  country: string;
218
366
  district: string;
367
+ addressType: "DOMESTIC";
219
368
  province: string;
220
369
  urbanOrRural: "RURAL";
221
370
  village?: string | null | undefined;
371
+ } | {
372
+ country: string;
373
+ state: string;
374
+ addressType: "INTERNATIONAL";
375
+ district2: string;
376
+ cityOrTown?: string | null | undefined;
377
+ addressLine1?: string | null | undefined;
378
+ addressLine2?: string | null | undefined;
379
+ addressLine3?: string | null | undefined;
380
+ postcodeOrZip?: string | null | undefined;
222
381
  } | {
223
382
  type: string;
224
383
  option: string;
225
- filename: string;
384
+ path: string;
226
385
  originalFilename: string;
227
- }[]> | undefined;
386
+ }[] | {
387
+ start: string;
388
+ end: string;
389
+ } | null | undefined> | null | undefined;
390
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
228
391
  }, {
229
- type: ActionType;
230
- data: Record<string, string | number | boolean | {
392
+ 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";
393
+ status: "Rejected" | "Requested" | "Accepted";
394
+ transactionId: string;
395
+ createdByUserType: "system" | "user";
396
+ createdAt: string;
397
+ createdBy: string;
398
+ createdByRole: string;
399
+ declaration: Record<string, string | number | boolean | {
231
400
  type: string;
232
- filename: string;
401
+ path: string;
233
402
  originalFilename: string;
234
403
  } | {
235
404
  country: string;
236
405
  district: string;
406
+ addressType: "DOMESTIC";
237
407
  province: string;
238
408
  urbanOrRural: "URBAN";
239
409
  number?: string | null | undefined;
@@ -241,28 +411,46 @@ export declare const Draft: z.ZodObject<{
241
411
  residentialArea?: string | null | undefined;
242
412
  street?: string | null | undefined;
243
413
  zipCode?: string | null | undefined;
414
+ } | {
415
+ firstname?: string | null | undefined;
416
+ surname?: string | null | undefined;
417
+ middlename?: string | null | undefined;
244
418
  } | {
245
419
  country: string;
246
420
  district: string;
421
+ addressType: "DOMESTIC";
247
422
  province: string;
248
423
  urbanOrRural: "RURAL";
249
424
  village?: string | null | undefined;
425
+ } | {
426
+ country: string;
427
+ state: string;
428
+ addressType: "INTERNATIONAL";
429
+ district2: string;
430
+ cityOrTown?: string | null | undefined;
431
+ addressLine1?: string | null | undefined;
432
+ addressLine2?: string | null | undefined;
433
+ addressLine3?: string | null | undefined;
434
+ postcodeOrZip?: string | null | undefined;
250
435
  } | {
251
436
  type: string;
252
437
  option: string;
253
- filename: string;
438
+ path: string;
254
439
  originalFilename: string;
255
- }[]>;
256
- createdAt: string;
257
- createdBy: string;
258
- createdAtLocation: string;
259
- metadata?: Record<string, string | number | boolean | {
440
+ }[] | {
441
+ start: string;
442
+ end: string;
443
+ } | null | undefined>;
444
+ createdBySignature?: string | null | undefined;
445
+ createdAtLocation?: string | null | undefined;
446
+ annotation?: Record<string, string | number | boolean | {
260
447
  type: string;
261
- filename: string;
448
+ path: string;
262
449
  originalFilename: string;
263
450
  } | {
264
451
  country: string;
265
452
  district: string;
453
+ addressType: "DOMESTIC";
266
454
  province: string;
267
455
  urbanOrRural: "URBAN";
268
456
  number?: string | null | undefined;
@@ -270,33 +458,59 @@ export declare const Draft: z.ZodObject<{
270
458
  residentialArea?: string | null | undefined;
271
459
  street?: string | null | undefined;
272
460
  zipCode?: string | null | undefined;
461
+ } | {
462
+ firstname?: string | null | undefined;
463
+ surname?: string | null | undefined;
464
+ middlename?: string | null | undefined;
273
465
  } | {
274
466
  country: string;
275
467
  district: string;
468
+ addressType: "DOMESTIC";
276
469
  province: string;
277
470
  urbanOrRural: "RURAL";
278
471
  village?: string | null | undefined;
472
+ } | {
473
+ country: string;
474
+ state: string;
475
+ addressType: "INTERNATIONAL";
476
+ district2: string;
477
+ cityOrTown?: string | null | undefined;
478
+ addressLine1?: string | null | undefined;
479
+ addressLine2?: string | null | undefined;
480
+ addressLine3?: string | null | undefined;
481
+ postcodeOrZip?: string | null | undefined;
279
482
  } | {
280
483
  type: string;
281
484
  option: string;
282
- filename: string;
485
+ path: string;
283
486
  originalFilename: string;
284
- }[]> | undefined;
487
+ }[] | {
488
+ start: string;
489
+ end: string;
490
+ } | null | undefined> | null | undefined;
491
+ originalActionId?: string | null | undefined;
285
492
  }>;
286
493
  }, "strip", z.ZodTypeAny, {
287
- id: string;
288
- createdAt: string;
289
- eventId: string;
494
+ id: string & z.BRAND<"UUID">;
290
495
  transactionId: string;
496
+ createdAt: string;
497
+ eventId: string & z.BRAND<"UUID">;
291
498
  action: {
292
- type: ActionType;
293
- data: Record<string, string | number | boolean | {
499
+ 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";
500
+ status: "Rejected" | "Requested" | "Accepted";
501
+ transactionId: string;
502
+ createdByUserType: "system" | "user";
503
+ createdAt: string;
504
+ createdBy: string;
505
+ createdByRole: string;
506
+ declaration: Record<string, string | number | boolean | {
294
507
  type: string;
295
- filename: string;
508
+ path: string;
296
509
  originalFilename: string;
297
510
  } | {
298
511
  country: string;
299
512
  district: string;
513
+ addressType: "DOMESTIC";
300
514
  province: string;
301
515
  urbanOrRural: "URBAN";
302
516
  number?: string | null | undefined;
@@ -304,28 +518,46 @@ export declare const Draft: z.ZodObject<{
304
518
  residentialArea?: string | null | undefined;
305
519
  street?: string | null | undefined;
306
520
  zipCode?: string | null | undefined;
521
+ } | {
522
+ firstname?: string | null | undefined;
523
+ surname?: string | null | undefined;
524
+ middlename?: string | null | undefined;
307
525
  } | {
308
526
  country: string;
309
527
  district: string;
528
+ addressType: "DOMESTIC";
310
529
  province: string;
311
530
  urbanOrRural: "RURAL";
312
531
  village?: string | null | undefined;
532
+ } | {
533
+ country: string;
534
+ state: string;
535
+ addressType: "INTERNATIONAL";
536
+ district2: string;
537
+ cityOrTown?: string | null | undefined;
538
+ addressLine1?: string | null | undefined;
539
+ addressLine2?: string | null | undefined;
540
+ addressLine3?: string | null | undefined;
541
+ postcodeOrZip?: string | null | undefined;
313
542
  } | {
314
543
  type: string;
315
544
  option: string;
316
- filename: string;
545
+ path: string;
317
546
  originalFilename: string;
318
- }[]>;
319
- createdAt: string;
320
- createdBy: string;
321
- createdAtLocation: string;
322
- metadata?: Record<string, string | number | boolean | {
547
+ }[] | {
548
+ start: string;
549
+ end: string;
550
+ } | null | undefined>;
551
+ createdBySignature?: string | null | undefined;
552
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
553
+ annotation?: Record<string, string | number | boolean | {
323
554
  type: string;
324
- filename: string;
555
+ path: string;
325
556
  originalFilename: string;
326
557
  } | {
327
558
  country: string;
328
559
  district: string;
560
+ addressType: "DOMESTIC";
329
561
  province: string;
330
562
  urbanOrRural: "URBAN";
331
563
  number?: string | null | undefined;
@@ -333,33 +565,59 @@ export declare const Draft: z.ZodObject<{
333
565
  residentialArea?: string | null | undefined;
334
566
  street?: string | null | undefined;
335
567
  zipCode?: string | null | undefined;
568
+ } | {
569
+ firstname?: string | null | undefined;
570
+ surname?: string | null | undefined;
571
+ middlename?: string | null | undefined;
336
572
  } | {
337
573
  country: string;
338
574
  district: string;
575
+ addressType: "DOMESTIC";
339
576
  province: string;
340
577
  urbanOrRural: "RURAL";
341
578
  village?: string | null | undefined;
579
+ } | {
580
+ country: string;
581
+ state: string;
582
+ addressType: "INTERNATIONAL";
583
+ district2: string;
584
+ cityOrTown?: string | null | undefined;
585
+ addressLine1?: string | null | undefined;
586
+ addressLine2?: string | null | undefined;
587
+ addressLine3?: string | null | undefined;
588
+ postcodeOrZip?: string | null | undefined;
342
589
  } | {
343
590
  type: string;
344
591
  option: string;
345
- filename: string;
592
+ path: string;
346
593
  originalFilename: string;
347
- }[]> | undefined;
594
+ }[] | {
595
+ start: string;
596
+ end: string;
597
+ } | null | undefined> | null | undefined;
598
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
348
599
  };
349
600
  }, {
350
601
  id: string;
602
+ transactionId: string;
351
603
  createdAt: string;
352
604
  eventId: string;
353
- transactionId: string;
354
605
  action: {
355
- type: ActionType;
356
- data: Record<string, string | number | boolean | {
606
+ 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";
607
+ status: "Rejected" | "Requested" | "Accepted";
608
+ transactionId: string;
609
+ createdByUserType: "system" | "user";
610
+ createdAt: string;
611
+ createdBy: string;
612
+ createdByRole: string;
613
+ declaration: Record<string, string | number | boolean | {
357
614
  type: string;
358
- filename: string;
615
+ path: string;
359
616
  originalFilename: string;
360
617
  } | {
361
618
  country: string;
362
619
  district: string;
620
+ addressType: "DOMESTIC";
363
621
  province: string;
364
622
  urbanOrRural: "URBAN";
365
623
  number?: string | null | undefined;
@@ -367,28 +625,46 @@ export declare const Draft: z.ZodObject<{
367
625
  residentialArea?: string | null | undefined;
368
626
  street?: string | null | undefined;
369
627
  zipCode?: string | null | undefined;
628
+ } | {
629
+ firstname?: string | null | undefined;
630
+ surname?: string | null | undefined;
631
+ middlename?: string | null | undefined;
370
632
  } | {
371
633
  country: string;
372
634
  district: string;
635
+ addressType: "DOMESTIC";
373
636
  province: string;
374
637
  urbanOrRural: "RURAL";
375
638
  village?: string | null | undefined;
639
+ } | {
640
+ country: string;
641
+ state: string;
642
+ addressType: "INTERNATIONAL";
643
+ district2: string;
644
+ cityOrTown?: string | null | undefined;
645
+ addressLine1?: string | null | undefined;
646
+ addressLine2?: string | null | undefined;
647
+ addressLine3?: string | null | undefined;
648
+ postcodeOrZip?: string | null | undefined;
376
649
  } | {
377
650
  type: string;
378
651
  option: string;
379
- filename: string;
652
+ path: string;
380
653
  originalFilename: string;
381
- }[]>;
382
- createdAt: string;
383
- createdBy: string;
384
- createdAtLocation: string;
385
- metadata?: Record<string, string | number | boolean | {
654
+ }[] | {
655
+ start: string;
656
+ end: string;
657
+ } | null | undefined>;
658
+ createdBySignature?: string | null | undefined;
659
+ createdAtLocation?: string | null | undefined;
660
+ annotation?: Record<string, string | number | boolean | {
386
661
  type: string;
387
- filename: string;
662
+ path: string;
388
663
  originalFilename: string;
389
664
  } | {
390
665
  country: string;
391
666
  district: string;
667
+ addressType: "DOMESTIC";
392
668
  province: string;
393
669
  urbanOrRural: "URBAN";
394
670
  number?: string | null | undefined;
@@ -396,52 +672,81 @@ export declare const Draft: z.ZodObject<{
396
672
  residentialArea?: string | null | undefined;
397
673
  street?: string | null | undefined;
398
674
  zipCode?: string | null | undefined;
675
+ } | {
676
+ firstname?: string | null | undefined;
677
+ surname?: string | null | undefined;
678
+ middlename?: string | null | undefined;
399
679
  } | {
400
680
  country: string;
401
681
  district: string;
682
+ addressType: "DOMESTIC";
402
683
  province: string;
403
684
  urbanOrRural: "RURAL";
404
685
  village?: string | null | undefined;
686
+ } | {
687
+ country: string;
688
+ state: string;
689
+ addressType: "INTERNATIONAL";
690
+ district2: string;
691
+ cityOrTown?: string | null | undefined;
692
+ addressLine1?: string | null | undefined;
693
+ addressLine2?: string | null | undefined;
694
+ addressLine3?: string | null | undefined;
695
+ postcodeOrZip?: string | null | undefined;
405
696
  } | {
406
697
  type: string;
407
698
  option: string;
408
- filename: string;
699
+ path: string;
409
700
  originalFilename: string;
410
- }[]> | undefined;
701
+ }[] | {
702
+ start: string;
703
+ end: string;
704
+ } | null | undefined> | null | undefined;
705
+ originalActionId?: string | null | undefined;
411
706
  };
412
707
  }>;
413
708
  export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
414
- eventId: z.ZodString;
709
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
415
710
  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;
711
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
712
+ start: z.ZodString;
713
+ end: z.ZodString;
714
+ }, "strip", z.ZodTypeAny, {
715
+ start: string;
716
+ end: string;
717
+ }, {
718
+ start: string;
719
+ end: string;
720
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
721
+ path: z.ZodEffects<z.ZodString, string, string>;
418
722
  originalFilename: z.ZodString;
419
723
  type: z.ZodString;
420
724
  }, "strip", z.ZodTypeAny, {
421
725
  type: string;
422
- filename: string;
726
+ path: string;
423
727
  originalFilename: string;
424
728
  }, {
425
729
  type: string;
426
- filename: string;
730
+ path: string;
427
731
  originalFilename: string;
428
732
  }>, z.ZodArray<z.ZodObject<{
429
- filename: z.ZodString;
733
+ path: z.ZodEffects<z.ZodString, string, string>;
430
734
  originalFilename: z.ZodString;
431
735
  type: z.ZodString;
432
736
  option: z.ZodString;
433
737
  }, "strip", z.ZodTypeAny, {
434
738
  type: string;
435
739
  option: string;
436
- filename: string;
740
+ path: string;
437
741
  originalFilename: string;
438
742
  }, {
439
743
  type: string;
440
744
  option: string;
441
- filename: string;
745
+ path: string;
442
746
  originalFilename: string;
443
747
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
444
748
  country: z.ZodString;
749
+ addressType: z.ZodLiteral<"DOMESTIC">;
445
750
  province: z.ZodString;
446
751
  district: z.ZodString;
447
752
  }, {
@@ -454,6 +759,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
454
759
  }>, "strip", z.ZodTypeAny, {
455
760
  country: string;
456
761
  district: string;
762
+ addressType: "DOMESTIC";
457
763
  province: string;
458
764
  urbanOrRural: "URBAN";
459
765
  number?: string | null | undefined;
@@ -464,6 +770,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
464
770
  }, {
465
771
  country: string;
466
772
  district: string;
773
+ addressType: "DOMESTIC";
467
774
  province: string;
468
775
  urbanOrRural: "URBAN";
469
776
  number?: string | null | undefined;
@@ -473,6 +780,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
473
780
  zipCode?: string | null | undefined;
474
781
  }>, z.ZodObject<z.objectUtil.extendShape<{
475
782
  country: z.ZodString;
783
+ addressType: z.ZodLiteral<"DOMESTIC">;
476
784
  province: z.ZodString;
477
785
  district: z.ZodString;
478
786
  }, {
@@ -481,45 +789,99 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
481
789
  }>, "strip", z.ZodTypeAny, {
482
790
  country: string;
483
791
  district: string;
792
+ addressType: "DOMESTIC";
484
793
  province: string;
485
794
  urbanOrRural: "RURAL";
486
795
  village?: string | null | undefined;
487
796
  }, {
488
797
  country: string;
489
798
  district: string;
799
+ addressType: "DOMESTIC";
490
800
  province: string;
491
801
  urbanOrRural: "RURAL";
492
802
  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;
803
+ }>, z.ZodUndefined, z.ZodObject<{
804
+ country: z.ZodString;
805
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
806
+ state: z.ZodString;
807
+ district2: z.ZodString;
808
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
809
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
810
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
811
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
812
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
813
+ }, "strip", z.ZodTypeAny, {
814
+ country: string;
815
+ state: string;
816
+ addressType: "INTERNATIONAL";
817
+ district2: string;
818
+ cityOrTown?: string | null | undefined;
819
+ addressLine1?: string | null | undefined;
820
+ addressLine2?: string | null | undefined;
821
+ addressLine3?: string | null | undefined;
822
+ postcodeOrZip?: string | null | undefined;
823
+ }, {
824
+ country: string;
825
+ state: string;
826
+ addressType: "INTERNATIONAL";
827
+ district2: string;
828
+ cityOrTown?: string | null | undefined;
829
+ addressLine1?: string | null | undefined;
830
+ addressLine2?: string | null | undefined;
831
+ addressLine3?: string | null | undefined;
832
+ postcodeOrZip?: string | null | undefined;
833
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
834
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
835
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
836
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
837
+ }, "strip", z.ZodTypeAny, {
838
+ firstname?: string | null | undefined;
839
+ surname?: string | null | undefined;
840
+ middlename?: string | null | undefined;
841
+ }, {
842
+ firstname?: string | null | undefined;
843
+ surname?: string | null | undefined;
844
+ middlename?: string | null | undefined;
845
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
846
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
847
+ start: z.ZodString;
848
+ end: z.ZodString;
849
+ }, "strip", z.ZodTypeAny, {
850
+ start: string;
851
+ end: string;
852
+ }, {
853
+ start: string;
854
+ end: string;
855
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
856
+ path: z.ZodEffects<z.ZodString, string, string>;
496
857
  originalFilename: z.ZodString;
497
858
  type: z.ZodString;
498
859
  }, "strip", z.ZodTypeAny, {
499
860
  type: string;
500
- filename: string;
861
+ path: string;
501
862
  originalFilename: string;
502
863
  }, {
503
864
  type: string;
504
- filename: string;
865
+ path: string;
505
866
  originalFilename: string;
506
867
  }>, z.ZodArray<z.ZodObject<{
507
- filename: z.ZodString;
868
+ path: z.ZodEffects<z.ZodString, string, string>;
508
869
  originalFilename: z.ZodString;
509
870
  type: z.ZodString;
510
871
  option: z.ZodString;
511
872
  }, "strip", z.ZodTypeAny, {
512
873
  type: string;
513
874
  option: string;
514
- filename: string;
875
+ path: string;
515
876
  originalFilename: string;
516
877
  }, {
517
878
  type: string;
518
879
  option: string;
519
- filename: string;
880
+ path: string;
520
881
  originalFilename: string;
521
882
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
522
883
  country: z.ZodString;
884
+ addressType: z.ZodLiteral<"DOMESTIC">;
523
885
  province: z.ZodString;
524
886
  district: z.ZodString;
525
887
  }, {
@@ -532,6 +894,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
532
894
  }>, "strip", z.ZodTypeAny, {
533
895
  country: string;
534
896
  district: string;
897
+ addressType: "DOMESTIC";
535
898
  province: string;
536
899
  urbanOrRural: "URBAN";
537
900
  number?: string | null | undefined;
@@ -542,6 +905,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
542
905
  }, {
543
906
  country: string;
544
907
  district: string;
908
+ addressType: "DOMESTIC";
545
909
  province: string;
546
910
  urbanOrRural: "URBAN";
547
911
  number?: string | null | undefined;
@@ -551,6 +915,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
551
915
  zipCode?: string | null | undefined;
552
916
  }>, z.ZodObject<z.objectUtil.extendShape<{
553
917
  country: z.ZodString;
918
+ addressType: z.ZodLiteral<"DOMESTIC">;
554
919
  province: z.ZodString;
555
920
  district: z.ZodString;
556
921
  }, {
@@ -559,27 +924,77 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
559
924
  }>, "strip", z.ZodTypeAny, {
560
925
  country: string;
561
926
  district: string;
927
+ addressType: "DOMESTIC";
562
928
  province: string;
563
929
  urbanOrRural: "RURAL";
564
930
  village?: string | null | undefined;
565
931
  }, {
566
932
  country: string;
567
933
  district: string;
934
+ addressType: "DOMESTIC";
568
935
  province: string;
569
936
  urbanOrRural: "RURAL";
570
937
  village?: string | null | undefined;
571
- }>]>>>;
938
+ }>, z.ZodUndefined, z.ZodObject<{
939
+ country: z.ZodString;
940
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
941
+ state: z.ZodString;
942
+ district2: z.ZodString;
943
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
944
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
945
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
946
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
947
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
948
+ }, "strip", z.ZodTypeAny, {
949
+ country: string;
950
+ state: string;
951
+ addressType: "INTERNATIONAL";
952
+ district2: string;
953
+ cityOrTown?: string | null | undefined;
954
+ addressLine1?: string | null | undefined;
955
+ addressLine2?: string | null | undefined;
956
+ addressLine3?: string | null | undefined;
957
+ postcodeOrZip?: string | null | undefined;
958
+ }, {
959
+ country: string;
960
+ state: string;
961
+ addressType: "INTERNATIONAL";
962
+ district2: string;
963
+ cityOrTown?: string | null | undefined;
964
+ addressLine1?: string | null | undefined;
965
+ addressLine2?: string | null | undefined;
966
+ addressLine3?: string | null | undefined;
967
+ postcodeOrZip?: string | null | undefined;
968
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
969
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
970
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
971
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
972
+ }, "strip", z.ZodTypeAny, {
973
+ firstname?: string | null | undefined;
974
+ surname?: string | null | undefined;
975
+ middlename?: string | null | undefined;
976
+ }, {
977
+ firstname?: string | null | undefined;
978
+ surname?: string | null | undefined;
979
+ middlename?: string | null | undefined;
980
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
981
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
982
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
572
983
  }, {
573
- type: z.ZodEnum<[ActionType, ...ActionType[]]>;
984
+ 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"]>;
985
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
574
986
  }>, "strip", z.ZodTypeAny, {
575
- type: ActionType;
576
- data: Record<string, string | number | boolean | {
987
+ 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";
988
+ status: "Rejected" | "Requested" | "Accepted";
989
+ transactionId: string;
990
+ declaration: Record<string, string | number | boolean | {
577
991
  type: string;
578
- filename: string;
992
+ path: string;
579
993
  originalFilename: string;
580
994
  } | {
581
995
  country: string;
582
996
  district: string;
997
+ addressType: "DOMESTIC";
583
998
  province: string;
584
999
  urbanOrRural: "URBAN";
585
1000
  number?: string | null | undefined;
@@ -587,27 +1002,45 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
587
1002
  residentialArea?: string | null | undefined;
588
1003
  street?: string | null | undefined;
589
1004
  zipCode?: string | null | undefined;
1005
+ } | {
1006
+ firstname?: string | null | undefined;
1007
+ surname?: string | null | undefined;
1008
+ middlename?: string | null | undefined;
590
1009
  } | {
591
1010
  country: string;
592
1011
  district: string;
1012
+ addressType: "DOMESTIC";
593
1013
  province: string;
594
1014
  urbanOrRural: "RURAL";
595
1015
  village?: string | null | undefined;
1016
+ } | {
1017
+ country: string;
1018
+ state: string;
1019
+ addressType: "INTERNATIONAL";
1020
+ district2: string;
1021
+ cityOrTown?: string | null | undefined;
1022
+ addressLine1?: string | null | undefined;
1023
+ addressLine2?: string | null | undefined;
1024
+ addressLine3?: string | null | undefined;
1025
+ postcodeOrZip?: string | null | undefined;
596
1026
  } | {
597
1027
  type: string;
598
1028
  option: string;
599
- filename: string;
1029
+ path: string;
600
1030
  originalFilename: string;
601
- }[]>;
602
- eventId: string;
603
- transactionId: string;
604
- metadata?: Record<string, string | number | boolean | {
1031
+ }[] | {
1032
+ start: string;
1033
+ end: string;
1034
+ } | null | undefined>;
1035
+ eventId: string & z.BRAND<"UUID">;
1036
+ annotation?: Record<string, string | number | boolean | {
605
1037
  type: string;
606
- filename: string;
1038
+ path: string;
607
1039
  originalFilename: string;
608
1040
  } | {
609
1041
  country: string;
610
1042
  district: string;
1043
+ addressType: "DOMESTIC";
611
1044
  province: string;
612
1045
  urbanOrRural: "URBAN";
613
1046
  number?: string | null | undefined;
@@ -615,27 +1048,51 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
615
1048
  residentialArea?: string | null | undefined;
616
1049
  street?: string | null | undefined;
617
1050
  zipCode?: string | null | undefined;
1051
+ } | {
1052
+ firstname?: string | null | undefined;
1053
+ surname?: string | null | undefined;
1054
+ middlename?: string | null | undefined;
618
1055
  } | {
619
1056
  country: string;
620
1057
  district: string;
1058
+ addressType: "DOMESTIC";
621
1059
  province: string;
622
1060
  urbanOrRural: "RURAL";
623
1061
  village?: string | null | undefined;
1062
+ } | {
1063
+ country: string;
1064
+ state: string;
1065
+ addressType: "INTERNATIONAL";
1066
+ district2: string;
1067
+ cityOrTown?: string | null | undefined;
1068
+ addressLine1?: string | null | undefined;
1069
+ addressLine2?: string | null | undefined;
1070
+ addressLine3?: string | null | undefined;
1071
+ postcodeOrZip?: string | null | undefined;
624
1072
  } | {
625
1073
  type: string;
626
1074
  option: string;
627
- filename: string;
1075
+ path: string;
628
1076
  originalFilename: string;
629
- }[]> | undefined;
1077
+ }[] | {
1078
+ start: string;
1079
+ end: string;
1080
+ } | null | undefined> | undefined;
1081
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
1082
+ keepAssignment?: boolean | undefined;
630
1083
  }, {
631
- type: ActionType;
632
- data: Record<string, string | number | boolean | {
1084
+ 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";
1085
+ status: "Rejected" | "Requested" | "Accepted";
1086
+ transactionId: string;
1087
+ eventId: string;
1088
+ declaration?: Record<string, string | number | boolean | {
633
1089
  type: string;
634
- filename: string;
1090
+ path: string;
635
1091
  originalFilename: string;
636
1092
  } | {
637
1093
  country: string;
638
1094
  district: string;
1095
+ addressType: "DOMESTIC";
639
1096
  province: string;
640
1097
  urbanOrRural: "URBAN";
641
1098
  number?: string | null | undefined;
@@ -643,27 +1100,44 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
643
1100
  residentialArea?: string | null | undefined;
644
1101
  street?: string | null | undefined;
645
1102
  zipCode?: string | null | undefined;
1103
+ } | {
1104
+ firstname?: string | null | undefined;
1105
+ surname?: string | null | undefined;
1106
+ middlename?: string | null | undefined;
646
1107
  } | {
647
1108
  country: string;
648
1109
  district: string;
1110
+ addressType: "DOMESTIC";
649
1111
  province: string;
650
1112
  urbanOrRural: "RURAL";
651
1113
  village?: string | null | undefined;
1114
+ } | {
1115
+ country: string;
1116
+ state: string;
1117
+ addressType: "INTERNATIONAL";
1118
+ district2: string;
1119
+ cityOrTown?: string | null | undefined;
1120
+ addressLine1?: string | null | undefined;
1121
+ addressLine2?: string | null | undefined;
1122
+ addressLine3?: string | null | undefined;
1123
+ postcodeOrZip?: string | null | undefined;
652
1124
  } | {
653
1125
  type: string;
654
1126
  option: string;
655
- filename: string;
1127
+ path: string;
656
1128
  originalFilename: string;
657
- }[]>;
658
- eventId: string;
659
- transactionId: string;
660
- metadata?: Record<string, string | number | boolean | {
1129
+ }[] | {
1130
+ start: string;
1131
+ end: string;
1132
+ } | null | undefined> | undefined;
1133
+ annotation?: Record<string, string | number | boolean | {
661
1134
  type: string;
662
- filename: string;
1135
+ path: string;
663
1136
  originalFilename: string;
664
1137
  } | {
665
1138
  country: string;
666
1139
  district: string;
1140
+ addressType: "DOMESTIC";
667
1141
  province: string;
668
1142
  urbanOrRural: "URBAN";
669
1143
  number?: string | null | undefined;
@@ -671,18 +1145,38 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
671
1145
  residentialArea?: string | null | undefined;
672
1146
  street?: string | null | undefined;
673
1147
  zipCode?: string | null | undefined;
1148
+ } | {
1149
+ firstname?: string | null | undefined;
1150
+ surname?: string | null | undefined;
1151
+ middlename?: string | null | undefined;
674
1152
  } | {
675
1153
  country: string;
676
1154
  district: string;
1155
+ addressType: "DOMESTIC";
677
1156
  province: string;
678
1157
  urbanOrRural: "RURAL";
679
1158
  village?: string | null | undefined;
1159
+ } | {
1160
+ country: string;
1161
+ state: string;
1162
+ addressType: "INTERNATIONAL";
1163
+ district2: string;
1164
+ cityOrTown?: string | null | undefined;
1165
+ addressLine1?: string | null | undefined;
1166
+ addressLine2?: string | null | undefined;
1167
+ addressLine3?: string | null | undefined;
1168
+ postcodeOrZip?: string | null | undefined;
680
1169
  } | {
681
1170
  type: string;
682
1171
  option: string;
683
- filename: string;
1172
+ path: string;
684
1173
  originalFilename: string;
685
- }[]> | undefined;
1174
+ }[] | {
1175
+ start: string;
1176
+ end: string;
1177
+ } | null | undefined> | undefined;
1178
+ originalActionId?: string | undefined;
1179
+ keepAssignment?: boolean | undefined;
686
1180
  }>;
687
1181
  export type Draft = z.infer<typeof Draft>;
688
1182
  export type DraftInput = z.infer<typeof DraftInput>;