@opencrvs/toolkit 1.8.0-rc.fb261c5 → 1.8.0-rc.fb4793a

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 (41) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +12851 -14359
  3. package/dist/commons/conditionals/conditionals.d.ts +30 -5
  4. package/dist/commons/conditionals/validate.d.ts +12 -17
  5. package/dist/commons/events/ActionConfig.d.ts +95950 -5791
  6. package/dist/commons/events/ActionDocument.d.ts +7747 -316
  7. package/dist/commons/events/ActionInput.d.ts +2241 -496
  8. package/dist/commons/events/ActionType.d.ts +26 -16
  9. package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
  10. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  11. package/dist/commons/events/Conditional.d.ts +21 -5
  12. package/dist/commons/events/Draft.d.ts +79 -51
  13. package/dist/commons/events/EventConfig.d.ts +45793 -3039
  14. package/dist/commons/events/EventConfigInput.d.ts +5 -2
  15. package/dist/commons/events/EventDocument.d.ts +1001 -424
  16. package/dist/commons/events/EventIndex.d.ts +1735 -10
  17. package/dist/commons/events/EventInput.d.ts +13 -0
  18. package/dist/commons/events/EventMetadata.d.ts +274 -8
  19. package/dist/commons/events/FieldConfig.d.ts +4514 -788
  20. package/dist/commons/events/FieldType.d.ts +3 -3
  21. package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
  22. package/dist/commons/events/FieldValue.d.ts +7 -4
  23. package/dist/commons/events/FormConfig.d.ts +43735 -336
  24. package/dist/commons/events/PageConfig.d.ts +10991 -0
  25. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  26. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  27. package/dist/commons/events/User.d.ts +5 -0
  28. package/dist/commons/events/WorkqueueConfig.d.ts +1549 -19
  29. package/dist/commons/events/defineConfig.d.ts +7293 -487
  30. package/dist/commons/events/event.d.ts +54 -0
  31. package/dist/commons/events/field.d.ts +82 -0
  32. package/dist/commons/events/index.d.ts +5 -1
  33. package/dist/commons/events/scopes.d.ts +45 -0
  34. package/dist/commons/events/test.utils.d.ts +67 -326
  35. package/dist/commons/events/utils.d.ts +3689 -158
  36. package/dist/commons/events/utils.test.d.ts +2 -0
  37. package/dist/conditionals/index.js +191 -120
  38. package/dist/events/index.js +2683 -1362
  39. package/dist/scopes/index.d.ts +158 -1
  40. package/dist/scopes/index.js +152 -1
  41. package/package.json +3 -2
@@ -2,13 +2,22 @@ import { z } from 'zod';
2
2
  export declare const EventDocument: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  type: z.ZodString;
5
+ dateOfEvent: z.ZodOptional<z.ZodObject<{
6
+ fieldId: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ fieldId: string;
9
+ }, {
10
+ fieldId: string;
11
+ }>>;
5
12
  createdAt: z.ZodString;
6
13
  updatedAt: z.ZodString;
7
- actions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
14
+ actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
8
15
  id: z.ZodString;
16
+ transactionId: z.ZodString;
9
17
  createdAt: z.ZodString;
10
18
  createdBy: z.ZodString;
11
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
19
+ createdByRole: z.ZodString;
20
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12
21
  filename: z.ZodString;
13
22
  originalFilename: z.ZodString;
14
23
  type: z.ZodString;
@@ -122,7 +131,7 @@ export declare const EventDocument: z.ZodObject<{
122
131
  addressLine3?: string | null | undefined;
123
132
  postcodeOrZip?: string | null | undefined;
124
133
  }>]>>;
125
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
134
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
126
135
  filename: z.ZodString;
127
136
  originalFilename: z.ZodString;
128
137
  type: z.ZodString;
@@ -237,12 +246,19 @@ export declare const EventDocument: z.ZodObject<{
237
246
  postcodeOrZip?: string | null | undefined;
238
247
  }>]>>>;
239
248
  createdAtLocation: z.ZodString;
249
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
250
+ originalActionId: z.ZodOptional<z.ZodString>;
240
251
  }, {
241
252
  type: z.ZodLiteral<"CREATE">;
242
253
  }>, "strip", z.ZodTypeAny, {
243
254
  type: "CREATE";
244
255
  id: string;
245
- data: Record<string, string | number | boolean | {
256
+ status: "Rejected" | "Requested" | "Accepted";
257
+ transactionId: string;
258
+ createdAt: string;
259
+ createdBy: string;
260
+ createdByRole: string;
261
+ declaration: Record<string, string | number | boolean | {
246
262
  type: string;
247
263
  filename: string;
248
264
  originalFilename: string;
@@ -279,11 +295,9 @@ export declare const EventDocument: z.ZodObject<{
279
295
  option: string;
280
296
  filename: string;
281
297
  originalFilename: string;
282
- }[] | undefined>;
283
- createdAt: string;
284
- createdBy: string;
298
+ }[] | [string, string] | undefined>;
285
299
  createdAtLocation: string;
286
- metadata?: Record<string, string | number | boolean | {
300
+ annotation?: Record<string, string | number | boolean | {
287
301
  type: string;
288
302
  filename: string;
289
303
  originalFilename: string;
@@ -320,11 +334,17 @@ export declare const EventDocument: z.ZodObject<{
320
334
  option: string;
321
335
  filename: string;
322
336
  originalFilename: string;
323
- }[] | undefined> | undefined;
337
+ }[] | [string, string] | undefined> | undefined;
338
+ originalActionId?: string | undefined;
324
339
  }, {
325
340
  type: "CREATE";
326
341
  id: string;
327
- data: Record<string, string | number | boolean | {
342
+ status: "Rejected" | "Requested" | "Accepted";
343
+ transactionId: string;
344
+ createdAt: string;
345
+ createdBy: string;
346
+ createdByRole: string;
347
+ declaration: Record<string, string | number | boolean | {
328
348
  type: string;
329
349
  filename: string;
330
350
  originalFilename: string;
@@ -361,11 +381,9 @@ export declare const EventDocument: z.ZodObject<{
361
381
  option: string;
362
382
  filename: string;
363
383
  originalFilename: string;
364
- }[] | undefined>;
365
- createdAt: string;
366
- createdBy: string;
384
+ }[] | [string, string] | undefined>;
367
385
  createdAtLocation: string;
368
- metadata?: Record<string, string | number | boolean | {
386
+ annotation?: Record<string, string | number | boolean | {
369
387
  type: string;
370
388
  filename: string;
371
389
  originalFilename: string;
@@ -402,12 +420,15 @@ export declare const EventDocument: z.ZodObject<{
402
420
  option: string;
403
421
  filename: string;
404
422
  originalFilename: string;
405
- }[] | undefined> | undefined;
423
+ }[] | [string, string] | undefined> | undefined;
424
+ originalActionId?: string | undefined;
406
425
  }>, z.ZodObject<z.objectUtil.extendShape<{
407
426
  id: z.ZodString;
427
+ transactionId: z.ZodString;
408
428
  createdAt: z.ZodString;
409
429
  createdBy: z.ZodString;
410
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
430
+ createdByRole: z.ZodString;
431
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
411
432
  filename: z.ZodString;
412
433
  originalFilename: z.ZodString;
413
434
  type: z.ZodString;
@@ -521,7 +542,7 @@ export declare const EventDocument: z.ZodObject<{
521
542
  addressLine3?: string | null | undefined;
522
543
  postcodeOrZip?: string | null | undefined;
523
544
  }>]>>;
524
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
545
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
525
546
  filename: z.ZodString;
526
547
  originalFilename: z.ZodString;
527
548
  type: z.ZodString;
@@ -636,12 +657,19 @@ export declare const EventDocument: z.ZodObject<{
636
657
  postcodeOrZip?: string | null | undefined;
637
658
  }>]>>>;
638
659
  createdAtLocation: z.ZodString;
660
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
661
+ originalActionId: z.ZodOptional<z.ZodString>;
639
662
  }, {
640
663
  type: z.ZodLiteral<"VALIDATE">;
641
664
  }>, "strip", z.ZodTypeAny, {
642
665
  type: "VALIDATE";
643
666
  id: string;
644
- data: Record<string, string | number | boolean | {
667
+ status: "Rejected" | "Requested" | "Accepted";
668
+ transactionId: string;
669
+ createdAt: string;
670
+ createdBy: string;
671
+ createdByRole: string;
672
+ declaration: Record<string, string | number | boolean | {
645
673
  type: string;
646
674
  filename: string;
647
675
  originalFilename: string;
@@ -678,11 +706,9 @@ export declare const EventDocument: z.ZodObject<{
678
706
  option: string;
679
707
  filename: string;
680
708
  originalFilename: string;
681
- }[] | undefined>;
682
- createdAt: string;
683
- createdBy: string;
709
+ }[] | [string, string] | undefined>;
684
710
  createdAtLocation: string;
685
- metadata?: Record<string, string | number | boolean | {
711
+ annotation?: Record<string, string | number | boolean | {
686
712
  type: string;
687
713
  filename: string;
688
714
  originalFilename: string;
@@ -719,11 +745,17 @@ export declare const EventDocument: z.ZodObject<{
719
745
  option: string;
720
746
  filename: string;
721
747
  originalFilename: string;
722
- }[] | undefined> | undefined;
748
+ }[] | [string, string] | undefined> | undefined;
749
+ originalActionId?: string | undefined;
723
750
  }, {
724
751
  type: "VALIDATE";
725
752
  id: string;
726
- data: Record<string, string | number | boolean | {
753
+ status: "Rejected" | "Requested" | "Accepted";
754
+ transactionId: string;
755
+ createdAt: string;
756
+ createdBy: string;
757
+ createdByRole: string;
758
+ declaration: Record<string, string | number | boolean | {
727
759
  type: string;
728
760
  filename: string;
729
761
  originalFilename: string;
@@ -760,11 +792,9 @@ export declare const EventDocument: z.ZodObject<{
760
792
  option: string;
761
793
  filename: string;
762
794
  originalFilename: string;
763
- }[] | undefined>;
764
- createdAt: string;
765
- createdBy: string;
795
+ }[] | [string, string] | undefined>;
766
796
  createdAtLocation: string;
767
- metadata?: Record<string, string | number | boolean | {
797
+ annotation?: Record<string, string | number | boolean | {
768
798
  type: string;
769
799
  filename: string;
770
800
  originalFilename: string;
@@ -801,12 +831,15 @@ export declare const EventDocument: z.ZodObject<{
801
831
  option: string;
802
832
  filename: string;
803
833
  originalFilename: string;
804
- }[] | undefined> | undefined;
834
+ }[] | [string, string] | undefined> | undefined;
835
+ originalActionId?: string | undefined;
805
836
  }>, z.ZodObject<z.objectUtil.extendShape<{
806
837
  id: z.ZodString;
838
+ transactionId: z.ZodString;
807
839
  createdAt: z.ZodString;
808
840
  createdBy: z.ZodString;
809
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
841
+ createdByRole: z.ZodString;
842
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
810
843
  filename: z.ZodString;
811
844
  originalFilename: z.ZodString;
812
845
  type: z.ZodString;
@@ -920,7 +953,7 @@ export declare const EventDocument: z.ZodObject<{
920
953
  addressLine3?: string | null | undefined;
921
954
  postcodeOrZip?: string | null | undefined;
922
955
  }>]>>;
923
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
956
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
924
957
  filename: z.ZodString;
925
958
  originalFilename: z.ZodString;
926
959
  type: z.ZodString;
@@ -1035,12 +1068,19 @@ export declare const EventDocument: z.ZodObject<{
1035
1068
  postcodeOrZip?: string | null | undefined;
1036
1069
  }>]>>>;
1037
1070
  createdAtLocation: z.ZodString;
1071
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1072
+ originalActionId: z.ZodOptional<z.ZodString>;
1038
1073
  }, {
1039
1074
  type: z.ZodLiteral<"REJECT">;
1040
1075
  }>, "strip", z.ZodTypeAny, {
1041
1076
  type: "REJECT";
1042
1077
  id: string;
1043
- data: Record<string, string | number | boolean | {
1078
+ status: "Rejected" | "Requested" | "Accepted";
1079
+ transactionId: string;
1080
+ createdAt: string;
1081
+ createdBy: string;
1082
+ createdByRole: string;
1083
+ declaration: Record<string, string | number | boolean | {
1044
1084
  type: string;
1045
1085
  filename: string;
1046
1086
  originalFilename: string;
@@ -1077,11 +1117,9 @@ export declare const EventDocument: z.ZodObject<{
1077
1117
  option: string;
1078
1118
  filename: string;
1079
1119
  originalFilename: string;
1080
- }[] | undefined>;
1081
- createdAt: string;
1082
- createdBy: string;
1120
+ }[] | [string, string] | undefined>;
1083
1121
  createdAtLocation: string;
1084
- metadata?: Record<string, string | number | boolean | {
1122
+ annotation?: Record<string, string | number | boolean | {
1085
1123
  type: string;
1086
1124
  filename: string;
1087
1125
  originalFilename: string;
@@ -1118,11 +1156,17 @@ export declare const EventDocument: z.ZodObject<{
1118
1156
  option: string;
1119
1157
  filename: string;
1120
1158
  originalFilename: string;
1121
- }[] | undefined> | undefined;
1159
+ }[] | [string, string] | undefined> | undefined;
1160
+ originalActionId?: string | undefined;
1122
1161
  }, {
1123
1162
  type: "REJECT";
1124
1163
  id: string;
1125
- data: Record<string, string | number | boolean | {
1164
+ status: "Rejected" | "Requested" | "Accepted";
1165
+ transactionId: string;
1166
+ createdAt: string;
1167
+ createdBy: string;
1168
+ createdByRole: string;
1169
+ declaration: Record<string, string | number | boolean | {
1126
1170
  type: string;
1127
1171
  filename: string;
1128
1172
  originalFilename: string;
@@ -1159,11 +1203,9 @@ export declare const EventDocument: z.ZodObject<{
1159
1203
  option: string;
1160
1204
  filename: string;
1161
1205
  originalFilename: string;
1162
- }[] | undefined>;
1163
- createdAt: string;
1164
- createdBy: string;
1206
+ }[] | [string, string] | undefined>;
1165
1207
  createdAtLocation: string;
1166
- metadata?: Record<string, string | number | boolean | {
1208
+ annotation?: Record<string, string | number | boolean | {
1167
1209
  type: string;
1168
1210
  filename: string;
1169
1211
  originalFilename: string;
@@ -1200,12 +1242,15 @@ export declare const EventDocument: z.ZodObject<{
1200
1242
  option: string;
1201
1243
  filename: string;
1202
1244
  originalFilename: string;
1203
- }[] | undefined> | undefined;
1245
+ }[] | [string, string] | undefined> | undefined;
1246
+ originalActionId?: string | undefined;
1204
1247
  }>, z.ZodObject<z.objectUtil.extendShape<{
1205
1248
  id: z.ZodString;
1249
+ transactionId: z.ZodString;
1206
1250
  createdAt: z.ZodString;
1207
1251
  createdBy: z.ZodString;
1208
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1252
+ createdByRole: z.ZodString;
1253
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1209
1254
  filename: z.ZodString;
1210
1255
  originalFilename: z.ZodString;
1211
1256
  type: z.ZodString;
@@ -1319,7 +1364,7 @@ export declare const EventDocument: z.ZodObject<{
1319
1364
  addressLine3?: string | null | undefined;
1320
1365
  postcodeOrZip?: string | null | undefined;
1321
1366
  }>]>>;
1322
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1367
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1323
1368
  filename: z.ZodString;
1324
1369
  originalFilename: z.ZodString;
1325
1370
  type: z.ZodString;
@@ -1434,12 +1479,19 @@ export declare const EventDocument: z.ZodObject<{
1434
1479
  postcodeOrZip?: string | null | undefined;
1435
1480
  }>]>>>;
1436
1481
  createdAtLocation: z.ZodString;
1482
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1483
+ originalActionId: z.ZodOptional<z.ZodString>;
1437
1484
  }, {
1438
1485
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1439
1486
  }>, "strip", z.ZodTypeAny, {
1440
1487
  type: "MARKED_AS_DUPLICATE";
1441
1488
  id: string;
1442
- data: Record<string, string | number | boolean | {
1489
+ status: "Rejected" | "Requested" | "Accepted";
1490
+ transactionId: string;
1491
+ createdAt: string;
1492
+ createdBy: string;
1493
+ createdByRole: string;
1494
+ declaration: Record<string, string | number | boolean | {
1443
1495
  type: string;
1444
1496
  filename: string;
1445
1497
  originalFilename: string;
@@ -1476,11 +1528,9 @@ export declare const EventDocument: z.ZodObject<{
1476
1528
  option: string;
1477
1529
  filename: string;
1478
1530
  originalFilename: string;
1479
- }[] | undefined>;
1480
- createdAt: string;
1481
- createdBy: string;
1531
+ }[] | [string, string] | undefined>;
1482
1532
  createdAtLocation: string;
1483
- metadata?: Record<string, string | number | boolean | {
1533
+ annotation?: Record<string, string | number | boolean | {
1484
1534
  type: string;
1485
1535
  filename: string;
1486
1536
  originalFilename: string;
@@ -1517,11 +1567,17 @@ export declare const EventDocument: z.ZodObject<{
1517
1567
  option: string;
1518
1568
  filename: string;
1519
1569
  originalFilename: string;
1520
- }[] | undefined> | undefined;
1570
+ }[] | [string, string] | undefined> | undefined;
1571
+ originalActionId?: string | undefined;
1521
1572
  }, {
1522
1573
  type: "MARKED_AS_DUPLICATE";
1523
1574
  id: string;
1524
- data: Record<string, string | number | boolean | {
1575
+ status: "Rejected" | "Requested" | "Accepted";
1576
+ transactionId: string;
1577
+ createdAt: string;
1578
+ createdBy: string;
1579
+ createdByRole: string;
1580
+ declaration: Record<string, string | number | boolean | {
1525
1581
  type: string;
1526
1582
  filename: string;
1527
1583
  originalFilename: string;
@@ -1558,11 +1614,9 @@ export declare const EventDocument: z.ZodObject<{
1558
1614
  option: string;
1559
1615
  filename: string;
1560
1616
  originalFilename: string;
1561
- }[] | undefined>;
1562
- createdAt: string;
1563
- createdBy: string;
1617
+ }[] | [string, string] | undefined>;
1564
1618
  createdAtLocation: string;
1565
- metadata?: Record<string, string | number | boolean | {
1619
+ annotation?: Record<string, string | number | boolean | {
1566
1620
  type: string;
1567
1621
  filename: string;
1568
1622
  originalFilename: string;
@@ -1599,12 +1653,15 @@ export declare const EventDocument: z.ZodObject<{
1599
1653
  option: string;
1600
1654
  filename: string;
1601
1655
  originalFilename: string;
1602
- }[] | undefined> | undefined;
1656
+ }[] | [string, string] | undefined> | undefined;
1657
+ originalActionId?: string | undefined;
1603
1658
  }>, z.ZodObject<z.objectUtil.extendShape<{
1604
1659
  id: z.ZodString;
1660
+ transactionId: z.ZodString;
1605
1661
  createdAt: z.ZodString;
1606
1662
  createdBy: z.ZodString;
1607
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1663
+ createdByRole: z.ZodString;
1664
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1608
1665
  filename: z.ZodString;
1609
1666
  originalFilename: z.ZodString;
1610
1667
  type: z.ZodString;
@@ -1718,7 +1775,7 @@ export declare const EventDocument: z.ZodObject<{
1718
1775
  addressLine3?: string | null | undefined;
1719
1776
  postcodeOrZip?: string | null | undefined;
1720
1777
  }>]>>;
1721
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1778
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1722
1779
  filename: z.ZodString;
1723
1780
  originalFilename: z.ZodString;
1724
1781
  type: z.ZodString;
@@ -1833,12 +1890,19 @@ export declare const EventDocument: z.ZodObject<{
1833
1890
  postcodeOrZip?: string | null | undefined;
1834
1891
  }>]>>>;
1835
1892
  createdAtLocation: z.ZodString;
1893
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1894
+ originalActionId: z.ZodOptional<z.ZodString>;
1836
1895
  }, {
1837
1896
  type: z.ZodLiteral<"ARCHIVE">;
1838
1897
  }>, "strip", z.ZodTypeAny, {
1839
1898
  type: "ARCHIVE";
1840
1899
  id: string;
1841
- data: Record<string, string | number | boolean | {
1900
+ status: "Rejected" | "Requested" | "Accepted";
1901
+ transactionId: string;
1902
+ createdAt: string;
1903
+ createdBy: string;
1904
+ createdByRole: string;
1905
+ declaration: Record<string, string | number | boolean | {
1842
1906
  type: string;
1843
1907
  filename: string;
1844
1908
  originalFilename: string;
@@ -1875,11 +1939,9 @@ export declare const EventDocument: z.ZodObject<{
1875
1939
  option: string;
1876
1940
  filename: string;
1877
1941
  originalFilename: string;
1878
- }[] | undefined>;
1879
- createdAt: string;
1880
- createdBy: string;
1942
+ }[] | [string, string] | undefined>;
1881
1943
  createdAtLocation: string;
1882
- metadata?: Record<string, string | number | boolean | {
1944
+ annotation?: Record<string, string | number | boolean | {
1883
1945
  type: string;
1884
1946
  filename: string;
1885
1947
  originalFilename: string;
@@ -1916,11 +1978,17 @@ export declare const EventDocument: z.ZodObject<{
1916
1978
  option: string;
1917
1979
  filename: string;
1918
1980
  originalFilename: string;
1919
- }[] | undefined> | undefined;
1981
+ }[] | [string, string] | undefined> | undefined;
1982
+ originalActionId?: string | undefined;
1920
1983
  }, {
1921
1984
  type: "ARCHIVE";
1922
1985
  id: string;
1923
- data: Record<string, string | number | boolean | {
1986
+ status: "Rejected" | "Requested" | "Accepted";
1987
+ transactionId: string;
1988
+ createdAt: string;
1989
+ createdBy: string;
1990
+ createdByRole: string;
1991
+ declaration: Record<string, string | number | boolean | {
1924
1992
  type: string;
1925
1993
  filename: string;
1926
1994
  originalFilename: string;
@@ -1957,11 +2025,9 @@ export declare const EventDocument: z.ZodObject<{
1957
2025
  option: string;
1958
2026
  filename: string;
1959
2027
  originalFilename: string;
1960
- }[] | undefined>;
1961
- createdAt: string;
1962
- createdBy: string;
2028
+ }[] | [string, string] | undefined>;
1963
2029
  createdAtLocation: string;
1964
- metadata?: Record<string, string | number | boolean | {
2030
+ annotation?: Record<string, string | number | boolean | {
1965
2031
  type: string;
1966
2032
  filename: string;
1967
2033
  originalFilename: string;
@@ -1998,12 +2064,15 @@ export declare const EventDocument: z.ZodObject<{
1998
2064
  option: string;
1999
2065
  filename: string;
2000
2066
  originalFilename: string;
2001
- }[] | undefined> | undefined;
2067
+ }[] | [string, string] | undefined> | undefined;
2068
+ originalActionId?: string | undefined;
2002
2069
  }>, z.ZodObject<z.objectUtil.extendShape<{
2003
2070
  id: z.ZodString;
2071
+ transactionId: z.ZodString;
2004
2072
  createdAt: z.ZodString;
2005
2073
  createdBy: z.ZodString;
2006
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2074
+ createdByRole: z.ZodString;
2075
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2007
2076
  filename: z.ZodString;
2008
2077
  originalFilename: z.ZodString;
2009
2078
  type: z.ZodString;
@@ -2117,7 +2186,7 @@ export declare const EventDocument: z.ZodObject<{
2117
2186
  addressLine3?: string | null | undefined;
2118
2187
  postcodeOrZip?: string | null | undefined;
2119
2188
  }>]>>;
2120
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2189
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2121
2190
  filename: z.ZodString;
2122
2191
  originalFilename: z.ZodString;
2123
2192
  type: z.ZodString;
@@ -2232,12 +2301,19 @@ export declare const EventDocument: z.ZodObject<{
2232
2301
  postcodeOrZip?: string | null | undefined;
2233
2302
  }>]>>>;
2234
2303
  createdAtLocation: z.ZodString;
2304
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2305
+ originalActionId: z.ZodOptional<z.ZodString>;
2235
2306
  }, {
2236
2307
  type: z.ZodLiteral<"NOTIFY">;
2237
2308
  }>, "strip", z.ZodTypeAny, {
2238
2309
  type: "NOTIFY";
2239
2310
  id: string;
2240
- data: Record<string, string | number | boolean | {
2311
+ status: "Rejected" | "Requested" | "Accepted";
2312
+ transactionId: string;
2313
+ createdAt: string;
2314
+ createdBy: string;
2315
+ createdByRole: string;
2316
+ declaration: Record<string, string | number | boolean | {
2241
2317
  type: string;
2242
2318
  filename: string;
2243
2319
  originalFilename: string;
@@ -2274,11 +2350,9 @@ export declare const EventDocument: z.ZodObject<{
2274
2350
  option: string;
2275
2351
  filename: string;
2276
2352
  originalFilename: string;
2277
- }[] | undefined>;
2278
- createdAt: string;
2279
- createdBy: string;
2353
+ }[] | [string, string] | undefined>;
2280
2354
  createdAtLocation: string;
2281
- metadata?: Record<string, string | number | boolean | {
2355
+ annotation?: Record<string, string | number | boolean | {
2282
2356
  type: string;
2283
2357
  filename: string;
2284
2358
  originalFilename: string;
@@ -2315,11 +2389,17 @@ export declare const EventDocument: z.ZodObject<{
2315
2389
  option: string;
2316
2390
  filename: string;
2317
2391
  originalFilename: string;
2318
- }[] | undefined> | undefined;
2392
+ }[] | [string, string] | undefined> | undefined;
2393
+ originalActionId?: string | undefined;
2319
2394
  }, {
2320
2395
  type: "NOTIFY";
2321
2396
  id: string;
2322
- data: Record<string, string | number | boolean | {
2397
+ status: "Rejected" | "Requested" | "Accepted";
2398
+ transactionId: string;
2399
+ createdAt: string;
2400
+ createdBy: string;
2401
+ createdByRole: string;
2402
+ declaration: Record<string, string | number | boolean | {
2323
2403
  type: string;
2324
2404
  filename: string;
2325
2405
  originalFilename: string;
@@ -2356,11 +2436,9 @@ export declare const EventDocument: z.ZodObject<{
2356
2436
  option: string;
2357
2437
  filename: string;
2358
2438
  originalFilename: string;
2359
- }[] | undefined>;
2360
- createdAt: string;
2361
- createdBy: string;
2439
+ }[] | [string, string] | undefined>;
2362
2440
  createdAtLocation: string;
2363
- metadata?: Record<string, string | number | boolean | {
2441
+ annotation?: Record<string, string | number | boolean | {
2364
2442
  type: string;
2365
2443
  filename: string;
2366
2444
  originalFilename: string;
@@ -2397,12 +2475,15 @@ export declare const EventDocument: z.ZodObject<{
2397
2475
  option: string;
2398
2476
  filename: string;
2399
2477
  originalFilename: string;
2400
- }[] | undefined> | undefined;
2478
+ }[] | [string, string] | undefined> | undefined;
2479
+ originalActionId?: string | undefined;
2401
2480
  }>, z.ZodObject<z.objectUtil.extendShape<{
2402
2481
  id: z.ZodString;
2482
+ transactionId: z.ZodString;
2403
2483
  createdAt: z.ZodString;
2404
2484
  createdBy: z.ZodString;
2405
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2485
+ createdByRole: z.ZodString;
2486
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2406
2487
  filename: z.ZodString;
2407
2488
  originalFilename: z.ZodString;
2408
2489
  type: z.ZodString;
@@ -2516,7 +2597,7 @@ export declare const EventDocument: z.ZodObject<{
2516
2597
  addressLine3?: string | null | undefined;
2517
2598
  postcodeOrZip?: string | null | undefined;
2518
2599
  }>]>>;
2519
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2600
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2520
2601
  filename: z.ZodString;
2521
2602
  originalFilename: z.ZodString;
2522
2603
  type: z.ZodString;
@@ -2631,22 +2712,20 @@ export declare const EventDocument: z.ZodObject<{
2631
2712
  postcodeOrZip?: string | null | undefined;
2632
2713
  }>]>>>;
2633
2714
  createdAtLocation: z.ZodString;
2715
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2716
+ originalActionId: z.ZodOptional<z.ZodString>;
2634
2717
  }, {
2635
2718
  type: z.ZodLiteral<"REGISTER">;
2636
- identifiers: z.ZodObject<{
2637
- trackingId: z.ZodString;
2638
- registrationNumber: z.ZodString;
2639
- }, "strip", z.ZodTypeAny, {
2640
- trackingId: string;
2641
- registrationNumber: string;
2642
- }, {
2643
- trackingId: string;
2644
- registrationNumber: string;
2645
- }>;
2719
+ registrationNumber: z.ZodOptional<z.ZodString>;
2646
2720
  }>, "strip", z.ZodTypeAny, {
2647
2721
  type: "REGISTER";
2648
2722
  id: string;
2649
- data: Record<string, string | number | boolean | {
2723
+ status: "Rejected" | "Requested" | "Accepted";
2724
+ transactionId: string;
2725
+ createdAt: string;
2726
+ createdBy: string;
2727
+ createdByRole: string;
2728
+ declaration: Record<string, string | number | boolean | {
2650
2729
  type: string;
2651
2730
  filename: string;
2652
2731
  originalFilename: string;
@@ -2683,15 +2762,9 @@ export declare const EventDocument: z.ZodObject<{
2683
2762
  option: string;
2684
2763
  filename: string;
2685
2764
  originalFilename: string;
2686
- }[] | undefined>;
2687
- createdAt: string;
2688
- createdBy: string;
2765
+ }[] | [string, string] | undefined>;
2689
2766
  createdAtLocation: string;
2690
- identifiers: {
2691
- trackingId: string;
2692
- registrationNumber: string;
2693
- };
2694
- metadata?: Record<string, string | number | boolean | {
2767
+ annotation?: Record<string, string | number | boolean | {
2695
2768
  type: string;
2696
2769
  filename: string;
2697
2770
  originalFilename: string;
@@ -2728,11 +2801,18 @@ export declare const EventDocument: z.ZodObject<{
2728
2801
  option: string;
2729
2802
  filename: string;
2730
2803
  originalFilename: string;
2731
- }[] | undefined> | undefined;
2804
+ }[] | [string, string] | undefined> | undefined;
2805
+ originalActionId?: string | undefined;
2806
+ registrationNumber?: string | undefined;
2732
2807
  }, {
2733
2808
  type: "REGISTER";
2734
2809
  id: string;
2735
- data: Record<string, string | number | boolean | {
2810
+ status: "Rejected" | "Requested" | "Accepted";
2811
+ transactionId: string;
2812
+ createdAt: string;
2813
+ createdBy: string;
2814
+ createdByRole: string;
2815
+ declaration: Record<string, string | number | boolean | {
2736
2816
  type: string;
2737
2817
  filename: string;
2738
2818
  originalFilename: string;
@@ -2769,15 +2849,9 @@ export declare const EventDocument: z.ZodObject<{
2769
2849
  option: string;
2770
2850
  filename: string;
2771
2851
  originalFilename: string;
2772
- }[] | undefined>;
2773
- createdAt: string;
2774
- createdBy: string;
2852
+ }[] | [string, string] | undefined>;
2775
2853
  createdAtLocation: string;
2776
- identifiers: {
2777
- trackingId: string;
2778
- registrationNumber: string;
2779
- };
2780
- metadata?: Record<string, string | number | boolean | {
2854
+ annotation?: Record<string, string | number | boolean | {
2781
2855
  type: string;
2782
2856
  filename: string;
2783
2857
  originalFilename: string;
@@ -2814,12 +2888,16 @@ export declare const EventDocument: z.ZodObject<{
2814
2888
  option: string;
2815
2889
  filename: string;
2816
2890
  originalFilename: string;
2817
- }[] | undefined> | undefined;
2891
+ }[] | [string, string] | undefined> | undefined;
2892
+ originalActionId?: string | undefined;
2893
+ registrationNumber?: string | undefined;
2818
2894
  }>, z.ZodObject<z.objectUtil.extendShape<{
2819
2895
  id: z.ZodString;
2896
+ transactionId: z.ZodString;
2820
2897
  createdAt: z.ZodString;
2821
2898
  createdBy: z.ZodString;
2822
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2899
+ createdByRole: z.ZodString;
2900
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2823
2901
  filename: z.ZodString;
2824
2902
  originalFilename: z.ZodString;
2825
2903
  type: z.ZodString;
@@ -2933,7 +3011,7 @@ export declare const EventDocument: z.ZodObject<{
2933
3011
  addressLine3?: string | null | undefined;
2934
3012
  postcodeOrZip?: string | null | undefined;
2935
3013
  }>]>>;
2936
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3014
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2937
3015
  filename: z.ZodString;
2938
3016
  originalFilename: z.ZodString;
2939
3017
  type: z.ZodString;
@@ -3048,12 +3126,19 @@ export declare const EventDocument: z.ZodObject<{
3048
3126
  postcodeOrZip?: string | null | undefined;
3049
3127
  }>]>>>;
3050
3128
  createdAtLocation: z.ZodString;
3129
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3130
+ originalActionId: z.ZodOptional<z.ZodString>;
3051
3131
  }, {
3052
3132
  type: z.ZodLiteral<"DECLARE">;
3053
3133
  }>, "strip", z.ZodTypeAny, {
3054
3134
  type: "DECLARE";
3055
3135
  id: string;
3056
- data: Record<string, string | number | boolean | {
3136
+ status: "Rejected" | "Requested" | "Accepted";
3137
+ transactionId: string;
3138
+ createdAt: string;
3139
+ createdBy: string;
3140
+ createdByRole: string;
3141
+ declaration: Record<string, string | number | boolean | {
3057
3142
  type: string;
3058
3143
  filename: string;
3059
3144
  originalFilename: string;
@@ -3090,11 +3175,9 @@ export declare const EventDocument: z.ZodObject<{
3090
3175
  option: string;
3091
3176
  filename: string;
3092
3177
  originalFilename: string;
3093
- }[] | undefined>;
3094
- createdAt: string;
3095
- createdBy: string;
3178
+ }[] | [string, string] | undefined>;
3096
3179
  createdAtLocation: string;
3097
- metadata?: Record<string, string | number | boolean | {
3180
+ annotation?: Record<string, string | number | boolean | {
3098
3181
  type: string;
3099
3182
  filename: string;
3100
3183
  originalFilename: string;
@@ -3131,11 +3214,17 @@ export declare const EventDocument: z.ZodObject<{
3131
3214
  option: string;
3132
3215
  filename: string;
3133
3216
  originalFilename: string;
3134
- }[] | undefined> | undefined;
3217
+ }[] | [string, string] | undefined> | undefined;
3218
+ originalActionId?: string | undefined;
3135
3219
  }, {
3136
3220
  type: "DECLARE";
3137
3221
  id: string;
3138
- data: Record<string, string | number | boolean | {
3222
+ status: "Rejected" | "Requested" | "Accepted";
3223
+ transactionId: string;
3224
+ createdAt: string;
3225
+ createdBy: string;
3226
+ createdByRole: string;
3227
+ declaration: Record<string, string | number | boolean | {
3139
3228
  type: string;
3140
3229
  filename: string;
3141
3230
  originalFilename: string;
@@ -3172,11 +3261,9 @@ export declare const EventDocument: z.ZodObject<{
3172
3261
  option: string;
3173
3262
  filename: string;
3174
3263
  originalFilename: string;
3175
- }[] | undefined>;
3176
- createdAt: string;
3177
- createdBy: string;
3264
+ }[] | [string, string] | undefined>;
3178
3265
  createdAtLocation: string;
3179
- metadata?: Record<string, string | number | boolean | {
3266
+ annotation?: Record<string, string | number | boolean | {
3180
3267
  type: string;
3181
3268
  filename: string;
3182
3269
  originalFilename: string;
@@ -3213,12 +3300,15 @@ export declare const EventDocument: z.ZodObject<{
3213
3300
  option: string;
3214
3301
  filename: string;
3215
3302
  originalFilename: string;
3216
- }[] | undefined> | undefined;
3303
+ }[] | [string, string] | undefined> | undefined;
3304
+ originalActionId?: string | undefined;
3217
3305
  }>, z.ZodObject<z.objectUtil.extendShape<{
3218
3306
  id: z.ZodString;
3307
+ transactionId: z.ZodString;
3219
3308
  createdAt: z.ZodString;
3220
3309
  createdBy: z.ZodString;
3221
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3310
+ createdByRole: z.ZodString;
3311
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3222
3312
  filename: z.ZodString;
3223
3313
  originalFilename: z.ZodString;
3224
3314
  type: z.ZodString;
@@ -3332,7 +3422,7 @@ export declare const EventDocument: z.ZodObject<{
3332
3422
  addressLine3?: string | null | undefined;
3333
3423
  postcodeOrZip?: string | null | undefined;
3334
3424
  }>]>>;
3335
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3425
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3336
3426
  filename: z.ZodString;
3337
3427
  originalFilename: z.ZodString;
3338
3428
  type: z.ZodString;
@@ -3447,13 +3537,20 @@ export declare const EventDocument: z.ZodObject<{
3447
3537
  postcodeOrZip?: string | null | undefined;
3448
3538
  }>]>>>;
3449
3539
  createdAtLocation: z.ZodString;
3540
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3541
+ originalActionId: z.ZodOptional<z.ZodString>;
3450
3542
  }, {
3451
3543
  type: z.ZodLiteral<"ASSIGN">;
3452
3544
  assignedTo: z.ZodString;
3453
3545
  }>, "strip", z.ZodTypeAny, {
3454
3546
  type: "ASSIGN";
3455
3547
  id: string;
3456
- data: Record<string, string | number | boolean | {
3548
+ status: "Rejected" | "Requested" | "Accepted";
3549
+ transactionId: string;
3550
+ createdAt: string;
3551
+ createdBy: string;
3552
+ createdByRole: string;
3553
+ declaration: Record<string, string | number | boolean | {
3457
3554
  type: string;
3458
3555
  filename: string;
3459
3556
  originalFilename: string;
@@ -3490,12 +3587,10 @@ export declare const EventDocument: z.ZodObject<{
3490
3587
  option: string;
3491
3588
  filename: string;
3492
3589
  originalFilename: string;
3493
- }[] | undefined>;
3494
- createdAt: string;
3495
- createdBy: string;
3590
+ }[] | [string, string] | undefined>;
3496
3591
  createdAtLocation: string;
3497
3592
  assignedTo: string;
3498
- metadata?: Record<string, string | number | boolean | {
3593
+ annotation?: Record<string, string | number | boolean | {
3499
3594
  type: string;
3500
3595
  filename: string;
3501
3596
  originalFilename: string;
@@ -3532,11 +3627,17 @@ export declare const EventDocument: z.ZodObject<{
3532
3627
  option: string;
3533
3628
  filename: string;
3534
3629
  originalFilename: string;
3535
- }[] | undefined> | undefined;
3630
+ }[] | [string, string] | undefined> | undefined;
3631
+ originalActionId?: string | undefined;
3536
3632
  }, {
3537
3633
  type: "ASSIGN";
3538
3634
  id: string;
3539
- data: Record<string, string | number | boolean | {
3635
+ status: "Rejected" | "Requested" | "Accepted";
3636
+ transactionId: string;
3637
+ createdAt: string;
3638
+ createdBy: string;
3639
+ createdByRole: string;
3640
+ declaration: Record<string, string | number | boolean | {
3540
3641
  type: string;
3541
3642
  filename: string;
3542
3643
  originalFilename: string;
@@ -3573,12 +3674,10 @@ export declare const EventDocument: z.ZodObject<{
3573
3674
  option: string;
3574
3675
  filename: string;
3575
3676
  originalFilename: string;
3576
- }[] | undefined>;
3577
- createdAt: string;
3578
- createdBy: string;
3677
+ }[] | [string, string] | undefined>;
3579
3678
  createdAtLocation: string;
3580
3679
  assignedTo: string;
3581
- metadata?: Record<string, string | number | boolean | {
3680
+ annotation?: Record<string, string | number | boolean | {
3582
3681
  type: string;
3583
3682
  filename: string;
3584
3683
  originalFilename: string;
@@ -3615,12 +3714,15 @@ export declare const EventDocument: z.ZodObject<{
3615
3714
  option: string;
3616
3715
  filename: string;
3617
3716
  originalFilename: string;
3618
- }[] | undefined> | undefined;
3717
+ }[] | [string, string] | undefined> | undefined;
3718
+ originalActionId?: string | undefined;
3619
3719
  }>, z.ZodObject<z.objectUtil.extendShape<{
3620
3720
  id: z.ZodString;
3721
+ transactionId: z.ZodString;
3621
3722
  createdAt: z.ZodString;
3622
3723
  createdBy: z.ZodString;
3623
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3724
+ createdByRole: z.ZodString;
3725
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3624
3726
  filename: z.ZodString;
3625
3727
  originalFilename: z.ZodString;
3626
3728
  type: z.ZodString;
@@ -3734,7 +3836,7 @@ export declare const EventDocument: z.ZodObject<{
3734
3836
  addressLine3?: string | null | undefined;
3735
3837
  postcodeOrZip?: string | null | undefined;
3736
3838
  }>]>>;
3737
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3839
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3738
3840
  filename: z.ZodString;
3739
3841
  originalFilename: z.ZodString;
3740
3842
  type: z.ZodString;
@@ -3849,12 +3951,19 @@ export declare const EventDocument: z.ZodObject<{
3849
3951
  postcodeOrZip?: string | null | undefined;
3850
3952
  }>]>>>;
3851
3953
  createdAtLocation: z.ZodString;
3954
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3955
+ originalActionId: z.ZodOptional<z.ZodString>;
3852
3956
  }, {
3853
3957
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
3854
3958
  }>, "strip", z.ZodTypeAny, {
3855
3959
  type: "REQUEST_CORRECTION";
3856
3960
  id: string;
3857
- data: Record<string, string | number | boolean | {
3961
+ status: "Rejected" | "Requested" | "Accepted";
3962
+ transactionId: string;
3963
+ createdAt: string;
3964
+ createdBy: string;
3965
+ createdByRole: string;
3966
+ declaration: Record<string, string | number | boolean | {
3858
3967
  type: string;
3859
3968
  filename: string;
3860
3969
  originalFilename: string;
@@ -3891,11 +4000,9 @@ export declare const EventDocument: z.ZodObject<{
3891
4000
  option: string;
3892
4001
  filename: string;
3893
4002
  originalFilename: string;
3894
- }[] | undefined>;
3895
- createdAt: string;
3896
- createdBy: string;
4003
+ }[] | [string, string] | undefined>;
3897
4004
  createdAtLocation: string;
3898
- metadata?: Record<string, string | number | boolean | {
4005
+ annotation?: Record<string, string | number | boolean | {
3899
4006
  type: string;
3900
4007
  filename: string;
3901
4008
  originalFilename: string;
@@ -3932,11 +4039,17 @@ export declare const EventDocument: z.ZodObject<{
3932
4039
  option: string;
3933
4040
  filename: string;
3934
4041
  originalFilename: string;
3935
- }[] | undefined> | undefined;
4042
+ }[] | [string, string] | undefined> | undefined;
4043
+ originalActionId?: string | undefined;
3936
4044
  }, {
3937
4045
  type: "REQUEST_CORRECTION";
3938
4046
  id: string;
3939
- data: Record<string, string | number | boolean | {
4047
+ status: "Rejected" | "Requested" | "Accepted";
4048
+ transactionId: string;
4049
+ createdAt: string;
4050
+ createdBy: string;
4051
+ createdByRole: string;
4052
+ declaration: Record<string, string | number | boolean | {
3940
4053
  type: string;
3941
4054
  filename: string;
3942
4055
  originalFilename: string;
@@ -3973,11 +4086,9 @@ export declare const EventDocument: z.ZodObject<{
3973
4086
  option: string;
3974
4087
  filename: string;
3975
4088
  originalFilename: string;
3976
- }[] | undefined>;
3977
- createdAt: string;
3978
- createdBy: string;
4089
+ }[] | [string, string] | undefined>;
3979
4090
  createdAtLocation: string;
3980
- metadata?: Record<string, string | number | boolean | {
4091
+ annotation?: Record<string, string | number | boolean | {
3981
4092
  type: string;
3982
4093
  filename: string;
3983
4094
  originalFilename: string;
@@ -4014,12 +4125,15 @@ export declare const EventDocument: z.ZodObject<{
4014
4125
  option: string;
4015
4126
  filename: string;
4016
4127
  originalFilename: string;
4017
- }[] | undefined> | undefined;
4128
+ }[] | [string, string] | undefined> | undefined;
4129
+ originalActionId?: string | undefined;
4018
4130
  }>, z.ZodObject<z.objectUtil.extendShape<{
4019
4131
  id: z.ZodString;
4132
+ transactionId: z.ZodString;
4020
4133
  createdAt: z.ZodString;
4021
4134
  createdBy: z.ZodString;
4022
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4135
+ createdByRole: z.ZodString;
4136
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4023
4137
  filename: z.ZodString;
4024
4138
  originalFilename: z.ZodString;
4025
4139
  type: z.ZodString;
@@ -4133,7 +4247,7 @@ export declare const EventDocument: z.ZodObject<{
4133
4247
  addressLine3?: string | null | undefined;
4134
4248
  postcodeOrZip?: string | null | undefined;
4135
4249
  }>]>>;
4136
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4250
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4137
4251
  filename: z.ZodString;
4138
4252
  originalFilename: z.ZodString;
4139
4253
  type: z.ZodString;
@@ -4248,13 +4362,20 @@ export declare const EventDocument: z.ZodObject<{
4248
4362
  postcodeOrZip?: string | null | undefined;
4249
4363
  }>]>>>;
4250
4364
  createdAtLocation: z.ZodString;
4365
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4366
+ originalActionId: z.ZodOptional<z.ZodString>;
4251
4367
  }, {
4252
4368
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
4253
4369
  requestId: z.ZodString;
4254
4370
  }>, "strip", z.ZodTypeAny, {
4255
4371
  type: "APPROVE_CORRECTION";
4256
4372
  id: string;
4257
- data: Record<string, string | number | boolean | {
4373
+ status: "Rejected" | "Requested" | "Accepted";
4374
+ transactionId: string;
4375
+ createdAt: string;
4376
+ createdBy: string;
4377
+ createdByRole: string;
4378
+ declaration: Record<string, string | number | boolean | {
4258
4379
  type: string;
4259
4380
  filename: string;
4260
4381
  originalFilename: string;
@@ -4291,12 +4412,10 @@ export declare const EventDocument: z.ZodObject<{
4291
4412
  option: string;
4292
4413
  filename: string;
4293
4414
  originalFilename: string;
4294
- }[] | undefined>;
4295
- createdAt: string;
4296
- createdBy: string;
4415
+ }[] | [string, string] | undefined>;
4297
4416
  createdAtLocation: string;
4298
4417
  requestId: string;
4299
- metadata?: Record<string, string | number | boolean | {
4418
+ annotation?: Record<string, string | number | boolean | {
4300
4419
  type: string;
4301
4420
  filename: string;
4302
4421
  originalFilename: string;
@@ -4333,11 +4452,17 @@ export declare const EventDocument: z.ZodObject<{
4333
4452
  option: string;
4334
4453
  filename: string;
4335
4454
  originalFilename: string;
4336
- }[] | undefined> | undefined;
4455
+ }[] | [string, string] | undefined> | undefined;
4456
+ originalActionId?: string | undefined;
4337
4457
  }, {
4338
4458
  type: "APPROVE_CORRECTION";
4339
4459
  id: string;
4340
- data: Record<string, string | number | boolean | {
4460
+ status: "Rejected" | "Requested" | "Accepted";
4461
+ transactionId: string;
4462
+ createdAt: string;
4463
+ createdBy: string;
4464
+ createdByRole: string;
4465
+ declaration: Record<string, string | number | boolean | {
4341
4466
  type: string;
4342
4467
  filename: string;
4343
4468
  originalFilename: string;
@@ -4374,12 +4499,10 @@ export declare const EventDocument: z.ZodObject<{
4374
4499
  option: string;
4375
4500
  filename: string;
4376
4501
  originalFilename: string;
4377
- }[] | undefined>;
4378
- createdAt: string;
4379
- createdBy: string;
4502
+ }[] | [string, string] | undefined>;
4380
4503
  createdAtLocation: string;
4381
4504
  requestId: string;
4382
- metadata?: Record<string, string | number | boolean | {
4505
+ annotation?: Record<string, string | number | boolean | {
4383
4506
  type: string;
4384
4507
  filename: string;
4385
4508
  originalFilename: string;
@@ -4416,12 +4539,15 @@ export declare const EventDocument: z.ZodObject<{
4416
4539
  option: string;
4417
4540
  filename: string;
4418
4541
  originalFilename: string;
4419
- }[] | undefined> | undefined;
4542
+ }[] | [string, string] | undefined> | undefined;
4543
+ originalActionId?: string | undefined;
4420
4544
  }>, z.ZodObject<z.objectUtil.extendShape<{
4421
4545
  id: z.ZodString;
4546
+ transactionId: z.ZodString;
4422
4547
  createdAt: z.ZodString;
4423
4548
  createdBy: z.ZodString;
4424
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4549
+ createdByRole: z.ZodString;
4550
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4425
4551
  filename: z.ZodString;
4426
4552
  originalFilename: z.ZodString;
4427
4553
  type: z.ZodString;
@@ -4535,7 +4661,7 @@ export declare const EventDocument: z.ZodObject<{
4535
4661
  addressLine3?: string | null | undefined;
4536
4662
  postcodeOrZip?: string | null | undefined;
4537
4663
  }>]>>;
4538
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4664
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4539
4665
  filename: z.ZodString;
4540
4666
  originalFilename: z.ZodString;
4541
4667
  type: z.ZodString;
@@ -4650,13 +4776,20 @@ export declare const EventDocument: z.ZodObject<{
4650
4776
  postcodeOrZip?: string | null | undefined;
4651
4777
  }>]>>>;
4652
4778
  createdAtLocation: z.ZodString;
4779
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4780
+ originalActionId: z.ZodOptional<z.ZodString>;
4653
4781
  }, {
4654
4782
  type: z.ZodLiteral<"REJECT_CORRECTION">;
4655
4783
  requestId: z.ZodString;
4656
4784
  }>, "strip", z.ZodTypeAny, {
4657
4785
  type: "REJECT_CORRECTION";
4658
4786
  id: string;
4659
- data: Record<string, string | number | boolean | {
4787
+ status: "Rejected" | "Requested" | "Accepted";
4788
+ transactionId: string;
4789
+ createdAt: string;
4790
+ createdBy: string;
4791
+ createdByRole: string;
4792
+ declaration: Record<string, string | number | boolean | {
4660
4793
  type: string;
4661
4794
  filename: string;
4662
4795
  originalFilename: string;
@@ -4693,12 +4826,10 @@ export declare const EventDocument: z.ZodObject<{
4693
4826
  option: string;
4694
4827
  filename: string;
4695
4828
  originalFilename: string;
4696
- }[] | undefined>;
4697
- createdAt: string;
4698
- createdBy: string;
4829
+ }[] | [string, string] | undefined>;
4699
4830
  createdAtLocation: string;
4700
4831
  requestId: string;
4701
- metadata?: Record<string, string | number | boolean | {
4832
+ annotation?: Record<string, string | number | boolean | {
4702
4833
  type: string;
4703
4834
  filename: string;
4704
4835
  originalFilename: string;
@@ -4735,11 +4866,17 @@ export declare const EventDocument: z.ZodObject<{
4735
4866
  option: string;
4736
4867
  filename: string;
4737
4868
  originalFilename: string;
4738
- }[] | undefined> | undefined;
4869
+ }[] | [string, string] | undefined> | undefined;
4870
+ originalActionId?: string | undefined;
4739
4871
  }, {
4740
4872
  type: "REJECT_CORRECTION";
4741
4873
  id: string;
4742
- data: Record<string, string | number | boolean | {
4874
+ status: "Rejected" | "Requested" | "Accepted";
4875
+ transactionId: string;
4876
+ createdAt: string;
4877
+ createdBy: string;
4878
+ createdByRole: string;
4879
+ declaration: Record<string, string | number | boolean | {
4743
4880
  type: string;
4744
4881
  filename: string;
4745
4882
  originalFilename: string;
@@ -4776,12 +4913,10 @@ export declare const EventDocument: z.ZodObject<{
4776
4913
  option: string;
4777
4914
  filename: string;
4778
4915
  originalFilename: string;
4779
- }[] | undefined>;
4780
- createdAt: string;
4781
- createdBy: string;
4916
+ }[] | [string, string] | undefined>;
4782
4917
  createdAtLocation: string;
4783
4918
  requestId: string;
4784
- metadata?: Record<string, string | number | boolean | {
4919
+ annotation?: Record<string, string | number | boolean | {
4785
4920
  type: string;
4786
4921
  filename: string;
4787
4922
  originalFilename: string;
@@ -4818,12 +4953,15 @@ export declare const EventDocument: z.ZodObject<{
4818
4953
  option: string;
4819
4954
  filename: string;
4820
4955
  originalFilename: string;
4821
- }[] | undefined> | undefined;
4956
+ }[] | [string, string] | undefined> | undefined;
4957
+ originalActionId?: string | undefined;
4822
4958
  }>, z.ZodObject<z.objectUtil.extendShape<{
4823
4959
  id: z.ZodString;
4960
+ transactionId: z.ZodString;
4824
4961
  createdAt: z.ZodString;
4825
4962
  createdBy: z.ZodString;
4826
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4963
+ createdByRole: z.ZodString;
4964
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4827
4965
  filename: z.ZodString;
4828
4966
  originalFilename: z.ZodString;
4829
4967
  type: z.ZodString;
@@ -4937,7 +5075,7 @@ export declare const EventDocument: z.ZodObject<{
4937
5075
  addressLine3?: string | null | undefined;
4938
5076
  postcodeOrZip?: string | null | undefined;
4939
5077
  }>]>>;
4940
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5078
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4941
5079
  filename: z.ZodString;
4942
5080
  originalFilename: z.ZodString;
4943
5081
  type: z.ZodString;
@@ -5052,12 +5190,20 @@ export declare const EventDocument: z.ZodObject<{
5052
5190
  postcodeOrZip?: string | null | undefined;
5053
5191
  }>]>>>;
5054
5192
  createdAtLocation: z.ZodString;
5193
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5194
+ originalActionId: z.ZodOptional<z.ZodString>;
5055
5195
  }, {
5056
5196
  type: z.ZodLiteral<"UNASSIGN">;
5197
+ assignedTo: z.ZodLiteral<null>;
5057
5198
  }>, "strip", z.ZodTypeAny, {
5058
5199
  type: "UNASSIGN";
5059
5200
  id: string;
5060
- data: Record<string, string | number | boolean | {
5201
+ status: "Rejected" | "Requested" | "Accepted";
5202
+ transactionId: string;
5203
+ createdAt: string;
5204
+ createdBy: string;
5205
+ createdByRole: string;
5206
+ declaration: Record<string, string | number | boolean | {
5061
5207
  type: string;
5062
5208
  filename: string;
5063
5209
  originalFilename: string;
@@ -5094,11 +5240,10 @@ export declare const EventDocument: z.ZodObject<{
5094
5240
  option: string;
5095
5241
  filename: string;
5096
5242
  originalFilename: string;
5097
- }[] | undefined>;
5098
- createdAt: string;
5099
- createdBy: string;
5243
+ }[] | [string, string] | undefined>;
5100
5244
  createdAtLocation: string;
5101
- metadata?: Record<string, string | number | boolean | {
5245
+ assignedTo: null;
5246
+ annotation?: Record<string, string | number | boolean | {
5102
5247
  type: string;
5103
5248
  filename: string;
5104
5249
  originalFilename: string;
@@ -5135,11 +5280,17 @@ export declare const EventDocument: z.ZodObject<{
5135
5280
  option: string;
5136
5281
  filename: string;
5137
5282
  originalFilename: string;
5138
- }[] | undefined> | undefined;
5283
+ }[] | [string, string] | undefined> | undefined;
5284
+ originalActionId?: string | undefined;
5139
5285
  }, {
5140
5286
  type: "UNASSIGN";
5141
5287
  id: string;
5142
- data: Record<string, string | number | boolean | {
5288
+ status: "Rejected" | "Requested" | "Accepted";
5289
+ transactionId: string;
5290
+ createdAt: string;
5291
+ createdBy: string;
5292
+ createdByRole: string;
5293
+ declaration: Record<string, string | number | boolean | {
5143
5294
  type: string;
5144
5295
  filename: string;
5145
5296
  originalFilename: string;
@@ -5176,11 +5327,10 @@ export declare const EventDocument: z.ZodObject<{
5176
5327
  option: string;
5177
5328
  filename: string;
5178
5329
  originalFilename: string;
5179
- }[] | undefined>;
5180
- createdAt: string;
5181
- createdBy: string;
5330
+ }[] | [string, string] | undefined>;
5182
5331
  createdAtLocation: string;
5183
- metadata?: Record<string, string | number | boolean | {
5332
+ assignedTo: null;
5333
+ annotation?: Record<string, string | number | boolean | {
5184
5334
  type: string;
5185
5335
  filename: string;
5186
5336
  originalFilename: string;
@@ -5217,12 +5367,15 @@ export declare const EventDocument: z.ZodObject<{
5217
5367
  option: string;
5218
5368
  filename: string;
5219
5369
  originalFilename: string;
5220
- }[] | undefined> | undefined;
5370
+ }[] | [string, string] | undefined> | undefined;
5371
+ originalActionId?: string | undefined;
5221
5372
  }>, z.ZodObject<z.objectUtil.extendShape<{
5222
5373
  id: z.ZodString;
5374
+ transactionId: z.ZodString;
5223
5375
  createdAt: z.ZodString;
5224
5376
  createdBy: z.ZodString;
5225
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5377
+ createdByRole: z.ZodString;
5378
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5226
5379
  filename: z.ZodString;
5227
5380
  originalFilename: z.ZodString;
5228
5381
  type: z.ZodString;
@@ -5336,7 +5489,7 @@ export declare const EventDocument: z.ZodObject<{
5336
5489
  addressLine3?: string | null | undefined;
5337
5490
  postcodeOrZip?: string | null | undefined;
5338
5491
  }>]>>;
5339
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5492
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5340
5493
  filename: z.ZodString;
5341
5494
  originalFilename: z.ZodString;
5342
5495
  type: z.ZodString;
@@ -5451,12 +5604,19 @@ export declare const EventDocument: z.ZodObject<{
5451
5604
  postcodeOrZip?: string | null | undefined;
5452
5605
  }>]>>>;
5453
5606
  createdAtLocation: z.ZodString;
5607
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5608
+ originalActionId: z.ZodOptional<z.ZodString>;
5454
5609
  }, {
5455
5610
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
5456
5611
  }>, "strip", z.ZodTypeAny, {
5457
5612
  type: "PRINT_CERTIFICATE";
5458
5613
  id: string;
5459
- data: Record<string, string | number | boolean | {
5614
+ status: "Rejected" | "Requested" | "Accepted";
5615
+ transactionId: string;
5616
+ createdAt: string;
5617
+ createdBy: string;
5618
+ createdByRole: string;
5619
+ declaration: Record<string, string | number | boolean | {
5460
5620
  type: string;
5461
5621
  filename: string;
5462
5622
  originalFilename: string;
@@ -5493,11 +5653,9 @@ export declare const EventDocument: z.ZodObject<{
5493
5653
  option: string;
5494
5654
  filename: string;
5495
5655
  originalFilename: string;
5496
- }[] | undefined>;
5497
- createdAt: string;
5498
- createdBy: string;
5656
+ }[] | [string, string] | undefined>;
5499
5657
  createdAtLocation: string;
5500
- metadata?: Record<string, string | number | boolean | {
5658
+ annotation?: Record<string, string | number | boolean | {
5501
5659
  type: string;
5502
5660
  filename: string;
5503
5661
  originalFilename: string;
@@ -5534,11 +5692,17 @@ export declare const EventDocument: z.ZodObject<{
5534
5692
  option: string;
5535
5693
  filename: string;
5536
5694
  originalFilename: string;
5537
- }[] | undefined> | undefined;
5695
+ }[] | [string, string] | undefined> | undefined;
5696
+ originalActionId?: string | undefined;
5538
5697
  }, {
5539
5698
  type: "PRINT_CERTIFICATE";
5540
5699
  id: string;
5541
- data: Record<string, string | number | boolean | {
5700
+ status: "Rejected" | "Requested" | "Accepted";
5701
+ transactionId: string;
5702
+ createdAt: string;
5703
+ createdBy: string;
5704
+ createdByRole: string;
5705
+ declaration: Record<string, string | number | boolean | {
5542
5706
  type: string;
5543
5707
  filename: string;
5544
5708
  originalFilename: string;
@@ -5575,11 +5739,9 @@ export declare const EventDocument: z.ZodObject<{
5575
5739
  option: string;
5576
5740
  filename: string;
5577
5741
  originalFilename: string;
5578
- }[] | undefined>;
5579
- createdAt: string;
5580
- createdBy: string;
5742
+ }[] | [string, string] | undefined>;
5581
5743
  createdAtLocation: string;
5582
- metadata?: Record<string, string | number | boolean | {
5744
+ annotation?: Record<string, string | number | boolean | {
5583
5745
  type: string;
5584
5746
  filename: string;
5585
5747
  originalFilename: string;
@@ -5616,12 +5778,15 @@ export declare const EventDocument: z.ZodObject<{
5616
5778
  option: string;
5617
5779
  filename: string;
5618
5780
  originalFilename: string;
5619
- }[] | undefined> | undefined;
5781
+ }[] | [string, string] | undefined> | undefined;
5782
+ originalActionId?: string | undefined;
5620
5783
  }>, z.ZodObject<z.objectUtil.extendShape<{
5621
5784
  id: z.ZodString;
5785
+ transactionId: z.ZodString;
5622
5786
  createdAt: z.ZodString;
5623
5787
  createdBy: z.ZodString;
5624
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5788
+ createdByRole: z.ZodString;
5789
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5625
5790
  filename: z.ZodString;
5626
5791
  originalFilename: z.ZodString;
5627
5792
  type: z.ZodString;
@@ -5735,7 +5900,7 @@ export declare const EventDocument: z.ZodObject<{
5735
5900
  addressLine3?: string | null | undefined;
5736
5901
  postcodeOrZip?: string | null | undefined;
5737
5902
  }>]>>;
5738
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5903
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5739
5904
  filename: z.ZodString;
5740
5905
  originalFilename: z.ZodString;
5741
5906
  type: z.ZodString;
@@ -5850,12 +6015,19 @@ export declare const EventDocument: z.ZodObject<{
5850
6015
  postcodeOrZip?: string | null | undefined;
5851
6016
  }>]>>>;
5852
6017
  createdAtLocation: z.ZodString;
6018
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6019
+ originalActionId: z.ZodOptional<z.ZodString>;
5853
6020
  }, {
5854
- type: z.ZodLiteral<"CUSTOM">;
6021
+ type: z.ZodLiteral<"READ">;
5855
6022
  }>, "strip", z.ZodTypeAny, {
5856
- type: "CUSTOM";
6023
+ type: "READ";
5857
6024
  id: string;
5858
- data: Record<string, string | number | boolean | {
6025
+ status: "Rejected" | "Requested" | "Accepted";
6026
+ transactionId: string;
6027
+ createdAt: string;
6028
+ createdBy: string;
6029
+ createdByRole: string;
6030
+ declaration: Record<string, string | number | boolean | {
5859
6031
  type: string;
5860
6032
  filename: string;
5861
6033
  originalFilename: string;
@@ -5892,11 +6064,9 @@ export declare const EventDocument: z.ZodObject<{
5892
6064
  option: string;
5893
6065
  filename: string;
5894
6066
  originalFilename: string;
5895
- }[] | undefined>;
5896
- createdAt: string;
5897
- createdBy: string;
6067
+ }[] | [string, string] | undefined>;
5898
6068
  createdAtLocation: string;
5899
- metadata?: Record<string, string | number | boolean | {
6069
+ annotation?: Record<string, string | number | boolean | {
5900
6070
  type: string;
5901
6071
  filename: string;
5902
6072
  originalFilename: string;
@@ -5933,11 +6103,17 @@ export declare const EventDocument: z.ZodObject<{
5933
6103
  option: string;
5934
6104
  filename: string;
5935
6105
  originalFilename: string;
5936
- }[] | undefined> | undefined;
6106
+ }[] | [string, string] | undefined> | undefined;
6107
+ originalActionId?: string | undefined;
5937
6108
  }, {
5938
- type: "CUSTOM";
6109
+ type: "READ";
5939
6110
  id: string;
5940
- data: Record<string, string | number | boolean | {
6111
+ status: "Rejected" | "Requested" | "Accepted";
6112
+ transactionId: string;
6113
+ createdAt: string;
6114
+ createdBy: string;
6115
+ createdByRole: string;
6116
+ declaration: Record<string, string | number | boolean | {
5941
6117
  type: string;
5942
6118
  filename: string;
5943
6119
  originalFilename: string;
@@ -5974,11 +6150,9 @@ export declare const EventDocument: z.ZodObject<{
5974
6150
  option: string;
5975
6151
  filename: string;
5976
6152
  originalFilename: string;
5977
- }[] | undefined>;
5978
- createdAt: string;
5979
- createdBy: string;
6153
+ }[] | [string, string] | undefined>;
5980
6154
  createdAtLocation: string;
5981
- metadata?: Record<string, string | number | boolean | {
6155
+ annotation?: Record<string, string | number | boolean | {
5982
6156
  type: string;
5983
6157
  filename: string;
5984
6158
  originalFilename: string;
@@ -6015,19 +6189,284 @@ export declare const EventDocument: z.ZodObject<{
6015
6189
  option: string;
6016
6190
  filename: string;
6017
6191
  originalFilename: string;
6018
- }[] | undefined> | undefined;
6192
+ }[] | [string, string] | undefined> | undefined;
6193
+ originalActionId?: string | undefined;
6194
+ }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6195
+ id: z.ZodString;
6196
+ transactionId: z.ZodString;
6197
+ createdAt: z.ZodString;
6198
+ createdBy: z.ZodString;
6199
+ createdByRole: z.ZodString;
6200
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6201
+ filename: z.ZodString;
6202
+ originalFilename: z.ZodString;
6203
+ type: z.ZodString;
6204
+ }, "strip", z.ZodTypeAny, {
6205
+ type: string;
6206
+ filename: string;
6207
+ originalFilename: string;
6208
+ }, {
6209
+ type: string;
6210
+ filename: string;
6211
+ originalFilename: string;
6212
+ }>, z.ZodArray<z.ZodObject<{
6213
+ filename: z.ZodString;
6214
+ originalFilename: z.ZodString;
6215
+ type: z.ZodString;
6216
+ option: z.ZodString;
6217
+ }, "strip", z.ZodTypeAny, {
6218
+ type: string;
6219
+ option: string;
6220
+ filename: string;
6221
+ originalFilename: string;
6222
+ }, {
6223
+ type: string;
6224
+ option: string;
6225
+ filename: string;
6226
+ originalFilename: string;
6227
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6228
+ country: z.ZodString;
6229
+ addressType: z.ZodLiteral<"DOMESTIC">;
6230
+ province: z.ZodString;
6231
+ district: z.ZodString;
6232
+ }, {
6233
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6234
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6235
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6236
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6237
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6238
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6239
+ }>, "strip", z.ZodTypeAny, {
6240
+ country: string;
6241
+ district: string;
6242
+ addressType: "DOMESTIC";
6243
+ province: string;
6244
+ urbanOrRural: "URBAN";
6245
+ number?: string | null | undefined;
6246
+ town?: string | null | undefined;
6247
+ residentialArea?: string | null | undefined;
6248
+ street?: string | null | undefined;
6249
+ zipCode?: string | null | undefined;
6250
+ }, {
6251
+ country: string;
6252
+ district: string;
6253
+ addressType: "DOMESTIC";
6254
+ province: string;
6255
+ urbanOrRural: "URBAN";
6256
+ number?: string | null | undefined;
6257
+ town?: string | null | undefined;
6258
+ residentialArea?: string | null | undefined;
6259
+ street?: string | null | undefined;
6260
+ zipCode?: string | null | undefined;
6261
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6262
+ country: z.ZodString;
6263
+ addressType: z.ZodLiteral<"DOMESTIC">;
6264
+ province: z.ZodString;
6265
+ district: z.ZodString;
6266
+ }, {
6267
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6268
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6269
+ }>, "strip", z.ZodTypeAny, {
6270
+ country: string;
6271
+ district: string;
6272
+ addressType: "DOMESTIC";
6273
+ province: string;
6274
+ urbanOrRural: "RURAL";
6275
+ village?: string | null | undefined;
6276
+ }, {
6277
+ country: string;
6278
+ district: string;
6279
+ addressType: "DOMESTIC";
6280
+ province: string;
6281
+ urbanOrRural: "RURAL";
6282
+ village?: string | null | undefined;
6283
+ }>, z.ZodUndefined, z.ZodObject<{
6284
+ country: z.ZodString;
6285
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6286
+ state: z.ZodString;
6287
+ district2: z.ZodString;
6288
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6289
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6290
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6291
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6292
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6293
+ }, "strip", z.ZodTypeAny, {
6294
+ country: string;
6295
+ state: string;
6296
+ addressType: "INTERNATIONAL";
6297
+ district2: string;
6298
+ cityOrTown?: string | null | undefined;
6299
+ addressLine1?: string | null | undefined;
6300
+ addressLine2?: string | null | undefined;
6301
+ addressLine3?: string | null | undefined;
6302
+ postcodeOrZip?: string | null | undefined;
6303
+ }, {
6304
+ country: string;
6305
+ state: string;
6306
+ addressType: "INTERNATIONAL";
6307
+ district2: string;
6308
+ cityOrTown?: string | null | undefined;
6309
+ addressLine1?: string | null | undefined;
6310
+ addressLine2?: string | null | undefined;
6311
+ addressLine3?: string | null | undefined;
6312
+ postcodeOrZip?: string | null | undefined;
6313
+ }>]>>;
6314
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6315
+ filename: z.ZodString;
6316
+ originalFilename: z.ZodString;
6317
+ type: z.ZodString;
6318
+ }, "strip", z.ZodTypeAny, {
6319
+ type: string;
6320
+ filename: string;
6321
+ originalFilename: string;
6322
+ }, {
6323
+ type: string;
6324
+ filename: string;
6325
+ originalFilename: string;
6326
+ }>, z.ZodArray<z.ZodObject<{
6327
+ filename: z.ZodString;
6328
+ originalFilename: z.ZodString;
6329
+ type: z.ZodString;
6330
+ option: z.ZodString;
6331
+ }, "strip", z.ZodTypeAny, {
6332
+ type: string;
6333
+ option: string;
6334
+ filename: string;
6335
+ originalFilename: string;
6336
+ }, {
6337
+ type: string;
6338
+ option: string;
6339
+ filename: string;
6340
+ originalFilename: string;
6341
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6342
+ country: z.ZodString;
6343
+ addressType: z.ZodLiteral<"DOMESTIC">;
6344
+ province: z.ZodString;
6345
+ district: z.ZodString;
6346
+ }, {
6347
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6348
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6349
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6350
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6351
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6352
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6353
+ }>, "strip", z.ZodTypeAny, {
6354
+ country: string;
6355
+ district: string;
6356
+ addressType: "DOMESTIC";
6357
+ province: string;
6358
+ urbanOrRural: "URBAN";
6359
+ number?: string | null | undefined;
6360
+ town?: string | null | undefined;
6361
+ residentialArea?: string | null | undefined;
6362
+ street?: string | null | undefined;
6363
+ zipCode?: string | null | undefined;
6364
+ }, {
6365
+ country: string;
6366
+ district: string;
6367
+ addressType: "DOMESTIC";
6368
+ province: string;
6369
+ urbanOrRural: "URBAN";
6370
+ number?: string | null | undefined;
6371
+ town?: string | null | undefined;
6372
+ residentialArea?: string | null | undefined;
6373
+ street?: string | null | undefined;
6374
+ zipCode?: string | null | undefined;
6375
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6376
+ country: z.ZodString;
6377
+ addressType: z.ZodLiteral<"DOMESTIC">;
6378
+ province: z.ZodString;
6379
+ district: z.ZodString;
6380
+ }, {
6381
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6382
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6383
+ }>, "strip", z.ZodTypeAny, {
6384
+ country: string;
6385
+ district: string;
6386
+ addressType: "DOMESTIC";
6387
+ province: string;
6388
+ urbanOrRural: "RURAL";
6389
+ village?: string | null | undefined;
6390
+ }, {
6391
+ country: string;
6392
+ district: string;
6393
+ addressType: "DOMESTIC";
6394
+ province: string;
6395
+ urbanOrRural: "RURAL";
6396
+ village?: string | null | undefined;
6397
+ }>, z.ZodUndefined, z.ZodObject<{
6398
+ country: z.ZodString;
6399
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6400
+ state: z.ZodString;
6401
+ district2: z.ZodString;
6402
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6403
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6404
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6405
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6406
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6407
+ }, "strip", z.ZodTypeAny, {
6408
+ country: string;
6409
+ state: string;
6410
+ addressType: "INTERNATIONAL";
6411
+ district2: string;
6412
+ cityOrTown?: string | null | undefined;
6413
+ addressLine1?: string | null | undefined;
6414
+ addressLine2?: string | null | undefined;
6415
+ addressLine3?: string | null | undefined;
6416
+ postcodeOrZip?: string | null | undefined;
6417
+ }, {
6418
+ country: string;
6419
+ state: string;
6420
+ addressType: "INTERNATIONAL";
6421
+ district2: string;
6422
+ cityOrTown?: string | null | undefined;
6423
+ addressLine1?: string | null | undefined;
6424
+ addressLine2?: string | null | undefined;
6425
+ addressLine3?: string | null | undefined;
6426
+ postcodeOrZip?: string | null | undefined;
6427
+ }>]>>>;
6428
+ createdAtLocation: z.ZodString;
6429
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6430
+ originalActionId: z.ZodOptional<z.ZodString>;
6431
+ }, "declaration" | "annotation">, {
6432
+ type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
6433
+ status: z.ZodLiteral<"Rejected">;
6434
+ }>, "strip", z.ZodTypeAny, {
6435
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6436
+ id: string;
6437
+ status: "Rejected";
6438
+ transactionId: string;
6439
+ createdAt: string;
6440
+ createdBy: string;
6441
+ createdByRole: string;
6442
+ createdAtLocation: string;
6443
+ originalActionId?: string | undefined;
6444
+ }, {
6445
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6446
+ id: string;
6447
+ status: "Rejected";
6448
+ transactionId: string;
6449
+ createdAt: string;
6450
+ createdBy: string;
6451
+ createdByRole: string;
6452
+ createdAtLocation: string;
6453
+ originalActionId?: string | undefined;
6019
6454
  }>]>, "many">;
6020
6455
  trackingId: z.ZodString;
6021
6456
  }, "strip", z.ZodTypeAny, {
6022
6457
  type: string;
6023
6458
  id: string;
6024
6459
  createdAt: string;
6025
- trackingId: string;
6026
6460
  updatedAt: string;
6027
6461
  actions: ({
6028
6462
  type: "ASSIGN";
6029
6463
  id: string;
6030
- data: Record<string, string | number | boolean | {
6464
+ status: "Rejected" | "Requested" | "Accepted";
6465
+ transactionId: string;
6466
+ createdAt: string;
6467
+ createdBy: string;
6468
+ createdByRole: string;
6469
+ declaration: Record<string, string | number | boolean | {
6031
6470
  type: string;
6032
6471
  filename: string;
6033
6472
  originalFilename: string;
@@ -6064,12 +6503,10 @@ export declare const EventDocument: z.ZodObject<{
6064
6503
  option: string;
6065
6504
  filename: string;
6066
6505
  originalFilename: string;
6067
- }[] | undefined>;
6068
- createdAt: string;
6069
- createdBy: string;
6506
+ }[] | [string, string] | undefined>;
6070
6507
  createdAtLocation: string;
6071
6508
  assignedTo: string;
6072
- metadata?: Record<string, string | number | boolean | {
6509
+ annotation?: Record<string, string | number | boolean | {
6073
6510
  type: string;
6074
6511
  filename: string;
6075
6512
  originalFilename: string;
@@ -6106,11 +6543,17 @@ export declare const EventDocument: z.ZodObject<{
6106
6543
  option: string;
6107
6544
  filename: string;
6108
6545
  originalFilename: string;
6109
- }[] | undefined> | undefined;
6546
+ }[] | [string, string] | undefined> | undefined;
6547
+ originalActionId?: string | undefined;
6110
6548
  } | {
6111
6549
  type: "UNASSIGN";
6112
6550
  id: string;
6113
- data: Record<string, string | number | boolean | {
6551
+ status: "Rejected" | "Requested" | "Accepted";
6552
+ transactionId: string;
6553
+ createdAt: string;
6554
+ createdBy: string;
6555
+ createdByRole: string;
6556
+ declaration: Record<string, string | number | boolean | {
6114
6557
  type: string;
6115
6558
  filename: string;
6116
6559
  originalFilename: string;
@@ -6147,11 +6590,10 @@ export declare const EventDocument: z.ZodObject<{
6147
6590
  option: string;
6148
6591
  filename: string;
6149
6592
  originalFilename: string;
6150
- }[] | undefined>;
6151
- createdAt: string;
6152
- createdBy: string;
6593
+ }[] | [string, string] | undefined>;
6153
6594
  createdAtLocation: string;
6154
- metadata?: Record<string, string | number | boolean | {
6595
+ assignedTo: null;
6596
+ annotation?: Record<string, string | number | boolean | {
6155
6597
  type: string;
6156
6598
  filename: string;
6157
6599
  originalFilename: string;
@@ -6188,11 +6630,17 @@ export declare const EventDocument: z.ZodObject<{
6188
6630
  option: string;
6189
6631
  filename: string;
6190
6632
  originalFilename: string;
6191
- }[] | undefined> | undefined;
6633
+ }[] | [string, string] | undefined> | undefined;
6634
+ originalActionId?: string | undefined;
6192
6635
  } | {
6193
6636
  type: "REGISTER";
6194
6637
  id: string;
6195
- data: Record<string, string | number | boolean | {
6638
+ status: "Rejected" | "Requested" | "Accepted";
6639
+ transactionId: string;
6640
+ createdAt: string;
6641
+ createdBy: string;
6642
+ createdByRole: string;
6643
+ declaration: Record<string, string | number | boolean | {
6196
6644
  type: string;
6197
6645
  filename: string;
6198
6646
  originalFilename: string;
@@ -6229,15 +6677,9 @@ export declare const EventDocument: z.ZodObject<{
6229
6677
  option: string;
6230
6678
  filename: string;
6231
6679
  originalFilename: string;
6232
- }[] | undefined>;
6233
- createdAt: string;
6234
- createdBy: string;
6680
+ }[] | [string, string] | undefined>;
6235
6681
  createdAtLocation: string;
6236
- identifiers: {
6237
- trackingId: string;
6238
- registrationNumber: string;
6239
- };
6240
- metadata?: Record<string, string | number | boolean | {
6682
+ annotation?: Record<string, string | number | boolean | {
6241
6683
  type: string;
6242
6684
  filename: string;
6243
6685
  originalFilename: string;
@@ -6274,11 +6716,18 @@ export declare const EventDocument: z.ZodObject<{
6274
6716
  option: string;
6275
6717
  filename: string;
6276
6718
  originalFilename: string;
6277
- }[] | undefined> | undefined;
6719
+ }[] | [string, string] | undefined> | undefined;
6720
+ originalActionId?: string | undefined;
6721
+ registrationNumber?: string | undefined;
6278
6722
  } | {
6279
6723
  type: "DECLARE";
6280
6724
  id: string;
6281
- data: Record<string, string | number | boolean | {
6725
+ status: "Rejected" | "Requested" | "Accepted";
6726
+ transactionId: string;
6727
+ createdAt: string;
6728
+ createdBy: string;
6729
+ createdByRole: string;
6730
+ declaration: Record<string, string | number | boolean | {
6282
6731
  type: string;
6283
6732
  filename: string;
6284
6733
  originalFilename: string;
@@ -6315,11 +6764,9 @@ export declare const EventDocument: z.ZodObject<{
6315
6764
  option: string;
6316
6765
  filename: string;
6317
6766
  originalFilename: string;
6318
- }[] | undefined>;
6319
- createdAt: string;
6320
- createdBy: string;
6767
+ }[] | [string, string] | undefined>;
6321
6768
  createdAtLocation: string;
6322
- metadata?: Record<string, string | number | boolean | {
6769
+ annotation?: Record<string, string | number | boolean | {
6323
6770
  type: string;
6324
6771
  filename: string;
6325
6772
  originalFilename: string;
@@ -6356,11 +6803,17 @@ export declare const EventDocument: z.ZodObject<{
6356
6803
  option: string;
6357
6804
  filename: string;
6358
6805
  originalFilename: string;
6359
- }[] | undefined> | undefined;
6806
+ }[] | [string, string] | undefined> | undefined;
6807
+ originalActionId?: string | undefined;
6360
6808
  } | {
6361
6809
  type: "VALIDATE";
6362
6810
  id: string;
6363
- data: Record<string, string | number | boolean | {
6811
+ status: "Rejected" | "Requested" | "Accepted";
6812
+ transactionId: string;
6813
+ createdAt: string;
6814
+ createdBy: string;
6815
+ createdByRole: string;
6816
+ declaration: Record<string, string | number | boolean | {
6364
6817
  type: string;
6365
6818
  filename: string;
6366
6819
  originalFilename: string;
@@ -6397,11 +6850,9 @@ export declare const EventDocument: z.ZodObject<{
6397
6850
  option: string;
6398
6851
  filename: string;
6399
6852
  originalFilename: string;
6400
- }[] | undefined>;
6401
- createdAt: string;
6402
- createdBy: string;
6853
+ }[] | [string, string] | undefined>;
6403
6854
  createdAtLocation: string;
6404
- metadata?: Record<string, string | number | boolean | {
6855
+ annotation?: Record<string, string | number | boolean | {
6405
6856
  type: string;
6406
6857
  filename: string;
6407
6858
  originalFilename: string;
@@ -6438,11 +6889,17 @@ export declare const EventDocument: z.ZodObject<{
6438
6889
  option: string;
6439
6890
  filename: string;
6440
6891
  originalFilename: string;
6441
- }[] | undefined> | undefined;
6892
+ }[] | [string, string] | undefined> | undefined;
6893
+ originalActionId?: string | undefined;
6442
6894
  } | {
6443
6895
  type: "REJECT";
6444
6896
  id: string;
6445
- data: Record<string, string | number | boolean | {
6897
+ status: "Rejected" | "Requested" | "Accepted";
6898
+ transactionId: string;
6899
+ createdAt: string;
6900
+ createdBy: string;
6901
+ createdByRole: string;
6902
+ declaration: Record<string, string | number | boolean | {
6446
6903
  type: string;
6447
6904
  filename: string;
6448
6905
  originalFilename: string;
@@ -6479,11 +6936,9 @@ export declare const EventDocument: z.ZodObject<{
6479
6936
  option: string;
6480
6937
  filename: string;
6481
6938
  originalFilename: string;
6482
- }[] | undefined>;
6483
- createdAt: string;
6484
- createdBy: string;
6939
+ }[] | [string, string] | undefined>;
6485
6940
  createdAtLocation: string;
6486
- metadata?: Record<string, string | number | boolean | {
6941
+ annotation?: Record<string, string | number | boolean | {
6487
6942
  type: string;
6488
6943
  filename: string;
6489
6944
  originalFilename: string;
@@ -6520,11 +6975,17 @@ export declare const EventDocument: z.ZodObject<{
6520
6975
  option: string;
6521
6976
  filename: string;
6522
6977
  originalFilename: string;
6523
- }[] | undefined> | undefined;
6978
+ }[] | [string, string] | undefined> | undefined;
6979
+ originalActionId?: string | undefined;
6524
6980
  } | {
6525
6981
  type: "MARKED_AS_DUPLICATE";
6526
6982
  id: string;
6527
- data: Record<string, string | number | boolean | {
6983
+ status: "Rejected" | "Requested" | "Accepted";
6984
+ transactionId: string;
6985
+ createdAt: string;
6986
+ createdBy: string;
6987
+ createdByRole: string;
6988
+ declaration: Record<string, string | number | boolean | {
6528
6989
  type: string;
6529
6990
  filename: string;
6530
6991
  originalFilename: string;
@@ -6561,11 +7022,9 @@ export declare const EventDocument: z.ZodObject<{
6561
7022
  option: string;
6562
7023
  filename: string;
6563
7024
  originalFilename: string;
6564
- }[] | undefined>;
6565
- createdAt: string;
6566
- createdBy: string;
7025
+ }[] | [string, string] | undefined>;
6567
7026
  createdAtLocation: string;
6568
- metadata?: Record<string, string | number | boolean | {
7027
+ annotation?: Record<string, string | number | boolean | {
6569
7028
  type: string;
6570
7029
  filename: string;
6571
7030
  originalFilename: string;
@@ -6602,11 +7061,17 @@ export declare const EventDocument: z.ZodObject<{
6602
7061
  option: string;
6603
7062
  filename: string;
6604
7063
  originalFilename: string;
6605
- }[] | undefined> | undefined;
7064
+ }[] | [string, string] | undefined> | undefined;
7065
+ originalActionId?: string | undefined;
6606
7066
  } | {
6607
7067
  type: "ARCHIVE";
6608
7068
  id: string;
6609
- data: Record<string, string | number | boolean | {
7069
+ status: "Rejected" | "Requested" | "Accepted";
7070
+ transactionId: string;
7071
+ createdAt: string;
7072
+ createdBy: string;
7073
+ createdByRole: string;
7074
+ declaration: Record<string, string | number | boolean | {
6610
7075
  type: string;
6611
7076
  filename: string;
6612
7077
  originalFilename: string;
@@ -6643,11 +7108,9 @@ export declare const EventDocument: z.ZodObject<{
6643
7108
  option: string;
6644
7109
  filename: string;
6645
7110
  originalFilename: string;
6646
- }[] | undefined>;
6647
- createdAt: string;
6648
- createdBy: string;
7111
+ }[] | [string, string] | undefined>;
6649
7112
  createdAtLocation: string;
6650
- metadata?: Record<string, string | number | boolean | {
7113
+ annotation?: Record<string, string | number | boolean | {
6651
7114
  type: string;
6652
7115
  filename: string;
6653
7116
  originalFilename: string;
@@ -6684,11 +7147,17 @@ export declare const EventDocument: z.ZodObject<{
6684
7147
  option: string;
6685
7148
  filename: string;
6686
7149
  originalFilename: string;
6687
- }[] | undefined> | undefined;
7150
+ }[] | [string, string] | undefined> | undefined;
7151
+ originalActionId?: string | undefined;
6688
7152
  } | {
6689
7153
  type: "CREATE";
6690
7154
  id: string;
6691
- data: Record<string, string | number | boolean | {
7155
+ status: "Rejected" | "Requested" | "Accepted";
7156
+ transactionId: string;
7157
+ createdAt: string;
7158
+ createdBy: string;
7159
+ createdByRole: string;
7160
+ declaration: Record<string, string | number | boolean | {
6692
7161
  type: string;
6693
7162
  filename: string;
6694
7163
  originalFilename: string;
@@ -6725,11 +7194,9 @@ export declare const EventDocument: z.ZodObject<{
6725
7194
  option: string;
6726
7195
  filename: string;
6727
7196
  originalFilename: string;
6728
- }[] | undefined>;
6729
- createdAt: string;
6730
- createdBy: string;
7197
+ }[] | [string, string] | undefined>;
6731
7198
  createdAtLocation: string;
6732
- metadata?: Record<string, string | number | boolean | {
7199
+ annotation?: Record<string, string | number | boolean | {
6733
7200
  type: string;
6734
7201
  filename: string;
6735
7202
  originalFilename: string;
@@ -6766,11 +7233,17 @@ export declare const EventDocument: z.ZodObject<{
6766
7233
  option: string;
6767
7234
  filename: string;
6768
7235
  originalFilename: string;
6769
- }[] | undefined> | undefined;
7236
+ }[] | [string, string] | undefined> | undefined;
7237
+ originalActionId?: string | undefined;
6770
7238
  } | {
6771
7239
  type: "NOTIFY";
6772
7240
  id: string;
6773
- data: Record<string, string | number | boolean | {
7241
+ status: "Rejected" | "Requested" | "Accepted";
7242
+ transactionId: string;
7243
+ createdAt: string;
7244
+ createdBy: string;
7245
+ createdByRole: string;
7246
+ declaration: Record<string, string | number | boolean | {
6774
7247
  type: string;
6775
7248
  filename: string;
6776
7249
  originalFilename: string;
@@ -6807,11 +7280,9 @@ export declare const EventDocument: z.ZodObject<{
6807
7280
  option: string;
6808
7281
  filename: string;
6809
7282
  originalFilename: string;
6810
- }[] | undefined>;
6811
- createdAt: string;
6812
- createdBy: string;
7283
+ }[] | [string, string] | undefined>;
6813
7284
  createdAtLocation: string;
6814
- metadata?: Record<string, string | number | boolean | {
7285
+ annotation?: Record<string, string | number | boolean | {
6815
7286
  type: string;
6816
7287
  filename: string;
6817
7288
  originalFilename: string;
@@ -6848,11 +7319,17 @@ export declare const EventDocument: z.ZodObject<{
6848
7319
  option: string;
6849
7320
  filename: string;
6850
7321
  originalFilename: string;
6851
- }[] | undefined> | undefined;
7322
+ }[] | [string, string] | undefined> | undefined;
7323
+ originalActionId?: string | undefined;
6852
7324
  } | {
6853
7325
  type: "PRINT_CERTIFICATE";
6854
7326
  id: string;
6855
- data: Record<string, string | number | boolean | {
7327
+ status: "Rejected" | "Requested" | "Accepted";
7328
+ transactionId: string;
7329
+ createdAt: string;
7330
+ createdBy: string;
7331
+ createdByRole: string;
7332
+ declaration: Record<string, string | number | boolean | {
6856
7333
  type: string;
6857
7334
  filename: string;
6858
7335
  originalFilename: string;
@@ -6889,11 +7366,9 @@ export declare const EventDocument: z.ZodObject<{
6889
7366
  option: string;
6890
7367
  filename: string;
6891
7368
  originalFilename: string;
6892
- }[] | undefined>;
6893
- createdAt: string;
6894
- createdBy: string;
7369
+ }[] | [string, string] | undefined>;
6895
7370
  createdAtLocation: string;
6896
- metadata?: Record<string, string | number | boolean | {
7371
+ annotation?: Record<string, string | number | boolean | {
6897
7372
  type: string;
6898
7373
  filename: string;
6899
7374
  originalFilename: string;
@@ -6930,11 +7405,17 @@ export declare const EventDocument: z.ZodObject<{
6930
7405
  option: string;
6931
7406
  filename: string;
6932
7407
  originalFilename: string;
6933
- }[] | undefined> | undefined;
7408
+ }[] | [string, string] | undefined> | undefined;
7409
+ originalActionId?: string | undefined;
6934
7410
  } | {
6935
7411
  type: "REQUEST_CORRECTION";
6936
7412
  id: string;
6937
- data: Record<string, string | number | boolean | {
7413
+ status: "Rejected" | "Requested" | "Accepted";
7414
+ transactionId: string;
7415
+ createdAt: string;
7416
+ createdBy: string;
7417
+ createdByRole: string;
7418
+ declaration: Record<string, string | number | boolean | {
6938
7419
  type: string;
6939
7420
  filename: string;
6940
7421
  originalFilename: string;
@@ -6971,11 +7452,9 @@ export declare const EventDocument: z.ZodObject<{
6971
7452
  option: string;
6972
7453
  filename: string;
6973
7454
  originalFilename: string;
6974
- }[] | undefined>;
6975
- createdAt: string;
6976
- createdBy: string;
7455
+ }[] | [string, string] | undefined>;
6977
7456
  createdAtLocation: string;
6978
- metadata?: Record<string, string | number | boolean | {
7457
+ annotation?: Record<string, string | number | boolean | {
6979
7458
  type: string;
6980
7459
  filename: string;
6981
7460
  originalFilename: string;
@@ -7012,11 +7491,17 @@ export declare const EventDocument: z.ZodObject<{
7012
7491
  option: string;
7013
7492
  filename: string;
7014
7493
  originalFilename: string;
7015
- }[] | undefined> | undefined;
7494
+ }[] | [string, string] | undefined> | undefined;
7495
+ originalActionId?: string | undefined;
7016
7496
  } | {
7017
7497
  type: "APPROVE_CORRECTION";
7018
7498
  id: string;
7019
- data: Record<string, string | number | boolean | {
7499
+ status: "Rejected" | "Requested" | "Accepted";
7500
+ transactionId: string;
7501
+ createdAt: string;
7502
+ createdBy: string;
7503
+ createdByRole: string;
7504
+ declaration: Record<string, string | number | boolean | {
7020
7505
  type: string;
7021
7506
  filename: string;
7022
7507
  originalFilename: string;
@@ -7053,12 +7538,10 @@ export declare const EventDocument: z.ZodObject<{
7053
7538
  option: string;
7054
7539
  filename: string;
7055
7540
  originalFilename: string;
7056
- }[] | undefined>;
7057
- createdAt: string;
7058
- createdBy: string;
7541
+ }[] | [string, string] | undefined>;
7059
7542
  createdAtLocation: string;
7060
7543
  requestId: string;
7061
- metadata?: Record<string, string | number | boolean | {
7544
+ annotation?: Record<string, string | number | boolean | {
7062
7545
  type: string;
7063
7546
  filename: string;
7064
7547
  originalFilename: string;
@@ -7095,11 +7578,17 @@ export declare const EventDocument: z.ZodObject<{
7095
7578
  option: string;
7096
7579
  filename: string;
7097
7580
  originalFilename: string;
7098
- }[] | undefined> | undefined;
7581
+ }[] | [string, string] | undefined> | undefined;
7582
+ originalActionId?: string | undefined;
7099
7583
  } | {
7100
7584
  type: "REJECT_CORRECTION";
7101
7585
  id: string;
7102
- data: Record<string, string | number | boolean | {
7586
+ status: "Rejected" | "Requested" | "Accepted";
7587
+ transactionId: string;
7588
+ createdAt: string;
7589
+ createdBy: string;
7590
+ createdByRole: string;
7591
+ declaration: Record<string, string | number | boolean | {
7103
7592
  type: string;
7104
7593
  filename: string;
7105
7594
  originalFilename: string;
@@ -7136,12 +7625,10 @@ export declare const EventDocument: z.ZodObject<{
7136
7625
  option: string;
7137
7626
  filename: string;
7138
7627
  originalFilename: string;
7139
- }[] | undefined>;
7140
- createdAt: string;
7141
- createdBy: string;
7628
+ }[] | [string, string] | undefined>;
7142
7629
  createdAtLocation: string;
7143
7630
  requestId: string;
7144
- metadata?: Record<string, string | number | boolean | {
7631
+ annotation?: Record<string, string | number | boolean | {
7145
7632
  type: string;
7146
7633
  filename: string;
7147
7634
  originalFilename: string;
@@ -7178,11 +7665,17 @@ export declare const EventDocument: z.ZodObject<{
7178
7665
  option: string;
7179
7666
  filename: string;
7180
7667
  originalFilename: string;
7181
- }[] | undefined> | undefined;
7668
+ }[] | [string, string] | undefined> | undefined;
7669
+ originalActionId?: string | undefined;
7182
7670
  } | {
7183
- type: "CUSTOM";
7671
+ type: "READ";
7184
7672
  id: string;
7185
- data: Record<string, string | number | boolean | {
7673
+ status: "Rejected" | "Requested" | "Accepted";
7674
+ transactionId: string;
7675
+ createdAt: string;
7676
+ createdBy: string;
7677
+ createdByRole: string;
7678
+ declaration: Record<string, string | number | boolean | {
7186
7679
  type: string;
7187
7680
  filename: string;
7188
7681
  originalFilename: string;
@@ -7219,11 +7712,9 @@ export declare const EventDocument: z.ZodObject<{
7219
7712
  option: string;
7220
7713
  filename: string;
7221
7714
  originalFilename: string;
7222
- }[] | undefined>;
7223
- createdAt: string;
7224
- createdBy: string;
7715
+ }[] | [string, string] | undefined>;
7225
7716
  createdAtLocation: string;
7226
- metadata?: Record<string, string | number | boolean | {
7717
+ annotation?: Record<string, string | number | boolean | {
7227
7718
  type: string;
7228
7719
  filename: string;
7229
7720
  originalFilename: string;
@@ -7260,18 +7751,37 @@ export declare const EventDocument: z.ZodObject<{
7260
7751
  option: string;
7261
7752
  filename: string;
7262
7753
  originalFilename: string;
7263
- }[] | undefined> | undefined;
7754
+ }[] | [string, string] | undefined> | undefined;
7755
+ originalActionId?: string | undefined;
7756
+ } | {
7757
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7758
+ id: string;
7759
+ status: "Rejected";
7760
+ transactionId: string;
7761
+ createdAt: string;
7762
+ createdBy: string;
7763
+ createdByRole: string;
7764
+ createdAtLocation: string;
7765
+ originalActionId?: string | undefined;
7264
7766
  })[];
7767
+ trackingId: string;
7768
+ dateOfEvent?: {
7769
+ fieldId: string;
7770
+ } | undefined;
7265
7771
  }, {
7266
7772
  type: string;
7267
7773
  id: string;
7268
7774
  createdAt: string;
7269
- trackingId: string;
7270
7775
  updatedAt: string;
7271
7776
  actions: ({
7272
7777
  type: "ASSIGN";
7273
7778
  id: string;
7274
- data: Record<string, string | number | boolean | {
7779
+ status: "Rejected" | "Requested" | "Accepted";
7780
+ transactionId: string;
7781
+ createdAt: string;
7782
+ createdBy: string;
7783
+ createdByRole: string;
7784
+ declaration: Record<string, string | number | boolean | {
7275
7785
  type: string;
7276
7786
  filename: string;
7277
7787
  originalFilename: string;
@@ -7308,12 +7818,10 @@ export declare const EventDocument: z.ZodObject<{
7308
7818
  option: string;
7309
7819
  filename: string;
7310
7820
  originalFilename: string;
7311
- }[] | undefined>;
7312
- createdAt: string;
7313
- createdBy: string;
7821
+ }[] | [string, string] | undefined>;
7314
7822
  createdAtLocation: string;
7315
7823
  assignedTo: string;
7316
- metadata?: Record<string, string | number | boolean | {
7824
+ annotation?: Record<string, string | number | boolean | {
7317
7825
  type: string;
7318
7826
  filename: string;
7319
7827
  originalFilename: string;
@@ -7350,11 +7858,17 @@ export declare const EventDocument: z.ZodObject<{
7350
7858
  option: string;
7351
7859
  filename: string;
7352
7860
  originalFilename: string;
7353
- }[] | undefined> | undefined;
7861
+ }[] | [string, string] | undefined> | undefined;
7862
+ originalActionId?: string | undefined;
7354
7863
  } | {
7355
7864
  type: "UNASSIGN";
7356
7865
  id: string;
7357
- data: Record<string, string | number | boolean | {
7866
+ status: "Rejected" | "Requested" | "Accepted";
7867
+ transactionId: string;
7868
+ createdAt: string;
7869
+ createdBy: string;
7870
+ createdByRole: string;
7871
+ declaration: Record<string, string | number | boolean | {
7358
7872
  type: string;
7359
7873
  filename: string;
7360
7874
  originalFilename: string;
@@ -7391,11 +7905,10 @@ export declare const EventDocument: z.ZodObject<{
7391
7905
  option: string;
7392
7906
  filename: string;
7393
7907
  originalFilename: string;
7394
- }[] | undefined>;
7395
- createdAt: string;
7396
- createdBy: string;
7908
+ }[] | [string, string] | undefined>;
7397
7909
  createdAtLocation: string;
7398
- metadata?: Record<string, string | number | boolean | {
7910
+ assignedTo: null;
7911
+ annotation?: Record<string, string | number | boolean | {
7399
7912
  type: string;
7400
7913
  filename: string;
7401
7914
  originalFilename: string;
@@ -7432,11 +7945,17 @@ export declare const EventDocument: z.ZodObject<{
7432
7945
  option: string;
7433
7946
  filename: string;
7434
7947
  originalFilename: string;
7435
- }[] | undefined> | undefined;
7948
+ }[] | [string, string] | undefined> | undefined;
7949
+ originalActionId?: string | undefined;
7436
7950
  } | {
7437
7951
  type: "REGISTER";
7438
7952
  id: string;
7439
- data: Record<string, string | number | boolean | {
7953
+ status: "Rejected" | "Requested" | "Accepted";
7954
+ transactionId: string;
7955
+ createdAt: string;
7956
+ createdBy: string;
7957
+ createdByRole: string;
7958
+ declaration: Record<string, string | number | boolean | {
7440
7959
  type: string;
7441
7960
  filename: string;
7442
7961
  originalFilename: string;
@@ -7473,15 +7992,9 @@ export declare const EventDocument: z.ZodObject<{
7473
7992
  option: string;
7474
7993
  filename: string;
7475
7994
  originalFilename: string;
7476
- }[] | undefined>;
7477
- createdAt: string;
7478
- createdBy: string;
7995
+ }[] | [string, string] | undefined>;
7479
7996
  createdAtLocation: string;
7480
- identifiers: {
7481
- trackingId: string;
7482
- registrationNumber: string;
7483
- };
7484
- metadata?: Record<string, string | number | boolean | {
7997
+ annotation?: Record<string, string | number | boolean | {
7485
7998
  type: string;
7486
7999
  filename: string;
7487
8000
  originalFilename: string;
@@ -7518,11 +8031,18 @@ export declare const EventDocument: z.ZodObject<{
7518
8031
  option: string;
7519
8032
  filename: string;
7520
8033
  originalFilename: string;
7521
- }[] | undefined> | undefined;
8034
+ }[] | [string, string] | undefined> | undefined;
8035
+ originalActionId?: string | undefined;
8036
+ registrationNumber?: string | undefined;
7522
8037
  } | {
7523
8038
  type: "DECLARE";
7524
8039
  id: string;
7525
- data: Record<string, string | number | boolean | {
8040
+ status: "Rejected" | "Requested" | "Accepted";
8041
+ transactionId: string;
8042
+ createdAt: string;
8043
+ createdBy: string;
8044
+ createdByRole: string;
8045
+ declaration: Record<string, string | number | boolean | {
7526
8046
  type: string;
7527
8047
  filename: string;
7528
8048
  originalFilename: string;
@@ -7559,11 +8079,9 @@ export declare const EventDocument: z.ZodObject<{
7559
8079
  option: string;
7560
8080
  filename: string;
7561
8081
  originalFilename: string;
7562
- }[] | undefined>;
7563
- createdAt: string;
7564
- createdBy: string;
8082
+ }[] | [string, string] | undefined>;
7565
8083
  createdAtLocation: string;
7566
- metadata?: Record<string, string | number | boolean | {
8084
+ annotation?: Record<string, string | number | boolean | {
7567
8085
  type: string;
7568
8086
  filename: string;
7569
8087
  originalFilename: string;
@@ -7600,11 +8118,17 @@ export declare const EventDocument: z.ZodObject<{
7600
8118
  option: string;
7601
8119
  filename: string;
7602
8120
  originalFilename: string;
7603
- }[] | undefined> | undefined;
8121
+ }[] | [string, string] | undefined> | undefined;
8122
+ originalActionId?: string | undefined;
7604
8123
  } | {
7605
8124
  type: "VALIDATE";
7606
8125
  id: string;
7607
- data: Record<string, string | number | boolean | {
8126
+ status: "Rejected" | "Requested" | "Accepted";
8127
+ transactionId: string;
8128
+ createdAt: string;
8129
+ createdBy: string;
8130
+ createdByRole: string;
8131
+ declaration: Record<string, string | number | boolean | {
7608
8132
  type: string;
7609
8133
  filename: string;
7610
8134
  originalFilename: string;
@@ -7641,11 +8165,9 @@ export declare const EventDocument: z.ZodObject<{
7641
8165
  option: string;
7642
8166
  filename: string;
7643
8167
  originalFilename: string;
7644
- }[] | undefined>;
7645
- createdAt: string;
7646
- createdBy: string;
8168
+ }[] | [string, string] | undefined>;
7647
8169
  createdAtLocation: string;
7648
- metadata?: Record<string, string | number | boolean | {
8170
+ annotation?: Record<string, string | number | boolean | {
7649
8171
  type: string;
7650
8172
  filename: string;
7651
8173
  originalFilename: string;
@@ -7682,11 +8204,17 @@ export declare const EventDocument: z.ZodObject<{
7682
8204
  option: string;
7683
8205
  filename: string;
7684
8206
  originalFilename: string;
7685
- }[] | undefined> | undefined;
8207
+ }[] | [string, string] | undefined> | undefined;
8208
+ originalActionId?: string | undefined;
7686
8209
  } | {
7687
8210
  type: "REJECT";
7688
8211
  id: string;
7689
- data: Record<string, string | number | boolean | {
8212
+ status: "Rejected" | "Requested" | "Accepted";
8213
+ transactionId: string;
8214
+ createdAt: string;
8215
+ createdBy: string;
8216
+ createdByRole: string;
8217
+ declaration: Record<string, string | number | boolean | {
7690
8218
  type: string;
7691
8219
  filename: string;
7692
8220
  originalFilename: string;
@@ -7723,11 +8251,9 @@ export declare const EventDocument: z.ZodObject<{
7723
8251
  option: string;
7724
8252
  filename: string;
7725
8253
  originalFilename: string;
7726
- }[] | undefined>;
7727
- createdAt: string;
7728
- createdBy: string;
8254
+ }[] | [string, string] | undefined>;
7729
8255
  createdAtLocation: string;
7730
- metadata?: Record<string, string | number | boolean | {
8256
+ annotation?: Record<string, string | number | boolean | {
7731
8257
  type: string;
7732
8258
  filename: string;
7733
8259
  originalFilename: string;
@@ -7764,11 +8290,17 @@ export declare const EventDocument: z.ZodObject<{
7764
8290
  option: string;
7765
8291
  filename: string;
7766
8292
  originalFilename: string;
7767
- }[] | undefined> | undefined;
8293
+ }[] | [string, string] | undefined> | undefined;
8294
+ originalActionId?: string | undefined;
7768
8295
  } | {
7769
8296
  type: "MARKED_AS_DUPLICATE";
7770
8297
  id: string;
7771
- data: Record<string, string | number | boolean | {
8298
+ status: "Rejected" | "Requested" | "Accepted";
8299
+ transactionId: string;
8300
+ createdAt: string;
8301
+ createdBy: string;
8302
+ createdByRole: string;
8303
+ declaration: Record<string, string | number | boolean | {
7772
8304
  type: string;
7773
8305
  filename: string;
7774
8306
  originalFilename: string;
@@ -7805,11 +8337,9 @@ export declare const EventDocument: z.ZodObject<{
7805
8337
  option: string;
7806
8338
  filename: string;
7807
8339
  originalFilename: string;
7808
- }[] | undefined>;
7809
- createdAt: string;
7810
- createdBy: string;
8340
+ }[] | [string, string] | undefined>;
7811
8341
  createdAtLocation: string;
7812
- metadata?: Record<string, string | number | boolean | {
8342
+ annotation?: Record<string, string | number | boolean | {
7813
8343
  type: string;
7814
8344
  filename: string;
7815
8345
  originalFilename: string;
@@ -7846,11 +8376,17 @@ export declare const EventDocument: z.ZodObject<{
7846
8376
  option: string;
7847
8377
  filename: string;
7848
8378
  originalFilename: string;
7849
- }[] | undefined> | undefined;
8379
+ }[] | [string, string] | undefined> | undefined;
8380
+ originalActionId?: string | undefined;
7850
8381
  } | {
7851
8382
  type: "ARCHIVE";
7852
8383
  id: string;
7853
- data: Record<string, string | number | boolean | {
8384
+ status: "Rejected" | "Requested" | "Accepted";
8385
+ transactionId: string;
8386
+ createdAt: string;
8387
+ createdBy: string;
8388
+ createdByRole: string;
8389
+ declaration: Record<string, string | number | boolean | {
7854
8390
  type: string;
7855
8391
  filename: string;
7856
8392
  originalFilename: string;
@@ -7887,11 +8423,9 @@ export declare const EventDocument: z.ZodObject<{
7887
8423
  option: string;
7888
8424
  filename: string;
7889
8425
  originalFilename: string;
7890
- }[] | undefined>;
7891
- createdAt: string;
7892
- createdBy: string;
8426
+ }[] | [string, string] | undefined>;
7893
8427
  createdAtLocation: string;
7894
- metadata?: Record<string, string | number | boolean | {
8428
+ annotation?: Record<string, string | number | boolean | {
7895
8429
  type: string;
7896
8430
  filename: string;
7897
8431
  originalFilename: string;
@@ -7928,11 +8462,17 @@ export declare const EventDocument: z.ZodObject<{
7928
8462
  option: string;
7929
8463
  filename: string;
7930
8464
  originalFilename: string;
7931
- }[] | undefined> | undefined;
8465
+ }[] | [string, string] | undefined> | undefined;
8466
+ originalActionId?: string | undefined;
7932
8467
  } | {
7933
8468
  type: "CREATE";
7934
8469
  id: string;
7935
- data: Record<string, string | number | boolean | {
8470
+ status: "Rejected" | "Requested" | "Accepted";
8471
+ transactionId: string;
8472
+ createdAt: string;
8473
+ createdBy: string;
8474
+ createdByRole: string;
8475
+ declaration: Record<string, string | number | boolean | {
7936
8476
  type: string;
7937
8477
  filename: string;
7938
8478
  originalFilename: string;
@@ -7969,11 +8509,9 @@ export declare const EventDocument: z.ZodObject<{
7969
8509
  option: string;
7970
8510
  filename: string;
7971
8511
  originalFilename: string;
7972
- }[] | undefined>;
7973
- createdAt: string;
7974
- createdBy: string;
8512
+ }[] | [string, string] | undefined>;
7975
8513
  createdAtLocation: string;
7976
- metadata?: Record<string, string | number | boolean | {
8514
+ annotation?: Record<string, string | number | boolean | {
7977
8515
  type: string;
7978
8516
  filename: string;
7979
8517
  originalFilename: string;
@@ -8010,11 +8548,17 @@ export declare const EventDocument: z.ZodObject<{
8010
8548
  option: string;
8011
8549
  filename: string;
8012
8550
  originalFilename: string;
8013
- }[] | undefined> | undefined;
8551
+ }[] | [string, string] | undefined> | undefined;
8552
+ originalActionId?: string | undefined;
8014
8553
  } | {
8015
8554
  type: "NOTIFY";
8016
8555
  id: string;
8017
- data: Record<string, string | number | boolean | {
8556
+ status: "Rejected" | "Requested" | "Accepted";
8557
+ transactionId: string;
8558
+ createdAt: string;
8559
+ createdBy: string;
8560
+ createdByRole: string;
8561
+ declaration: Record<string, string | number | boolean | {
8018
8562
  type: string;
8019
8563
  filename: string;
8020
8564
  originalFilename: string;
@@ -8051,11 +8595,9 @@ export declare const EventDocument: z.ZodObject<{
8051
8595
  option: string;
8052
8596
  filename: string;
8053
8597
  originalFilename: string;
8054
- }[] | undefined>;
8055
- createdAt: string;
8056
- createdBy: string;
8598
+ }[] | [string, string] | undefined>;
8057
8599
  createdAtLocation: string;
8058
- metadata?: Record<string, string | number | boolean | {
8600
+ annotation?: Record<string, string | number | boolean | {
8059
8601
  type: string;
8060
8602
  filename: string;
8061
8603
  originalFilename: string;
@@ -8092,11 +8634,17 @@ export declare const EventDocument: z.ZodObject<{
8092
8634
  option: string;
8093
8635
  filename: string;
8094
8636
  originalFilename: string;
8095
- }[] | undefined> | undefined;
8637
+ }[] | [string, string] | undefined> | undefined;
8638
+ originalActionId?: string | undefined;
8096
8639
  } | {
8097
8640
  type: "PRINT_CERTIFICATE";
8098
8641
  id: string;
8099
- data: Record<string, string | number | boolean | {
8642
+ status: "Rejected" | "Requested" | "Accepted";
8643
+ transactionId: string;
8644
+ createdAt: string;
8645
+ createdBy: string;
8646
+ createdByRole: string;
8647
+ declaration: Record<string, string | number | boolean | {
8100
8648
  type: string;
8101
8649
  filename: string;
8102
8650
  originalFilename: string;
@@ -8133,11 +8681,9 @@ export declare const EventDocument: z.ZodObject<{
8133
8681
  option: string;
8134
8682
  filename: string;
8135
8683
  originalFilename: string;
8136
- }[] | undefined>;
8137
- createdAt: string;
8138
- createdBy: string;
8684
+ }[] | [string, string] | undefined>;
8139
8685
  createdAtLocation: string;
8140
- metadata?: Record<string, string | number | boolean | {
8686
+ annotation?: Record<string, string | number | boolean | {
8141
8687
  type: string;
8142
8688
  filename: string;
8143
8689
  originalFilename: string;
@@ -8174,11 +8720,17 @@ export declare const EventDocument: z.ZodObject<{
8174
8720
  option: string;
8175
8721
  filename: string;
8176
8722
  originalFilename: string;
8177
- }[] | undefined> | undefined;
8723
+ }[] | [string, string] | undefined> | undefined;
8724
+ originalActionId?: string | undefined;
8178
8725
  } | {
8179
8726
  type: "REQUEST_CORRECTION";
8180
8727
  id: string;
8181
- data: Record<string, string | number | boolean | {
8728
+ status: "Rejected" | "Requested" | "Accepted";
8729
+ transactionId: string;
8730
+ createdAt: string;
8731
+ createdBy: string;
8732
+ createdByRole: string;
8733
+ declaration: Record<string, string | number | boolean | {
8182
8734
  type: string;
8183
8735
  filename: string;
8184
8736
  originalFilename: string;
@@ -8215,11 +8767,9 @@ export declare const EventDocument: z.ZodObject<{
8215
8767
  option: string;
8216
8768
  filename: string;
8217
8769
  originalFilename: string;
8218
- }[] | undefined>;
8219
- createdAt: string;
8220
- createdBy: string;
8770
+ }[] | [string, string] | undefined>;
8221
8771
  createdAtLocation: string;
8222
- metadata?: Record<string, string | number | boolean | {
8772
+ annotation?: Record<string, string | number | boolean | {
8223
8773
  type: string;
8224
8774
  filename: string;
8225
8775
  originalFilename: string;
@@ -8256,11 +8806,17 @@ export declare const EventDocument: z.ZodObject<{
8256
8806
  option: string;
8257
8807
  filename: string;
8258
8808
  originalFilename: string;
8259
- }[] | undefined> | undefined;
8809
+ }[] | [string, string] | undefined> | undefined;
8810
+ originalActionId?: string | undefined;
8260
8811
  } | {
8261
8812
  type: "APPROVE_CORRECTION";
8262
8813
  id: string;
8263
- data: Record<string, string | number | boolean | {
8814
+ status: "Rejected" | "Requested" | "Accepted";
8815
+ transactionId: string;
8816
+ createdAt: string;
8817
+ createdBy: string;
8818
+ createdByRole: string;
8819
+ declaration: Record<string, string | number | boolean | {
8264
8820
  type: string;
8265
8821
  filename: string;
8266
8822
  originalFilename: string;
@@ -8297,12 +8853,10 @@ export declare const EventDocument: z.ZodObject<{
8297
8853
  option: string;
8298
8854
  filename: string;
8299
8855
  originalFilename: string;
8300
- }[] | undefined>;
8301
- createdAt: string;
8302
- createdBy: string;
8856
+ }[] | [string, string] | undefined>;
8303
8857
  createdAtLocation: string;
8304
8858
  requestId: string;
8305
- metadata?: Record<string, string | number | boolean | {
8859
+ annotation?: Record<string, string | number | boolean | {
8306
8860
  type: string;
8307
8861
  filename: string;
8308
8862
  originalFilename: string;
@@ -8339,11 +8893,17 @@ export declare const EventDocument: z.ZodObject<{
8339
8893
  option: string;
8340
8894
  filename: string;
8341
8895
  originalFilename: string;
8342
- }[] | undefined> | undefined;
8896
+ }[] | [string, string] | undefined> | undefined;
8897
+ originalActionId?: string | undefined;
8343
8898
  } | {
8344
8899
  type: "REJECT_CORRECTION";
8345
8900
  id: string;
8346
- data: Record<string, string | number | boolean | {
8901
+ status: "Rejected" | "Requested" | "Accepted";
8902
+ transactionId: string;
8903
+ createdAt: string;
8904
+ createdBy: string;
8905
+ createdByRole: string;
8906
+ declaration: Record<string, string | number | boolean | {
8347
8907
  type: string;
8348
8908
  filename: string;
8349
8909
  originalFilename: string;
@@ -8380,12 +8940,10 @@ export declare const EventDocument: z.ZodObject<{
8380
8940
  option: string;
8381
8941
  filename: string;
8382
8942
  originalFilename: string;
8383
- }[] | undefined>;
8384
- createdAt: string;
8385
- createdBy: string;
8943
+ }[] | [string, string] | undefined>;
8386
8944
  createdAtLocation: string;
8387
8945
  requestId: string;
8388
- metadata?: Record<string, string | number | boolean | {
8946
+ annotation?: Record<string, string | number | boolean | {
8389
8947
  type: string;
8390
8948
  filename: string;
8391
8949
  originalFilename: string;
@@ -8422,11 +8980,17 @@ export declare const EventDocument: z.ZodObject<{
8422
8980
  option: string;
8423
8981
  filename: string;
8424
8982
  originalFilename: string;
8425
- }[] | undefined> | undefined;
8983
+ }[] | [string, string] | undefined> | undefined;
8984
+ originalActionId?: string | undefined;
8426
8985
  } | {
8427
- type: "CUSTOM";
8986
+ type: "READ";
8428
8987
  id: string;
8429
- data: Record<string, string | number | boolean | {
8988
+ status: "Rejected" | "Requested" | "Accepted";
8989
+ transactionId: string;
8990
+ createdAt: string;
8991
+ createdBy: string;
8992
+ createdByRole: string;
8993
+ declaration: Record<string, string | number | boolean | {
8430
8994
  type: string;
8431
8995
  filename: string;
8432
8996
  originalFilename: string;
@@ -8463,11 +9027,9 @@ export declare const EventDocument: z.ZodObject<{
8463
9027
  option: string;
8464
9028
  filename: string;
8465
9029
  originalFilename: string;
8466
- }[] | undefined>;
8467
- createdAt: string;
8468
- createdBy: string;
9030
+ }[] | [string, string] | undefined>;
8469
9031
  createdAtLocation: string;
8470
- metadata?: Record<string, string | number | boolean | {
9032
+ annotation?: Record<string, string | number | boolean | {
8471
9033
  type: string;
8472
9034
  filename: string;
8473
9035
  originalFilename: string;
@@ -8504,8 +9066,23 @@ export declare const EventDocument: z.ZodObject<{
8504
9066
  option: string;
8505
9067
  filename: string;
8506
9068
  originalFilename: string;
8507
- }[] | undefined> | undefined;
9069
+ }[] | [string, string] | undefined> | undefined;
9070
+ originalActionId?: string | undefined;
9071
+ } | {
9072
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
9073
+ id: string;
9074
+ status: "Rejected";
9075
+ transactionId: string;
9076
+ createdAt: string;
9077
+ createdBy: string;
9078
+ createdByRole: string;
9079
+ createdAtLocation: string;
9080
+ originalActionId?: string | undefined;
8508
9081
  })[];
9082
+ trackingId: string;
9083
+ dateOfEvent?: {
9084
+ fieldId: string;
9085
+ } | undefined;
8509
9086
  }>;
8510
9087
  export type EventDocument = z.infer<typeof EventDocument>;
8511
9088
  //# sourceMappingURL=EventDocument.d.ts.map