@opencrvs/toolkit 1.8.0-rc.faacbde → 1.8.0-rc.facf9d6

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 (44) hide show
  1. package/dist/commons/api/router.d.ts +12657 -13930
  2. package/dist/commons/conditionals/conditionals.d.ts +25 -6
  3. package/dist/commons/conditionals/validate.d.ts +12 -17
  4. package/dist/commons/events/ActionConfig.d.ts +94298 -1733
  5. package/dist/commons/events/ActionDocument.d.ts +7848 -230
  6. package/dist/commons/events/ActionInput.d.ts +1417 -388
  7. package/dist/commons/events/ActionType.d.ts +6 -3
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
  9. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  10. package/dist/commons/events/Conditional.d.ts +21 -5
  11. package/dist/commons/events/Constants.d.ts +2 -0
  12. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  13. package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
  14. package/dist/commons/events/Draft.d.ts +62 -28
  15. package/dist/commons/events/EventConfig.d.ts +42895 -1350
  16. package/dist/commons/events/EventDocument.d.ts +950 -254
  17. package/dist/commons/events/EventIndex.d.ts +1342 -13
  18. package/dist/commons/events/EventMetadata.d.ts +300 -11
  19. package/dist/commons/events/FieldConfig.d.ts +4549 -802
  20. package/dist/commons/events/FieldType.d.ts +3 -3
  21. package/dist/commons/events/FieldTypeMapping.d.ts +16 -6
  22. package/dist/commons/events/FieldValue.d.ts +9 -4
  23. package/dist/commons/events/FormConfig.d.ts +43951 -439
  24. package/dist/commons/events/PageConfig.d.ts +10954 -234
  25. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  26. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  27. package/dist/commons/events/User.d.ts +31 -2
  28. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  29. package/dist/commons/events/WorkqueueConfig.d.ts +4525 -20
  30. package/dist/commons/events/defineConfig.d.ts +6600 -66
  31. package/dist/commons/events/event.d.ts +54 -0
  32. package/dist/commons/events/field.d.ts +73 -0
  33. package/dist/commons/events/index.d.ts +7 -0
  34. package/dist/commons/events/scopes.d.ts +45 -0
  35. package/dist/commons/events/serializer.d.ts +2 -0
  36. package/dist/commons/events/test.utils.d.ts +52 -160
  37. package/dist/commons/events/utils.d.ts +3726 -39
  38. package/dist/commons/events/utils.test.d.ts +2 -0
  39. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  40. package/dist/conditionals/index.js +197 -144
  41. package/dist/events/index.js +4233 -2017
  42. package/dist/scopes/index.d.ts +158 -1
  43. package/dist/scopes/index.js +152 -1
  44. package/package.json +3 -2
@@ -4,11 +4,15 @@ export declare const EventDocument: z.ZodObject<{
4
4
  type: z.ZodString;
5
5
  createdAt: z.ZodString;
6
6
  updatedAt: z.ZodString;
7
- actions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
7
+ actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
8
8
  id: z.ZodString;
9
+ transactionId: z.ZodString;
9
10
  createdAt: z.ZodString;
10
11
  createdBy: z.ZodString;
11
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12
+ createdByRole: z.ZodString;
13
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12
16
  filename: z.ZodString;
13
17
  originalFilename: z.ZodString;
14
18
  type: z.ZodString;
@@ -122,7 +126,7 @@ export declare const EventDocument: z.ZodObject<{
122
126
  addressLine3?: string | null | undefined;
123
127
  postcodeOrZip?: string | null | undefined;
124
128
  }>]>>;
125
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
129
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
126
130
  filename: z.ZodString;
127
131
  originalFilename: z.ZodString;
128
132
  type: z.ZodString;
@@ -236,14 +240,18 @@ export declare const EventDocument: z.ZodObject<{
236
240
  addressLine3?: string | null | undefined;
237
241
  postcodeOrZip?: string | null | undefined;
238
242
  }>]>>>;
239
- createdAtLocation: z.ZodString;
243
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
244
+ originalActionId: z.ZodOptional<z.ZodString>;
240
245
  }, {
241
246
  type: z.ZodLiteral<"CREATE">;
242
247
  }>, "strip", z.ZodTypeAny, {
243
248
  type: "CREATE";
244
249
  id: string;
250
+ status: "Rejected" | "Requested" | "Accepted";
251
+ transactionId: string;
245
252
  createdAt: string;
246
253
  createdBy: string;
254
+ createdByRole: string;
247
255
  declaration: Record<string, string | number | boolean | {
248
256
  type: string;
249
257
  filename: string;
@@ -281,8 +289,9 @@ export declare const EventDocument: z.ZodObject<{
281
289
  option: string;
282
290
  filename: string;
283
291
  originalFilename: string;
284
- }[] | undefined>;
285
- createdAtLocation: string;
292
+ }[] | [string, string] | undefined>;
293
+ createdBySignature?: string | null | undefined;
294
+ createdAtLocation?: string | null | undefined;
286
295
  annotation?: Record<string, string | number | boolean | {
287
296
  type: string;
288
297
  filename: string;
@@ -320,12 +329,16 @@ export declare const EventDocument: z.ZodObject<{
320
329
  option: string;
321
330
  filename: string;
322
331
  originalFilename: string;
323
- }[] | undefined> | undefined;
332
+ }[] | [string, string] | undefined> | undefined;
333
+ originalActionId?: string | undefined;
324
334
  }, {
325
335
  type: "CREATE";
326
336
  id: string;
337
+ status: "Rejected" | "Requested" | "Accepted";
338
+ transactionId: string;
327
339
  createdAt: string;
328
340
  createdBy: string;
341
+ createdByRole: string;
329
342
  declaration: Record<string, string | number | boolean | {
330
343
  type: string;
331
344
  filename: string;
@@ -363,8 +376,9 @@ export declare const EventDocument: z.ZodObject<{
363
376
  option: string;
364
377
  filename: string;
365
378
  originalFilename: string;
366
- }[] | undefined>;
367
- createdAtLocation: string;
379
+ }[] | [string, string] | undefined>;
380
+ createdBySignature?: string | null | undefined;
381
+ createdAtLocation?: string | null | undefined;
368
382
  annotation?: Record<string, string | number | boolean | {
369
383
  type: string;
370
384
  filename: string;
@@ -402,12 +416,17 @@ export declare const EventDocument: z.ZodObject<{
402
416
  option: string;
403
417
  filename: string;
404
418
  originalFilename: string;
405
- }[] | undefined> | undefined;
419
+ }[] | [string, string] | undefined> | undefined;
420
+ originalActionId?: string | undefined;
406
421
  }>, z.ZodObject<z.objectUtil.extendShape<{
407
422
  id: z.ZodString;
423
+ transactionId: z.ZodString;
408
424
  createdAt: z.ZodString;
409
425
  createdBy: z.ZodString;
410
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
426
+ createdByRole: z.ZodString;
427
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
428
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
429
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
411
430
  filename: z.ZodString;
412
431
  originalFilename: z.ZodString;
413
432
  type: z.ZodString;
@@ -521,7 +540,7 @@ export declare const EventDocument: z.ZodObject<{
521
540
  addressLine3?: string | null | undefined;
522
541
  postcodeOrZip?: string | null | undefined;
523
542
  }>]>>;
524
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
543
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
525
544
  filename: z.ZodString;
526
545
  originalFilename: z.ZodString;
527
546
  type: z.ZodString;
@@ -635,14 +654,18 @@ export declare const EventDocument: z.ZodObject<{
635
654
  addressLine3?: string | null | undefined;
636
655
  postcodeOrZip?: string | null | undefined;
637
656
  }>]>>>;
638
- createdAtLocation: z.ZodString;
657
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
658
+ originalActionId: z.ZodOptional<z.ZodString>;
639
659
  }, {
640
660
  type: z.ZodLiteral<"VALIDATE">;
641
661
  }>, "strip", z.ZodTypeAny, {
642
662
  type: "VALIDATE";
643
663
  id: string;
664
+ status: "Rejected" | "Requested" | "Accepted";
665
+ transactionId: string;
644
666
  createdAt: string;
645
667
  createdBy: string;
668
+ createdByRole: string;
646
669
  declaration: Record<string, string | number | boolean | {
647
670
  type: string;
648
671
  filename: string;
@@ -680,8 +703,9 @@ export declare const EventDocument: z.ZodObject<{
680
703
  option: string;
681
704
  filename: string;
682
705
  originalFilename: string;
683
- }[] | undefined>;
684
- createdAtLocation: string;
706
+ }[] | [string, string] | undefined>;
707
+ createdBySignature?: string | null | undefined;
708
+ createdAtLocation?: string | null | undefined;
685
709
  annotation?: Record<string, string | number | boolean | {
686
710
  type: string;
687
711
  filename: string;
@@ -719,12 +743,16 @@ export declare const EventDocument: z.ZodObject<{
719
743
  option: string;
720
744
  filename: string;
721
745
  originalFilename: string;
722
- }[] | undefined> | undefined;
746
+ }[] | [string, string] | undefined> | undefined;
747
+ originalActionId?: string | undefined;
723
748
  }, {
724
749
  type: "VALIDATE";
725
750
  id: string;
751
+ status: "Rejected" | "Requested" | "Accepted";
752
+ transactionId: string;
726
753
  createdAt: string;
727
754
  createdBy: string;
755
+ createdByRole: string;
728
756
  declaration: Record<string, string | number | boolean | {
729
757
  type: string;
730
758
  filename: string;
@@ -762,8 +790,9 @@ export declare const EventDocument: z.ZodObject<{
762
790
  option: string;
763
791
  filename: string;
764
792
  originalFilename: string;
765
- }[] | undefined>;
766
- createdAtLocation: string;
793
+ }[] | [string, string] | undefined>;
794
+ createdBySignature?: string | null | undefined;
795
+ createdAtLocation?: string | null | undefined;
767
796
  annotation?: Record<string, string | number | boolean | {
768
797
  type: string;
769
798
  filename: string;
@@ -801,12 +830,17 @@ export declare const EventDocument: z.ZodObject<{
801
830
  option: string;
802
831
  filename: string;
803
832
  originalFilename: string;
804
- }[] | undefined> | undefined;
833
+ }[] | [string, string] | undefined> | undefined;
834
+ originalActionId?: string | undefined;
805
835
  }>, z.ZodObject<z.objectUtil.extendShape<{
806
836
  id: z.ZodString;
837
+ transactionId: z.ZodString;
807
838
  createdAt: z.ZodString;
808
839
  createdBy: z.ZodString;
809
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
840
+ createdByRole: z.ZodString;
841
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
842
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
843
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
810
844
  filename: z.ZodString;
811
845
  originalFilename: z.ZodString;
812
846
  type: z.ZodString;
@@ -920,7 +954,7 @@ export declare const EventDocument: z.ZodObject<{
920
954
  addressLine3?: string | null | undefined;
921
955
  postcodeOrZip?: string | null | undefined;
922
956
  }>]>>;
923
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
957
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
924
958
  filename: z.ZodString;
925
959
  originalFilename: z.ZodString;
926
960
  type: z.ZodString;
@@ -1034,14 +1068,32 @@ export declare const EventDocument: z.ZodObject<{
1034
1068
  addressLine3?: string | null | undefined;
1035
1069
  postcodeOrZip?: string | null | undefined;
1036
1070
  }>]>>>;
1037
- createdAtLocation: z.ZodString;
1071
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1072
+ originalActionId: z.ZodOptional<z.ZodString>;
1038
1073
  }, {
1039
1074
  type: z.ZodLiteral<"REJECT">;
1075
+ reason: z.ZodObject<{
1076
+ message: z.ZodString;
1077
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
1078
+ }, "strip", z.ZodTypeAny, {
1079
+ message: string;
1080
+ isDuplicate?: boolean | undefined;
1081
+ }, {
1082
+ message: string;
1083
+ isDuplicate?: boolean | undefined;
1084
+ }>;
1040
1085
  }>, "strip", z.ZodTypeAny, {
1041
1086
  type: "REJECT";
1042
1087
  id: string;
1088
+ status: "Rejected" | "Requested" | "Accepted";
1089
+ reason: {
1090
+ message: string;
1091
+ isDuplicate?: boolean | undefined;
1092
+ };
1093
+ transactionId: string;
1043
1094
  createdAt: string;
1044
1095
  createdBy: string;
1096
+ createdByRole: string;
1045
1097
  declaration: Record<string, string | number | boolean | {
1046
1098
  type: string;
1047
1099
  filename: string;
@@ -1079,8 +1131,9 @@ export declare const EventDocument: z.ZodObject<{
1079
1131
  option: string;
1080
1132
  filename: string;
1081
1133
  originalFilename: string;
1082
- }[] | undefined>;
1083
- createdAtLocation: string;
1134
+ }[] | [string, string] | undefined>;
1135
+ createdBySignature?: string | null | undefined;
1136
+ createdAtLocation?: string | null | undefined;
1084
1137
  annotation?: Record<string, string | number | boolean | {
1085
1138
  type: string;
1086
1139
  filename: string;
@@ -1118,12 +1171,20 @@ export declare const EventDocument: z.ZodObject<{
1118
1171
  option: string;
1119
1172
  filename: string;
1120
1173
  originalFilename: string;
1121
- }[] | undefined> | undefined;
1174
+ }[] | [string, string] | undefined> | undefined;
1175
+ originalActionId?: string | undefined;
1122
1176
  }, {
1123
1177
  type: "REJECT";
1124
1178
  id: string;
1179
+ status: "Rejected" | "Requested" | "Accepted";
1180
+ reason: {
1181
+ message: string;
1182
+ isDuplicate?: boolean | undefined;
1183
+ };
1184
+ transactionId: string;
1125
1185
  createdAt: string;
1126
1186
  createdBy: string;
1187
+ createdByRole: string;
1127
1188
  declaration: Record<string, string | number | boolean | {
1128
1189
  type: string;
1129
1190
  filename: string;
@@ -1161,8 +1222,9 @@ export declare const EventDocument: z.ZodObject<{
1161
1222
  option: string;
1162
1223
  filename: string;
1163
1224
  originalFilename: string;
1164
- }[] | undefined>;
1165
- createdAtLocation: string;
1225
+ }[] | [string, string] | undefined>;
1226
+ createdBySignature?: string | null | undefined;
1227
+ createdAtLocation?: string | null | undefined;
1166
1228
  annotation?: Record<string, string | number | boolean | {
1167
1229
  type: string;
1168
1230
  filename: string;
@@ -1200,12 +1262,17 @@ export declare const EventDocument: z.ZodObject<{
1200
1262
  option: string;
1201
1263
  filename: string;
1202
1264
  originalFilename: string;
1203
- }[] | undefined> | undefined;
1265
+ }[] | [string, string] | undefined> | undefined;
1266
+ originalActionId?: string | undefined;
1204
1267
  }>, z.ZodObject<z.objectUtil.extendShape<{
1205
1268
  id: z.ZodString;
1269
+ transactionId: z.ZodString;
1206
1270
  createdAt: z.ZodString;
1207
1271
  createdBy: z.ZodString;
1208
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1272
+ createdByRole: z.ZodString;
1273
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1274
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1275
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1209
1276
  filename: z.ZodString;
1210
1277
  originalFilename: z.ZodString;
1211
1278
  type: z.ZodString;
@@ -1319,7 +1386,7 @@ export declare const EventDocument: z.ZodObject<{
1319
1386
  addressLine3?: string | null | undefined;
1320
1387
  postcodeOrZip?: string | null | undefined;
1321
1388
  }>]>>;
1322
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1389
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1323
1390
  filename: z.ZodString;
1324
1391
  originalFilename: z.ZodString;
1325
1392
  type: z.ZodString;
@@ -1433,14 +1500,18 @@ export declare const EventDocument: z.ZodObject<{
1433
1500
  addressLine3?: string | null | undefined;
1434
1501
  postcodeOrZip?: string | null | undefined;
1435
1502
  }>]>>>;
1436
- createdAtLocation: z.ZodString;
1503
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1504
+ originalActionId: z.ZodOptional<z.ZodString>;
1437
1505
  }, {
1438
1506
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1439
1507
  }>, "strip", z.ZodTypeAny, {
1440
1508
  type: "MARKED_AS_DUPLICATE";
1441
1509
  id: string;
1510
+ status: "Rejected" | "Requested" | "Accepted";
1511
+ transactionId: string;
1442
1512
  createdAt: string;
1443
1513
  createdBy: string;
1514
+ createdByRole: string;
1444
1515
  declaration: Record<string, string | number | boolean | {
1445
1516
  type: string;
1446
1517
  filename: string;
@@ -1478,8 +1549,9 @@ export declare const EventDocument: z.ZodObject<{
1478
1549
  option: string;
1479
1550
  filename: string;
1480
1551
  originalFilename: string;
1481
- }[] | undefined>;
1482
- createdAtLocation: string;
1552
+ }[] | [string, string] | undefined>;
1553
+ createdBySignature?: string | null | undefined;
1554
+ createdAtLocation?: string | null | undefined;
1483
1555
  annotation?: Record<string, string | number | boolean | {
1484
1556
  type: string;
1485
1557
  filename: string;
@@ -1517,12 +1589,16 @@ export declare const EventDocument: z.ZodObject<{
1517
1589
  option: string;
1518
1590
  filename: string;
1519
1591
  originalFilename: string;
1520
- }[] | undefined> | undefined;
1592
+ }[] | [string, string] | undefined> | undefined;
1593
+ originalActionId?: string | undefined;
1521
1594
  }, {
1522
1595
  type: "MARKED_AS_DUPLICATE";
1523
1596
  id: string;
1597
+ status: "Rejected" | "Requested" | "Accepted";
1598
+ transactionId: string;
1524
1599
  createdAt: string;
1525
1600
  createdBy: string;
1601
+ createdByRole: string;
1526
1602
  declaration: Record<string, string | number | boolean | {
1527
1603
  type: string;
1528
1604
  filename: string;
@@ -1560,8 +1636,9 @@ export declare const EventDocument: z.ZodObject<{
1560
1636
  option: string;
1561
1637
  filename: string;
1562
1638
  originalFilename: string;
1563
- }[] | undefined>;
1564
- createdAtLocation: string;
1639
+ }[] | [string, string] | undefined>;
1640
+ createdBySignature?: string | null | undefined;
1641
+ createdAtLocation?: string | null | undefined;
1565
1642
  annotation?: Record<string, string | number | boolean | {
1566
1643
  type: string;
1567
1644
  filename: string;
@@ -1599,12 +1676,17 @@ export declare const EventDocument: z.ZodObject<{
1599
1676
  option: string;
1600
1677
  filename: string;
1601
1678
  originalFilename: string;
1602
- }[] | undefined> | undefined;
1679
+ }[] | [string, string] | undefined> | undefined;
1680
+ originalActionId?: string | undefined;
1603
1681
  }>, z.ZodObject<z.objectUtil.extendShape<{
1604
1682
  id: z.ZodString;
1683
+ transactionId: z.ZodString;
1605
1684
  createdAt: z.ZodString;
1606
1685
  createdBy: z.ZodString;
1607
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1686
+ createdByRole: z.ZodString;
1687
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1688
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1689
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1608
1690
  filename: z.ZodString;
1609
1691
  originalFilename: z.ZodString;
1610
1692
  type: z.ZodString;
@@ -1718,7 +1800,7 @@ export declare const EventDocument: z.ZodObject<{
1718
1800
  addressLine3?: string | null | undefined;
1719
1801
  postcodeOrZip?: string | null | undefined;
1720
1802
  }>]>>;
1721
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1803
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1722
1804
  filename: z.ZodString;
1723
1805
  originalFilename: z.ZodString;
1724
1806
  type: z.ZodString;
@@ -1832,14 +1914,32 @@ export declare const EventDocument: z.ZodObject<{
1832
1914
  addressLine3?: string | null | undefined;
1833
1915
  postcodeOrZip?: string | null | undefined;
1834
1916
  }>]>>>;
1835
- createdAtLocation: z.ZodString;
1917
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1918
+ originalActionId: z.ZodOptional<z.ZodString>;
1836
1919
  }, {
1837
1920
  type: z.ZodLiteral<"ARCHIVE">;
1921
+ reason: z.ZodObject<{
1922
+ message: z.ZodString;
1923
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
1924
+ }, "strip", z.ZodTypeAny, {
1925
+ message: string;
1926
+ isDuplicate?: boolean | undefined;
1927
+ }, {
1928
+ message: string;
1929
+ isDuplicate?: boolean | undefined;
1930
+ }>;
1838
1931
  }>, "strip", z.ZodTypeAny, {
1839
1932
  type: "ARCHIVE";
1840
1933
  id: string;
1934
+ status: "Rejected" | "Requested" | "Accepted";
1935
+ reason: {
1936
+ message: string;
1937
+ isDuplicate?: boolean | undefined;
1938
+ };
1939
+ transactionId: string;
1841
1940
  createdAt: string;
1842
1941
  createdBy: string;
1942
+ createdByRole: string;
1843
1943
  declaration: Record<string, string | number | boolean | {
1844
1944
  type: string;
1845
1945
  filename: string;
@@ -1877,8 +1977,9 @@ export declare const EventDocument: z.ZodObject<{
1877
1977
  option: string;
1878
1978
  filename: string;
1879
1979
  originalFilename: string;
1880
- }[] | undefined>;
1881
- createdAtLocation: string;
1980
+ }[] | [string, string] | undefined>;
1981
+ createdBySignature?: string | null | undefined;
1982
+ createdAtLocation?: string | null | undefined;
1882
1983
  annotation?: Record<string, string | number | boolean | {
1883
1984
  type: string;
1884
1985
  filename: string;
@@ -1916,12 +2017,20 @@ export declare const EventDocument: z.ZodObject<{
1916
2017
  option: string;
1917
2018
  filename: string;
1918
2019
  originalFilename: string;
1919
- }[] | undefined> | undefined;
2020
+ }[] | [string, string] | undefined> | undefined;
2021
+ originalActionId?: string | undefined;
1920
2022
  }, {
1921
2023
  type: "ARCHIVE";
1922
2024
  id: string;
2025
+ status: "Rejected" | "Requested" | "Accepted";
2026
+ reason: {
2027
+ message: string;
2028
+ isDuplicate?: boolean | undefined;
2029
+ };
2030
+ transactionId: string;
1923
2031
  createdAt: string;
1924
2032
  createdBy: string;
2033
+ createdByRole: string;
1925
2034
  declaration: Record<string, string | number | boolean | {
1926
2035
  type: string;
1927
2036
  filename: string;
@@ -1959,8 +2068,9 @@ export declare const EventDocument: z.ZodObject<{
1959
2068
  option: string;
1960
2069
  filename: string;
1961
2070
  originalFilename: string;
1962
- }[] | undefined>;
1963
- createdAtLocation: string;
2071
+ }[] | [string, string] | undefined>;
2072
+ createdBySignature?: string | null | undefined;
2073
+ createdAtLocation?: string | null | undefined;
1964
2074
  annotation?: Record<string, string | number | boolean | {
1965
2075
  type: string;
1966
2076
  filename: string;
@@ -1998,12 +2108,17 @@ export declare const EventDocument: z.ZodObject<{
1998
2108
  option: string;
1999
2109
  filename: string;
2000
2110
  originalFilename: string;
2001
- }[] | undefined> | undefined;
2111
+ }[] | [string, string] | undefined> | undefined;
2112
+ originalActionId?: string | undefined;
2002
2113
  }>, z.ZodObject<z.objectUtil.extendShape<{
2003
2114
  id: z.ZodString;
2115
+ transactionId: z.ZodString;
2004
2116
  createdAt: z.ZodString;
2005
2117
  createdBy: z.ZodString;
2006
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2118
+ createdByRole: z.ZodString;
2119
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2120
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2121
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2007
2122
  filename: z.ZodString;
2008
2123
  originalFilename: z.ZodString;
2009
2124
  type: z.ZodString;
@@ -2117,7 +2232,7 @@ export declare const EventDocument: z.ZodObject<{
2117
2232
  addressLine3?: string | null | undefined;
2118
2233
  postcodeOrZip?: string | null | undefined;
2119
2234
  }>]>>;
2120
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2235
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2121
2236
  filename: z.ZodString;
2122
2237
  originalFilename: z.ZodString;
2123
2238
  type: z.ZodString;
@@ -2231,14 +2346,18 @@ export declare const EventDocument: z.ZodObject<{
2231
2346
  addressLine3?: string | null | undefined;
2232
2347
  postcodeOrZip?: string | null | undefined;
2233
2348
  }>]>>>;
2234
- createdAtLocation: z.ZodString;
2349
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2350
+ originalActionId: z.ZodOptional<z.ZodString>;
2235
2351
  }, {
2236
2352
  type: z.ZodLiteral<"NOTIFY">;
2237
2353
  }>, "strip", z.ZodTypeAny, {
2238
2354
  type: "NOTIFY";
2239
2355
  id: string;
2356
+ status: "Rejected" | "Requested" | "Accepted";
2357
+ transactionId: string;
2240
2358
  createdAt: string;
2241
2359
  createdBy: string;
2360
+ createdByRole: string;
2242
2361
  declaration: Record<string, string | number | boolean | {
2243
2362
  type: string;
2244
2363
  filename: string;
@@ -2276,8 +2395,9 @@ export declare const EventDocument: z.ZodObject<{
2276
2395
  option: string;
2277
2396
  filename: string;
2278
2397
  originalFilename: string;
2279
- }[] | undefined>;
2280
- createdAtLocation: string;
2398
+ }[] | [string, string] | undefined>;
2399
+ createdBySignature?: string | null | undefined;
2400
+ createdAtLocation?: string | null | undefined;
2281
2401
  annotation?: Record<string, string | number | boolean | {
2282
2402
  type: string;
2283
2403
  filename: string;
@@ -2315,12 +2435,16 @@ export declare const EventDocument: z.ZodObject<{
2315
2435
  option: string;
2316
2436
  filename: string;
2317
2437
  originalFilename: string;
2318
- }[] | undefined> | undefined;
2438
+ }[] | [string, string] | undefined> | undefined;
2439
+ originalActionId?: string | undefined;
2319
2440
  }, {
2320
2441
  type: "NOTIFY";
2321
2442
  id: string;
2443
+ status: "Rejected" | "Requested" | "Accepted";
2444
+ transactionId: string;
2322
2445
  createdAt: string;
2323
2446
  createdBy: string;
2447
+ createdByRole: string;
2324
2448
  declaration: Record<string, string | number | boolean | {
2325
2449
  type: string;
2326
2450
  filename: string;
@@ -2358,8 +2482,9 @@ export declare const EventDocument: z.ZodObject<{
2358
2482
  option: string;
2359
2483
  filename: string;
2360
2484
  originalFilename: string;
2361
- }[] | undefined>;
2362
- createdAtLocation: string;
2485
+ }[] | [string, string] | undefined>;
2486
+ createdBySignature?: string | null | undefined;
2487
+ createdAtLocation?: string | null | undefined;
2363
2488
  annotation?: Record<string, string | number | boolean | {
2364
2489
  type: string;
2365
2490
  filename: string;
@@ -2397,12 +2522,17 @@ export declare const EventDocument: z.ZodObject<{
2397
2522
  option: string;
2398
2523
  filename: string;
2399
2524
  originalFilename: string;
2400
- }[] | undefined> | undefined;
2525
+ }[] | [string, string] | undefined> | undefined;
2526
+ originalActionId?: string | undefined;
2401
2527
  }>, z.ZodObject<z.objectUtil.extendShape<{
2402
2528
  id: z.ZodString;
2529
+ transactionId: z.ZodString;
2403
2530
  createdAt: z.ZodString;
2404
2531
  createdBy: z.ZodString;
2405
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2532
+ createdByRole: z.ZodString;
2533
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2534
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2535
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2406
2536
  filename: z.ZodString;
2407
2537
  originalFilename: z.ZodString;
2408
2538
  type: z.ZodString;
@@ -2516,7 +2646,7 @@ export declare const EventDocument: z.ZodObject<{
2516
2646
  addressLine3?: string | null | undefined;
2517
2647
  postcodeOrZip?: string | null | undefined;
2518
2648
  }>]>>;
2519
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2649
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2520
2650
  filename: z.ZodString;
2521
2651
  originalFilename: z.ZodString;
2522
2652
  type: z.ZodString;
@@ -2630,24 +2760,19 @@ export declare const EventDocument: z.ZodObject<{
2630
2760
  addressLine3?: string | null | undefined;
2631
2761
  postcodeOrZip?: string | null | undefined;
2632
2762
  }>]>>>;
2633
- createdAtLocation: z.ZodString;
2763
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2764
+ originalActionId: z.ZodOptional<z.ZodString>;
2634
2765
  }, {
2635
2766
  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
- }>;
2767
+ registrationNumber: z.ZodOptional<z.ZodString>;
2646
2768
  }>, "strip", z.ZodTypeAny, {
2647
2769
  type: "REGISTER";
2648
2770
  id: string;
2771
+ status: "Rejected" | "Requested" | "Accepted";
2772
+ transactionId: string;
2649
2773
  createdAt: string;
2650
2774
  createdBy: string;
2775
+ createdByRole: string;
2651
2776
  declaration: Record<string, string | number | boolean | {
2652
2777
  type: string;
2653
2778
  filename: string;
@@ -2685,12 +2810,9 @@ export declare const EventDocument: z.ZodObject<{
2685
2810
  option: string;
2686
2811
  filename: string;
2687
2812
  originalFilename: string;
2688
- }[] | undefined>;
2689
- createdAtLocation: string;
2690
- identifiers: {
2691
- trackingId: string;
2692
- registrationNumber: string;
2693
- };
2813
+ }[] | [string, string] | undefined>;
2814
+ createdBySignature?: string | null | undefined;
2815
+ createdAtLocation?: string | null | undefined;
2694
2816
  annotation?: Record<string, string | number | boolean | {
2695
2817
  type: string;
2696
2818
  filename: string;
@@ -2728,12 +2850,17 @@ export declare const EventDocument: z.ZodObject<{
2728
2850
  option: string;
2729
2851
  filename: string;
2730
2852
  originalFilename: string;
2731
- }[] | undefined> | undefined;
2853
+ }[] | [string, string] | undefined> | undefined;
2854
+ originalActionId?: string | undefined;
2855
+ registrationNumber?: string | undefined;
2732
2856
  }, {
2733
2857
  type: "REGISTER";
2734
2858
  id: string;
2859
+ status: "Rejected" | "Requested" | "Accepted";
2860
+ transactionId: string;
2735
2861
  createdAt: string;
2736
2862
  createdBy: string;
2863
+ createdByRole: string;
2737
2864
  declaration: Record<string, string | number | boolean | {
2738
2865
  type: string;
2739
2866
  filename: string;
@@ -2771,12 +2898,9 @@ export declare const EventDocument: z.ZodObject<{
2771
2898
  option: string;
2772
2899
  filename: string;
2773
2900
  originalFilename: string;
2774
- }[] | undefined>;
2775
- createdAtLocation: string;
2776
- identifiers: {
2777
- trackingId: string;
2778
- registrationNumber: string;
2779
- };
2901
+ }[] | [string, string] | undefined>;
2902
+ createdBySignature?: string | null | undefined;
2903
+ createdAtLocation?: string | null | undefined;
2780
2904
  annotation?: Record<string, string | number | boolean | {
2781
2905
  type: string;
2782
2906
  filename: string;
@@ -2814,12 +2938,18 @@ export declare const EventDocument: z.ZodObject<{
2814
2938
  option: string;
2815
2939
  filename: string;
2816
2940
  originalFilename: string;
2817
- }[] | undefined> | undefined;
2941
+ }[] | [string, string] | undefined> | undefined;
2942
+ originalActionId?: string | undefined;
2943
+ registrationNumber?: string | undefined;
2818
2944
  }>, z.ZodObject<z.objectUtil.extendShape<{
2819
2945
  id: z.ZodString;
2946
+ transactionId: z.ZodString;
2820
2947
  createdAt: z.ZodString;
2821
2948
  createdBy: z.ZodString;
2822
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2949
+ createdByRole: z.ZodString;
2950
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2951
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2952
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2823
2953
  filename: z.ZodString;
2824
2954
  originalFilename: z.ZodString;
2825
2955
  type: z.ZodString;
@@ -2933,7 +3063,7 @@ export declare const EventDocument: z.ZodObject<{
2933
3063
  addressLine3?: string | null | undefined;
2934
3064
  postcodeOrZip?: string | null | undefined;
2935
3065
  }>]>>;
2936
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3066
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2937
3067
  filename: z.ZodString;
2938
3068
  originalFilename: z.ZodString;
2939
3069
  type: z.ZodString;
@@ -3047,14 +3177,18 @@ export declare const EventDocument: z.ZodObject<{
3047
3177
  addressLine3?: string | null | undefined;
3048
3178
  postcodeOrZip?: string | null | undefined;
3049
3179
  }>]>>>;
3050
- createdAtLocation: z.ZodString;
3180
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3181
+ originalActionId: z.ZodOptional<z.ZodString>;
3051
3182
  }, {
3052
3183
  type: z.ZodLiteral<"DECLARE">;
3053
3184
  }>, "strip", z.ZodTypeAny, {
3054
3185
  type: "DECLARE";
3055
3186
  id: string;
3187
+ status: "Rejected" | "Requested" | "Accepted";
3188
+ transactionId: string;
3056
3189
  createdAt: string;
3057
3190
  createdBy: string;
3191
+ createdByRole: string;
3058
3192
  declaration: Record<string, string | number | boolean | {
3059
3193
  type: string;
3060
3194
  filename: string;
@@ -3092,8 +3226,9 @@ export declare const EventDocument: z.ZodObject<{
3092
3226
  option: string;
3093
3227
  filename: string;
3094
3228
  originalFilename: string;
3095
- }[] | undefined>;
3096
- createdAtLocation: string;
3229
+ }[] | [string, string] | undefined>;
3230
+ createdBySignature?: string | null | undefined;
3231
+ createdAtLocation?: string | null | undefined;
3097
3232
  annotation?: Record<string, string | number | boolean | {
3098
3233
  type: string;
3099
3234
  filename: string;
@@ -3131,12 +3266,16 @@ export declare const EventDocument: z.ZodObject<{
3131
3266
  option: string;
3132
3267
  filename: string;
3133
3268
  originalFilename: string;
3134
- }[] | undefined> | undefined;
3269
+ }[] | [string, string] | undefined> | undefined;
3270
+ originalActionId?: string | undefined;
3135
3271
  }, {
3136
3272
  type: "DECLARE";
3137
3273
  id: string;
3274
+ status: "Rejected" | "Requested" | "Accepted";
3275
+ transactionId: string;
3138
3276
  createdAt: string;
3139
3277
  createdBy: string;
3278
+ createdByRole: string;
3140
3279
  declaration: Record<string, string | number | boolean | {
3141
3280
  type: string;
3142
3281
  filename: string;
@@ -3174,8 +3313,9 @@ export declare const EventDocument: z.ZodObject<{
3174
3313
  option: string;
3175
3314
  filename: string;
3176
3315
  originalFilename: string;
3177
- }[] | undefined>;
3178
- createdAtLocation: string;
3316
+ }[] | [string, string] | undefined>;
3317
+ createdBySignature?: string | null | undefined;
3318
+ createdAtLocation?: string | null | undefined;
3179
3319
  annotation?: Record<string, string | number | boolean | {
3180
3320
  type: string;
3181
3321
  filename: string;
@@ -3213,12 +3353,17 @@ export declare const EventDocument: z.ZodObject<{
3213
3353
  option: string;
3214
3354
  filename: string;
3215
3355
  originalFilename: string;
3216
- }[] | undefined> | undefined;
3356
+ }[] | [string, string] | undefined> | undefined;
3357
+ originalActionId?: string | undefined;
3217
3358
  }>, z.ZodObject<z.objectUtil.extendShape<{
3218
3359
  id: z.ZodString;
3360
+ transactionId: z.ZodString;
3219
3361
  createdAt: z.ZodString;
3220
3362
  createdBy: z.ZodString;
3221
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3363
+ createdByRole: z.ZodString;
3364
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3365
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3366
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3222
3367
  filename: z.ZodString;
3223
3368
  originalFilename: z.ZodString;
3224
3369
  type: z.ZodString;
@@ -3332,7 +3477,7 @@ export declare const EventDocument: z.ZodObject<{
3332
3477
  addressLine3?: string | null | undefined;
3333
3478
  postcodeOrZip?: string | null | undefined;
3334
3479
  }>]>>;
3335
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3480
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3336
3481
  filename: z.ZodString;
3337
3482
  originalFilename: z.ZodString;
3338
3483
  type: z.ZodString;
@@ -3446,15 +3591,19 @@ export declare const EventDocument: z.ZodObject<{
3446
3591
  addressLine3?: string | null | undefined;
3447
3592
  postcodeOrZip?: string | null | undefined;
3448
3593
  }>]>>>;
3449
- createdAtLocation: z.ZodString;
3594
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3595
+ originalActionId: z.ZodOptional<z.ZodString>;
3450
3596
  }, {
3451
3597
  type: z.ZodLiteral<"ASSIGN">;
3452
3598
  assignedTo: z.ZodString;
3453
3599
  }>, "strip", z.ZodTypeAny, {
3454
3600
  type: "ASSIGN";
3455
3601
  id: string;
3602
+ status: "Rejected" | "Requested" | "Accepted";
3603
+ transactionId: string;
3456
3604
  createdAt: string;
3457
3605
  createdBy: string;
3606
+ createdByRole: string;
3458
3607
  declaration: Record<string, string | number | boolean | {
3459
3608
  type: string;
3460
3609
  filename: string;
@@ -3492,9 +3641,10 @@ export declare const EventDocument: z.ZodObject<{
3492
3641
  option: string;
3493
3642
  filename: string;
3494
3643
  originalFilename: string;
3495
- }[] | undefined>;
3496
- createdAtLocation: string;
3644
+ }[] | [string, string] | undefined>;
3497
3645
  assignedTo: string;
3646
+ createdBySignature?: string | null | undefined;
3647
+ createdAtLocation?: string | null | undefined;
3498
3648
  annotation?: Record<string, string | number | boolean | {
3499
3649
  type: string;
3500
3650
  filename: string;
@@ -3532,12 +3682,16 @@ export declare const EventDocument: z.ZodObject<{
3532
3682
  option: string;
3533
3683
  filename: string;
3534
3684
  originalFilename: string;
3535
- }[] | undefined> | undefined;
3685
+ }[] | [string, string] | undefined> | undefined;
3686
+ originalActionId?: string | undefined;
3536
3687
  }, {
3537
3688
  type: "ASSIGN";
3538
3689
  id: string;
3690
+ status: "Rejected" | "Requested" | "Accepted";
3691
+ transactionId: string;
3539
3692
  createdAt: string;
3540
3693
  createdBy: string;
3694
+ createdByRole: string;
3541
3695
  declaration: Record<string, string | number | boolean | {
3542
3696
  type: string;
3543
3697
  filename: string;
@@ -3575,9 +3729,10 @@ export declare const EventDocument: z.ZodObject<{
3575
3729
  option: string;
3576
3730
  filename: string;
3577
3731
  originalFilename: string;
3578
- }[] | undefined>;
3579
- createdAtLocation: string;
3732
+ }[] | [string, string] | undefined>;
3580
3733
  assignedTo: string;
3734
+ createdBySignature?: string | null | undefined;
3735
+ createdAtLocation?: string | null | undefined;
3581
3736
  annotation?: Record<string, string | number | boolean | {
3582
3737
  type: string;
3583
3738
  filename: string;
@@ -3615,12 +3770,17 @@ export declare const EventDocument: z.ZodObject<{
3615
3770
  option: string;
3616
3771
  filename: string;
3617
3772
  originalFilename: string;
3618
- }[] | undefined> | undefined;
3773
+ }[] | [string, string] | undefined> | undefined;
3774
+ originalActionId?: string | undefined;
3619
3775
  }>, z.ZodObject<z.objectUtil.extendShape<{
3620
3776
  id: z.ZodString;
3777
+ transactionId: z.ZodString;
3621
3778
  createdAt: z.ZodString;
3622
3779
  createdBy: z.ZodString;
3623
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3780
+ createdByRole: z.ZodString;
3781
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3782
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3783
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3624
3784
  filename: z.ZodString;
3625
3785
  originalFilename: z.ZodString;
3626
3786
  type: z.ZodString;
@@ -3734,7 +3894,7 @@ export declare const EventDocument: z.ZodObject<{
3734
3894
  addressLine3?: string | null | undefined;
3735
3895
  postcodeOrZip?: string | null | undefined;
3736
3896
  }>]>>;
3737
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3897
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3738
3898
  filename: z.ZodString;
3739
3899
  originalFilename: z.ZodString;
3740
3900
  type: z.ZodString;
@@ -3848,14 +4008,18 @@ export declare const EventDocument: z.ZodObject<{
3848
4008
  addressLine3?: string | null | undefined;
3849
4009
  postcodeOrZip?: string | null | undefined;
3850
4010
  }>]>>>;
3851
- createdAtLocation: z.ZodString;
4011
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4012
+ originalActionId: z.ZodOptional<z.ZodString>;
3852
4013
  }, {
3853
4014
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
3854
4015
  }>, "strip", z.ZodTypeAny, {
3855
4016
  type: "REQUEST_CORRECTION";
3856
4017
  id: string;
4018
+ status: "Rejected" | "Requested" | "Accepted";
4019
+ transactionId: string;
3857
4020
  createdAt: string;
3858
4021
  createdBy: string;
4022
+ createdByRole: string;
3859
4023
  declaration: Record<string, string | number | boolean | {
3860
4024
  type: string;
3861
4025
  filename: string;
@@ -3893,8 +4057,9 @@ export declare const EventDocument: z.ZodObject<{
3893
4057
  option: string;
3894
4058
  filename: string;
3895
4059
  originalFilename: string;
3896
- }[] | undefined>;
3897
- createdAtLocation: string;
4060
+ }[] | [string, string] | undefined>;
4061
+ createdBySignature?: string | null | undefined;
4062
+ createdAtLocation?: string | null | undefined;
3898
4063
  annotation?: Record<string, string | number | boolean | {
3899
4064
  type: string;
3900
4065
  filename: string;
@@ -3932,12 +4097,16 @@ export declare const EventDocument: z.ZodObject<{
3932
4097
  option: string;
3933
4098
  filename: string;
3934
4099
  originalFilename: string;
3935
- }[] | undefined> | undefined;
4100
+ }[] | [string, string] | undefined> | undefined;
4101
+ originalActionId?: string | undefined;
3936
4102
  }, {
3937
4103
  type: "REQUEST_CORRECTION";
3938
4104
  id: string;
4105
+ status: "Rejected" | "Requested" | "Accepted";
4106
+ transactionId: string;
3939
4107
  createdAt: string;
3940
4108
  createdBy: string;
4109
+ createdByRole: string;
3941
4110
  declaration: Record<string, string | number | boolean | {
3942
4111
  type: string;
3943
4112
  filename: string;
@@ -3975,8 +4144,9 @@ export declare const EventDocument: z.ZodObject<{
3975
4144
  option: string;
3976
4145
  filename: string;
3977
4146
  originalFilename: string;
3978
- }[] | undefined>;
3979
- createdAtLocation: string;
4147
+ }[] | [string, string] | undefined>;
4148
+ createdBySignature?: string | null | undefined;
4149
+ createdAtLocation?: string | null | undefined;
3980
4150
  annotation?: Record<string, string | number | boolean | {
3981
4151
  type: string;
3982
4152
  filename: string;
@@ -4014,12 +4184,17 @@ export declare const EventDocument: z.ZodObject<{
4014
4184
  option: string;
4015
4185
  filename: string;
4016
4186
  originalFilename: string;
4017
- }[] | undefined> | undefined;
4187
+ }[] | [string, string] | undefined> | undefined;
4188
+ originalActionId?: string | undefined;
4018
4189
  }>, z.ZodObject<z.objectUtil.extendShape<{
4019
4190
  id: z.ZodString;
4191
+ transactionId: z.ZodString;
4020
4192
  createdAt: z.ZodString;
4021
4193
  createdBy: z.ZodString;
4022
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4194
+ createdByRole: z.ZodString;
4195
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4196
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4197
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4023
4198
  filename: z.ZodString;
4024
4199
  originalFilename: z.ZodString;
4025
4200
  type: z.ZodString;
@@ -4133,7 +4308,7 @@ export declare const EventDocument: z.ZodObject<{
4133
4308
  addressLine3?: string | null | undefined;
4134
4309
  postcodeOrZip?: string | null | undefined;
4135
4310
  }>]>>;
4136
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4311
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4137
4312
  filename: z.ZodString;
4138
4313
  originalFilename: z.ZodString;
4139
4314
  type: z.ZodString;
@@ -4247,15 +4422,19 @@ export declare const EventDocument: z.ZodObject<{
4247
4422
  addressLine3?: string | null | undefined;
4248
4423
  postcodeOrZip?: string | null | undefined;
4249
4424
  }>]>>>;
4250
- createdAtLocation: z.ZodString;
4425
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4426
+ originalActionId: z.ZodOptional<z.ZodString>;
4251
4427
  }, {
4252
4428
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
4253
4429
  requestId: z.ZodString;
4254
4430
  }>, "strip", z.ZodTypeAny, {
4255
4431
  type: "APPROVE_CORRECTION";
4256
4432
  id: string;
4433
+ status: "Rejected" | "Requested" | "Accepted";
4434
+ transactionId: string;
4257
4435
  createdAt: string;
4258
4436
  createdBy: string;
4437
+ createdByRole: string;
4259
4438
  declaration: Record<string, string | number | boolean | {
4260
4439
  type: string;
4261
4440
  filename: string;
@@ -4293,9 +4472,10 @@ export declare const EventDocument: z.ZodObject<{
4293
4472
  option: string;
4294
4473
  filename: string;
4295
4474
  originalFilename: string;
4296
- }[] | undefined>;
4297
- createdAtLocation: string;
4475
+ }[] | [string, string] | undefined>;
4298
4476
  requestId: string;
4477
+ createdBySignature?: string | null | undefined;
4478
+ createdAtLocation?: string | null | undefined;
4299
4479
  annotation?: Record<string, string | number | boolean | {
4300
4480
  type: string;
4301
4481
  filename: string;
@@ -4333,12 +4513,16 @@ export declare const EventDocument: z.ZodObject<{
4333
4513
  option: string;
4334
4514
  filename: string;
4335
4515
  originalFilename: string;
4336
- }[] | undefined> | undefined;
4516
+ }[] | [string, string] | undefined> | undefined;
4517
+ originalActionId?: string | undefined;
4337
4518
  }, {
4338
4519
  type: "APPROVE_CORRECTION";
4339
4520
  id: string;
4521
+ status: "Rejected" | "Requested" | "Accepted";
4522
+ transactionId: string;
4340
4523
  createdAt: string;
4341
4524
  createdBy: string;
4525
+ createdByRole: string;
4342
4526
  declaration: Record<string, string | number | boolean | {
4343
4527
  type: string;
4344
4528
  filename: string;
@@ -4376,9 +4560,10 @@ export declare const EventDocument: z.ZodObject<{
4376
4560
  option: string;
4377
4561
  filename: string;
4378
4562
  originalFilename: string;
4379
- }[] | undefined>;
4380
- createdAtLocation: string;
4563
+ }[] | [string, string] | undefined>;
4381
4564
  requestId: string;
4565
+ createdBySignature?: string | null | undefined;
4566
+ createdAtLocation?: string | null | undefined;
4382
4567
  annotation?: Record<string, string | number | boolean | {
4383
4568
  type: string;
4384
4569
  filename: string;
@@ -4416,12 +4601,17 @@ export declare const EventDocument: z.ZodObject<{
4416
4601
  option: string;
4417
4602
  filename: string;
4418
4603
  originalFilename: string;
4419
- }[] | undefined> | undefined;
4604
+ }[] | [string, string] | undefined> | undefined;
4605
+ originalActionId?: string | undefined;
4420
4606
  }>, z.ZodObject<z.objectUtil.extendShape<{
4421
4607
  id: z.ZodString;
4608
+ transactionId: z.ZodString;
4422
4609
  createdAt: z.ZodString;
4423
4610
  createdBy: z.ZodString;
4424
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4611
+ createdByRole: z.ZodString;
4612
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4613
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4614
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4425
4615
  filename: z.ZodString;
4426
4616
  originalFilename: z.ZodString;
4427
4617
  type: z.ZodString;
@@ -4535,7 +4725,7 @@ export declare const EventDocument: z.ZodObject<{
4535
4725
  addressLine3?: string | null | undefined;
4536
4726
  postcodeOrZip?: string | null | undefined;
4537
4727
  }>]>>;
4538
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4728
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4539
4729
  filename: z.ZodString;
4540
4730
  originalFilename: z.ZodString;
4541
4731
  type: z.ZodString;
@@ -4649,15 +4839,19 @@ export declare const EventDocument: z.ZodObject<{
4649
4839
  addressLine3?: string | null | undefined;
4650
4840
  postcodeOrZip?: string | null | undefined;
4651
4841
  }>]>>>;
4652
- createdAtLocation: z.ZodString;
4842
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4843
+ originalActionId: z.ZodOptional<z.ZodString>;
4653
4844
  }, {
4654
4845
  type: z.ZodLiteral<"REJECT_CORRECTION">;
4655
4846
  requestId: z.ZodString;
4656
4847
  }>, "strip", z.ZodTypeAny, {
4657
4848
  type: "REJECT_CORRECTION";
4658
4849
  id: string;
4850
+ status: "Rejected" | "Requested" | "Accepted";
4851
+ transactionId: string;
4659
4852
  createdAt: string;
4660
4853
  createdBy: string;
4854
+ createdByRole: string;
4661
4855
  declaration: Record<string, string | number | boolean | {
4662
4856
  type: string;
4663
4857
  filename: string;
@@ -4695,9 +4889,10 @@ export declare const EventDocument: z.ZodObject<{
4695
4889
  option: string;
4696
4890
  filename: string;
4697
4891
  originalFilename: string;
4698
- }[] | undefined>;
4699
- createdAtLocation: string;
4892
+ }[] | [string, string] | undefined>;
4700
4893
  requestId: string;
4894
+ createdBySignature?: string | null | undefined;
4895
+ createdAtLocation?: string | null | undefined;
4701
4896
  annotation?: Record<string, string | number | boolean | {
4702
4897
  type: string;
4703
4898
  filename: string;
@@ -4735,12 +4930,16 @@ export declare const EventDocument: z.ZodObject<{
4735
4930
  option: string;
4736
4931
  filename: string;
4737
4932
  originalFilename: string;
4738
- }[] | undefined> | undefined;
4933
+ }[] | [string, string] | undefined> | undefined;
4934
+ originalActionId?: string | undefined;
4739
4935
  }, {
4740
4936
  type: "REJECT_CORRECTION";
4741
4937
  id: string;
4938
+ status: "Rejected" | "Requested" | "Accepted";
4939
+ transactionId: string;
4742
4940
  createdAt: string;
4743
4941
  createdBy: string;
4942
+ createdByRole: string;
4744
4943
  declaration: Record<string, string | number | boolean | {
4745
4944
  type: string;
4746
4945
  filename: string;
@@ -4778,9 +4977,10 @@ export declare const EventDocument: z.ZodObject<{
4778
4977
  option: string;
4779
4978
  filename: string;
4780
4979
  originalFilename: string;
4781
- }[] | undefined>;
4782
- createdAtLocation: string;
4980
+ }[] | [string, string] | undefined>;
4783
4981
  requestId: string;
4982
+ createdBySignature?: string | null | undefined;
4983
+ createdAtLocation?: string | null | undefined;
4784
4984
  annotation?: Record<string, string | number | boolean | {
4785
4985
  type: string;
4786
4986
  filename: string;
@@ -4818,12 +5018,17 @@ export declare const EventDocument: z.ZodObject<{
4818
5018
  option: string;
4819
5019
  filename: string;
4820
5020
  originalFilename: string;
4821
- }[] | undefined> | undefined;
5021
+ }[] | [string, string] | undefined> | undefined;
5022
+ originalActionId?: string | undefined;
4822
5023
  }>, z.ZodObject<z.objectUtil.extendShape<{
4823
5024
  id: z.ZodString;
5025
+ transactionId: z.ZodString;
4824
5026
  createdAt: z.ZodString;
4825
5027
  createdBy: z.ZodString;
4826
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5028
+ createdByRole: z.ZodString;
5029
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5030
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5031
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4827
5032
  filename: z.ZodString;
4828
5033
  originalFilename: z.ZodString;
4829
5034
  type: z.ZodString;
@@ -4937,7 +5142,7 @@ export declare const EventDocument: z.ZodObject<{
4937
5142
  addressLine3?: string | null | undefined;
4938
5143
  postcodeOrZip?: string | null | undefined;
4939
5144
  }>]>>;
4940
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5145
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4941
5146
  filename: z.ZodString;
4942
5147
  originalFilename: z.ZodString;
4943
5148
  type: z.ZodString;
@@ -5051,14 +5256,19 @@ export declare const EventDocument: z.ZodObject<{
5051
5256
  addressLine3?: string | null | undefined;
5052
5257
  postcodeOrZip?: string | null | undefined;
5053
5258
  }>]>>>;
5054
- createdAtLocation: z.ZodString;
5259
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5260
+ originalActionId: z.ZodOptional<z.ZodString>;
5055
5261
  }, {
5056
5262
  type: z.ZodLiteral<"UNASSIGN">;
5263
+ assignedTo: z.ZodLiteral<null>;
5057
5264
  }>, "strip", z.ZodTypeAny, {
5058
5265
  type: "UNASSIGN";
5059
5266
  id: string;
5267
+ status: "Rejected" | "Requested" | "Accepted";
5268
+ transactionId: string;
5060
5269
  createdAt: string;
5061
5270
  createdBy: string;
5271
+ createdByRole: string;
5062
5272
  declaration: Record<string, string | number | boolean | {
5063
5273
  type: string;
5064
5274
  filename: string;
@@ -5096,8 +5306,10 @@ export declare const EventDocument: z.ZodObject<{
5096
5306
  option: string;
5097
5307
  filename: string;
5098
5308
  originalFilename: string;
5099
- }[] | undefined>;
5100
- createdAtLocation: string;
5309
+ }[] | [string, string] | undefined>;
5310
+ assignedTo: null;
5311
+ createdBySignature?: string | null | undefined;
5312
+ createdAtLocation?: string | null | undefined;
5101
5313
  annotation?: Record<string, string | number | boolean | {
5102
5314
  type: string;
5103
5315
  filename: string;
@@ -5135,12 +5347,16 @@ export declare const EventDocument: z.ZodObject<{
5135
5347
  option: string;
5136
5348
  filename: string;
5137
5349
  originalFilename: string;
5138
- }[] | undefined> | undefined;
5350
+ }[] | [string, string] | undefined> | undefined;
5351
+ originalActionId?: string | undefined;
5139
5352
  }, {
5140
5353
  type: "UNASSIGN";
5141
5354
  id: string;
5355
+ status: "Rejected" | "Requested" | "Accepted";
5356
+ transactionId: string;
5142
5357
  createdAt: string;
5143
5358
  createdBy: string;
5359
+ createdByRole: string;
5144
5360
  declaration: Record<string, string | number | boolean | {
5145
5361
  type: string;
5146
5362
  filename: string;
@@ -5178,8 +5394,10 @@ export declare const EventDocument: z.ZodObject<{
5178
5394
  option: string;
5179
5395
  filename: string;
5180
5396
  originalFilename: string;
5181
- }[] | undefined>;
5182
- createdAtLocation: string;
5397
+ }[] | [string, string] | undefined>;
5398
+ assignedTo: null;
5399
+ createdBySignature?: string | null | undefined;
5400
+ createdAtLocation?: string | null | undefined;
5183
5401
  annotation?: Record<string, string | number | boolean | {
5184
5402
  type: string;
5185
5403
  filename: string;
@@ -5217,12 +5435,17 @@ export declare const EventDocument: z.ZodObject<{
5217
5435
  option: string;
5218
5436
  filename: string;
5219
5437
  originalFilename: string;
5220
- }[] | undefined> | undefined;
5438
+ }[] | [string, string] | undefined> | undefined;
5439
+ originalActionId?: string | undefined;
5221
5440
  }>, z.ZodObject<z.objectUtil.extendShape<{
5222
5441
  id: z.ZodString;
5442
+ transactionId: z.ZodString;
5223
5443
  createdAt: z.ZodString;
5224
5444
  createdBy: z.ZodString;
5225
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5445
+ createdByRole: z.ZodString;
5446
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5447
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5448
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5226
5449
  filename: z.ZodString;
5227
5450
  originalFilename: z.ZodString;
5228
5451
  type: z.ZodString;
@@ -5336,7 +5559,7 @@ export declare const EventDocument: z.ZodObject<{
5336
5559
  addressLine3?: string | null | undefined;
5337
5560
  postcodeOrZip?: string | null | undefined;
5338
5561
  }>]>>;
5339
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5562
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5340
5563
  filename: z.ZodString;
5341
5564
  originalFilename: z.ZodString;
5342
5565
  type: z.ZodString;
@@ -5450,14 +5673,18 @@ export declare const EventDocument: z.ZodObject<{
5450
5673
  addressLine3?: string | null | undefined;
5451
5674
  postcodeOrZip?: string | null | undefined;
5452
5675
  }>]>>>;
5453
- createdAtLocation: z.ZodString;
5676
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5677
+ originalActionId: z.ZodOptional<z.ZodString>;
5454
5678
  }, {
5455
5679
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
5456
5680
  }>, "strip", z.ZodTypeAny, {
5457
5681
  type: "PRINT_CERTIFICATE";
5458
5682
  id: string;
5683
+ status: "Rejected" | "Requested" | "Accepted";
5684
+ transactionId: string;
5459
5685
  createdAt: string;
5460
5686
  createdBy: string;
5687
+ createdByRole: string;
5461
5688
  declaration: Record<string, string | number | boolean | {
5462
5689
  type: string;
5463
5690
  filename: string;
@@ -5495,8 +5722,9 @@ export declare const EventDocument: z.ZodObject<{
5495
5722
  option: string;
5496
5723
  filename: string;
5497
5724
  originalFilename: string;
5498
- }[] | undefined>;
5499
- createdAtLocation: string;
5725
+ }[] | [string, string] | undefined>;
5726
+ createdBySignature?: string | null | undefined;
5727
+ createdAtLocation?: string | null | undefined;
5500
5728
  annotation?: Record<string, string | number | boolean | {
5501
5729
  type: string;
5502
5730
  filename: string;
@@ -5534,12 +5762,16 @@ export declare const EventDocument: z.ZodObject<{
5534
5762
  option: string;
5535
5763
  filename: string;
5536
5764
  originalFilename: string;
5537
- }[] | undefined> | undefined;
5765
+ }[] | [string, string] | undefined> | undefined;
5766
+ originalActionId?: string | undefined;
5538
5767
  }, {
5539
5768
  type: "PRINT_CERTIFICATE";
5540
5769
  id: string;
5770
+ status: "Rejected" | "Requested" | "Accepted";
5771
+ transactionId: string;
5541
5772
  createdAt: string;
5542
5773
  createdBy: string;
5774
+ createdByRole: string;
5543
5775
  declaration: Record<string, string | number | boolean | {
5544
5776
  type: string;
5545
5777
  filename: string;
@@ -5577,8 +5809,9 @@ export declare const EventDocument: z.ZodObject<{
5577
5809
  option: string;
5578
5810
  filename: string;
5579
5811
  originalFilename: string;
5580
- }[] | undefined>;
5581
- createdAtLocation: string;
5812
+ }[] | [string, string] | undefined>;
5813
+ createdBySignature?: string | null | undefined;
5814
+ createdAtLocation?: string | null | undefined;
5582
5815
  annotation?: Record<string, string | number | boolean | {
5583
5816
  type: string;
5584
5817
  filename: string;
@@ -5616,12 +5849,17 @@ export declare const EventDocument: z.ZodObject<{
5616
5849
  option: string;
5617
5850
  filename: string;
5618
5851
  originalFilename: string;
5619
- }[] | undefined> | undefined;
5852
+ }[] | [string, string] | undefined> | undefined;
5853
+ originalActionId?: string | undefined;
5620
5854
  }>, z.ZodObject<z.objectUtil.extendShape<{
5621
5855
  id: z.ZodString;
5856
+ transactionId: z.ZodString;
5622
5857
  createdAt: z.ZodString;
5623
5858
  createdBy: z.ZodString;
5624
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5859
+ createdByRole: z.ZodString;
5860
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5861
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5862
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5625
5863
  filename: z.ZodString;
5626
5864
  originalFilename: z.ZodString;
5627
5865
  type: z.ZodString;
@@ -5735,7 +5973,7 @@ export declare const EventDocument: z.ZodObject<{
5735
5973
  addressLine3?: string | null | undefined;
5736
5974
  postcodeOrZip?: string | null | undefined;
5737
5975
  }>]>>;
5738
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5976
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5739
5977
  filename: z.ZodString;
5740
5978
  originalFilename: z.ZodString;
5741
5979
  type: z.ZodString;
@@ -5849,14 +6087,18 @@ export declare const EventDocument: z.ZodObject<{
5849
6087
  addressLine3?: string | null | undefined;
5850
6088
  postcodeOrZip?: string | null | undefined;
5851
6089
  }>]>>>;
5852
- createdAtLocation: z.ZodString;
6090
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6091
+ originalActionId: z.ZodOptional<z.ZodString>;
5853
6092
  }, {
5854
6093
  type: z.ZodLiteral<"READ">;
5855
6094
  }>, "strip", z.ZodTypeAny, {
5856
6095
  type: "READ";
5857
6096
  id: string;
6097
+ status: "Rejected" | "Requested" | "Accepted";
6098
+ transactionId: string;
5858
6099
  createdAt: string;
5859
6100
  createdBy: string;
6101
+ createdByRole: string;
5860
6102
  declaration: Record<string, string | number | boolean | {
5861
6103
  type: string;
5862
6104
  filename: string;
@@ -5894,8 +6136,9 @@ export declare const EventDocument: z.ZodObject<{
5894
6136
  option: string;
5895
6137
  filename: string;
5896
6138
  originalFilename: string;
5897
- }[] | undefined>;
5898
- createdAtLocation: string;
6139
+ }[] | [string, string] | undefined>;
6140
+ createdBySignature?: string | null | undefined;
6141
+ createdAtLocation?: string | null | undefined;
5899
6142
  annotation?: Record<string, string | number | boolean | {
5900
6143
  type: string;
5901
6144
  filename: string;
@@ -5933,12 +6176,16 @@ export declare const EventDocument: z.ZodObject<{
5933
6176
  option: string;
5934
6177
  filename: string;
5935
6178
  originalFilename: string;
5936
- }[] | undefined> | undefined;
6179
+ }[] | [string, string] | undefined> | undefined;
6180
+ originalActionId?: string | undefined;
5937
6181
  }, {
5938
6182
  type: "READ";
5939
6183
  id: string;
6184
+ status: "Rejected" | "Requested" | "Accepted";
6185
+ transactionId: string;
5940
6186
  createdAt: string;
5941
6187
  createdBy: string;
6188
+ createdByRole: string;
5942
6189
  declaration: Record<string, string | number | boolean | {
5943
6190
  type: string;
5944
6191
  filename: string;
@@ -5976,8 +6223,9 @@ export declare const EventDocument: z.ZodObject<{
5976
6223
  option: string;
5977
6224
  filename: string;
5978
6225
  originalFilename: string;
5979
- }[] | undefined>;
5980
- createdAtLocation: string;
6226
+ }[] | [string, string] | undefined>;
6227
+ createdBySignature?: string | null | undefined;
6228
+ createdAtLocation?: string | null | undefined;
5981
6229
  annotation?: Record<string, string | number | boolean | {
5982
6230
  type: string;
5983
6231
  filename: string;
@@ -6015,20 +6263,286 @@ export declare const EventDocument: z.ZodObject<{
6015
6263
  option: string;
6016
6264
  filename: string;
6017
6265
  originalFilename: string;
6018
- }[] | undefined> | undefined;
6266
+ }[] | [string, string] | undefined> | undefined;
6267
+ originalActionId?: string | undefined;
6268
+ }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6269
+ id: z.ZodString;
6270
+ transactionId: z.ZodString;
6271
+ createdAt: z.ZodString;
6272
+ createdBy: z.ZodString;
6273
+ createdByRole: z.ZodString;
6274
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6275
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6276
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6277
+ filename: z.ZodString;
6278
+ originalFilename: z.ZodString;
6279
+ type: z.ZodString;
6280
+ }, "strip", z.ZodTypeAny, {
6281
+ type: string;
6282
+ filename: string;
6283
+ originalFilename: string;
6284
+ }, {
6285
+ type: string;
6286
+ filename: string;
6287
+ originalFilename: string;
6288
+ }>, z.ZodArray<z.ZodObject<{
6289
+ filename: z.ZodString;
6290
+ originalFilename: z.ZodString;
6291
+ type: z.ZodString;
6292
+ option: z.ZodString;
6293
+ }, "strip", z.ZodTypeAny, {
6294
+ type: string;
6295
+ option: string;
6296
+ filename: string;
6297
+ originalFilename: string;
6298
+ }, {
6299
+ type: string;
6300
+ option: string;
6301
+ filename: string;
6302
+ originalFilename: string;
6303
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6304
+ country: z.ZodString;
6305
+ addressType: z.ZodLiteral<"DOMESTIC">;
6306
+ province: z.ZodString;
6307
+ district: z.ZodString;
6308
+ }, {
6309
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6310
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6311
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6312
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6313
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6314
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6315
+ }>, "strip", z.ZodTypeAny, {
6316
+ country: string;
6317
+ district: string;
6318
+ addressType: "DOMESTIC";
6319
+ province: string;
6320
+ urbanOrRural: "URBAN";
6321
+ number?: string | null | undefined;
6322
+ town?: string | null | undefined;
6323
+ residentialArea?: string | null | undefined;
6324
+ street?: string | null | undefined;
6325
+ zipCode?: string | null | undefined;
6326
+ }, {
6327
+ country: string;
6328
+ district: string;
6329
+ addressType: "DOMESTIC";
6330
+ province: string;
6331
+ urbanOrRural: "URBAN";
6332
+ number?: string | null | undefined;
6333
+ town?: string | null | undefined;
6334
+ residentialArea?: string | null | undefined;
6335
+ street?: string | null | undefined;
6336
+ zipCode?: string | null | undefined;
6337
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6338
+ country: z.ZodString;
6339
+ addressType: z.ZodLiteral<"DOMESTIC">;
6340
+ province: z.ZodString;
6341
+ district: z.ZodString;
6342
+ }, {
6343
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6344
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6345
+ }>, "strip", z.ZodTypeAny, {
6346
+ country: string;
6347
+ district: string;
6348
+ addressType: "DOMESTIC";
6349
+ province: string;
6350
+ urbanOrRural: "RURAL";
6351
+ village?: string | null | undefined;
6352
+ }, {
6353
+ country: string;
6354
+ district: string;
6355
+ addressType: "DOMESTIC";
6356
+ province: string;
6357
+ urbanOrRural: "RURAL";
6358
+ village?: string | null | undefined;
6359
+ }>, z.ZodUndefined, z.ZodObject<{
6360
+ country: z.ZodString;
6361
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6362
+ state: z.ZodString;
6363
+ district2: z.ZodString;
6364
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6365
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6366
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6367
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6368
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6369
+ }, "strip", z.ZodTypeAny, {
6370
+ country: string;
6371
+ state: string;
6372
+ addressType: "INTERNATIONAL";
6373
+ district2: string;
6374
+ cityOrTown?: string | null | undefined;
6375
+ addressLine1?: string | null | undefined;
6376
+ addressLine2?: string | null | undefined;
6377
+ addressLine3?: string | null | undefined;
6378
+ postcodeOrZip?: string | null | undefined;
6379
+ }, {
6380
+ country: string;
6381
+ state: string;
6382
+ addressType: "INTERNATIONAL";
6383
+ district2: string;
6384
+ cityOrTown?: string | null | undefined;
6385
+ addressLine1?: string | null | undefined;
6386
+ addressLine2?: string | null | undefined;
6387
+ addressLine3?: string | null | undefined;
6388
+ postcodeOrZip?: string | null | undefined;
6389
+ }>]>>;
6390
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6391
+ filename: z.ZodString;
6392
+ originalFilename: z.ZodString;
6393
+ type: z.ZodString;
6394
+ }, "strip", z.ZodTypeAny, {
6395
+ type: string;
6396
+ filename: string;
6397
+ originalFilename: string;
6398
+ }, {
6399
+ type: string;
6400
+ filename: string;
6401
+ originalFilename: string;
6402
+ }>, z.ZodArray<z.ZodObject<{
6403
+ filename: z.ZodString;
6404
+ originalFilename: z.ZodString;
6405
+ type: z.ZodString;
6406
+ option: z.ZodString;
6407
+ }, "strip", z.ZodTypeAny, {
6408
+ type: string;
6409
+ option: string;
6410
+ filename: string;
6411
+ originalFilename: string;
6412
+ }, {
6413
+ type: string;
6414
+ option: string;
6415
+ filename: string;
6416
+ originalFilename: string;
6417
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6418
+ country: z.ZodString;
6419
+ addressType: z.ZodLiteral<"DOMESTIC">;
6420
+ province: z.ZodString;
6421
+ district: z.ZodString;
6422
+ }, {
6423
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6424
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6425
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6426
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6427
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6428
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6429
+ }>, "strip", z.ZodTypeAny, {
6430
+ country: string;
6431
+ district: string;
6432
+ addressType: "DOMESTIC";
6433
+ province: string;
6434
+ urbanOrRural: "URBAN";
6435
+ number?: string | null | undefined;
6436
+ town?: string | null | undefined;
6437
+ residentialArea?: string | null | undefined;
6438
+ street?: string | null | undefined;
6439
+ zipCode?: string | null | undefined;
6440
+ }, {
6441
+ country: string;
6442
+ district: string;
6443
+ addressType: "DOMESTIC";
6444
+ province: string;
6445
+ urbanOrRural: "URBAN";
6446
+ number?: string | null | undefined;
6447
+ town?: string | null | undefined;
6448
+ residentialArea?: string | null | undefined;
6449
+ street?: string | null | undefined;
6450
+ zipCode?: string | null | undefined;
6451
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6452
+ country: z.ZodString;
6453
+ addressType: z.ZodLiteral<"DOMESTIC">;
6454
+ province: z.ZodString;
6455
+ district: z.ZodString;
6456
+ }, {
6457
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6458
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6459
+ }>, "strip", z.ZodTypeAny, {
6460
+ country: string;
6461
+ district: string;
6462
+ addressType: "DOMESTIC";
6463
+ province: string;
6464
+ urbanOrRural: "RURAL";
6465
+ village?: string | null | undefined;
6466
+ }, {
6467
+ country: string;
6468
+ district: string;
6469
+ addressType: "DOMESTIC";
6470
+ province: string;
6471
+ urbanOrRural: "RURAL";
6472
+ village?: string | null | undefined;
6473
+ }>, z.ZodUndefined, z.ZodObject<{
6474
+ country: z.ZodString;
6475
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6476
+ state: z.ZodString;
6477
+ district2: z.ZodString;
6478
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6479
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6480
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6481
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6482
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6483
+ }, "strip", z.ZodTypeAny, {
6484
+ country: string;
6485
+ state: string;
6486
+ addressType: "INTERNATIONAL";
6487
+ district2: string;
6488
+ cityOrTown?: string | null | undefined;
6489
+ addressLine1?: string | null | undefined;
6490
+ addressLine2?: string | null | undefined;
6491
+ addressLine3?: string | null | undefined;
6492
+ postcodeOrZip?: string | null | undefined;
6493
+ }, {
6494
+ country: string;
6495
+ state: string;
6496
+ addressType: "INTERNATIONAL";
6497
+ district2: string;
6498
+ cityOrTown?: string | null | undefined;
6499
+ addressLine1?: string | null | undefined;
6500
+ addressLine2?: string | null | undefined;
6501
+ addressLine3?: string | null | undefined;
6502
+ postcodeOrZip?: string | null | undefined;
6503
+ }>]>>>;
6504
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6505
+ originalActionId: z.ZodOptional<z.ZodString>;
6506
+ }, "declaration" | "annotation">, {
6507
+ type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
6508
+ status: z.ZodLiteral<"Rejected">;
6509
+ }>, "strip", z.ZodTypeAny, {
6510
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6511
+ id: string;
6512
+ status: "Rejected";
6513
+ transactionId: string;
6514
+ createdAt: string;
6515
+ createdBy: string;
6516
+ createdByRole: string;
6517
+ createdBySignature?: string | null | undefined;
6518
+ createdAtLocation?: string | null | undefined;
6519
+ originalActionId?: string | undefined;
6520
+ }, {
6521
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6522
+ id: string;
6523
+ status: "Rejected";
6524
+ transactionId: string;
6525
+ createdAt: string;
6526
+ createdBy: string;
6527
+ createdByRole: string;
6528
+ createdBySignature?: string | null | undefined;
6529
+ createdAtLocation?: string | null | undefined;
6530
+ originalActionId?: string | undefined;
6019
6531
  }>]>, "many">;
6020
6532
  trackingId: z.ZodString;
6021
6533
  }, "strip", z.ZodTypeAny, {
6022
6534
  type: string;
6023
6535
  id: string;
6024
6536
  createdAt: string;
6025
- trackingId: string;
6026
6537
  updatedAt: string;
6027
6538
  actions: ({
6028
6539
  type: "ASSIGN";
6029
6540
  id: string;
6541
+ status: "Rejected" | "Requested" | "Accepted";
6542
+ transactionId: string;
6030
6543
  createdAt: string;
6031
6544
  createdBy: string;
6545
+ createdByRole: string;
6032
6546
  declaration: Record<string, string | number | boolean | {
6033
6547
  type: string;
6034
6548
  filename: string;
@@ -6066,9 +6580,10 @@ export declare const EventDocument: z.ZodObject<{
6066
6580
  option: string;
6067
6581
  filename: string;
6068
6582
  originalFilename: string;
6069
- }[] | undefined>;
6070
- createdAtLocation: string;
6583
+ }[] | [string, string] | undefined>;
6071
6584
  assignedTo: string;
6585
+ createdBySignature?: string | null | undefined;
6586
+ createdAtLocation?: string | null | undefined;
6072
6587
  annotation?: Record<string, string | number | boolean | {
6073
6588
  type: string;
6074
6589
  filename: string;
@@ -6106,12 +6621,16 @@ export declare const EventDocument: z.ZodObject<{
6106
6621
  option: string;
6107
6622
  filename: string;
6108
6623
  originalFilename: string;
6109
- }[] | undefined> | undefined;
6624
+ }[] | [string, string] | undefined> | undefined;
6625
+ originalActionId?: string | undefined;
6110
6626
  } | {
6111
6627
  type: "UNASSIGN";
6112
6628
  id: string;
6629
+ status: "Rejected" | "Requested" | "Accepted";
6630
+ transactionId: string;
6113
6631
  createdAt: string;
6114
6632
  createdBy: string;
6633
+ createdByRole: string;
6115
6634
  declaration: Record<string, string | number | boolean | {
6116
6635
  type: string;
6117
6636
  filename: string;
@@ -6149,8 +6668,10 @@ export declare const EventDocument: z.ZodObject<{
6149
6668
  option: string;
6150
6669
  filename: string;
6151
6670
  originalFilename: string;
6152
- }[] | undefined>;
6153
- createdAtLocation: string;
6671
+ }[] | [string, string] | undefined>;
6672
+ assignedTo: null;
6673
+ createdBySignature?: string | null | undefined;
6674
+ createdAtLocation?: string | null | undefined;
6154
6675
  annotation?: Record<string, string | number | boolean | {
6155
6676
  type: string;
6156
6677
  filename: string;
@@ -6188,12 +6709,16 @@ export declare const EventDocument: z.ZodObject<{
6188
6709
  option: string;
6189
6710
  filename: string;
6190
6711
  originalFilename: string;
6191
- }[] | undefined> | undefined;
6712
+ }[] | [string, string] | undefined> | undefined;
6713
+ originalActionId?: string | undefined;
6192
6714
  } | {
6193
6715
  type: "REGISTER";
6194
6716
  id: string;
6717
+ status: "Rejected" | "Requested" | "Accepted";
6718
+ transactionId: string;
6195
6719
  createdAt: string;
6196
6720
  createdBy: string;
6721
+ createdByRole: string;
6197
6722
  declaration: Record<string, string | number | boolean | {
6198
6723
  type: string;
6199
6724
  filename: string;
@@ -6231,12 +6756,9 @@ export declare const EventDocument: z.ZodObject<{
6231
6756
  option: string;
6232
6757
  filename: string;
6233
6758
  originalFilename: string;
6234
- }[] | undefined>;
6235
- createdAtLocation: string;
6236
- identifiers: {
6237
- trackingId: string;
6238
- registrationNumber: string;
6239
- };
6759
+ }[] | [string, string] | undefined>;
6760
+ createdBySignature?: string | null | undefined;
6761
+ createdAtLocation?: string | null | undefined;
6240
6762
  annotation?: Record<string, string | number | boolean | {
6241
6763
  type: string;
6242
6764
  filename: string;
@@ -6274,12 +6796,17 @@ export declare const EventDocument: z.ZodObject<{
6274
6796
  option: string;
6275
6797
  filename: string;
6276
6798
  originalFilename: string;
6277
- }[] | undefined> | undefined;
6799
+ }[] | [string, string] | undefined> | undefined;
6800
+ originalActionId?: string | undefined;
6801
+ registrationNumber?: string | undefined;
6278
6802
  } | {
6279
6803
  type: "DECLARE";
6280
6804
  id: string;
6805
+ status: "Rejected" | "Requested" | "Accepted";
6806
+ transactionId: string;
6281
6807
  createdAt: string;
6282
6808
  createdBy: string;
6809
+ createdByRole: string;
6283
6810
  declaration: Record<string, string | number | boolean | {
6284
6811
  type: string;
6285
6812
  filename: string;
@@ -6317,8 +6844,9 @@ export declare const EventDocument: z.ZodObject<{
6317
6844
  option: string;
6318
6845
  filename: string;
6319
6846
  originalFilename: string;
6320
- }[] | undefined>;
6321
- createdAtLocation: string;
6847
+ }[] | [string, string] | undefined>;
6848
+ createdBySignature?: string | null | undefined;
6849
+ createdAtLocation?: string | null | undefined;
6322
6850
  annotation?: Record<string, string | number | boolean | {
6323
6851
  type: string;
6324
6852
  filename: string;
@@ -6356,12 +6884,16 @@ export declare const EventDocument: z.ZodObject<{
6356
6884
  option: string;
6357
6885
  filename: string;
6358
6886
  originalFilename: string;
6359
- }[] | undefined> | undefined;
6887
+ }[] | [string, string] | undefined> | undefined;
6888
+ originalActionId?: string | undefined;
6360
6889
  } | {
6361
6890
  type: "VALIDATE";
6362
6891
  id: string;
6892
+ status: "Rejected" | "Requested" | "Accepted";
6893
+ transactionId: string;
6363
6894
  createdAt: string;
6364
6895
  createdBy: string;
6896
+ createdByRole: string;
6365
6897
  declaration: Record<string, string | number | boolean | {
6366
6898
  type: string;
6367
6899
  filename: string;
@@ -6399,8 +6931,9 @@ export declare const EventDocument: z.ZodObject<{
6399
6931
  option: string;
6400
6932
  filename: string;
6401
6933
  originalFilename: string;
6402
- }[] | undefined>;
6403
- createdAtLocation: string;
6934
+ }[] | [string, string] | undefined>;
6935
+ createdBySignature?: string | null | undefined;
6936
+ createdAtLocation?: string | null | undefined;
6404
6937
  annotation?: Record<string, string | number | boolean | {
6405
6938
  type: string;
6406
6939
  filename: string;
@@ -6438,12 +6971,20 @@ export declare const EventDocument: z.ZodObject<{
6438
6971
  option: string;
6439
6972
  filename: string;
6440
6973
  originalFilename: string;
6441
- }[] | undefined> | undefined;
6974
+ }[] | [string, string] | undefined> | undefined;
6975
+ originalActionId?: string | undefined;
6442
6976
  } | {
6443
6977
  type: "REJECT";
6444
6978
  id: string;
6979
+ status: "Rejected" | "Requested" | "Accepted";
6980
+ reason: {
6981
+ message: string;
6982
+ isDuplicate?: boolean | undefined;
6983
+ };
6984
+ transactionId: string;
6445
6985
  createdAt: string;
6446
6986
  createdBy: string;
6987
+ createdByRole: string;
6447
6988
  declaration: Record<string, string | number | boolean | {
6448
6989
  type: string;
6449
6990
  filename: string;
@@ -6481,8 +7022,9 @@ export declare const EventDocument: z.ZodObject<{
6481
7022
  option: string;
6482
7023
  filename: string;
6483
7024
  originalFilename: string;
6484
- }[] | undefined>;
6485
- createdAtLocation: string;
7025
+ }[] | [string, string] | undefined>;
7026
+ createdBySignature?: string | null | undefined;
7027
+ createdAtLocation?: string | null | undefined;
6486
7028
  annotation?: Record<string, string | number | boolean | {
6487
7029
  type: string;
6488
7030
  filename: string;
@@ -6520,12 +7062,16 @@ export declare const EventDocument: z.ZodObject<{
6520
7062
  option: string;
6521
7063
  filename: string;
6522
7064
  originalFilename: string;
6523
- }[] | undefined> | undefined;
7065
+ }[] | [string, string] | undefined> | undefined;
7066
+ originalActionId?: string | undefined;
6524
7067
  } | {
6525
7068
  type: "MARKED_AS_DUPLICATE";
6526
7069
  id: string;
7070
+ status: "Rejected" | "Requested" | "Accepted";
7071
+ transactionId: string;
6527
7072
  createdAt: string;
6528
7073
  createdBy: string;
7074
+ createdByRole: string;
6529
7075
  declaration: Record<string, string | number | boolean | {
6530
7076
  type: string;
6531
7077
  filename: string;
@@ -6563,8 +7109,9 @@ export declare const EventDocument: z.ZodObject<{
6563
7109
  option: string;
6564
7110
  filename: string;
6565
7111
  originalFilename: string;
6566
- }[] | undefined>;
6567
- createdAtLocation: string;
7112
+ }[] | [string, string] | undefined>;
7113
+ createdBySignature?: string | null | undefined;
7114
+ createdAtLocation?: string | null | undefined;
6568
7115
  annotation?: Record<string, string | number | boolean | {
6569
7116
  type: string;
6570
7117
  filename: string;
@@ -6602,12 +7149,20 @@ export declare const EventDocument: z.ZodObject<{
6602
7149
  option: string;
6603
7150
  filename: string;
6604
7151
  originalFilename: string;
6605
- }[] | undefined> | undefined;
7152
+ }[] | [string, string] | undefined> | undefined;
7153
+ originalActionId?: string | undefined;
6606
7154
  } | {
6607
7155
  type: "ARCHIVE";
6608
7156
  id: string;
7157
+ status: "Rejected" | "Requested" | "Accepted";
7158
+ reason: {
7159
+ message: string;
7160
+ isDuplicate?: boolean | undefined;
7161
+ };
7162
+ transactionId: string;
6609
7163
  createdAt: string;
6610
7164
  createdBy: string;
7165
+ createdByRole: string;
6611
7166
  declaration: Record<string, string | number | boolean | {
6612
7167
  type: string;
6613
7168
  filename: string;
@@ -6645,8 +7200,9 @@ export declare const EventDocument: z.ZodObject<{
6645
7200
  option: string;
6646
7201
  filename: string;
6647
7202
  originalFilename: string;
6648
- }[] | undefined>;
6649
- createdAtLocation: string;
7203
+ }[] | [string, string] | undefined>;
7204
+ createdBySignature?: string | null | undefined;
7205
+ createdAtLocation?: string | null | undefined;
6650
7206
  annotation?: Record<string, string | number | boolean | {
6651
7207
  type: string;
6652
7208
  filename: string;
@@ -6684,12 +7240,16 @@ export declare const EventDocument: z.ZodObject<{
6684
7240
  option: string;
6685
7241
  filename: string;
6686
7242
  originalFilename: string;
6687
- }[] | undefined> | undefined;
7243
+ }[] | [string, string] | undefined> | undefined;
7244
+ originalActionId?: string | undefined;
6688
7245
  } | {
6689
7246
  type: "CREATE";
6690
7247
  id: string;
7248
+ status: "Rejected" | "Requested" | "Accepted";
7249
+ transactionId: string;
6691
7250
  createdAt: string;
6692
7251
  createdBy: string;
7252
+ createdByRole: string;
6693
7253
  declaration: Record<string, string | number | boolean | {
6694
7254
  type: string;
6695
7255
  filename: string;
@@ -6727,8 +7287,9 @@ export declare const EventDocument: z.ZodObject<{
6727
7287
  option: string;
6728
7288
  filename: string;
6729
7289
  originalFilename: string;
6730
- }[] | undefined>;
6731
- createdAtLocation: string;
7290
+ }[] | [string, string] | undefined>;
7291
+ createdBySignature?: string | null | undefined;
7292
+ createdAtLocation?: string | null | undefined;
6732
7293
  annotation?: Record<string, string | number | boolean | {
6733
7294
  type: string;
6734
7295
  filename: string;
@@ -6766,12 +7327,16 @@ export declare const EventDocument: z.ZodObject<{
6766
7327
  option: string;
6767
7328
  filename: string;
6768
7329
  originalFilename: string;
6769
- }[] | undefined> | undefined;
7330
+ }[] | [string, string] | undefined> | undefined;
7331
+ originalActionId?: string | undefined;
6770
7332
  } | {
6771
7333
  type: "NOTIFY";
6772
7334
  id: string;
7335
+ status: "Rejected" | "Requested" | "Accepted";
7336
+ transactionId: string;
6773
7337
  createdAt: string;
6774
7338
  createdBy: string;
7339
+ createdByRole: string;
6775
7340
  declaration: Record<string, string | number | boolean | {
6776
7341
  type: string;
6777
7342
  filename: string;
@@ -6809,8 +7374,9 @@ export declare const EventDocument: z.ZodObject<{
6809
7374
  option: string;
6810
7375
  filename: string;
6811
7376
  originalFilename: string;
6812
- }[] | undefined>;
6813
- createdAtLocation: string;
7377
+ }[] | [string, string] | undefined>;
7378
+ createdBySignature?: string | null | undefined;
7379
+ createdAtLocation?: string | null | undefined;
6814
7380
  annotation?: Record<string, string | number | boolean | {
6815
7381
  type: string;
6816
7382
  filename: string;
@@ -6848,12 +7414,16 @@ export declare const EventDocument: z.ZodObject<{
6848
7414
  option: string;
6849
7415
  filename: string;
6850
7416
  originalFilename: string;
6851
- }[] | undefined> | undefined;
7417
+ }[] | [string, string] | undefined> | undefined;
7418
+ originalActionId?: string | undefined;
6852
7419
  } | {
6853
7420
  type: "PRINT_CERTIFICATE";
6854
7421
  id: string;
7422
+ status: "Rejected" | "Requested" | "Accepted";
7423
+ transactionId: string;
6855
7424
  createdAt: string;
6856
7425
  createdBy: string;
7426
+ createdByRole: string;
6857
7427
  declaration: Record<string, string | number | boolean | {
6858
7428
  type: string;
6859
7429
  filename: string;
@@ -6891,8 +7461,9 @@ export declare const EventDocument: z.ZodObject<{
6891
7461
  option: string;
6892
7462
  filename: string;
6893
7463
  originalFilename: string;
6894
- }[] | undefined>;
6895
- createdAtLocation: string;
7464
+ }[] | [string, string] | undefined>;
7465
+ createdBySignature?: string | null | undefined;
7466
+ createdAtLocation?: string | null | undefined;
6896
7467
  annotation?: Record<string, string | number | boolean | {
6897
7468
  type: string;
6898
7469
  filename: string;
@@ -6930,12 +7501,16 @@ export declare const EventDocument: z.ZodObject<{
6930
7501
  option: string;
6931
7502
  filename: string;
6932
7503
  originalFilename: string;
6933
- }[] | undefined> | undefined;
7504
+ }[] | [string, string] | undefined> | undefined;
7505
+ originalActionId?: string | undefined;
6934
7506
  } | {
6935
7507
  type: "REQUEST_CORRECTION";
6936
7508
  id: string;
7509
+ status: "Rejected" | "Requested" | "Accepted";
7510
+ transactionId: string;
6937
7511
  createdAt: string;
6938
7512
  createdBy: string;
7513
+ createdByRole: string;
6939
7514
  declaration: Record<string, string | number | boolean | {
6940
7515
  type: string;
6941
7516
  filename: string;
@@ -6973,8 +7548,9 @@ export declare const EventDocument: z.ZodObject<{
6973
7548
  option: string;
6974
7549
  filename: string;
6975
7550
  originalFilename: string;
6976
- }[] | undefined>;
6977
- createdAtLocation: string;
7551
+ }[] | [string, string] | undefined>;
7552
+ createdBySignature?: string | null | undefined;
7553
+ createdAtLocation?: string | null | undefined;
6978
7554
  annotation?: Record<string, string | number | boolean | {
6979
7555
  type: string;
6980
7556
  filename: string;
@@ -7012,12 +7588,16 @@ export declare const EventDocument: z.ZodObject<{
7012
7588
  option: string;
7013
7589
  filename: string;
7014
7590
  originalFilename: string;
7015
- }[] | undefined> | undefined;
7591
+ }[] | [string, string] | undefined> | undefined;
7592
+ originalActionId?: string | undefined;
7016
7593
  } | {
7017
7594
  type: "APPROVE_CORRECTION";
7018
7595
  id: string;
7596
+ status: "Rejected" | "Requested" | "Accepted";
7597
+ transactionId: string;
7019
7598
  createdAt: string;
7020
7599
  createdBy: string;
7600
+ createdByRole: string;
7021
7601
  declaration: Record<string, string | number | boolean | {
7022
7602
  type: string;
7023
7603
  filename: string;
@@ -7055,9 +7635,10 @@ export declare const EventDocument: z.ZodObject<{
7055
7635
  option: string;
7056
7636
  filename: string;
7057
7637
  originalFilename: string;
7058
- }[] | undefined>;
7059
- createdAtLocation: string;
7638
+ }[] | [string, string] | undefined>;
7060
7639
  requestId: string;
7640
+ createdBySignature?: string | null | undefined;
7641
+ createdAtLocation?: string | null | undefined;
7061
7642
  annotation?: Record<string, string | number | boolean | {
7062
7643
  type: string;
7063
7644
  filename: string;
@@ -7095,12 +7676,16 @@ export declare const EventDocument: z.ZodObject<{
7095
7676
  option: string;
7096
7677
  filename: string;
7097
7678
  originalFilename: string;
7098
- }[] | undefined> | undefined;
7679
+ }[] | [string, string] | undefined> | undefined;
7680
+ originalActionId?: string | undefined;
7099
7681
  } | {
7100
7682
  type: "REJECT_CORRECTION";
7101
7683
  id: string;
7684
+ status: "Rejected" | "Requested" | "Accepted";
7685
+ transactionId: string;
7102
7686
  createdAt: string;
7103
7687
  createdBy: string;
7688
+ createdByRole: string;
7104
7689
  declaration: Record<string, string | number | boolean | {
7105
7690
  type: string;
7106
7691
  filename: string;
@@ -7138,9 +7723,10 @@ export declare const EventDocument: z.ZodObject<{
7138
7723
  option: string;
7139
7724
  filename: string;
7140
7725
  originalFilename: string;
7141
- }[] | undefined>;
7142
- createdAtLocation: string;
7726
+ }[] | [string, string] | undefined>;
7143
7727
  requestId: string;
7728
+ createdBySignature?: string | null | undefined;
7729
+ createdAtLocation?: string | null | undefined;
7144
7730
  annotation?: Record<string, string | number | boolean | {
7145
7731
  type: string;
7146
7732
  filename: string;
@@ -7178,12 +7764,16 @@ export declare const EventDocument: z.ZodObject<{
7178
7764
  option: string;
7179
7765
  filename: string;
7180
7766
  originalFilename: string;
7181
- }[] | undefined> | undefined;
7767
+ }[] | [string, string] | undefined> | undefined;
7768
+ originalActionId?: string | undefined;
7182
7769
  } | {
7183
7770
  type: "READ";
7184
7771
  id: string;
7772
+ status: "Rejected" | "Requested" | "Accepted";
7773
+ transactionId: string;
7185
7774
  createdAt: string;
7186
7775
  createdBy: string;
7776
+ createdByRole: string;
7187
7777
  declaration: Record<string, string | number | boolean | {
7188
7778
  type: string;
7189
7779
  filename: string;
@@ -7221,8 +7811,9 @@ export declare const EventDocument: z.ZodObject<{
7221
7811
  option: string;
7222
7812
  filename: string;
7223
7813
  originalFilename: string;
7224
- }[] | undefined>;
7225
- createdAtLocation: string;
7814
+ }[] | [string, string] | undefined>;
7815
+ createdBySignature?: string | null | undefined;
7816
+ createdAtLocation?: string | null | undefined;
7226
7817
  annotation?: Record<string, string | number | boolean | {
7227
7818
  type: string;
7228
7819
  filename: string;
@@ -7260,19 +7851,34 @@ export declare const EventDocument: z.ZodObject<{
7260
7851
  option: string;
7261
7852
  filename: string;
7262
7853
  originalFilename: string;
7263
- }[] | undefined> | undefined;
7854
+ }[] | [string, string] | undefined> | undefined;
7855
+ originalActionId?: string | undefined;
7856
+ } | {
7857
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7858
+ id: string;
7859
+ status: "Rejected";
7860
+ transactionId: string;
7861
+ createdAt: string;
7862
+ createdBy: string;
7863
+ createdByRole: string;
7864
+ createdBySignature?: string | null | undefined;
7865
+ createdAtLocation?: string | null | undefined;
7866
+ originalActionId?: string | undefined;
7264
7867
  })[];
7868
+ trackingId: string;
7265
7869
  }, {
7266
7870
  type: string;
7267
7871
  id: string;
7268
7872
  createdAt: string;
7269
- trackingId: string;
7270
7873
  updatedAt: string;
7271
7874
  actions: ({
7272
7875
  type: "ASSIGN";
7273
7876
  id: string;
7877
+ status: "Rejected" | "Requested" | "Accepted";
7878
+ transactionId: string;
7274
7879
  createdAt: string;
7275
7880
  createdBy: string;
7881
+ createdByRole: string;
7276
7882
  declaration: Record<string, string | number | boolean | {
7277
7883
  type: string;
7278
7884
  filename: string;
@@ -7310,9 +7916,10 @@ export declare const EventDocument: z.ZodObject<{
7310
7916
  option: string;
7311
7917
  filename: string;
7312
7918
  originalFilename: string;
7313
- }[] | undefined>;
7314
- createdAtLocation: string;
7919
+ }[] | [string, string] | undefined>;
7315
7920
  assignedTo: string;
7921
+ createdBySignature?: string | null | undefined;
7922
+ createdAtLocation?: string | null | undefined;
7316
7923
  annotation?: Record<string, string | number | boolean | {
7317
7924
  type: string;
7318
7925
  filename: string;
@@ -7350,12 +7957,16 @@ export declare const EventDocument: z.ZodObject<{
7350
7957
  option: string;
7351
7958
  filename: string;
7352
7959
  originalFilename: string;
7353
- }[] | undefined> | undefined;
7960
+ }[] | [string, string] | undefined> | undefined;
7961
+ originalActionId?: string | undefined;
7354
7962
  } | {
7355
7963
  type: "UNASSIGN";
7356
7964
  id: string;
7965
+ status: "Rejected" | "Requested" | "Accepted";
7966
+ transactionId: string;
7357
7967
  createdAt: string;
7358
7968
  createdBy: string;
7969
+ createdByRole: string;
7359
7970
  declaration: Record<string, string | number | boolean | {
7360
7971
  type: string;
7361
7972
  filename: string;
@@ -7393,8 +8004,10 @@ export declare const EventDocument: z.ZodObject<{
7393
8004
  option: string;
7394
8005
  filename: string;
7395
8006
  originalFilename: string;
7396
- }[] | undefined>;
7397
- createdAtLocation: string;
8007
+ }[] | [string, string] | undefined>;
8008
+ assignedTo: null;
8009
+ createdBySignature?: string | null | undefined;
8010
+ createdAtLocation?: string | null | undefined;
7398
8011
  annotation?: Record<string, string | number | boolean | {
7399
8012
  type: string;
7400
8013
  filename: string;
@@ -7432,12 +8045,16 @@ export declare const EventDocument: z.ZodObject<{
7432
8045
  option: string;
7433
8046
  filename: string;
7434
8047
  originalFilename: string;
7435
- }[] | undefined> | undefined;
8048
+ }[] | [string, string] | undefined> | undefined;
8049
+ originalActionId?: string | undefined;
7436
8050
  } | {
7437
8051
  type: "REGISTER";
7438
8052
  id: string;
8053
+ status: "Rejected" | "Requested" | "Accepted";
8054
+ transactionId: string;
7439
8055
  createdAt: string;
7440
8056
  createdBy: string;
8057
+ createdByRole: string;
7441
8058
  declaration: Record<string, string | number | boolean | {
7442
8059
  type: string;
7443
8060
  filename: string;
@@ -7475,12 +8092,9 @@ export declare const EventDocument: z.ZodObject<{
7475
8092
  option: string;
7476
8093
  filename: string;
7477
8094
  originalFilename: string;
7478
- }[] | undefined>;
7479
- createdAtLocation: string;
7480
- identifiers: {
7481
- trackingId: string;
7482
- registrationNumber: string;
7483
- };
8095
+ }[] | [string, string] | undefined>;
8096
+ createdBySignature?: string | null | undefined;
8097
+ createdAtLocation?: string | null | undefined;
7484
8098
  annotation?: Record<string, string | number | boolean | {
7485
8099
  type: string;
7486
8100
  filename: string;
@@ -7518,12 +8132,17 @@ export declare const EventDocument: z.ZodObject<{
7518
8132
  option: string;
7519
8133
  filename: string;
7520
8134
  originalFilename: string;
7521
- }[] | undefined> | undefined;
8135
+ }[] | [string, string] | undefined> | undefined;
8136
+ originalActionId?: string | undefined;
8137
+ registrationNumber?: string | undefined;
7522
8138
  } | {
7523
8139
  type: "DECLARE";
7524
8140
  id: string;
8141
+ status: "Rejected" | "Requested" | "Accepted";
8142
+ transactionId: string;
7525
8143
  createdAt: string;
7526
8144
  createdBy: string;
8145
+ createdByRole: string;
7527
8146
  declaration: Record<string, string | number | boolean | {
7528
8147
  type: string;
7529
8148
  filename: string;
@@ -7561,8 +8180,9 @@ export declare const EventDocument: z.ZodObject<{
7561
8180
  option: string;
7562
8181
  filename: string;
7563
8182
  originalFilename: string;
7564
- }[] | undefined>;
7565
- createdAtLocation: string;
8183
+ }[] | [string, string] | undefined>;
8184
+ createdBySignature?: string | null | undefined;
8185
+ createdAtLocation?: string | null | undefined;
7566
8186
  annotation?: Record<string, string | number | boolean | {
7567
8187
  type: string;
7568
8188
  filename: string;
@@ -7600,12 +8220,16 @@ export declare const EventDocument: z.ZodObject<{
7600
8220
  option: string;
7601
8221
  filename: string;
7602
8222
  originalFilename: string;
7603
- }[] | undefined> | undefined;
8223
+ }[] | [string, string] | undefined> | undefined;
8224
+ originalActionId?: string | undefined;
7604
8225
  } | {
7605
8226
  type: "VALIDATE";
7606
8227
  id: string;
8228
+ status: "Rejected" | "Requested" | "Accepted";
8229
+ transactionId: string;
7607
8230
  createdAt: string;
7608
8231
  createdBy: string;
8232
+ createdByRole: string;
7609
8233
  declaration: Record<string, string | number | boolean | {
7610
8234
  type: string;
7611
8235
  filename: string;
@@ -7643,8 +8267,9 @@ export declare const EventDocument: z.ZodObject<{
7643
8267
  option: string;
7644
8268
  filename: string;
7645
8269
  originalFilename: string;
7646
- }[] | undefined>;
7647
- createdAtLocation: string;
8270
+ }[] | [string, string] | undefined>;
8271
+ createdBySignature?: string | null | undefined;
8272
+ createdAtLocation?: string | null | undefined;
7648
8273
  annotation?: Record<string, string | number | boolean | {
7649
8274
  type: string;
7650
8275
  filename: string;
@@ -7682,12 +8307,20 @@ export declare const EventDocument: z.ZodObject<{
7682
8307
  option: string;
7683
8308
  filename: string;
7684
8309
  originalFilename: string;
7685
- }[] | undefined> | undefined;
8310
+ }[] | [string, string] | undefined> | undefined;
8311
+ originalActionId?: string | undefined;
7686
8312
  } | {
7687
8313
  type: "REJECT";
7688
8314
  id: string;
8315
+ status: "Rejected" | "Requested" | "Accepted";
8316
+ reason: {
8317
+ message: string;
8318
+ isDuplicate?: boolean | undefined;
8319
+ };
8320
+ transactionId: string;
7689
8321
  createdAt: string;
7690
8322
  createdBy: string;
8323
+ createdByRole: string;
7691
8324
  declaration: Record<string, string | number | boolean | {
7692
8325
  type: string;
7693
8326
  filename: string;
@@ -7725,8 +8358,9 @@ export declare const EventDocument: z.ZodObject<{
7725
8358
  option: string;
7726
8359
  filename: string;
7727
8360
  originalFilename: string;
7728
- }[] | undefined>;
7729
- createdAtLocation: string;
8361
+ }[] | [string, string] | undefined>;
8362
+ createdBySignature?: string | null | undefined;
8363
+ createdAtLocation?: string | null | undefined;
7730
8364
  annotation?: Record<string, string | number | boolean | {
7731
8365
  type: string;
7732
8366
  filename: string;
@@ -7764,12 +8398,16 @@ export declare const EventDocument: z.ZodObject<{
7764
8398
  option: string;
7765
8399
  filename: string;
7766
8400
  originalFilename: string;
7767
- }[] | undefined> | undefined;
8401
+ }[] | [string, string] | undefined> | undefined;
8402
+ originalActionId?: string | undefined;
7768
8403
  } | {
7769
8404
  type: "MARKED_AS_DUPLICATE";
7770
8405
  id: string;
8406
+ status: "Rejected" | "Requested" | "Accepted";
8407
+ transactionId: string;
7771
8408
  createdAt: string;
7772
8409
  createdBy: string;
8410
+ createdByRole: string;
7773
8411
  declaration: Record<string, string | number | boolean | {
7774
8412
  type: string;
7775
8413
  filename: string;
@@ -7807,8 +8445,9 @@ export declare const EventDocument: z.ZodObject<{
7807
8445
  option: string;
7808
8446
  filename: string;
7809
8447
  originalFilename: string;
7810
- }[] | undefined>;
7811
- createdAtLocation: string;
8448
+ }[] | [string, string] | undefined>;
8449
+ createdBySignature?: string | null | undefined;
8450
+ createdAtLocation?: string | null | undefined;
7812
8451
  annotation?: Record<string, string | number | boolean | {
7813
8452
  type: string;
7814
8453
  filename: string;
@@ -7846,12 +8485,20 @@ export declare const EventDocument: z.ZodObject<{
7846
8485
  option: string;
7847
8486
  filename: string;
7848
8487
  originalFilename: string;
7849
- }[] | undefined> | undefined;
8488
+ }[] | [string, string] | undefined> | undefined;
8489
+ originalActionId?: string | undefined;
7850
8490
  } | {
7851
8491
  type: "ARCHIVE";
7852
8492
  id: string;
8493
+ status: "Rejected" | "Requested" | "Accepted";
8494
+ reason: {
8495
+ message: string;
8496
+ isDuplicate?: boolean | undefined;
8497
+ };
8498
+ transactionId: string;
7853
8499
  createdAt: string;
7854
8500
  createdBy: string;
8501
+ createdByRole: string;
7855
8502
  declaration: Record<string, string | number | boolean | {
7856
8503
  type: string;
7857
8504
  filename: string;
@@ -7889,8 +8536,9 @@ export declare const EventDocument: z.ZodObject<{
7889
8536
  option: string;
7890
8537
  filename: string;
7891
8538
  originalFilename: string;
7892
- }[] | undefined>;
7893
- createdAtLocation: string;
8539
+ }[] | [string, string] | undefined>;
8540
+ createdBySignature?: string | null | undefined;
8541
+ createdAtLocation?: string | null | undefined;
7894
8542
  annotation?: Record<string, string | number | boolean | {
7895
8543
  type: string;
7896
8544
  filename: string;
@@ -7928,12 +8576,16 @@ export declare const EventDocument: z.ZodObject<{
7928
8576
  option: string;
7929
8577
  filename: string;
7930
8578
  originalFilename: string;
7931
- }[] | undefined> | undefined;
8579
+ }[] | [string, string] | undefined> | undefined;
8580
+ originalActionId?: string | undefined;
7932
8581
  } | {
7933
8582
  type: "CREATE";
7934
8583
  id: string;
8584
+ status: "Rejected" | "Requested" | "Accepted";
8585
+ transactionId: string;
7935
8586
  createdAt: string;
7936
8587
  createdBy: string;
8588
+ createdByRole: string;
7937
8589
  declaration: Record<string, string | number | boolean | {
7938
8590
  type: string;
7939
8591
  filename: string;
@@ -7971,8 +8623,9 @@ export declare const EventDocument: z.ZodObject<{
7971
8623
  option: string;
7972
8624
  filename: string;
7973
8625
  originalFilename: string;
7974
- }[] | undefined>;
7975
- createdAtLocation: string;
8626
+ }[] | [string, string] | undefined>;
8627
+ createdBySignature?: string | null | undefined;
8628
+ createdAtLocation?: string | null | undefined;
7976
8629
  annotation?: Record<string, string | number | boolean | {
7977
8630
  type: string;
7978
8631
  filename: string;
@@ -8010,12 +8663,16 @@ export declare const EventDocument: z.ZodObject<{
8010
8663
  option: string;
8011
8664
  filename: string;
8012
8665
  originalFilename: string;
8013
- }[] | undefined> | undefined;
8666
+ }[] | [string, string] | undefined> | undefined;
8667
+ originalActionId?: string | undefined;
8014
8668
  } | {
8015
8669
  type: "NOTIFY";
8016
8670
  id: string;
8671
+ status: "Rejected" | "Requested" | "Accepted";
8672
+ transactionId: string;
8017
8673
  createdAt: string;
8018
8674
  createdBy: string;
8675
+ createdByRole: string;
8019
8676
  declaration: Record<string, string | number | boolean | {
8020
8677
  type: string;
8021
8678
  filename: string;
@@ -8053,8 +8710,9 @@ export declare const EventDocument: z.ZodObject<{
8053
8710
  option: string;
8054
8711
  filename: string;
8055
8712
  originalFilename: string;
8056
- }[] | undefined>;
8057
- createdAtLocation: string;
8713
+ }[] | [string, string] | undefined>;
8714
+ createdBySignature?: string | null | undefined;
8715
+ createdAtLocation?: string | null | undefined;
8058
8716
  annotation?: Record<string, string | number | boolean | {
8059
8717
  type: string;
8060
8718
  filename: string;
@@ -8092,12 +8750,16 @@ export declare const EventDocument: z.ZodObject<{
8092
8750
  option: string;
8093
8751
  filename: string;
8094
8752
  originalFilename: string;
8095
- }[] | undefined> | undefined;
8753
+ }[] | [string, string] | undefined> | undefined;
8754
+ originalActionId?: string | undefined;
8096
8755
  } | {
8097
8756
  type: "PRINT_CERTIFICATE";
8098
8757
  id: string;
8758
+ status: "Rejected" | "Requested" | "Accepted";
8759
+ transactionId: string;
8099
8760
  createdAt: string;
8100
8761
  createdBy: string;
8762
+ createdByRole: string;
8101
8763
  declaration: Record<string, string | number | boolean | {
8102
8764
  type: string;
8103
8765
  filename: string;
@@ -8135,8 +8797,9 @@ export declare const EventDocument: z.ZodObject<{
8135
8797
  option: string;
8136
8798
  filename: string;
8137
8799
  originalFilename: string;
8138
- }[] | undefined>;
8139
- createdAtLocation: string;
8800
+ }[] | [string, string] | undefined>;
8801
+ createdBySignature?: string | null | undefined;
8802
+ createdAtLocation?: string | null | undefined;
8140
8803
  annotation?: Record<string, string | number | boolean | {
8141
8804
  type: string;
8142
8805
  filename: string;
@@ -8174,12 +8837,16 @@ export declare const EventDocument: z.ZodObject<{
8174
8837
  option: string;
8175
8838
  filename: string;
8176
8839
  originalFilename: string;
8177
- }[] | undefined> | undefined;
8840
+ }[] | [string, string] | undefined> | undefined;
8841
+ originalActionId?: string | undefined;
8178
8842
  } | {
8179
8843
  type: "REQUEST_CORRECTION";
8180
8844
  id: string;
8845
+ status: "Rejected" | "Requested" | "Accepted";
8846
+ transactionId: string;
8181
8847
  createdAt: string;
8182
8848
  createdBy: string;
8849
+ createdByRole: string;
8183
8850
  declaration: Record<string, string | number | boolean | {
8184
8851
  type: string;
8185
8852
  filename: string;
@@ -8217,8 +8884,9 @@ export declare const EventDocument: z.ZodObject<{
8217
8884
  option: string;
8218
8885
  filename: string;
8219
8886
  originalFilename: string;
8220
- }[] | undefined>;
8221
- createdAtLocation: string;
8887
+ }[] | [string, string] | undefined>;
8888
+ createdBySignature?: string | null | undefined;
8889
+ createdAtLocation?: string | null | undefined;
8222
8890
  annotation?: Record<string, string | number | boolean | {
8223
8891
  type: string;
8224
8892
  filename: string;
@@ -8256,12 +8924,16 @@ export declare const EventDocument: z.ZodObject<{
8256
8924
  option: string;
8257
8925
  filename: string;
8258
8926
  originalFilename: string;
8259
- }[] | undefined> | undefined;
8927
+ }[] | [string, string] | undefined> | undefined;
8928
+ originalActionId?: string | undefined;
8260
8929
  } | {
8261
8930
  type: "APPROVE_CORRECTION";
8262
8931
  id: string;
8932
+ status: "Rejected" | "Requested" | "Accepted";
8933
+ transactionId: string;
8263
8934
  createdAt: string;
8264
8935
  createdBy: string;
8936
+ createdByRole: string;
8265
8937
  declaration: Record<string, string | number | boolean | {
8266
8938
  type: string;
8267
8939
  filename: string;
@@ -8299,9 +8971,10 @@ export declare const EventDocument: z.ZodObject<{
8299
8971
  option: string;
8300
8972
  filename: string;
8301
8973
  originalFilename: string;
8302
- }[] | undefined>;
8303
- createdAtLocation: string;
8974
+ }[] | [string, string] | undefined>;
8304
8975
  requestId: string;
8976
+ createdBySignature?: string | null | undefined;
8977
+ createdAtLocation?: string | null | undefined;
8305
8978
  annotation?: Record<string, string | number | boolean | {
8306
8979
  type: string;
8307
8980
  filename: string;
@@ -8339,12 +9012,16 @@ export declare const EventDocument: z.ZodObject<{
8339
9012
  option: string;
8340
9013
  filename: string;
8341
9014
  originalFilename: string;
8342
- }[] | undefined> | undefined;
9015
+ }[] | [string, string] | undefined> | undefined;
9016
+ originalActionId?: string | undefined;
8343
9017
  } | {
8344
9018
  type: "REJECT_CORRECTION";
8345
9019
  id: string;
9020
+ status: "Rejected" | "Requested" | "Accepted";
9021
+ transactionId: string;
8346
9022
  createdAt: string;
8347
9023
  createdBy: string;
9024
+ createdByRole: string;
8348
9025
  declaration: Record<string, string | number | boolean | {
8349
9026
  type: string;
8350
9027
  filename: string;
@@ -8382,9 +9059,10 @@ export declare const EventDocument: z.ZodObject<{
8382
9059
  option: string;
8383
9060
  filename: string;
8384
9061
  originalFilename: string;
8385
- }[] | undefined>;
8386
- createdAtLocation: string;
9062
+ }[] | [string, string] | undefined>;
8387
9063
  requestId: string;
9064
+ createdBySignature?: string | null | undefined;
9065
+ createdAtLocation?: string | null | undefined;
8388
9066
  annotation?: Record<string, string | number | boolean | {
8389
9067
  type: string;
8390
9068
  filename: string;
@@ -8422,12 +9100,16 @@ export declare const EventDocument: z.ZodObject<{
8422
9100
  option: string;
8423
9101
  filename: string;
8424
9102
  originalFilename: string;
8425
- }[] | undefined> | undefined;
9103
+ }[] | [string, string] | undefined> | undefined;
9104
+ originalActionId?: string | undefined;
8426
9105
  } | {
8427
9106
  type: "READ";
8428
9107
  id: string;
9108
+ status: "Rejected" | "Requested" | "Accepted";
9109
+ transactionId: string;
8429
9110
  createdAt: string;
8430
9111
  createdBy: string;
9112
+ createdByRole: string;
8431
9113
  declaration: Record<string, string | number | boolean | {
8432
9114
  type: string;
8433
9115
  filename: string;
@@ -8465,8 +9147,9 @@ export declare const EventDocument: z.ZodObject<{
8465
9147
  option: string;
8466
9148
  filename: string;
8467
9149
  originalFilename: string;
8468
- }[] | undefined>;
8469
- createdAtLocation: string;
9150
+ }[] | [string, string] | undefined>;
9151
+ createdBySignature?: string | null | undefined;
9152
+ createdAtLocation?: string | null | undefined;
8470
9153
  annotation?: Record<string, string | number | boolean | {
8471
9154
  type: string;
8472
9155
  filename: string;
@@ -8504,8 +9187,21 @@ export declare const EventDocument: z.ZodObject<{
8504
9187
  option: string;
8505
9188
  filename: string;
8506
9189
  originalFilename: string;
8507
- }[] | undefined> | undefined;
9190
+ }[] | [string, string] | undefined> | undefined;
9191
+ originalActionId?: string | undefined;
9192
+ } | {
9193
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
9194
+ id: string;
9195
+ status: "Rejected";
9196
+ transactionId: string;
9197
+ createdAt: string;
9198
+ createdBy: string;
9199
+ createdByRole: string;
9200
+ createdBySignature?: string | null | undefined;
9201
+ createdAtLocation?: string | null | undefined;
9202
+ originalActionId?: string | undefined;
8508
9203
  })[];
9204
+ trackingId: string;
8509
9205
  }>;
8510
9206
  export type EventDocument = z.infer<typeof EventDocument>;
8511
9207
  //# sourceMappingURL=EventDocument.d.ts.map