@opencrvs/toolkit 1.8.0-rc.ff0b26c → 1.8.0-rc.ff1f8e0

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 (34) hide show
  1. package/dist/commons/api/router.d.ts +2356 -1097
  2. package/dist/commons/conditionals/conditionals.d.ts +7 -6
  3. package/dist/commons/events/ActionConfig.d.ts +15774 -7797
  4. package/dist/commons/events/ActionDocument.d.ts +533 -346
  5. package/dist/commons/events/ActionInput.d.ts +197 -125
  6. package/dist/commons/events/Constants.d.ts +2 -0
  7. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  8. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  9. package/dist/commons/events/Draft.d.ts +29 -24
  10. package/dist/commons/events/EventConfig.d.ts +13649 -9488
  11. package/dist/commons/events/EventDocument.d.ts +386 -267
  12. package/dist/commons/events/EventIndex.d.ts +209 -605
  13. package/dist/commons/events/EventInput.d.ts +0 -13
  14. package/dist/commons/events/EventMetadata.d.ts +71 -48
  15. package/dist/commons/events/FieldConfig.d.ts +486 -440
  16. package/dist/commons/events/FieldTypeMapping.d.ts +5 -2
  17. package/dist/commons/events/FieldValue.d.ts +2 -0
  18. package/dist/commons/events/FormConfig.d.ts +3346 -3052
  19. package/dist/commons/events/PageConfig.d.ts +750 -680
  20. package/dist/commons/events/User.d.ts +31 -7
  21. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  22. package/dist/commons/events/WorkqueueConfig.d.ts +3460 -485
  23. package/dist/commons/events/defineConfig.d.ts +1381 -575
  24. package/dist/commons/events/event.d.ts +2 -2
  25. package/dist/commons/events/field.d.ts +4 -13
  26. package/dist/commons/events/index.d.ts +4 -0
  27. package/dist/commons/events/serializer.d.ts +2 -0
  28. package/dist/commons/events/test.utils.d.ts +26 -5
  29. package/dist/commons/events/transactions.d.ts +1 -1
  30. package/dist/commons/events/utils.d.ts +333 -296
  31. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  32. package/dist/conditionals/index.js +28 -8
  33. package/dist/events/index.js +1564 -584
  34. package/package.json +1 -1
@@ -1,14 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const EventDocument: z.ZodObject<{
3
- id: z.ZodString;
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
4
4
  type: z.ZodString;
5
- dateOfEvent: z.ZodOptional<z.ZodObject<{
6
- fieldId: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- fieldId: string;
9
- }, {
10
- fieldId: string;
11
- }>>;
12
5
  createdAt: z.ZodString;
13
6
  updatedAt: z.ZodString;
14
7
  actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
@@ -17,6 +10,8 @@ export declare const EventDocument: z.ZodObject<{
17
10
  createdAt: z.ZodString;
18
11
  createdBy: z.ZodString;
19
12
  createdByRole: z.ZodString;
13
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
20
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<{
21
16
  filename: z.ZodString;
22
17
  originalFilename: z.ZodString;
@@ -131,7 +126,7 @@ export declare const EventDocument: z.ZodObject<{
131
126
  addressLine3?: string | null | undefined;
132
127
  postcodeOrZip?: string | null | undefined;
133
128
  }>]>>;
134
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
129
+ annotation: z.ZodNullable<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<{
135
130
  filename: z.ZodString;
136
131
  originalFilename: z.ZodString;
137
132
  type: z.ZodString;
@@ -244,10 +239,9 @@ export declare const EventDocument: z.ZodObject<{
244
239
  addressLine2?: string | null | undefined;
245
240
  addressLine3?: string | null | undefined;
246
241
  postcodeOrZip?: string | null | undefined;
247
- }>]>>>;
248
- createdAtLocation: z.ZodString;
242
+ }>]>>>>;
249
243
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
250
- originalActionId: z.ZodOptional<z.ZodString>;
244
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
251
245
  }, {
252
246
  type: z.ZodLiteral<"CREATE">;
253
247
  }>, "strip", z.ZodTypeAny, {
@@ -296,7 +290,8 @@ export declare const EventDocument: z.ZodObject<{
296
290
  filename: string;
297
291
  originalFilename: string;
298
292
  }[] | [string, string] | undefined>;
299
- createdAtLocation: string;
293
+ createdBySignature?: string | null | undefined;
294
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
300
295
  annotation?: Record<string, string | number | boolean | {
301
296
  type: string;
302
297
  filename: string;
@@ -334,8 +329,8 @@ export declare const EventDocument: z.ZodObject<{
334
329
  option: string;
335
330
  filename: string;
336
331
  originalFilename: string;
337
- }[] | [string, string] | undefined> | undefined;
338
- originalActionId?: string | undefined;
332
+ }[] | [string, string] | undefined> | null | undefined;
333
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
339
334
  }, {
340
335
  type: "CREATE";
341
336
  id: string;
@@ -382,7 +377,8 @@ export declare const EventDocument: z.ZodObject<{
382
377
  filename: string;
383
378
  originalFilename: string;
384
379
  }[] | [string, string] | undefined>;
385
- createdAtLocation: string;
380
+ createdBySignature?: string | null | undefined;
381
+ createdAtLocation?: string | null | undefined;
386
382
  annotation?: Record<string, string | number | boolean | {
387
383
  type: string;
388
384
  filename: string;
@@ -420,14 +416,16 @@ export declare const EventDocument: z.ZodObject<{
420
416
  option: string;
421
417
  filename: string;
422
418
  originalFilename: string;
423
- }[] | [string, string] | undefined> | undefined;
424
- originalActionId?: string | undefined;
419
+ }[] | [string, string] | undefined> | null | undefined;
420
+ originalActionId?: string | null | undefined;
425
421
  }>, z.ZodObject<z.objectUtil.extendShape<{
426
422
  id: z.ZodString;
427
423
  transactionId: z.ZodString;
428
424
  createdAt: z.ZodString;
429
425
  createdBy: z.ZodString;
430
426
  createdByRole: z.ZodString;
427
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
428
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
431
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<{
432
430
  filename: z.ZodString;
433
431
  originalFilename: z.ZodString;
@@ -542,7 +540,7 @@ export declare const EventDocument: z.ZodObject<{
542
540
  addressLine3?: string | null | undefined;
543
541
  postcodeOrZip?: string | null | undefined;
544
542
  }>]>>;
545
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
543
+ annotation: z.ZodNullable<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<{
546
544
  filename: z.ZodString;
547
545
  originalFilename: z.ZodString;
548
546
  type: z.ZodString;
@@ -655,10 +653,9 @@ export declare const EventDocument: z.ZodObject<{
655
653
  addressLine2?: string | null | undefined;
656
654
  addressLine3?: string | null | undefined;
657
655
  postcodeOrZip?: string | null | undefined;
658
- }>]>>>;
659
- createdAtLocation: z.ZodString;
656
+ }>]>>>>;
660
657
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
661
- originalActionId: z.ZodOptional<z.ZodString>;
658
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
662
659
  }, {
663
660
  type: z.ZodLiteral<"VALIDATE">;
664
661
  }>, "strip", z.ZodTypeAny, {
@@ -707,7 +704,8 @@ export declare const EventDocument: z.ZodObject<{
707
704
  filename: string;
708
705
  originalFilename: string;
709
706
  }[] | [string, string] | undefined>;
710
- createdAtLocation: string;
707
+ createdBySignature?: string | null | undefined;
708
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
711
709
  annotation?: Record<string, string | number | boolean | {
712
710
  type: string;
713
711
  filename: string;
@@ -745,8 +743,8 @@ export declare const EventDocument: z.ZodObject<{
745
743
  option: string;
746
744
  filename: string;
747
745
  originalFilename: string;
748
- }[] | [string, string] | undefined> | undefined;
749
- originalActionId?: string | undefined;
746
+ }[] | [string, string] | undefined> | null | undefined;
747
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
750
748
  }, {
751
749
  type: "VALIDATE";
752
750
  id: string;
@@ -793,7 +791,8 @@ export declare const EventDocument: z.ZodObject<{
793
791
  filename: string;
794
792
  originalFilename: string;
795
793
  }[] | [string, string] | undefined>;
796
- createdAtLocation: string;
794
+ createdBySignature?: string | null | undefined;
795
+ createdAtLocation?: string | null | undefined;
797
796
  annotation?: Record<string, string | number | boolean | {
798
797
  type: string;
799
798
  filename: string;
@@ -831,14 +830,16 @@ export declare const EventDocument: z.ZodObject<{
831
830
  option: string;
832
831
  filename: string;
833
832
  originalFilename: string;
834
- }[] | [string, string] | undefined> | undefined;
835
- originalActionId?: string | undefined;
833
+ }[] | [string, string] | undefined> | null | undefined;
834
+ originalActionId?: string | null | undefined;
836
835
  }>, z.ZodObject<z.objectUtil.extendShape<{
837
836
  id: z.ZodString;
838
837
  transactionId: z.ZodString;
839
838
  createdAt: z.ZodString;
840
839
  createdBy: z.ZodString;
841
840
  createdByRole: z.ZodString;
841
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
842
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
842
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<{
843
844
  filename: z.ZodString;
844
845
  originalFilename: z.ZodString;
@@ -953,7 +954,7 @@ export declare const EventDocument: z.ZodObject<{
953
954
  addressLine3?: string | null | undefined;
954
955
  postcodeOrZip?: string | null | undefined;
955
956
  }>]>>;
956
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
957
+ annotation: z.ZodNullable<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<{
957
958
  filename: z.ZodString;
958
959
  originalFilename: z.ZodString;
959
960
  type: z.ZodString;
@@ -1066,16 +1067,29 @@ export declare const EventDocument: z.ZodObject<{
1066
1067
  addressLine2?: string | null | undefined;
1067
1068
  addressLine3?: string | null | undefined;
1068
1069
  postcodeOrZip?: string | null | undefined;
1069
- }>]>>>;
1070
- createdAtLocation: z.ZodString;
1070
+ }>]>>>>;
1071
1071
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1072
- originalActionId: z.ZodOptional<z.ZodString>;
1072
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1073
1073
  }, {
1074
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
+ }>;
1075
1085
  }>, "strip", z.ZodTypeAny, {
1076
1086
  type: "REJECT";
1077
1087
  id: string;
1078
1088
  status: "Rejected" | "Requested" | "Accepted";
1089
+ reason: {
1090
+ message: string;
1091
+ isDuplicate?: boolean | undefined;
1092
+ };
1079
1093
  transactionId: string;
1080
1094
  createdAt: string;
1081
1095
  createdBy: string;
@@ -1118,7 +1132,8 @@ export declare const EventDocument: z.ZodObject<{
1118
1132
  filename: string;
1119
1133
  originalFilename: string;
1120
1134
  }[] | [string, string] | undefined>;
1121
- createdAtLocation: string;
1135
+ createdBySignature?: string | null | undefined;
1136
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1122
1137
  annotation?: Record<string, string | number | boolean | {
1123
1138
  type: string;
1124
1139
  filename: string;
@@ -1156,12 +1171,16 @@ export declare const EventDocument: z.ZodObject<{
1156
1171
  option: string;
1157
1172
  filename: string;
1158
1173
  originalFilename: string;
1159
- }[] | [string, string] | undefined> | undefined;
1160
- originalActionId?: string | undefined;
1174
+ }[] | [string, string] | undefined> | null | undefined;
1175
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1161
1176
  }, {
1162
1177
  type: "REJECT";
1163
1178
  id: string;
1164
1179
  status: "Rejected" | "Requested" | "Accepted";
1180
+ reason: {
1181
+ message: string;
1182
+ isDuplicate?: boolean | undefined;
1183
+ };
1165
1184
  transactionId: string;
1166
1185
  createdAt: string;
1167
1186
  createdBy: string;
@@ -1204,7 +1223,8 @@ export declare const EventDocument: z.ZodObject<{
1204
1223
  filename: string;
1205
1224
  originalFilename: string;
1206
1225
  }[] | [string, string] | undefined>;
1207
- createdAtLocation: string;
1226
+ createdBySignature?: string | null | undefined;
1227
+ createdAtLocation?: string | null | undefined;
1208
1228
  annotation?: Record<string, string | number | boolean | {
1209
1229
  type: string;
1210
1230
  filename: string;
@@ -1242,14 +1262,16 @@ export declare const EventDocument: z.ZodObject<{
1242
1262
  option: string;
1243
1263
  filename: string;
1244
1264
  originalFilename: string;
1245
- }[] | [string, string] | undefined> | undefined;
1246
- originalActionId?: string | undefined;
1265
+ }[] | [string, string] | undefined> | null | undefined;
1266
+ originalActionId?: string | null | undefined;
1247
1267
  }>, z.ZodObject<z.objectUtil.extendShape<{
1248
1268
  id: z.ZodString;
1249
1269
  transactionId: z.ZodString;
1250
1270
  createdAt: z.ZodString;
1251
1271
  createdBy: z.ZodString;
1252
1272
  createdByRole: z.ZodString;
1273
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1274
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1253
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<{
1254
1276
  filename: z.ZodString;
1255
1277
  originalFilename: z.ZodString;
@@ -1364,7 +1386,7 @@ export declare const EventDocument: z.ZodObject<{
1364
1386
  addressLine3?: string | null | undefined;
1365
1387
  postcodeOrZip?: string | null | undefined;
1366
1388
  }>]>>;
1367
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1389
+ annotation: z.ZodNullable<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<{
1368
1390
  filename: z.ZodString;
1369
1391
  originalFilename: z.ZodString;
1370
1392
  type: z.ZodString;
@@ -1477,10 +1499,9 @@ export declare const EventDocument: z.ZodObject<{
1477
1499
  addressLine2?: string | null | undefined;
1478
1500
  addressLine3?: string | null | undefined;
1479
1501
  postcodeOrZip?: string | null | undefined;
1480
- }>]>>>;
1481
- createdAtLocation: z.ZodString;
1502
+ }>]>>>>;
1482
1503
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1483
- originalActionId: z.ZodOptional<z.ZodString>;
1504
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1484
1505
  }, {
1485
1506
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1486
1507
  }>, "strip", z.ZodTypeAny, {
@@ -1529,7 +1550,8 @@ export declare const EventDocument: z.ZodObject<{
1529
1550
  filename: string;
1530
1551
  originalFilename: string;
1531
1552
  }[] | [string, string] | undefined>;
1532
- createdAtLocation: string;
1553
+ createdBySignature?: string | null | undefined;
1554
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1533
1555
  annotation?: Record<string, string | number | boolean | {
1534
1556
  type: string;
1535
1557
  filename: string;
@@ -1567,8 +1589,8 @@ export declare const EventDocument: z.ZodObject<{
1567
1589
  option: string;
1568
1590
  filename: string;
1569
1591
  originalFilename: string;
1570
- }[] | [string, string] | undefined> | undefined;
1571
- originalActionId?: string | undefined;
1592
+ }[] | [string, string] | undefined> | null | undefined;
1593
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1572
1594
  }, {
1573
1595
  type: "MARKED_AS_DUPLICATE";
1574
1596
  id: string;
@@ -1615,7 +1637,8 @@ export declare const EventDocument: z.ZodObject<{
1615
1637
  filename: string;
1616
1638
  originalFilename: string;
1617
1639
  }[] | [string, string] | undefined>;
1618
- createdAtLocation: string;
1640
+ createdBySignature?: string | null | undefined;
1641
+ createdAtLocation?: string | null | undefined;
1619
1642
  annotation?: Record<string, string | number | boolean | {
1620
1643
  type: string;
1621
1644
  filename: string;
@@ -1653,14 +1676,16 @@ export declare const EventDocument: z.ZodObject<{
1653
1676
  option: string;
1654
1677
  filename: string;
1655
1678
  originalFilename: string;
1656
- }[] | [string, string] | undefined> | undefined;
1657
- originalActionId?: string | undefined;
1679
+ }[] | [string, string] | undefined> | null | undefined;
1680
+ originalActionId?: string | null | undefined;
1658
1681
  }>, z.ZodObject<z.objectUtil.extendShape<{
1659
1682
  id: z.ZodString;
1660
1683
  transactionId: z.ZodString;
1661
1684
  createdAt: z.ZodString;
1662
1685
  createdBy: z.ZodString;
1663
1686
  createdByRole: z.ZodString;
1687
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1688
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1664
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<{
1665
1690
  filename: z.ZodString;
1666
1691
  originalFilename: z.ZodString;
@@ -1775,7 +1800,7 @@ export declare const EventDocument: z.ZodObject<{
1775
1800
  addressLine3?: string | null | undefined;
1776
1801
  postcodeOrZip?: string | null | undefined;
1777
1802
  }>]>>;
1778
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1803
+ annotation: z.ZodNullable<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<{
1779
1804
  filename: z.ZodString;
1780
1805
  originalFilename: z.ZodString;
1781
1806
  type: z.ZodString;
@@ -1888,16 +1913,29 @@ export declare const EventDocument: z.ZodObject<{
1888
1913
  addressLine2?: string | null | undefined;
1889
1914
  addressLine3?: string | null | undefined;
1890
1915
  postcodeOrZip?: string | null | undefined;
1891
- }>]>>>;
1892
- createdAtLocation: z.ZodString;
1916
+ }>]>>>>;
1893
1917
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1894
- originalActionId: z.ZodOptional<z.ZodString>;
1918
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1895
1919
  }, {
1896
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
+ }>;
1897
1931
  }>, "strip", z.ZodTypeAny, {
1898
1932
  type: "ARCHIVE";
1899
1933
  id: string;
1900
1934
  status: "Rejected" | "Requested" | "Accepted";
1935
+ reason: {
1936
+ message: string;
1937
+ isDuplicate?: boolean | undefined;
1938
+ };
1901
1939
  transactionId: string;
1902
1940
  createdAt: string;
1903
1941
  createdBy: string;
@@ -1940,7 +1978,8 @@ export declare const EventDocument: z.ZodObject<{
1940
1978
  filename: string;
1941
1979
  originalFilename: string;
1942
1980
  }[] | [string, string] | undefined>;
1943
- createdAtLocation: string;
1981
+ createdBySignature?: string | null | undefined;
1982
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1944
1983
  annotation?: Record<string, string | number | boolean | {
1945
1984
  type: string;
1946
1985
  filename: string;
@@ -1978,12 +2017,16 @@ export declare const EventDocument: z.ZodObject<{
1978
2017
  option: string;
1979
2018
  filename: string;
1980
2019
  originalFilename: string;
1981
- }[] | [string, string] | undefined> | undefined;
1982
- originalActionId?: string | undefined;
2020
+ }[] | [string, string] | undefined> | null | undefined;
2021
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1983
2022
  }, {
1984
2023
  type: "ARCHIVE";
1985
2024
  id: string;
1986
2025
  status: "Rejected" | "Requested" | "Accepted";
2026
+ reason: {
2027
+ message: string;
2028
+ isDuplicate?: boolean | undefined;
2029
+ };
1987
2030
  transactionId: string;
1988
2031
  createdAt: string;
1989
2032
  createdBy: string;
@@ -2026,7 +2069,8 @@ export declare const EventDocument: z.ZodObject<{
2026
2069
  filename: string;
2027
2070
  originalFilename: string;
2028
2071
  }[] | [string, string] | undefined>;
2029
- createdAtLocation: string;
2072
+ createdBySignature?: string | null | undefined;
2073
+ createdAtLocation?: string | null | undefined;
2030
2074
  annotation?: Record<string, string | number | boolean | {
2031
2075
  type: string;
2032
2076
  filename: string;
@@ -2064,14 +2108,16 @@ export declare const EventDocument: z.ZodObject<{
2064
2108
  option: string;
2065
2109
  filename: string;
2066
2110
  originalFilename: string;
2067
- }[] | [string, string] | undefined> | undefined;
2068
- originalActionId?: string | undefined;
2111
+ }[] | [string, string] | undefined> | null | undefined;
2112
+ originalActionId?: string | null | undefined;
2069
2113
  }>, z.ZodObject<z.objectUtil.extendShape<{
2070
2114
  id: z.ZodString;
2071
2115
  transactionId: z.ZodString;
2072
2116
  createdAt: z.ZodString;
2073
2117
  createdBy: z.ZodString;
2074
2118
  createdByRole: z.ZodString;
2119
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2120
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2075
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<{
2076
2122
  filename: z.ZodString;
2077
2123
  originalFilename: z.ZodString;
@@ -2186,7 +2232,7 @@ export declare const EventDocument: z.ZodObject<{
2186
2232
  addressLine3?: string | null | undefined;
2187
2233
  postcodeOrZip?: string | null | undefined;
2188
2234
  }>]>>;
2189
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2235
+ annotation: z.ZodNullable<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<{
2190
2236
  filename: z.ZodString;
2191
2237
  originalFilename: z.ZodString;
2192
2238
  type: z.ZodString;
@@ -2299,10 +2345,9 @@ export declare const EventDocument: z.ZodObject<{
2299
2345
  addressLine2?: string | null | undefined;
2300
2346
  addressLine3?: string | null | undefined;
2301
2347
  postcodeOrZip?: string | null | undefined;
2302
- }>]>>>;
2303
- createdAtLocation: z.ZodString;
2348
+ }>]>>>>;
2304
2349
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2305
- originalActionId: z.ZodOptional<z.ZodString>;
2350
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2306
2351
  }, {
2307
2352
  type: z.ZodLiteral<"NOTIFY">;
2308
2353
  }>, "strip", z.ZodTypeAny, {
@@ -2351,7 +2396,8 @@ export declare const EventDocument: z.ZodObject<{
2351
2396
  filename: string;
2352
2397
  originalFilename: string;
2353
2398
  }[] | [string, string] | undefined>;
2354
- createdAtLocation: string;
2399
+ createdBySignature?: string | null | undefined;
2400
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2355
2401
  annotation?: Record<string, string | number | boolean | {
2356
2402
  type: string;
2357
2403
  filename: string;
@@ -2389,8 +2435,8 @@ export declare const EventDocument: z.ZodObject<{
2389
2435
  option: string;
2390
2436
  filename: string;
2391
2437
  originalFilename: string;
2392
- }[] | [string, string] | undefined> | undefined;
2393
- originalActionId?: string | undefined;
2438
+ }[] | [string, string] | undefined> | null | undefined;
2439
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2394
2440
  }, {
2395
2441
  type: "NOTIFY";
2396
2442
  id: string;
@@ -2437,7 +2483,8 @@ export declare const EventDocument: z.ZodObject<{
2437
2483
  filename: string;
2438
2484
  originalFilename: string;
2439
2485
  }[] | [string, string] | undefined>;
2440
- createdAtLocation: string;
2486
+ createdBySignature?: string | null | undefined;
2487
+ createdAtLocation?: string | null | undefined;
2441
2488
  annotation?: Record<string, string | number | boolean | {
2442
2489
  type: string;
2443
2490
  filename: string;
@@ -2475,14 +2522,16 @@ export declare const EventDocument: z.ZodObject<{
2475
2522
  option: string;
2476
2523
  filename: string;
2477
2524
  originalFilename: string;
2478
- }[] | [string, string] | undefined> | undefined;
2479
- originalActionId?: string | undefined;
2525
+ }[] | [string, string] | undefined> | null | undefined;
2526
+ originalActionId?: string | null | undefined;
2480
2527
  }>, z.ZodObject<z.objectUtil.extendShape<{
2481
2528
  id: z.ZodString;
2482
2529
  transactionId: z.ZodString;
2483
2530
  createdAt: z.ZodString;
2484
2531
  createdBy: z.ZodString;
2485
2532
  createdByRole: z.ZodString;
2533
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2534
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2486
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<{
2487
2536
  filename: z.ZodString;
2488
2537
  originalFilename: z.ZodString;
@@ -2597,7 +2646,7 @@ export declare const EventDocument: z.ZodObject<{
2597
2646
  addressLine3?: string | null | undefined;
2598
2647
  postcodeOrZip?: string | null | undefined;
2599
2648
  }>]>>;
2600
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2649
+ annotation: z.ZodNullable<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<{
2601
2650
  filename: z.ZodString;
2602
2651
  originalFilename: z.ZodString;
2603
2652
  type: z.ZodString;
@@ -2710,10 +2759,9 @@ export declare const EventDocument: z.ZodObject<{
2710
2759
  addressLine2?: string | null | undefined;
2711
2760
  addressLine3?: string | null | undefined;
2712
2761
  postcodeOrZip?: string | null | undefined;
2713
- }>]>>>;
2714
- createdAtLocation: z.ZodString;
2762
+ }>]>>>>;
2715
2763
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2716
- originalActionId: z.ZodOptional<z.ZodString>;
2764
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2717
2765
  }, {
2718
2766
  type: z.ZodLiteral<"REGISTER">;
2719
2767
  registrationNumber: z.ZodOptional<z.ZodString>;
@@ -2763,7 +2811,8 @@ export declare const EventDocument: z.ZodObject<{
2763
2811
  filename: string;
2764
2812
  originalFilename: string;
2765
2813
  }[] | [string, string] | undefined>;
2766
- createdAtLocation: string;
2814
+ createdBySignature?: string | null | undefined;
2815
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2767
2816
  annotation?: Record<string, string | number | boolean | {
2768
2817
  type: string;
2769
2818
  filename: string;
@@ -2801,8 +2850,8 @@ export declare const EventDocument: z.ZodObject<{
2801
2850
  option: string;
2802
2851
  filename: string;
2803
2852
  originalFilename: string;
2804
- }[] | [string, string] | undefined> | undefined;
2805
- originalActionId?: string | undefined;
2853
+ }[] | [string, string] | undefined> | null | undefined;
2854
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2806
2855
  registrationNumber?: string | undefined;
2807
2856
  }, {
2808
2857
  type: "REGISTER";
@@ -2850,7 +2899,8 @@ export declare const EventDocument: z.ZodObject<{
2850
2899
  filename: string;
2851
2900
  originalFilename: string;
2852
2901
  }[] | [string, string] | undefined>;
2853
- createdAtLocation: string;
2902
+ createdBySignature?: string | null | undefined;
2903
+ createdAtLocation?: string | null | undefined;
2854
2904
  annotation?: Record<string, string | number | boolean | {
2855
2905
  type: string;
2856
2906
  filename: string;
@@ -2888,8 +2938,8 @@ export declare const EventDocument: z.ZodObject<{
2888
2938
  option: string;
2889
2939
  filename: string;
2890
2940
  originalFilename: string;
2891
- }[] | [string, string] | undefined> | undefined;
2892
- originalActionId?: string | undefined;
2941
+ }[] | [string, string] | undefined> | null | undefined;
2942
+ originalActionId?: string | null | undefined;
2893
2943
  registrationNumber?: string | undefined;
2894
2944
  }>, z.ZodObject<z.objectUtil.extendShape<{
2895
2945
  id: z.ZodString;
@@ -2897,6 +2947,8 @@ export declare const EventDocument: z.ZodObject<{
2897
2947
  createdAt: z.ZodString;
2898
2948
  createdBy: z.ZodString;
2899
2949
  createdByRole: z.ZodString;
2950
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2951
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2900
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<{
2901
2953
  filename: z.ZodString;
2902
2954
  originalFilename: z.ZodString;
@@ -3011,7 +3063,7 @@ export declare const EventDocument: z.ZodObject<{
3011
3063
  addressLine3?: string | null | undefined;
3012
3064
  postcodeOrZip?: string | null | undefined;
3013
3065
  }>]>>;
3014
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3066
+ annotation: z.ZodNullable<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<{
3015
3067
  filename: z.ZodString;
3016
3068
  originalFilename: z.ZodString;
3017
3069
  type: z.ZodString;
@@ -3124,10 +3176,9 @@ export declare const EventDocument: z.ZodObject<{
3124
3176
  addressLine2?: string | null | undefined;
3125
3177
  addressLine3?: string | null | undefined;
3126
3178
  postcodeOrZip?: string | null | undefined;
3127
- }>]>>>;
3128
- createdAtLocation: z.ZodString;
3179
+ }>]>>>>;
3129
3180
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3130
- originalActionId: z.ZodOptional<z.ZodString>;
3181
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3131
3182
  }, {
3132
3183
  type: z.ZodLiteral<"DECLARE">;
3133
3184
  }>, "strip", z.ZodTypeAny, {
@@ -3176,7 +3227,8 @@ export declare const EventDocument: z.ZodObject<{
3176
3227
  filename: string;
3177
3228
  originalFilename: string;
3178
3229
  }[] | [string, string] | undefined>;
3179
- createdAtLocation: string;
3230
+ createdBySignature?: string | null | undefined;
3231
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3180
3232
  annotation?: Record<string, string | number | boolean | {
3181
3233
  type: string;
3182
3234
  filename: string;
@@ -3214,8 +3266,8 @@ export declare const EventDocument: z.ZodObject<{
3214
3266
  option: string;
3215
3267
  filename: string;
3216
3268
  originalFilename: string;
3217
- }[] | [string, string] | undefined> | undefined;
3218
- originalActionId?: string | undefined;
3269
+ }[] | [string, string] | undefined> | null | undefined;
3270
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3219
3271
  }, {
3220
3272
  type: "DECLARE";
3221
3273
  id: string;
@@ -3262,7 +3314,8 @@ export declare const EventDocument: z.ZodObject<{
3262
3314
  filename: string;
3263
3315
  originalFilename: string;
3264
3316
  }[] | [string, string] | undefined>;
3265
- createdAtLocation: string;
3317
+ createdBySignature?: string | null | undefined;
3318
+ createdAtLocation?: string | null | undefined;
3266
3319
  annotation?: Record<string, string | number | boolean | {
3267
3320
  type: string;
3268
3321
  filename: string;
@@ -3300,14 +3353,16 @@ export declare const EventDocument: z.ZodObject<{
3300
3353
  option: string;
3301
3354
  filename: string;
3302
3355
  originalFilename: string;
3303
- }[] | [string, string] | undefined> | undefined;
3304
- originalActionId?: string | undefined;
3356
+ }[] | [string, string] | undefined> | null | undefined;
3357
+ originalActionId?: string | null | undefined;
3305
3358
  }>, z.ZodObject<z.objectUtil.extendShape<{
3306
3359
  id: z.ZodString;
3307
3360
  transactionId: z.ZodString;
3308
3361
  createdAt: z.ZodString;
3309
3362
  createdBy: z.ZodString;
3310
3363
  createdByRole: z.ZodString;
3364
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3365
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3311
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<{
3312
3367
  filename: z.ZodString;
3313
3368
  originalFilename: z.ZodString;
@@ -3422,7 +3477,7 @@ export declare const EventDocument: z.ZodObject<{
3422
3477
  addressLine3?: string | null | undefined;
3423
3478
  postcodeOrZip?: string | null | undefined;
3424
3479
  }>]>>;
3425
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3480
+ annotation: z.ZodNullable<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<{
3426
3481
  filename: z.ZodString;
3427
3482
  originalFilename: z.ZodString;
3428
3483
  type: z.ZodString;
@@ -3535,10 +3590,9 @@ export declare const EventDocument: z.ZodObject<{
3535
3590
  addressLine2?: string | null | undefined;
3536
3591
  addressLine3?: string | null | undefined;
3537
3592
  postcodeOrZip?: string | null | undefined;
3538
- }>]>>>;
3539
- createdAtLocation: z.ZodString;
3593
+ }>]>>>>;
3540
3594
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3541
- originalActionId: z.ZodOptional<z.ZodString>;
3595
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3542
3596
  }, {
3543
3597
  type: z.ZodLiteral<"ASSIGN">;
3544
3598
  assignedTo: z.ZodString;
@@ -3588,8 +3642,9 @@ export declare const EventDocument: z.ZodObject<{
3588
3642
  filename: string;
3589
3643
  originalFilename: string;
3590
3644
  }[] | [string, string] | undefined>;
3591
- createdAtLocation: string;
3592
3645
  assignedTo: string;
3646
+ createdBySignature?: string | null | undefined;
3647
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3593
3648
  annotation?: Record<string, string | number | boolean | {
3594
3649
  type: string;
3595
3650
  filename: string;
@@ -3627,8 +3682,8 @@ export declare const EventDocument: z.ZodObject<{
3627
3682
  option: string;
3628
3683
  filename: string;
3629
3684
  originalFilename: string;
3630
- }[] | [string, string] | undefined> | undefined;
3631
- originalActionId?: string | undefined;
3685
+ }[] | [string, string] | undefined> | null | undefined;
3686
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3632
3687
  }, {
3633
3688
  type: "ASSIGN";
3634
3689
  id: string;
@@ -3675,8 +3730,9 @@ export declare const EventDocument: z.ZodObject<{
3675
3730
  filename: string;
3676
3731
  originalFilename: string;
3677
3732
  }[] | [string, string] | undefined>;
3678
- createdAtLocation: string;
3679
3733
  assignedTo: string;
3734
+ createdBySignature?: string | null | undefined;
3735
+ createdAtLocation?: string | null | undefined;
3680
3736
  annotation?: Record<string, string | number | boolean | {
3681
3737
  type: string;
3682
3738
  filename: string;
@@ -3714,14 +3770,16 @@ export declare const EventDocument: z.ZodObject<{
3714
3770
  option: string;
3715
3771
  filename: string;
3716
3772
  originalFilename: string;
3717
- }[] | [string, string] | undefined> | undefined;
3718
- originalActionId?: string | undefined;
3773
+ }[] | [string, string] | undefined> | null | undefined;
3774
+ originalActionId?: string | null | undefined;
3719
3775
  }>, z.ZodObject<z.objectUtil.extendShape<{
3720
3776
  id: z.ZodString;
3721
3777
  transactionId: z.ZodString;
3722
3778
  createdAt: z.ZodString;
3723
3779
  createdBy: z.ZodString;
3724
3780
  createdByRole: z.ZodString;
3781
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3782
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3725
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<{
3726
3784
  filename: z.ZodString;
3727
3785
  originalFilename: z.ZodString;
@@ -3836,7 +3894,7 @@ export declare const EventDocument: z.ZodObject<{
3836
3894
  addressLine3?: string | null | undefined;
3837
3895
  postcodeOrZip?: string | null | undefined;
3838
3896
  }>]>>;
3839
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3897
+ annotation: z.ZodNullable<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<{
3840
3898
  filename: z.ZodString;
3841
3899
  originalFilename: z.ZodString;
3842
3900
  type: z.ZodString;
@@ -3949,10 +4007,9 @@ export declare const EventDocument: z.ZodObject<{
3949
4007
  addressLine2?: string | null | undefined;
3950
4008
  addressLine3?: string | null | undefined;
3951
4009
  postcodeOrZip?: string | null | undefined;
3952
- }>]>>>;
3953
- createdAtLocation: z.ZodString;
4010
+ }>]>>>>;
3954
4011
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3955
- originalActionId: z.ZodOptional<z.ZodString>;
4012
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3956
4013
  }, {
3957
4014
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
3958
4015
  }>, "strip", z.ZodTypeAny, {
@@ -4001,7 +4058,8 @@ export declare const EventDocument: z.ZodObject<{
4001
4058
  filename: string;
4002
4059
  originalFilename: string;
4003
4060
  }[] | [string, string] | undefined>;
4004
- createdAtLocation: string;
4061
+ createdBySignature?: string | null | undefined;
4062
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4005
4063
  annotation?: Record<string, string | number | boolean | {
4006
4064
  type: string;
4007
4065
  filename: string;
@@ -4039,8 +4097,8 @@ export declare const EventDocument: z.ZodObject<{
4039
4097
  option: string;
4040
4098
  filename: string;
4041
4099
  originalFilename: string;
4042
- }[] | [string, string] | undefined> | undefined;
4043
- originalActionId?: string | undefined;
4100
+ }[] | [string, string] | undefined> | null | undefined;
4101
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4044
4102
  }, {
4045
4103
  type: "REQUEST_CORRECTION";
4046
4104
  id: string;
@@ -4087,7 +4145,8 @@ export declare const EventDocument: z.ZodObject<{
4087
4145
  filename: string;
4088
4146
  originalFilename: string;
4089
4147
  }[] | [string, string] | undefined>;
4090
- createdAtLocation: string;
4148
+ createdBySignature?: string | null | undefined;
4149
+ createdAtLocation?: string | null | undefined;
4091
4150
  annotation?: Record<string, string | number | boolean | {
4092
4151
  type: string;
4093
4152
  filename: string;
@@ -4125,14 +4184,16 @@ export declare const EventDocument: z.ZodObject<{
4125
4184
  option: string;
4126
4185
  filename: string;
4127
4186
  originalFilename: string;
4128
- }[] | [string, string] | undefined> | undefined;
4129
- originalActionId?: string | undefined;
4187
+ }[] | [string, string] | undefined> | null | undefined;
4188
+ originalActionId?: string | null | undefined;
4130
4189
  }>, z.ZodObject<z.objectUtil.extendShape<{
4131
4190
  id: z.ZodString;
4132
4191
  transactionId: z.ZodString;
4133
4192
  createdAt: z.ZodString;
4134
4193
  createdBy: z.ZodString;
4135
4194
  createdByRole: z.ZodString;
4195
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4196
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4136
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<{
4137
4198
  filename: z.ZodString;
4138
4199
  originalFilename: z.ZodString;
@@ -4247,7 +4308,7 @@ export declare const EventDocument: z.ZodObject<{
4247
4308
  addressLine3?: string | null | undefined;
4248
4309
  postcodeOrZip?: string | null | undefined;
4249
4310
  }>]>>;
4250
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4311
+ annotation: z.ZodNullable<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<{
4251
4312
  filename: z.ZodString;
4252
4313
  originalFilename: z.ZodString;
4253
4314
  type: z.ZodString;
@@ -4360,10 +4421,9 @@ export declare const EventDocument: z.ZodObject<{
4360
4421
  addressLine2?: string | null | undefined;
4361
4422
  addressLine3?: string | null | undefined;
4362
4423
  postcodeOrZip?: string | null | undefined;
4363
- }>]>>>;
4364
- createdAtLocation: z.ZodString;
4424
+ }>]>>>>;
4365
4425
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4366
- originalActionId: z.ZodOptional<z.ZodString>;
4426
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4367
4427
  }, {
4368
4428
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
4369
4429
  requestId: z.ZodString;
@@ -4413,8 +4473,9 @@ export declare const EventDocument: z.ZodObject<{
4413
4473
  filename: string;
4414
4474
  originalFilename: string;
4415
4475
  }[] | [string, string] | undefined>;
4416
- createdAtLocation: string;
4417
4476
  requestId: string;
4477
+ createdBySignature?: string | null | undefined;
4478
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4418
4479
  annotation?: Record<string, string | number | boolean | {
4419
4480
  type: string;
4420
4481
  filename: string;
@@ -4452,8 +4513,8 @@ export declare const EventDocument: z.ZodObject<{
4452
4513
  option: string;
4453
4514
  filename: string;
4454
4515
  originalFilename: string;
4455
- }[] | [string, string] | undefined> | undefined;
4456
- originalActionId?: string | undefined;
4516
+ }[] | [string, string] | undefined> | null | undefined;
4517
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4457
4518
  }, {
4458
4519
  type: "APPROVE_CORRECTION";
4459
4520
  id: string;
@@ -4500,8 +4561,9 @@ export declare const EventDocument: z.ZodObject<{
4500
4561
  filename: string;
4501
4562
  originalFilename: string;
4502
4563
  }[] | [string, string] | undefined>;
4503
- createdAtLocation: string;
4504
4564
  requestId: string;
4565
+ createdBySignature?: string | null | undefined;
4566
+ createdAtLocation?: string | null | undefined;
4505
4567
  annotation?: Record<string, string | number | boolean | {
4506
4568
  type: string;
4507
4569
  filename: string;
@@ -4539,14 +4601,16 @@ export declare const EventDocument: z.ZodObject<{
4539
4601
  option: string;
4540
4602
  filename: string;
4541
4603
  originalFilename: string;
4542
- }[] | [string, string] | undefined> | undefined;
4543
- originalActionId?: string | undefined;
4604
+ }[] | [string, string] | undefined> | null | undefined;
4605
+ originalActionId?: string | null | undefined;
4544
4606
  }>, z.ZodObject<z.objectUtil.extendShape<{
4545
4607
  id: z.ZodString;
4546
4608
  transactionId: z.ZodString;
4547
4609
  createdAt: z.ZodString;
4548
4610
  createdBy: z.ZodString;
4549
4611
  createdByRole: z.ZodString;
4612
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4613
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4550
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<{
4551
4615
  filename: z.ZodString;
4552
4616
  originalFilename: z.ZodString;
@@ -4661,7 +4725,7 @@ export declare const EventDocument: z.ZodObject<{
4661
4725
  addressLine3?: string | null | undefined;
4662
4726
  postcodeOrZip?: string | null | undefined;
4663
4727
  }>]>>;
4664
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4728
+ annotation: z.ZodNullable<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<{
4665
4729
  filename: z.ZodString;
4666
4730
  originalFilename: z.ZodString;
4667
4731
  type: z.ZodString;
@@ -4774,10 +4838,9 @@ export declare const EventDocument: z.ZodObject<{
4774
4838
  addressLine2?: string | null | undefined;
4775
4839
  addressLine3?: string | null | undefined;
4776
4840
  postcodeOrZip?: string | null | undefined;
4777
- }>]>>>;
4778
- createdAtLocation: z.ZodString;
4841
+ }>]>>>>;
4779
4842
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4780
- originalActionId: z.ZodOptional<z.ZodString>;
4843
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4781
4844
  }, {
4782
4845
  type: z.ZodLiteral<"REJECT_CORRECTION">;
4783
4846
  requestId: z.ZodString;
@@ -4827,8 +4890,9 @@ export declare const EventDocument: z.ZodObject<{
4827
4890
  filename: string;
4828
4891
  originalFilename: string;
4829
4892
  }[] | [string, string] | undefined>;
4830
- createdAtLocation: string;
4831
4893
  requestId: string;
4894
+ createdBySignature?: string | null | undefined;
4895
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4832
4896
  annotation?: Record<string, string | number | boolean | {
4833
4897
  type: string;
4834
4898
  filename: string;
@@ -4866,8 +4930,8 @@ export declare const EventDocument: z.ZodObject<{
4866
4930
  option: string;
4867
4931
  filename: string;
4868
4932
  originalFilename: string;
4869
- }[] | [string, string] | undefined> | undefined;
4870
- originalActionId?: string | undefined;
4933
+ }[] | [string, string] | undefined> | null | undefined;
4934
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4871
4935
  }, {
4872
4936
  type: "REJECT_CORRECTION";
4873
4937
  id: string;
@@ -4914,8 +4978,9 @@ export declare const EventDocument: z.ZodObject<{
4914
4978
  filename: string;
4915
4979
  originalFilename: string;
4916
4980
  }[] | [string, string] | undefined>;
4917
- createdAtLocation: string;
4918
4981
  requestId: string;
4982
+ createdBySignature?: string | null | undefined;
4983
+ createdAtLocation?: string | null | undefined;
4919
4984
  annotation?: Record<string, string | number | boolean | {
4920
4985
  type: string;
4921
4986
  filename: string;
@@ -4953,14 +5018,16 @@ export declare const EventDocument: z.ZodObject<{
4953
5018
  option: string;
4954
5019
  filename: string;
4955
5020
  originalFilename: string;
4956
- }[] | [string, string] | undefined> | undefined;
4957
- originalActionId?: string | undefined;
5021
+ }[] | [string, string] | undefined> | null | undefined;
5022
+ originalActionId?: string | null | undefined;
4958
5023
  }>, z.ZodObject<z.objectUtil.extendShape<{
4959
5024
  id: z.ZodString;
4960
5025
  transactionId: z.ZodString;
4961
5026
  createdAt: z.ZodString;
4962
5027
  createdBy: z.ZodString;
4963
5028
  createdByRole: z.ZodString;
5029
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5030
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4964
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<{
4965
5032
  filename: z.ZodString;
4966
5033
  originalFilename: z.ZodString;
@@ -5075,7 +5142,7 @@ export declare const EventDocument: z.ZodObject<{
5075
5142
  addressLine3?: string | null | undefined;
5076
5143
  postcodeOrZip?: string | null | undefined;
5077
5144
  }>]>>;
5078
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5145
+ annotation: z.ZodNullable<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<{
5079
5146
  filename: z.ZodString;
5080
5147
  originalFilename: z.ZodString;
5081
5148
  type: z.ZodString;
@@ -5188,10 +5255,9 @@ export declare const EventDocument: z.ZodObject<{
5188
5255
  addressLine2?: string | null | undefined;
5189
5256
  addressLine3?: string | null | undefined;
5190
5257
  postcodeOrZip?: string | null | undefined;
5191
- }>]>>>;
5192
- createdAtLocation: z.ZodString;
5258
+ }>]>>>>;
5193
5259
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5194
- originalActionId: z.ZodOptional<z.ZodString>;
5260
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5195
5261
  }, {
5196
5262
  type: z.ZodLiteral<"UNASSIGN">;
5197
5263
  assignedTo: z.ZodLiteral<null>;
@@ -5241,8 +5307,9 @@ export declare const EventDocument: z.ZodObject<{
5241
5307
  filename: string;
5242
5308
  originalFilename: string;
5243
5309
  }[] | [string, string] | undefined>;
5244
- createdAtLocation: string;
5245
5310
  assignedTo: null;
5311
+ createdBySignature?: string | null | undefined;
5312
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5246
5313
  annotation?: Record<string, string | number | boolean | {
5247
5314
  type: string;
5248
5315
  filename: string;
@@ -5280,8 +5347,8 @@ export declare const EventDocument: z.ZodObject<{
5280
5347
  option: string;
5281
5348
  filename: string;
5282
5349
  originalFilename: string;
5283
- }[] | [string, string] | undefined> | undefined;
5284
- originalActionId?: string | undefined;
5350
+ }[] | [string, string] | undefined> | null | undefined;
5351
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5285
5352
  }, {
5286
5353
  type: "UNASSIGN";
5287
5354
  id: string;
@@ -5328,8 +5395,9 @@ export declare const EventDocument: z.ZodObject<{
5328
5395
  filename: string;
5329
5396
  originalFilename: string;
5330
5397
  }[] | [string, string] | undefined>;
5331
- createdAtLocation: string;
5332
5398
  assignedTo: null;
5399
+ createdBySignature?: string | null | undefined;
5400
+ createdAtLocation?: string | null | undefined;
5333
5401
  annotation?: Record<string, string | number | boolean | {
5334
5402
  type: string;
5335
5403
  filename: string;
@@ -5367,14 +5435,16 @@ export declare const EventDocument: z.ZodObject<{
5367
5435
  option: string;
5368
5436
  filename: string;
5369
5437
  originalFilename: string;
5370
- }[] | [string, string] | undefined> | undefined;
5371
- originalActionId?: string | undefined;
5438
+ }[] | [string, string] | undefined> | null | undefined;
5439
+ originalActionId?: string | null | undefined;
5372
5440
  }>, z.ZodObject<z.objectUtil.extendShape<{
5373
5441
  id: z.ZodString;
5374
5442
  transactionId: z.ZodString;
5375
5443
  createdAt: z.ZodString;
5376
5444
  createdBy: z.ZodString;
5377
5445
  createdByRole: z.ZodString;
5446
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5447
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5378
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<{
5379
5449
  filename: z.ZodString;
5380
5450
  originalFilename: z.ZodString;
@@ -5489,7 +5559,7 @@ export declare const EventDocument: z.ZodObject<{
5489
5559
  addressLine3?: string | null | undefined;
5490
5560
  postcodeOrZip?: string | null | undefined;
5491
5561
  }>]>>;
5492
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5562
+ annotation: z.ZodNullable<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<{
5493
5563
  filename: z.ZodString;
5494
5564
  originalFilename: z.ZodString;
5495
5565
  type: z.ZodString;
@@ -5602,10 +5672,9 @@ export declare const EventDocument: z.ZodObject<{
5602
5672
  addressLine2?: string | null | undefined;
5603
5673
  addressLine3?: string | null | undefined;
5604
5674
  postcodeOrZip?: string | null | undefined;
5605
- }>]>>>;
5606
- createdAtLocation: z.ZodString;
5675
+ }>]>>>>;
5607
5676
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5608
- originalActionId: z.ZodOptional<z.ZodString>;
5677
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5609
5678
  }, {
5610
5679
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
5611
5680
  }>, "strip", z.ZodTypeAny, {
@@ -5654,7 +5723,8 @@ export declare const EventDocument: z.ZodObject<{
5654
5723
  filename: string;
5655
5724
  originalFilename: string;
5656
5725
  }[] | [string, string] | undefined>;
5657
- createdAtLocation: string;
5726
+ createdBySignature?: string | null | undefined;
5727
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5658
5728
  annotation?: Record<string, string | number | boolean | {
5659
5729
  type: string;
5660
5730
  filename: string;
@@ -5692,8 +5762,8 @@ export declare const EventDocument: z.ZodObject<{
5692
5762
  option: string;
5693
5763
  filename: string;
5694
5764
  originalFilename: string;
5695
- }[] | [string, string] | undefined> | undefined;
5696
- originalActionId?: string | undefined;
5765
+ }[] | [string, string] | undefined> | null | undefined;
5766
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5697
5767
  }, {
5698
5768
  type: "PRINT_CERTIFICATE";
5699
5769
  id: string;
@@ -5740,7 +5810,8 @@ export declare const EventDocument: z.ZodObject<{
5740
5810
  filename: string;
5741
5811
  originalFilename: string;
5742
5812
  }[] | [string, string] | undefined>;
5743
- createdAtLocation: string;
5813
+ createdBySignature?: string | null | undefined;
5814
+ createdAtLocation?: string | null | undefined;
5744
5815
  annotation?: Record<string, string | number | boolean | {
5745
5816
  type: string;
5746
5817
  filename: string;
@@ -5778,14 +5849,16 @@ export declare const EventDocument: z.ZodObject<{
5778
5849
  option: string;
5779
5850
  filename: string;
5780
5851
  originalFilename: string;
5781
- }[] | [string, string] | undefined> | undefined;
5782
- originalActionId?: string | undefined;
5852
+ }[] | [string, string] | undefined> | null | undefined;
5853
+ originalActionId?: string | null | undefined;
5783
5854
  }>, z.ZodObject<z.objectUtil.extendShape<{
5784
5855
  id: z.ZodString;
5785
5856
  transactionId: z.ZodString;
5786
5857
  createdAt: z.ZodString;
5787
5858
  createdBy: z.ZodString;
5788
5859
  createdByRole: z.ZodString;
5860
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5861
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5789
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<{
5790
5863
  filename: z.ZodString;
5791
5864
  originalFilename: z.ZodString;
@@ -5900,7 +5973,7 @@ export declare const EventDocument: z.ZodObject<{
5900
5973
  addressLine3?: string | null | undefined;
5901
5974
  postcodeOrZip?: string | null | undefined;
5902
5975
  }>]>>;
5903
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5976
+ annotation: z.ZodNullable<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<{
5904
5977
  filename: z.ZodString;
5905
5978
  originalFilename: z.ZodString;
5906
5979
  type: z.ZodString;
@@ -6013,10 +6086,9 @@ export declare const EventDocument: z.ZodObject<{
6013
6086
  addressLine2?: string | null | undefined;
6014
6087
  addressLine3?: string | null | undefined;
6015
6088
  postcodeOrZip?: string | null | undefined;
6016
- }>]>>>;
6017
- createdAtLocation: z.ZodString;
6089
+ }>]>>>>;
6018
6090
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6019
- originalActionId: z.ZodOptional<z.ZodString>;
6091
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6020
6092
  }, {
6021
6093
  type: z.ZodLiteral<"READ">;
6022
6094
  }>, "strip", z.ZodTypeAny, {
@@ -6065,7 +6137,8 @@ export declare const EventDocument: z.ZodObject<{
6065
6137
  filename: string;
6066
6138
  originalFilename: string;
6067
6139
  }[] | [string, string] | undefined>;
6068
- createdAtLocation: string;
6140
+ createdBySignature?: string | null | undefined;
6141
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6069
6142
  annotation?: Record<string, string | number | boolean | {
6070
6143
  type: string;
6071
6144
  filename: string;
@@ -6103,8 +6176,8 @@ export declare const EventDocument: z.ZodObject<{
6103
6176
  option: string;
6104
6177
  filename: string;
6105
6178
  originalFilename: string;
6106
- }[] | [string, string] | undefined> | undefined;
6107
- originalActionId?: string | undefined;
6179
+ }[] | [string, string] | undefined> | null | undefined;
6180
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6108
6181
  }, {
6109
6182
  type: "READ";
6110
6183
  id: string;
@@ -6151,7 +6224,8 @@ export declare const EventDocument: z.ZodObject<{
6151
6224
  filename: string;
6152
6225
  originalFilename: string;
6153
6226
  }[] | [string, string] | undefined>;
6154
- createdAtLocation: string;
6227
+ createdBySignature?: string | null | undefined;
6228
+ createdAtLocation?: string | null | undefined;
6155
6229
  annotation?: Record<string, string | number | boolean | {
6156
6230
  type: string;
6157
6231
  filename: string;
@@ -6189,14 +6263,16 @@ export declare const EventDocument: z.ZodObject<{
6189
6263
  option: string;
6190
6264
  filename: string;
6191
6265
  originalFilename: string;
6192
- }[] | [string, string] | undefined> | undefined;
6193
- originalActionId?: string | undefined;
6266
+ }[] | [string, string] | undefined> | null | undefined;
6267
+ originalActionId?: string | null | undefined;
6194
6268
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6195
6269
  id: z.ZodString;
6196
6270
  transactionId: z.ZodString;
6197
6271
  createdAt: z.ZodString;
6198
6272
  createdBy: z.ZodString;
6199
6273
  createdByRole: z.ZodString;
6274
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6275
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6200
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<{
6201
6277
  filename: z.ZodString;
6202
6278
  originalFilename: z.ZodString;
@@ -6311,7 +6387,7 @@ export declare const EventDocument: z.ZodObject<{
6311
6387
  addressLine3?: string | null | undefined;
6312
6388
  postcodeOrZip?: string | null | undefined;
6313
6389
  }>]>>;
6314
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6390
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6315
6391
  filename: z.ZodString;
6316
6392
  originalFilename: z.ZodString;
6317
6393
  type: z.ZodString;
@@ -6424,10 +6500,9 @@ export declare const EventDocument: z.ZodObject<{
6424
6500
  addressLine2?: string | null | undefined;
6425
6501
  addressLine3?: string | null | undefined;
6426
6502
  postcodeOrZip?: string | null | undefined;
6427
- }>]>>>;
6428
- createdAtLocation: z.ZodString;
6503
+ }>]>>>>;
6429
6504
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6430
- originalActionId: z.ZodOptional<z.ZodString>;
6505
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6431
6506
  }, "declaration" | "annotation">, {
6432
6507
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
6433
6508
  status: z.ZodLiteral<"Rejected">;
@@ -6439,8 +6514,9 @@ export declare const EventDocument: z.ZodObject<{
6439
6514
  createdAt: string;
6440
6515
  createdBy: string;
6441
6516
  createdByRole: string;
6442
- createdAtLocation: string;
6443
- originalActionId?: string | undefined;
6517
+ createdBySignature?: string | null | undefined;
6518
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6519
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6444
6520
  }, {
6445
6521
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6446
6522
  id: string;
@@ -6449,13 +6525,14 @@ export declare const EventDocument: z.ZodObject<{
6449
6525
  createdAt: string;
6450
6526
  createdBy: string;
6451
6527
  createdByRole: string;
6452
- createdAtLocation: string;
6453
- originalActionId?: string | undefined;
6528
+ createdBySignature?: string | null | undefined;
6529
+ createdAtLocation?: string | null | undefined;
6530
+ originalActionId?: string | null | undefined;
6454
6531
  }>]>, "many">;
6455
6532
  trackingId: z.ZodString;
6456
6533
  }, "strip", z.ZodTypeAny, {
6457
6534
  type: string;
6458
- id: string;
6535
+ id: string & z.BRAND<"UUID">;
6459
6536
  createdAt: string;
6460
6537
  updatedAt: string;
6461
6538
  actions: ({
@@ -6504,8 +6581,9 @@ export declare const EventDocument: z.ZodObject<{
6504
6581
  filename: string;
6505
6582
  originalFilename: string;
6506
6583
  }[] | [string, string] | undefined>;
6507
- createdAtLocation: string;
6508
6584
  assignedTo: string;
6585
+ createdBySignature?: string | null | undefined;
6586
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6509
6587
  annotation?: Record<string, string | number | boolean | {
6510
6588
  type: string;
6511
6589
  filename: string;
@@ -6543,8 +6621,8 @@ export declare const EventDocument: z.ZodObject<{
6543
6621
  option: string;
6544
6622
  filename: string;
6545
6623
  originalFilename: string;
6546
- }[] | [string, string] | undefined> | undefined;
6547
- originalActionId?: string | undefined;
6624
+ }[] | [string, string] | undefined> | null | undefined;
6625
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6548
6626
  } | {
6549
6627
  type: "UNASSIGN";
6550
6628
  id: string;
@@ -6591,8 +6669,9 @@ export declare const EventDocument: z.ZodObject<{
6591
6669
  filename: string;
6592
6670
  originalFilename: string;
6593
6671
  }[] | [string, string] | undefined>;
6594
- createdAtLocation: string;
6595
6672
  assignedTo: null;
6673
+ createdBySignature?: string | null | undefined;
6674
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6596
6675
  annotation?: Record<string, string | number | boolean | {
6597
6676
  type: string;
6598
6677
  filename: string;
@@ -6630,8 +6709,8 @@ export declare const EventDocument: z.ZodObject<{
6630
6709
  option: string;
6631
6710
  filename: string;
6632
6711
  originalFilename: string;
6633
- }[] | [string, string] | undefined> | undefined;
6634
- originalActionId?: string | undefined;
6712
+ }[] | [string, string] | undefined> | null | undefined;
6713
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6635
6714
  } | {
6636
6715
  type: "REGISTER";
6637
6716
  id: string;
@@ -6678,7 +6757,8 @@ export declare const EventDocument: z.ZodObject<{
6678
6757
  filename: string;
6679
6758
  originalFilename: string;
6680
6759
  }[] | [string, string] | undefined>;
6681
- createdAtLocation: string;
6760
+ createdBySignature?: string | null | undefined;
6761
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6682
6762
  annotation?: Record<string, string | number | boolean | {
6683
6763
  type: string;
6684
6764
  filename: string;
@@ -6716,8 +6796,8 @@ export declare const EventDocument: z.ZodObject<{
6716
6796
  option: string;
6717
6797
  filename: string;
6718
6798
  originalFilename: string;
6719
- }[] | [string, string] | undefined> | undefined;
6720
- originalActionId?: string | undefined;
6799
+ }[] | [string, string] | undefined> | null | undefined;
6800
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6721
6801
  registrationNumber?: string | undefined;
6722
6802
  } | {
6723
6803
  type: "DECLARE";
@@ -6765,7 +6845,8 @@ export declare const EventDocument: z.ZodObject<{
6765
6845
  filename: string;
6766
6846
  originalFilename: string;
6767
6847
  }[] | [string, string] | undefined>;
6768
- createdAtLocation: string;
6848
+ createdBySignature?: string | null | undefined;
6849
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6769
6850
  annotation?: Record<string, string | number | boolean | {
6770
6851
  type: string;
6771
6852
  filename: string;
@@ -6803,8 +6884,8 @@ export declare const EventDocument: z.ZodObject<{
6803
6884
  option: string;
6804
6885
  filename: string;
6805
6886
  originalFilename: string;
6806
- }[] | [string, string] | undefined> | undefined;
6807
- originalActionId?: string | undefined;
6887
+ }[] | [string, string] | undefined> | null | undefined;
6888
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6808
6889
  } | {
6809
6890
  type: "VALIDATE";
6810
6891
  id: string;
@@ -6851,7 +6932,8 @@ export declare const EventDocument: z.ZodObject<{
6851
6932
  filename: string;
6852
6933
  originalFilename: string;
6853
6934
  }[] | [string, string] | undefined>;
6854
- createdAtLocation: string;
6935
+ createdBySignature?: string | null | undefined;
6936
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6855
6937
  annotation?: Record<string, string | number | boolean | {
6856
6938
  type: string;
6857
6939
  filename: string;
@@ -6889,12 +6971,16 @@ export declare const EventDocument: z.ZodObject<{
6889
6971
  option: string;
6890
6972
  filename: string;
6891
6973
  originalFilename: string;
6892
- }[] | [string, string] | undefined> | undefined;
6893
- originalActionId?: string | undefined;
6974
+ }[] | [string, string] | undefined> | null | undefined;
6975
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6894
6976
  } | {
6895
6977
  type: "REJECT";
6896
6978
  id: string;
6897
6979
  status: "Rejected" | "Requested" | "Accepted";
6980
+ reason: {
6981
+ message: string;
6982
+ isDuplicate?: boolean | undefined;
6983
+ };
6898
6984
  transactionId: string;
6899
6985
  createdAt: string;
6900
6986
  createdBy: string;
@@ -6937,7 +7023,8 @@ export declare const EventDocument: z.ZodObject<{
6937
7023
  filename: string;
6938
7024
  originalFilename: string;
6939
7025
  }[] | [string, string] | undefined>;
6940
- createdAtLocation: string;
7026
+ createdBySignature?: string | null | undefined;
7027
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6941
7028
  annotation?: Record<string, string | number | boolean | {
6942
7029
  type: string;
6943
7030
  filename: string;
@@ -6975,8 +7062,8 @@ export declare const EventDocument: z.ZodObject<{
6975
7062
  option: string;
6976
7063
  filename: string;
6977
7064
  originalFilename: string;
6978
- }[] | [string, string] | undefined> | undefined;
6979
- originalActionId?: string | undefined;
7065
+ }[] | [string, string] | undefined> | null | undefined;
7066
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6980
7067
  } | {
6981
7068
  type: "MARKED_AS_DUPLICATE";
6982
7069
  id: string;
@@ -7023,7 +7110,8 @@ export declare const EventDocument: z.ZodObject<{
7023
7110
  filename: string;
7024
7111
  originalFilename: string;
7025
7112
  }[] | [string, string] | undefined>;
7026
- createdAtLocation: string;
7113
+ createdBySignature?: string | null | undefined;
7114
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7027
7115
  annotation?: Record<string, string | number | boolean | {
7028
7116
  type: string;
7029
7117
  filename: string;
@@ -7061,12 +7149,16 @@ export declare const EventDocument: z.ZodObject<{
7061
7149
  option: string;
7062
7150
  filename: string;
7063
7151
  originalFilename: string;
7064
- }[] | [string, string] | undefined> | undefined;
7065
- originalActionId?: string | undefined;
7152
+ }[] | [string, string] | undefined> | null | undefined;
7153
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7066
7154
  } | {
7067
7155
  type: "ARCHIVE";
7068
7156
  id: string;
7069
7157
  status: "Rejected" | "Requested" | "Accepted";
7158
+ reason: {
7159
+ message: string;
7160
+ isDuplicate?: boolean | undefined;
7161
+ };
7070
7162
  transactionId: string;
7071
7163
  createdAt: string;
7072
7164
  createdBy: string;
@@ -7109,7 +7201,8 @@ export declare const EventDocument: z.ZodObject<{
7109
7201
  filename: string;
7110
7202
  originalFilename: string;
7111
7203
  }[] | [string, string] | undefined>;
7112
- createdAtLocation: string;
7204
+ createdBySignature?: string | null | undefined;
7205
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7113
7206
  annotation?: Record<string, string | number | boolean | {
7114
7207
  type: string;
7115
7208
  filename: string;
@@ -7147,8 +7240,8 @@ export declare const EventDocument: z.ZodObject<{
7147
7240
  option: string;
7148
7241
  filename: string;
7149
7242
  originalFilename: string;
7150
- }[] | [string, string] | undefined> | undefined;
7151
- originalActionId?: string | undefined;
7243
+ }[] | [string, string] | undefined> | null | undefined;
7244
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7152
7245
  } | {
7153
7246
  type: "CREATE";
7154
7247
  id: string;
@@ -7195,7 +7288,8 @@ export declare const EventDocument: z.ZodObject<{
7195
7288
  filename: string;
7196
7289
  originalFilename: string;
7197
7290
  }[] | [string, string] | undefined>;
7198
- createdAtLocation: string;
7291
+ createdBySignature?: string | null | undefined;
7292
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7199
7293
  annotation?: Record<string, string | number | boolean | {
7200
7294
  type: string;
7201
7295
  filename: string;
@@ -7233,8 +7327,8 @@ export declare const EventDocument: z.ZodObject<{
7233
7327
  option: string;
7234
7328
  filename: string;
7235
7329
  originalFilename: string;
7236
- }[] | [string, string] | undefined> | undefined;
7237
- originalActionId?: string | undefined;
7330
+ }[] | [string, string] | undefined> | null | undefined;
7331
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7238
7332
  } | {
7239
7333
  type: "NOTIFY";
7240
7334
  id: string;
@@ -7281,7 +7375,8 @@ export declare const EventDocument: z.ZodObject<{
7281
7375
  filename: string;
7282
7376
  originalFilename: string;
7283
7377
  }[] | [string, string] | undefined>;
7284
- createdAtLocation: string;
7378
+ createdBySignature?: string | null | undefined;
7379
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7285
7380
  annotation?: Record<string, string | number | boolean | {
7286
7381
  type: string;
7287
7382
  filename: string;
@@ -7319,8 +7414,8 @@ export declare const EventDocument: z.ZodObject<{
7319
7414
  option: string;
7320
7415
  filename: string;
7321
7416
  originalFilename: string;
7322
- }[] | [string, string] | undefined> | undefined;
7323
- originalActionId?: string | undefined;
7417
+ }[] | [string, string] | undefined> | null | undefined;
7418
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7324
7419
  } | {
7325
7420
  type: "PRINT_CERTIFICATE";
7326
7421
  id: string;
@@ -7367,7 +7462,8 @@ export declare const EventDocument: z.ZodObject<{
7367
7462
  filename: string;
7368
7463
  originalFilename: string;
7369
7464
  }[] | [string, string] | undefined>;
7370
- createdAtLocation: string;
7465
+ createdBySignature?: string | null | undefined;
7466
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7371
7467
  annotation?: Record<string, string | number | boolean | {
7372
7468
  type: string;
7373
7469
  filename: string;
@@ -7405,8 +7501,8 @@ export declare const EventDocument: z.ZodObject<{
7405
7501
  option: string;
7406
7502
  filename: string;
7407
7503
  originalFilename: string;
7408
- }[] | [string, string] | undefined> | undefined;
7409
- originalActionId?: string | undefined;
7504
+ }[] | [string, string] | undefined> | null | undefined;
7505
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7410
7506
  } | {
7411
7507
  type: "REQUEST_CORRECTION";
7412
7508
  id: string;
@@ -7453,7 +7549,8 @@ export declare const EventDocument: z.ZodObject<{
7453
7549
  filename: string;
7454
7550
  originalFilename: string;
7455
7551
  }[] | [string, string] | undefined>;
7456
- createdAtLocation: string;
7552
+ createdBySignature?: string | null | undefined;
7553
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7457
7554
  annotation?: Record<string, string | number | boolean | {
7458
7555
  type: string;
7459
7556
  filename: string;
@@ -7491,8 +7588,8 @@ export declare const EventDocument: z.ZodObject<{
7491
7588
  option: string;
7492
7589
  filename: string;
7493
7590
  originalFilename: string;
7494
- }[] | [string, string] | undefined> | undefined;
7495
- originalActionId?: string | undefined;
7591
+ }[] | [string, string] | undefined> | null | undefined;
7592
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7496
7593
  } | {
7497
7594
  type: "APPROVE_CORRECTION";
7498
7595
  id: string;
@@ -7539,8 +7636,9 @@ export declare const EventDocument: z.ZodObject<{
7539
7636
  filename: string;
7540
7637
  originalFilename: string;
7541
7638
  }[] | [string, string] | undefined>;
7542
- createdAtLocation: string;
7543
7639
  requestId: string;
7640
+ createdBySignature?: string | null | undefined;
7641
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7544
7642
  annotation?: Record<string, string | number | boolean | {
7545
7643
  type: string;
7546
7644
  filename: string;
@@ -7578,8 +7676,8 @@ export declare const EventDocument: z.ZodObject<{
7578
7676
  option: string;
7579
7677
  filename: string;
7580
7678
  originalFilename: string;
7581
- }[] | [string, string] | undefined> | undefined;
7582
- originalActionId?: string | undefined;
7679
+ }[] | [string, string] | undefined> | null | undefined;
7680
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7583
7681
  } | {
7584
7682
  type: "REJECT_CORRECTION";
7585
7683
  id: string;
@@ -7626,8 +7724,9 @@ export declare const EventDocument: z.ZodObject<{
7626
7724
  filename: string;
7627
7725
  originalFilename: string;
7628
7726
  }[] | [string, string] | undefined>;
7629
- createdAtLocation: string;
7630
7727
  requestId: string;
7728
+ createdBySignature?: string | null | undefined;
7729
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7631
7730
  annotation?: Record<string, string | number | boolean | {
7632
7731
  type: string;
7633
7732
  filename: string;
@@ -7665,8 +7764,8 @@ export declare const EventDocument: z.ZodObject<{
7665
7764
  option: string;
7666
7765
  filename: string;
7667
7766
  originalFilename: string;
7668
- }[] | [string, string] | undefined> | undefined;
7669
- originalActionId?: string | undefined;
7767
+ }[] | [string, string] | undefined> | null | undefined;
7768
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7670
7769
  } | {
7671
7770
  type: "READ";
7672
7771
  id: string;
@@ -7713,7 +7812,8 @@ export declare const EventDocument: z.ZodObject<{
7713
7812
  filename: string;
7714
7813
  originalFilename: string;
7715
7814
  }[] | [string, string] | undefined>;
7716
- createdAtLocation: string;
7815
+ createdBySignature?: string | null | undefined;
7816
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7717
7817
  annotation?: Record<string, string | number | boolean | {
7718
7818
  type: string;
7719
7819
  filename: string;
@@ -7751,8 +7851,8 @@ export declare const EventDocument: z.ZodObject<{
7751
7851
  option: string;
7752
7852
  filename: string;
7753
7853
  originalFilename: string;
7754
- }[] | [string, string] | undefined> | undefined;
7755
- originalActionId?: string | undefined;
7854
+ }[] | [string, string] | undefined> | null | undefined;
7855
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7756
7856
  } | {
7757
7857
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7758
7858
  id: string;
@@ -7761,13 +7861,11 @@ export declare const EventDocument: z.ZodObject<{
7761
7861
  createdAt: string;
7762
7862
  createdBy: string;
7763
7863
  createdByRole: string;
7764
- createdAtLocation: string;
7765
- originalActionId?: string | undefined;
7864
+ createdBySignature?: string | null | undefined;
7865
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7866
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7766
7867
  })[];
7767
7868
  trackingId: string;
7768
- dateOfEvent?: {
7769
- fieldId: string;
7770
- } | undefined;
7771
7869
  }, {
7772
7870
  type: string;
7773
7871
  id: string;
@@ -7819,8 +7917,9 @@ export declare const EventDocument: z.ZodObject<{
7819
7917
  filename: string;
7820
7918
  originalFilename: string;
7821
7919
  }[] | [string, string] | undefined>;
7822
- createdAtLocation: string;
7823
7920
  assignedTo: string;
7921
+ createdBySignature?: string | null | undefined;
7922
+ createdAtLocation?: string | null | undefined;
7824
7923
  annotation?: Record<string, string | number | boolean | {
7825
7924
  type: string;
7826
7925
  filename: string;
@@ -7858,8 +7957,8 @@ export declare const EventDocument: z.ZodObject<{
7858
7957
  option: string;
7859
7958
  filename: string;
7860
7959
  originalFilename: string;
7861
- }[] | [string, string] | undefined> | undefined;
7862
- originalActionId?: string | undefined;
7960
+ }[] | [string, string] | undefined> | null | undefined;
7961
+ originalActionId?: string | null | undefined;
7863
7962
  } | {
7864
7963
  type: "UNASSIGN";
7865
7964
  id: string;
@@ -7906,8 +8005,9 @@ export declare const EventDocument: z.ZodObject<{
7906
8005
  filename: string;
7907
8006
  originalFilename: string;
7908
8007
  }[] | [string, string] | undefined>;
7909
- createdAtLocation: string;
7910
8008
  assignedTo: null;
8009
+ createdBySignature?: string | null | undefined;
8010
+ createdAtLocation?: string | null | undefined;
7911
8011
  annotation?: Record<string, string | number | boolean | {
7912
8012
  type: string;
7913
8013
  filename: string;
@@ -7945,8 +8045,8 @@ export declare const EventDocument: z.ZodObject<{
7945
8045
  option: string;
7946
8046
  filename: string;
7947
8047
  originalFilename: string;
7948
- }[] | [string, string] | undefined> | undefined;
7949
- originalActionId?: string | undefined;
8048
+ }[] | [string, string] | undefined> | null | undefined;
8049
+ originalActionId?: string | null | undefined;
7950
8050
  } | {
7951
8051
  type: "REGISTER";
7952
8052
  id: string;
@@ -7993,7 +8093,8 @@ export declare const EventDocument: z.ZodObject<{
7993
8093
  filename: string;
7994
8094
  originalFilename: string;
7995
8095
  }[] | [string, string] | undefined>;
7996
- createdAtLocation: string;
8096
+ createdBySignature?: string | null | undefined;
8097
+ createdAtLocation?: string | null | undefined;
7997
8098
  annotation?: Record<string, string | number | boolean | {
7998
8099
  type: string;
7999
8100
  filename: string;
@@ -8031,8 +8132,8 @@ export declare const EventDocument: z.ZodObject<{
8031
8132
  option: string;
8032
8133
  filename: string;
8033
8134
  originalFilename: string;
8034
- }[] | [string, string] | undefined> | undefined;
8035
- originalActionId?: string | undefined;
8135
+ }[] | [string, string] | undefined> | null | undefined;
8136
+ originalActionId?: string | null | undefined;
8036
8137
  registrationNumber?: string | undefined;
8037
8138
  } | {
8038
8139
  type: "DECLARE";
@@ -8080,7 +8181,8 @@ export declare const EventDocument: z.ZodObject<{
8080
8181
  filename: string;
8081
8182
  originalFilename: string;
8082
8183
  }[] | [string, string] | undefined>;
8083
- createdAtLocation: string;
8184
+ createdBySignature?: string | null | undefined;
8185
+ createdAtLocation?: string | null | undefined;
8084
8186
  annotation?: Record<string, string | number | boolean | {
8085
8187
  type: string;
8086
8188
  filename: string;
@@ -8118,8 +8220,8 @@ export declare const EventDocument: z.ZodObject<{
8118
8220
  option: string;
8119
8221
  filename: string;
8120
8222
  originalFilename: string;
8121
- }[] | [string, string] | undefined> | undefined;
8122
- originalActionId?: string | undefined;
8223
+ }[] | [string, string] | undefined> | null | undefined;
8224
+ originalActionId?: string | null | undefined;
8123
8225
  } | {
8124
8226
  type: "VALIDATE";
8125
8227
  id: string;
@@ -8166,7 +8268,8 @@ export declare const EventDocument: z.ZodObject<{
8166
8268
  filename: string;
8167
8269
  originalFilename: string;
8168
8270
  }[] | [string, string] | undefined>;
8169
- createdAtLocation: string;
8271
+ createdBySignature?: string | null | undefined;
8272
+ createdAtLocation?: string | null | undefined;
8170
8273
  annotation?: Record<string, string | number | boolean | {
8171
8274
  type: string;
8172
8275
  filename: string;
@@ -8204,12 +8307,16 @@ export declare const EventDocument: z.ZodObject<{
8204
8307
  option: string;
8205
8308
  filename: string;
8206
8309
  originalFilename: string;
8207
- }[] | [string, string] | undefined> | undefined;
8208
- originalActionId?: string | undefined;
8310
+ }[] | [string, string] | undefined> | null | undefined;
8311
+ originalActionId?: string | null | undefined;
8209
8312
  } | {
8210
8313
  type: "REJECT";
8211
8314
  id: string;
8212
8315
  status: "Rejected" | "Requested" | "Accepted";
8316
+ reason: {
8317
+ message: string;
8318
+ isDuplicate?: boolean | undefined;
8319
+ };
8213
8320
  transactionId: string;
8214
8321
  createdAt: string;
8215
8322
  createdBy: string;
@@ -8252,7 +8359,8 @@ export declare const EventDocument: z.ZodObject<{
8252
8359
  filename: string;
8253
8360
  originalFilename: string;
8254
8361
  }[] | [string, string] | undefined>;
8255
- createdAtLocation: string;
8362
+ createdBySignature?: string | null | undefined;
8363
+ createdAtLocation?: string | null | undefined;
8256
8364
  annotation?: Record<string, string | number | boolean | {
8257
8365
  type: string;
8258
8366
  filename: string;
@@ -8290,8 +8398,8 @@ export declare const EventDocument: z.ZodObject<{
8290
8398
  option: string;
8291
8399
  filename: string;
8292
8400
  originalFilename: string;
8293
- }[] | [string, string] | undefined> | undefined;
8294
- originalActionId?: string | undefined;
8401
+ }[] | [string, string] | undefined> | null | undefined;
8402
+ originalActionId?: string | null | undefined;
8295
8403
  } | {
8296
8404
  type: "MARKED_AS_DUPLICATE";
8297
8405
  id: string;
@@ -8338,7 +8446,8 @@ export declare const EventDocument: z.ZodObject<{
8338
8446
  filename: string;
8339
8447
  originalFilename: string;
8340
8448
  }[] | [string, string] | undefined>;
8341
- createdAtLocation: string;
8449
+ createdBySignature?: string | null | undefined;
8450
+ createdAtLocation?: string | null | undefined;
8342
8451
  annotation?: Record<string, string | number | boolean | {
8343
8452
  type: string;
8344
8453
  filename: string;
@@ -8376,12 +8485,16 @@ export declare const EventDocument: z.ZodObject<{
8376
8485
  option: string;
8377
8486
  filename: string;
8378
8487
  originalFilename: string;
8379
- }[] | [string, string] | undefined> | undefined;
8380
- originalActionId?: string | undefined;
8488
+ }[] | [string, string] | undefined> | null | undefined;
8489
+ originalActionId?: string | null | undefined;
8381
8490
  } | {
8382
8491
  type: "ARCHIVE";
8383
8492
  id: string;
8384
8493
  status: "Rejected" | "Requested" | "Accepted";
8494
+ reason: {
8495
+ message: string;
8496
+ isDuplicate?: boolean | undefined;
8497
+ };
8385
8498
  transactionId: string;
8386
8499
  createdAt: string;
8387
8500
  createdBy: string;
@@ -8424,7 +8537,8 @@ export declare const EventDocument: z.ZodObject<{
8424
8537
  filename: string;
8425
8538
  originalFilename: string;
8426
8539
  }[] | [string, string] | undefined>;
8427
- createdAtLocation: string;
8540
+ createdBySignature?: string | null | undefined;
8541
+ createdAtLocation?: string | null | undefined;
8428
8542
  annotation?: Record<string, string | number | boolean | {
8429
8543
  type: string;
8430
8544
  filename: string;
@@ -8462,8 +8576,8 @@ export declare const EventDocument: z.ZodObject<{
8462
8576
  option: string;
8463
8577
  filename: string;
8464
8578
  originalFilename: string;
8465
- }[] | [string, string] | undefined> | undefined;
8466
- originalActionId?: string | undefined;
8579
+ }[] | [string, string] | undefined> | null | undefined;
8580
+ originalActionId?: string | null | undefined;
8467
8581
  } | {
8468
8582
  type: "CREATE";
8469
8583
  id: string;
@@ -8510,7 +8624,8 @@ export declare const EventDocument: z.ZodObject<{
8510
8624
  filename: string;
8511
8625
  originalFilename: string;
8512
8626
  }[] | [string, string] | undefined>;
8513
- createdAtLocation: string;
8627
+ createdBySignature?: string | null | undefined;
8628
+ createdAtLocation?: string | null | undefined;
8514
8629
  annotation?: Record<string, string | number | boolean | {
8515
8630
  type: string;
8516
8631
  filename: string;
@@ -8548,8 +8663,8 @@ export declare const EventDocument: z.ZodObject<{
8548
8663
  option: string;
8549
8664
  filename: string;
8550
8665
  originalFilename: string;
8551
- }[] | [string, string] | undefined> | undefined;
8552
- originalActionId?: string | undefined;
8666
+ }[] | [string, string] | undefined> | null | undefined;
8667
+ originalActionId?: string | null | undefined;
8553
8668
  } | {
8554
8669
  type: "NOTIFY";
8555
8670
  id: string;
@@ -8596,7 +8711,8 @@ export declare const EventDocument: z.ZodObject<{
8596
8711
  filename: string;
8597
8712
  originalFilename: string;
8598
8713
  }[] | [string, string] | undefined>;
8599
- createdAtLocation: string;
8714
+ createdBySignature?: string | null | undefined;
8715
+ createdAtLocation?: string | null | undefined;
8600
8716
  annotation?: Record<string, string | number | boolean | {
8601
8717
  type: string;
8602
8718
  filename: string;
@@ -8634,8 +8750,8 @@ export declare const EventDocument: z.ZodObject<{
8634
8750
  option: string;
8635
8751
  filename: string;
8636
8752
  originalFilename: string;
8637
- }[] | [string, string] | undefined> | undefined;
8638
- originalActionId?: string | undefined;
8753
+ }[] | [string, string] | undefined> | null | undefined;
8754
+ originalActionId?: string | null | undefined;
8639
8755
  } | {
8640
8756
  type: "PRINT_CERTIFICATE";
8641
8757
  id: string;
@@ -8682,7 +8798,8 @@ export declare const EventDocument: z.ZodObject<{
8682
8798
  filename: string;
8683
8799
  originalFilename: string;
8684
8800
  }[] | [string, string] | undefined>;
8685
- createdAtLocation: string;
8801
+ createdBySignature?: string | null | undefined;
8802
+ createdAtLocation?: string | null | undefined;
8686
8803
  annotation?: Record<string, string | number | boolean | {
8687
8804
  type: string;
8688
8805
  filename: string;
@@ -8720,8 +8837,8 @@ export declare const EventDocument: z.ZodObject<{
8720
8837
  option: string;
8721
8838
  filename: string;
8722
8839
  originalFilename: string;
8723
- }[] | [string, string] | undefined> | undefined;
8724
- originalActionId?: string | undefined;
8840
+ }[] | [string, string] | undefined> | null | undefined;
8841
+ originalActionId?: string | null | undefined;
8725
8842
  } | {
8726
8843
  type: "REQUEST_CORRECTION";
8727
8844
  id: string;
@@ -8768,7 +8885,8 @@ export declare const EventDocument: z.ZodObject<{
8768
8885
  filename: string;
8769
8886
  originalFilename: string;
8770
8887
  }[] | [string, string] | undefined>;
8771
- createdAtLocation: string;
8888
+ createdBySignature?: string | null | undefined;
8889
+ createdAtLocation?: string | null | undefined;
8772
8890
  annotation?: Record<string, string | number | boolean | {
8773
8891
  type: string;
8774
8892
  filename: string;
@@ -8806,8 +8924,8 @@ export declare const EventDocument: z.ZodObject<{
8806
8924
  option: string;
8807
8925
  filename: string;
8808
8926
  originalFilename: string;
8809
- }[] | [string, string] | undefined> | undefined;
8810
- originalActionId?: string | undefined;
8927
+ }[] | [string, string] | undefined> | null | undefined;
8928
+ originalActionId?: string | null | undefined;
8811
8929
  } | {
8812
8930
  type: "APPROVE_CORRECTION";
8813
8931
  id: string;
@@ -8854,8 +8972,9 @@ export declare const EventDocument: z.ZodObject<{
8854
8972
  filename: string;
8855
8973
  originalFilename: string;
8856
8974
  }[] | [string, string] | undefined>;
8857
- createdAtLocation: string;
8858
8975
  requestId: string;
8976
+ createdBySignature?: string | null | undefined;
8977
+ createdAtLocation?: string | null | undefined;
8859
8978
  annotation?: Record<string, string | number | boolean | {
8860
8979
  type: string;
8861
8980
  filename: string;
@@ -8893,8 +9012,8 @@ export declare const EventDocument: z.ZodObject<{
8893
9012
  option: string;
8894
9013
  filename: string;
8895
9014
  originalFilename: string;
8896
- }[] | [string, string] | undefined> | undefined;
8897
- originalActionId?: string | undefined;
9015
+ }[] | [string, string] | undefined> | null | undefined;
9016
+ originalActionId?: string | null | undefined;
8898
9017
  } | {
8899
9018
  type: "REJECT_CORRECTION";
8900
9019
  id: string;
@@ -8941,8 +9060,9 @@ export declare const EventDocument: z.ZodObject<{
8941
9060
  filename: string;
8942
9061
  originalFilename: string;
8943
9062
  }[] | [string, string] | undefined>;
8944
- createdAtLocation: string;
8945
9063
  requestId: string;
9064
+ createdBySignature?: string | null | undefined;
9065
+ createdAtLocation?: string | null | undefined;
8946
9066
  annotation?: Record<string, string | number | boolean | {
8947
9067
  type: string;
8948
9068
  filename: string;
@@ -8980,8 +9100,8 @@ export declare const EventDocument: z.ZodObject<{
8980
9100
  option: string;
8981
9101
  filename: string;
8982
9102
  originalFilename: string;
8983
- }[] | [string, string] | undefined> | undefined;
8984
- originalActionId?: string | undefined;
9103
+ }[] | [string, string] | undefined> | null | undefined;
9104
+ originalActionId?: string | null | undefined;
8985
9105
  } | {
8986
9106
  type: "READ";
8987
9107
  id: string;
@@ -9028,7 +9148,8 @@ export declare const EventDocument: z.ZodObject<{
9028
9148
  filename: string;
9029
9149
  originalFilename: string;
9030
9150
  }[] | [string, string] | undefined>;
9031
- createdAtLocation: string;
9151
+ createdBySignature?: string | null | undefined;
9152
+ createdAtLocation?: string | null | undefined;
9032
9153
  annotation?: Record<string, string | number | boolean | {
9033
9154
  type: string;
9034
9155
  filename: string;
@@ -9066,8 +9187,8 @@ export declare const EventDocument: z.ZodObject<{
9066
9187
  option: string;
9067
9188
  filename: string;
9068
9189
  originalFilename: string;
9069
- }[] | [string, string] | undefined> | undefined;
9070
- originalActionId?: string | undefined;
9190
+ }[] | [string, string] | undefined> | null | undefined;
9191
+ originalActionId?: string | null | undefined;
9071
9192
  } | {
9072
9193
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
9073
9194
  id: string;
@@ -9076,13 +9197,11 @@ export declare const EventDocument: z.ZodObject<{
9076
9197
  createdAt: string;
9077
9198
  createdBy: string;
9078
9199
  createdByRole: string;
9079
- createdAtLocation: string;
9080
- originalActionId?: string | undefined;
9200
+ createdBySignature?: string | null | undefined;
9201
+ createdAtLocation?: string | null | undefined;
9202
+ originalActionId?: string | null | undefined;
9081
9203
  })[];
9082
9204
  trackingId: string;
9083
- dateOfEvent?: {
9084
- fieldId: string;
9085
- } | undefined;
9086
9205
  }>;
9087
9206
  export type EventDocument = z.infer<typeof EventDocument>;
9088
9207
  //# sourceMappingURL=EventDocument.d.ts.map