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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/commons/api/router.d.ts +7597 -4530
  2. package/dist/commons/conditionals/conditionals.d.ts +7 -6
  3. package/dist/commons/events/ActionConfig.d.ts +47498 -39631
  4. package/dist/commons/events/ActionDocument.d.ts +620 -413
  5. package/dist/commons/events/ActionInput.d.ts +255 -183
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +637 -48
  7. package/dist/commons/events/Constants.d.ts +2 -0
  8. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  9. package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
  10. package/dist/commons/events/Draft.d.ts +29 -26
  11. package/dist/commons/events/EventConfig.d.ts +18414 -16593
  12. package/dist/commons/events/EventDocument.d.ts +373 -325
  13. package/dist/commons/events/EventIndex.d.ts +706 -291
  14. package/dist/commons/events/EventInput.d.ts +0 -13
  15. package/dist/commons/events/EventMetadata.d.ts +290 -14
  16. package/dist/commons/events/FieldConfig.d.ts +1305 -441
  17. package/dist/commons/events/FieldType.d.ts +3 -2
  18. package/dist/commons/events/FieldTypeMapping.d.ts +16 -6
  19. package/dist/commons/events/FieldValue.d.ts +8 -3
  20. package/dist/commons/events/FormConfig.d.ts +8993 -3809
  21. package/dist/commons/events/PageConfig.d.ts +1912 -636
  22. package/dist/commons/events/SummaryConfig.d.ts +17 -0
  23. package/dist/commons/events/User.d.ts +31 -7
  24. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  25. package/dist/commons/events/WorkqueueConfig.d.ts +4491 -10
  26. package/dist/commons/events/defineConfig.d.ts +3576 -3692
  27. package/dist/commons/events/event.d.ts +37 -8
  28. package/dist/commons/events/field.d.ts +28 -23
  29. package/dist/commons/events/index.d.ts +4 -0
  30. package/dist/commons/events/scopes.d.ts +21 -2
  31. package/dist/commons/events/serializer.d.ts +2 -0
  32. package/dist/commons/events/test.utils.d.ts +33 -13
  33. package/dist/commons/events/utils.d.ts +619 -291
  34. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  35. package/dist/conditionals/index.js +28 -8
  36. package/dist/events/index.js +3204 -1546
  37. package/dist/scopes/index.d.ts +158 -1
  38. package/dist/scopes/index.js +152 -1
  39. package/package.json +1 -1
@@ -2,23 +2,17 @@ import { z } from 'zod';
2
2
  export declare const EventDocument: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  type: z.ZodString;
5
- dateOfEvent: z.ZodOptional<z.ZodObject<{
6
- fieldId: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- fieldId: string;
9
- }, {
10
- fieldId: string;
11
- }>>;
12
5
  createdAt: z.ZodString;
13
6
  updatedAt: z.ZodString;
14
- updatedAtLocation: z.ZodString;
15
7
  actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
16
8
  id: z.ZodString;
17
9
  transactionId: z.ZodString;
18
10
  createdAt: z.ZodString;
19
11
  createdBy: z.ZodString;
20
12
  createdByRole: z.ZodString;
21
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
22
16
  filename: z.ZodString;
23
17
  originalFilename: z.ZodString;
24
18
  type: z.ZodString;
@@ -132,7 +126,7 @@ export declare const EventDocument: z.ZodObject<{
132
126
  addressLine3?: string | null | undefined;
133
127
  postcodeOrZip?: string | null | undefined;
134
128
  }>]>>;
135
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
129
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
136
130
  filename: z.ZodString;
137
131
  originalFilename: z.ZodString;
138
132
  type: z.ZodString;
@@ -246,8 +240,6 @@ export declare const EventDocument: z.ZodObject<{
246
240
  addressLine3?: string | null | undefined;
247
241
  postcodeOrZip?: string | null | undefined;
248
242
  }>]>>>;
249
- createdAtLocation: z.ZodOptional<z.ZodString>;
250
- updatedAtLocation: z.ZodOptional<z.ZodString>;
251
243
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
252
244
  originalActionId: z.ZodOptional<z.ZodString>;
253
245
  }, {
@@ -297,7 +289,9 @@ export declare const EventDocument: z.ZodObject<{
297
289
  option: string;
298
290
  filename: string;
299
291
  originalFilename: string;
300
- }[] | undefined>;
292
+ }[] | [string, string] | undefined>;
293
+ createdBySignature?: string | null | undefined;
294
+ createdAtLocation?: string | null | undefined;
301
295
  annotation?: Record<string, string | number | boolean | {
302
296
  type: string;
303
297
  filename: string;
@@ -335,9 +329,7 @@ export declare const EventDocument: z.ZodObject<{
335
329
  option: string;
336
330
  filename: string;
337
331
  originalFilename: string;
338
- }[] | undefined> | undefined;
339
- createdAtLocation?: string | undefined;
340
- updatedAtLocation?: string | undefined;
332
+ }[] | [string, string] | undefined> | undefined;
341
333
  originalActionId?: string | undefined;
342
334
  }, {
343
335
  type: "CREATE";
@@ -384,7 +376,9 @@ export declare const EventDocument: z.ZodObject<{
384
376
  option: string;
385
377
  filename: string;
386
378
  originalFilename: string;
387
- }[] | undefined>;
379
+ }[] | [string, string] | undefined>;
380
+ createdBySignature?: string | null | undefined;
381
+ createdAtLocation?: string | null | undefined;
388
382
  annotation?: Record<string, string | number | boolean | {
389
383
  type: string;
390
384
  filename: string;
@@ -422,9 +416,7 @@ export declare const EventDocument: z.ZodObject<{
422
416
  option: string;
423
417
  filename: string;
424
418
  originalFilename: string;
425
- }[] | undefined> | undefined;
426
- createdAtLocation?: string | undefined;
427
- updatedAtLocation?: string | undefined;
419
+ }[] | [string, string] | undefined> | undefined;
428
420
  originalActionId?: string | undefined;
429
421
  }>, z.ZodObject<z.objectUtil.extendShape<{
430
422
  id: z.ZodString;
@@ -432,7 +424,9 @@ export declare const EventDocument: z.ZodObject<{
432
424
  createdAt: z.ZodString;
433
425
  createdBy: z.ZodString;
434
426
  createdByRole: z.ZodString;
435
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
427
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
428
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
429
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
436
430
  filename: z.ZodString;
437
431
  originalFilename: z.ZodString;
438
432
  type: z.ZodString;
@@ -546,7 +540,7 @@ export declare const EventDocument: z.ZodObject<{
546
540
  addressLine3?: string | null | undefined;
547
541
  postcodeOrZip?: string | null | undefined;
548
542
  }>]>>;
549
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
543
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
550
544
  filename: z.ZodString;
551
545
  originalFilename: z.ZodString;
552
546
  type: z.ZodString;
@@ -660,8 +654,6 @@ export declare const EventDocument: z.ZodObject<{
660
654
  addressLine3?: string | null | undefined;
661
655
  postcodeOrZip?: string | null | undefined;
662
656
  }>]>>>;
663
- createdAtLocation: z.ZodOptional<z.ZodString>;
664
- updatedAtLocation: z.ZodOptional<z.ZodString>;
665
657
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
666
658
  originalActionId: z.ZodOptional<z.ZodString>;
667
659
  }, {
@@ -711,7 +703,9 @@ export declare const EventDocument: z.ZodObject<{
711
703
  option: string;
712
704
  filename: string;
713
705
  originalFilename: string;
714
- }[] | undefined>;
706
+ }[] | [string, string] | undefined>;
707
+ createdBySignature?: string | null | undefined;
708
+ createdAtLocation?: string | null | undefined;
715
709
  annotation?: Record<string, string | number | boolean | {
716
710
  type: string;
717
711
  filename: string;
@@ -749,9 +743,7 @@ export declare const EventDocument: z.ZodObject<{
749
743
  option: string;
750
744
  filename: string;
751
745
  originalFilename: string;
752
- }[] | undefined> | undefined;
753
- createdAtLocation?: string | undefined;
754
- updatedAtLocation?: string | undefined;
746
+ }[] | [string, string] | undefined> | undefined;
755
747
  originalActionId?: string | undefined;
756
748
  }, {
757
749
  type: "VALIDATE";
@@ -798,7 +790,9 @@ export declare const EventDocument: z.ZodObject<{
798
790
  option: string;
799
791
  filename: string;
800
792
  originalFilename: string;
801
- }[] | undefined>;
793
+ }[] | [string, string] | undefined>;
794
+ createdBySignature?: string | null | undefined;
795
+ createdAtLocation?: string | null | undefined;
802
796
  annotation?: Record<string, string | number | boolean | {
803
797
  type: string;
804
798
  filename: string;
@@ -836,9 +830,7 @@ export declare const EventDocument: z.ZodObject<{
836
830
  option: string;
837
831
  filename: string;
838
832
  originalFilename: string;
839
- }[] | undefined> | undefined;
840
- createdAtLocation?: string | undefined;
841
- updatedAtLocation?: string | undefined;
833
+ }[] | [string, string] | undefined> | undefined;
842
834
  originalActionId?: string | undefined;
843
835
  }>, z.ZodObject<z.objectUtil.extendShape<{
844
836
  id: z.ZodString;
@@ -846,7 +838,9 @@ export declare const EventDocument: z.ZodObject<{
846
838
  createdAt: z.ZodString;
847
839
  createdBy: z.ZodString;
848
840
  createdByRole: z.ZodString;
849
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
841
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
842
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
843
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
850
844
  filename: z.ZodString;
851
845
  originalFilename: z.ZodString;
852
846
  type: z.ZodString;
@@ -960,7 +954,7 @@ export declare const EventDocument: z.ZodObject<{
960
954
  addressLine3?: string | null | undefined;
961
955
  postcodeOrZip?: string | null | undefined;
962
956
  }>]>>;
963
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
957
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
964
958
  filename: z.ZodString;
965
959
  originalFilename: z.ZodString;
966
960
  type: z.ZodString;
@@ -1074,16 +1068,28 @@ export declare const EventDocument: z.ZodObject<{
1074
1068
  addressLine3?: string | null | undefined;
1075
1069
  postcodeOrZip?: string | null | undefined;
1076
1070
  }>]>>>;
1077
- createdAtLocation: z.ZodOptional<z.ZodString>;
1078
- updatedAtLocation: z.ZodOptional<z.ZodString>;
1079
1071
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1080
1072
  originalActionId: z.ZodOptional<z.ZodString>;
1081
1073
  }, {
1082
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
+ }>;
1083
1085
  }>, "strip", z.ZodTypeAny, {
1084
1086
  type: "REJECT";
1085
1087
  id: string;
1086
1088
  status: "Rejected" | "Requested" | "Accepted";
1089
+ reason: {
1090
+ message: string;
1091
+ isDuplicate?: boolean | undefined;
1092
+ };
1087
1093
  transactionId: string;
1088
1094
  createdAt: string;
1089
1095
  createdBy: string;
@@ -1125,7 +1131,9 @@ export declare const EventDocument: z.ZodObject<{
1125
1131
  option: string;
1126
1132
  filename: string;
1127
1133
  originalFilename: string;
1128
- }[] | undefined>;
1134
+ }[] | [string, string] | undefined>;
1135
+ createdBySignature?: string | null | undefined;
1136
+ createdAtLocation?: string | null | undefined;
1129
1137
  annotation?: Record<string, string | number | boolean | {
1130
1138
  type: string;
1131
1139
  filename: string;
@@ -1163,14 +1171,16 @@ export declare const EventDocument: z.ZodObject<{
1163
1171
  option: string;
1164
1172
  filename: string;
1165
1173
  originalFilename: string;
1166
- }[] | undefined> | undefined;
1167
- createdAtLocation?: string | undefined;
1168
- updatedAtLocation?: string | undefined;
1174
+ }[] | [string, string] | undefined> | undefined;
1169
1175
  originalActionId?: string | undefined;
1170
1176
  }, {
1171
1177
  type: "REJECT";
1172
1178
  id: string;
1173
1179
  status: "Rejected" | "Requested" | "Accepted";
1180
+ reason: {
1181
+ message: string;
1182
+ isDuplicate?: boolean | undefined;
1183
+ };
1174
1184
  transactionId: string;
1175
1185
  createdAt: string;
1176
1186
  createdBy: string;
@@ -1212,7 +1222,9 @@ export declare const EventDocument: z.ZodObject<{
1212
1222
  option: string;
1213
1223
  filename: string;
1214
1224
  originalFilename: string;
1215
- }[] | undefined>;
1225
+ }[] | [string, string] | undefined>;
1226
+ createdBySignature?: string | null | undefined;
1227
+ createdAtLocation?: string | null | undefined;
1216
1228
  annotation?: Record<string, string | number | boolean | {
1217
1229
  type: string;
1218
1230
  filename: string;
@@ -1250,9 +1262,7 @@ export declare const EventDocument: z.ZodObject<{
1250
1262
  option: string;
1251
1263
  filename: string;
1252
1264
  originalFilename: string;
1253
- }[] | undefined> | undefined;
1254
- createdAtLocation?: string | undefined;
1255
- updatedAtLocation?: string | undefined;
1265
+ }[] | [string, string] | undefined> | undefined;
1256
1266
  originalActionId?: string | undefined;
1257
1267
  }>, z.ZodObject<z.objectUtil.extendShape<{
1258
1268
  id: z.ZodString;
@@ -1260,7 +1270,9 @@ export declare const EventDocument: z.ZodObject<{
1260
1270
  createdAt: z.ZodString;
1261
1271
  createdBy: z.ZodString;
1262
1272
  createdByRole: z.ZodString;
1263
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1273
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1274
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1275
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1264
1276
  filename: z.ZodString;
1265
1277
  originalFilename: z.ZodString;
1266
1278
  type: z.ZodString;
@@ -1374,7 +1386,7 @@ export declare const EventDocument: z.ZodObject<{
1374
1386
  addressLine3?: string | null | undefined;
1375
1387
  postcodeOrZip?: string | null | undefined;
1376
1388
  }>]>>;
1377
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1389
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1378
1390
  filename: z.ZodString;
1379
1391
  originalFilename: z.ZodString;
1380
1392
  type: z.ZodString;
@@ -1488,8 +1500,6 @@ export declare const EventDocument: z.ZodObject<{
1488
1500
  addressLine3?: string | null | undefined;
1489
1501
  postcodeOrZip?: string | null | undefined;
1490
1502
  }>]>>>;
1491
- createdAtLocation: z.ZodOptional<z.ZodString>;
1492
- updatedAtLocation: z.ZodOptional<z.ZodString>;
1493
1503
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1494
1504
  originalActionId: z.ZodOptional<z.ZodString>;
1495
1505
  }, {
@@ -1539,7 +1549,9 @@ export declare const EventDocument: z.ZodObject<{
1539
1549
  option: string;
1540
1550
  filename: string;
1541
1551
  originalFilename: string;
1542
- }[] | undefined>;
1552
+ }[] | [string, string] | undefined>;
1553
+ createdBySignature?: string | null | undefined;
1554
+ createdAtLocation?: string | null | undefined;
1543
1555
  annotation?: Record<string, string | number | boolean | {
1544
1556
  type: string;
1545
1557
  filename: string;
@@ -1577,9 +1589,7 @@ export declare const EventDocument: z.ZodObject<{
1577
1589
  option: string;
1578
1590
  filename: string;
1579
1591
  originalFilename: string;
1580
- }[] | undefined> | undefined;
1581
- createdAtLocation?: string | undefined;
1582
- updatedAtLocation?: string | undefined;
1592
+ }[] | [string, string] | undefined> | undefined;
1583
1593
  originalActionId?: string | undefined;
1584
1594
  }, {
1585
1595
  type: "MARKED_AS_DUPLICATE";
@@ -1626,7 +1636,9 @@ export declare const EventDocument: z.ZodObject<{
1626
1636
  option: string;
1627
1637
  filename: string;
1628
1638
  originalFilename: string;
1629
- }[] | undefined>;
1639
+ }[] | [string, string] | undefined>;
1640
+ createdBySignature?: string | null | undefined;
1641
+ createdAtLocation?: string | null | undefined;
1630
1642
  annotation?: Record<string, string | number | boolean | {
1631
1643
  type: string;
1632
1644
  filename: string;
@@ -1664,9 +1676,7 @@ export declare const EventDocument: z.ZodObject<{
1664
1676
  option: string;
1665
1677
  filename: string;
1666
1678
  originalFilename: string;
1667
- }[] | undefined> | undefined;
1668
- createdAtLocation?: string | undefined;
1669
- updatedAtLocation?: string | undefined;
1679
+ }[] | [string, string] | undefined> | undefined;
1670
1680
  originalActionId?: string | undefined;
1671
1681
  }>, z.ZodObject<z.objectUtil.extendShape<{
1672
1682
  id: z.ZodString;
@@ -1674,7 +1684,9 @@ export declare const EventDocument: z.ZodObject<{
1674
1684
  createdAt: z.ZodString;
1675
1685
  createdBy: z.ZodString;
1676
1686
  createdByRole: z.ZodString;
1677
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1687
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1688
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1689
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1678
1690
  filename: z.ZodString;
1679
1691
  originalFilename: z.ZodString;
1680
1692
  type: z.ZodString;
@@ -1788,7 +1800,7 @@ export declare const EventDocument: z.ZodObject<{
1788
1800
  addressLine3?: string | null | undefined;
1789
1801
  postcodeOrZip?: string | null | undefined;
1790
1802
  }>]>>;
1791
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1803
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1792
1804
  filename: z.ZodString;
1793
1805
  originalFilename: z.ZodString;
1794
1806
  type: z.ZodString;
@@ -1902,16 +1914,28 @@ export declare const EventDocument: z.ZodObject<{
1902
1914
  addressLine3?: string | null | undefined;
1903
1915
  postcodeOrZip?: string | null | undefined;
1904
1916
  }>]>>>;
1905
- createdAtLocation: z.ZodOptional<z.ZodString>;
1906
- updatedAtLocation: z.ZodOptional<z.ZodString>;
1907
1917
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1908
1918
  originalActionId: z.ZodOptional<z.ZodString>;
1909
1919
  }, {
1910
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
+ }>;
1911
1931
  }>, "strip", z.ZodTypeAny, {
1912
1932
  type: "ARCHIVE";
1913
1933
  id: string;
1914
1934
  status: "Rejected" | "Requested" | "Accepted";
1935
+ reason: {
1936
+ message: string;
1937
+ isDuplicate?: boolean | undefined;
1938
+ };
1915
1939
  transactionId: string;
1916
1940
  createdAt: string;
1917
1941
  createdBy: string;
@@ -1953,7 +1977,9 @@ export declare const EventDocument: z.ZodObject<{
1953
1977
  option: string;
1954
1978
  filename: string;
1955
1979
  originalFilename: string;
1956
- }[] | undefined>;
1980
+ }[] | [string, string] | undefined>;
1981
+ createdBySignature?: string | null | undefined;
1982
+ createdAtLocation?: string | null | undefined;
1957
1983
  annotation?: Record<string, string | number | boolean | {
1958
1984
  type: string;
1959
1985
  filename: string;
@@ -1991,14 +2017,16 @@ export declare const EventDocument: z.ZodObject<{
1991
2017
  option: string;
1992
2018
  filename: string;
1993
2019
  originalFilename: string;
1994
- }[] | undefined> | undefined;
1995
- createdAtLocation?: string | undefined;
1996
- updatedAtLocation?: string | undefined;
2020
+ }[] | [string, string] | undefined> | undefined;
1997
2021
  originalActionId?: string | undefined;
1998
2022
  }, {
1999
2023
  type: "ARCHIVE";
2000
2024
  id: string;
2001
2025
  status: "Rejected" | "Requested" | "Accepted";
2026
+ reason: {
2027
+ message: string;
2028
+ isDuplicate?: boolean | undefined;
2029
+ };
2002
2030
  transactionId: string;
2003
2031
  createdAt: string;
2004
2032
  createdBy: string;
@@ -2040,7 +2068,9 @@ export declare const EventDocument: z.ZodObject<{
2040
2068
  option: string;
2041
2069
  filename: string;
2042
2070
  originalFilename: string;
2043
- }[] | undefined>;
2071
+ }[] | [string, string] | undefined>;
2072
+ createdBySignature?: string | null | undefined;
2073
+ createdAtLocation?: string | null | undefined;
2044
2074
  annotation?: Record<string, string | number | boolean | {
2045
2075
  type: string;
2046
2076
  filename: string;
@@ -2078,9 +2108,7 @@ export declare const EventDocument: z.ZodObject<{
2078
2108
  option: string;
2079
2109
  filename: string;
2080
2110
  originalFilename: string;
2081
- }[] | undefined> | undefined;
2082
- createdAtLocation?: string | undefined;
2083
- updatedAtLocation?: string | undefined;
2111
+ }[] | [string, string] | undefined> | undefined;
2084
2112
  originalActionId?: string | undefined;
2085
2113
  }>, z.ZodObject<z.objectUtil.extendShape<{
2086
2114
  id: z.ZodString;
@@ -2088,7 +2116,9 @@ export declare const EventDocument: z.ZodObject<{
2088
2116
  createdAt: z.ZodString;
2089
2117
  createdBy: z.ZodString;
2090
2118
  createdByRole: z.ZodString;
2091
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2119
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2120
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2121
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2092
2122
  filename: z.ZodString;
2093
2123
  originalFilename: z.ZodString;
2094
2124
  type: z.ZodString;
@@ -2202,7 +2232,7 @@ export declare const EventDocument: z.ZodObject<{
2202
2232
  addressLine3?: string | null | undefined;
2203
2233
  postcodeOrZip?: string | null | undefined;
2204
2234
  }>]>>;
2205
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2235
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2206
2236
  filename: z.ZodString;
2207
2237
  originalFilename: z.ZodString;
2208
2238
  type: z.ZodString;
@@ -2316,8 +2346,6 @@ export declare const EventDocument: z.ZodObject<{
2316
2346
  addressLine3?: string | null | undefined;
2317
2347
  postcodeOrZip?: string | null | undefined;
2318
2348
  }>]>>>;
2319
- createdAtLocation: z.ZodOptional<z.ZodString>;
2320
- updatedAtLocation: z.ZodOptional<z.ZodString>;
2321
2349
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2322
2350
  originalActionId: z.ZodOptional<z.ZodString>;
2323
2351
  }, {
@@ -2367,7 +2395,9 @@ export declare const EventDocument: z.ZodObject<{
2367
2395
  option: string;
2368
2396
  filename: string;
2369
2397
  originalFilename: string;
2370
- }[] | undefined>;
2398
+ }[] | [string, string] | undefined>;
2399
+ createdBySignature?: string | null | undefined;
2400
+ createdAtLocation?: string | null | undefined;
2371
2401
  annotation?: Record<string, string | number | boolean | {
2372
2402
  type: string;
2373
2403
  filename: string;
@@ -2405,9 +2435,7 @@ export declare const EventDocument: z.ZodObject<{
2405
2435
  option: string;
2406
2436
  filename: string;
2407
2437
  originalFilename: string;
2408
- }[] | undefined> | undefined;
2409
- createdAtLocation?: string | undefined;
2410
- updatedAtLocation?: string | undefined;
2438
+ }[] | [string, string] | undefined> | undefined;
2411
2439
  originalActionId?: string | undefined;
2412
2440
  }, {
2413
2441
  type: "NOTIFY";
@@ -2454,7 +2482,9 @@ export declare const EventDocument: z.ZodObject<{
2454
2482
  option: string;
2455
2483
  filename: string;
2456
2484
  originalFilename: string;
2457
- }[] | undefined>;
2485
+ }[] | [string, string] | undefined>;
2486
+ createdBySignature?: string | null | undefined;
2487
+ createdAtLocation?: string | null | undefined;
2458
2488
  annotation?: Record<string, string | number | boolean | {
2459
2489
  type: string;
2460
2490
  filename: string;
@@ -2492,9 +2522,7 @@ export declare const EventDocument: z.ZodObject<{
2492
2522
  option: string;
2493
2523
  filename: string;
2494
2524
  originalFilename: string;
2495
- }[] | undefined> | undefined;
2496
- createdAtLocation?: string | undefined;
2497
- updatedAtLocation?: string | undefined;
2525
+ }[] | [string, string] | undefined> | undefined;
2498
2526
  originalActionId?: string | undefined;
2499
2527
  }>, z.ZodObject<z.objectUtil.extendShape<{
2500
2528
  id: z.ZodString;
@@ -2502,7 +2530,9 @@ export declare const EventDocument: z.ZodObject<{
2502
2530
  createdAt: z.ZodString;
2503
2531
  createdBy: z.ZodString;
2504
2532
  createdByRole: z.ZodString;
2505
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2533
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2534
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2535
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2506
2536
  filename: z.ZodString;
2507
2537
  originalFilename: z.ZodString;
2508
2538
  type: z.ZodString;
@@ -2616,7 +2646,7 @@ export declare const EventDocument: z.ZodObject<{
2616
2646
  addressLine3?: string | null | undefined;
2617
2647
  postcodeOrZip?: string | null | undefined;
2618
2648
  }>]>>;
2619
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2649
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2620
2650
  filename: z.ZodString;
2621
2651
  originalFilename: z.ZodString;
2622
2652
  type: z.ZodString;
@@ -2730,8 +2760,6 @@ export declare const EventDocument: z.ZodObject<{
2730
2760
  addressLine3?: string | null | undefined;
2731
2761
  postcodeOrZip?: string | null | undefined;
2732
2762
  }>]>>>;
2733
- createdAtLocation: z.ZodOptional<z.ZodString>;
2734
- updatedAtLocation: z.ZodOptional<z.ZodString>;
2735
2763
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2736
2764
  originalActionId: z.ZodOptional<z.ZodString>;
2737
2765
  }, {
@@ -2782,7 +2810,9 @@ export declare const EventDocument: z.ZodObject<{
2782
2810
  option: string;
2783
2811
  filename: string;
2784
2812
  originalFilename: string;
2785
- }[] | undefined>;
2813
+ }[] | [string, string] | undefined>;
2814
+ createdBySignature?: string | null | undefined;
2815
+ createdAtLocation?: string | null | undefined;
2786
2816
  annotation?: Record<string, string | number | boolean | {
2787
2817
  type: string;
2788
2818
  filename: string;
@@ -2820,9 +2850,7 @@ export declare const EventDocument: z.ZodObject<{
2820
2850
  option: string;
2821
2851
  filename: string;
2822
2852
  originalFilename: string;
2823
- }[] | undefined> | undefined;
2824
- createdAtLocation?: string | undefined;
2825
- updatedAtLocation?: string | undefined;
2853
+ }[] | [string, string] | undefined> | undefined;
2826
2854
  originalActionId?: string | undefined;
2827
2855
  registrationNumber?: string | undefined;
2828
2856
  }, {
@@ -2870,7 +2898,9 @@ export declare const EventDocument: z.ZodObject<{
2870
2898
  option: string;
2871
2899
  filename: string;
2872
2900
  originalFilename: string;
2873
- }[] | undefined>;
2901
+ }[] | [string, string] | undefined>;
2902
+ createdBySignature?: string | null | undefined;
2903
+ createdAtLocation?: string | null | undefined;
2874
2904
  annotation?: Record<string, string | number | boolean | {
2875
2905
  type: string;
2876
2906
  filename: string;
@@ -2908,9 +2938,7 @@ export declare const EventDocument: z.ZodObject<{
2908
2938
  option: string;
2909
2939
  filename: string;
2910
2940
  originalFilename: string;
2911
- }[] | undefined> | undefined;
2912
- createdAtLocation?: string | undefined;
2913
- updatedAtLocation?: string | undefined;
2941
+ }[] | [string, string] | undefined> | undefined;
2914
2942
  originalActionId?: string | undefined;
2915
2943
  registrationNumber?: string | undefined;
2916
2944
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -2919,7 +2947,9 @@ export declare const EventDocument: z.ZodObject<{
2919
2947
  createdAt: z.ZodString;
2920
2948
  createdBy: z.ZodString;
2921
2949
  createdByRole: z.ZodString;
2922
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2950
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2951
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2952
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2923
2953
  filename: z.ZodString;
2924
2954
  originalFilename: z.ZodString;
2925
2955
  type: z.ZodString;
@@ -3033,7 +3063,7 @@ export declare const EventDocument: z.ZodObject<{
3033
3063
  addressLine3?: string | null | undefined;
3034
3064
  postcodeOrZip?: string | null | undefined;
3035
3065
  }>]>>;
3036
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3066
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3037
3067
  filename: z.ZodString;
3038
3068
  originalFilename: z.ZodString;
3039
3069
  type: z.ZodString;
@@ -3147,8 +3177,6 @@ export declare const EventDocument: z.ZodObject<{
3147
3177
  addressLine3?: string | null | undefined;
3148
3178
  postcodeOrZip?: string | null | undefined;
3149
3179
  }>]>>>;
3150
- createdAtLocation: z.ZodOptional<z.ZodString>;
3151
- updatedAtLocation: z.ZodOptional<z.ZodString>;
3152
3180
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3153
3181
  originalActionId: z.ZodOptional<z.ZodString>;
3154
3182
  }, {
@@ -3198,7 +3226,9 @@ export declare const EventDocument: z.ZodObject<{
3198
3226
  option: string;
3199
3227
  filename: string;
3200
3228
  originalFilename: string;
3201
- }[] | undefined>;
3229
+ }[] | [string, string] | undefined>;
3230
+ createdBySignature?: string | null | undefined;
3231
+ createdAtLocation?: string | null | undefined;
3202
3232
  annotation?: Record<string, string | number | boolean | {
3203
3233
  type: string;
3204
3234
  filename: string;
@@ -3236,9 +3266,7 @@ export declare const EventDocument: z.ZodObject<{
3236
3266
  option: string;
3237
3267
  filename: string;
3238
3268
  originalFilename: string;
3239
- }[] | undefined> | undefined;
3240
- createdAtLocation?: string | undefined;
3241
- updatedAtLocation?: string | undefined;
3269
+ }[] | [string, string] | undefined> | undefined;
3242
3270
  originalActionId?: string | undefined;
3243
3271
  }, {
3244
3272
  type: "DECLARE";
@@ -3285,7 +3313,9 @@ export declare const EventDocument: z.ZodObject<{
3285
3313
  option: string;
3286
3314
  filename: string;
3287
3315
  originalFilename: string;
3288
- }[] | undefined>;
3316
+ }[] | [string, string] | undefined>;
3317
+ createdBySignature?: string | null | undefined;
3318
+ createdAtLocation?: string | null | undefined;
3289
3319
  annotation?: Record<string, string | number | boolean | {
3290
3320
  type: string;
3291
3321
  filename: string;
@@ -3323,9 +3353,7 @@ export declare const EventDocument: z.ZodObject<{
3323
3353
  option: string;
3324
3354
  filename: string;
3325
3355
  originalFilename: string;
3326
- }[] | undefined> | undefined;
3327
- createdAtLocation?: string | undefined;
3328
- updatedAtLocation?: string | undefined;
3356
+ }[] | [string, string] | undefined> | undefined;
3329
3357
  originalActionId?: string | undefined;
3330
3358
  }>, z.ZodObject<z.objectUtil.extendShape<{
3331
3359
  id: z.ZodString;
@@ -3333,7 +3361,9 @@ export declare const EventDocument: z.ZodObject<{
3333
3361
  createdAt: z.ZodString;
3334
3362
  createdBy: z.ZodString;
3335
3363
  createdByRole: z.ZodString;
3336
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3364
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3365
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3366
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3337
3367
  filename: z.ZodString;
3338
3368
  originalFilename: z.ZodString;
3339
3369
  type: z.ZodString;
@@ -3447,7 +3477,7 @@ export declare const EventDocument: z.ZodObject<{
3447
3477
  addressLine3?: string | null | undefined;
3448
3478
  postcodeOrZip?: string | null | undefined;
3449
3479
  }>]>>;
3450
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3480
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3451
3481
  filename: z.ZodString;
3452
3482
  originalFilename: z.ZodString;
3453
3483
  type: z.ZodString;
@@ -3561,8 +3591,6 @@ export declare const EventDocument: z.ZodObject<{
3561
3591
  addressLine3?: string | null | undefined;
3562
3592
  postcodeOrZip?: string | null | undefined;
3563
3593
  }>]>>>;
3564
- createdAtLocation: z.ZodOptional<z.ZodString>;
3565
- updatedAtLocation: z.ZodOptional<z.ZodString>;
3566
3594
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3567
3595
  originalActionId: z.ZodOptional<z.ZodString>;
3568
3596
  }, {
@@ -3613,8 +3641,10 @@ export declare const EventDocument: z.ZodObject<{
3613
3641
  option: string;
3614
3642
  filename: string;
3615
3643
  originalFilename: string;
3616
- }[] | undefined>;
3644
+ }[] | [string, string] | undefined>;
3617
3645
  assignedTo: string;
3646
+ createdBySignature?: string | null | undefined;
3647
+ createdAtLocation?: string | null | undefined;
3618
3648
  annotation?: Record<string, string | number | boolean | {
3619
3649
  type: string;
3620
3650
  filename: string;
@@ -3652,9 +3682,7 @@ export declare const EventDocument: z.ZodObject<{
3652
3682
  option: string;
3653
3683
  filename: string;
3654
3684
  originalFilename: string;
3655
- }[] | undefined> | undefined;
3656
- createdAtLocation?: string | undefined;
3657
- updatedAtLocation?: string | undefined;
3685
+ }[] | [string, string] | undefined> | undefined;
3658
3686
  originalActionId?: string | undefined;
3659
3687
  }, {
3660
3688
  type: "ASSIGN";
@@ -3701,8 +3729,10 @@ export declare const EventDocument: z.ZodObject<{
3701
3729
  option: string;
3702
3730
  filename: string;
3703
3731
  originalFilename: string;
3704
- }[] | undefined>;
3732
+ }[] | [string, string] | undefined>;
3705
3733
  assignedTo: string;
3734
+ createdBySignature?: string | null | undefined;
3735
+ createdAtLocation?: string | null | undefined;
3706
3736
  annotation?: Record<string, string | number | boolean | {
3707
3737
  type: string;
3708
3738
  filename: string;
@@ -3740,9 +3770,7 @@ export declare const EventDocument: z.ZodObject<{
3740
3770
  option: string;
3741
3771
  filename: string;
3742
3772
  originalFilename: string;
3743
- }[] | undefined> | undefined;
3744
- createdAtLocation?: string | undefined;
3745
- updatedAtLocation?: string | undefined;
3773
+ }[] | [string, string] | undefined> | undefined;
3746
3774
  originalActionId?: string | undefined;
3747
3775
  }>, z.ZodObject<z.objectUtil.extendShape<{
3748
3776
  id: z.ZodString;
@@ -3750,7 +3778,9 @@ export declare const EventDocument: z.ZodObject<{
3750
3778
  createdAt: z.ZodString;
3751
3779
  createdBy: z.ZodString;
3752
3780
  createdByRole: z.ZodString;
3753
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3781
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3782
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3783
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3754
3784
  filename: z.ZodString;
3755
3785
  originalFilename: z.ZodString;
3756
3786
  type: z.ZodString;
@@ -3864,7 +3894,7 @@ export declare const EventDocument: z.ZodObject<{
3864
3894
  addressLine3?: string | null | undefined;
3865
3895
  postcodeOrZip?: string | null | undefined;
3866
3896
  }>]>>;
3867
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3897
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3868
3898
  filename: z.ZodString;
3869
3899
  originalFilename: z.ZodString;
3870
3900
  type: z.ZodString;
@@ -3978,8 +4008,6 @@ export declare const EventDocument: z.ZodObject<{
3978
4008
  addressLine3?: string | null | undefined;
3979
4009
  postcodeOrZip?: string | null | undefined;
3980
4010
  }>]>>>;
3981
- createdAtLocation: z.ZodOptional<z.ZodString>;
3982
- updatedAtLocation: z.ZodOptional<z.ZodString>;
3983
4011
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3984
4012
  originalActionId: z.ZodOptional<z.ZodString>;
3985
4013
  }, {
@@ -4029,7 +4057,9 @@ export declare const EventDocument: z.ZodObject<{
4029
4057
  option: string;
4030
4058
  filename: string;
4031
4059
  originalFilename: string;
4032
- }[] | undefined>;
4060
+ }[] | [string, string] | undefined>;
4061
+ createdBySignature?: string | null | undefined;
4062
+ createdAtLocation?: string | null | undefined;
4033
4063
  annotation?: Record<string, string | number | boolean | {
4034
4064
  type: string;
4035
4065
  filename: string;
@@ -4067,9 +4097,7 @@ export declare const EventDocument: z.ZodObject<{
4067
4097
  option: string;
4068
4098
  filename: string;
4069
4099
  originalFilename: string;
4070
- }[] | undefined> | undefined;
4071
- createdAtLocation?: string | undefined;
4072
- updatedAtLocation?: string | undefined;
4100
+ }[] | [string, string] | undefined> | undefined;
4073
4101
  originalActionId?: string | undefined;
4074
4102
  }, {
4075
4103
  type: "REQUEST_CORRECTION";
@@ -4116,7 +4144,9 @@ export declare const EventDocument: z.ZodObject<{
4116
4144
  option: string;
4117
4145
  filename: string;
4118
4146
  originalFilename: string;
4119
- }[] | undefined>;
4147
+ }[] | [string, string] | undefined>;
4148
+ createdBySignature?: string | null | undefined;
4149
+ createdAtLocation?: string | null | undefined;
4120
4150
  annotation?: Record<string, string | number | boolean | {
4121
4151
  type: string;
4122
4152
  filename: string;
@@ -4154,9 +4184,7 @@ export declare const EventDocument: z.ZodObject<{
4154
4184
  option: string;
4155
4185
  filename: string;
4156
4186
  originalFilename: string;
4157
- }[] | undefined> | undefined;
4158
- createdAtLocation?: string | undefined;
4159
- updatedAtLocation?: string | undefined;
4187
+ }[] | [string, string] | undefined> | undefined;
4160
4188
  originalActionId?: string | undefined;
4161
4189
  }>, z.ZodObject<z.objectUtil.extendShape<{
4162
4190
  id: z.ZodString;
@@ -4164,7 +4192,9 @@ export declare const EventDocument: z.ZodObject<{
4164
4192
  createdAt: z.ZodString;
4165
4193
  createdBy: z.ZodString;
4166
4194
  createdByRole: z.ZodString;
4167
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4195
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4196
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4197
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4168
4198
  filename: z.ZodString;
4169
4199
  originalFilename: z.ZodString;
4170
4200
  type: z.ZodString;
@@ -4278,7 +4308,7 @@ export declare const EventDocument: z.ZodObject<{
4278
4308
  addressLine3?: string | null | undefined;
4279
4309
  postcodeOrZip?: string | null | undefined;
4280
4310
  }>]>>;
4281
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4311
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4282
4312
  filename: z.ZodString;
4283
4313
  originalFilename: z.ZodString;
4284
4314
  type: z.ZodString;
@@ -4392,8 +4422,6 @@ export declare const EventDocument: z.ZodObject<{
4392
4422
  addressLine3?: string | null | undefined;
4393
4423
  postcodeOrZip?: string | null | undefined;
4394
4424
  }>]>>>;
4395
- createdAtLocation: z.ZodOptional<z.ZodString>;
4396
- updatedAtLocation: z.ZodOptional<z.ZodString>;
4397
4425
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4398
4426
  originalActionId: z.ZodOptional<z.ZodString>;
4399
4427
  }, {
@@ -4444,8 +4472,10 @@ export declare const EventDocument: z.ZodObject<{
4444
4472
  option: string;
4445
4473
  filename: string;
4446
4474
  originalFilename: string;
4447
- }[] | undefined>;
4475
+ }[] | [string, string] | undefined>;
4448
4476
  requestId: string;
4477
+ createdBySignature?: string | null | undefined;
4478
+ createdAtLocation?: string | null | undefined;
4449
4479
  annotation?: Record<string, string | number | boolean | {
4450
4480
  type: string;
4451
4481
  filename: string;
@@ -4483,9 +4513,7 @@ export declare const EventDocument: z.ZodObject<{
4483
4513
  option: string;
4484
4514
  filename: string;
4485
4515
  originalFilename: string;
4486
- }[] | undefined> | undefined;
4487
- createdAtLocation?: string | undefined;
4488
- updatedAtLocation?: string | undefined;
4516
+ }[] | [string, string] | undefined> | undefined;
4489
4517
  originalActionId?: string | undefined;
4490
4518
  }, {
4491
4519
  type: "APPROVE_CORRECTION";
@@ -4532,8 +4560,10 @@ export declare const EventDocument: z.ZodObject<{
4532
4560
  option: string;
4533
4561
  filename: string;
4534
4562
  originalFilename: string;
4535
- }[] | undefined>;
4563
+ }[] | [string, string] | undefined>;
4536
4564
  requestId: string;
4565
+ createdBySignature?: string | null | undefined;
4566
+ createdAtLocation?: string | null | undefined;
4537
4567
  annotation?: Record<string, string | number | boolean | {
4538
4568
  type: string;
4539
4569
  filename: string;
@@ -4571,9 +4601,7 @@ export declare const EventDocument: z.ZodObject<{
4571
4601
  option: string;
4572
4602
  filename: string;
4573
4603
  originalFilename: string;
4574
- }[] | undefined> | undefined;
4575
- createdAtLocation?: string | undefined;
4576
- updatedAtLocation?: string | undefined;
4604
+ }[] | [string, string] | undefined> | undefined;
4577
4605
  originalActionId?: string | undefined;
4578
4606
  }>, z.ZodObject<z.objectUtil.extendShape<{
4579
4607
  id: z.ZodString;
@@ -4581,7 +4609,9 @@ export declare const EventDocument: z.ZodObject<{
4581
4609
  createdAt: z.ZodString;
4582
4610
  createdBy: z.ZodString;
4583
4611
  createdByRole: z.ZodString;
4584
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4612
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4613
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4614
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4585
4615
  filename: z.ZodString;
4586
4616
  originalFilename: z.ZodString;
4587
4617
  type: z.ZodString;
@@ -4695,7 +4725,7 @@ export declare const EventDocument: z.ZodObject<{
4695
4725
  addressLine3?: string | null | undefined;
4696
4726
  postcodeOrZip?: string | null | undefined;
4697
4727
  }>]>>;
4698
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4728
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4699
4729
  filename: z.ZodString;
4700
4730
  originalFilename: z.ZodString;
4701
4731
  type: z.ZodString;
@@ -4809,8 +4839,6 @@ export declare const EventDocument: z.ZodObject<{
4809
4839
  addressLine3?: string | null | undefined;
4810
4840
  postcodeOrZip?: string | null | undefined;
4811
4841
  }>]>>>;
4812
- createdAtLocation: z.ZodOptional<z.ZodString>;
4813
- updatedAtLocation: z.ZodOptional<z.ZodString>;
4814
4842
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4815
4843
  originalActionId: z.ZodOptional<z.ZodString>;
4816
4844
  }, {
@@ -4861,8 +4889,10 @@ export declare const EventDocument: z.ZodObject<{
4861
4889
  option: string;
4862
4890
  filename: string;
4863
4891
  originalFilename: string;
4864
- }[] | undefined>;
4892
+ }[] | [string, string] | undefined>;
4865
4893
  requestId: string;
4894
+ createdBySignature?: string | null | undefined;
4895
+ createdAtLocation?: string | null | undefined;
4866
4896
  annotation?: Record<string, string | number | boolean | {
4867
4897
  type: string;
4868
4898
  filename: string;
@@ -4900,9 +4930,7 @@ export declare const EventDocument: z.ZodObject<{
4900
4930
  option: string;
4901
4931
  filename: string;
4902
4932
  originalFilename: string;
4903
- }[] | undefined> | undefined;
4904
- createdAtLocation?: string | undefined;
4905
- updatedAtLocation?: string | undefined;
4933
+ }[] | [string, string] | undefined> | undefined;
4906
4934
  originalActionId?: string | undefined;
4907
4935
  }, {
4908
4936
  type: "REJECT_CORRECTION";
@@ -4949,8 +4977,10 @@ export declare const EventDocument: z.ZodObject<{
4949
4977
  option: string;
4950
4978
  filename: string;
4951
4979
  originalFilename: string;
4952
- }[] | undefined>;
4980
+ }[] | [string, string] | undefined>;
4953
4981
  requestId: string;
4982
+ createdBySignature?: string | null | undefined;
4983
+ createdAtLocation?: string | null | undefined;
4954
4984
  annotation?: Record<string, string | number | boolean | {
4955
4985
  type: string;
4956
4986
  filename: string;
@@ -4988,9 +5018,7 @@ export declare const EventDocument: z.ZodObject<{
4988
5018
  option: string;
4989
5019
  filename: string;
4990
5020
  originalFilename: string;
4991
- }[] | undefined> | undefined;
4992
- createdAtLocation?: string | undefined;
4993
- updatedAtLocation?: string | undefined;
5021
+ }[] | [string, string] | undefined> | undefined;
4994
5022
  originalActionId?: string | undefined;
4995
5023
  }>, z.ZodObject<z.objectUtil.extendShape<{
4996
5024
  id: z.ZodString;
@@ -4998,7 +5026,9 @@ export declare const EventDocument: z.ZodObject<{
4998
5026
  createdAt: z.ZodString;
4999
5027
  createdBy: z.ZodString;
5000
5028
  createdByRole: z.ZodString;
5001
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5029
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5030
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5031
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5002
5032
  filename: z.ZodString;
5003
5033
  originalFilename: z.ZodString;
5004
5034
  type: z.ZodString;
@@ -5112,7 +5142,7 @@ export declare const EventDocument: z.ZodObject<{
5112
5142
  addressLine3?: string | null | undefined;
5113
5143
  postcodeOrZip?: string | null | undefined;
5114
5144
  }>]>>;
5115
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5145
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5116
5146
  filename: z.ZodString;
5117
5147
  originalFilename: z.ZodString;
5118
5148
  type: z.ZodString;
@@ -5226,8 +5256,6 @@ export declare const EventDocument: z.ZodObject<{
5226
5256
  addressLine3?: string | null | undefined;
5227
5257
  postcodeOrZip?: string | null | undefined;
5228
5258
  }>]>>>;
5229
- createdAtLocation: z.ZodOptional<z.ZodString>;
5230
- updatedAtLocation: z.ZodOptional<z.ZodString>;
5231
5259
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5232
5260
  originalActionId: z.ZodOptional<z.ZodString>;
5233
5261
  }, {
@@ -5278,8 +5306,10 @@ export declare const EventDocument: z.ZodObject<{
5278
5306
  option: string;
5279
5307
  filename: string;
5280
5308
  originalFilename: string;
5281
- }[] | undefined>;
5309
+ }[] | [string, string] | undefined>;
5282
5310
  assignedTo: null;
5311
+ createdBySignature?: string | null | undefined;
5312
+ createdAtLocation?: string | null | undefined;
5283
5313
  annotation?: Record<string, string | number | boolean | {
5284
5314
  type: string;
5285
5315
  filename: string;
@@ -5317,9 +5347,7 @@ export declare const EventDocument: z.ZodObject<{
5317
5347
  option: string;
5318
5348
  filename: string;
5319
5349
  originalFilename: string;
5320
- }[] | undefined> | undefined;
5321
- createdAtLocation?: string | undefined;
5322
- updatedAtLocation?: string | undefined;
5350
+ }[] | [string, string] | undefined> | undefined;
5323
5351
  originalActionId?: string | undefined;
5324
5352
  }, {
5325
5353
  type: "UNASSIGN";
@@ -5366,8 +5394,10 @@ export declare const EventDocument: z.ZodObject<{
5366
5394
  option: string;
5367
5395
  filename: string;
5368
5396
  originalFilename: string;
5369
- }[] | undefined>;
5397
+ }[] | [string, string] | undefined>;
5370
5398
  assignedTo: null;
5399
+ createdBySignature?: string | null | undefined;
5400
+ createdAtLocation?: string | null | undefined;
5371
5401
  annotation?: Record<string, string | number | boolean | {
5372
5402
  type: string;
5373
5403
  filename: string;
@@ -5405,9 +5435,7 @@ export declare const EventDocument: z.ZodObject<{
5405
5435
  option: string;
5406
5436
  filename: string;
5407
5437
  originalFilename: string;
5408
- }[] | undefined> | undefined;
5409
- createdAtLocation?: string | undefined;
5410
- updatedAtLocation?: string | undefined;
5438
+ }[] | [string, string] | undefined> | undefined;
5411
5439
  originalActionId?: string | undefined;
5412
5440
  }>, z.ZodObject<z.objectUtil.extendShape<{
5413
5441
  id: z.ZodString;
@@ -5415,7 +5443,9 @@ export declare const EventDocument: z.ZodObject<{
5415
5443
  createdAt: z.ZodString;
5416
5444
  createdBy: z.ZodString;
5417
5445
  createdByRole: z.ZodString;
5418
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5446
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5447
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5448
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5419
5449
  filename: z.ZodString;
5420
5450
  originalFilename: z.ZodString;
5421
5451
  type: z.ZodString;
@@ -5529,7 +5559,7 @@ export declare const EventDocument: z.ZodObject<{
5529
5559
  addressLine3?: string | null | undefined;
5530
5560
  postcodeOrZip?: string | null | undefined;
5531
5561
  }>]>>;
5532
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5562
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5533
5563
  filename: z.ZodString;
5534
5564
  originalFilename: z.ZodString;
5535
5565
  type: z.ZodString;
@@ -5643,8 +5673,6 @@ export declare const EventDocument: z.ZodObject<{
5643
5673
  addressLine3?: string | null | undefined;
5644
5674
  postcodeOrZip?: string | null | undefined;
5645
5675
  }>]>>>;
5646
- createdAtLocation: z.ZodOptional<z.ZodString>;
5647
- updatedAtLocation: z.ZodOptional<z.ZodString>;
5648
5676
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5649
5677
  originalActionId: z.ZodOptional<z.ZodString>;
5650
5678
  }, {
@@ -5694,7 +5722,9 @@ export declare const EventDocument: z.ZodObject<{
5694
5722
  option: string;
5695
5723
  filename: string;
5696
5724
  originalFilename: string;
5697
- }[] | undefined>;
5725
+ }[] | [string, string] | undefined>;
5726
+ createdBySignature?: string | null | undefined;
5727
+ createdAtLocation?: string | null | undefined;
5698
5728
  annotation?: Record<string, string | number | boolean | {
5699
5729
  type: string;
5700
5730
  filename: string;
@@ -5732,9 +5762,7 @@ export declare const EventDocument: z.ZodObject<{
5732
5762
  option: string;
5733
5763
  filename: string;
5734
5764
  originalFilename: string;
5735
- }[] | undefined> | undefined;
5736
- createdAtLocation?: string | undefined;
5737
- updatedAtLocation?: string | undefined;
5765
+ }[] | [string, string] | undefined> | undefined;
5738
5766
  originalActionId?: string | undefined;
5739
5767
  }, {
5740
5768
  type: "PRINT_CERTIFICATE";
@@ -5781,7 +5809,9 @@ export declare const EventDocument: z.ZodObject<{
5781
5809
  option: string;
5782
5810
  filename: string;
5783
5811
  originalFilename: string;
5784
- }[] | undefined>;
5812
+ }[] | [string, string] | undefined>;
5813
+ createdBySignature?: string | null | undefined;
5814
+ createdAtLocation?: string | null | undefined;
5785
5815
  annotation?: Record<string, string | number | boolean | {
5786
5816
  type: string;
5787
5817
  filename: string;
@@ -5819,9 +5849,7 @@ export declare const EventDocument: z.ZodObject<{
5819
5849
  option: string;
5820
5850
  filename: string;
5821
5851
  originalFilename: string;
5822
- }[] | undefined> | undefined;
5823
- createdAtLocation?: string | undefined;
5824
- updatedAtLocation?: string | undefined;
5852
+ }[] | [string, string] | undefined> | undefined;
5825
5853
  originalActionId?: string | undefined;
5826
5854
  }>, z.ZodObject<z.objectUtil.extendShape<{
5827
5855
  id: z.ZodString;
@@ -5829,7 +5857,9 @@ export declare const EventDocument: z.ZodObject<{
5829
5857
  createdAt: z.ZodString;
5830
5858
  createdBy: z.ZodString;
5831
5859
  createdByRole: z.ZodString;
5832
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5860
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5861
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5862
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5833
5863
  filename: z.ZodString;
5834
5864
  originalFilename: z.ZodString;
5835
5865
  type: z.ZodString;
@@ -5943,7 +5973,7 @@ export declare const EventDocument: z.ZodObject<{
5943
5973
  addressLine3?: string | null | undefined;
5944
5974
  postcodeOrZip?: string | null | undefined;
5945
5975
  }>]>>;
5946
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5976
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5947
5977
  filename: z.ZodString;
5948
5978
  originalFilename: z.ZodString;
5949
5979
  type: z.ZodString;
@@ -6057,8 +6087,6 @@ export declare const EventDocument: z.ZodObject<{
6057
6087
  addressLine3?: string | null | undefined;
6058
6088
  postcodeOrZip?: string | null | undefined;
6059
6089
  }>]>>>;
6060
- createdAtLocation: z.ZodOptional<z.ZodString>;
6061
- updatedAtLocation: z.ZodOptional<z.ZodString>;
6062
6090
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6063
6091
  originalActionId: z.ZodOptional<z.ZodString>;
6064
6092
  }, {
@@ -6108,7 +6136,9 @@ export declare const EventDocument: z.ZodObject<{
6108
6136
  option: string;
6109
6137
  filename: string;
6110
6138
  originalFilename: string;
6111
- }[] | undefined>;
6139
+ }[] | [string, string] | undefined>;
6140
+ createdBySignature?: string | null | undefined;
6141
+ createdAtLocation?: string | null | undefined;
6112
6142
  annotation?: Record<string, string | number | boolean | {
6113
6143
  type: string;
6114
6144
  filename: string;
@@ -6146,9 +6176,7 @@ export declare const EventDocument: z.ZodObject<{
6146
6176
  option: string;
6147
6177
  filename: string;
6148
6178
  originalFilename: string;
6149
- }[] | undefined> | undefined;
6150
- createdAtLocation?: string | undefined;
6151
- updatedAtLocation?: string | undefined;
6179
+ }[] | [string, string] | undefined> | undefined;
6152
6180
  originalActionId?: string | undefined;
6153
6181
  }, {
6154
6182
  type: "READ";
@@ -6195,7 +6223,9 @@ export declare const EventDocument: z.ZodObject<{
6195
6223
  option: string;
6196
6224
  filename: string;
6197
6225
  originalFilename: string;
6198
- }[] | undefined>;
6226
+ }[] | [string, string] | undefined>;
6227
+ createdBySignature?: string | null | undefined;
6228
+ createdAtLocation?: string | null | undefined;
6199
6229
  annotation?: Record<string, string | number | boolean | {
6200
6230
  type: string;
6201
6231
  filename: string;
@@ -6233,9 +6263,7 @@ export declare const EventDocument: z.ZodObject<{
6233
6263
  option: string;
6234
6264
  filename: string;
6235
6265
  originalFilename: string;
6236
- }[] | undefined> | undefined;
6237
- createdAtLocation?: string | undefined;
6238
- updatedAtLocation?: string | undefined;
6266
+ }[] | [string, string] | undefined> | undefined;
6239
6267
  originalActionId?: string | undefined;
6240
6268
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6241
6269
  id: z.ZodString;
@@ -6243,7 +6271,9 @@ export declare const EventDocument: z.ZodObject<{
6243
6271
  createdAt: z.ZodString;
6244
6272
  createdBy: z.ZodString;
6245
6273
  createdByRole: z.ZodString;
6246
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6274
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6275
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6276
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6247
6277
  filename: z.ZodString;
6248
6278
  originalFilename: z.ZodString;
6249
6279
  type: z.ZodString;
@@ -6357,7 +6387,7 @@ export declare const EventDocument: z.ZodObject<{
6357
6387
  addressLine3?: string | null | undefined;
6358
6388
  postcodeOrZip?: string | null | undefined;
6359
6389
  }>]>>;
6360
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6390
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6361
6391
  filename: z.ZodString;
6362
6392
  originalFilename: z.ZodString;
6363
6393
  type: z.ZodString;
@@ -6471,11 +6501,9 @@ export declare const EventDocument: z.ZodObject<{
6471
6501
  addressLine3?: string | null | undefined;
6472
6502
  postcodeOrZip?: string | null | undefined;
6473
6503
  }>]>>>;
6474
- createdAtLocation: z.ZodOptional<z.ZodString>;
6475
- updatedAtLocation: z.ZodOptional<z.ZodString>;
6476
6504
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6477
6505
  originalActionId: z.ZodOptional<z.ZodString>;
6478
- }, "createdBy" | "createdByRole" | "declaration" | "annotation" | "createdAtLocation">, {
6506
+ }, "declaration" | "annotation">, {
6479
6507
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
6480
6508
  status: z.ZodLiteral<"Rejected">;
6481
6509
  }>, "strip", z.ZodTypeAny, {
@@ -6484,7 +6512,10 @@ export declare const EventDocument: z.ZodObject<{
6484
6512
  status: "Rejected";
6485
6513
  transactionId: string;
6486
6514
  createdAt: string;
6487
- updatedAtLocation?: string | undefined;
6515
+ createdBy: string;
6516
+ createdByRole: string;
6517
+ createdBySignature?: string | null | undefined;
6518
+ createdAtLocation?: string | null | undefined;
6488
6519
  originalActionId?: string | undefined;
6489
6520
  }, {
6490
6521
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
@@ -6492,7 +6523,10 @@ export declare const EventDocument: z.ZodObject<{
6492
6523
  status: "Rejected";
6493
6524
  transactionId: string;
6494
6525
  createdAt: string;
6495
- updatedAtLocation?: string | undefined;
6526
+ createdBy: string;
6527
+ createdByRole: string;
6528
+ createdBySignature?: string | null | undefined;
6529
+ createdAtLocation?: string | null | undefined;
6496
6530
  originalActionId?: string | undefined;
6497
6531
  }>]>, "many">;
6498
6532
  trackingId: z.ZodString;
@@ -6500,7 +6534,6 @@ export declare const EventDocument: z.ZodObject<{
6500
6534
  type: string;
6501
6535
  id: string;
6502
6536
  createdAt: string;
6503
- updatedAtLocation: string;
6504
6537
  updatedAt: string;
6505
6538
  actions: ({
6506
6539
  type: "ASSIGN";
@@ -6547,8 +6580,10 @@ export declare const EventDocument: z.ZodObject<{
6547
6580
  option: string;
6548
6581
  filename: string;
6549
6582
  originalFilename: string;
6550
- }[] | undefined>;
6583
+ }[] | [string, string] | undefined>;
6551
6584
  assignedTo: string;
6585
+ createdBySignature?: string | null | undefined;
6586
+ createdAtLocation?: string | null | undefined;
6552
6587
  annotation?: Record<string, string | number | boolean | {
6553
6588
  type: string;
6554
6589
  filename: string;
@@ -6586,9 +6621,7 @@ export declare const EventDocument: z.ZodObject<{
6586
6621
  option: string;
6587
6622
  filename: string;
6588
6623
  originalFilename: string;
6589
- }[] | undefined> | undefined;
6590
- createdAtLocation?: string | undefined;
6591
- updatedAtLocation?: string | undefined;
6624
+ }[] | [string, string] | undefined> | undefined;
6592
6625
  originalActionId?: string | undefined;
6593
6626
  } | {
6594
6627
  type: "UNASSIGN";
@@ -6635,8 +6668,10 @@ export declare const EventDocument: z.ZodObject<{
6635
6668
  option: string;
6636
6669
  filename: string;
6637
6670
  originalFilename: string;
6638
- }[] | undefined>;
6671
+ }[] | [string, string] | undefined>;
6639
6672
  assignedTo: null;
6673
+ createdBySignature?: string | null | undefined;
6674
+ createdAtLocation?: string | null | undefined;
6640
6675
  annotation?: Record<string, string | number | boolean | {
6641
6676
  type: string;
6642
6677
  filename: string;
@@ -6674,9 +6709,7 @@ export declare const EventDocument: z.ZodObject<{
6674
6709
  option: string;
6675
6710
  filename: string;
6676
6711
  originalFilename: string;
6677
- }[] | undefined> | undefined;
6678
- createdAtLocation?: string | undefined;
6679
- updatedAtLocation?: string | undefined;
6712
+ }[] | [string, string] | undefined> | undefined;
6680
6713
  originalActionId?: string | undefined;
6681
6714
  } | {
6682
6715
  type: "REGISTER";
@@ -6723,7 +6756,9 @@ export declare const EventDocument: z.ZodObject<{
6723
6756
  option: string;
6724
6757
  filename: string;
6725
6758
  originalFilename: string;
6726
- }[] | undefined>;
6759
+ }[] | [string, string] | undefined>;
6760
+ createdBySignature?: string | null | undefined;
6761
+ createdAtLocation?: string | null | undefined;
6727
6762
  annotation?: Record<string, string | number | boolean | {
6728
6763
  type: string;
6729
6764
  filename: string;
@@ -6761,9 +6796,7 @@ export declare const EventDocument: z.ZodObject<{
6761
6796
  option: string;
6762
6797
  filename: string;
6763
6798
  originalFilename: string;
6764
- }[] | undefined> | undefined;
6765
- createdAtLocation?: string | undefined;
6766
- updatedAtLocation?: string | undefined;
6799
+ }[] | [string, string] | undefined> | undefined;
6767
6800
  originalActionId?: string | undefined;
6768
6801
  registrationNumber?: string | undefined;
6769
6802
  } | {
@@ -6811,7 +6844,9 @@ export declare const EventDocument: z.ZodObject<{
6811
6844
  option: string;
6812
6845
  filename: string;
6813
6846
  originalFilename: string;
6814
- }[] | undefined>;
6847
+ }[] | [string, string] | undefined>;
6848
+ createdBySignature?: string | null | undefined;
6849
+ createdAtLocation?: string | null | undefined;
6815
6850
  annotation?: Record<string, string | number | boolean | {
6816
6851
  type: string;
6817
6852
  filename: string;
@@ -6849,9 +6884,7 @@ export declare const EventDocument: z.ZodObject<{
6849
6884
  option: string;
6850
6885
  filename: string;
6851
6886
  originalFilename: string;
6852
- }[] | undefined> | undefined;
6853
- createdAtLocation?: string | undefined;
6854
- updatedAtLocation?: string | undefined;
6887
+ }[] | [string, string] | undefined> | undefined;
6855
6888
  originalActionId?: string | undefined;
6856
6889
  } | {
6857
6890
  type: "VALIDATE";
@@ -6898,7 +6931,9 @@ export declare const EventDocument: z.ZodObject<{
6898
6931
  option: string;
6899
6932
  filename: string;
6900
6933
  originalFilename: string;
6901
- }[] | undefined>;
6934
+ }[] | [string, string] | undefined>;
6935
+ createdBySignature?: string | null | undefined;
6936
+ createdAtLocation?: string | null | undefined;
6902
6937
  annotation?: Record<string, string | number | boolean | {
6903
6938
  type: string;
6904
6939
  filename: string;
@@ -6936,14 +6971,16 @@ export declare const EventDocument: z.ZodObject<{
6936
6971
  option: string;
6937
6972
  filename: string;
6938
6973
  originalFilename: string;
6939
- }[] | undefined> | undefined;
6940
- createdAtLocation?: string | undefined;
6941
- updatedAtLocation?: string | undefined;
6974
+ }[] | [string, string] | undefined> | undefined;
6942
6975
  originalActionId?: string | undefined;
6943
6976
  } | {
6944
6977
  type: "REJECT";
6945
6978
  id: string;
6946
6979
  status: "Rejected" | "Requested" | "Accepted";
6980
+ reason: {
6981
+ message: string;
6982
+ isDuplicate?: boolean | undefined;
6983
+ };
6947
6984
  transactionId: string;
6948
6985
  createdAt: string;
6949
6986
  createdBy: string;
@@ -6985,7 +7022,9 @@ export declare const EventDocument: z.ZodObject<{
6985
7022
  option: string;
6986
7023
  filename: string;
6987
7024
  originalFilename: string;
6988
- }[] | undefined>;
7025
+ }[] | [string, string] | undefined>;
7026
+ createdBySignature?: string | null | undefined;
7027
+ createdAtLocation?: string | null | undefined;
6989
7028
  annotation?: Record<string, string | number | boolean | {
6990
7029
  type: string;
6991
7030
  filename: string;
@@ -7023,9 +7062,7 @@ export declare const EventDocument: z.ZodObject<{
7023
7062
  option: string;
7024
7063
  filename: string;
7025
7064
  originalFilename: string;
7026
- }[] | undefined> | undefined;
7027
- createdAtLocation?: string | undefined;
7028
- updatedAtLocation?: string | undefined;
7065
+ }[] | [string, string] | undefined> | undefined;
7029
7066
  originalActionId?: string | undefined;
7030
7067
  } | {
7031
7068
  type: "MARKED_AS_DUPLICATE";
@@ -7072,7 +7109,9 @@ export declare const EventDocument: z.ZodObject<{
7072
7109
  option: string;
7073
7110
  filename: string;
7074
7111
  originalFilename: string;
7075
- }[] | undefined>;
7112
+ }[] | [string, string] | undefined>;
7113
+ createdBySignature?: string | null | undefined;
7114
+ createdAtLocation?: string | null | undefined;
7076
7115
  annotation?: Record<string, string | number | boolean | {
7077
7116
  type: string;
7078
7117
  filename: string;
@@ -7110,14 +7149,16 @@ export declare const EventDocument: z.ZodObject<{
7110
7149
  option: string;
7111
7150
  filename: string;
7112
7151
  originalFilename: string;
7113
- }[] | undefined> | undefined;
7114
- createdAtLocation?: string | undefined;
7115
- updatedAtLocation?: string | undefined;
7152
+ }[] | [string, string] | undefined> | undefined;
7116
7153
  originalActionId?: string | undefined;
7117
7154
  } | {
7118
7155
  type: "ARCHIVE";
7119
7156
  id: string;
7120
7157
  status: "Rejected" | "Requested" | "Accepted";
7158
+ reason: {
7159
+ message: string;
7160
+ isDuplicate?: boolean | undefined;
7161
+ };
7121
7162
  transactionId: string;
7122
7163
  createdAt: string;
7123
7164
  createdBy: string;
@@ -7159,7 +7200,9 @@ export declare const EventDocument: z.ZodObject<{
7159
7200
  option: string;
7160
7201
  filename: string;
7161
7202
  originalFilename: string;
7162
- }[] | undefined>;
7203
+ }[] | [string, string] | undefined>;
7204
+ createdBySignature?: string | null | undefined;
7205
+ createdAtLocation?: string | null | undefined;
7163
7206
  annotation?: Record<string, string | number | boolean | {
7164
7207
  type: string;
7165
7208
  filename: string;
@@ -7197,9 +7240,7 @@ export declare const EventDocument: z.ZodObject<{
7197
7240
  option: string;
7198
7241
  filename: string;
7199
7242
  originalFilename: string;
7200
- }[] | undefined> | undefined;
7201
- createdAtLocation?: string | undefined;
7202
- updatedAtLocation?: string | undefined;
7243
+ }[] | [string, string] | undefined> | undefined;
7203
7244
  originalActionId?: string | undefined;
7204
7245
  } | {
7205
7246
  type: "CREATE";
@@ -7246,7 +7287,9 @@ export declare const EventDocument: z.ZodObject<{
7246
7287
  option: string;
7247
7288
  filename: string;
7248
7289
  originalFilename: string;
7249
- }[] | undefined>;
7290
+ }[] | [string, string] | undefined>;
7291
+ createdBySignature?: string | null | undefined;
7292
+ createdAtLocation?: string | null | undefined;
7250
7293
  annotation?: Record<string, string | number | boolean | {
7251
7294
  type: string;
7252
7295
  filename: string;
@@ -7284,9 +7327,7 @@ export declare const EventDocument: z.ZodObject<{
7284
7327
  option: string;
7285
7328
  filename: string;
7286
7329
  originalFilename: string;
7287
- }[] | undefined> | undefined;
7288
- createdAtLocation?: string | undefined;
7289
- updatedAtLocation?: string | undefined;
7330
+ }[] | [string, string] | undefined> | undefined;
7290
7331
  originalActionId?: string | undefined;
7291
7332
  } | {
7292
7333
  type: "NOTIFY";
@@ -7333,7 +7374,9 @@ export declare const EventDocument: z.ZodObject<{
7333
7374
  option: string;
7334
7375
  filename: string;
7335
7376
  originalFilename: string;
7336
- }[] | undefined>;
7377
+ }[] | [string, string] | undefined>;
7378
+ createdBySignature?: string | null | undefined;
7379
+ createdAtLocation?: string | null | undefined;
7337
7380
  annotation?: Record<string, string | number | boolean | {
7338
7381
  type: string;
7339
7382
  filename: string;
@@ -7371,9 +7414,7 @@ export declare const EventDocument: z.ZodObject<{
7371
7414
  option: string;
7372
7415
  filename: string;
7373
7416
  originalFilename: string;
7374
- }[] | undefined> | undefined;
7375
- createdAtLocation?: string | undefined;
7376
- updatedAtLocation?: string | undefined;
7417
+ }[] | [string, string] | undefined> | undefined;
7377
7418
  originalActionId?: string | undefined;
7378
7419
  } | {
7379
7420
  type: "PRINT_CERTIFICATE";
@@ -7420,7 +7461,9 @@ export declare const EventDocument: z.ZodObject<{
7420
7461
  option: string;
7421
7462
  filename: string;
7422
7463
  originalFilename: string;
7423
- }[] | undefined>;
7464
+ }[] | [string, string] | undefined>;
7465
+ createdBySignature?: string | null | undefined;
7466
+ createdAtLocation?: string | null | undefined;
7424
7467
  annotation?: Record<string, string | number | boolean | {
7425
7468
  type: string;
7426
7469
  filename: string;
@@ -7458,9 +7501,7 @@ export declare const EventDocument: z.ZodObject<{
7458
7501
  option: string;
7459
7502
  filename: string;
7460
7503
  originalFilename: string;
7461
- }[] | undefined> | undefined;
7462
- createdAtLocation?: string | undefined;
7463
- updatedAtLocation?: string | undefined;
7504
+ }[] | [string, string] | undefined> | undefined;
7464
7505
  originalActionId?: string | undefined;
7465
7506
  } | {
7466
7507
  type: "REQUEST_CORRECTION";
@@ -7507,7 +7548,9 @@ export declare const EventDocument: z.ZodObject<{
7507
7548
  option: string;
7508
7549
  filename: string;
7509
7550
  originalFilename: string;
7510
- }[] | undefined>;
7551
+ }[] | [string, string] | undefined>;
7552
+ createdBySignature?: string | null | undefined;
7553
+ createdAtLocation?: string | null | undefined;
7511
7554
  annotation?: Record<string, string | number | boolean | {
7512
7555
  type: string;
7513
7556
  filename: string;
@@ -7545,9 +7588,7 @@ export declare const EventDocument: z.ZodObject<{
7545
7588
  option: string;
7546
7589
  filename: string;
7547
7590
  originalFilename: string;
7548
- }[] | undefined> | undefined;
7549
- createdAtLocation?: string | undefined;
7550
- updatedAtLocation?: string | undefined;
7591
+ }[] | [string, string] | undefined> | undefined;
7551
7592
  originalActionId?: string | undefined;
7552
7593
  } | {
7553
7594
  type: "APPROVE_CORRECTION";
@@ -7594,8 +7635,10 @@ export declare const EventDocument: z.ZodObject<{
7594
7635
  option: string;
7595
7636
  filename: string;
7596
7637
  originalFilename: string;
7597
- }[] | undefined>;
7638
+ }[] | [string, string] | undefined>;
7598
7639
  requestId: string;
7640
+ createdBySignature?: string | null | undefined;
7641
+ createdAtLocation?: string | null | undefined;
7599
7642
  annotation?: Record<string, string | number | boolean | {
7600
7643
  type: string;
7601
7644
  filename: string;
@@ -7633,9 +7676,7 @@ export declare const EventDocument: z.ZodObject<{
7633
7676
  option: string;
7634
7677
  filename: string;
7635
7678
  originalFilename: string;
7636
- }[] | undefined> | undefined;
7637
- createdAtLocation?: string | undefined;
7638
- updatedAtLocation?: string | undefined;
7679
+ }[] | [string, string] | undefined> | undefined;
7639
7680
  originalActionId?: string | undefined;
7640
7681
  } | {
7641
7682
  type: "REJECT_CORRECTION";
@@ -7682,8 +7723,10 @@ export declare const EventDocument: z.ZodObject<{
7682
7723
  option: string;
7683
7724
  filename: string;
7684
7725
  originalFilename: string;
7685
- }[] | undefined>;
7726
+ }[] | [string, string] | undefined>;
7686
7727
  requestId: string;
7728
+ createdBySignature?: string | null | undefined;
7729
+ createdAtLocation?: string | null | undefined;
7687
7730
  annotation?: Record<string, string | number | boolean | {
7688
7731
  type: string;
7689
7732
  filename: string;
@@ -7721,9 +7764,7 @@ export declare const EventDocument: z.ZodObject<{
7721
7764
  option: string;
7722
7765
  filename: string;
7723
7766
  originalFilename: string;
7724
- }[] | undefined> | undefined;
7725
- createdAtLocation?: string | undefined;
7726
- updatedAtLocation?: string | undefined;
7767
+ }[] | [string, string] | undefined> | undefined;
7727
7768
  originalActionId?: string | undefined;
7728
7769
  } | {
7729
7770
  type: "READ";
@@ -7770,7 +7811,9 @@ export declare const EventDocument: z.ZodObject<{
7770
7811
  option: string;
7771
7812
  filename: string;
7772
7813
  originalFilename: string;
7773
- }[] | undefined>;
7814
+ }[] | [string, string] | undefined>;
7815
+ createdBySignature?: string | null | undefined;
7816
+ createdAtLocation?: string | null | undefined;
7774
7817
  annotation?: Record<string, string | number | boolean | {
7775
7818
  type: string;
7776
7819
  filename: string;
@@ -7808,9 +7851,7 @@ export declare const EventDocument: z.ZodObject<{
7808
7851
  option: string;
7809
7852
  filename: string;
7810
7853
  originalFilename: string;
7811
- }[] | undefined> | undefined;
7812
- createdAtLocation?: string | undefined;
7813
- updatedAtLocation?: string | undefined;
7854
+ }[] | [string, string] | undefined> | undefined;
7814
7855
  originalActionId?: string | undefined;
7815
7856
  } | {
7816
7857
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
@@ -7818,18 +7859,17 @@ export declare const EventDocument: z.ZodObject<{
7818
7859
  status: "Rejected";
7819
7860
  transactionId: string;
7820
7861
  createdAt: string;
7821
- updatedAtLocation?: string | undefined;
7862
+ createdBy: string;
7863
+ createdByRole: string;
7864
+ createdBySignature?: string | null | undefined;
7865
+ createdAtLocation?: string | null | undefined;
7822
7866
  originalActionId?: string | undefined;
7823
7867
  })[];
7824
7868
  trackingId: string;
7825
- dateOfEvent?: {
7826
- fieldId: string;
7827
- } | undefined;
7828
7869
  }, {
7829
7870
  type: string;
7830
7871
  id: string;
7831
7872
  createdAt: string;
7832
- updatedAtLocation: string;
7833
7873
  updatedAt: string;
7834
7874
  actions: ({
7835
7875
  type: "ASSIGN";
@@ -7876,8 +7916,10 @@ export declare const EventDocument: z.ZodObject<{
7876
7916
  option: string;
7877
7917
  filename: string;
7878
7918
  originalFilename: string;
7879
- }[] | undefined>;
7919
+ }[] | [string, string] | undefined>;
7880
7920
  assignedTo: string;
7921
+ createdBySignature?: string | null | undefined;
7922
+ createdAtLocation?: string | null | undefined;
7881
7923
  annotation?: Record<string, string | number | boolean | {
7882
7924
  type: string;
7883
7925
  filename: string;
@@ -7915,9 +7957,7 @@ export declare const EventDocument: z.ZodObject<{
7915
7957
  option: string;
7916
7958
  filename: string;
7917
7959
  originalFilename: string;
7918
- }[] | undefined> | undefined;
7919
- createdAtLocation?: string | undefined;
7920
- updatedAtLocation?: string | undefined;
7960
+ }[] | [string, string] | undefined> | undefined;
7921
7961
  originalActionId?: string | undefined;
7922
7962
  } | {
7923
7963
  type: "UNASSIGN";
@@ -7964,8 +8004,10 @@ export declare const EventDocument: z.ZodObject<{
7964
8004
  option: string;
7965
8005
  filename: string;
7966
8006
  originalFilename: string;
7967
- }[] | undefined>;
8007
+ }[] | [string, string] | undefined>;
7968
8008
  assignedTo: null;
8009
+ createdBySignature?: string | null | undefined;
8010
+ createdAtLocation?: string | null | undefined;
7969
8011
  annotation?: Record<string, string | number | boolean | {
7970
8012
  type: string;
7971
8013
  filename: string;
@@ -8003,9 +8045,7 @@ export declare const EventDocument: z.ZodObject<{
8003
8045
  option: string;
8004
8046
  filename: string;
8005
8047
  originalFilename: string;
8006
- }[] | undefined> | undefined;
8007
- createdAtLocation?: string | undefined;
8008
- updatedAtLocation?: string | undefined;
8048
+ }[] | [string, string] | undefined> | undefined;
8009
8049
  originalActionId?: string | undefined;
8010
8050
  } | {
8011
8051
  type: "REGISTER";
@@ -8052,7 +8092,9 @@ export declare const EventDocument: z.ZodObject<{
8052
8092
  option: string;
8053
8093
  filename: string;
8054
8094
  originalFilename: string;
8055
- }[] | undefined>;
8095
+ }[] | [string, string] | undefined>;
8096
+ createdBySignature?: string | null | undefined;
8097
+ createdAtLocation?: string | null | undefined;
8056
8098
  annotation?: Record<string, string | number | boolean | {
8057
8099
  type: string;
8058
8100
  filename: string;
@@ -8090,9 +8132,7 @@ export declare const EventDocument: z.ZodObject<{
8090
8132
  option: string;
8091
8133
  filename: string;
8092
8134
  originalFilename: string;
8093
- }[] | undefined> | undefined;
8094
- createdAtLocation?: string | undefined;
8095
- updatedAtLocation?: string | undefined;
8135
+ }[] | [string, string] | undefined> | undefined;
8096
8136
  originalActionId?: string | undefined;
8097
8137
  registrationNumber?: string | undefined;
8098
8138
  } | {
@@ -8140,7 +8180,9 @@ export declare const EventDocument: z.ZodObject<{
8140
8180
  option: string;
8141
8181
  filename: string;
8142
8182
  originalFilename: string;
8143
- }[] | undefined>;
8183
+ }[] | [string, string] | undefined>;
8184
+ createdBySignature?: string | null | undefined;
8185
+ createdAtLocation?: string | null | undefined;
8144
8186
  annotation?: Record<string, string | number | boolean | {
8145
8187
  type: string;
8146
8188
  filename: string;
@@ -8178,9 +8220,7 @@ export declare const EventDocument: z.ZodObject<{
8178
8220
  option: string;
8179
8221
  filename: string;
8180
8222
  originalFilename: string;
8181
- }[] | undefined> | undefined;
8182
- createdAtLocation?: string | undefined;
8183
- updatedAtLocation?: string | undefined;
8223
+ }[] | [string, string] | undefined> | undefined;
8184
8224
  originalActionId?: string | undefined;
8185
8225
  } | {
8186
8226
  type: "VALIDATE";
@@ -8227,7 +8267,9 @@ export declare const EventDocument: z.ZodObject<{
8227
8267
  option: string;
8228
8268
  filename: string;
8229
8269
  originalFilename: string;
8230
- }[] | undefined>;
8270
+ }[] | [string, string] | undefined>;
8271
+ createdBySignature?: string | null | undefined;
8272
+ createdAtLocation?: string | null | undefined;
8231
8273
  annotation?: Record<string, string | number | boolean | {
8232
8274
  type: string;
8233
8275
  filename: string;
@@ -8265,14 +8307,16 @@ export declare const EventDocument: z.ZodObject<{
8265
8307
  option: string;
8266
8308
  filename: string;
8267
8309
  originalFilename: string;
8268
- }[] | undefined> | undefined;
8269
- createdAtLocation?: string | undefined;
8270
- updatedAtLocation?: string | undefined;
8310
+ }[] | [string, string] | undefined> | undefined;
8271
8311
  originalActionId?: string | undefined;
8272
8312
  } | {
8273
8313
  type: "REJECT";
8274
8314
  id: string;
8275
8315
  status: "Rejected" | "Requested" | "Accepted";
8316
+ reason: {
8317
+ message: string;
8318
+ isDuplicate?: boolean | undefined;
8319
+ };
8276
8320
  transactionId: string;
8277
8321
  createdAt: string;
8278
8322
  createdBy: string;
@@ -8314,7 +8358,9 @@ export declare const EventDocument: z.ZodObject<{
8314
8358
  option: string;
8315
8359
  filename: string;
8316
8360
  originalFilename: string;
8317
- }[] | undefined>;
8361
+ }[] | [string, string] | undefined>;
8362
+ createdBySignature?: string | null | undefined;
8363
+ createdAtLocation?: string | null | undefined;
8318
8364
  annotation?: Record<string, string | number | boolean | {
8319
8365
  type: string;
8320
8366
  filename: string;
@@ -8352,9 +8398,7 @@ export declare const EventDocument: z.ZodObject<{
8352
8398
  option: string;
8353
8399
  filename: string;
8354
8400
  originalFilename: string;
8355
- }[] | undefined> | undefined;
8356
- createdAtLocation?: string | undefined;
8357
- updatedAtLocation?: string | undefined;
8401
+ }[] | [string, string] | undefined> | undefined;
8358
8402
  originalActionId?: string | undefined;
8359
8403
  } | {
8360
8404
  type: "MARKED_AS_DUPLICATE";
@@ -8401,7 +8445,9 @@ export declare const EventDocument: z.ZodObject<{
8401
8445
  option: string;
8402
8446
  filename: string;
8403
8447
  originalFilename: string;
8404
- }[] | undefined>;
8448
+ }[] | [string, string] | undefined>;
8449
+ createdBySignature?: string | null | undefined;
8450
+ createdAtLocation?: string | null | undefined;
8405
8451
  annotation?: Record<string, string | number | boolean | {
8406
8452
  type: string;
8407
8453
  filename: string;
@@ -8439,14 +8485,16 @@ export declare const EventDocument: z.ZodObject<{
8439
8485
  option: string;
8440
8486
  filename: string;
8441
8487
  originalFilename: string;
8442
- }[] | undefined> | undefined;
8443
- createdAtLocation?: string | undefined;
8444
- updatedAtLocation?: string | undefined;
8488
+ }[] | [string, string] | undefined> | undefined;
8445
8489
  originalActionId?: string | undefined;
8446
8490
  } | {
8447
8491
  type: "ARCHIVE";
8448
8492
  id: string;
8449
8493
  status: "Rejected" | "Requested" | "Accepted";
8494
+ reason: {
8495
+ message: string;
8496
+ isDuplicate?: boolean | undefined;
8497
+ };
8450
8498
  transactionId: string;
8451
8499
  createdAt: string;
8452
8500
  createdBy: string;
@@ -8488,7 +8536,9 @@ export declare const EventDocument: z.ZodObject<{
8488
8536
  option: string;
8489
8537
  filename: string;
8490
8538
  originalFilename: string;
8491
- }[] | undefined>;
8539
+ }[] | [string, string] | undefined>;
8540
+ createdBySignature?: string | null | undefined;
8541
+ createdAtLocation?: string | null | undefined;
8492
8542
  annotation?: Record<string, string | number | boolean | {
8493
8543
  type: string;
8494
8544
  filename: string;
@@ -8526,9 +8576,7 @@ export declare const EventDocument: z.ZodObject<{
8526
8576
  option: string;
8527
8577
  filename: string;
8528
8578
  originalFilename: string;
8529
- }[] | undefined> | undefined;
8530
- createdAtLocation?: string | undefined;
8531
- updatedAtLocation?: string | undefined;
8579
+ }[] | [string, string] | undefined> | undefined;
8532
8580
  originalActionId?: string | undefined;
8533
8581
  } | {
8534
8582
  type: "CREATE";
@@ -8575,7 +8623,9 @@ export declare const EventDocument: z.ZodObject<{
8575
8623
  option: string;
8576
8624
  filename: string;
8577
8625
  originalFilename: string;
8578
- }[] | undefined>;
8626
+ }[] | [string, string] | undefined>;
8627
+ createdBySignature?: string | null | undefined;
8628
+ createdAtLocation?: string | null | undefined;
8579
8629
  annotation?: Record<string, string | number | boolean | {
8580
8630
  type: string;
8581
8631
  filename: string;
@@ -8613,9 +8663,7 @@ export declare const EventDocument: z.ZodObject<{
8613
8663
  option: string;
8614
8664
  filename: string;
8615
8665
  originalFilename: string;
8616
- }[] | undefined> | undefined;
8617
- createdAtLocation?: string | undefined;
8618
- updatedAtLocation?: string | undefined;
8666
+ }[] | [string, string] | undefined> | undefined;
8619
8667
  originalActionId?: string | undefined;
8620
8668
  } | {
8621
8669
  type: "NOTIFY";
@@ -8662,7 +8710,9 @@ export declare const EventDocument: z.ZodObject<{
8662
8710
  option: string;
8663
8711
  filename: string;
8664
8712
  originalFilename: string;
8665
- }[] | undefined>;
8713
+ }[] | [string, string] | undefined>;
8714
+ createdBySignature?: string | null | undefined;
8715
+ createdAtLocation?: string | null | undefined;
8666
8716
  annotation?: Record<string, string | number | boolean | {
8667
8717
  type: string;
8668
8718
  filename: string;
@@ -8700,9 +8750,7 @@ export declare const EventDocument: z.ZodObject<{
8700
8750
  option: string;
8701
8751
  filename: string;
8702
8752
  originalFilename: string;
8703
- }[] | undefined> | undefined;
8704
- createdAtLocation?: string | undefined;
8705
- updatedAtLocation?: string | undefined;
8753
+ }[] | [string, string] | undefined> | undefined;
8706
8754
  originalActionId?: string | undefined;
8707
8755
  } | {
8708
8756
  type: "PRINT_CERTIFICATE";
@@ -8749,7 +8797,9 @@ export declare const EventDocument: z.ZodObject<{
8749
8797
  option: string;
8750
8798
  filename: string;
8751
8799
  originalFilename: string;
8752
- }[] | undefined>;
8800
+ }[] | [string, string] | undefined>;
8801
+ createdBySignature?: string | null | undefined;
8802
+ createdAtLocation?: string | null | undefined;
8753
8803
  annotation?: Record<string, string | number | boolean | {
8754
8804
  type: string;
8755
8805
  filename: string;
@@ -8787,9 +8837,7 @@ export declare const EventDocument: z.ZodObject<{
8787
8837
  option: string;
8788
8838
  filename: string;
8789
8839
  originalFilename: string;
8790
- }[] | undefined> | undefined;
8791
- createdAtLocation?: string | undefined;
8792
- updatedAtLocation?: string | undefined;
8840
+ }[] | [string, string] | undefined> | undefined;
8793
8841
  originalActionId?: string | undefined;
8794
8842
  } | {
8795
8843
  type: "REQUEST_CORRECTION";
@@ -8836,7 +8884,9 @@ export declare const EventDocument: z.ZodObject<{
8836
8884
  option: string;
8837
8885
  filename: string;
8838
8886
  originalFilename: string;
8839
- }[] | undefined>;
8887
+ }[] | [string, string] | undefined>;
8888
+ createdBySignature?: string | null | undefined;
8889
+ createdAtLocation?: string | null | undefined;
8840
8890
  annotation?: Record<string, string | number | boolean | {
8841
8891
  type: string;
8842
8892
  filename: string;
@@ -8874,9 +8924,7 @@ export declare const EventDocument: z.ZodObject<{
8874
8924
  option: string;
8875
8925
  filename: string;
8876
8926
  originalFilename: string;
8877
- }[] | undefined> | undefined;
8878
- createdAtLocation?: string | undefined;
8879
- updatedAtLocation?: string | undefined;
8927
+ }[] | [string, string] | undefined> | undefined;
8880
8928
  originalActionId?: string | undefined;
8881
8929
  } | {
8882
8930
  type: "APPROVE_CORRECTION";
@@ -8923,8 +8971,10 @@ export declare const EventDocument: z.ZodObject<{
8923
8971
  option: string;
8924
8972
  filename: string;
8925
8973
  originalFilename: string;
8926
- }[] | undefined>;
8974
+ }[] | [string, string] | undefined>;
8927
8975
  requestId: string;
8976
+ createdBySignature?: string | null | undefined;
8977
+ createdAtLocation?: string | null | undefined;
8928
8978
  annotation?: Record<string, string | number | boolean | {
8929
8979
  type: string;
8930
8980
  filename: string;
@@ -8962,9 +9012,7 @@ export declare const EventDocument: z.ZodObject<{
8962
9012
  option: string;
8963
9013
  filename: string;
8964
9014
  originalFilename: string;
8965
- }[] | undefined> | undefined;
8966
- createdAtLocation?: string | undefined;
8967
- updatedAtLocation?: string | undefined;
9015
+ }[] | [string, string] | undefined> | undefined;
8968
9016
  originalActionId?: string | undefined;
8969
9017
  } | {
8970
9018
  type: "REJECT_CORRECTION";
@@ -9011,8 +9059,10 @@ export declare const EventDocument: z.ZodObject<{
9011
9059
  option: string;
9012
9060
  filename: string;
9013
9061
  originalFilename: string;
9014
- }[] | undefined>;
9062
+ }[] | [string, string] | undefined>;
9015
9063
  requestId: string;
9064
+ createdBySignature?: string | null | undefined;
9065
+ createdAtLocation?: string | null | undefined;
9016
9066
  annotation?: Record<string, string | number | boolean | {
9017
9067
  type: string;
9018
9068
  filename: string;
@@ -9050,9 +9100,7 @@ export declare const EventDocument: z.ZodObject<{
9050
9100
  option: string;
9051
9101
  filename: string;
9052
9102
  originalFilename: string;
9053
- }[] | undefined> | undefined;
9054
- createdAtLocation?: string | undefined;
9055
- updatedAtLocation?: string | undefined;
9103
+ }[] | [string, string] | undefined> | undefined;
9056
9104
  originalActionId?: string | undefined;
9057
9105
  } | {
9058
9106
  type: "READ";
@@ -9099,7 +9147,9 @@ export declare const EventDocument: z.ZodObject<{
9099
9147
  option: string;
9100
9148
  filename: string;
9101
9149
  originalFilename: string;
9102
- }[] | undefined>;
9150
+ }[] | [string, string] | undefined>;
9151
+ createdBySignature?: string | null | undefined;
9152
+ createdAtLocation?: string | null | undefined;
9103
9153
  annotation?: Record<string, string | number | boolean | {
9104
9154
  type: string;
9105
9155
  filename: string;
@@ -9137,9 +9187,7 @@ export declare const EventDocument: z.ZodObject<{
9137
9187
  option: string;
9138
9188
  filename: string;
9139
9189
  originalFilename: string;
9140
- }[] | undefined> | undefined;
9141
- createdAtLocation?: string | undefined;
9142
- updatedAtLocation?: string | undefined;
9190
+ }[] | [string, string] | undefined> | undefined;
9143
9191
  originalActionId?: string | undefined;
9144
9192
  } | {
9145
9193
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
@@ -9147,13 +9195,13 @@ export declare const EventDocument: z.ZodObject<{
9147
9195
  status: "Rejected";
9148
9196
  transactionId: string;
9149
9197
  createdAt: string;
9150
- updatedAtLocation?: string | undefined;
9198
+ createdBy: string;
9199
+ createdByRole: string;
9200
+ createdBySignature?: string | null | undefined;
9201
+ createdAtLocation?: string | null | undefined;
9151
9202
  originalActionId?: string | undefined;
9152
9203
  })[];
9153
9204
  trackingId: string;
9154
- dateOfEvent?: {
9155
- fieldId: string;
9156
- } | undefined;
9157
9205
  }>;
9158
9206
  export type EventDocument = z.infer<typeof EventDocument>;
9159
9207
  //# sourceMappingURL=EventDocument.d.ts.map