@opencrvs/toolkit 1.8.0-rc.f9911ed → 1.8.0-rc.f9d33b7

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 (38) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +10101 -14872
  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 +85214 -5717
  6. package/dist/commons/events/ActionDocument.d.ts +7706 -295
  7. package/dist/commons/events/ActionInput.d.ts +2164 -419
  8. package/dist/commons/events/ActionType.d.ts +26 -16
  9. package/dist/commons/events/AdvancedSearchConfig.d.ts +371 -25
  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 +75 -45
  13. package/dist/commons/events/EventConfig.d.ts +40486 -2985
  14. package/dist/commons/events/EventConfigInput.d.ts +5 -2
  15. package/dist/commons/events/EventDocument.d.ts +1027 -379
  16. package/dist/commons/events/EventIndex.d.ts +921 -7
  17. package/dist/commons/events/EventInput.d.ts +13 -0
  18. package/dist/commons/events/EventMetadata.d.ts +16 -3
  19. package/dist/commons/events/FieldConfig.d.ts +3702 -757
  20. package/dist/commons/events/FieldType.d.ts +1 -2
  21. package/dist/commons/events/FieldValue.d.ts +1 -1
  22. package/dist/commons/events/FormConfig.d.ts +38914 -339
  23. package/dist/commons/events/PageConfig.d.ts +9803 -0
  24. package/dist/commons/events/SummaryConfig.d.ts +81 -42
  25. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  26. package/dist/commons/events/User.d.ts +5 -0
  27. package/dist/commons/events/WorkqueueConfig.d.ts +44 -20
  28. package/dist/commons/events/defineConfig.d.ts +6758 -485
  29. package/dist/commons/events/event.d.ts +25 -0
  30. package/dist/commons/events/field.d.ts +68 -0
  31. package/dist/commons/events/index.d.ts +5 -1
  32. package/dist/commons/events/scopes.d.ts +26 -0
  33. package/dist/commons/events/test.utils.d.ts +63 -321
  34. package/dist/commons/events/utils.d.ts +3423 -179
  35. package/dist/commons/events/utils.test.d.ts +2 -0
  36. package/dist/conditionals/index.js +191 -120
  37. package/dist/events/index.js +1855 -1187
  38. package/package.json +3 -2
@@ -2,13 +2,23 @@ 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
+ updatedAtLocation: z.ZodString;
15
+ actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
8
16
  id: z.ZodString;
17
+ transactionId: z.ZodString;
9
18
  createdAt: z.ZodString;
10
19
  createdBy: z.ZodString;
11
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
20
+ createdByRole: z.ZodString;
21
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12
22
  filename: z.ZodString;
13
23
  originalFilename: z.ZodString;
14
24
  type: z.ZodString;
@@ -122,7 +132,7 @@ export declare const EventDocument: z.ZodObject<{
122
132
  addressLine3?: string | null | undefined;
123
133
  postcodeOrZip?: string | null | undefined;
124
134
  }>]>>;
125
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
135
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
126
136
  filename: z.ZodString;
127
137
  originalFilename: z.ZodString;
128
138
  type: z.ZodString;
@@ -236,13 +246,21 @@ export declare const EventDocument: z.ZodObject<{
236
246
  addressLine3?: string | null | undefined;
237
247
  postcodeOrZip?: string | null | undefined;
238
248
  }>]>>>;
239
- createdAtLocation: z.ZodString;
249
+ createdAtLocation: z.ZodOptional<z.ZodString>;
250
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
251
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
252
+ originalActionId: z.ZodOptional<z.ZodString>;
240
253
  }, {
241
254
  type: z.ZodLiteral<"CREATE">;
242
255
  }>, "strip", z.ZodTypeAny, {
243
256
  type: "CREATE";
244
257
  id: string;
245
- data: Record<string, string | number | boolean | {
258
+ status: "Rejected" | "Requested" | "Accepted";
259
+ transactionId: string;
260
+ createdAt: string;
261
+ createdBy: string;
262
+ createdByRole: string;
263
+ declaration: Record<string, string | number | boolean | {
246
264
  type: string;
247
265
  filename: string;
248
266
  originalFilename: string;
@@ -280,10 +298,7 @@ export declare const EventDocument: z.ZodObject<{
280
298
  filename: string;
281
299
  originalFilename: string;
282
300
  }[] | undefined>;
283
- createdAt: string;
284
- createdBy: string;
285
- createdAtLocation: string;
286
- metadata?: Record<string, string | number | boolean | {
301
+ annotation?: Record<string, string | number | boolean | {
287
302
  type: string;
288
303
  filename: string;
289
304
  originalFilename: string;
@@ -321,10 +336,18 @@ export declare const EventDocument: z.ZodObject<{
321
336
  filename: string;
322
337
  originalFilename: string;
323
338
  }[] | undefined> | undefined;
339
+ createdAtLocation?: string | undefined;
340
+ updatedAtLocation?: string | undefined;
341
+ originalActionId?: string | undefined;
324
342
  }, {
325
343
  type: "CREATE";
326
344
  id: string;
327
- data: Record<string, string | number | boolean | {
345
+ status: "Rejected" | "Requested" | "Accepted";
346
+ transactionId: string;
347
+ createdAt: string;
348
+ createdBy: string;
349
+ createdByRole: string;
350
+ declaration: Record<string, string | number | boolean | {
328
351
  type: string;
329
352
  filename: string;
330
353
  originalFilename: string;
@@ -362,10 +385,7 @@ export declare const EventDocument: z.ZodObject<{
362
385
  filename: string;
363
386
  originalFilename: string;
364
387
  }[] | undefined>;
365
- createdAt: string;
366
- createdBy: string;
367
- createdAtLocation: string;
368
- metadata?: Record<string, string | number | boolean | {
388
+ annotation?: Record<string, string | number | boolean | {
369
389
  type: string;
370
390
  filename: string;
371
391
  originalFilename: string;
@@ -403,11 +423,16 @@ export declare const EventDocument: z.ZodObject<{
403
423
  filename: string;
404
424
  originalFilename: string;
405
425
  }[] | undefined> | undefined;
426
+ createdAtLocation?: string | undefined;
427
+ updatedAtLocation?: string | undefined;
428
+ originalActionId?: string | undefined;
406
429
  }>, z.ZodObject<z.objectUtil.extendShape<{
407
430
  id: z.ZodString;
431
+ transactionId: z.ZodString;
408
432
  createdAt: z.ZodString;
409
433
  createdBy: z.ZodString;
410
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
434
+ createdByRole: z.ZodString;
435
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
411
436
  filename: z.ZodString;
412
437
  originalFilename: z.ZodString;
413
438
  type: z.ZodString;
@@ -521,7 +546,7 @@ export declare const EventDocument: z.ZodObject<{
521
546
  addressLine3?: string | null | undefined;
522
547
  postcodeOrZip?: string | null | undefined;
523
548
  }>]>>;
524
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
549
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
525
550
  filename: z.ZodString;
526
551
  originalFilename: z.ZodString;
527
552
  type: z.ZodString;
@@ -635,13 +660,21 @@ export declare const EventDocument: z.ZodObject<{
635
660
  addressLine3?: string | null | undefined;
636
661
  postcodeOrZip?: string | null | undefined;
637
662
  }>]>>>;
638
- createdAtLocation: z.ZodString;
663
+ createdAtLocation: z.ZodOptional<z.ZodString>;
664
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
665
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
666
+ originalActionId: z.ZodOptional<z.ZodString>;
639
667
  }, {
640
668
  type: z.ZodLiteral<"VALIDATE">;
641
669
  }>, "strip", z.ZodTypeAny, {
642
670
  type: "VALIDATE";
643
671
  id: string;
644
- data: Record<string, string | number | boolean | {
672
+ status: "Rejected" | "Requested" | "Accepted";
673
+ transactionId: string;
674
+ createdAt: string;
675
+ createdBy: string;
676
+ createdByRole: string;
677
+ declaration: Record<string, string | number | boolean | {
645
678
  type: string;
646
679
  filename: string;
647
680
  originalFilename: string;
@@ -679,10 +712,7 @@ export declare const EventDocument: z.ZodObject<{
679
712
  filename: string;
680
713
  originalFilename: string;
681
714
  }[] | undefined>;
682
- createdAt: string;
683
- createdBy: string;
684
- createdAtLocation: string;
685
- metadata?: Record<string, string | number | boolean | {
715
+ annotation?: Record<string, string | number | boolean | {
686
716
  type: string;
687
717
  filename: string;
688
718
  originalFilename: string;
@@ -720,10 +750,18 @@ export declare const EventDocument: z.ZodObject<{
720
750
  filename: string;
721
751
  originalFilename: string;
722
752
  }[] | undefined> | undefined;
753
+ createdAtLocation?: string | undefined;
754
+ updatedAtLocation?: string | undefined;
755
+ originalActionId?: string | undefined;
723
756
  }, {
724
757
  type: "VALIDATE";
725
758
  id: string;
726
- data: Record<string, string | number | boolean | {
759
+ status: "Rejected" | "Requested" | "Accepted";
760
+ transactionId: string;
761
+ createdAt: string;
762
+ createdBy: string;
763
+ createdByRole: string;
764
+ declaration: Record<string, string | number | boolean | {
727
765
  type: string;
728
766
  filename: string;
729
767
  originalFilename: string;
@@ -761,10 +799,7 @@ export declare const EventDocument: z.ZodObject<{
761
799
  filename: string;
762
800
  originalFilename: string;
763
801
  }[] | undefined>;
764
- createdAt: string;
765
- createdBy: string;
766
- createdAtLocation: string;
767
- metadata?: Record<string, string | number | boolean | {
802
+ annotation?: Record<string, string | number | boolean | {
768
803
  type: string;
769
804
  filename: string;
770
805
  originalFilename: string;
@@ -802,11 +837,16 @@ export declare const EventDocument: z.ZodObject<{
802
837
  filename: string;
803
838
  originalFilename: string;
804
839
  }[] | undefined> | undefined;
840
+ createdAtLocation?: string | undefined;
841
+ updatedAtLocation?: string | undefined;
842
+ originalActionId?: string | undefined;
805
843
  }>, z.ZodObject<z.objectUtil.extendShape<{
806
844
  id: z.ZodString;
845
+ transactionId: z.ZodString;
807
846
  createdAt: z.ZodString;
808
847
  createdBy: z.ZodString;
809
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
848
+ createdByRole: z.ZodString;
849
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
810
850
  filename: z.ZodString;
811
851
  originalFilename: z.ZodString;
812
852
  type: z.ZodString;
@@ -920,7 +960,7 @@ export declare const EventDocument: z.ZodObject<{
920
960
  addressLine3?: string | null | undefined;
921
961
  postcodeOrZip?: string | null | undefined;
922
962
  }>]>>;
923
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
963
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
924
964
  filename: z.ZodString;
925
965
  originalFilename: z.ZodString;
926
966
  type: z.ZodString;
@@ -1034,13 +1074,21 @@ export declare const EventDocument: z.ZodObject<{
1034
1074
  addressLine3?: string | null | undefined;
1035
1075
  postcodeOrZip?: string | null | undefined;
1036
1076
  }>]>>>;
1037
- createdAtLocation: z.ZodString;
1077
+ createdAtLocation: z.ZodOptional<z.ZodString>;
1078
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
1079
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1080
+ originalActionId: z.ZodOptional<z.ZodString>;
1038
1081
  }, {
1039
1082
  type: z.ZodLiteral<"REJECT">;
1040
1083
  }>, "strip", z.ZodTypeAny, {
1041
1084
  type: "REJECT";
1042
1085
  id: string;
1043
- data: Record<string, string | number | boolean | {
1086
+ status: "Rejected" | "Requested" | "Accepted";
1087
+ transactionId: string;
1088
+ createdAt: string;
1089
+ createdBy: string;
1090
+ createdByRole: string;
1091
+ declaration: Record<string, string | number | boolean | {
1044
1092
  type: string;
1045
1093
  filename: string;
1046
1094
  originalFilename: string;
@@ -1078,10 +1126,7 @@ export declare const EventDocument: z.ZodObject<{
1078
1126
  filename: string;
1079
1127
  originalFilename: string;
1080
1128
  }[] | undefined>;
1081
- createdAt: string;
1082
- createdBy: string;
1083
- createdAtLocation: string;
1084
- metadata?: Record<string, string | number | boolean | {
1129
+ annotation?: Record<string, string | number | boolean | {
1085
1130
  type: string;
1086
1131
  filename: string;
1087
1132
  originalFilename: string;
@@ -1119,10 +1164,18 @@ export declare const EventDocument: z.ZodObject<{
1119
1164
  filename: string;
1120
1165
  originalFilename: string;
1121
1166
  }[] | undefined> | undefined;
1167
+ createdAtLocation?: string | undefined;
1168
+ updatedAtLocation?: string | undefined;
1169
+ originalActionId?: string | undefined;
1122
1170
  }, {
1123
1171
  type: "REJECT";
1124
1172
  id: string;
1125
- data: Record<string, string | number | boolean | {
1173
+ status: "Rejected" | "Requested" | "Accepted";
1174
+ transactionId: string;
1175
+ createdAt: string;
1176
+ createdBy: string;
1177
+ createdByRole: string;
1178
+ declaration: Record<string, string | number | boolean | {
1126
1179
  type: string;
1127
1180
  filename: string;
1128
1181
  originalFilename: string;
@@ -1160,10 +1213,7 @@ export declare const EventDocument: z.ZodObject<{
1160
1213
  filename: string;
1161
1214
  originalFilename: string;
1162
1215
  }[] | undefined>;
1163
- createdAt: string;
1164
- createdBy: string;
1165
- createdAtLocation: string;
1166
- metadata?: Record<string, string | number | boolean | {
1216
+ annotation?: Record<string, string | number | boolean | {
1167
1217
  type: string;
1168
1218
  filename: string;
1169
1219
  originalFilename: string;
@@ -1201,11 +1251,16 @@ export declare const EventDocument: z.ZodObject<{
1201
1251
  filename: string;
1202
1252
  originalFilename: string;
1203
1253
  }[] | undefined> | undefined;
1254
+ createdAtLocation?: string | undefined;
1255
+ updatedAtLocation?: string | undefined;
1256
+ originalActionId?: string | undefined;
1204
1257
  }>, z.ZodObject<z.objectUtil.extendShape<{
1205
1258
  id: z.ZodString;
1259
+ transactionId: z.ZodString;
1206
1260
  createdAt: z.ZodString;
1207
1261
  createdBy: z.ZodString;
1208
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1262
+ createdByRole: z.ZodString;
1263
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1209
1264
  filename: z.ZodString;
1210
1265
  originalFilename: z.ZodString;
1211
1266
  type: z.ZodString;
@@ -1319,7 +1374,7 @@ export declare const EventDocument: z.ZodObject<{
1319
1374
  addressLine3?: string | null | undefined;
1320
1375
  postcodeOrZip?: string | null | undefined;
1321
1376
  }>]>>;
1322
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1377
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1323
1378
  filename: z.ZodString;
1324
1379
  originalFilename: z.ZodString;
1325
1380
  type: z.ZodString;
@@ -1433,13 +1488,21 @@ export declare const EventDocument: z.ZodObject<{
1433
1488
  addressLine3?: string | null | undefined;
1434
1489
  postcodeOrZip?: string | null | undefined;
1435
1490
  }>]>>>;
1436
- createdAtLocation: z.ZodString;
1491
+ createdAtLocation: z.ZodOptional<z.ZodString>;
1492
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
1493
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1494
+ originalActionId: z.ZodOptional<z.ZodString>;
1437
1495
  }, {
1438
1496
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1439
1497
  }>, "strip", z.ZodTypeAny, {
1440
1498
  type: "MARKED_AS_DUPLICATE";
1441
1499
  id: string;
1442
- data: Record<string, string | number | boolean | {
1500
+ status: "Rejected" | "Requested" | "Accepted";
1501
+ transactionId: string;
1502
+ createdAt: string;
1503
+ createdBy: string;
1504
+ createdByRole: string;
1505
+ declaration: Record<string, string | number | boolean | {
1443
1506
  type: string;
1444
1507
  filename: string;
1445
1508
  originalFilename: string;
@@ -1477,10 +1540,7 @@ export declare const EventDocument: z.ZodObject<{
1477
1540
  filename: string;
1478
1541
  originalFilename: string;
1479
1542
  }[] | undefined>;
1480
- createdAt: string;
1481
- createdBy: string;
1482
- createdAtLocation: string;
1483
- metadata?: Record<string, string | number | boolean | {
1543
+ annotation?: Record<string, string | number | boolean | {
1484
1544
  type: string;
1485
1545
  filename: string;
1486
1546
  originalFilename: string;
@@ -1518,10 +1578,18 @@ export declare const EventDocument: z.ZodObject<{
1518
1578
  filename: string;
1519
1579
  originalFilename: string;
1520
1580
  }[] | undefined> | undefined;
1581
+ createdAtLocation?: string | undefined;
1582
+ updatedAtLocation?: string | undefined;
1583
+ originalActionId?: string | undefined;
1521
1584
  }, {
1522
1585
  type: "MARKED_AS_DUPLICATE";
1523
1586
  id: string;
1524
- data: Record<string, string | number | boolean | {
1587
+ status: "Rejected" | "Requested" | "Accepted";
1588
+ transactionId: string;
1589
+ createdAt: string;
1590
+ createdBy: string;
1591
+ createdByRole: string;
1592
+ declaration: Record<string, string | number | boolean | {
1525
1593
  type: string;
1526
1594
  filename: string;
1527
1595
  originalFilename: string;
@@ -1559,10 +1627,7 @@ export declare const EventDocument: z.ZodObject<{
1559
1627
  filename: string;
1560
1628
  originalFilename: string;
1561
1629
  }[] | undefined>;
1562
- createdAt: string;
1563
- createdBy: string;
1564
- createdAtLocation: string;
1565
- metadata?: Record<string, string | number | boolean | {
1630
+ annotation?: Record<string, string | number | boolean | {
1566
1631
  type: string;
1567
1632
  filename: string;
1568
1633
  originalFilename: string;
@@ -1600,11 +1665,16 @@ export declare const EventDocument: z.ZodObject<{
1600
1665
  filename: string;
1601
1666
  originalFilename: string;
1602
1667
  }[] | undefined> | undefined;
1668
+ createdAtLocation?: string | undefined;
1669
+ updatedAtLocation?: string | undefined;
1670
+ originalActionId?: string | undefined;
1603
1671
  }>, z.ZodObject<z.objectUtil.extendShape<{
1604
1672
  id: z.ZodString;
1673
+ transactionId: z.ZodString;
1605
1674
  createdAt: z.ZodString;
1606
1675
  createdBy: z.ZodString;
1607
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1676
+ createdByRole: z.ZodString;
1677
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1608
1678
  filename: z.ZodString;
1609
1679
  originalFilename: z.ZodString;
1610
1680
  type: z.ZodString;
@@ -1718,7 +1788,7 @@ export declare const EventDocument: z.ZodObject<{
1718
1788
  addressLine3?: string | null | undefined;
1719
1789
  postcodeOrZip?: string | null | undefined;
1720
1790
  }>]>>;
1721
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1791
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1722
1792
  filename: z.ZodString;
1723
1793
  originalFilename: z.ZodString;
1724
1794
  type: z.ZodString;
@@ -1832,13 +1902,21 @@ export declare const EventDocument: z.ZodObject<{
1832
1902
  addressLine3?: string | null | undefined;
1833
1903
  postcodeOrZip?: string | null | undefined;
1834
1904
  }>]>>>;
1835
- createdAtLocation: z.ZodString;
1905
+ createdAtLocation: z.ZodOptional<z.ZodString>;
1906
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
1907
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1908
+ originalActionId: z.ZodOptional<z.ZodString>;
1836
1909
  }, {
1837
1910
  type: z.ZodLiteral<"ARCHIVE">;
1838
1911
  }>, "strip", z.ZodTypeAny, {
1839
1912
  type: "ARCHIVE";
1840
1913
  id: string;
1841
- data: Record<string, string | number | boolean | {
1914
+ status: "Rejected" | "Requested" | "Accepted";
1915
+ transactionId: string;
1916
+ createdAt: string;
1917
+ createdBy: string;
1918
+ createdByRole: string;
1919
+ declaration: Record<string, string | number | boolean | {
1842
1920
  type: string;
1843
1921
  filename: string;
1844
1922
  originalFilename: string;
@@ -1876,10 +1954,7 @@ export declare const EventDocument: z.ZodObject<{
1876
1954
  filename: string;
1877
1955
  originalFilename: string;
1878
1956
  }[] | undefined>;
1879
- createdAt: string;
1880
- createdBy: string;
1881
- createdAtLocation: string;
1882
- metadata?: Record<string, string | number | boolean | {
1957
+ annotation?: Record<string, string | number | boolean | {
1883
1958
  type: string;
1884
1959
  filename: string;
1885
1960
  originalFilename: string;
@@ -1917,10 +1992,18 @@ export declare const EventDocument: z.ZodObject<{
1917
1992
  filename: string;
1918
1993
  originalFilename: string;
1919
1994
  }[] | undefined> | undefined;
1995
+ createdAtLocation?: string | undefined;
1996
+ updatedAtLocation?: string | undefined;
1997
+ originalActionId?: string | undefined;
1920
1998
  }, {
1921
1999
  type: "ARCHIVE";
1922
2000
  id: string;
1923
- data: Record<string, string | number | boolean | {
2001
+ status: "Rejected" | "Requested" | "Accepted";
2002
+ transactionId: string;
2003
+ createdAt: string;
2004
+ createdBy: string;
2005
+ createdByRole: string;
2006
+ declaration: Record<string, string | number | boolean | {
1924
2007
  type: string;
1925
2008
  filename: string;
1926
2009
  originalFilename: string;
@@ -1958,10 +2041,7 @@ export declare const EventDocument: z.ZodObject<{
1958
2041
  filename: string;
1959
2042
  originalFilename: string;
1960
2043
  }[] | undefined>;
1961
- createdAt: string;
1962
- createdBy: string;
1963
- createdAtLocation: string;
1964
- metadata?: Record<string, string | number | boolean | {
2044
+ annotation?: Record<string, string | number | boolean | {
1965
2045
  type: string;
1966
2046
  filename: string;
1967
2047
  originalFilename: string;
@@ -1999,11 +2079,16 @@ export declare const EventDocument: z.ZodObject<{
1999
2079
  filename: string;
2000
2080
  originalFilename: string;
2001
2081
  }[] | undefined> | undefined;
2082
+ createdAtLocation?: string | undefined;
2083
+ updatedAtLocation?: string | undefined;
2084
+ originalActionId?: string | undefined;
2002
2085
  }>, z.ZodObject<z.objectUtil.extendShape<{
2003
2086
  id: z.ZodString;
2087
+ transactionId: z.ZodString;
2004
2088
  createdAt: z.ZodString;
2005
2089
  createdBy: z.ZodString;
2006
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2090
+ createdByRole: z.ZodString;
2091
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2007
2092
  filename: z.ZodString;
2008
2093
  originalFilename: z.ZodString;
2009
2094
  type: z.ZodString;
@@ -2117,7 +2202,7 @@ export declare const EventDocument: z.ZodObject<{
2117
2202
  addressLine3?: string | null | undefined;
2118
2203
  postcodeOrZip?: string | null | undefined;
2119
2204
  }>]>>;
2120
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2205
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2121
2206
  filename: z.ZodString;
2122
2207
  originalFilename: z.ZodString;
2123
2208
  type: z.ZodString;
@@ -2231,13 +2316,21 @@ export declare const EventDocument: z.ZodObject<{
2231
2316
  addressLine3?: string | null | undefined;
2232
2317
  postcodeOrZip?: string | null | undefined;
2233
2318
  }>]>>>;
2234
- createdAtLocation: z.ZodString;
2319
+ createdAtLocation: z.ZodOptional<z.ZodString>;
2320
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
2321
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2322
+ originalActionId: z.ZodOptional<z.ZodString>;
2235
2323
  }, {
2236
2324
  type: z.ZodLiteral<"NOTIFY">;
2237
2325
  }>, "strip", z.ZodTypeAny, {
2238
2326
  type: "NOTIFY";
2239
2327
  id: string;
2240
- data: Record<string, string | number | boolean | {
2328
+ status: "Rejected" | "Requested" | "Accepted";
2329
+ transactionId: string;
2330
+ createdAt: string;
2331
+ createdBy: string;
2332
+ createdByRole: string;
2333
+ declaration: Record<string, string | number | boolean | {
2241
2334
  type: string;
2242
2335
  filename: string;
2243
2336
  originalFilename: string;
@@ -2275,10 +2368,7 @@ export declare const EventDocument: z.ZodObject<{
2275
2368
  filename: string;
2276
2369
  originalFilename: string;
2277
2370
  }[] | undefined>;
2278
- createdAt: string;
2279
- createdBy: string;
2280
- createdAtLocation: string;
2281
- metadata?: Record<string, string | number | boolean | {
2371
+ annotation?: Record<string, string | number | boolean | {
2282
2372
  type: string;
2283
2373
  filename: string;
2284
2374
  originalFilename: string;
@@ -2316,10 +2406,18 @@ export declare const EventDocument: z.ZodObject<{
2316
2406
  filename: string;
2317
2407
  originalFilename: string;
2318
2408
  }[] | undefined> | undefined;
2409
+ createdAtLocation?: string | undefined;
2410
+ updatedAtLocation?: string | undefined;
2411
+ originalActionId?: string | undefined;
2319
2412
  }, {
2320
2413
  type: "NOTIFY";
2321
2414
  id: string;
2322
- data: Record<string, string | number | boolean | {
2415
+ status: "Rejected" | "Requested" | "Accepted";
2416
+ transactionId: string;
2417
+ createdAt: string;
2418
+ createdBy: string;
2419
+ createdByRole: string;
2420
+ declaration: Record<string, string | number | boolean | {
2323
2421
  type: string;
2324
2422
  filename: string;
2325
2423
  originalFilename: string;
@@ -2357,10 +2455,7 @@ export declare const EventDocument: z.ZodObject<{
2357
2455
  filename: string;
2358
2456
  originalFilename: string;
2359
2457
  }[] | undefined>;
2360
- createdAt: string;
2361
- createdBy: string;
2362
- createdAtLocation: string;
2363
- metadata?: Record<string, string | number | boolean | {
2458
+ annotation?: Record<string, string | number | boolean | {
2364
2459
  type: string;
2365
2460
  filename: string;
2366
2461
  originalFilename: string;
@@ -2398,11 +2493,16 @@ export declare const EventDocument: z.ZodObject<{
2398
2493
  filename: string;
2399
2494
  originalFilename: string;
2400
2495
  }[] | undefined> | undefined;
2496
+ createdAtLocation?: string | undefined;
2497
+ updatedAtLocation?: string | undefined;
2498
+ originalActionId?: string | undefined;
2401
2499
  }>, z.ZodObject<z.objectUtil.extendShape<{
2402
2500
  id: z.ZodString;
2501
+ transactionId: z.ZodString;
2403
2502
  createdAt: z.ZodString;
2404
2503
  createdBy: z.ZodString;
2405
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2504
+ createdByRole: z.ZodString;
2505
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2406
2506
  filename: z.ZodString;
2407
2507
  originalFilename: z.ZodString;
2408
2508
  type: z.ZodString;
@@ -2516,7 +2616,7 @@ export declare const EventDocument: z.ZodObject<{
2516
2616
  addressLine3?: string | null | undefined;
2517
2617
  postcodeOrZip?: string | null | undefined;
2518
2618
  }>]>>;
2519
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2619
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2520
2620
  filename: z.ZodString;
2521
2621
  originalFilename: z.ZodString;
2522
2622
  type: z.ZodString;
@@ -2630,23 +2730,22 @@ export declare const EventDocument: z.ZodObject<{
2630
2730
  addressLine3?: string | null | undefined;
2631
2731
  postcodeOrZip?: string | null | undefined;
2632
2732
  }>]>>>;
2633
- createdAtLocation: z.ZodString;
2733
+ createdAtLocation: z.ZodOptional<z.ZodString>;
2734
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
2735
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2736
+ originalActionId: z.ZodOptional<z.ZodString>;
2634
2737
  }, {
2635
2738
  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
- }>;
2739
+ registrationNumber: z.ZodOptional<z.ZodString>;
2646
2740
  }>, "strip", z.ZodTypeAny, {
2647
2741
  type: "REGISTER";
2648
2742
  id: string;
2649
- data: Record<string, string | number | boolean | {
2743
+ status: "Rejected" | "Requested" | "Accepted";
2744
+ transactionId: string;
2745
+ createdAt: string;
2746
+ createdBy: string;
2747
+ createdByRole: string;
2748
+ declaration: Record<string, string | number | boolean | {
2650
2749
  type: string;
2651
2750
  filename: string;
2652
2751
  originalFilename: string;
@@ -2684,14 +2783,7 @@ export declare const EventDocument: z.ZodObject<{
2684
2783
  filename: string;
2685
2784
  originalFilename: string;
2686
2785
  }[] | undefined>;
2687
- createdAt: string;
2688
- createdBy: string;
2689
- createdAtLocation: string;
2690
- identifiers: {
2691
- trackingId: string;
2692
- registrationNumber: string;
2693
- };
2694
- metadata?: Record<string, string | number | boolean | {
2786
+ annotation?: Record<string, string | number | boolean | {
2695
2787
  type: string;
2696
2788
  filename: string;
2697
2789
  originalFilename: string;
@@ -2729,10 +2821,19 @@ export declare const EventDocument: z.ZodObject<{
2729
2821
  filename: string;
2730
2822
  originalFilename: string;
2731
2823
  }[] | undefined> | undefined;
2824
+ createdAtLocation?: string | undefined;
2825
+ updatedAtLocation?: string | undefined;
2826
+ originalActionId?: string | undefined;
2827
+ registrationNumber?: string | undefined;
2732
2828
  }, {
2733
2829
  type: "REGISTER";
2734
2830
  id: string;
2735
- data: Record<string, string | number | boolean | {
2831
+ status: "Rejected" | "Requested" | "Accepted";
2832
+ transactionId: string;
2833
+ createdAt: string;
2834
+ createdBy: string;
2835
+ createdByRole: string;
2836
+ declaration: Record<string, string | number | boolean | {
2736
2837
  type: string;
2737
2838
  filename: string;
2738
2839
  originalFilename: string;
@@ -2770,14 +2871,7 @@ export declare const EventDocument: z.ZodObject<{
2770
2871
  filename: string;
2771
2872
  originalFilename: string;
2772
2873
  }[] | undefined>;
2773
- createdAt: string;
2774
- createdBy: string;
2775
- createdAtLocation: string;
2776
- identifiers: {
2777
- trackingId: string;
2778
- registrationNumber: string;
2779
- };
2780
- metadata?: Record<string, string | number | boolean | {
2874
+ annotation?: Record<string, string | number | boolean | {
2781
2875
  type: string;
2782
2876
  filename: string;
2783
2877
  originalFilename: string;
@@ -2815,11 +2909,17 @@ export declare const EventDocument: z.ZodObject<{
2815
2909
  filename: string;
2816
2910
  originalFilename: string;
2817
2911
  }[] | undefined> | undefined;
2912
+ createdAtLocation?: string | undefined;
2913
+ updatedAtLocation?: string | undefined;
2914
+ originalActionId?: string | undefined;
2915
+ registrationNumber?: string | undefined;
2818
2916
  }>, z.ZodObject<z.objectUtil.extendShape<{
2819
2917
  id: z.ZodString;
2918
+ transactionId: z.ZodString;
2820
2919
  createdAt: z.ZodString;
2821
2920
  createdBy: z.ZodString;
2822
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2921
+ createdByRole: z.ZodString;
2922
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2823
2923
  filename: z.ZodString;
2824
2924
  originalFilename: z.ZodString;
2825
2925
  type: z.ZodString;
@@ -2933,7 +3033,7 @@ export declare const EventDocument: z.ZodObject<{
2933
3033
  addressLine3?: string | null | undefined;
2934
3034
  postcodeOrZip?: string | null | undefined;
2935
3035
  }>]>>;
2936
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3036
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2937
3037
  filename: z.ZodString;
2938
3038
  originalFilename: z.ZodString;
2939
3039
  type: z.ZodString;
@@ -3047,13 +3147,21 @@ export declare const EventDocument: z.ZodObject<{
3047
3147
  addressLine3?: string | null | undefined;
3048
3148
  postcodeOrZip?: string | null | undefined;
3049
3149
  }>]>>>;
3050
- createdAtLocation: z.ZodString;
3150
+ createdAtLocation: z.ZodOptional<z.ZodString>;
3151
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
3152
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3153
+ originalActionId: z.ZodOptional<z.ZodString>;
3051
3154
  }, {
3052
3155
  type: z.ZodLiteral<"DECLARE">;
3053
3156
  }>, "strip", z.ZodTypeAny, {
3054
3157
  type: "DECLARE";
3055
3158
  id: string;
3056
- data: Record<string, string | number | boolean | {
3159
+ status: "Rejected" | "Requested" | "Accepted";
3160
+ transactionId: string;
3161
+ createdAt: string;
3162
+ createdBy: string;
3163
+ createdByRole: string;
3164
+ declaration: Record<string, string | number | boolean | {
3057
3165
  type: string;
3058
3166
  filename: string;
3059
3167
  originalFilename: string;
@@ -3091,10 +3199,7 @@ export declare const EventDocument: z.ZodObject<{
3091
3199
  filename: string;
3092
3200
  originalFilename: string;
3093
3201
  }[] | undefined>;
3094
- createdAt: string;
3095
- createdBy: string;
3096
- createdAtLocation: string;
3097
- metadata?: Record<string, string | number | boolean | {
3202
+ annotation?: Record<string, string | number | boolean | {
3098
3203
  type: string;
3099
3204
  filename: string;
3100
3205
  originalFilename: string;
@@ -3132,10 +3237,18 @@ export declare const EventDocument: z.ZodObject<{
3132
3237
  filename: string;
3133
3238
  originalFilename: string;
3134
3239
  }[] | undefined> | undefined;
3240
+ createdAtLocation?: string | undefined;
3241
+ updatedAtLocation?: string | undefined;
3242
+ originalActionId?: string | undefined;
3135
3243
  }, {
3136
3244
  type: "DECLARE";
3137
3245
  id: string;
3138
- data: Record<string, string | number | boolean | {
3246
+ status: "Rejected" | "Requested" | "Accepted";
3247
+ transactionId: string;
3248
+ createdAt: string;
3249
+ createdBy: string;
3250
+ createdByRole: string;
3251
+ declaration: Record<string, string | number | boolean | {
3139
3252
  type: string;
3140
3253
  filename: string;
3141
3254
  originalFilename: string;
@@ -3173,10 +3286,7 @@ export declare const EventDocument: z.ZodObject<{
3173
3286
  filename: string;
3174
3287
  originalFilename: string;
3175
3288
  }[] | undefined>;
3176
- createdAt: string;
3177
- createdBy: string;
3178
- createdAtLocation: string;
3179
- metadata?: Record<string, string | number | boolean | {
3289
+ annotation?: Record<string, string | number | boolean | {
3180
3290
  type: string;
3181
3291
  filename: string;
3182
3292
  originalFilename: string;
@@ -3214,11 +3324,16 @@ export declare const EventDocument: z.ZodObject<{
3214
3324
  filename: string;
3215
3325
  originalFilename: string;
3216
3326
  }[] | undefined> | undefined;
3327
+ createdAtLocation?: string | undefined;
3328
+ updatedAtLocation?: string | undefined;
3329
+ originalActionId?: string | undefined;
3217
3330
  }>, z.ZodObject<z.objectUtil.extendShape<{
3218
3331
  id: z.ZodString;
3332
+ transactionId: z.ZodString;
3219
3333
  createdAt: z.ZodString;
3220
3334
  createdBy: z.ZodString;
3221
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3335
+ createdByRole: z.ZodString;
3336
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3222
3337
  filename: z.ZodString;
3223
3338
  originalFilename: z.ZodString;
3224
3339
  type: z.ZodString;
@@ -3332,7 +3447,7 @@ export declare const EventDocument: z.ZodObject<{
3332
3447
  addressLine3?: string | null | undefined;
3333
3448
  postcodeOrZip?: string | null | undefined;
3334
3449
  }>]>>;
3335
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3450
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3336
3451
  filename: z.ZodString;
3337
3452
  originalFilename: z.ZodString;
3338
3453
  type: z.ZodString;
@@ -3446,14 +3561,22 @@ export declare const EventDocument: z.ZodObject<{
3446
3561
  addressLine3?: string | null | undefined;
3447
3562
  postcodeOrZip?: string | null | undefined;
3448
3563
  }>]>>>;
3449
- createdAtLocation: z.ZodString;
3564
+ createdAtLocation: z.ZodOptional<z.ZodString>;
3565
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
3566
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3567
+ originalActionId: z.ZodOptional<z.ZodString>;
3450
3568
  }, {
3451
3569
  type: z.ZodLiteral<"ASSIGN">;
3452
3570
  assignedTo: z.ZodString;
3453
3571
  }>, "strip", z.ZodTypeAny, {
3454
3572
  type: "ASSIGN";
3455
3573
  id: string;
3456
- data: Record<string, string | number | boolean | {
3574
+ status: "Rejected" | "Requested" | "Accepted";
3575
+ transactionId: string;
3576
+ createdAt: string;
3577
+ createdBy: string;
3578
+ createdByRole: string;
3579
+ declaration: Record<string, string | number | boolean | {
3457
3580
  type: string;
3458
3581
  filename: string;
3459
3582
  originalFilename: string;
@@ -3491,11 +3614,8 @@ export declare const EventDocument: z.ZodObject<{
3491
3614
  filename: string;
3492
3615
  originalFilename: string;
3493
3616
  }[] | undefined>;
3494
- createdAt: string;
3495
- createdBy: string;
3496
- createdAtLocation: string;
3497
3617
  assignedTo: string;
3498
- metadata?: Record<string, string | number | boolean | {
3618
+ annotation?: Record<string, string | number | boolean | {
3499
3619
  type: string;
3500
3620
  filename: string;
3501
3621
  originalFilename: string;
@@ -3533,10 +3653,18 @@ export declare const EventDocument: z.ZodObject<{
3533
3653
  filename: string;
3534
3654
  originalFilename: string;
3535
3655
  }[] | undefined> | undefined;
3656
+ createdAtLocation?: string | undefined;
3657
+ updatedAtLocation?: string | undefined;
3658
+ originalActionId?: string | undefined;
3536
3659
  }, {
3537
3660
  type: "ASSIGN";
3538
3661
  id: string;
3539
- data: Record<string, string | number | boolean | {
3662
+ status: "Rejected" | "Requested" | "Accepted";
3663
+ transactionId: string;
3664
+ createdAt: string;
3665
+ createdBy: string;
3666
+ createdByRole: string;
3667
+ declaration: Record<string, string | number | boolean | {
3540
3668
  type: string;
3541
3669
  filename: string;
3542
3670
  originalFilename: string;
@@ -3574,11 +3702,8 @@ export declare const EventDocument: z.ZodObject<{
3574
3702
  filename: string;
3575
3703
  originalFilename: string;
3576
3704
  }[] | undefined>;
3577
- createdAt: string;
3578
- createdBy: string;
3579
- createdAtLocation: string;
3580
3705
  assignedTo: string;
3581
- metadata?: Record<string, string | number | boolean | {
3706
+ annotation?: Record<string, string | number | boolean | {
3582
3707
  type: string;
3583
3708
  filename: string;
3584
3709
  originalFilename: string;
@@ -3616,11 +3741,16 @@ export declare const EventDocument: z.ZodObject<{
3616
3741
  filename: string;
3617
3742
  originalFilename: string;
3618
3743
  }[] | undefined> | undefined;
3744
+ createdAtLocation?: string | undefined;
3745
+ updatedAtLocation?: string | undefined;
3746
+ originalActionId?: string | undefined;
3619
3747
  }>, z.ZodObject<z.objectUtil.extendShape<{
3620
3748
  id: z.ZodString;
3749
+ transactionId: z.ZodString;
3621
3750
  createdAt: z.ZodString;
3622
3751
  createdBy: z.ZodString;
3623
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3752
+ createdByRole: z.ZodString;
3753
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3624
3754
  filename: z.ZodString;
3625
3755
  originalFilename: z.ZodString;
3626
3756
  type: z.ZodString;
@@ -3734,7 +3864,7 @@ export declare const EventDocument: z.ZodObject<{
3734
3864
  addressLine3?: string | null | undefined;
3735
3865
  postcodeOrZip?: string | null | undefined;
3736
3866
  }>]>>;
3737
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3867
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3738
3868
  filename: z.ZodString;
3739
3869
  originalFilename: z.ZodString;
3740
3870
  type: z.ZodString;
@@ -3848,13 +3978,21 @@ export declare const EventDocument: z.ZodObject<{
3848
3978
  addressLine3?: string | null | undefined;
3849
3979
  postcodeOrZip?: string | null | undefined;
3850
3980
  }>]>>>;
3851
- createdAtLocation: z.ZodString;
3981
+ createdAtLocation: z.ZodOptional<z.ZodString>;
3982
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
3983
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3984
+ originalActionId: z.ZodOptional<z.ZodString>;
3852
3985
  }, {
3853
3986
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
3854
3987
  }>, "strip", z.ZodTypeAny, {
3855
3988
  type: "REQUEST_CORRECTION";
3856
3989
  id: string;
3857
- data: Record<string, string | number | boolean | {
3990
+ status: "Rejected" | "Requested" | "Accepted";
3991
+ transactionId: string;
3992
+ createdAt: string;
3993
+ createdBy: string;
3994
+ createdByRole: string;
3995
+ declaration: Record<string, string | number | boolean | {
3858
3996
  type: string;
3859
3997
  filename: string;
3860
3998
  originalFilename: string;
@@ -3892,10 +4030,7 @@ export declare const EventDocument: z.ZodObject<{
3892
4030
  filename: string;
3893
4031
  originalFilename: string;
3894
4032
  }[] | undefined>;
3895
- createdAt: string;
3896
- createdBy: string;
3897
- createdAtLocation: string;
3898
- metadata?: Record<string, string | number | boolean | {
4033
+ annotation?: Record<string, string | number | boolean | {
3899
4034
  type: string;
3900
4035
  filename: string;
3901
4036
  originalFilename: string;
@@ -3933,10 +4068,18 @@ export declare const EventDocument: z.ZodObject<{
3933
4068
  filename: string;
3934
4069
  originalFilename: string;
3935
4070
  }[] | undefined> | undefined;
4071
+ createdAtLocation?: string | undefined;
4072
+ updatedAtLocation?: string | undefined;
4073
+ originalActionId?: string | undefined;
3936
4074
  }, {
3937
4075
  type: "REQUEST_CORRECTION";
3938
4076
  id: string;
3939
- data: Record<string, string | number | boolean | {
4077
+ status: "Rejected" | "Requested" | "Accepted";
4078
+ transactionId: string;
4079
+ createdAt: string;
4080
+ createdBy: string;
4081
+ createdByRole: string;
4082
+ declaration: Record<string, string | number | boolean | {
3940
4083
  type: string;
3941
4084
  filename: string;
3942
4085
  originalFilename: string;
@@ -3974,10 +4117,7 @@ export declare const EventDocument: z.ZodObject<{
3974
4117
  filename: string;
3975
4118
  originalFilename: string;
3976
4119
  }[] | undefined>;
3977
- createdAt: string;
3978
- createdBy: string;
3979
- createdAtLocation: string;
3980
- metadata?: Record<string, string | number | boolean | {
4120
+ annotation?: Record<string, string | number | boolean | {
3981
4121
  type: string;
3982
4122
  filename: string;
3983
4123
  originalFilename: string;
@@ -4015,11 +4155,16 @@ export declare const EventDocument: z.ZodObject<{
4015
4155
  filename: string;
4016
4156
  originalFilename: string;
4017
4157
  }[] | undefined> | undefined;
4158
+ createdAtLocation?: string | undefined;
4159
+ updatedAtLocation?: string | undefined;
4160
+ originalActionId?: string | undefined;
4018
4161
  }>, z.ZodObject<z.objectUtil.extendShape<{
4019
4162
  id: z.ZodString;
4163
+ transactionId: z.ZodString;
4020
4164
  createdAt: z.ZodString;
4021
4165
  createdBy: z.ZodString;
4022
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4166
+ createdByRole: z.ZodString;
4167
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4023
4168
  filename: z.ZodString;
4024
4169
  originalFilename: z.ZodString;
4025
4170
  type: z.ZodString;
@@ -4133,7 +4278,7 @@ export declare const EventDocument: z.ZodObject<{
4133
4278
  addressLine3?: string | null | undefined;
4134
4279
  postcodeOrZip?: string | null | undefined;
4135
4280
  }>]>>;
4136
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4281
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4137
4282
  filename: z.ZodString;
4138
4283
  originalFilename: z.ZodString;
4139
4284
  type: z.ZodString;
@@ -4247,14 +4392,22 @@ export declare const EventDocument: z.ZodObject<{
4247
4392
  addressLine3?: string | null | undefined;
4248
4393
  postcodeOrZip?: string | null | undefined;
4249
4394
  }>]>>>;
4250
- createdAtLocation: z.ZodString;
4395
+ createdAtLocation: z.ZodOptional<z.ZodString>;
4396
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
4397
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4398
+ originalActionId: z.ZodOptional<z.ZodString>;
4251
4399
  }, {
4252
4400
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
4253
4401
  requestId: z.ZodString;
4254
4402
  }>, "strip", z.ZodTypeAny, {
4255
4403
  type: "APPROVE_CORRECTION";
4256
4404
  id: string;
4257
- data: Record<string, string | number | boolean | {
4405
+ status: "Rejected" | "Requested" | "Accepted";
4406
+ transactionId: string;
4407
+ createdAt: string;
4408
+ createdBy: string;
4409
+ createdByRole: string;
4410
+ declaration: Record<string, string | number | boolean | {
4258
4411
  type: string;
4259
4412
  filename: string;
4260
4413
  originalFilename: string;
@@ -4292,11 +4445,8 @@ export declare const EventDocument: z.ZodObject<{
4292
4445
  filename: string;
4293
4446
  originalFilename: string;
4294
4447
  }[] | undefined>;
4295
- createdAt: string;
4296
- createdBy: string;
4297
- createdAtLocation: string;
4298
4448
  requestId: string;
4299
- metadata?: Record<string, string | number | boolean | {
4449
+ annotation?: Record<string, string | number | boolean | {
4300
4450
  type: string;
4301
4451
  filename: string;
4302
4452
  originalFilename: string;
@@ -4334,10 +4484,18 @@ export declare const EventDocument: z.ZodObject<{
4334
4484
  filename: string;
4335
4485
  originalFilename: string;
4336
4486
  }[] | undefined> | undefined;
4487
+ createdAtLocation?: string | undefined;
4488
+ updatedAtLocation?: string | undefined;
4489
+ originalActionId?: string | undefined;
4337
4490
  }, {
4338
4491
  type: "APPROVE_CORRECTION";
4339
4492
  id: string;
4340
- data: Record<string, string | number | boolean | {
4493
+ status: "Rejected" | "Requested" | "Accepted";
4494
+ transactionId: string;
4495
+ createdAt: string;
4496
+ createdBy: string;
4497
+ createdByRole: string;
4498
+ declaration: Record<string, string | number | boolean | {
4341
4499
  type: string;
4342
4500
  filename: string;
4343
4501
  originalFilename: string;
@@ -4375,11 +4533,8 @@ export declare const EventDocument: z.ZodObject<{
4375
4533
  filename: string;
4376
4534
  originalFilename: string;
4377
4535
  }[] | undefined>;
4378
- createdAt: string;
4379
- createdBy: string;
4380
- createdAtLocation: string;
4381
4536
  requestId: string;
4382
- metadata?: Record<string, string | number | boolean | {
4537
+ annotation?: Record<string, string | number | boolean | {
4383
4538
  type: string;
4384
4539
  filename: string;
4385
4540
  originalFilename: string;
@@ -4417,11 +4572,16 @@ export declare const EventDocument: z.ZodObject<{
4417
4572
  filename: string;
4418
4573
  originalFilename: string;
4419
4574
  }[] | undefined> | undefined;
4575
+ createdAtLocation?: string | undefined;
4576
+ updatedAtLocation?: string | undefined;
4577
+ originalActionId?: string | undefined;
4420
4578
  }>, z.ZodObject<z.objectUtil.extendShape<{
4421
4579
  id: z.ZodString;
4580
+ transactionId: z.ZodString;
4422
4581
  createdAt: z.ZodString;
4423
4582
  createdBy: z.ZodString;
4424
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4583
+ createdByRole: z.ZodString;
4584
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4425
4585
  filename: z.ZodString;
4426
4586
  originalFilename: z.ZodString;
4427
4587
  type: z.ZodString;
@@ -4535,7 +4695,7 @@ export declare const EventDocument: z.ZodObject<{
4535
4695
  addressLine3?: string | null | undefined;
4536
4696
  postcodeOrZip?: string | null | undefined;
4537
4697
  }>]>>;
4538
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4698
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4539
4699
  filename: z.ZodString;
4540
4700
  originalFilename: z.ZodString;
4541
4701
  type: z.ZodString;
@@ -4649,14 +4809,22 @@ export declare const EventDocument: z.ZodObject<{
4649
4809
  addressLine3?: string | null | undefined;
4650
4810
  postcodeOrZip?: string | null | undefined;
4651
4811
  }>]>>>;
4652
- createdAtLocation: z.ZodString;
4812
+ createdAtLocation: z.ZodOptional<z.ZodString>;
4813
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
4814
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4815
+ originalActionId: z.ZodOptional<z.ZodString>;
4653
4816
  }, {
4654
4817
  type: z.ZodLiteral<"REJECT_CORRECTION">;
4655
4818
  requestId: z.ZodString;
4656
4819
  }>, "strip", z.ZodTypeAny, {
4657
4820
  type: "REJECT_CORRECTION";
4658
4821
  id: string;
4659
- data: Record<string, string | number | boolean | {
4822
+ status: "Rejected" | "Requested" | "Accepted";
4823
+ transactionId: string;
4824
+ createdAt: string;
4825
+ createdBy: string;
4826
+ createdByRole: string;
4827
+ declaration: Record<string, string | number | boolean | {
4660
4828
  type: string;
4661
4829
  filename: string;
4662
4830
  originalFilename: string;
@@ -4694,11 +4862,8 @@ export declare const EventDocument: z.ZodObject<{
4694
4862
  filename: string;
4695
4863
  originalFilename: string;
4696
4864
  }[] | undefined>;
4697
- createdAt: string;
4698
- createdBy: string;
4699
- createdAtLocation: string;
4700
4865
  requestId: string;
4701
- metadata?: Record<string, string | number | boolean | {
4866
+ annotation?: Record<string, string | number | boolean | {
4702
4867
  type: string;
4703
4868
  filename: string;
4704
4869
  originalFilename: string;
@@ -4736,10 +4901,18 @@ export declare const EventDocument: z.ZodObject<{
4736
4901
  filename: string;
4737
4902
  originalFilename: string;
4738
4903
  }[] | undefined> | undefined;
4904
+ createdAtLocation?: string | undefined;
4905
+ updatedAtLocation?: string | undefined;
4906
+ originalActionId?: string | undefined;
4739
4907
  }, {
4740
4908
  type: "REJECT_CORRECTION";
4741
4909
  id: string;
4742
- data: Record<string, string | number | boolean | {
4910
+ status: "Rejected" | "Requested" | "Accepted";
4911
+ transactionId: string;
4912
+ createdAt: string;
4913
+ createdBy: string;
4914
+ createdByRole: string;
4915
+ declaration: Record<string, string | number | boolean | {
4743
4916
  type: string;
4744
4917
  filename: string;
4745
4918
  originalFilename: string;
@@ -4777,11 +4950,8 @@ export declare const EventDocument: z.ZodObject<{
4777
4950
  filename: string;
4778
4951
  originalFilename: string;
4779
4952
  }[] | undefined>;
4780
- createdAt: string;
4781
- createdBy: string;
4782
- createdAtLocation: string;
4783
4953
  requestId: string;
4784
- metadata?: Record<string, string | number | boolean | {
4954
+ annotation?: Record<string, string | number | boolean | {
4785
4955
  type: string;
4786
4956
  filename: string;
4787
4957
  originalFilename: string;
@@ -4819,11 +4989,16 @@ export declare const EventDocument: z.ZodObject<{
4819
4989
  filename: string;
4820
4990
  originalFilename: string;
4821
4991
  }[] | undefined> | undefined;
4992
+ createdAtLocation?: string | undefined;
4993
+ updatedAtLocation?: string | undefined;
4994
+ originalActionId?: string | undefined;
4822
4995
  }>, z.ZodObject<z.objectUtil.extendShape<{
4823
4996
  id: z.ZodString;
4997
+ transactionId: z.ZodString;
4824
4998
  createdAt: z.ZodString;
4825
4999
  createdBy: z.ZodString;
4826
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5000
+ createdByRole: z.ZodString;
5001
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4827
5002
  filename: z.ZodString;
4828
5003
  originalFilename: z.ZodString;
4829
5004
  type: z.ZodString;
@@ -4937,7 +5112,7 @@ export declare const EventDocument: z.ZodObject<{
4937
5112
  addressLine3?: string | null | undefined;
4938
5113
  postcodeOrZip?: string | null | undefined;
4939
5114
  }>]>>;
4940
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5115
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4941
5116
  filename: z.ZodString;
4942
5117
  originalFilename: z.ZodString;
4943
5118
  type: z.ZodString;
@@ -5051,13 +5226,22 @@ export declare const EventDocument: z.ZodObject<{
5051
5226
  addressLine3?: string | null | undefined;
5052
5227
  postcodeOrZip?: string | null | undefined;
5053
5228
  }>]>>>;
5054
- createdAtLocation: z.ZodString;
5229
+ createdAtLocation: z.ZodOptional<z.ZodString>;
5230
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
5231
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5232
+ originalActionId: z.ZodOptional<z.ZodString>;
5055
5233
  }, {
5056
5234
  type: z.ZodLiteral<"UNASSIGN">;
5235
+ assignedTo: z.ZodLiteral<null>;
5057
5236
  }>, "strip", z.ZodTypeAny, {
5058
5237
  type: "UNASSIGN";
5059
5238
  id: string;
5060
- data: Record<string, string | number | boolean | {
5239
+ status: "Rejected" | "Requested" | "Accepted";
5240
+ transactionId: string;
5241
+ createdAt: string;
5242
+ createdBy: string;
5243
+ createdByRole: string;
5244
+ declaration: Record<string, string | number | boolean | {
5061
5245
  type: string;
5062
5246
  filename: string;
5063
5247
  originalFilename: string;
@@ -5095,10 +5279,8 @@ export declare const EventDocument: z.ZodObject<{
5095
5279
  filename: string;
5096
5280
  originalFilename: string;
5097
5281
  }[] | undefined>;
5098
- createdAt: string;
5099
- createdBy: string;
5100
- createdAtLocation: string;
5101
- metadata?: Record<string, string | number | boolean | {
5282
+ assignedTo: null;
5283
+ annotation?: Record<string, string | number | boolean | {
5102
5284
  type: string;
5103
5285
  filename: string;
5104
5286
  originalFilename: string;
@@ -5136,10 +5318,18 @@ export declare const EventDocument: z.ZodObject<{
5136
5318
  filename: string;
5137
5319
  originalFilename: string;
5138
5320
  }[] | undefined> | undefined;
5321
+ createdAtLocation?: string | undefined;
5322
+ updatedAtLocation?: string | undefined;
5323
+ originalActionId?: string | undefined;
5139
5324
  }, {
5140
5325
  type: "UNASSIGN";
5141
5326
  id: string;
5142
- data: Record<string, string | number | boolean | {
5327
+ status: "Rejected" | "Requested" | "Accepted";
5328
+ transactionId: string;
5329
+ createdAt: string;
5330
+ createdBy: string;
5331
+ createdByRole: string;
5332
+ declaration: Record<string, string | number | boolean | {
5143
5333
  type: string;
5144
5334
  filename: string;
5145
5335
  originalFilename: string;
@@ -5177,10 +5367,8 @@ export declare const EventDocument: z.ZodObject<{
5177
5367
  filename: string;
5178
5368
  originalFilename: string;
5179
5369
  }[] | undefined>;
5180
- createdAt: string;
5181
- createdBy: string;
5182
- createdAtLocation: string;
5183
- metadata?: Record<string, string | number | boolean | {
5370
+ assignedTo: null;
5371
+ annotation?: Record<string, string | number | boolean | {
5184
5372
  type: string;
5185
5373
  filename: string;
5186
5374
  originalFilename: string;
@@ -5218,11 +5406,16 @@ export declare const EventDocument: z.ZodObject<{
5218
5406
  filename: string;
5219
5407
  originalFilename: string;
5220
5408
  }[] | undefined> | undefined;
5409
+ createdAtLocation?: string | undefined;
5410
+ updatedAtLocation?: string | undefined;
5411
+ originalActionId?: string | undefined;
5221
5412
  }>, z.ZodObject<z.objectUtil.extendShape<{
5222
5413
  id: z.ZodString;
5414
+ transactionId: z.ZodString;
5223
5415
  createdAt: z.ZodString;
5224
5416
  createdBy: z.ZodString;
5225
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5417
+ createdByRole: z.ZodString;
5418
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5226
5419
  filename: z.ZodString;
5227
5420
  originalFilename: z.ZodString;
5228
5421
  type: z.ZodString;
@@ -5336,7 +5529,7 @@ export declare const EventDocument: z.ZodObject<{
5336
5529
  addressLine3?: string | null | undefined;
5337
5530
  postcodeOrZip?: string | null | undefined;
5338
5531
  }>]>>;
5339
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5532
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5340
5533
  filename: z.ZodString;
5341
5534
  originalFilename: z.ZodString;
5342
5535
  type: z.ZodString;
@@ -5450,13 +5643,21 @@ export declare const EventDocument: z.ZodObject<{
5450
5643
  addressLine3?: string | null | undefined;
5451
5644
  postcodeOrZip?: string | null | undefined;
5452
5645
  }>]>>>;
5453
- createdAtLocation: z.ZodString;
5646
+ createdAtLocation: z.ZodOptional<z.ZodString>;
5647
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
5648
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5649
+ originalActionId: z.ZodOptional<z.ZodString>;
5454
5650
  }, {
5455
5651
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
5456
5652
  }>, "strip", z.ZodTypeAny, {
5457
5653
  type: "PRINT_CERTIFICATE";
5458
5654
  id: string;
5459
- data: Record<string, string | number | boolean | {
5655
+ status: "Rejected" | "Requested" | "Accepted";
5656
+ transactionId: string;
5657
+ createdAt: string;
5658
+ createdBy: string;
5659
+ createdByRole: string;
5660
+ declaration: Record<string, string | number | boolean | {
5460
5661
  type: string;
5461
5662
  filename: string;
5462
5663
  originalFilename: string;
@@ -5494,10 +5695,7 @@ export declare const EventDocument: z.ZodObject<{
5494
5695
  filename: string;
5495
5696
  originalFilename: string;
5496
5697
  }[] | undefined>;
5497
- createdAt: string;
5498
- createdBy: string;
5499
- createdAtLocation: string;
5500
- metadata?: Record<string, string | number | boolean | {
5698
+ annotation?: Record<string, string | number | boolean | {
5501
5699
  type: string;
5502
5700
  filename: string;
5503
5701
  originalFilename: string;
@@ -5535,10 +5733,18 @@ export declare const EventDocument: z.ZodObject<{
5535
5733
  filename: string;
5536
5734
  originalFilename: string;
5537
5735
  }[] | undefined> | undefined;
5736
+ createdAtLocation?: string | undefined;
5737
+ updatedAtLocation?: string | undefined;
5738
+ originalActionId?: string | undefined;
5538
5739
  }, {
5539
5740
  type: "PRINT_CERTIFICATE";
5540
5741
  id: string;
5541
- data: Record<string, string | number | boolean | {
5742
+ status: "Rejected" | "Requested" | "Accepted";
5743
+ transactionId: string;
5744
+ createdAt: string;
5745
+ createdBy: string;
5746
+ createdByRole: string;
5747
+ declaration: Record<string, string | number | boolean | {
5542
5748
  type: string;
5543
5749
  filename: string;
5544
5750
  originalFilename: string;
@@ -5576,10 +5782,7 @@ export declare const EventDocument: z.ZodObject<{
5576
5782
  filename: string;
5577
5783
  originalFilename: string;
5578
5784
  }[] | undefined>;
5579
- createdAt: string;
5580
- createdBy: string;
5581
- createdAtLocation: string;
5582
- metadata?: Record<string, string | number | boolean | {
5785
+ annotation?: Record<string, string | number | boolean | {
5583
5786
  type: string;
5584
5787
  filename: string;
5585
5788
  originalFilename: string;
@@ -5617,11 +5820,16 @@ export declare const EventDocument: z.ZodObject<{
5617
5820
  filename: string;
5618
5821
  originalFilename: string;
5619
5822
  }[] | undefined> | undefined;
5823
+ createdAtLocation?: string | undefined;
5824
+ updatedAtLocation?: string | undefined;
5825
+ originalActionId?: string | undefined;
5620
5826
  }>, z.ZodObject<z.objectUtil.extendShape<{
5621
5827
  id: z.ZodString;
5828
+ transactionId: z.ZodString;
5622
5829
  createdAt: z.ZodString;
5623
5830
  createdBy: z.ZodString;
5624
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5831
+ createdByRole: z.ZodString;
5832
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5625
5833
  filename: z.ZodString;
5626
5834
  originalFilename: z.ZodString;
5627
5835
  type: z.ZodString;
@@ -5735,7 +5943,7 @@ export declare const EventDocument: z.ZodObject<{
5735
5943
  addressLine3?: string | null | undefined;
5736
5944
  postcodeOrZip?: string | null | undefined;
5737
5945
  }>]>>;
5738
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5946
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5739
5947
  filename: z.ZodString;
5740
5948
  originalFilename: z.ZodString;
5741
5949
  type: z.ZodString;
@@ -5849,13 +6057,21 @@ export declare const EventDocument: z.ZodObject<{
5849
6057
  addressLine3?: string | null | undefined;
5850
6058
  postcodeOrZip?: string | null | undefined;
5851
6059
  }>]>>>;
5852
- createdAtLocation: z.ZodString;
6060
+ createdAtLocation: z.ZodOptional<z.ZodString>;
6061
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
6062
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6063
+ originalActionId: z.ZodOptional<z.ZodString>;
5853
6064
  }, {
5854
- type: z.ZodLiteral<"CUSTOM">;
6065
+ type: z.ZodLiteral<"READ">;
5855
6066
  }>, "strip", z.ZodTypeAny, {
5856
- type: "CUSTOM";
6067
+ type: "READ";
5857
6068
  id: string;
5858
- data: Record<string, string | number | boolean | {
6069
+ status: "Rejected" | "Requested" | "Accepted";
6070
+ transactionId: string;
6071
+ createdAt: string;
6072
+ createdBy: string;
6073
+ createdByRole: string;
6074
+ declaration: Record<string, string | number | boolean | {
5859
6075
  type: string;
5860
6076
  filename: string;
5861
6077
  originalFilename: string;
@@ -5893,10 +6109,7 @@ export declare const EventDocument: z.ZodObject<{
5893
6109
  filename: string;
5894
6110
  originalFilename: string;
5895
6111
  }[] | undefined>;
5896
- createdAt: string;
5897
- createdBy: string;
5898
- createdAtLocation: string;
5899
- metadata?: Record<string, string | number | boolean | {
6112
+ annotation?: Record<string, string | number | boolean | {
5900
6113
  type: string;
5901
6114
  filename: string;
5902
6115
  originalFilename: string;
@@ -5934,10 +6147,18 @@ export declare const EventDocument: z.ZodObject<{
5934
6147
  filename: string;
5935
6148
  originalFilename: string;
5936
6149
  }[] | undefined> | undefined;
6150
+ createdAtLocation?: string | undefined;
6151
+ updatedAtLocation?: string | undefined;
6152
+ originalActionId?: string | undefined;
5937
6153
  }, {
5938
- type: "CUSTOM";
6154
+ type: "READ";
5939
6155
  id: string;
5940
- data: Record<string, string | number | boolean | {
6156
+ status: "Rejected" | "Requested" | "Accepted";
6157
+ transactionId: string;
6158
+ createdAt: string;
6159
+ createdBy: string;
6160
+ createdByRole: string;
6161
+ declaration: Record<string, string | number | boolean | {
5941
6162
  type: string;
5942
6163
  filename: string;
5943
6164
  originalFilename: string;
@@ -5975,10 +6196,7 @@ export declare const EventDocument: z.ZodObject<{
5975
6196
  filename: string;
5976
6197
  originalFilename: string;
5977
6198
  }[] | undefined>;
5978
- createdAt: string;
5979
- createdBy: string;
5980
- createdAtLocation: string;
5981
- metadata?: Record<string, string | number | boolean | {
6199
+ annotation?: Record<string, string | number | boolean | {
5982
6200
  type: string;
5983
6201
  filename: string;
5984
6202
  originalFilename: string;
@@ -6016,18 +6234,283 @@ export declare const EventDocument: z.ZodObject<{
6016
6234
  filename: string;
6017
6235
  originalFilename: string;
6018
6236
  }[] | undefined> | undefined;
6237
+ createdAtLocation?: string | undefined;
6238
+ updatedAtLocation?: string | undefined;
6239
+ originalActionId?: string | undefined;
6240
+ }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6241
+ id: z.ZodString;
6242
+ transactionId: z.ZodString;
6243
+ createdAt: z.ZodString;
6244
+ createdBy: z.ZodString;
6245
+ createdByRole: z.ZodString;
6246
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6247
+ filename: z.ZodString;
6248
+ originalFilename: z.ZodString;
6249
+ type: z.ZodString;
6250
+ }, "strip", z.ZodTypeAny, {
6251
+ type: string;
6252
+ filename: string;
6253
+ originalFilename: string;
6254
+ }, {
6255
+ type: string;
6256
+ filename: string;
6257
+ originalFilename: string;
6258
+ }>, z.ZodArray<z.ZodObject<{
6259
+ filename: z.ZodString;
6260
+ originalFilename: z.ZodString;
6261
+ type: z.ZodString;
6262
+ option: z.ZodString;
6263
+ }, "strip", z.ZodTypeAny, {
6264
+ type: string;
6265
+ option: string;
6266
+ filename: string;
6267
+ originalFilename: string;
6268
+ }, {
6269
+ type: string;
6270
+ option: string;
6271
+ filename: string;
6272
+ originalFilename: string;
6273
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6274
+ country: z.ZodString;
6275
+ addressType: z.ZodLiteral<"DOMESTIC">;
6276
+ province: z.ZodString;
6277
+ district: z.ZodString;
6278
+ }, {
6279
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6280
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6281
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6282
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6283
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6284
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6285
+ }>, "strip", z.ZodTypeAny, {
6286
+ country: string;
6287
+ district: string;
6288
+ addressType: "DOMESTIC";
6289
+ province: string;
6290
+ urbanOrRural: "URBAN";
6291
+ number?: string | null | undefined;
6292
+ town?: string | null | undefined;
6293
+ residentialArea?: string | null | undefined;
6294
+ street?: string | null | undefined;
6295
+ zipCode?: string | null | undefined;
6296
+ }, {
6297
+ country: string;
6298
+ district: string;
6299
+ addressType: "DOMESTIC";
6300
+ province: string;
6301
+ urbanOrRural: "URBAN";
6302
+ number?: string | null | undefined;
6303
+ town?: string | null | undefined;
6304
+ residentialArea?: string | null | undefined;
6305
+ street?: string | null | undefined;
6306
+ zipCode?: string | null | undefined;
6307
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6308
+ country: z.ZodString;
6309
+ addressType: z.ZodLiteral<"DOMESTIC">;
6310
+ province: z.ZodString;
6311
+ district: z.ZodString;
6312
+ }, {
6313
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6314
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6315
+ }>, "strip", z.ZodTypeAny, {
6316
+ country: string;
6317
+ district: string;
6318
+ addressType: "DOMESTIC";
6319
+ province: string;
6320
+ urbanOrRural: "RURAL";
6321
+ village?: string | null | undefined;
6322
+ }, {
6323
+ country: string;
6324
+ district: string;
6325
+ addressType: "DOMESTIC";
6326
+ province: string;
6327
+ urbanOrRural: "RURAL";
6328
+ village?: string | null | undefined;
6329
+ }>, z.ZodUndefined, z.ZodObject<{
6330
+ country: z.ZodString;
6331
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6332
+ state: z.ZodString;
6333
+ district2: z.ZodString;
6334
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6335
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6336
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6337
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6338
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6339
+ }, "strip", z.ZodTypeAny, {
6340
+ country: string;
6341
+ state: string;
6342
+ addressType: "INTERNATIONAL";
6343
+ district2: string;
6344
+ cityOrTown?: string | null | undefined;
6345
+ addressLine1?: string | null | undefined;
6346
+ addressLine2?: string | null | undefined;
6347
+ addressLine3?: string | null | undefined;
6348
+ postcodeOrZip?: string | null | undefined;
6349
+ }, {
6350
+ country: string;
6351
+ state: string;
6352
+ addressType: "INTERNATIONAL";
6353
+ district2: string;
6354
+ cityOrTown?: string | null | undefined;
6355
+ addressLine1?: string | null | undefined;
6356
+ addressLine2?: string | null | undefined;
6357
+ addressLine3?: string | null | undefined;
6358
+ postcodeOrZip?: string | null | undefined;
6359
+ }>]>>;
6360
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6361
+ filename: z.ZodString;
6362
+ originalFilename: z.ZodString;
6363
+ type: z.ZodString;
6364
+ }, "strip", z.ZodTypeAny, {
6365
+ type: string;
6366
+ filename: string;
6367
+ originalFilename: string;
6368
+ }, {
6369
+ type: string;
6370
+ filename: string;
6371
+ originalFilename: string;
6372
+ }>, z.ZodArray<z.ZodObject<{
6373
+ filename: z.ZodString;
6374
+ originalFilename: z.ZodString;
6375
+ type: z.ZodString;
6376
+ option: z.ZodString;
6377
+ }, "strip", z.ZodTypeAny, {
6378
+ type: string;
6379
+ option: string;
6380
+ filename: string;
6381
+ originalFilename: string;
6382
+ }, {
6383
+ type: string;
6384
+ option: string;
6385
+ filename: string;
6386
+ originalFilename: string;
6387
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6388
+ country: z.ZodString;
6389
+ addressType: z.ZodLiteral<"DOMESTIC">;
6390
+ province: z.ZodString;
6391
+ district: z.ZodString;
6392
+ }, {
6393
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6394
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6395
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6396
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6397
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6398
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6399
+ }>, "strip", z.ZodTypeAny, {
6400
+ country: string;
6401
+ district: string;
6402
+ addressType: "DOMESTIC";
6403
+ province: string;
6404
+ urbanOrRural: "URBAN";
6405
+ number?: string | null | undefined;
6406
+ town?: string | null | undefined;
6407
+ residentialArea?: string | null | undefined;
6408
+ street?: string | null | undefined;
6409
+ zipCode?: string | null | undefined;
6410
+ }, {
6411
+ country: string;
6412
+ district: string;
6413
+ addressType: "DOMESTIC";
6414
+ province: string;
6415
+ urbanOrRural: "URBAN";
6416
+ number?: string | null | undefined;
6417
+ town?: string | null | undefined;
6418
+ residentialArea?: string | null | undefined;
6419
+ street?: string | null | undefined;
6420
+ zipCode?: string | null | undefined;
6421
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6422
+ country: z.ZodString;
6423
+ addressType: z.ZodLiteral<"DOMESTIC">;
6424
+ province: z.ZodString;
6425
+ district: z.ZodString;
6426
+ }, {
6427
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6428
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6429
+ }>, "strip", z.ZodTypeAny, {
6430
+ country: string;
6431
+ district: string;
6432
+ addressType: "DOMESTIC";
6433
+ province: string;
6434
+ urbanOrRural: "RURAL";
6435
+ village?: string | null | undefined;
6436
+ }, {
6437
+ country: string;
6438
+ district: string;
6439
+ addressType: "DOMESTIC";
6440
+ province: string;
6441
+ urbanOrRural: "RURAL";
6442
+ village?: string | null | undefined;
6443
+ }>, z.ZodUndefined, z.ZodObject<{
6444
+ country: z.ZodString;
6445
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6446
+ state: z.ZodString;
6447
+ district2: z.ZodString;
6448
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6449
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6450
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6451
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6452
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6453
+ }, "strip", z.ZodTypeAny, {
6454
+ country: string;
6455
+ state: string;
6456
+ addressType: "INTERNATIONAL";
6457
+ district2: string;
6458
+ cityOrTown?: string | null | undefined;
6459
+ addressLine1?: string | null | undefined;
6460
+ addressLine2?: string | null | undefined;
6461
+ addressLine3?: string | null | undefined;
6462
+ postcodeOrZip?: string | null | undefined;
6463
+ }, {
6464
+ country: string;
6465
+ state: string;
6466
+ addressType: "INTERNATIONAL";
6467
+ district2: string;
6468
+ cityOrTown?: string | null | undefined;
6469
+ addressLine1?: string | null | undefined;
6470
+ addressLine2?: string | null | undefined;
6471
+ addressLine3?: string | null | undefined;
6472
+ postcodeOrZip?: string | null | undefined;
6473
+ }>]>>>;
6474
+ createdAtLocation: z.ZodOptional<z.ZodString>;
6475
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
6476
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6477
+ originalActionId: z.ZodOptional<z.ZodString>;
6478
+ }, "createdBy" | "createdByRole" | "declaration" | "annotation" | "createdAtLocation">, {
6479
+ type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
6480
+ status: z.ZodLiteral<"Rejected">;
6481
+ }>, "strip", z.ZodTypeAny, {
6482
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6483
+ id: string;
6484
+ status: "Rejected";
6485
+ transactionId: string;
6486
+ createdAt: string;
6487
+ updatedAtLocation?: string | undefined;
6488
+ originalActionId?: string | undefined;
6489
+ }, {
6490
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6491
+ id: string;
6492
+ status: "Rejected";
6493
+ transactionId: string;
6494
+ createdAt: string;
6495
+ updatedAtLocation?: string | undefined;
6496
+ originalActionId?: string | undefined;
6019
6497
  }>]>, "many">;
6020
6498
  trackingId: z.ZodString;
6021
6499
  }, "strip", z.ZodTypeAny, {
6022
6500
  type: string;
6023
6501
  id: string;
6024
6502
  createdAt: string;
6025
- trackingId: string;
6503
+ updatedAtLocation: string;
6026
6504
  updatedAt: string;
6027
6505
  actions: ({
6028
6506
  type: "ASSIGN";
6029
6507
  id: string;
6030
- data: Record<string, string | number | boolean | {
6508
+ status: "Rejected" | "Requested" | "Accepted";
6509
+ transactionId: string;
6510
+ createdAt: string;
6511
+ createdBy: string;
6512
+ createdByRole: string;
6513
+ declaration: Record<string, string | number | boolean | {
6031
6514
  type: string;
6032
6515
  filename: string;
6033
6516
  originalFilename: string;
@@ -6065,11 +6548,8 @@ export declare const EventDocument: z.ZodObject<{
6065
6548
  filename: string;
6066
6549
  originalFilename: string;
6067
6550
  }[] | undefined>;
6068
- createdAt: string;
6069
- createdBy: string;
6070
- createdAtLocation: string;
6071
6551
  assignedTo: string;
6072
- metadata?: Record<string, string | number | boolean | {
6552
+ annotation?: Record<string, string | number | boolean | {
6073
6553
  type: string;
6074
6554
  filename: string;
6075
6555
  originalFilename: string;
@@ -6107,10 +6587,18 @@ export declare const EventDocument: z.ZodObject<{
6107
6587
  filename: string;
6108
6588
  originalFilename: string;
6109
6589
  }[] | undefined> | undefined;
6590
+ createdAtLocation?: string | undefined;
6591
+ updatedAtLocation?: string | undefined;
6592
+ originalActionId?: string | undefined;
6110
6593
  } | {
6111
6594
  type: "UNASSIGN";
6112
6595
  id: string;
6113
- data: Record<string, string | number | boolean | {
6596
+ status: "Rejected" | "Requested" | "Accepted";
6597
+ transactionId: string;
6598
+ createdAt: string;
6599
+ createdBy: string;
6600
+ createdByRole: string;
6601
+ declaration: Record<string, string | number | boolean | {
6114
6602
  type: string;
6115
6603
  filename: string;
6116
6604
  originalFilename: string;
@@ -6148,10 +6636,8 @@ export declare const EventDocument: z.ZodObject<{
6148
6636
  filename: string;
6149
6637
  originalFilename: string;
6150
6638
  }[] | undefined>;
6151
- createdAt: string;
6152
- createdBy: string;
6153
- createdAtLocation: string;
6154
- metadata?: Record<string, string | number | boolean | {
6639
+ assignedTo: null;
6640
+ annotation?: Record<string, string | number | boolean | {
6155
6641
  type: string;
6156
6642
  filename: string;
6157
6643
  originalFilename: string;
@@ -6189,10 +6675,18 @@ export declare const EventDocument: z.ZodObject<{
6189
6675
  filename: string;
6190
6676
  originalFilename: string;
6191
6677
  }[] | undefined> | undefined;
6678
+ createdAtLocation?: string | undefined;
6679
+ updatedAtLocation?: string | undefined;
6680
+ originalActionId?: string | undefined;
6192
6681
  } | {
6193
6682
  type: "REGISTER";
6194
6683
  id: string;
6195
- data: Record<string, string | number | boolean | {
6684
+ status: "Rejected" | "Requested" | "Accepted";
6685
+ transactionId: string;
6686
+ createdAt: string;
6687
+ createdBy: string;
6688
+ createdByRole: string;
6689
+ declaration: Record<string, string | number | boolean | {
6196
6690
  type: string;
6197
6691
  filename: string;
6198
6692
  originalFilename: string;
@@ -6230,14 +6724,7 @@ export declare const EventDocument: z.ZodObject<{
6230
6724
  filename: string;
6231
6725
  originalFilename: string;
6232
6726
  }[] | undefined>;
6233
- createdAt: string;
6234
- createdBy: string;
6235
- createdAtLocation: string;
6236
- identifiers: {
6237
- trackingId: string;
6238
- registrationNumber: string;
6239
- };
6240
- metadata?: Record<string, string | number | boolean | {
6727
+ annotation?: Record<string, string | number | boolean | {
6241
6728
  type: string;
6242
6729
  filename: string;
6243
6730
  originalFilename: string;
@@ -6275,10 +6762,19 @@ export declare const EventDocument: z.ZodObject<{
6275
6762
  filename: string;
6276
6763
  originalFilename: string;
6277
6764
  }[] | undefined> | undefined;
6765
+ createdAtLocation?: string | undefined;
6766
+ updatedAtLocation?: string | undefined;
6767
+ originalActionId?: string | undefined;
6768
+ registrationNumber?: string | undefined;
6278
6769
  } | {
6279
6770
  type: "DECLARE";
6280
6771
  id: string;
6281
- data: Record<string, string | number | boolean | {
6772
+ status: "Rejected" | "Requested" | "Accepted";
6773
+ transactionId: string;
6774
+ createdAt: string;
6775
+ createdBy: string;
6776
+ createdByRole: string;
6777
+ declaration: Record<string, string | number | boolean | {
6282
6778
  type: string;
6283
6779
  filename: string;
6284
6780
  originalFilename: string;
@@ -6316,10 +6812,7 @@ export declare const EventDocument: z.ZodObject<{
6316
6812
  filename: string;
6317
6813
  originalFilename: string;
6318
6814
  }[] | undefined>;
6319
- createdAt: string;
6320
- createdBy: string;
6321
- createdAtLocation: string;
6322
- metadata?: Record<string, string | number | boolean | {
6815
+ annotation?: Record<string, string | number | boolean | {
6323
6816
  type: string;
6324
6817
  filename: string;
6325
6818
  originalFilename: string;
@@ -6357,10 +6850,18 @@ export declare const EventDocument: z.ZodObject<{
6357
6850
  filename: string;
6358
6851
  originalFilename: string;
6359
6852
  }[] | undefined> | undefined;
6853
+ createdAtLocation?: string | undefined;
6854
+ updatedAtLocation?: string | undefined;
6855
+ originalActionId?: string | undefined;
6360
6856
  } | {
6361
6857
  type: "VALIDATE";
6362
6858
  id: string;
6363
- data: Record<string, string | number | boolean | {
6859
+ status: "Rejected" | "Requested" | "Accepted";
6860
+ transactionId: string;
6861
+ createdAt: string;
6862
+ createdBy: string;
6863
+ createdByRole: string;
6864
+ declaration: Record<string, string | number | boolean | {
6364
6865
  type: string;
6365
6866
  filename: string;
6366
6867
  originalFilename: string;
@@ -6398,10 +6899,7 @@ export declare const EventDocument: z.ZodObject<{
6398
6899
  filename: string;
6399
6900
  originalFilename: string;
6400
6901
  }[] | undefined>;
6401
- createdAt: string;
6402
- createdBy: string;
6403
- createdAtLocation: string;
6404
- metadata?: Record<string, string | number | boolean | {
6902
+ annotation?: Record<string, string | number | boolean | {
6405
6903
  type: string;
6406
6904
  filename: string;
6407
6905
  originalFilename: string;
@@ -6439,10 +6937,18 @@ export declare const EventDocument: z.ZodObject<{
6439
6937
  filename: string;
6440
6938
  originalFilename: string;
6441
6939
  }[] | undefined> | undefined;
6940
+ createdAtLocation?: string | undefined;
6941
+ updatedAtLocation?: string | undefined;
6942
+ originalActionId?: string | undefined;
6442
6943
  } | {
6443
6944
  type: "REJECT";
6444
6945
  id: string;
6445
- data: Record<string, string | number | boolean | {
6946
+ status: "Rejected" | "Requested" | "Accepted";
6947
+ transactionId: string;
6948
+ createdAt: string;
6949
+ createdBy: string;
6950
+ createdByRole: string;
6951
+ declaration: Record<string, string | number | boolean | {
6446
6952
  type: string;
6447
6953
  filename: string;
6448
6954
  originalFilename: string;
@@ -6480,10 +6986,7 @@ export declare const EventDocument: z.ZodObject<{
6480
6986
  filename: string;
6481
6987
  originalFilename: string;
6482
6988
  }[] | undefined>;
6483
- createdAt: string;
6484
- createdBy: string;
6485
- createdAtLocation: string;
6486
- metadata?: Record<string, string | number | boolean | {
6989
+ annotation?: Record<string, string | number | boolean | {
6487
6990
  type: string;
6488
6991
  filename: string;
6489
6992
  originalFilename: string;
@@ -6521,10 +7024,18 @@ export declare const EventDocument: z.ZodObject<{
6521
7024
  filename: string;
6522
7025
  originalFilename: string;
6523
7026
  }[] | undefined> | undefined;
7027
+ createdAtLocation?: string | undefined;
7028
+ updatedAtLocation?: string | undefined;
7029
+ originalActionId?: string | undefined;
6524
7030
  } | {
6525
7031
  type: "MARKED_AS_DUPLICATE";
6526
7032
  id: string;
6527
- data: Record<string, string | number | boolean | {
7033
+ status: "Rejected" | "Requested" | "Accepted";
7034
+ transactionId: string;
7035
+ createdAt: string;
7036
+ createdBy: string;
7037
+ createdByRole: string;
7038
+ declaration: Record<string, string | number | boolean | {
6528
7039
  type: string;
6529
7040
  filename: string;
6530
7041
  originalFilename: string;
@@ -6562,10 +7073,7 @@ export declare const EventDocument: z.ZodObject<{
6562
7073
  filename: string;
6563
7074
  originalFilename: string;
6564
7075
  }[] | undefined>;
6565
- createdAt: string;
6566
- createdBy: string;
6567
- createdAtLocation: string;
6568
- metadata?: Record<string, string | number | boolean | {
7076
+ annotation?: Record<string, string | number | boolean | {
6569
7077
  type: string;
6570
7078
  filename: string;
6571
7079
  originalFilename: string;
@@ -6603,10 +7111,18 @@ export declare const EventDocument: z.ZodObject<{
6603
7111
  filename: string;
6604
7112
  originalFilename: string;
6605
7113
  }[] | undefined> | undefined;
7114
+ createdAtLocation?: string | undefined;
7115
+ updatedAtLocation?: string | undefined;
7116
+ originalActionId?: string | undefined;
6606
7117
  } | {
6607
7118
  type: "ARCHIVE";
6608
7119
  id: string;
6609
- data: Record<string, string | number | boolean | {
7120
+ status: "Rejected" | "Requested" | "Accepted";
7121
+ transactionId: string;
7122
+ createdAt: string;
7123
+ createdBy: string;
7124
+ createdByRole: string;
7125
+ declaration: Record<string, string | number | boolean | {
6610
7126
  type: string;
6611
7127
  filename: string;
6612
7128
  originalFilename: string;
@@ -6644,10 +7160,7 @@ export declare const EventDocument: z.ZodObject<{
6644
7160
  filename: string;
6645
7161
  originalFilename: string;
6646
7162
  }[] | undefined>;
6647
- createdAt: string;
6648
- createdBy: string;
6649
- createdAtLocation: string;
6650
- metadata?: Record<string, string | number | boolean | {
7163
+ annotation?: Record<string, string | number | boolean | {
6651
7164
  type: string;
6652
7165
  filename: string;
6653
7166
  originalFilename: string;
@@ -6685,10 +7198,18 @@ export declare const EventDocument: z.ZodObject<{
6685
7198
  filename: string;
6686
7199
  originalFilename: string;
6687
7200
  }[] | undefined> | undefined;
7201
+ createdAtLocation?: string | undefined;
7202
+ updatedAtLocation?: string | undefined;
7203
+ originalActionId?: string | undefined;
6688
7204
  } | {
6689
7205
  type: "CREATE";
6690
7206
  id: string;
6691
- data: Record<string, string | number | boolean | {
7207
+ status: "Rejected" | "Requested" | "Accepted";
7208
+ transactionId: string;
7209
+ createdAt: string;
7210
+ createdBy: string;
7211
+ createdByRole: string;
7212
+ declaration: Record<string, string | number | boolean | {
6692
7213
  type: string;
6693
7214
  filename: string;
6694
7215
  originalFilename: string;
@@ -6726,10 +7247,7 @@ export declare const EventDocument: z.ZodObject<{
6726
7247
  filename: string;
6727
7248
  originalFilename: string;
6728
7249
  }[] | undefined>;
6729
- createdAt: string;
6730
- createdBy: string;
6731
- createdAtLocation: string;
6732
- metadata?: Record<string, string | number | boolean | {
7250
+ annotation?: Record<string, string | number | boolean | {
6733
7251
  type: string;
6734
7252
  filename: string;
6735
7253
  originalFilename: string;
@@ -6767,10 +7285,18 @@ export declare const EventDocument: z.ZodObject<{
6767
7285
  filename: string;
6768
7286
  originalFilename: string;
6769
7287
  }[] | undefined> | undefined;
7288
+ createdAtLocation?: string | undefined;
7289
+ updatedAtLocation?: string | undefined;
7290
+ originalActionId?: string | undefined;
6770
7291
  } | {
6771
7292
  type: "NOTIFY";
6772
7293
  id: string;
6773
- data: Record<string, string | number | boolean | {
7294
+ status: "Rejected" | "Requested" | "Accepted";
7295
+ transactionId: string;
7296
+ createdAt: string;
7297
+ createdBy: string;
7298
+ createdByRole: string;
7299
+ declaration: Record<string, string | number | boolean | {
6774
7300
  type: string;
6775
7301
  filename: string;
6776
7302
  originalFilename: string;
@@ -6808,10 +7334,7 @@ export declare const EventDocument: z.ZodObject<{
6808
7334
  filename: string;
6809
7335
  originalFilename: string;
6810
7336
  }[] | undefined>;
6811
- createdAt: string;
6812
- createdBy: string;
6813
- createdAtLocation: string;
6814
- metadata?: Record<string, string | number | boolean | {
7337
+ annotation?: Record<string, string | number | boolean | {
6815
7338
  type: string;
6816
7339
  filename: string;
6817
7340
  originalFilename: string;
@@ -6849,10 +7372,18 @@ export declare const EventDocument: z.ZodObject<{
6849
7372
  filename: string;
6850
7373
  originalFilename: string;
6851
7374
  }[] | undefined> | undefined;
7375
+ createdAtLocation?: string | undefined;
7376
+ updatedAtLocation?: string | undefined;
7377
+ originalActionId?: string | undefined;
6852
7378
  } | {
6853
7379
  type: "PRINT_CERTIFICATE";
6854
7380
  id: string;
6855
- data: Record<string, string | number | boolean | {
7381
+ status: "Rejected" | "Requested" | "Accepted";
7382
+ transactionId: string;
7383
+ createdAt: string;
7384
+ createdBy: string;
7385
+ createdByRole: string;
7386
+ declaration: Record<string, string | number | boolean | {
6856
7387
  type: string;
6857
7388
  filename: string;
6858
7389
  originalFilename: string;
@@ -6890,10 +7421,7 @@ export declare const EventDocument: z.ZodObject<{
6890
7421
  filename: string;
6891
7422
  originalFilename: string;
6892
7423
  }[] | undefined>;
6893
- createdAt: string;
6894
- createdBy: string;
6895
- createdAtLocation: string;
6896
- metadata?: Record<string, string | number | boolean | {
7424
+ annotation?: Record<string, string | number | boolean | {
6897
7425
  type: string;
6898
7426
  filename: string;
6899
7427
  originalFilename: string;
@@ -6931,10 +7459,18 @@ export declare const EventDocument: z.ZodObject<{
6931
7459
  filename: string;
6932
7460
  originalFilename: string;
6933
7461
  }[] | undefined> | undefined;
7462
+ createdAtLocation?: string | undefined;
7463
+ updatedAtLocation?: string | undefined;
7464
+ originalActionId?: string | undefined;
6934
7465
  } | {
6935
7466
  type: "REQUEST_CORRECTION";
6936
7467
  id: string;
6937
- data: Record<string, string | number | boolean | {
7468
+ status: "Rejected" | "Requested" | "Accepted";
7469
+ transactionId: string;
7470
+ createdAt: string;
7471
+ createdBy: string;
7472
+ createdByRole: string;
7473
+ declaration: Record<string, string | number | boolean | {
6938
7474
  type: string;
6939
7475
  filename: string;
6940
7476
  originalFilename: string;
@@ -6972,10 +7508,7 @@ export declare const EventDocument: z.ZodObject<{
6972
7508
  filename: string;
6973
7509
  originalFilename: string;
6974
7510
  }[] | undefined>;
6975
- createdAt: string;
6976
- createdBy: string;
6977
- createdAtLocation: string;
6978
- metadata?: Record<string, string | number | boolean | {
7511
+ annotation?: Record<string, string | number | boolean | {
6979
7512
  type: string;
6980
7513
  filename: string;
6981
7514
  originalFilename: string;
@@ -7013,10 +7546,18 @@ export declare const EventDocument: z.ZodObject<{
7013
7546
  filename: string;
7014
7547
  originalFilename: string;
7015
7548
  }[] | undefined> | undefined;
7549
+ createdAtLocation?: string | undefined;
7550
+ updatedAtLocation?: string | undefined;
7551
+ originalActionId?: string | undefined;
7016
7552
  } | {
7017
7553
  type: "APPROVE_CORRECTION";
7018
7554
  id: string;
7019
- data: Record<string, string | number | boolean | {
7555
+ status: "Rejected" | "Requested" | "Accepted";
7556
+ transactionId: string;
7557
+ createdAt: string;
7558
+ createdBy: string;
7559
+ createdByRole: string;
7560
+ declaration: Record<string, string | number | boolean | {
7020
7561
  type: string;
7021
7562
  filename: string;
7022
7563
  originalFilename: string;
@@ -7054,11 +7595,8 @@ export declare const EventDocument: z.ZodObject<{
7054
7595
  filename: string;
7055
7596
  originalFilename: string;
7056
7597
  }[] | undefined>;
7057
- createdAt: string;
7058
- createdBy: string;
7059
- createdAtLocation: string;
7060
7598
  requestId: string;
7061
- metadata?: Record<string, string | number | boolean | {
7599
+ annotation?: Record<string, string | number | boolean | {
7062
7600
  type: string;
7063
7601
  filename: string;
7064
7602
  originalFilename: string;
@@ -7096,10 +7634,18 @@ export declare const EventDocument: z.ZodObject<{
7096
7634
  filename: string;
7097
7635
  originalFilename: string;
7098
7636
  }[] | undefined> | undefined;
7637
+ createdAtLocation?: string | undefined;
7638
+ updatedAtLocation?: string | undefined;
7639
+ originalActionId?: string | undefined;
7099
7640
  } | {
7100
7641
  type: "REJECT_CORRECTION";
7101
7642
  id: string;
7102
- data: Record<string, string | number | boolean | {
7643
+ status: "Rejected" | "Requested" | "Accepted";
7644
+ transactionId: string;
7645
+ createdAt: string;
7646
+ createdBy: string;
7647
+ createdByRole: string;
7648
+ declaration: Record<string, string | number | boolean | {
7103
7649
  type: string;
7104
7650
  filename: string;
7105
7651
  originalFilename: string;
@@ -7137,11 +7683,8 @@ export declare const EventDocument: z.ZodObject<{
7137
7683
  filename: string;
7138
7684
  originalFilename: string;
7139
7685
  }[] | undefined>;
7140
- createdAt: string;
7141
- createdBy: string;
7142
- createdAtLocation: string;
7143
7686
  requestId: string;
7144
- metadata?: Record<string, string | number | boolean | {
7687
+ annotation?: Record<string, string | number | boolean | {
7145
7688
  type: string;
7146
7689
  filename: string;
7147
7690
  originalFilename: string;
@@ -7179,10 +7722,18 @@ export declare const EventDocument: z.ZodObject<{
7179
7722
  filename: string;
7180
7723
  originalFilename: string;
7181
7724
  }[] | undefined> | undefined;
7725
+ createdAtLocation?: string | undefined;
7726
+ updatedAtLocation?: string | undefined;
7727
+ originalActionId?: string | undefined;
7182
7728
  } | {
7183
- type: "CUSTOM";
7729
+ type: "READ";
7184
7730
  id: string;
7185
- data: Record<string, string | number | boolean | {
7731
+ status: "Rejected" | "Requested" | "Accepted";
7732
+ transactionId: string;
7733
+ createdAt: string;
7734
+ createdBy: string;
7735
+ createdByRole: string;
7736
+ declaration: Record<string, string | number | boolean | {
7186
7737
  type: string;
7187
7738
  filename: string;
7188
7739
  originalFilename: string;
@@ -7220,10 +7771,7 @@ export declare const EventDocument: z.ZodObject<{
7220
7771
  filename: string;
7221
7772
  originalFilename: string;
7222
7773
  }[] | undefined>;
7223
- createdAt: string;
7224
- createdBy: string;
7225
- createdAtLocation: string;
7226
- metadata?: Record<string, string | number | boolean | {
7774
+ annotation?: Record<string, string | number | boolean | {
7227
7775
  type: string;
7228
7776
  filename: string;
7229
7777
  originalFilename: string;
@@ -7261,17 +7809,37 @@ export declare const EventDocument: z.ZodObject<{
7261
7809
  filename: string;
7262
7810
  originalFilename: string;
7263
7811
  }[] | undefined> | undefined;
7812
+ createdAtLocation?: string | undefined;
7813
+ updatedAtLocation?: string | undefined;
7814
+ originalActionId?: string | undefined;
7815
+ } | {
7816
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7817
+ id: string;
7818
+ status: "Rejected";
7819
+ transactionId: string;
7820
+ createdAt: string;
7821
+ updatedAtLocation?: string | undefined;
7822
+ originalActionId?: string | undefined;
7264
7823
  })[];
7824
+ trackingId: string;
7825
+ dateOfEvent?: {
7826
+ fieldId: string;
7827
+ } | undefined;
7265
7828
  }, {
7266
7829
  type: string;
7267
7830
  id: string;
7268
7831
  createdAt: string;
7269
- trackingId: string;
7832
+ updatedAtLocation: string;
7270
7833
  updatedAt: string;
7271
7834
  actions: ({
7272
7835
  type: "ASSIGN";
7273
7836
  id: string;
7274
- data: Record<string, string | number | boolean | {
7837
+ status: "Rejected" | "Requested" | "Accepted";
7838
+ transactionId: string;
7839
+ createdAt: string;
7840
+ createdBy: string;
7841
+ createdByRole: string;
7842
+ declaration: Record<string, string | number | boolean | {
7275
7843
  type: string;
7276
7844
  filename: string;
7277
7845
  originalFilename: string;
@@ -7309,11 +7877,8 @@ export declare const EventDocument: z.ZodObject<{
7309
7877
  filename: string;
7310
7878
  originalFilename: string;
7311
7879
  }[] | undefined>;
7312
- createdAt: string;
7313
- createdBy: string;
7314
- createdAtLocation: string;
7315
7880
  assignedTo: string;
7316
- metadata?: Record<string, string | number | boolean | {
7881
+ annotation?: Record<string, string | number | boolean | {
7317
7882
  type: string;
7318
7883
  filename: string;
7319
7884
  originalFilename: string;
@@ -7351,10 +7916,18 @@ export declare const EventDocument: z.ZodObject<{
7351
7916
  filename: string;
7352
7917
  originalFilename: string;
7353
7918
  }[] | undefined> | undefined;
7919
+ createdAtLocation?: string | undefined;
7920
+ updatedAtLocation?: string | undefined;
7921
+ originalActionId?: string | undefined;
7354
7922
  } | {
7355
7923
  type: "UNASSIGN";
7356
7924
  id: string;
7357
- data: Record<string, string | number | boolean | {
7925
+ status: "Rejected" | "Requested" | "Accepted";
7926
+ transactionId: string;
7927
+ createdAt: string;
7928
+ createdBy: string;
7929
+ createdByRole: string;
7930
+ declaration: Record<string, string | number | boolean | {
7358
7931
  type: string;
7359
7932
  filename: string;
7360
7933
  originalFilename: string;
@@ -7392,10 +7965,8 @@ export declare const EventDocument: z.ZodObject<{
7392
7965
  filename: string;
7393
7966
  originalFilename: string;
7394
7967
  }[] | undefined>;
7395
- createdAt: string;
7396
- createdBy: string;
7397
- createdAtLocation: string;
7398
- metadata?: Record<string, string | number | boolean | {
7968
+ assignedTo: null;
7969
+ annotation?: Record<string, string | number | boolean | {
7399
7970
  type: string;
7400
7971
  filename: string;
7401
7972
  originalFilename: string;
@@ -7433,10 +8004,18 @@ export declare const EventDocument: z.ZodObject<{
7433
8004
  filename: string;
7434
8005
  originalFilename: string;
7435
8006
  }[] | undefined> | undefined;
8007
+ createdAtLocation?: string | undefined;
8008
+ updatedAtLocation?: string | undefined;
8009
+ originalActionId?: string | undefined;
7436
8010
  } | {
7437
8011
  type: "REGISTER";
7438
8012
  id: string;
7439
- data: Record<string, string | number | boolean | {
8013
+ status: "Rejected" | "Requested" | "Accepted";
8014
+ transactionId: string;
8015
+ createdAt: string;
8016
+ createdBy: string;
8017
+ createdByRole: string;
8018
+ declaration: Record<string, string | number | boolean | {
7440
8019
  type: string;
7441
8020
  filename: string;
7442
8021
  originalFilename: string;
@@ -7474,14 +8053,7 @@ export declare const EventDocument: z.ZodObject<{
7474
8053
  filename: string;
7475
8054
  originalFilename: string;
7476
8055
  }[] | undefined>;
7477
- createdAt: string;
7478
- createdBy: string;
7479
- createdAtLocation: string;
7480
- identifiers: {
7481
- trackingId: string;
7482
- registrationNumber: string;
7483
- };
7484
- metadata?: Record<string, string | number | boolean | {
8056
+ annotation?: Record<string, string | number | boolean | {
7485
8057
  type: string;
7486
8058
  filename: string;
7487
8059
  originalFilename: string;
@@ -7519,10 +8091,19 @@ export declare const EventDocument: z.ZodObject<{
7519
8091
  filename: string;
7520
8092
  originalFilename: string;
7521
8093
  }[] | undefined> | undefined;
8094
+ createdAtLocation?: string | undefined;
8095
+ updatedAtLocation?: string | undefined;
8096
+ originalActionId?: string | undefined;
8097
+ registrationNumber?: string | undefined;
7522
8098
  } | {
7523
8099
  type: "DECLARE";
7524
8100
  id: string;
7525
- data: Record<string, string | number | boolean | {
8101
+ status: "Rejected" | "Requested" | "Accepted";
8102
+ transactionId: string;
8103
+ createdAt: string;
8104
+ createdBy: string;
8105
+ createdByRole: string;
8106
+ declaration: Record<string, string | number | boolean | {
7526
8107
  type: string;
7527
8108
  filename: string;
7528
8109
  originalFilename: string;
@@ -7560,10 +8141,7 @@ export declare const EventDocument: z.ZodObject<{
7560
8141
  filename: string;
7561
8142
  originalFilename: string;
7562
8143
  }[] | undefined>;
7563
- createdAt: string;
7564
- createdBy: string;
7565
- createdAtLocation: string;
7566
- metadata?: Record<string, string | number | boolean | {
8144
+ annotation?: Record<string, string | number | boolean | {
7567
8145
  type: string;
7568
8146
  filename: string;
7569
8147
  originalFilename: string;
@@ -7601,10 +8179,18 @@ export declare const EventDocument: z.ZodObject<{
7601
8179
  filename: string;
7602
8180
  originalFilename: string;
7603
8181
  }[] | undefined> | undefined;
8182
+ createdAtLocation?: string | undefined;
8183
+ updatedAtLocation?: string | undefined;
8184
+ originalActionId?: string | undefined;
7604
8185
  } | {
7605
8186
  type: "VALIDATE";
7606
8187
  id: string;
7607
- data: Record<string, string | number | boolean | {
8188
+ status: "Rejected" | "Requested" | "Accepted";
8189
+ transactionId: string;
8190
+ createdAt: string;
8191
+ createdBy: string;
8192
+ createdByRole: string;
8193
+ declaration: Record<string, string | number | boolean | {
7608
8194
  type: string;
7609
8195
  filename: string;
7610
8196
  originalFilename: string;
@@ -7642,10 +8228,7 @@ export declare const EventDocument: z.ZodObject<{
7642
8228
  filename: string;
7643
8229
  originalFilename: string;
7644
8230
  }[] | undefined>;
7645
- createdAt: string;
7646
- createdBy: string;
7647
- createdAtLocation: string;
7648
- metadata?: Record<string, string | number | boolean | {
8231
+ annotation?: Record<string, string | number | boolean | {
7649
8232
  type: string;
7650
8233
  filename: string;
7651
8234
  originalFilename: string;
@@ -7683,10 +8266,18 @@ export declare const EventDocument: z.ZodObject<{
7683
8266
  filename: string;
7684
8267
  originalFilename: string;
7685
8268
  }[] | undefined> | undefined;
8269
+ createdAtLocation?: string | undefined;
8270
+ updatedAtLocation?: string | undefined;
8271
+ originalActionId?: string | undefined;
7686
8272
  } | {
7687
8273
  type: "REJECT";
7688
8274
  id: string;
7689
- data: Record<string, string | number | boolean | {
8275
+ status: "Rejected" | "Requested" | "Accepted";
8276
+ transactionId: string;
8277
+ createdAt: string;
8278
+ createdBy: string;
8279
+ createdByRole: string;
8280
+ declaration: Record<string, string | number | boolean | {
7690
8281
  type: string;
7691
8282
  filename: string;
7692
8283
  originalFilename: string;
@@ -7724,10 +8315,7 @@ export declare const EventDocument: z.ZodObject<{
7724
8315
  filename: string;
7725
8316
  originalFilename: string;
7726
8317
  }[] | undefined>;
7727
- createdAt: string;
7728
- createdBy: string;
7729
- createdAtLocation: string;
7730
- metadata?: Record<string, string | number | boolean | {
8318
+ annotation?: Record<string, string | number | boolean | {
7731
8319
  type: string;
7732
8320
  filename: string;
7733
8321
  originalFilename: string;
@@ -7765,10 +8353,18 @@ export declare const EventDocument: z.ZodObject<{
7765
8353
  filename: string;
7766
8354
  originalFilename: string;
7767
8355
  }[] | undefined> | undefined;
8356
+ createdAtLocation?: string | undefined;
8357
+ updatedAtLocation?: string | undefined;
8358
+ originalActionId?: string | undefined;
7768
8359
  } | {
7769
8360
  type: "MARKED_AS_DUPLICATE";
7770
8361
  id: string;
7771
- data: Record<string, string | number | boolean | {
8362
+ status: "Rejected" | "Requested" | "Accepted";
8363
+ transactionId: string;
8364
+ createdAt: string;
8365
+ createdBy: string;
8366
+ createdByRole: string;
8367
+ declaration: Record<string, string | number | boolean | {
7772
8368
  type: string;
7773
8369
  filename: string;
7774
8370
  originalFilename: string;
@@ -7806,10 +8402,7 @@ export declare const EventDocument: z.ZodObject<{
7806
8402
  filename: string;
7807
8403
  originalFilename: string;
7808
8404
  }[] | undefined>;
7809
- createdAt: string;
7810
- createdBy: string;
7811
- createdAtLocation: string;
7812
- metadata?: Record<string, string | number | boolean | {
8405
+ annotation?: Record<string, string | number | boolean | {
7813
8406
  type: string;
7814
8407
  filename: string;
7815
8408
  originalFilename: string;
@@ -7847,10 +8440,18 @@ export declare const EventDocument: z.ZodObject<{
7847
8440
  filename: string;
7848
8441
  originalFilename: string;
7849
8442
  }[] | undefined> | undefined;
8443
+ createdAtLocation?: string | undefined;
8444
+ updatedAtLocation?: string | undefined;
8445
+ originalActionId?: string | undefined;
7850
8446
  } | {
7851
8447
  type: "ARCHIVE";
7852
8448
  id: string;
7853
- data: Record<string, string | number | boolean | {
8449
+ status: "Rejected" | "Requested" | "Accepted";
8450
+ transactionId: string;
8451
+ createdAt: string;
8452
+ createdBy: string;
8453
+ createdByRole: string;
8454
+ declaration: Record<string, string | number | boolean | {
7854
8455
  type: string;
7855
8456
  filename: string;
7856
8457
  originalFilename: string;
@@ -7888,10 +8489,7 @@ export declare const EventDocument: z.ZodObject<{
7888
8489
  filename: string;
7889
8490
  originalFilename: string;
7890
8491
  }[] | undefined>;
7891
- createdAt: string;
7892
- createdBy: string;
7893
- createdAtLocation: string;
7894
- metadata?: Record<string, string | number | boolean | {
8492
+ annotation?: Record<string, string | number | boolean | {
7895
8493
  type: string;
7896
8494
  filename: string;
7897
8495
  originalFilename: string;
@@ -7929,10 +8527,18 @@ export declare const EventDocument: z.ZodObject<{
7929
8527
  filename: string;
7930
8528
  originalFilename: string;
7931
8529
  }[] | undefined> | undefined;
8530
+ createdAtLocation?: string | undefined;
8531
+ updatedAtLocation?: string | undefined;
8532
+ originalActionId?: string | undefined;
7932
8533
  } | {
7933
8534
  type: "CREATE";
7934
8535
  id: string;
7935
- data: Record<string, string | number | boolean | {
8536
+ status: "Rejected" | "Requested" | "Accepted";
8537
+ transactionId: string;
8538
+ createdAt: string;
8539
+ createdBy: string;
8540
+ createdByRole: string;
8541
+ declaration: Record<string, string | number | boolean | {
7936
8542
  type: string;
7937
8543
  filename: string;
7938
8544
  originalFilename: string;
@@ -7970,10 +8576,7 @@ export declare const EventDocument: z.ZodObject<{
7970
8576
  filename: string;
7971
8577
  originalFilename: string;
7972
8578
  }[] | undefined>;
7973
- createdAt: string;
7974
- createdBy: string;
7975
- createdAtLocation: string;
7976
- metadata?: Record<string, string | number | boolean | {
8579
+ annotation?: Record<string, string | number | boolean | {
7977
8580
  type: string;
7978
8581
  filename: string;
7979
8582
  originalFilename: string;
@@ -8011,10 +8614,18 @@ export declare const EventDocument: z.ZodObject<{
8011
8614
  filename: string;
8012
8615
  originalFilename: string;
8013
8616
  }[] | undefined> | undefined;
8617
+ createdAtLocation?: string | undefined;
8618
+ updatedAtLocation?: string | undefined;
8619
+ originalActionId?: string | undefined;
8014
8620
  } | {
8015
8621
  type: "NOTIFY";
8016
8622
  id: string;
8017
- data: Record<string, string | number | boolean | {
8623
+ status: "Rejected" | "Requested" | "Accepted";
8624
+ transactionId: string;
8625
+ createdAt: string;
8626
+ createdBy: string;
8627
+ createdByRole: string;
8628
+ declaration: Record<string, string | number | boolean | {
8018
8629
  type: string;
8019
8630
  filename: string;
8020
8631
  originalFilename: string;
@@ -8052,10 +8663,7 @@ export declare const EventDocument: z.ZodObject<{
8052
8663
  filename: string;
8053
8664
  originalFilename: string;
8054
8665
  }[] | undefined>;
8055
- createdAt: string;
8056
- createdBy: string;
8057
- createdAtLocation: string;
8058
- metadata?: Record<string, string | number | boolean | {
8666
+ annotation?: Record<string, string | number | boolean | {
8059
8667
  type: string;
8060
8668
  filename: string;
8061
8669
  originalFilename: string;
@@ -8093,10 +8701,18 @@ export declare const EventDocument: z.ZodObject<{
8093
8701
  filename: string;
8094
8702
  originalFilename: string;
8095
8703
  }[] | undefined> | undefined;
8704
+ createdAtLocation?: string | undefined;
8705
+ updatedAtLocation?: string | undefined;
8706
+ originalActionId?: string | undefined;
8096
8707
  } | {
8097
8708
  type: "PRINT_CERTIFICATE";
8098
8709
  id: string;
8099
- data: Record<string, string | number | boolean | {
8710
+ status: "Rejected" | "Requested" | "Accepted";
8711
+ transactionId: string;
8712
+ createdAt: string;
8713
+ createdBy: string;
8714
+ createdByRole: string;
8715
+ declaration: Record<string, string | number | boolean | {
8100
8716
  type: string;
8101
8717
  filename: string;
8102
8718
  originalFilename: string;
@@ -8134,10 +8750,7 @@ export declare const EventDocument: z.ZodObject<{
8134
8750
  filename: string;
8135
8751
  originalFilename: string;
8136
8752
  }[] | undefined>;
8137
- createdAt: string;
8138
- createdBy: string;
8139
- createdAtLocation: string;
8140
- metadata?: Record<string, string | number | boolean | {
8753
+ annotation?: Record<string, string | number | boolean | {
8141
8754
  type: string;
8142
8755
  filename: string;
8143
8756
  originalFilename: string;
@@ -8175,10 +8788,18 @@ export declare const EventDocument: z.ZodObject<{
8175
8788
  filename: string;
8176
8789
  originalFilename: string;
8177
8790
  }[] | undefined> | undefined;
8791
+ createdAtLocation?: string | undefined;
8792
+ updatedAtLocation?: string | undefined;
8793
+ originalActionId?: string | undefined;
8178
8794
  } | {
8179
8795
  type: "REQUEST_CORRECTION";
8180
8796
  id: string;
8181
- data: Record<string, string | number | boolean | {
8797
+ status: "Rejected" | "Requested" | "Accepted";
8798
+ transactionId: string;
8799
+ createdAt: string;
8800
+ createdBy: string;
8801
+ createdByRole: string;
8802
+ declaration: Record<string, string | number | boolean | {
8182
8803
  type: string;
8183
8804
  filename: string;
8184
8805
  originalFilename: string;
@@ -8216,10 +8837,7 @@ export declare const EventDocument: z.ZodObject<{
8216
8837
  filename: string;
8217
8838
  originalFilename: string;
8218
8839
  }[] | undefined>;
8219
- createdAt: string;
8220
- createdBy: string;
8221
- createdAtLocation: string;
8222
- metadata?: Record<string, string | number | boolean | {
8840
+ annotation?: Record<string, string | number | boolean | {
8223
8841
  type: string;
8224
8842
  filename: string;
8225
8843
  originalFilename: string;
@@ -8257,10 +8875,18 @@ export declare const EventDocument: z.ZodObject<{
8257
8875
  filename: string;
8258
8876
  originalFilename: string;
8259
8877
  }[] | undefined> | undefined;
8878
+ createdAtLocation?: string | undefined;
8879
+ updatedAtLocation?: string | undefined;
8880
+ originalActionId?: string | undefined;
8260
8881
  } | {
8261
8882
  type: "APPROVE_CORRECTION";
8262
8883
  id: string;
8263
- data: Record<string, string | number | boolean | {
8884
+ status: "Rejected" | "Requested" | "Accepted";
8885
+ transactionId: string;
8886
+ createdAt: string;
8887
+ createdBy: string;
8888
+ createdByRole: string;
8889
+ declaration: Record<string, string | number | boolean | {
8264
8890
  type: string;
8265
8891
  filename: string;
8266
8892
  originalFilename: string;
@@ -8298,11 +8924,8 @@ export declare const EventDocument: z.ZodObject<{
8298
8924
  filename: string;
8299
8925
  originalFilename: string;
8300
8926
  }[] | undefined>;
8301
- createdAt: string;
8302
- createdBy: string;
8303
- createdAtLocation: string;
8304
8927
  requestId: string;
8305
- metadata?: Record<string, string | number | boolean | {
8928
+ annotation?: Record<string, string | number | boolean | {
8306
8929
  type: string;
8307
8930
  filename: string;
8308
8931
  originalFilename: string;
@@ -8340,10 +8963,18 @@ export declare const EventDocument: z.ZodObject<{
8340
8963
  filename: string;
8341
8964
  originalFilename: string;
8342
8965
  }[] | undefined> | undefined;
8966
+ createdAtLocation?: string | undefined;
8967
+ updatedAtLocation?: string | undefined;
8968
+ originalActionId?: string | undefined;
8343
8969
  } | {
8344
8970
  type: "REJECT_CORRECTION";
8345
8971
  id: string;
8346
- data: Record<string, string | number | boolean | {
8972
+ status: "Rejected" | "Requested" | "Accepted";
8973
+ transactionId: string;
8974
+ createdAt: string;
8975
+ createdBy: string;
8976
+ createdByRole: string;
8977
+ declaration: Record<string, string | number | boolean | {
8347
8978
  type: string;
8348
8979
  filename: string;
8349
8980
  originalFilename: string;
@@ -8381,11 +9012,8 @@ export declare const EventDocument: z.ZodObject<{
8381
9012
  filename: string;
8382
9013
  originalFilename: string;
8383
9014
  }[] | undefined>;
8384
- createdAt: string;
8385
- createdBy: string;
8386
- createdAtLocation: string;
8387
9015
  requestId: string;
8388
- metadata?: Record<string, string | number | boolean | {
9016
+ annotation?: Record<string, string | number | boolean | {
8389
9017
  type: string;
8390
9018
  filename: string;
8391
9019
  originalFilename: string;
@@ -8423,10 +9051,18 @@ export declare const EventDocument: z.ZodObject<{
8423
9051
  filename: string;
8424
9052
  originalFilename: string;
8425
9053
  }[] | undefined> | undefined;
9054
+ createdAtLocation?: string | undefined;
9055
+ updatedAtLocation?: string | undefined;
9056
+ originalActionId?: string | undefined;
8426
9057
  } | {
8427
- type: "CUSTOM";
9058
+ type: "READ";
8428
9059
  id: string;
8429
- data: Record<string, string | number | boolean | {
9060
+ status: "Rejected" | "Requested" | "Accepted";
9061
+ transactionId: string;
9062
+ createdAt: string;
9063
+ createdBy: string;
9064
+ createdByRole: string;
9065
+ declaration: Record<string, string | number | boolean | {
8430
9066
  type: string;
8431
9067
  filename: string;
8432
9068
  originalFilename: string;
@@ -8464,10 +9100,7 @@ export declare const EventDocument: z.ZodObject<{
8464
9100
  filename: string;
8465
9101
  originalFilename: string;
8466
9102
  }[] | undefined>;
8467
- createdAt: string;
8468
- createdBy: string;
8469
- createdAtLocation: string;
8470
- metadata?: Record<string, string | number | boolean | {
9103
+ annotation?: Record<string, string | number | boolean | {
8471
9104
  type: string;
8472
9105
  filename: string;
8473
9106
  originalFilename: string;
@@ -8505,7 +9138,22 @@ export declare const EventDocument: z.ZodObject<{
8505
9138
  filename: string;
8506
9139
  originalFilename: string;
8507
9140
  }[] | undefined> | undefined;
9141
+ createdAtLocation?: string | undefined;
9142
+ updatedAtLocation?: string | undefined;
9143
+ originalActionId?: string | undefined;
9144
+ } | {
9145
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
9146
+ id: string;
9147
+ status: "Rejected";
9148
+ transactionId: string;
9149
+ createdAt: string;
9150
+ updatedAtLocation?: string | undefined;
9151
+ originalActionId?: string | undefined;
8508
9152
  })[];
9153
+ trackingId: string;
9154
+ dateOfEvent?: {
9155
+ fieldId: string;
9156
+ } | undefined;
8509
9157
  }>;
8510
9158
  export type EventDocument = z.infer<typeof EventDocument>;
8511
9159
  //# sourceMappingURL=EventDocument.d.ts.map