@opencrvs/toolkit 1.8.0-rc.f8e4107 → 1.8.0-rc.f8f94b8

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 (42) hide show
  1. package/dist/commons/api/router.d.ts +5905 -5314
  2. package/dist/commons/conditionals/conditionals.d.ts +7 -76
  3. package/dist/commons/conditionals/validate.d.ts +15 -6
  4. package/dist/commons/events/ActionConfig.d.ts +115347 -1728
  5. package/dist/commons/events/ActionDocument.d.ts +4824 -1375
  6. package/dist/commons/events/ActionInput.d.ts +3205 -1025
  7. package/dist/commons/events/ActionType.d.ts +9 -4
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1190 -23
  9. package/dist/commons/events/CompositeFieldValue.d.ts +40 -9
  10. package/dist/commons/events/Constants.d.ts +3 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +4132 -0
  12. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  13. package/dist/commons/events/Draft.d.ts +290 -104
  14. package/dist/commons/events/EventConfig.d.ts +52547 -1394
  15. package/dist/commons/events/EventDocument.d.ts +2720 -913
  16. package/dist/commons/events/EventIndex.d.ts +1696 -239
  17. package/dist/commons/events/EventMetadata.d.ts +340 -45
  18. package/dist/commons/events/FieldConfig.d.ts +6362 -1159
  19. package/dist/commons/events/FieldType.d.ts +7 -3
  20. package/dist/commons/events/FieldTypeMapping.d.ts +154 -73
  21. package/dist/commons/events/FieldValue.d.ts +90 -20
  22. package/dist/commons/events/FormConfig.d.ts +53892 -510
  23. package/dist/commons/events/PageConfig.d.ts +13367 -209
  24. package/dist/commons/events/SummaryConfig.d.ts +93 -42
  25. package/dist/commons/events/User.d.ts +34 -2
  26. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  27. package/dist/commons/events/WorkqueueConfig.d.ts +8116 -20
  28. package/dist/commons/events/defineConfig.d.ts +8255 -86
  29. package/dist/commons/events/event.d.ts +46 -0
  30. package/dist/commons/events/field.d.ts +94 -0
  31. package/dist/commons/events/index.d.ts +8 -0
  32. package/dist/commons/events/scopes.d.ts +46 -0
  33. package/dist/commons/events/serializer.d.ts +2 -0
  34. package/dist/commons/events/test.utils.d.ts +206 -90
  35. package/dist/commons/events/transactions.d.ts +1 -1
  36. package/dist/commons/events/utils.d.ts +14940 -85
  37. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  38. package/dist/conditionals/index.js +64 -102
  39. package/dist/events/index.js +4576 -1838
  40. package/dist/scopes/index.d.ts +247 -1
  41. package/dist/scopes/index.js +231 -1
  42. package/package.json +4 -3
@@ -1,39 +1,53 @@
1
1
  import { z } from 'zod';
2
2
  export declare const Draft: z.ZodObject<{
3
- id: z.ZodString;
4
- eventId: z.ZodString;
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
4
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
5
5
  transactionId: z.ZodString;
6
6
  createdAt: z.ZodString;
7
7
  action: z.ZodObject<Omit<z.objectUtil.extendShape<{
8
- id: z.ZodString;
8
+ id: z.ZodBranded<z.ZodString, "UUID">;
9
+ transactionId: z.ZodString;
10
+ createdByUserType: z.ZodEnum<["user", "system"]>;
9
11
  createdAt: z.ZodString;
10
12
  createdBy: z.ZodString;
11
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12
- 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>;
13
27
  originalFilename: z.ZodString;
14
28
  type: z.ZodString;
15
29
  }, "strip", z.ZodTypeAny, {
16
30
  type: string;
17
- filename: string;
31
+ path: string;
18
32
  originalFilename: string;
19
33
  }, {
20
34
  type: string;
21
- filename: string;
35
+ path: string;
22
36
  originalFilename: string;
23
37
  }>, z.ZodArray<z.ZodObject<{
24
- filename: z.ZodString;
38
+ path: z.ZodEffects<z.ZodString, string, string>;
25
39
  originalFilename: z.ZodString;
26
40
  type: z.ZodString;
27
41
  option: z.ZodString;
28
42
  }, "strip", z.ZodTypeAny, {
29
43
  type: string;
30
44
  option: string;
31
- filename: string;
45
+ path: string;
32
46
  originalFilename: string;
33
47
  }, {
34
48
  type: string;
35
49
  option: string;
36
- filename: string;
50
+ path: string;
37
51
  originalFilename: string;
38
52
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
39
53
  country: z.ZodString;
@@ -121,33 +135,54 @@ export declare const Draft: z.ZodObject<{
121
135
  addressLine2?: string | null | undefined;
122
136
  addressLine3?: string | null | undefined;
123
137
  postcodeOrZip?: string | null | undefined;
124
- }>]>>;
125
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
126
- filename: z.ZodString;
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.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>;
127
162
  originalFilename: z.ZodString;
128
163
  type: z.ZodString;
129
164
  }, "strip", z.ZodTypeAny, {
130
165
  type: string;
131
- filename: string;
166
+ path: string;
132
167
  originalFilename: string;
133
168
  }, {
134
169
  type: string;
135
- filename: string;
170
+ path: string;
136
171
  originalFilename: string;
137
172
  }>, z.ZodArray<z.ZodObject<{
138
- filename: z.ZodString;
173
+ path: z.ZodEffects<z.ZodString, string, string>;
139
174
  originalFilename: z.ZodString;
140
175
  type: z.ZodString;
141
176
  option: z.ZodString;
142
177
  }, "strip", z.ZodTypeAny, {
143
178
  type: string;
144
179
  option: string;
145
- filename: string;
180
+ path: string;
146
181
  originalFilename: string;
147
182
  }, {
148
183
  type: string;
149
184
  option: string;
150
- filename: string;
185
+ path: string;
151
186
  originalFilename: string;
152
187
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
153
188
  country: z.ZodString;
@@ -235,21 +270,34 @@ export declare const Draft: z.ZodObject<{
235
270
  addressLine2?: string | null | undefined;
236
271
  addressLine3?: string | null | undefined;
237
272
  postcodeOrZip?: string | null | undefined;
238
- }>]>>>;
239
- createdAtLocation: z.ZodOptional<z.ZodString>;
240
- updatedAtLocation: z.ZodOptional<z.ZodString>;
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]>]>>>>;
241
286
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
242
- originalActionId: z.ZodOptional<z.ZodString>;
287
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
243
288
  }, {
244
- 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"]>;
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", "REVIEW_CORRECTION_REQUEST", "READ", "ASSIGN", "UNASSIGN"]>;
245
290
  }>, "id">, "strip", z.ZodTypeAny, {
246
- type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
291
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "REVIEW_CORRECTION_REQUEST" | "READ" | "ASSIGN" | "UNASSIGN";
247
292
  status: "Rejected" | "Requested" | "Accepted";
293
+ transactionId: string;
294
+ createdByUserType: "system" | "user";
248
295
  createdAt: string;
249
296
  createdBy: string;
297
+ createdByRole: string;
250
298
  declaration: Record<string, string | number | boolean | {
251
299
  type: string;
252
- filename: string;
300
+ path: string;
253
301
  originalFilename: string;
254
302
  } | {
255
303
  country: string;
@@ -262,6 +310,10 @@ export declare const Draft: z.ZodObject<{
262
310
  residentialArea?: string | null | undefined;
263
311
  street?: string | null | undefined;
264
312
  zipCode?: string | null | undefined;
313
+ } | {
314
+ firstname?: string | null | undefined;
315
+ surname?: string | null | undefined;
316
+ middlename?: string | null | undefined;
265
317
  } | {
266
318
  country: string;
267
319
  district: string;
@@ -282,12 +334,17 @@ export declare const Draft: z.ZodObject<{
282
334
  } | {
283
335
  type: string;
284
336
  option: string;
285
- filename: string;
337
+ path: string;
286
338
  originalFilename: string;
287
- }[] | undefined>;
339
+ }[] | {
340
+ start: string;
341
+ end: string;
342
+ } | null | undefined>;
343
+ createdBySignature?: string | null | undefined;
344
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
288
345
  annotation?: Record<string, string | number | boolean | {
289
346
  type: string;
290
- filename: string;
347
+ path: string;
291
348
  originalFilename: string;
292
349
  } | {
293
350
  country: string;
@@ -300,6 +357,10 @@ export declare const Draft: z.ZodObject<{
300
357
  residentialArea?: string | null | undefined;
301
358
  street?: string | null | undefined;
302
359
  zipCode?: string | null | undefined;
360
+ } | {
361
+ firstname?: string | null | undefined;
362
+ surname?: string | null | undefined;
363
+ middlename?: string | null | undefined;
303
364
  } | {
304
365
  country: string;
305
366
  district: string;
@@ -320,20 +381,24 @@ export declare const Draft: z.ZodObject<{
320
381
  } | {
321
382
  type: string;
322
383
  option: string;
323
- filename: string;
384
+ path: string;
324
385
  originalFilename: string;
325
- }[] | undefined> | undefined;
326
- createdAtLocation?: string | undefined;
327
- updatedAtLocation?: string | undefined;
328
- originalActionId?: string | undefined;
386
+ }[] | {
387
+ start: string;
388
+ end: string;
389
+ } | null | undefined> | null | undefined;
390
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
329
391
  }, {
330
- type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
392
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "REVIEW_CORRECTION_REQUEST" | "READ" | "ASSIGN" | "UNASSIGN";
331
393
  status: "Rejected" | "Requested" | "Accepted";
394
+ transactionId: string;
395
+ createdByUserType: "system" | "user";
332
396
  createdAt: string;
333
397
  createdBy: string;
398
+ createdByRole: string;
334
399
  declaration: Record<string, string | number | boolean | {
335
400
  type: string;
336
- filename: string;
401
+ path: string;
337
402
  originalFilename: string;
338
403
  } | {
339
404
  country: string;
@@ -346,6 +411,10 @@ export declare const Draft: z.ZodObject<{
346
411
  residentialArea?: string | null | undefined;
347
412
  street?: string | null | undefined;
348
413
  zipCode?: string | null | undefined;
414
+ } | {
415
+ firstname?: string | null | undefined;
416
+ surname?: string | null | undefined;
417
+ middlename?: string | null | undefined;
349
418
  } | {
350
419
  country: string;
351
420
  district: string;
@@ -366,12 +435,17 @@ export declare const Draft: z.ZodObject<{
366
435
  } | {
367
436
  type: string;
368
437
  option: string;
369
- filename: string;
438
+ path: string;
370
439
  originalFilename: string;
371
- }[] | undefined>;
440
+ }[] | {
441
+ start: string;
442
+ end: string;
443
+ } | null | undefined>;
444
+ createdBySignature?: string | null | undefined;
445
+ createdAtLocation?: string | null | undefined;
372
446
  annotation?: Record<string, string | number | boolean | {
373
447
  type: string;
374
- filename: string;
448
+ path: string;
375
449
  originalFilename: string;
376
450
  } | {
377
451
  country: string;
@@ -384,6 +458,10 @@ export declare const Draft: z.ZodObject<{
384
458
  residentialArea?: string | null | undefined;
385
459
  street?: string | null | undefined;
386
460
  zipCode?: string | null | undefined;
461
+ } | {
462
+ firstname?: string | null | undefined;
463
+ surname?: string | null | undefined;
464
+ middlename?: string | null | undefined;
387
465
  } | {
388
466
  country: string;
389
467
  district: string;
@@ -404,26 +482,30 @@ export declare const Draft: z.ZodObject<{
404
482
  } | {
405
483
  type: string;
406
484
  option: string;
407
- filename: string;
485
+ path: string;
408
486
  originalFilename: string;
409
- }[] | undefined> | undefined;
410
- createdAtLocation?: string | undefined;
411
- updatedAtLocation?: string | undefined;
412
- originalActionId?: string | undefined;
487
+ }[] | {
488
+ start: string;
489
+ end: string;
490
+ } | null | undefined> | null | undefined;
491
+ originalActionId?: string | null | undefined;
413
492
  }>;
414
493
  }, "strip", z.ZodTypeAny, {
415
- id: string;
416
- createdAt: string;
417
- eventId: string;
494
+ id: string & z.BRAND<"UUID">;
418
495
  transactionId: string;
496
+ createdAt: string;
497
+ eventId: string & z.BRAND<"UUID">;
419
498
  action: {
420
- type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
499
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "REVIEW_CORRECTION_REQUEST" | "READ" | "ASSIGN" | "UNASSIGN";
421
500
  status: "Rejected" | "Requested" | "Accepted";
501
+ transactionId: string;
502
+ createdByUserType: "system" | "user";
422
503
  createdAt: string;
423
504
  createdBy: string;
505
+ createdByRole: string;
424
506
  declaration: Record<string, string | number | boolean | {
425
507
  type: string;
426
- filename: string;
508
+ path: string;
427
509
  originalFilename: string;
428
510
  } | {
429
511
  country: string;
@@ -436,6 +518,10 @@ export declare const Draft: z.ZodObject<{
436
518
  residentialArea?: string | null | undefined;
437
519
  street?: string | null | undefined;
438
520
  zipCode?: string | null | undefined;
521
+ } | {
522
+ firstname?: string | null | undefined;
523
+ surname?: string | null | undefined;
524
+ middlename?: string | null | undefined;
439
525
  } | {
440
526
  country: string;
441
527
  district: string;
@@ -456,12 +542,17 @@ export declare const Draft: z.ZodObject<{
456
542
  } | {
457
543
  type: string;
458
544
  option: string;
459
- filename: string;
545
+ path: string;
460
546
  originalFilename: string;
461
- }[] | undefined>;
547
+ }[] | {
548
+ start: string;
549
+ end: string;
550
+ } | null | undefined>;
551
+ createdBySignature?: string | null | undefined;
552
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
462
553
  annotation?: Record<string, string | number | boolean | {
463
554
  type: string;
464
- filename: string;
555
+ path: string;
465
556
  originalFilename: string;
466
557
  } | {
467
558
  country: string;
@@ -474,6 +565,10 @@ export declare const Draft: z.ZodObject<{
474
565
  residentialArea?: string | null | undefined;
475
566
  street?: string | null | undefined;
476
567
  zipCode?: string | null | undefined;
568
+ } | {
569
+ firstname?: string | null | undefined;
570
+ surname?: string | null | undefined;
571
+ middlename?: string | null | undefined;
477
572
  } | {
478
573
  country: string;
479
574
  district: string;
@@ -494,26 +589,30 @@ export declare const Draft: z.ZodObject<{
494
589
  } | {
495
590
  type: string;
496
591
  option: string;
497
- filename: string;
592
+ path: string;
498
593
  originalFilename: string;
499
- }[] | undefined> | undefined;
500
- createdAtLocation?: string | undefined;
501
- updatedAtLocation?: string | undefined;
502
- originalActionId?: string | undefined;
594
+ }[] | {
595
+ start: string;
596
+ end: string;
597
+ } | null | undefined> | null | undefined;
598
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
503
599
  };
504
600
  }, {
505
601
  id: string;
602
+ transactionId: string;
506
603
  createdAt: string;
507
604
  eventId: string;
508
- transactionId: string;
509
605
  action: {
510
- type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
606
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "REVIEW_CORRECTION_REQUEST" | "READ" | "ASSIGN" | "UNASSIGN";
511
607
  status: "Rejected" | "Requested" | "Accepted";
608
+ transactionId: string;
609
+ createdByUserType: "system" | "user";
512
610
  createdAt: string;
513
611
  createdBy: string;
612
+ createdByRole: string;
514
613
  declaration: Record<string, string | number | boolean | {
515
614
  type: string;
516
- filename: string;
615
+ path: string;
517
616
  originalFilename: string;
518
617
  } | {
519
618
  country: string;
@@ -526,6 +625,10 @@ export declare const Draft: z.ZodObject<{
526
625
  residentialArea?: string | null | undefined;
527
626
  street?: string | null | undefined;
528
627
  zipCode?: string | null | undefined;
628
+ } | {
629
+ firstname?: string | null | undefined;
630
+ surname?: string | null | undefined;
631
+ middlename?: string | null | undefined;
529
632
  } | {
530
633
  country: string;
531
634
  district: string;
@@ -546,12 +649,17 @@ export declare const Draft: z.ZodObject<{
546
649
  } | {
547
650
  type: string;
548
651
  option: string;
549
- filename: string;
652
+ path: string;
550
653
  originalFilename: string;
551
- }[] | undefined>;
654
+ }[] | {
655
+ start: string;
656
+ end: string;
657
+ } | null | undefined>;
658
+ createdBySignature?: string | null | undefined;
659
+ createdAtLocation?: string | null | undefined;
552
660
  annotation?: Record<string, string | number | boolean | {
553
661
  type: string;
554
- filename: string;
662
+ path: string;
555
663
  originalFilename: string;
556
664
  } | {
557
665
  country: string;
@@ -564,6 +672,10 @@ export declare const Draft: z.ZodObject<{
564
672
  residentialArea?: string | null | undefined;
565
673
  street?: string | null | undefined;
566
674
  zipCode?: string | null | undefined;
675
+ } | {
676
+ firstname?: string | null | undefined;
677
+ surname?: string | null | undefined;
678
+ middlename?: string | null | undefined;
567
679
  } | {
568
680
  country: string;
569
681
  district: string;
@@ -584,43 +696,53 @@ export declare const Draft: z.ZodObject<{
584
696
  } | {
585
697
  type: string;
586
698
  option: string;
587
- filename: string;
699
+ path: string;
588
700
  originalFilename: string;
589
- }[] | undefined> | undefined;
590
- createdAtLocation?: string | undefined;
591
- updatedAtLocation?: string | undefined;
592
- originalActionId?: string | undefined;
701
+ }[] | {
702
+ start: string;
703
+ end: string;
704
+ } | null | undefined> | null | undefined;
705
+ originalActionId?: string | null | undefined;
593
706
  };
594
707
  }>;
595
708
  export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
596
- eventId: z.ZodString;
709
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
597
710
  transactionId: z.ZodString;
598
- declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
599
- 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>;
600
722
  originalFilename: z.ZodString;
601
723
  type: z.ZodString;
602
724
  }, "strip", z.ZodTypeAny, {
603
725
  type: string;
604
- filename: string;
726
+ path: string;
605
727
  originalFilename: string;
606
728
  }, {
607
729
  type: string;
608
- filename: string;
730
+ path: string;
609
731
  originalFilename: string;
610
732
  }>, z.ZodArray<z.ZodObject<{
611
- filename: z.ZodString;
733
+ path: z.ZodEffects<z.ZodString, string, string>;
612
734
  originalFilename: z.ZodString;
613
735
  type: z.ZodString;
614
736
  option: z.ZodString;
615
737
  }, "strip", z.ZodTypeAny, {
616
738
  type: string;
617
739
  option: string;
618
- filename: string;
740
+ path: string;
619
741
  originalFilename: string;
620
742
  }, {
621
743
  type: string;
622
744
  option: string;
623
- filename: string;
745
+ path: string;
624
746
  originalFilename: string;
625
747
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
626
748
  country: z.ZodString;
@@ -708,33 +830,54 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
708
830
  addressLine2?: string | null | undefined;
709
831
  addressLine3?: string | null | undefined;
710
832
  postcodeOrZip?: string | null | undefined;
711
- }>]>>>;
712
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
713
- filename: z.ZodString;
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.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>;
714
857
  originalFilename: z.ZodString;
715
858
  type: z.ZodString;
716
859
  }, "strip", z.ZodTypeAny, {
717
860
  type: string;
718
- filename: string;
861
+ path: string;
719
862
  originalFilename: string;
720
863
  }, {
721
864
  type: string;
722
- filename: string;
865
+ path: string;
723
866
  originalFilename: string;
724
867
  }>, z.ZodArray<z.ZodObject<{
725
- filename: z.ZodString;
868
+ path: z.ZodEffects<z.ZodString, string, string>;
726
869
  originalFilename: z.ZodString;
727
870
  type: z.ZodString;
728
871
  option: z.ZodString;
729
872
  }, "strip", z.ZodTypeAny, {
730
873
  type: string;
731
874
  option: string;
732
- filename: string;
875
+ path: string;
733
876
  originalFilename: string;
734
877
  }, {
735
878
  type: string;
736
879
  option: string;
737
- filename: string;
880
+ path: string;
738
881
  originalFilename: string;
739
882
  }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
740
883
  country: z.ZodString;
@@ -822,16 +965,31 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
822
965
  addressLine2?: string | null | undefined;
823
966
  addressLine3?: string | null | undefined;
824
967
  postcodeOrZip?: string | null | undefined;
825
- }>]>>>;
826
- originalActionId: z.ZodOptional<z.ZodString>;
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">>;
827
982
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
828
983
  }, {
829
- 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"]>;
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", "REVIEW_CORRECTION_REQUEST", "READ", "ASSIGN", "UNASSIGN"]>;
985
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
830
986
  }>, "strip", z.ZodTypeAny, {
831
- type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
987
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "REVIEW_CORRECTION_REQUEST" | "READ" | "ASSIGN" | "UNASSIGN";
988
+ status: "Rejected" | "Requested" | "Accepted";
989
+ transactionId: string;
832
990
  declaration: Record<string, string | number | boolean | {
833
991
  type: string;
834
- filename: string;
992
+ path: string;
835
993
  originalFilename: string;
836
994
  } | {
837
995
  country: string;
@@ -844,6 +1002,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
844
1002
  residentialArea?: string | null | undefined;
845
1003
  street?: string | null | undefined;
846
1004
  zipCode?: string | null | undefined;
1005
+ } | {
1006
+ firstname?: string | null | undefined;
1007
+ surname?: string | null | undefined;
1008
+ middlename?: string | null | undefined;
847
1009
  } | {
848
1010
  country: string;
849
1011
  district: string;
@@ -864,14 +1026,16 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
864
1026
  } | {
865
1027
  type: string;
866
1028
  option: string;
867
- filename: string;
1029
+ path: string;
868
1030
  originalFilename: string;
869
- }[] | undefined>;
870
- eventId: string;
871
- transactionId: string;
1031
+ }[] | {
1032
+ start: string;
1033
+ end: string;
1034
+ } | null | undefined>;
1035
+ eventId: string & z.BRAND<"UUID">;
872
1036
  annotation?: Record<string, string | number | boolean | {
873
1037
  type: string;
874
- filename: string;
1038
+ path: string;
875
1039
  originalFilename: string;
876
1040
  } | {
877
1041
  country: string;
@@ -884,6 +1048,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
884
1048
  residentialArea?: string | null | undefined;
885
1049
  street?: string | null | undefined;
886
1050
  zipCode?: string | null | undefined;
1051
+ } | {
1052
+ firstname?: string | null | undefined;
1053
+ surname?: string | null | undefined;
1054
+ middlename?: string | null | undefined;
887
1055
  } | {
888
1056
  country: string;
889
1057
  district: string;
@@ -904,18 +1072,22 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
904
1072
  } | {
905
1073
  type: string;
906
1074
  option: string;
907
- filename: string;
1075
+ path: string;
908
1076
  originalFilename: string;
909
- }[] | undefined> | undefined;
910
- originalActionId?: string | undefined;
1077
+ }[] | {
1078
+ start: string;
1079
+ end: string;
1080
+ } | null | undefined> | undefined;
1081
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
911
1082
  keepAssignment?: boolean | undefined;
912
1083
  }, {
913
- type: "DECLARE" | "REGISTER" | "VALIDATE" | "DELETE" | "CREATE" | "NOTIFY" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
914
- eventId: string;
1084
+ type: "DELETE" | "CREATE" | "NOTIFY" | "DECLARE" | "VALIDATE" | "REGISTER" | "DETECT_DUPLICATE" | "REJECT" | "MARKED_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "REVIEW_CORRECTION_REQUEST" | "READ" | "ASSIGN" | "UNASSIGN";
1085
+ status: "Rejected" | "Requested" | "Accepted";
915
1086
  transactionId: string;
1087
+ eventId: string;
916
1088
  declaration?: Record<string, string | number | boolean | {
917
1089
  type: string;
918
- filename: string;
1090
+ path: string;
919
1091
  originalFilename: string;
920
1092
  } | {
921
1093
  country: string;
@@ -928,6 +1100,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
928
1100
  residentialArea?: string | null | undefined;
929
1101
  street?: string | null | undefined;
930
1102
  zipCode?: string | null | undefined;
1103
+ } | {
1104
+ firstname?: string | null | undefined;
1105
+ surname?: string | null | undefined;
1106
+ middlename?: string | null | undefined;
931
1107
  } | {
932
1108
  country: string;
933
1109
  district: string;
@@ -948,12 +1124,15 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
948
1124
  } | {
949
1125
  type: string;
950
1126
  option: string;
951
- filename: string;
1127
+ path: string;
952
1128
  originalFilename: string;
953
- }[] | undefined> | undefined;
1129
+ }[] | {
1130
+ start: string;
1131
+ end: string;
1132
+ } | null | undefined> | undefined;
954
1133
  annotation?: Record<string, string | number | boolean | {
955
1134
  type: string;
956
- filename: string;
1135
+ path: string;
957
1136
  originalFilename: string;
958
1137
  } | {
959
1138
  country: string;
@@ -966,6 +1145,10 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
966
1145
  residentialArea?: string | null | undefined;
967
1146
  street?: string | null | undefined;
968
1147
  zipCode?: string | null | undefined;
1148
+ } | {
1149
+ firstname?: string | null | undefined;
1150
+ surname?: string | null | undefined;
1151
+ middlename?: string | null | undefined;
969
1152
  } | {
970
1153
  country: string;
971
1154
  district: string;
@@ -986,9 +1169,12 @@ export declare const DraftInput: z.ZodObject<z.objectUtil.extendShape<{
986
1169
  } | {
987
1170
  type: string;
988
1171
  option: string;
989
- filename: string;
1172
+ path: string;
990
1173
  originalFilename: string;
991
- }[] | undefined> | undefined;
1174
+ }[] | {
1175
+ start: string;
1176
+ end: string;
1177
+ } | null | undefined> | undefined;
992
1178
  originalActionId?: string | undefined;
993
1179
  keepAssignment?: boolean | undefined;
994
1180
  }>;