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

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.
@@ -1,14 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const EventDocument: z.ZodObject<{
3
- id: z.ZodString;
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
4
4
  type: z.ZodString;
5
- dateOfEvent: z.ZodOptional<z.ZodObject<{
6
- fieldId: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- fieldId: string;
9
- }, {
10
- fieldId: string;
11
- }>>;
12
5
  createdAt: z.ZodString;
13
6
  updatedAt: z.ZodString;
14
7
  actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
@@ -17,6 +10,7 @@ export declare const EventDocument: z.ZodObject<{
17
10
  createdAt: z.ZodString;
18
11
  createdBy: z.ZodString;
19
12
  createdByRole: z.ZodString;
13
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
20
14
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
21
15
  filename: z.ZodString;
22
16
  originalFilename: z.ZodString;
@@ -131,7 +125,7 @@ export declare const EventDocument: z.ZodObject<{
131
125
  addressLine3?: string | null | undefined;
132
126
  postcodeOrZip?: string | null | undefined;
133
127
  }>]>>;
134
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
128
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
135
129
  filename: z.ZodString;
136
130
  originalFilename: z.ZodString;
137
131
  type: z.ZodString;
@@ -244,10 +238,9 @@ export declare const EventDocument: z.ZodObject<{
244
238
  addressLine2?: string | null | undefined;
245
239
  addressLine3?: string | null | undefined;
246
240
  postcodeOrZip?: string | null | undefined;
247
- }>]>>>;
248
- createdAtLocation: z.ZodString;
241
+ }>]>>>>;
249
242
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
250
- originalActionId: z.ZodOptional<z.ZodString>;
243
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
251
244
  }, {
252
245
  type: z.ZodLiteral<"CREATE">;
253
246
  }>, "strip", z.ZodTypeAny, {
@@ -296,7 +289,7 @@ export declare const EventDocument: z.ZodObject<{
296
289
  filename: string;
297
290
  originalFilename: string;
298
291
  }[] | [string, string] | undefined>;
299
- createdAtLocation: string;
292
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
300
293
  annotation?: Record<string, string | number | boolean | {
301
294
  type: string;
302
295
  filename: string;
@@ -334,8 +327,8 @@ export declare const EventDocument: z.ZodObject<{
334
327
  option: string;
335
328
  filename: string;
336
329
  originalFilename: string;
337
- }[] | [string, string] | undefined> | undefined;
338
- originalActionId?: string | undefined;
330
+ }[] | [string, string] | undefined> | null | undefined;
331
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
339
332
  }, {
340
333
  type: "CREATE";
341
334
  id: string;
@@ -382,7 +375,7 @@ export declare const EventDocument: z.ZodObject<{
382
375
  filename: string;
383
376
  originalFilename: string;
384
377
  }[] | [string, string] | undefined>;
385
- createdAtLocation: string;
378
+ createdAtLocation?: string | null | undefined;
386
379
  annotation?: Record<string, string | number | boolean | {
387
380
  type: string;
388
381
  filename: string;
@@ -420,14 +413,15 @@ export declare const EventDocument: z.ZodObject<{
420
413
  option: string;
421
414
  filename: string;
422
415
  originalFilename: string;
423
- }[] | [string, string] | undefined> | undefined;
424
- originalActionId?: string | undefined;
416
+ }[] | [string, string] | undefined> | null | undefined;
417
+ originalActionId?: string | null | undefined;
425
418
  }>, z.ZodObject<z.objectUtil.extendShape<{
426
419
  id: z.ZodString;
427
420
  transactionId: z.ZodString;
428
421
  createdAt: z.ZodString;
429
422
  createdBy: z.ZodString;
430
423
  createdByRole: z.ZodString;
424
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
431
425
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
432
426
  filename: z.ZodString;
433
427
  originalFilename: z.ZodString;
@@ -542,7 +536,7 @@ export declare const EventDocument: z.ZodObject<{
542
536
  addressLine3?: string | null | undefined;
543
537
  postcodeOrZip?: string | null | undefined;
544
538
  }>]>>;
545
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
539
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
546
540
  filename: z.ZodString;
547
541
  originalFilename: z.ZodString;
548
542
  type: z.ZodString;
@@ -655,10 +649,9 @@ export declare const EventDocument: z.ZodObject<{
655
649
  addressLine2?: string | null | undefined;
656
650
  addressLine3?: string | null | undefined;
657
651
  postcodeOrZip?: string | null | undefined;
658
- }>]>>>;
659
- createdAtLocation: z.ZodString;
652
+ }>]>>>>;
660
653
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
661
- originalActionId: z.ZodOptional<z.ZodString>;
654
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
662
655
  }, {
663
656
  type: z.ZodLiteral<"VALIDATE">;
664
657
  }>, "strip", z.ZodTypeAny, {
@@ -707,7 +700,7 @@ export declare const EventDocument: z.ZodObject<{
707
700
  filename: string;
708
701
  originalFilename: string;
709
702
  }[] | [string, string] | undefined>;
710
- createdAtLocation: string;
703
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
711
704
  annotation?: Record<string, string | number | boolean | {
712
705
  type: string;
713
706
  filename: string;
@@ -745,8 +738,8 @@ export declare const EventDocument: z.ZodObject<{
745
738
  option: string;
746
739
  filename: string;
747
740
  originalFilename: string;
748
- }[] | [string, string] | undefined> | undefined;
749
- originalActionId?: string | undefined;
741
+ }[] | [string, string] | undefined> | null | undefined;
742
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
750
743
  }, {
751
744
  type: "VALIDATE";
752
745
  id: string;
@@ -793,7 +786,7 @@ export declare const EventDocument: z.ZodObject<{
793
786
  filename: string;
794
787
  originalFilename: string;
795
788
  }[] | [string, string] | undefined>;
796
- createdAtLocation: string;
789
+ createdAtLocation?: string | null | undefined;
797
790
  annotation?: Record<string, string | number | boolean | {
798
791
  type: string;
799
792
  filename: string;
@@ -831,14 +824,15 @@ export declare const EventDocument: z.ZodObject<{
831
824
  option: string;
832
825
  filename: string;
833
826
  originalFilename: string;
834
- }[] | [string, string] | undefined> | undefined;
835
- originalActionId?: string | undefined;
827
+ }[] | [string, string] | undefined> | null | undefined;
828
+ originalActionId?: string | null | undefined;
836
829
  }>, z.ZodObject<z.objectUtil.extendShape<{
837
830
  id: z.ZodString;
838
831
  transactionId: z.ZodString;
839
832
  createdAt: z.ZodString;
840
833
  createdBy: z.ZodString;
841
834
  createdByRole: z.ZodString;
835
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
842
836
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
843
837
  filename: z.ZodString;
844
838
  originalFilename: z.ZodString;
@@ -953,7 +947,7 @@ export declare const EventDocument: z.ZodObject<{
953
947
  addressLine3?: string | null | undefined;
954
948
  postcodeOrZip?: string | null | undefined;
955
949
  }>]>>;
956
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
950
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
957
951
  filename: z.ZodString;
958
952
  originalFilename: z.ZodString;
959
953
  type: z.ZodString;
@@ -1066,16 +1060,29 @@ export declare const EventDocument: z.ZodObject<{
1066
1060
  addressLine2?: string | null | undefined;
1067
1061
  addressLine3?: string | null | undefined;
1068
1062
  postcodeOrZip?: string | null | undefined;
1069
- }>]>>>;
1070
- createdAtLocation: z.ZodString;
1063
+ }>]>>>>;
1071
1064
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1072
- originalActionId: z.ZodOptional<z.ZodString>;
1065
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1073
1066
  }, {
1074
1067
  type: z.ZodLiteral<"REJECT">;
1068
+ reason: z.ZodObject<{
1069
+ message: z.ZodString;
1070
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
1071
+ }, "strip", z.ZodTypeAny, {
1072
+ message: string;
1073
+ isDuplicate?: boolean | undefined;
1074
+ }, {
1075
+ message: string;
1076
+ isDuplicate?: boolean | undefined;
1077
+ }>;
1075
1078
  }>, "strip", z.ZodTypeAny, {
1076
1079
  type: "REJECT";
1077
1080
  id: string;
1078
1081
  status: "Rejected" | "Requested" | "Accepted";
1082
+ reason: {
1083
+ message: string;
1084
+ isDuplicate?: boolean | undefined;
1085
+ };
1079
1086
  transactionId: string;
1080
1087
  createdAt: string;
1081
1088
  createdBy: string;
@@ -1118,7 +1125,7 @@ export declare const EventDocument: z.ZodObject<{
1118
1125
  filename: string;
1119
1126
  originalFilename: string;
1120
1127
  }[] | [string, string] | undefined>;
1121
- createdAtLocation: string;
1128
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1122
1129
  annotation?: Record<string, string | number | boolean | {
1123
1130
  type: string;
1124
1131
  filename: string;
@@ -1156,12 +1163,16 @@ export declare const EventDocument: z.ZodObject<{
1156
1163
  option: string;
1157
1164
  filename: string;
1158
1165
  originalFilename: string;
1159
- }[] | [string, string] | undefined> | undefined;
1160
- originalActionId?: string | undefined;
1166
+ }[] | [string, string] | undefined> | null | undefined;
1167
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1161
1168
  }, {
1162
1169
  type: "REJECT";
1163
1170
  id: string;
1164
1171
  status: "Rejected" | "Requested" | "Accepted";
1172
+ reason: {
1173
+ message: string;
1174
+ isDuplicate?: boolean | undefined;
1175
+ };
1165
1176
  transactionId: string;
1166
1177
  createdAt: string;
1167
1178
  createdBy: string;
@@ -1204,7 +1215,7 @@ export declare const EventDocument: z.ZodObject<{
1204
1215
  filename: string;
1205
1216
  originalFilename: string;
1206
1217
  }[] | [string, string] | undefined>;
1207
- createdAtLocation: string;
1218
+ createdAtLocation?: string | null | undefined;
1208
1219
  annotation?: Record<string, string | number | boolean | {
1209
1220
  type: string;
1210
1221
  filename: string;
@@ -1242,14 +1253,15 @@ export declare const EventDocument: z.ZodObject<{
1242
1253
  option: string;
1243
1254
  filename: string;
1244
1255
  originalFilename: string;
1245
- }[] | [string, string] | undefined> | undefined;
1246
- originalActionId?: string | undefined;
1256
+ }[] | [string, string] | undefined> | null | undefined;
1257
+ originalActionId?: string | null | undefined;
1247
1258
  }>, z.ZodObject<z.objectUtil.extendShape<{
1248
1259
  id: z.ZodString;
1249
1260
  transactionId: z.ZodString;
1250
1261
  createdAt: z.ZodString;
1251
1262
  createdBy: z.ZodString;
1252
1263
  createdByRole: z.ZodString;
1264
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1253
1265
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1254
1266
  filename: z.ZodString;
1255
1267
  originalFilename: z.ZodString;
@@ -1364,7 +1376,7 @@ export declare const EventDocument: z.ZodObject<{
1364
1376
  addressLine3?: string | null | undefined;
1365
1377
  postcodeOrZip?: string | null | undefined;
1366
1378
  }>]>>;
1367
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1379
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1368
1380
  filename: z.ZodString;
1369
1381
  originalFilename: z.ZodString;
1370
1382
  type: z.ZodString;
@@ -1477,10 +1489,9 @@ export declare const EventDocument: z.ZodObject<{
1477
1489
  addressLine2?: string | null | undefined;
1478
1490
  addressLine3?: string | null | undefined;
1479
1491
  postcodeOrZip?: string | null | undefined;
1480
- }>]>>>;
1481
- createdAtLocation: z.ZodString;
1492
+ }>]>>>>;
1482
1493
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1483
- originalActionId: z.ZodOptional<z.ZodString>;
1494
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1484
1495
  }, {
1485
1496
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1486
1497
  }>, "strip", z.ZodTypeAny, {
@@ -1529,7 +1540,7 @@ export declare const EventDocument: z.ZodObject<{
1529
1540
  filename: string;
1530
1541
  originalFilename: string;
1531
1542
  }[] | [string, string] | undefined>;
1532
- createdAtLocation: string;
1543
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1533
1544
  annotation?: Record<string, string | number | boolean | {
1534
1545
  type: string;
1535
1546
  filename: string;
@@ -1567,8 +1578,8 @@ export declare const EventDocument: z.ZodObject<{
1567
1578
  option: string;
1568
1579
  filename: string;
1569
1580
  originalFilename: string;
1570
- }[] | [string, string] | undefined> | undefined;
1571
- originalActionId?: string | undefined;
1581
+ }[] | [string, string] | undefined> | null | undefined;
1582
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1572
1583
  }, {
1573
1584
  type: "MARKED_AS_DUPLICATE";
1574
1585
  id: string;
@@ -1615,7 +1626,7 @@ export declare const EventDocument: z.ZodObject<{
1615
1626
  filename: string;
1616
1627
  originalFilename: string;
1617
1628
  }[] | [string, string] | undefined>;
1618
- createdAtLocation: string;
1629
+ createdAtLocation?: string | null | undefined;
1619
1630
  annotation?: Record<string, string | number | boolean | {
1620
1631
  type: string;
1621
1632
  filename: string;
@@ -1653,14 +1664,15 @@ export declare const EventDocument: z.ZodObject<{
1653
1664
  option: string;
1654
1665
  filename: string;
1655
1666
  originalFilename: string;
1656
- }[] | [string, string] | undefined> | undefined;
1657
- originalActionId?: string | undefined;
1667
+ }[] | [string, string] | undefined> | null | undefined;
1668
+ originalActionId?: string | null | undefined;
1658
1669
  }>, z.ZodObject<z.objectUtil.extendShape<{
1659
1670
  id: z.ZodString;
1660
1671
  transactionId: z.ZodString;
1661
1672
  createdAt: z.ZodString;
1662
1673
  createdBy: z.ZodString;
1663
1674
  createdByRole: z.ZodString;
1675
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1664
1676
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1665
1677
  filename: z.ZodString;
1666
1678
  originalFilename: z.ZodString;
@@ -1775,7 +1787,7 @@ export declare const EventDocument: z.ZodObject<{
1775
1787
  addressLine3?: string | null | undefined;
1776
1788
  postcodeOrZip?: string | null | undefined;
1777
1789
  }>]>>;
1778
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1790
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1779
1791
  filename: z.ZodString;
1780
1792
  originalFilename: z.ZodString;
1781
1793
  type: z.ZodString;
@@ -1888,16 +1900,29 @@ export declare const EventDocument: z.ZodObject<{
1888
1900
  addressLine2?: string | null | undefined;
1889
1901
  addressLine3?: string | null | undefined;
1890
1902
  postcodeOrZip?: string | null | undefined;
1891
- }>]>>>;
1892
- createdAtLocation: z.ZodString;
1903
+ }>]>>>>;
1893
1904
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1894
- originalActionId: z.ZodOptional<z.ZodString>;
1905
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1895
1906
  }, {
1896
1907
  type: z.ZodLiteral<"ARCHIVE">;
1908
+ reason: z.ZodObject<{
1909
+ message: z.ZodString;
1910
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
1911
+ }, "strip", z.ZodTypeAny, {
1912
+ message: string;
1913
+ isDuplicate?: boolean | undefined;
1914
+ }, {
1915
+ message: string;
1916
+ isDuplicate?: boolean | undefined;
1917
+ }>;
1897
1918
  }>, "strip", z.ZodTypeAny, {
1898
1919
  type: "ARCHIVE";
1899
1920
  id: string;
1900
1921
  status: "Rejected" | "Requested" | "Accepted";
1922
+ reason: {
1923
+ message: string;
1924
+ isDuplicate?: boolean | undefined;
1925
+ };
1901
1926
  transactionId: string;
1902
1927
  createdAt: string;
1903
1928
  createdBy: string;
@@ -1940,7 +1965,7 @@ export declare const EventDocument: z.ZodObject<{
1940
1965
  filename: string;
1941
1966
  originalFilename: string;
1942
1967
  }[] | [string, string] | undefined>;
1943
- createdAtLocation: string;
1968
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1944
1969
  annotation?: Record<string, string | number | boolean | {
1945
1970
  type: string;
1946
1971
  filename: string;
@@ -1978,12 +2003,16 @@ export declare const EventDocument: z.ZodObject<{
1978
2003
  option: string;
1979
2004
  filename: string;
1980
2005
  originalFilename: string;
1981
- }[] | [string, string] | undefined> | undefined;
1982
- originalActionId?: string | undefined;
2006
+ }[] | [string, string] | undefined> | null | undefined;
2007
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1983
2008
  }, {
1984
2009
  type: "ARCHIVE";
1985
2010
  id: string;
1986
2011
  status: "Rejected" | "Requested" | "Accepted";
2012
+ reason: {
2013
+ message: string;
2014
+ isDuplicate?: boolean | undefined;
2015
+ };
1987
2016
  transactionId: string;
1988
2017
  createdAt: string;
1989
2018
  createdBy: string;
@@ -2026,7 +2055,7 @@ export declare const EventDocument: z.ZodObject<{
2026
2055
  filename: string;
2027
2056
  originalFilename: string;
2028
2057
  }[] | [string, string] | undefined>;
2029
- createdAtLocation: string;
2058
+ createdAtLocation?: string | null | undefined;
2030
2059
  annotation?: Record<string, string | number | boolean | {
2031
2060
  type: string;
2032
2061
  filename: string;
@@ -2064,14 +2093,15 @@ export declare const EventDocument: z.ZodObject<{
2064
2093
  option: string;
2065
2094
  filename: string;
2066
2095
  originalFilename: string;
2067
- }[] | [string, string] | undefined> | undefined;
2068
- originalActionId?: string | undefined;
2096
+ }[] | [string, string] | undefined> | null | undefined;
2097
+ originalActionId?: string | null | undefined;
2069
2098
  }>, z.ZodObject<z.objectUtil.extendShape<{
2070
2099
  id: z.ZodString;
2071
2100
  transactionId: z.ZodString;
2072
2101
  createdAt: z.ZodString;
2073
2102
  createdBy: z.ZodString;
2074
2103
  createdByRole: z.ZodString;
2104
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2075
2105
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2076
2106
  filename: z.ZodString;
2077
2107
  originalFilename: z.ZodString;
@@ -2186,7 +2216,7 @@ export declare const EventDocument: z.ZodObject<{
2186
2216
  addressLine3?: string | null | undefined;
2187
2217
  postcodeOrZip?: string | null | undefined;
2188
2218
  }>]>>;
2189
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2219
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2190
2220
  filename: z.ZodString;
2191
2221
  originalFilename: z.ZodString;
2192
2222
  type: z.ZodString;
@@ -2299,10 +2329,9 @@ export declare const EventDocument: z.ZodObject<{
2299
2329
  addressLine2?: string | null | undefined;
2300
2330
  addressLine3?: string | null | undefined;
2301
2331
  postcodeOrZip?: string | null | undefined;
2302
- }>]>>>;
2303
- createdAtLocation: z.ZodString;
2332
+ }>]>>>>;
2304
2333
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2305
- originalActionId: z.ZodOptional<z.ZodString>;
2334
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2306
2335
  }, {
2307
2336
  type: z.ZodLiteral<"NOTIFY">;
2308
2337
  }>, "strip", z.ZodTypeAny, {
@@ -2351,7 +2380,7 @@ export declare const EventDocument: z.ZodObject<{
2351
2380
  filename: string;
2352
2381
  originalFilename: string;
2353
2382
  }[] | [string, string] | undefined>;
2354
- createdAtLocation: string;
2383
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2355
2384
  annotation?: Record<string, string | number | boolean | {
2356
2385
  type: string;
2357
2386
  filename: string;
@@ -2389,8 +2418,8 @@ export declare const EventDocument: z.ZodObject<{
2389
2418
  option: string;
2390
2419
  filename: string;
2391
2420
  originalFilename: string;
2392
- }[] | [string, string] | undefined> | undefined;
2393
- originalActionId?: string | undefined;
2421
+ }[] | [string, string] | undefined> | null | undefined;
2422
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2394
2423
  }, {
2395
2424
  type: "NOTIFY";
2396
2425
  id: string;
@@ -2437,7 +2466,7 @@ export declare const EventDocument: z.ZodObject<{
2437
2466
  filename: string;
2438
2467
  originalFilename: string;
2439
2468
  }[] | [string, string] | undefined>;
2440
- createdAtLocation: string;
2469
+ createdAtLocation?: string | null | undefined;
2441
2470
  annotation?: Record<string, string | number | boolean | {
2442
2471
  type: string;
2443
2472
  filename: string;
@@ -2475,14 +2504,15 @@ export declare const EventDocument: z.ZodObject<{
2475
2504
  option: string;
2476
2505
  filename: string;
2477
2506
  originalFilename: string;
2478
- }[] | [string, string] | undefined> | undefined;
2479
- originalActionId?: string | undefined;
2507
+ }[] | [string, string] | undefined> | null | undefined;
2508
+ originalActionId?: string | null | undefined;
2480
2509
  }>, z.ZodObject<z.objectUtil.extendShape<{
2481
2510
  id: z.ZodString;
2482
2511
  transactionId: z.ZodString;
2483
2512
  createdAt: z.ZodString;
2484
2513
  createdBy: z.ZodString;
2485
2514
  createdByRole: z.ZodString;
2515
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2486
2516
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2487
2517
  filename: z.ZodString;
2488
2518
  originalFilename: z.ZodString;
@@ -2597,7 +2627,7 @@ export declare const EventDocument: z.ZodObject<{
2597
2627
  addressLine3?: string | null | undefined;
2598
2628
  postcodeOrZip?: string | null | undefined;
2599
2629
  }>]>>;
2600
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2630
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2601
2631
  filename: z.ZodString;
2602
2632
  originalFilename: z.ZodString;
2603
2633
  type: z.ZodString;
@@ -2710,10 +2740,9 @@ export declare const EventDocument: z.ZodObject<{
2710
2740
  addressLine2?: string | null | undefined;
2711
2741
  addressLine3?: string | null | undefined;
2712
2742
  postcodeOrZip?: string | null | undefined;
2713
- }>]>>>;
2714
- createdAtLocation: z.ZodString;
2743
+ }>]>>>>;
2715
2744
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2716
- originalActionId: z.ZodOptional<z.ZodString>;
2745
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2717
2746
  }, {
2718
2747
  type: z.ZodLiteral<"REGISTER">;
2719
2748
  registrationNumber: z.ZodOptional<z.ZodString>;
@@ -2763,7 +2792,7 @@ export declare const EventDocument: z.ZodObject<{
2763
2792
  filename: string;
2764
2793
  originalFilename: string;
2765
2794
  }[] | [string, string] | undefined>;
2766
- createdAtLocation: string;
2795
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2767
2796
  annotation?: Record<string, string | number | boolean | {
2768
2797
  type: string;
2769
2798
  filename: string;
@@ -2801,8 +2830,8 @@ export declare const EventDocument: z.ZodObject<{
2801
2830
  option: string;
2802
2831
  filename: string;
2803
2832
  originalFilename: string;
2804
- }[] | [string, string] | undefined> | undefined;
2805
- originalActionId?: string | undefined;
2833
+ }[] | [string, string] | undefined> | null | undefined;
2834
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2806
2835
  registrationNumber?: string | undefined;
2807
2836
  }, {
2808
2837
  type: "REGISTER";
@@ -2850,7 +2879,7 @@ export declare const EventDocument: z.ZodObject<{
2850
2879
  filename: string;
2851
2880
  originalFilename: string;
2852
2881
  }[] | [string, string] | undefined>;
2853
- createdAtLocation: string;
2882
+ createdAtLocation?: string | null | undefined;
2854
2883
  annotation?: Record<string, string | number | boolean | {
2855
2884
  type: string;
2856
2885
  filename: string;
@@ -2888,8 +2917,8 @@ export declare const EventDocument: z.ZodObject<{
2888
2917
  option: string;
2889
2918
  filename: string;
2890
2919
  originalFilename: string;
2891
- }[] | [string, string] | undefined> | undefined;
2892
- originalActionId?: string | undefined;
2920
+ }[] | [string, string] | undefined> | null | undefined;
2921
+ originalActionId?: string | null | undefined;
2893
2922
  registrationNumber?: string | undefined;
2894
2923
  }>, z.ZodObject<z.objectUtil.extendShape<{
2895
2924
  id: z.ZodString;
@@ -2897,6 +2926,7 @@ export declare const EventDocument: z.ZodObject<{
2897
2926
  createdAt: z.ZodString;
2898
2927
  createdBy: z.ZodString;
2899
2928
  createdByRole: z.ZodString;
2929
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2900
2930
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2901
2931
  filename: z.ZodString;
2902
2932
  originalFilename: z.ZodString;
@@ -3011,7 +3041,7 @@ export declare const EventDocument: z.ZodObject<{
3011
3041
  addressLine3?: string | null | undefined;
3012
3042
  postcodeOrZip?: string | null | undefined;
3013
3043
  }>]>>;
3014
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3044
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3015
3045
  filename: z.ZodString;
3016
3046
  originalFilename: z.ZodString;
3017
3047
  type: z.ZodString;
@@ -3124,10 +3154,9 @@ export declare const EventDocument: z.ZodObject<{
3124
3154
  addressLine2?: string | null | undefined;
3125
3155
  addressLine3?: string | null | undefined;
3126
3156
  postcodeOrZip?: string | null | undefined;
3127
- }>]>>>;
3128
- createdAtLocation: z.ZodString;
3157
+ }>]>>>>;
3129
3158
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3130
- originalActionId: z.ZodOptional<z.ZodString>;
3159
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3131
3160
  }, {
3132
3161
  type: z.ZodLiteral<"DECLARE">;
3133
3162
  }>, "strip", z.ZodTypeAny, {
@@ -3176,7 +3205,7 @@ export declare const EventDocument: z.ZodObject<{
3176
3205
  filename: string;
3177
3206
  originalFilename: string;
3178
3207
  }[] | [string, string] | undefined>;
3179
- createdAtLocation: string;
3208
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3180
3209
  annotation?: Record<string, string | number | boolean | {
3181
3210
  type: string;
3182
3211
  filename: string;
@@ -3214,8 +3243,8 @@ export declare const EventDocument: z.ZodObject<{
3214
3243
  option: string;
3215
3244
  filename: string;
3216
3245
  originalFilename: string;
3217
- }[] | [string, string] | undefined> | undefined;
3218
- originalActionId?: string | undefined;
3246
+ }[] | [string, string] | undefined> | null | undefined;
3247
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3219
3248
  }, {
3220
3249
  type: "DECLARE";
3221
3250
  id: string;
@@ -3262,7 +3291,7 @@ export declare const EventDocument: z.ZodObject<{
3262
3291
  filename: string;
3263
3292
  originalFilename: string;
3264
3293
  }[] | [string, string] | undefined>;
3265
- createdAtLocation: string;
3294
+ createdAtLocation?: string | null | undefined;
3266
3295
  annotation?: Record<string, string | number | boolean | {
3267
3296
  type: string;
3268
3297
  filename: string;
@@ -3300,14 +3329,15 @@ export declare const EventDocument: z.ZodObject<{
3300
3329
  option: string;
3301
3330
  filename: string;
3302
3331
  originalFilename: string;
3303
- }[] | [string, string] | undefined> | undefined;
3304
- originalActionId?: string | undefined;
3332
+ }[] | [string, string] | undefined> | null | undefined;
3333
+ originalActionId?: string | null | undefined;
3305
3334
  }>, z.ZodObject<z.objectUtil.extendShape<{
3306
3335
  id: z.ZodString;
3307
3336
  transactionId: z.ZodString;
3308
3337
  createdAt: z.ZodString;
3309
3338
  createdBy: z.ZodString;
3310
3339
  createdByRole: z.ZodString;
3340
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3311
3341
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3312
3342
  filename: z.ZodString;
3313
3343
  originalFilename: z.ZodString;
@@ -3422,7 +3452,7 @@ export declare const EventDocument: z.ZodObject<{
3422
3452
  addressLine3?: string | null | undefined;
3423
3453
  postcodeOrZip?: string | null | undefined;
3424
3454
  }>]>>;
3425
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3455
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3426
3456
  filename: z.ZodString;
3427
3457
  originalFilename: z.ZodString;
3428
3458
  type: z.ZodString;
@@ -3535,10 +3565,9 @@ export declare const EventDocument: z.ZodObject<{
3535
3565
  addressLine2?: string | null | undefined;
3536
3566
  addressLine3?: string | null | undefined;
3537
3567
  postcodeOrZip?: string | null | undefined;
3538
- }>]>>>;
3539
- createdAtLocation: z.ZodString;
3568
+ }>]>>>>;
3540
3569
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3541
- originalActionId: z.ZodOptional<z.ZodString>;
3570
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3542
3571
  }, {
3543
3572
  type: z.ZodLiteral<"ASSIGN">;
3544
3573
  assignedTo: z.ZodString;
@@ -3588,8 +3617,8 @@ export declare const EventDocument: z.ZodObject<{
3588
3617
  filename: string;
3589
3618
  originalFilename: string;
3590
3619
  }[] | [string, string] | undefined>;
3591
- createdAtLocation: string;
3592
3620
  assignedTo: string;
3621
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3593
3622
  annotation?: Record<string, string | number | boolean | {
3594
3623
  type: string;
3595
3624
  filename: string;
@@ -3627,8 +3656,8 @@ export declare const EventDocument: z.ZodObject<{
3627
3656
  option: string;
3628
3657
  filename: string;
3629
3658
  originalFilename: string;
3630
- }[] | [string, string] | undefined> | undefined;
3631
- originalActionId?: string | undefined;
3659
+ }[] | [string, string] | undefined> | null | undefined;
3660
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3632
3661
  }, {
3633
3662
  type: "ASSIGN";
3634
3663
  id: string;
@@ -3675,8 +3704,8 @@ export declare const EventDocument: z.ZodObject<{
3675
3704
  filename: string;
3676
3705
  originalFilename: string;
3677
3706
  }[] | [string, string] | undefined>;
3678
- createdAtLocation: string;
3679
3707
  assignedTo: string;
3708
+ createdAtLocation?: string | null | undefined;
3680
3709
  annotation?: Record<string, string | number | boolean | {
3681
3710
  type: string;
3682
3711
  filename: string;
@@ -3714,14 +3743,15 @@ export declare const EventDocument: z.ZodObject<{
3714
3743
  option: string;
3715
3744
  filename: string;
3716
3745
  originalFilename: string;
3717
- }[] | [string, string] | undefined> | undefined;
3718
- originalActionId?: string | undefined;
3746
+ }[] | [string, string] | undefined> | null | undefined;
3747
+ originalActionId?: string | null | undefined;
3719
3748
  }>, z.ZodObject<z.objectUtil.extendShape<{
3720
3749
  id: z.ZodString;
3721
3750
  transactionId: z.ZodString;
3722
3751
  createdAt: z.ZodString;
3723
3752
  createdBy: z.ZodString;
3724
3753
  createdByRole: z.ZodString;
3754
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3725
3755
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3726
3756
  filename: z.ZodString;
3727
3757
  originalFilename: z.ZodString;
@@ -3836,7 +3866,7 @@ export declare const EventDocument: z.ZodObject<{
3836
3866
  addressLine3?: string | null | undefined;
3837
3867
  postcodeOrZip?: string | null | undefined;
3838
3868
  }>]>>;
3839
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3869
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3840
3870
  filename: z.ZodString;
3841
3871
  originalFilename: z.ZodString;
3842
3872
  type: z.ZodString;
@@ -3949,10 +3979,9 @@ export declare const EventDocument: z.ZodObject<{
3949
3979
  addressLine2?: string | null | undefined;
3950
3980
  addressLine3?: string | null | undefined;
3951
3981
  postcodeOrZip?: string | null | undefined;
3952
- }>]>>>;
3953
- createdAtLocation: z.ZodString;
3982
+ }>]>>>>;
3954
3983
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3955
- originalActionId: z.ZodOptional<z.ZodString>;
3984
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3956
3985
  }, {
3957
3986
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
3958
3987
  }>, "strip", z.ZodTypeAny, {
@@ -4001,7 +4030,7 @@ export declare const EventDocument: z.ZodObject<{
4001
4030
  filename: string;
4002
4031
  originalFilename: string;
4003
4032
  }[] | [string, string] | undefined>;
4004
- createdAtLocation: string;
4033
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4005
4034
  annotation?: Record<string, string | number | boolean | {
4006
4035
  type: string;
4007
4036
  filename: string;
@@ -4039,8 +4068,8 @@ export declare const EventDocument: z.ZodObject<{
4039
4068
  option: string;
4040
4069
  filename: string;
4041
4070
  originalFilename: string;
4042
- }[] | [string, string] | undefined> | undefined;
4043
- originalActionId?: string | undefined;
4071
+ }[] | [string, string] | undefined> | null | undefined;
4072
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4044
4073
  }, {
4045
4074
  type: "REQUEST_CORRECTION";
4046
4075
  id: string;
@@ -4087,7 +4116,7 @@ export declare const EventDocument: z.ZodObject<{
4087
4116
  filename: string;
4088
4117
  originalFilename: string;
4089
4118
  }[] | [string, string] | undefined>;
4090
- createdAtLocation: string;
4119
+ createdAtLocation?: string | null | undefined;
4091
4120
  annotation?: Record<string, string | number | boolean | {
4092
4121
  type: string;
4093
4122
  filename: string;
@@ -4125,14 +4154,15 @@ export declare const EventDocument: z.ZodObject<{
4125
4154
  option: string;
4126
4155
  filename: string;
4127
4156
  originalFilename: string;
4128
- }[] | [string, string] | undefined> | undefined;
4129
- originalActionId?: string | undefined;
4157
+ }[] | [string, string] | undefined> | null | undefined;
4158
+ originalActionId?: string | null | undefined;
4130
4159
  }>, z.ZodObject<z.objectUtil.extendShape<{
4131
4160
  id: z.ZodString;
4132
4161
  transactionId: z.ZodString;
4133
4162
  createdAt: z.ZodString;
4134
4163
  createdBy: z.ZodString;
4135
4164
  createdByRole: z.ZodString;
4165
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4136
4166
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4137
4167
  filename: z.ZodString;
4138
4168
  originalFilename: z.ZodString;
@@ -4247,7 +4277,7 @@ export declare const EventDocument: z.ZodObject<{
4247
4277
  addressLine3?: string | null | undefined;
4248
4278
  postcodeOrZip?: string | null | undefined;
4249
4279
  }>]>>;
4250
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4280
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4251
4281
  filename: z.ZodString;
4252
4282
  originalFilename: z.ZodString;
4253
4283
  type: z.ZodString;
@@ -4360,10 +4390,9 @@ export declare const EventDocument: z.ZodObject<{
4360
4390
  addressLine2?: string | null | undefined;
4361
4391
  addressLine3?: string | null | undefined;
4362
4392
  postcodeOrZip?: string | null | undefined;
4363
- }>]>>>;
4364
- createdAtLocation: z.ZodString;
4393
+ }>]>>>>;
4365
4394
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4366
- originalActionId: z.ZodOptional<z.ZodString>;
4395
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4367
4396
  }, {
4368
4397
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
4369
4398
  requestId: z.ZodString;
@@ -4413,8 +4442,8 @@ export declare const EventDocument: z.ZodObject<{
4413
4442
  filename: string;
4414
4443
  originalFilename: string;
4415
4444
  }[] | [string, string] | undefined>;
4416
- createdAtLocation: string;
4417
4445
  requestId: string;
4446
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4418
4447
  annotation?: Record<string, string | number | boolean | {
4419
4448
  type: string;
4420
4449
  filename: string;
@@ -4452,8 +4481,8 @@ export declare const EventDocument: z.ZodObject<{
4452
4481
  option: string;
4453
4482
  filename: string;
4454
4483
  originalFilename: string;
4455
- }[] | [string, string] | undefined> | undefined;
4456
- originalActionId?: string | undefined;
4484
+ }[] | [string, string] | undefined> | null | undefined;
4485
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4457
4486
  }, {
4458
4487
  type: "APPROVE_CORRECTION";
4459
4488
  id: string;
@@ -4500,8 +4529,8 @@ export declare const EventDocument: z.ZodObject<{
4500
4529
  filename: string;
4501
4530
  originalFilename: string;
4502
4531
  }[] | [string, string] | undefined>;
4503
- createdAtLocation: string;
4504
4532
  requestId: string;
4533
+ createdAtLocation?: string | null | undefined;
4505
4534
  annotation?: Record<string, string | number | boolean | {
4506
4535
  type: string;
4507
4536
  filename: string;
@@ -4539,14 +4568,15 @@ export declare const EventDocument: z.ZodObject<{
4539
4568
  option: string;
4540
4569
  filename: string;
4541
4570
  originalFilename: string;
4542
- }[] | [string, string] | undefined> | undefined;
4543
- originalActionId?: string | undefined;
4571
+ }[] | [string, string] | undefined> | null | undefined;
4572
+ originalActionId?: string | null | undefined;
4544
4573
  }>, z.ZodObject<z.objectUtil.extendShape<{
4545
4574
  id: z.ZodString;
4546
4575
  transactionId: z.ZodString;
4547
4576
  createdAt: z.ZodString;
4548
4577
  createdBy: z.ZodString;
4549
4578
  createdByRole: z.ZodString;
4579
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4550
4580
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4551
4581
  filename: z.ZodString;
4552
4582
  originalFilename: z.ZodString;
@@ -4661,7 +4691,7 @@ export declare const EventDocument: z.ZodObject<{
4661
4691
  addressLine3?: string | null | undefined;
4662
4692
  postcodeOrZip?: string | null | undefined;
4663
4693
  }>]>>;
4664
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4694
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4665
4695
  filename: z.ZodString;
4666
4696
  originalFilename: z.ZodString;
4667
4697
  type: z.ZodString;
@@ -4774,10 +4804,9 @@ export declare const EventDocument: z.ZodObject<{
4774
4804
  addressLine2?: string | null | undefined;
4775
4805
  addressLine3?: string | null | undefined;
4776
4806
  postcodeOrZip?: string | null | undefined;
4777
- }>]>>>;
4778
- createdAtLocation: z.ZodString;
4807
+ }>]>>>>;
4779
4808
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4780
- originalActionId: z.ZodOptional<z.ZodString>;
4809
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4781
4810
  }, {
4782
4811
  type: z.ZodLiteral<"REJECT_CORRECTION">;
4783
4812
  requestId: z.ZodString;
@@ -4827,8 +4856,8 @@ export declare const EventDocument: z.ZodObject<{
4827
4856
  filename: string;
4828
4857
  originalFilename: string;
4829
4858
  }[] | [string, string] | undefined>;
4830
- createdAtLocation: string;
4831
4859
  requestId: string;
4860
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4832
4861
  annotation?: Record<string, string | number | boolean | {
4833
4862
  type: string;
4834
4863
  filename: string;
@@ -4866,8 +4895,8 @@ export declare const EventDocument: z.ZodObject<{
4866
4895
  option: string;
4867
4896
  filename: string;
4868
4897
  originalFilename: string;
4869
- }[] | [string, string] | undefined> | undefined;
4870
- originalActionId?: string | undefined;
4898
+ }[] | [string, string] | undefined> | null | undefined;
4899
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4871
4900
  }, {
4872
4901
  type: "REJECT_CORRECTION";
4873
4902
  id: string;
@@ -4914,8 +4943,8 @@ export declare const EventDocument: z.ZodObject<{
4914
4943
  filename: string;
4915
4944
  originalFilename: string;
4916
4945
  }[] | [string, string] | undefined>;
4917
- createdAtLocation: string;
4918
4946
  requestId: string;
4947
+ createdAtLocation?: string | null | undefined;
4919
4948
  annotation?: Record<string, string | number | boolean | {
4920
4949
  type: string;
4921
4950
  filename: string;
@@ -4953,14 +4982,15 @@ export declare const EventDocument: z.ZodObject<{
4953
4982
  option: string;
4954
4983
  filename: string;
4955
4984
  originalFilename: string;
4956
- }[] | [string, string] | undefined> | undefined;
4957
- originalActionId?: string | undefined;
4985
+ }[] | [string, string] | undefined> | null | undefined;
4986
+ originalActionId?: string | null | undefined;
4958
4987
  }>, z.ZodObject<z.objectUtil.extendShape<{
4959
4988
  id: z.ZodString;
4960
4989
  transactionId: z.ZodString;
4961
4990
  createdAt: z.ZodString;
4962
4991
  createdBy: z.ZodString;
4963
4992
  createdByRole: z.ZodString;
4993
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4964
4994
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4965
4995
  filename: z.ZodString;
4966
4996
  originalFilename: z.ZodString;
@@ -5075,7 +5105,7 @@ export declare const EventDocument: z.ZodObject<{
5075
5105
  addressLine3?: string | null | undefined;
5076
5106
  postcodeOrZip?: string | null | undefined;
5077
5107
  }>]>>;
5078
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5108
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5079
5109
  filename: z.ZodString;
5080
5110
  originalFilename: z.ZodString;
5081
5111
  type: z.ZodString;
@@ -5188,10 +5218,9 @@ export declare const EventDocument: z.ZodObject<{
5188
5218
  addressLine2?: string | null | undefined;
5189
5219
  addressLine3?: string | null | undefined;
5190
5220
  postcodeOrZip?: string | null | undefined;
5191
- }>]>>>;
5192
- createdAtLocation: z.ZodString;
5221
+ }>]>>>>;
5193
5222
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5194
- originalActionId: z.ZodOptional<z.ZodString>;
5223
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5195
5224
  }, {
5196
5225
  type: z.ZodLiteral<"UNASSIGN">;
5197
5226
  assignedTo: z.ZodLiteral<null>;
@@ -5241,8 +5270,8 @@ export declare const EventDocument: z.ZodObject<{
5241
5270
  filename: string;
5242
5271
  originalFilename: string;
5243
5272
  }[] | [string, string] | undefined>;
5244
- createdAtLocation: string;
5245
5273
  assignedTo: null;
5274
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5246
5275
  annotation?: Record<string, string | number | boolean | {
5247
5276
  type: string;
5248
5277
  filename: string;
@@ -5280,8 +5309,8 @@ export declare const EventDocument: z.ZodObject<{
5280
5309
  option: string;
5281
5310
  filename: string;
5282
5311
  originalFilename: string;
5283
- }[] | [string, string] | undefined> | undefined;
5284
- originalActionId?: string | undefined;
5312
+ }[] | [string, string] | undefined> | null | undefined;
5313
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5285
5314
  }, {
5286
5315
  type: "UNASSIGN";
5287
5316
  id: string;
@@ -5328,8 +5357,8 @@ export declare const EventDocument: z.ZodObject<{
5328
5357
  filename: string;
5329
5358
  originalFilename: string;
5330
5359
  }[] | [string, string] | undefined>;
5331
- createdAtLocation: string;
5332
5360
  assignedTo: null;
5361
+ createdAtLocation?: string | null | undefined;
5333
5362
  annotation?: Record<string, string | number | boolean | {
5334
5363
  type: string;
5335
5364
  filename: string;
@@ -5367,14 +5396,15 @@ export declare const EventDocument: z.ZodObject<{
5367
5396
  option: string;
5368
5397
  filename: string;
5369
5398
  originalFilename: string;
5370
- }[] | [string, string] | undefined> | undefined;
5371
- originalActionId?: string | undefined;
5399
+ }[] | [string, string] | undefined> | null | undefined;
5400
+ originalActionId?: string | null | undefined;
5372
5401
  }>, z.ZodObject<z.objectUtil.extendShape<{
5373
5402
  id: z.ZodString;
5374
5403
  transactionId: z.ZodString;
5375
5404
  createdAt: z.ZodString;
5376
5405
  createdBy: z.ZodString;
5377
5406
  createdByRole: z.ZodString;
5407
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5378
5408
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5379
5409
  filename: z.ZodString;
5380
5410
  originalFilename: z.ZodString;
@@ -5489,7 +5519,7 @@ export declare const EventDocument: z.ZodObject<{
5489
5519
  addressLine3?: string | null | undefined;
5490
5520
  postcodeOrZip?: string | null | undefined;
5491
5521
  }>]>>;
5492
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5522
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5493
5523
  filename: z.ZodString;
5494
5524
  originalFilename: z.ZodString;
5495
5525
  type: z.ZodString;
@@ -5602,10 +5632,9 @@ export declare const EventDocument: z.ZodObject<{
5602
5632
  addressLine2?: string | null | undefined;
5603
5633
  addressLine3?: string | null | undefined;
5604
5634
  postcodeOrZip?: string | null | undefined;
5605
- }>]>>>;
5606
- createdAtLocation: z.ZodString;
5635
+ }>]>>>>;
5607
5636
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5608
- originalActionId: z.ZodOptional<z.ZodString>;
5637
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5609
5638
  }, {
5610
5639
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
5611
5640
  }>, "strip", z.ZodTypeAny, {
@@ -5654,7 +5683,7 @@ export declare const EventDocument: z.ZodObject<{
5654
5683
  filename: string;
5655
5684
  originalFilename: string;
5656
5685
  }[] | [string, string] | undefined>;
5657
- createdAtLocation: string;
5686
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5658
5687
  annotation?: Record<string, string | number | boolean | {
5659
5688
  type: string;
5660
5689
  filename: string;
@@ -5692,8 +5721,8 @@ export declare const EventDocument: z.ZodObject<{
5692
5721
  option: string;
5693
5722
  filename: string;
5694
5723
  originalFilename: string;
5695
- }[] | [string, string] | undefined> | undefined;
5696
- originalActionId?: string | undefined;
5724
+ }[] | [string, string] | undefined> | null | undefined;
5725
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5697
5726
  }, {
5698
5727
  type: "PRINT_CERTIFICATE";
5699
5728
  id: string;
@@ -5740,7 +5769,7 @@ export declare const EventDocument: z.ZodObject<{
5740
5769
  filename: string;
5741
5770
  originalFilename: string;
5742
5771
  }[] | [string, string] | undefined>;
5743
- createdAtLocation: string;
5772
+ createdAtLocation?: string | null | undefined;
5744
5773
  annotation?: Record<string, string | number | boolean | {
5745
5774
  type: string;
5746
5775
  filename: string;
@@ -5778,14 +5807,15 @@ export declare const EventDocument: z.ZodObject<{
5778
5807
  option: string;
5779
5808
  filename: string;
5780
5809
  originalFilename: string;
5781
- }[] | [string, string] | undefined> | undefined;
5782
- originalActionId?: string | undefined;
5810
+ }[] | [string, string] | undefined> | null | undefined;
5811
+ originalActionId?: string | null | undefined;
5783
5812
  }>, z.ZodObject<z.objectUtil.extendShape<{
5784
5813
  id: z.ZodString;
5785
5814
  transactionId: z.ZodString;
5786
5815
  createdAt: z.ZodString;
5787
5816
  createdBy: z.ZodString;
5788
5817
  createdByRole: z.ZodString;
5818
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5789
5819
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5790
5820
  filename: z.ZodString;
5791
5821
  originalFilename: z.ZodString;
@@ -5900,7 +5930,7 @@ export declare const EventDocument: z.ZodObject<{
5900
5930
  addressLine3?: string | null | undefined;
5901
5931
  postcodeOrZip?: string | null | undefined;
5902
5932
  }>]>>;
5903
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5933
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5904
5934
  filename: z.ZodString;
5905
5935
  originalFilename: z.ZodString;
5906
5936
  type: z.ZodString;
@@ -6013,10 +6043,9 @@ export declare const EventDocument: z.ZodObject<{
6013
6043
  addressLine2?: string | null | undefined;
6014
6044
  addressLine3?: string | null | undefined;
6015
6045
  postcodeOrZip?: string | null | undefined;
6016
- }>]>>>;
6017
- createdAtLocation: z.ZodString;
6046
+ }>]>>>>;
6018
6047
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6019
- originalActionId: z.ZodOptional<z.ZodString>;
6048
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6020
6049
  }, {
6021
6050
  type: z.ZodLiteral<"READ">;
6022
6051
  }>, "strip", z.ZodTypeAny, {
@@ -6065,7 +6094,7 @@ export declare const EventDocument: z.ZodObject<{
6065
6094
  filename: string;
6066
6095
  originalFilename: string;
6067
6096
  }[] | [string, string] | undefined>;
6068
- createdAtLocation: string;
6097
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6069
6098
  annotation?: Record<string, string | number | boolean | {
6070
6099
  type: string;
6071
6100
  filename: string;
@@ -6103,8 +6132,8 @@ export declare const EventDocument: z.ZodObject<{
6103
6132
  option: string;
6104
6133
  filename: string;
6105
6134
  originalFilename: string;
6106
- }[] | [string, string] | undefined> | undefined;
6107
- originalActionId?: string | undefined;
6135
+ }[] | [string, string] | undefined> | null | undefined;
6136
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6108
6137
  }, {
6109
6138
  type: "READ";
6110
6139
  id: string;
@@ -6151,7 +6180,7 @@ export declare const EventDocument: z.ZodObject<{
6151
6180
  filename: string;
6152
6181
  originalFilename: string;
6153
6182
  }[] | [string, string] | undefined>;
6154
- createdAtLocation: string;
6183
+ createdAtLocation?: string | null | undefined;
6155
6184
  annotation?: Record<string, string | number | boolean | {
6156
6185
  type: string;
6157
6186
  filename: string;
@@ -6189,14 +6218,15 @@ export declare const EventDocument: z.ZodObject<{
6189
6218
  option: string;
6190
6219
  filename: string;
6191
6220
  originalFilename: string;
6192
- }[] | [string, string] | undefined> | undefined;
6193
- originalActionId?: string | undefined;
6221
+ }[] | [string, string] | undefined> | null | undefined;
6222
+ originalActionId?: string | null | undefined;
6194
6223
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6195
6224
  id: z.ZodString;
6196
6225
  transactionId: z.ZodString;
6197
6226
  createdAt: z.ZodString;
6198
6227
  createdBy: z.ZodString;
6199
6228
  createdByRole: z.ZodString;
6229
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6200
6230
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6201
6231
  filename: z.ZodString;
6202
6232
  originalFilename: z.ZodString;
@@ -6311,7 +6341,7 @@ export declare const EventDocument: z.ZodObject<{
6311
6341
  addressLine3?: string | null | undefined;
6312
6342
  postcodeOrZip?: string | null | undefined;
6313
6343
  }>]>>;
6314
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6344
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6315
6345
  filename: z.ZodString;
6316
6346
  originalFilename: z.ZodString;
6317
6347
  type: z.ZodString;
@@ -6424,10 +6454,9 @@ export declare const EventDocument: z.ZodObject<{
6424
6454
  addressLine2?: string | null | undefined;
6425
6455
  addressLine3?: string | null | undefined;
6426
6456
  postcodeOrZip?: string | null | undefined;
6427
- }>]>>>;
6428
- createdAtLocation: z.ZodString;
6457
+ }>]>>>>;
6429
6458
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6430
- originalActionId: z.ZodOptional<z.ZodString>;
6459
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6431
6460
  }, "declaration" | "annotation">, {
6432
6461
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
6433
6462
  status: z.ZodLiteral<"Rejected">;
@@ -6439,8 +6468,8 @@ export declare const EventDocument: z.ZodObject<{
6439
6468
  createdAt: string;
6440
6469
  createdBy: string;
6441
6470
  createdByRole: string;
6442
- createdAtLocation: string;
6443
- originalActionId?: string | undefined;
6471
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6472
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6444
6473
  }, {
6445
6474
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6446
6475
  id: string;
@@ -6449,13 +6478,13 @@ export declare const EventDocument: z.ZodObject<{
6449
6478
  createdAt: string;
6450
6479
  createdBy: string;
6451
6480
  createdByRole: string;
6452
- createdAtLocation: string;
6453
- originalActionId?: string | undefined;
6481
+ createdAtLocation?: string | null | undefined;
6482
+ originalActionId?: string | null | undefined;
6454
6483
  }>]>, "many">;
6455
6484
  trackingId: z.ZodString;
6456
6485
  }, "strip", z.ZodTypeAny, {
6457
6486
  type: string;
6458
- id: string;
6487
+ id: string & z.BRAND<"UUID">;
6459
6488
  createdAt: string;
6460
6489
  updatedAt: string;
6461
6490
  actions: ({
@@ -6504,8 +6533,8 @@ export declare const EventDocument: z.ZodObject<{
6504
6533
  filename: string;
6505
6534
  originalFilename: string;
6506
6535
  }[] | [string, string] | undefined>;
6507
- createdAtLocation: string;
6508
6536
  assignedTo: string;
6537
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6509
6538
  annotation?: Record<string, string | number | boolean | {
6510
6539
  type: string;
6511
6540
  filename: string;
@@ -6543,8 +6572,8 @@ export declare const EventDocument: z.ZodObject<{
6543
6572
  option: string;
6544
6573
  filename: string;
6545
6574
  originalFilename: string;
6546
- }[] | [string, string] | undefined> | undefined;
6547
- originalActionId?: string | undefined;
6575
+ }[] | [string, string] | undefined> | null | undefined;
6576
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6548
6577
  } | {
6549
6578
  type: "UNASSIGN";
6550
6579
  id: string;
@@ -6591,8 +6620,8 @@ export declare const EventDocument: z.ZodObject<{
6591
6620
  filename: string;
6592
6621
  originalFilename: string;
6593
6622
  }[] | [string, string] | undefined>;
6594
- createdAtLocation: string;
6595
6623
  assignedTo: null;
6624
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6596
6625
  annotation?: Record<string, string | number | boolean | {
6597
6626
  type: string;
6598
6627
  filename: string;
@@ -6630,8 +6659,8 @@ export declare const EventDocument: z.ZodObject<{
6630
6659
  option: string;
6631
6660
  filename: string;
6632
6661
  originalFilename: string;
6633
- }[] | [string, string] | undefined> | undefined;
6634
- originalActionId?: string | undefined;
6662
+ }[] | [string, string] | undefined> | null | undefined;
6663
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6635
6664
  } | {
6636
6665
  type: "REGISTER";
6637
6666
  id: string;
@@ -6678,7 +6707,7 @@ export declare const EventDocument: z.ZodObject<{
6678
6707
  filename: string;
6679
6708
  originalFilename: string;
6680
6709
  }[] | [string, string] | undefined>;
6681
- createdAtLocation: string;
6710
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6682
6711
  annotation?: Record<string, string | number | boolean | {
6683
6712
  type: string;
6684
6713
  filename: string;
@@ -6716,8 +6745,8 @@ export declare const EventDocument: z.ZodObject<{
6716
6745
  option: string;
6717
6746
  filename: string;
6718
6747
  originalFilename: string;
6719
- }[] | [string, string] | undefined> | undefined;
6720
- originalActionId?: string | undefined;
6748
+ }[] | [string, string] | undefined> | null | undefined;
6749
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6721
6750
  registrationNumber?: string | undefined;
6722
6751
  } | {
6723
6752
  type: "DECLARE";
@@ -6765,7 +6794,7 @@ export declare const EventDocument: z.ZodObject<{
6765
6794
  filename: string;
6766
6795
  originalFilename: string;
6767
6796
  }[] | [string, string] | undefined>;
6768
- createdAtLocation: string;
6797
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6769
6798
  annotation?: Record<string, string | number | boolean | {
6770
6799
  type: string;
6771
6800
  filename: string;
@@ -6803,8 +6832,8 @@ export declare const EventDocument: z.ZodObject<{
6803
6832
  option: string;
6804
6833
  filename: string;
6805
6834
  originalFilename: string;
6806
- }[] | [string, string] | undefined> | undefined;
6807
- originalActionId?: string | undefined;
6835
+ }[] | [string, string] | undefined> | null | undefined;
6836
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6808
6837
  } | {
6809
6838
  type: "VALIDATE";
6810
6839
  id: string;
@@ -6851,7 +6880,7 @@ export declare const EventDocument: z.ZodObject<{
6851
6880
  filename: string;
6852
6881
  originalFilename: string;
6853
6882
  }[] | [string, string] | undefined>;
6854
- createdAtLocation: string;
6883
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6855
6884
  annotation?: Record<string, string | number | boolean | {
6856
6885
  type: string;
6857
6886
  filename: string;
@@ -6889,12 +6918,16 @@ export declare const EventDocument: z.ZodObject<{
6889
6918
  option: string;
6890
6919
  filename: string;
6891
6920
  originalFilename: string;
6892
- }[] | [string, string] | undefined> | undefined;
6893
- originalActionId?: string | undefined;
6921
+ }[] | [string, string] | undefined> | null | undefined;
6922
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6894
6923
  } | {
6895
6924
  type: "REJECT";
6896
6925
  id: string;
6897
6926
  status: "Rejected" | "Requested" | "Accepted";
6927
+ reason: {
6928
+ message: string;
6929
+ isDuplicate?: boolean | undefined;
6930
+ };
6898
6931
  transactionId: string;
6899
6932
  createdAt: string;
6900
6933
  createdBy: string;
@@ -6937,7 +6970,7 @@ export declare const EventDocument: z.ZodObject<{
6937
6970
  filename: string;
6938
6971
  originalFilename: string;
6939
6972
  }[] | [string, string] | undefined>;
6940
- createdAtLocation: string;
6973
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6941
6974
  annotation?: Record<string, string | number | boolean | {
6942
6975
  type: string;
6943
6976
  filename: string;
@@ -6975,8 +7008,8 @@ export declare const EventDocument: z.ZodObject<{
6975
7008
  option: string;
6976
7009
  filename: string;
6977
7010
  originalFilename: string;
6978
- }[] | [string, string] | undefined> | undefined;
6979
- originalActionId?: string | undefined;
7011
+ }[] | [string, string] | undefined> | null | undefined;
7012
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6980
7013
  } | {
6981
7014
  type: "MARKED_AS_DUPLICATE";
6982
7015
  id: string;
@@ -7023,7 +7056,7 @@ export declare const EventDocument: z.ZodObject<{
7023
7056
  filename: string;
7024
7057
  originalFilename: string;
7025
7058
  }[] | [string, string] | undefined>;
7026
- createdAtLocation: string;
7059
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7027
7060
  annotation?: Record<string, string | number | boolean | {
7028
7061
  type: string;
7029
7062
  filename: string;
@@ -7061,12 +7094,16 @@ export declare const EventDocument: z.ZodObject<{
7061
7094
  option: string;
7062
7095
  filename: string;
7063
7096
  originalFilename: string;
7064
- }[] | [string, string] | undefined> | undefined;
7065
- originalActionId?: string | undefined;
7097
+ }[] | [string, string] | undefined> | null | undefined;
7098
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7066
7099
  } | {
7067
7100
  type: "ARCHIVE";
7068
7101
  id: string;
7069
7102
  status: "Rejected" | "Requested" | "Accepted";
7103
+ reason: {
7104
+ message: string;
7105
+ isDuplicate?: boolean | undefined;
7106
+ };
7070
7107
  transactionId: string;
7071
7108
  createdAt: string;
7072
7109
  createdBy: string;
@@ -7109,7 +7146,7 @@ export declare const EventDocument: z.ZodObject<{
7109
7146
  filename: string;
7110
7147
  originalFilename: string;
7111
7148
  }[] | [string, string] | undefined>;
7112
- createdAtLocation: string;
7149
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7113
7150
  annotation?: Record<string, string | number | boolean | {
7114
7151
  type: string;
7115
7152
  filename: string;
@@ -7147,8 +7184,8 @@ export declare const EventDocument: z.ZodObject<{
7147
7184
  option: string;
7148
7185
  filename: string;
7149
7186
  originalFilename: string;
7150
- }[] | [string, string] | undefined> | undefined;
7151
- originalActionId?: string | undefined;
7187
+ }[] | [string, string] | undefined> | null | undefined;
7188
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7152
7189
  } | {
7153
7190
  type: "CREATE";
7154
7191
  id: string;
@@ -7195,7 +7232,7 @@ export declare const EventDocument: z.ZodObject<{
7195
7232
  filename: string;
7196
7233
  originalFilename: string;
7197
7234
  }[] | [string, string] | undefined>;
7198
- createdAtLocation: string;
7235
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7199
7236
  annotation?: Record<string, string | number | boolean | {
7200
7237
  type: string;
7201
7238
  filename: string;
@@ -7233,8 +7270,8 @@ export declare const EventDocument: z.ZodObject<{
7233
7270
  option: string;
7234
7271
  filename: string;
7235
7272
  originalFilename: string;
7236
- }[] | [string, string] | undefined> | undefined;
7237
- originalActionId?: string | undefined;
7273
+ }[] | [string, string] | undefined> | null | undefined;
7274
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7238
7275
  } | {
7239
7276
  type: "NOTIFY";
7240
7277
  id: string;
@@ -7281,7 +7318,7 @@ export declare const EventDocument: z.ZodObject<{
7281
7318
  filename: string;
7282
7319
  originalFilename: string;
7283
7320
  }[] | [string, string] | undefined>;
7284
- createdAtLocation: string;
7321
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7285
7322
  annotation?: Record<string, string | number | boolean | {
7286
7323
  type: string;
7287
7324
  filename: string;
@@ -7319,8 +7356,8 @@ export declare const EventDocument: z.ZodObject<{
7319
7356
  option: string;
7320
7357
  filename: string;
7321
7358
  originalFilename: string;
7322
- }[] | [string, string] | undefined> | undefined;
7323
- originalActionId?: string | undefined;
7359
+ }[] | [string, string] | undefined> | null | undefined;
7360
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7324
7361
  } | {
7325
7362
  type: "PRINT_CERTIFICATE";
7326
7363
  id: string;
@@ -7367,7 +7404,7 @@ export declare const EventDocument: z.ZodObject<{
7367
7404
  filename: string;
7368
7405
  originalFilename: string;
7369
7406
  }[] | [string, string] | undefined>;
7370
- createdAtLocation: string;
7407
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7371
7408
  annotation?: Record<string, string | number | boolean | {
7372
7409
  type: string;
7373
7410
  filename: string;
@@ -7405,8 +7442,8 @@ export declare const EventDocument: z.ZodObject<{
7405
7442
  option: string;
7406
7443
  filename: string;
7407
7444
  originalFilename: string;
7408
- }[] | [string, string] | undefined> | undefined;
7409
- originalActionId?: string | undefined;
7445
+ }[] | [string, string] | undefined> | null | undefined;
7446
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7410
7447
  } | {
7411
7448
  type: "REQUEST_CORRECTION";
7412
7449
  id: string;
@@ -7453,7 +7490,7 @@ export declare const EventDocument: z.ZodObject<{
7453
7490
  filename: string;
7454
7491
  originalFilename: string;
7455
7492
  }[] | [string, string] | undefined>;
7456
- createdAtLocation: string;
7493
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7457
7494
  annotation?: Record<string, string | number | boolean | {
7458
7495
  type: string;
7459
7496
  filename: string;
@@ -7491,8 +7528,8 @@ export declare const EventDocument: z.ZodObject<{
7491
7528
  option: string;
7492
7529
  filename: string;
7493
7530
  originalFilename: string;
7494
- }[] | [string, string] | undefined> | undefined;
7495
- originalActionId?: string | undefined;
7531
+ }[] | [string, string] | undefined> | null | undefined;
7532
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7496
7533
  } | {
7497
7534
  type: "APPROVE_CORRECTION";
7498
7535
  id: string;
@@ -7539,8 +7576,8 @@ export declare const EventDocument: z.ZodObject<{
7539
7576
  filename: string;
7540
7577
  originalFilename: string;
7541
7578
  }[] | [string, string] | undefined>;
7542
- createdAtLocation: string;
7543
7579
  requestId: string;
7580
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7544
7581
  annotation?: Record<string, string | number | boolean | {
7545
7582
  type: string;
7546
7583
  filename: string;
@@ -7578,8 +7615,8 @@ export declare const EventDocument: z.ZodObject<{
7578
7615
  option: string;
7579
7616
  filename: string;
7580
7617
  originalFilename: string;
7581
- }[] | [string, string] | undefined> | undefined;
7582
- originalActionId?: string | undefined;
7618
+ }[] | [string, string] | undefined> | null | undefined;
7619
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7583
7620
  } | {
7584
7621
  type: "REJECT_CORRECTION";
7585
7622
  id: string;
@@ -7626,8 +7663,8 @@ export declare const EventDocument: z.ZodObject<{
7626
7663
  filename: string;
7627
7664
  originalFilename: string;
7628
7665
  }[] | [string, string] | undefined>;
7629
- createdAtLocation: string;
7630
7666
  requestId: string;
7667
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7631
7668
  annotation?: Record<string, string | number | boolean | {
7632
7669
  type: string;
7633
7670
  filename: string;
@@ -7665,8 +7702,8 @@ export declare const EventDocument: z.ZodObject<{
7665
7702
  option: string;
7666
7703
  filename: string;
7667
7704
  originalFilename: string;
7668
- }[] | [string, string] | undefined> | undefined;
7669
- originalActionId?: string | undefined;
7705
+ }[] | [string, string] | undefined> | null | undefined;
7706
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7670
7707
  } | {
7671
7708
  type: "READ";
7672
7709
  id: string;
@@ -7713,7 +7750,7 @@ export declare const EventDocument: z.ZodObject<{
7713
7750
  filename: string;
7714
7751
  originalFilename: string;
7715
7752
  }[] | [string, string] | undefined>;
7716
- createdAtLocation: string;
7753
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7717
7754
  annotation?: Record<string, string | number | boolean | {
7718
7755
  type: string;
7719
7756
  filename: string;
@@ -7751,8 +7788,8 @@ export declare const EventDocument: z.ZodObject<{
7751
7788
  option: string;
7752
7789
  filename: string;
7753
7790
  originalFilename: string;
7754
- }[] | [string, string] | undefined> | undefined;
7755
- originalActionId?: string | undefined;
7791
+ }[] | [string, string] | undefined> | null | undefined;
7792
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7756
7793
  } | {
7757
7794
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7758
7795
  id: string;
@@ -7761,13 +7798,10 @@ export declare const EventDocument: z.ZodObject<{
7761
7798
  createdAt: string;
7762
7799
  createdBy: string;
7763
7800
  createdByRole: string;
7764
- createdAtLocation: string;
7765
- originalActionId?: string | undefined;
7801
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7802
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7766
7803
  })[];
7767
7804
  trackingId: string;
7768
- dateOfEvent?: {
7769
- fieldId: string;
7770
- } | undefined;
7771
7805
  }, {
7772
7806
  type: string;
7773
7807
  id: string;
@@ -7819,8 +7853,8 @@ export declare const EventDocument: z.ZodObject<{
7819
7853
  filename: string;
7820
7854
  originalFilename: string;
7821
7855
  }[] | [string, string] | undefined>;
7822
- createdAtLocation: string;
7823
7856
  assignedTo: string;
7857
+ createdAtLocation?: string | null | undefined;
7824
7858
  annotation?: Record<string, string | number | boolean | {
7825
7859
  type: string;
7826
7860
  filename: string;
@@ -7858,8 +7892,8 @@ export declare const EventDocument: z.ZodObject<{
7858
7892
  option: string;
7859
7893
  filename: string;
7860
7894
  originalFilename: string;
7861
- }[] | [string, string] | undefined> | undefined;
7862
- originalActionId?: string | undefined;
7895
+ }[] | [string, string] | undefined> | null | undefined;
7896
+ originalActionId?: string | null | undefined;
7863
7897
  } | {
7864
7898
  type: "UNASSIGN";
7865
7899
  id: string;
@@ -7906,8 +7940,8 @@ export declare const EventDocument: z.ZodObject<{
7906
7940
  filename: string;
7907
7941
  originalFilename: string;
7908
7942
  }[] | [string, string] | undefined>;
7909
- createdAtLocation: string;
7910
7943
  assignedTo: null;
7944
+ createdAtLocation?: string | null | undefined;
7911
7945
  annotation?: Record<string, string | number | boolean | {
7912
7946
  type: string;
7913
7947
  filename: string;
@@ -7945,8 +7979,8 @@ export declare const EventDocument: z.ZodObject<{
7945
7979
  option: string;
7946
7980
  filename: string;
7947
7981
  originalFilename: string;
7948
- }[] | [string, string] | undefined> | undefined;
7949
- originalActionId?: string | undefined;
7982
+ }[] | [string, string] | undefined> | null | undefined;
7983
+ originalActionId?: string | null | undefined;
7950
7984
  } | {
7951
7985
  type: "REGISTER";
7952
7986
  id: string;
@@ -7993,7 +8027,7 @@ export declare const EventDocument: z.ZodObject<{
7993
8027
  filename: string;
7994
8028
  originalFilename: string;
7995
8029
  }[] | [string, string] | undefined>;
7996
- createdAtLocation: string;
8030
+ createdAtLocation?: string | null | undefined;
7997
8031
  annotation?: Record<string, string | number | boolean | {
7998
8032
  type: string;
7999
8033
  filename: string;
@@ -8031,8 +8065,8 @@ export declare const EventDocument: z.ZodObject<{
8031
8065
  option: string;
8032
8066
  filename: string;
8033
8067
  originalFilename: string;
8034
- }[] | [string, string] | undefined> | undefined;
8035
- originalActionId?: string | undefined;
8068
+ }[] | [string, string] | undefined> | null | undefined;
8069
+ originalActionId?: string | null | undefined;
8036
8070
  registrationNumber?: string | undefined;
8037
8071
  } | {
8038
8072
  type: "DECLARE";
@@ -8080,7 +8114,7 @@ export declare const EventDocument: z.ZodObject<{
8080
8114
  filename: string;
8081
8115
  originalFilename: string;
8082
8116
  }[] | [string, string] | undefined>;
8083
- createdAtLocation: string;
8117
+ createdAtLocation?: string | null | undefined;
8084
8118
  annotation?: Record<string, string | number | boolean | {
8085
8119
  type: string;
8086
8120
  filename: string;
@@ -8118,8 +8152,8 @@ export declare const EventDocument: z.ZodObject<{
8118
8152
  option: string;
8119
8153
  filename: string;
8120
8154
  originalFilename: string;
8121
- }[] | [string, string] | undefined> | undefined;
8122
- originalActionId?: string | undefined;
8155
+ }[] | [string, string] | undefined> | null | undefined;
8156
+ originalActionId?: string | null | undefined;
8123
8157
  } | {
8124
8158
  type: "VALIDATE";
8125
8159
  id: string;
@@ -8166,7 +8200,7 @@ export declare const EventDocument: z.ZodObject<{
8166
8200
  filename: string;
8167
8201
  originalFilename: string;
8168
8202
  }[] | [string, string] | undefined>;
8169
- createdAtLocation: string;
8203
+ createdAtLocation?: string | null | undefined;
8170
8204
  annotation?: Record<string, string | number | boolean | {
8171
8205
  type: string;
8172
8206
  filename: string;
@@ -8204,12 +8238,16 @@ export declare const EventDocument: z.ZodObject<{
8204
8238
  option: string;
8205
8239
  filename: string;
8206
8240
  originalFilename: string;
8207
- }[] | [string, string] | undefined> | undefined;
8208
- originalActionId?: string | undefined;
8241
+ }[] | [string, string] | undefined> | null | undefined;
8242
+ originalActionId?: string | null | undefined;
8209
8243
  } | {
8210
8244
  type: "REJECT";
8211
8245
  id: string;
8212
8246
  status: "Rejected" | "Requested" | "Accepted";
8247
+ reason: {
8248
+ message: string;
8249
+ isDuplicate?: boolean | undefined;
8250
+ };
8213
8251
  transactionId: string;
8214
8252
  createdAt: string;
8215
8253
  createdBy: string;
@@ -8252,7 +8290,7 @@ export declare const EventDocument: z.ZodObject<{
8252
8290
  filename: string;
8253
8291
  originalFilename: string;
8254
8292
  }[] | [string, string] | undefined>;
8255
- createdAtLocation: string;
8293
+ createdAtLocation?: string | null | undefined;
8256
8294
  annotation?: Record<string, string | number | boolean | {
8257
8295
  type: string;
8258
8296
  filename: string;
@@ -8290,8 +8328,8 @@ export declare const EventDocument: z.ZodObject<{
8290
8328
  option: string;
8291
8329
  filename: string;
8292
8330
  originalFilename: string;
8293
- }[] | [string, string] | undefined> | undefined;
8294
- originalActionId?: string | undefined;
8331
+ }[] | [string, string] | undefined> | null | undefined;
8332
+ originalActionId?: string | null | undefined;
8295
8333
  } | {
8296
8334
  type: "MARKED_AS_DUPLICATE";
8297
8335
  id: string;
@@ -8338,7 +8376,7 @@ export declare const EventDocument: z.ZodObject<{
8338
8376
  filename: string;
8339
8377
  originalFilename: string;
8340
8378
  }[] | [string, string] | undefined>;
8341
- createdAtLocation: string;
8379
+ createdAtLocation?: string | null | undefined;
8342
8380
  annotation?: Record<string, string | number | boolean | {
8343
8381
  type: string;
8344
8382
  filename: string;
@@ -8376,12 +8414,16 @@ export declare const EventDocument: z.ZodObject<{
8376
8414
  option: string;
8377
8415
  filename: string;
8378
8416
  originalFilename: string;
8379
- }[] | [string, string] | undefined> | undefined;
8380
- originalActionId?: string | undefined;
8417
+ }[] | [string, string] | undefined> | null | undefined;
8418
+ originalActionId?: string | null | undefined;
8381
8419
  } | {
8382
8420
  type: "ARCHIVE";
8383
8421
  id: string;
8384
8422
  status: "Rejected" | "Requested" | "Accepted";
8423
+ reason: {
8424
+ message: string;
8425
+ isDuplicate?: boolean | undefined;
8426
+ };
8385
8427
  transactionId: string;
8386
8428
  createdAt: string;
8387
8429
  createdBy: string;
@@ -8424,7 +8466,7 @@ export declare const EventDocument: z.ZodObject<{
8424
8466
  filename: string;
8425
8467
  originalFilename: string;
8426
8468
  }[] | [string, string] | undefined>;
8427
- createdAtLocation: string;
8469
+ createdAtLocation?: string | null | undefined;
8428
8470
  annotation?: Record<string, string | number | boolean | {
8429
8471
  type: string;
8430
8472
  filename: string;
@@ -8462,8 +8504,8 @@ export declare const EventDocument: z.ZodObject<{
8462
8504
  option: string;
8463
8505
  filename: string;
8464
8506
  originalFilename: string;
8465
- }[] | [string, string] | undefined> | undefined;
8466
- originalActionId?: string | undefined;
8507
+ }[] | [string, string] | undefined> | null | undefined;
8508
+ originalActionId?: string | null | undefined;
8467
8509
  } | {
8468
8510
  type: "CREATE";
8469
8511
  id: string;
@@ -8510,7 +8552,7 @@ export declare const EventDocument: z.ZodObject<{
8510
8552
  filename: string;
8511
8553
  originalFilename: string;
8512
8554
  }[] | [string, string] | undefined>;
8513
- createdAtLocation: string;
8555
+ createdAtLocation?: string | null | undefined;
8514
8556
  annotation?: Record<string, string | number | boolean | {
8515
8557
  type: string;
8516
8558
  filename: string;
@@ -8548,8 +8590,8 @@ export declare const EventDocument: z.ZodObject<{
8548
8590
  option: string;
8549
8591
  filename: string;
8550
8592
  originalFilename: string;
8551
- }[] | [string, string] | undefined> | undefined;
8552
- originalActionId?: string | undefined;
8593
+ }[] | [string, string] | undefined> | null | undefined;
8594
+ originalActionId?: string | null | undefined;
8553
8595
  } | {
8554
8596
  type: "NOTIFY";
8555
8597
  id: string;
@@ -8596,7 +8638,7 @@ export declare const EventDocument: z.ZodObject<{
8596
8638
  filename: string;
8597
8639
  originalFilename: string;
8598
8640
  }[] | [string, string] | undefined>;
8599
- createdAtLocation: string;
8641
+ createdAtLocation?: string | null | undefined;
8600
8642
  annotation?: Record<string, string | number | boolean | {
8601
8643
  type: string;
8602
8644
  filename: string;
@@ -8634,8 +8676,8 @@ export declare const EventDocument: z.ZodObject<{
8634
8676
  option: string;
8635
8677
  filename: string;
8636
8678
  originalFilename: string;
8637
- }[] | [string, string] | undefined> | undefined;
8638
- originalActionId?: string | undefined;
8679
+ }[] | [string, string] | undefined> | null | undefined;
8680
+ originalActionId?: string | null | undefined;
8639
8681
  } | {
8640
8682
  type: "PRINT_CERTIFICATE";
8641
8683
  id: string;
@@ -8682,7 +8724,7 @@ export declare const EventDocument: z.ZodObject<{
8682
8724
  filename: string;
8683
8725
  originalFilename: string;
8684
8726
  }[] | [string, string] | undefined>;
8685
- createdAtLocation: string;
8727
+ createdAtLocation?: string | null | undefined;
8686
8728
  annotation?: Record<string, string | number | boolean | {
8687
8729
  type: string;
8688
8730
  filename: string;
@@ -8720,8 +8762,8 @@ export declare const EventDocument: z.ZodObject<{
8720
8762
  option: string;
8721
8763
  filename: string;
8722
8764
  originalFilename: string;
8723
- }[] | [string, string] | undefined> | undefined;
8724
- originalActionId?: string | undefined;
8765
+ }[] | [string, string] | undefined> | null | undefined;
8766
+ originalActionId?: string | null | undefined;
8725
8767
  } | {
8726
8768
  type: "REQUEST_CORRECTION";
8727
8769
  id: string;
@@ -8768,7 +8810,7 @@ export declare const EventDocument: z.ZodObject<{
8768
8810
  filename: string;
8769
8811
  originalFilename: string;
8770
8812
  }[] | [string, string] | undefined>;
8771
- createdAtLocation: string;
8813
+ createdAtLocation?: string | null | undefined;
8772
8814
  annotation?: Record<string, string | number | boolean | {
8773
8815
  type: string;
8774
8816
  filename: string;
@@ -8806,8 +8848,8 @@ export declare const EventDocument: z.ZodObject<{
8806
8848
  option: string;
8807
8849
  filename: string;
8808
8850
  originalFilename: string;
8809
- }[] | [string, string] | undefined> | undefined;
8810
- originalActionId?: string | undefined;
8851
+ }[] | [string, string] | undefined> | null | undefined;
8852
+ originalActionId?: string | null | undefined;
8811
8853
  } | {
8812
8854
  type: "APPROVE_CORRECTION";
8813
8855
  id: string;
@@ -8854,8 +8896,8 @@ export declare const EventDocument: z.ZodObject<{
8854
8896
  filename: string;
8855
8897
  originalFilename: string;
8856
8898
  }[] | [string, string] | undefined>;
8857
- createdAtLocation: string;
8858
8899
  requestId: string;
8900
+ createdAtLocation?: string | null | undefined;
8859
8901
  annotation?: Record<string, string | number | boolean | {
8860
8902
  type: string;
8861
8903
  filename: string;
@@ -8893,8 +8935,8 @@ export declare const EventDocument: z.ZodObject<{
8893
8935
  option: string;
8894
8936
  filename: string;
8895
8937
  originalFilename: string;
8896
- }[] | [string, string] | undefined> | undefined;
8897
- originalActionId?: string | undefined;
8938
+ }[] | [string, string] | undefined> | null | undefined;
8939
+ originalActionId?: string | null | undefined;
8898
8940
  } | {
8899
8941
  type: "REJECT_CORRECTION";
8900
8942
  id: string;
@@ -8941,8 +8983,8 @@ export declare const EventDocument: z.ZodObject<{
8941
8983
  filename: string;
8942
8984
  originalFilename: string;
8943
8985
  }[] | [string, string] | undefined>;
8944
- createdAtLocation: string;
8945
8986
  requestId: string;
8987
+ createdAtLocation?: string | null | undefined;
8946
8988
  annotation?: Record<string, string | number | boolean | {
8947
8989
  type: string;
8948
8990
  filename: string;
@@ -8980,8 +9022,8 @@ export declare const EventDocument: z.ZodObject<{
8980
9022
  option: string;
8981
9023
  filename: string;
8982
9024
  originalFilename: string;
8983
- }[] | [string, string] | undefined> | undefined;
8984
- originalActionId?: string | undefined;
9025
+ }[] | [string, string] | undefined> | null | undefined;
9026
+ originalActionId?: string | null | undefined;
8985
9027
  } | {
8986
9028
  type: "READ";
8987
9029
  id: string;
@@ -9028,7 +9070,7 @@ export declare const EventDocument: z.ZodObject<{
9028
9070
  filename: string;
9029
9071
  originalFilename: string;
9030
9072
  }[] | [string, string] | undefined>;
9031
- createdAtLocation: string;
9073
+ createdAtLocation?: string | null | undefined;
9032
9074
  annotation?: Record<string, string | number | boolean | {
9033
9075
  type: string;
9034
9076
  filename: string;
@@ -9066,8 +9108,8 @@ export declare const EventDocument: z.ZodObject<{
9066
9108
  option: string;
9067
9109
  filename: string;
9068
9110
  originalFilename: string;
9069
- }[] | [string, string] | undefined> | undefined;
9070
- originalActionId?: string | undefined;
9111
+ }[] | [string, string] | undefined> | null | undefined;
9112
+ originalActionId?: string | null | undefined;
9071
9113
  } | {
9072
9114
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
9073
9115
  id: string;
@@ -9076,13 +9118,10 @@ export declare const EventDocument: z.ZodObject<{
9076
9118
  createdAt: string;
9077
9119
  createdBy: string;
9078
9120
  createdByRole: string;
9079
- createdAtLocation: string;
9080
- originalActionId?: string | undefined;
9121
+ createdAtLocation?: string | null | undefined;
9122
+ originalActionId?: string | null | undefined;
9081
9123
  })[];
9082
9124
  trackingId: string;
9083
- dateOfEvent?: {
9084
- fieldId: string;
9085
- } | undefined;
9086
9125
  }>;
9087
9126
  export type EventDocument = z.infer<typeof EventDocument>;
9088
9127
  //# sourceMappingURL=EventDocument.d.ts.map