@opencrvs/toolkit 1.8.0-rc.f988087 → 1.8.0-rc.f988670

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 +13703 -10688
  3. package/dist/commons/conditionals/conditionals.d.ts +32 -12
  4. package/dist/commons/conditionals/validate.d.ts +53 -17
  5. package/dist/commons/events/ActionConfig.d.ts +128971 -2093
  6. package/dist/commons/events/ActionDocument.d.ts +13021 -780
  7. package/dist/commons/events/ActionInput.d.ts +8135 -1182
  8. package/dist/commons/events/ActionType.d.ts +31 -12
  9. package/dist/commons/events/AdvancedSearchConfig.d.ts +1300 -22
  10. package/dist/commons/events/CompositeFieldValue.d.ts +192 -11
  11. package/dist/commons/events/Conditional.d.ts +21 -5
  12. package/dist/commons/events/Constants.d.ts +3 -0
  13. package/dist/commons/events/CountryConfigQueryInput.d.ts +4132 -0
  14. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  15. package/dist/commons/events/Draft.d.ts +608 -117
  16. package/dist/commons/events/EventConfig.d.ts +61501 -1806
  17. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  18. package/dist/commons/events/EventDocument.d.ts +5806 -1003
  19. package/dist/commons/events/EventIndex.d.ts +2350 -26
  20. package/dist/commons/events/EventMetadata.d.ts +347 -44
  21. package/dist/commons/events/FieldConfig.d.ts +7394 -956
  22. package/dist/commons/events/FieldType.d.ts +16 -2
  23. package/dist/commons/events/FieldTypeMapping.d.ts +269 -37
  24. package/dist/commons/events/FieldValue.d.ts +164 -20
  25. package/dist/commons/events/FormConfig.d.ts +54435 -90
  26. package/dist/commons/events/PageConfig.d.ts +13647 -0
  27. package/dist/commons/events/SummaryConfig.d.ts +93 -42
  28. package/dist/commons/events/TemplateConfig.d.ts +38 -0
  29. package/dist/commons/events/User.d.ts +34 -2
  30. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  31. package/dist/commons/events/WorkqueueConfig.d.ts +8240 -20
  32. package/dist/commons/events/defineConfig.d.ts +10034 -307
  33. package/dist/commons/events/event.d.ts +54 -0
  34. package/dist/commons/events/field.d.ts +108 -0
  35. package/dist/commons/events/index.d.ts +11 -1
  36. package/dist/commons/events/scopes.d.ts +44 -0
  37. package/dist/commons/events/serializer.d.ts +2 -0
  38. package/dist/commons/events/test.utils.d.ts +281 -237
  39. package/dist/commons/events/transactions.d.ts +1 -1
  40. package/dist/commons/events/utils.d.ts +16549 -70
  41. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  42. package/dist/conditionals/index.js +228 -116
  43. package/dist/events/index.js +5572 -1907
  44. package/dist/scopes/index.d.ts +247 -1
  45. package/dist/scopes/index.js +231 -1
  46. package/package.json +4 -3
  47. package/tsconfig.json +1 -1
  48. package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
@@ -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.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.ZodString;
140
+ surname: z.ZodString;
141
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ firstname: string;
144
+ surname: string;
145
+ middlename?: string | null | undefined;
146
+ }, {
147
+ firstname: string;
148
+ surname: string;
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.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.ZodString;
275
+ surname: z.ZodString;
276
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ firstname: string;
279
+ surname: string;
280
+ middlename?: string | null | undefined;
281
+ }, {
282
+ firstname: string;
283
+ surname: string;
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<["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: "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;
315
+ surname: string;
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;
362
+ surname: string;
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: "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;
416
+ surname: string;
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;
463
+ surname: string;
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: "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;
523
+ surname: string;
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;
570
+ surname: string;
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: "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;
630
+ surname: string;
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,53 +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;
677
+ surname: string;
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
- incomplete: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
417
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
418
- filename: z.ZodString;
711
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[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>;
419
722
  originalFilename: z.ZodString;
420
723
  type: z.ZodString;
421
724
  }, "strip", z.ZodTypeAny, {
422
725
  type: string;
423
- filename: string;
726
+ path: string;
424
727
  originalFilename: string;
425
728
  }, {
426
729
  type: string;
427
- filename: string;
730
+ path: string;
428
731
  originalFilename: string;
429
732
  }>, z.ZodArray<z.ZodObject<{
430
- filename: z.ZodString;
733
+ path: z.ZodEffects<z.ZodString, string, string>;
431
734
  originalFilename: z.ZodString;
432
735
  type: z.ZodString;
433
736
  option: z.ZodString;
434
737
  }, "strip", z.ZodTypeAny, {
435
738
  type: string;
436
739
  option: string;
437
- filename: string;
740
+ path: string;
438
741
  originalFilename: string;
439
742
  }, {
440
743
  type: string;
441
744
  option: string;
442
- filename: string;
745
+ path: string;
443
746
  originalFilename: string;
444
747
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
445
748
  country: z.ZodString;
749
+ addressType: z.ZodLiteral<"DOMESTIC">;
446
750
  province: z.ZodString;
447
751
  district: z.ZodString;
448
752
  }, {
@@ -455,6 +759,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
455
759
  }>, "strip", z.ZodTypeAny, {
456
760
  country: string;
457
761
  district: string;
762
+ addressType: "DOMESTIC";
458
763
  province: string;
459
764
  urbanOrRural: "URBAN";
460
765
  number?: string | null | undefined;
@@ -465,6 +770,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
465
770
  }, {
466
771
  country: string;
467
772
  district: string;
773
+ addressType: "DOMESTIC";
468
774
  province: string;
469
775
  urbanOrRural: "URBAN";
470
776
  number?: string | null | undefined;
@@ -474,6 +780,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
474
780
  zipCode?: string | null | undefined;
475
781
  }>, z.ZodObject<z.objectUtil.extendShape<{
476
782
  country: z.ZodString;
783
+ addressType: z.ZodLiteral<"DOMESTIC">;
477
784
  province: z.ZodString;
478
785
  district: z.ZodString;
479
786
  }, {
@@ -482,45 +789,99 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
482
789
  }>, "strip", z.ZodTypeAny, {
483
790
  country: string;
484
791
  district: string;
792
+ addressType: "DOMESTIC";
485
793
  province: string;
486
794
  urbanOrRural: "RURAL";
487
795
  village?: string | null | undefined;
488
796
  }, {
489
797
  country: string;
490
798
  district: string;
799
+ addressType: "DOMESTIC";
491
800
  province: string;
492
801
  urbanOrRural: "RURAL";
493
802
  village?: string | null | undefined;
494
- }>]>>;
495
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
496
- 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.ZodString;
835
+ surname: z.ZodString;
836
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
837
+ }, "strip", z.ZodTypeAny, {
838
+ firstname: string;
839
+ surname: string;
840
+ middlename?: string | null | undefined;
841
+ }, {
842
+ firstname: string;
843
+ surname: string;
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.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>;
497
857
  originalFilename: z.ZodString;
498
858
  type: z.ZodString;
499
859
  }, "strip", z.ZodTypeAny, {
500
860
  type: string;
501
- filename: string;
861
+ path: string;
502
862
  originalFilename: string;
503
863
  }, {
504
864
  type: string;
505
- filename: string;
865
+ path: string;
506
866
  originalFilename: string;
507
867
  }>, z.ZodArray<z.ZodObject<{
508
- filename: z.ZodString;
868
+ path: z.ZodEffects<z.ZodString, string, string>;
509
869
  originalFilename: z.ZodString;
510
870
  type: z.ZodString;
511
871
  option: z.ZodString;
512
872
  }, "strip", z.ZodTypeAny, {
513
873
  type: string;
514
874
  option: string;
515
- filename: string;
875
+ path: string;
516
876
  originalFilename: string;
517
877
  }, {
518
878
  type: string;
519
879
  option: string;
520
- filename: string;
880
+ path: string;
521
881
  originalFilename: string;
522
882
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
523
883
  country: z.ZodString;
884
+ addressType: z.ZodLiteral<"DOMESTIC">;
524
885
  province: z.ZodString;
525
886
  district: z.ZodString;
526
887
  }, {
@@ -533,6 +894,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
533
894
  }>, "strip", z.ZodTypeAny, {
534
895
  country: string;
535
896
  district: string;
897
+ addressType: "DOMESTIC";
536
898
  province: string;
537
899
  urbanOrRural: "URBAN";
538
900
  number?: string | null | undefined;
@@ -543,6 +905,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
543
905
  }, {
544
906
  country: string;
545
907
  district: string;
908
+ addressType: "DOMESTIC";
546
909
  province: string;
547
910
  urbanOrRural: "URBAN";
548
911
  number?: string | null | undefined;
@@ -552,6 +915,7 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
552
915
  zipCode?: string | null | undefined;
553
916
  }>, z.ZodObject<z.objectUtil.extendShape<{
554
917
  country: z.ZodString;
918
+ addressType: z.ZodLiteral<"DOMESTIC">;
555
919
  province: z.ZodString;
556
920
  district: z.ZodString;
557
921
  }, {
@@ -560,27 +924,77 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
560
924
  }>, "strip", z.ZodTypeAny, {
561
925
  country: string;
562
926
  district: string;
927
+ addressType: "DOMESTIC";
563
928
  province: string;
564
929
  urbanOrRural: "RURAL";
565
930
  village?: string | null | undefined;
566
931
  }, {
567
932
  country: string;
568
933
  district: string;
934
+ addressType: "DOMESTIC";
569
935
  province: string;
570
936
  urbanOrRural: "RURAL";
571
937
  village?: string | null | undefined;
572
- }>]>>>;
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.ZodString;
970
+ surname: z.ZodString;
971
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
972
+ }, "strip", z.ZodTypeAny, {
973
+ firstname: string;
974
+ surname: string;
975
+ middlename?: string | null | undefined;
976
+ }, {
977
+ firstname: string;
978
+ surname: string;
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>;
573
983
  }, {
574
- type: z.ZodEnum<[ActionType, ...ActionType[]]>;
984
+ type: z.ZodEnum<["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"]>;
575
986
  }>, "strip", z.ZodTypeAny, {
576
- type: ActionType;
577
- data: Record<string, string | number | boolean | {
987
+ type: "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 | {
578
991
  type: string;
579
- filename: string;
992
+ path: string;
580
993
  originalFilename: string;
581
994
  } | {
582
995
  country: string;
583
996
  district: string;
997
+ addressType: "DOMESTIC";
584
998
  province: string;
585
999
  urbanOrRural: "URBAN";
586
1000
  number?: string | null | undefined;
@@ -588,28 +1002,45 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
588
1002
  residentialArea?: string | null | undefined;
589
1003
  street?: string | null | undefined;
590
1004
  zipCode?: string | null | undefined;
1005
+ } | {
1006
+ firstname: string;
1007
+ surname: string;
1008
+ middlename?: string | null | undefined;
591
1009
  } | {
592
1010
  country: string;
593
1011
  district: string;
1012
+ addressType: "DOMESTIC";
594
1013
  province: string;
595
1014
  urbanOrRural: "RURAL";
596
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;
597
1026
  } | {
598
1027
  type: string;
599
1028
  option: string;
600
- filename: string;
1029
+ path: string;
601
1030
  originalFilename: string;
602
- }[]>;
603
- eventId: string;
604
- transactionId: string;
605
- incomplete: boolean;
606
- 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 | {
607
1037
  type: string;
608
- filename: string;
1038
+ path: string;
609
1039
  originalFilename: string;
610
1040
  } | {
611
1041
  country: string;
612
1042
  district: string;
1043
+ addressType: "DOMESTIC";
613
1044
  province: string;
614
1045
  urbanOrRural: "URBAN";
615
1046
  number?: string | null | undefined;
@@ -617,27 +1048,51 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
617
1048
  residentialArea?: string | null | undefined;
618
1049
  street?: string | null | undefined;
619
1050
  zipCode?: string | null | undefined;
1051
+ } | {
1052
+ firstname: string;
1053
+ surname: string;
1054
+ middlename?: string | null | undefined;
620
1055
  } | {
621
1056
  country: string;
622
1057
  district: string;
1058
+ addressType: "DOMESTIC";
623
1059
  province: string;
624
1060
  urbanOrRural: "RURAL";
625
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;
626
1072
  } | {
627
1073
  type: string;
628
1074
  option: string;
629
- filename: string;
1075
+ path: string;
630
1076
  originalFilename: string;
631
- }[]> | undefined;
1077
+ }[] | {
1078
+ start: string;
1079
+ end: string;
1080
+ } | null | undefined> | undefined;
1081
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
1082
+ keepAssignment?: boolean | undefined;
632
1083
  }, {
633
- type: ActionType;
634
- data: Record<string, string | number | boolean | {
1084
+ type: "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 | {
635
1089
  type: string;
636
- filename: string;
1090
+ path: string;
637
1091
  originalFilename: string;
638
1092
  } | {
639
1093
  country: string;
640
1094
  district: string;
1095
+ addressType: "DOMESTIC";
641
1096
  province: string;
642
1097
  urbanOrRural: "URBAN";
643
1098
  number?: string | null | undefined;
@@ -645,27 +1100,44 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
645
1100
  residentialArea?: string | null | undefined;
646
1101
  street?: string | null | undefined;
647
1102
  zipCode?: string | null | undefined;
1103
+ } | {
1104
+ firstname: string;
1105
+ surname: string;
1106
+ middlename?: string | null | undefined;
648
1107
  } | {
649
1108
  country: string;
650
1109
  district: string;
1110
+ addressType: "DOMESTIC";
651
1111
  province: string;
652
1112
  urbanOrRural: "RURAL";
653
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;
654
1124
  } | {
655
1125
  type: string;
656
1126
  option: string;
657
- filename: string;
1127
+ path: string;
658
1128
  originalFilename: string;
659
- }[]>;
660
- eventId: string;
661
- transactionId: string;
662
- metadata?: Record<string, string | number | boolean | {
1129
+ }[] | {
1130
+ start: string;
1131
+ end: string;
1132
+ } | null | undefined> | undefined;
1133
+ annotation?: Record<string, string | number | boolean | {
663
1134
  type: string;
664
- filename: string;
1135
+ path: string;
665
1136
  originalFilename: string;
666
1137
  } | {
667
1138
  country: string;
668
1139
  district: string;
1140
+ addressType: "DOMESTIC";
669
1141
  province: string;
670
1142
  urbanOrRural: "URBAN";
671
1143
  number?: string | null | undefined;
@@ -673,19 +1145,38 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
673
1145
  residentialArea?: string | null | undefined;
674
1146
  street?: string | null | undefined;
675
1147
  zipCode?: string | null | undefined;
1148
+ } | {
1149
+ firstname: string;
1150
+ surname: string;
1151
+ middlename?: string | null | undefined;
676
1152
  } | {
677
1153
  country: string;
678
1154
  district: string;
1155
+ addressType: "DOMESTIC";
679
1156
  province: string;
680
1157
  urbanOrRural: "RURAL";
681
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;
682
1169
  } | {
683
1170
  type: string;
684
1171
  option: string;
685
- filename: string;
1172
+ path: string;
686
1173
  originalFilename: string;
687
- }[]> | undefined;
688
- incomplete?: boolean | undefined;
1174
+ }[] | {
1175
+ start: string;
1176
+ end: string;
1177
+ } | null | undefined> | undefined;
1178
+ originalActionId?: string | undefined;
1179
+ keepAssignment?: boolean | undefined;
689
1180
  }>;
690
1181
  export type Draft = z.infer<typeof Draft>;
691
1182
  export type DraftInput = z.infer<typeof DraftInput>;