@opencrvs/toolkit 1.8.0-rc.fb261c5 → 1.8.0-rc.fbcec4c

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.
@@ -4,11 +4,12 @@ export declare const EventDocument: z.ZodObject<{
4
4
  type: z.ZodString;
5
5
  createdAt: z.ZodString;
6
6
  updatedAt: z.ZodString;
7
- actions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
7
+ updatedAtLocation: z.ZodString;
8
+ actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
8
9
  id: z.ZodString;
9
10
  createdAt: z.ZodString;
10
11
  createdBy: z.ZodString;
11
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12
13
  filename: z.ZodString;
13
14
  originalFilename: z.ZodString;
14
15
  type: z.ZodString;
@@ -122,7 +123,7 @@ export declare const EventDocument: z.ZodObject<{
122
123
  addressLine3?: string | null | undefined;
123
124
  postcodeOrZip?: string | null | undefined;
124
125
  }>]>>;
125
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
126
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
126
127
  filename: z.ZodString;
127
128
  originalFilename: z.ZodString;
128
129
  type: z.ZodString;
@@ -237,12 +238,17 @@ export declare const EventDocument: z.ZodObject<{
237
238
  postcodeOrZip?: string | null | undefined;
238
239
  }>]>>>;
239
240
  createdAtLocation: z.ZodString;
241
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
242
+ originalActionId: z.ZodOptional<z.ZodString>;
240
243
  }, {
241
244
  type: z.ZodLiteral<"CREATE">;
242
245
  }>, "strip", z.ZodTypeAny, {
243
246
  type: "CREATE";
244
247
  id: string;
245
- data: Record<string, string | number | boolean | {
248
+ status: "Rejected" | "Requested" | "Accepted";
249
+ createdAt: string;
250
+ createdBy: string;
251
+ declaration: Record<string, string | number | boolean | {
246
252
  type: string;
247
253
  filename: string;
248
254
  originalFilename: string;
@@ -280,10 +286,8 @@ export declare const EventDocument: z.ZodObject<{
280
286
  filename: string;
281
287
  originalFilename: string;
282
288
  }[] | undefined>;
283
- createdAt: string;
284
- createdBy: string;
285
289
  createdAtLocation: string;
286
- metadata?: Record<string, string | number | boolean | {
290
+ annotation?: Record<string, string | number | boolean | {
287
291
  type: string;
288
292
  filename: string;
289
293
  originalFilename: string;
@@ -321,10 +325,14 @@ export declare const EventDocument: z.ZodObject<{
321
325
  filename: string;
322
326
  originalFilename: string;
323
327
  }[] | undefined> | undefined;
328
+ originalActionId?: string | undefined;
324
329
  }, {
325
330
  type: "CREATE";
326
331
  id: string;
327
- data: Record<string, string | number | boolean | {
332
+ status: "Rejected" | "Requested" | "Accepted";
333
+ createdAt: string;
334
+ createdBy: string;
335
+ declaration: Record<string, string | number | boolean | {
328
336
  type: string;
329
337
  filename: string;
330
338
  originalFilename: string;
@@ -362,10 +370,8 @@ export declare const EventDocument: z.ZodObject<{
362
370
  filename: string;
363
371
  originalFilename: string;
364
372
  }[] | undefined>;
365
- createdAt: string;
366
- createdBy: string;
367
373
  createdAtLocation: string;
368
- metadata?: Record<string, string | number | boolean | {
374
+ annotation?: Record<string, string | number | boolean | {
369
375
  type: string;
370
376
  filename: string;
371
377
  originalFilename: string;
@@ -403,11 +409,12 @@ export declare const EventDocument: z.ZodObject<{
403
409
  filename: string;
404
410
  originalFilename: string;
405
411
  }[] | undefined> | undefined;
412
+ originalActionId?: string | undefined;
406
413
  }>, z.ZodObject<z.objectUtil.extendShape<{
407
414
  id: z.ZodString;
408
415
  createdAt: z.ZodString;
409
416
  createdBy: z.ZodString;
410
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
417
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
411
418
  filename: z.ZodString;
412
419
  originalFilename: z.ZodString;
413
420
  type: z.ZodString;
@@ -521,7 +528,7 @@ export declare const EventDocument: z.ZodObject<{
521
528
  addressLine3?: string | null | undefined;
522
529
  postcodeOrZip?: string | null | undefined;
523
530
  }>]>>;
524
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
531
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
525
532
  filename: z.ZodString;
526
533
  originalFilename: z.ZodString;
527
534
  type: z.ZodString;
@@ -636,12 +643,17 @@ export declare const EventDocument: z.ZodObject<{
636
643
  postcodeOrZip?: string | null | undefined;
637
644
  }>]>>>;
638
645
  createdAtLocation: z.ZodString;
646
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
647
+ originalActionId: z.ZodOptional<z.ZodString>;
639
648
  }, {
640
649
  type: z.ZodLiteral<"VALIDATE">;
641
650
  }>, "strip", z.ZodTypeAny, {
642
651
  type: "VALIDATE";
643
652
  id: string;
644
- data: Record<string, string | number | boolean | {
653
+ status: "Rejected" | "Requested" | "Accepted";
654
+ createdAt: string;
655
+ createdBy: string;
656
+ declaration: Record<string, string | number | boolean | {
645
657
  type: string;
646
658
  filename: string;
647
659
  originalFilename: string;
@@ -679,10 +691,8 @@ export declare const EventDocument: z.ZodObject<{
679
691
  filename: string;
680
692
  originalFilename: string;
681
693
  }[] | undefined>;
682
- createdAt: string;
683
- createdBy: string;
684
694
  createdAtLocation: string;
685
- metadata?: Record<string, string | number | boolean | {
695
+ annotation?: Record<string, string | number | boolean | {
686
696
  type: string;
687
697
  filename: string;
688
698
  originalFilename: string;
@@ -720,10 +730,14 @@ export declare const EventDocument: z.ZodObject<{
720
730
  filename: string;
721
731
  originalFilename: string;
722
732
  }[] | undefined> | undefined;
733
+ originalActionId?: string | undefined;
723
734
  }, {
724
735
  type: "VALIDATE";
725
736
  id: string;
726
- data: Record<string, string | number | boolean | {
737
+ status: "Rejected" | "Requested" | "Accepted";
738
+ createdAt: string;
739
+ createdBy: string;
740
+ declaration: Record<string, string | number | boolean | {
727
741
  type: string;
728
742
  filename: string;
729
743
  originalFilename: string;
@@ -761,10 +775,8 @@ export declare const EventDocument: z.ZodObject<{
761
775
  filename: string;
762
776
  originalFilename: string;
763
777
  }[] | undefined>;
764
- createdAt: string;
765
- createdBy: string;
766
778
  createdAtLocation: string;
767
- metadata?: Record<string, string | number | boolean | {
779
+ annotation?: Record<string, string | number | boolean | {
768
780
  type: string;
769
781
  filename: string;
770
782
  originalFilename: string;
@@ -802,11 +814,12 @@ export declare const EventDocument: z.ZodObject<{
802
814
  filename: string;
803
815
  originalFilename: string;
804
816
  }[] | undefined> | undefined;
817
+ originalActionId?: string | undefined;
805
818
  }>, z.ZodObject<z.objectUtil.extendShape<{
806
819
  id: z.ZodString;
807
820
  createdAt: z.ZodString;
808
821
  createdBy: z.ZodString;
809
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
822
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
810
823
  filename: z.ZodString;
811
824
  originalFilename: z.ZodString;
812
825
  type: z.ZodString;
@@ -920,7 +933,7 @@ export declare const EventDocument: z.ZodObject<{
920
933
  addressLine3?: string | null | undefined;
921
934
  postcodeOrZip?: string | null | undefined;
922
935
  }>]>>;
923
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
936
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
924
937
  filename: z.ZodString;
925
938
  originalFilename: z.ZodString;
926
939
  type: z.ZodString;
@@ -1035,12 +1048,17 @@ export declare const EventDocument: z.ZodObject<{
1035
1048
  postcodeOrZip?: string | null | undefined;
1036
1049
  }>]>>>;
1037
1050
  createdAtLocation: z.ZodString;
1051
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1052
+ originalActionId: z.ZodOptional<z.ZodString>;
1038
1053
  }, {
1039
1054
  type: z.ZodLiteral<"REJECT">;
1040
1055
  }>, "strip", z.ZodTypeAny, {
1041
1056
  type: "REJECT";
1042
1057
  id: string;
1043
- data: Record<string, string | number | boolean | {
1058
+ status: "Rejected" | "Requested" | "Accepted";
1059
+ createdAt: string;
1060
+ createdBy: string;
1061
+ declaration: Record<string, string | number | boolean | {
1044
1062
  type: string;
1045
1063
  filename: string;
1046
1064
  originalFilename: string;
@@ -1078,10 +1096,8 @@ export declare const EventDocument: z.ZodObject<{
1078
1096
  filename: string;
1079
1097
  originalFilename: string;
1080
1098
  }[] | undefined>;
1081
- createdAt: string;
1082
- createdBy: string;
1083
1099
  createdAtLocation: string;
1084
- metadata?: Record<string, string | number | boolean | {
1100
+ annotation?: Record<string, string | number | boolean | {
1085
1101
  type: string;
1086
1102
  filename: string;
1087
1103
  originalFilename: string;
@@ -1119,10 +1135,14 @@ export declare const EventDocument: z.ZodObject<{
1119
1135
  filename: string;
1120
1136
  originalFilename: string;
1121
1137
  }[] | undefined> | undefined;
1138
+ originalActionId?: string | undefined;
1122
1139
  }, {
1123
1140
  type: "REJECT";
1124
1141
  id: string;
1125
- data: Record<string, string | number | boolean | {
1142
+ status: "Rejected" | "Requested" | "Accepted";
1143
+ createdAt: string;
1144
+ createdBy: string;
1145
+ declaration: Record<string, string | number | boolean | {
1126
1146
  type: string;
1127
1147
  filename: string;
1128
1148
  originalFilename: string;
@@ -1160,10 +1180,8 @@ export declare const EventDocument: z.ZodObject<{
1160
1180
  filename: string;
1161
1181
  originalFilename: string;
1162
1182
  }[] | undefined>;
1163
- createdAt: string;
1164
- createdBy: string;
1165
1183
  createdAtLocation: string;
1166
- metadata?: Record<string, string | number | boolean | {
1184
+ annotation?: Record<string, string | number | boolean | {
1167
1185
  type: string;
1168
1186
  filename: string;
1169
1187
  originalFilename: string;
@@ -1201,11 +1219,12 @@ export declare const EventDocument: z.ZodObject<{
1201
1219
  filename: string;
1202
1220
  originalFilename: string;
1203
1221
  }[] | undefined> | undefined;
1222
+ originalActionId?: string | undefined;
1204
1223
  }>, z.ZodObject<z.objectUtil.extendShape<{
1205
1224
  id: z.ZodString;
1206
1225
  createdAt: z.ZodString;
1207
1226
  createdBy: z.ZodString;
1208
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1227
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1209
1228
  filename: z.ZodString;
1210
1229
  originalFilename: z.ZodString;
1211
1230
  type: z.ZodString;
@@ -1319,7 +1338,7 @@ export declare const EventDocument: z.ZodObject<{
1319
1338
  addressLine3?: string | null | undefined;
1320
1339
  postcodeOrZip?: string | null | undefined;
1321
1340
  }>]>>;
1322
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1341
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1323
1342
  filename: z.ZodString;
1324
1343
  originalFilename: z.ZodString;
1325
1344
  type: z.ZodString;
@@ -1434,12 +1453,17 @@ export declare const EventDocument: z.ZodObject<{
1434
1453
  postcodeOrZip?: string | null | undefined;
1435
1454
  }>]>>>;
1436
1455
  createdAtLocation: z.ZodString;
1456
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1457
+ originalActionId: z.ZodOptional<z.ZodString>;
1437
1458
  }, {
1438
1459
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1439
1460
  }>, "strip", z.ZodTypeAny, {
1440
1461
  type: "MARKED_AS_DUPLICATE";
1441
1462
  id: string;
1442
- data: Record<string, string | number | boolean | {
1463
+ status: "Rejected" | "Requested" | "Accepted";
1464
+ createdAt: string;
1465
+ createdBy: string;
1466
+ declaration: Record<string, string | number | boolean | {
1443
1467
  type: string;
1444
1468
  filename: string;
1445
1469
  originalFilename: string;
@@ -1477,10 +1501,8 @@ export declare const EventDocument: z.ZodObject<{
1477
1501
  filename: string;
1478
1502
  originalFilename: string;
1479
1503
  }[] | undefined>;
1480
- createdAt: string;
1481
- createdBy: string;
1482
1504
  createdAtLocation: string;
1483
- metadata?: Record<string, string | number | boolean | {
1505
+ annotation?: Record<string, string | number | boolean | {
1484
1506
  type: string;
1485
1507
  filename: string;
1486
1508
  originalFilename: string;
@@ -1518,10 +1540,14 @@ export declare const EventDocument: z.ZodObject<{
1518
1540
  filename: string;
1519
1541
  originalFilename: string;
1520
1542
  }[] | undefined> | undefined;
1543
+ originalActionId?: string | undefined;
1521
1544
  }, {
1522
1545
  type: "MARKED_AS_DUPLICATE";
1523
1546
  id: string;
1524
- data: Record<string, string | number | boolean | {
1547
+ status: "Rejected" | "Requested" | "Accepted";
1548
+ createdAt: string;
1549
+ createdBy: string;
1550
+ declaration: Record<string, string | number | boolean | {
1525
1551
  type: string;
1526
1552
  filename: string;
1527
1553
  originalFilename: string;
@@ -1559,10 +1585,8 @@ export declare const EventDocument: z.ZodObject<{
1559
1585
  filename: string;
1560
1586
  originalFilename: string;
1561
1587
  }[] | undefined>;
1562
- createdAt: string;
1563
- createdBy: string;
1564
1588
  createdAtLocation: string;
1565
- metadata?: Record<string, string | number | boolean | {
1589
+ annotation?: Record<string, string | number | boolean | {
1566
1590
  type: string;
1567
1591
  filename: string;
1568
1592
  originalFilename: string;
@@ -1600,11 +1624,12 @@ export declare const EventDocument: z.ZodObject<{
1600
1624
  filename: string;
1601
1625
  originalFilename: string;
1602
1626
  }[] | undefined> | undefined;
1627
+ originalActionId?: string | undefined;
1603
1628
  }>, z.ZodObject<z.objectUtil.extendShape<{
1604
1629
  id: z.ZodString;
1605
1630
  createdAt: z.ZodString;
1606
1631
  createdBy: z.ZodString;
1607
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1632
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1608
1633
  filename: z.ZodString;
1609
1634
  originalFilename: z.ZodString;
1610
1635
  type: z.ZodString;
@@ -1718,7 +1743,7 @@ export declare const EventDocument: z.ZodObject<{
1718
1743
  addressLine3?: string | null | undefined;
1719
1744
  postcodeOrZip?: string | null | undefined;
1720
1745
  }>]>>;
1721
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1746
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1722
1747
  filename: z.ZodString;
1723
1748
  originalFilename: z.ZodString;
1724
1749
  type: z.ZodString;
@@ -1833,12 +1858,17 @@ export declare const EventDocument: z.ZodObject<{
1833
1858
  postcodeOrZip?: string | null | undefined;
1834
1859
  }>]>>>;
1835
1860
  createdAtLocation: z.ZodString;
1861
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1862
+ originalActionId: z.ZodOptional<z.ZodString>;
1836
1863
  }, {
1837
1864
  type: z.ZodLiteral<"ARCHIVE">;
1838
1865
  }>, "strip", z.ZodTypeAny, {
1839
1866
  type: "ARCHIVE";
1840
1867
  id: string;
1841
- data: Record<string, string | number | boolean | {
1868
+ status: "Rejected" | "Requested" | "Accepted";
1869
+ createdAt: string;
1870
+ createdBy: string;
1871
+ declaration: Record<string, string | number | boolean | {
1842
1872
  type: string;
1843
1873
  filename: string;
1844
1874
  originalFilename: string;
@@ -1876,10 +1906,8 @@ export declare const EventDocument: z.ZodObject<{
1876
1906
  filename: string;
1877
1907
  originalFilename: string;
1878
1908
  }[] | undefined>;
1879
- createdAt: string;
1880
- createdBy: string;
1881
1909
  createdAtLocation: string;
1882
- metadata?: Record<string, string | number | boolean | {
1910
+ annotation?: Record<string, string | number | boolean | {
1883
1911
  type: string;
1884
1912
  filename: string;
1885
1913
  originalFilename: string;
@@ -1917,10 +1945,14 @@ export declare const EventDocument: z.ZodObject<{
1917
1945
  filename: string;
1918
1946
  originalFilename: string;
1919
1947
  }[] | undefined> | undefined;
1948
+ originalActionId?: string | undefined;
1920
1949
  }, {
1921
1950
  type: "ARCHIVE";
1922
1951
  id: string;
1923
- data: Record<string, string | number | boolean | {
1952
+ status: "Rejected" | "Requested" | "Accepted";
1953
+ createdAt: string;
1954
+ createdBy: string;
1955
+ declaration: Record<string, string | number | boolean | {
1924
1956
  type: string;
1925
1957
  filename: string;
1926
1958
  originalFilename: string;
@@ -1958,10 +1990,8 @@ export declare const EventDocument: z.ZodObject<{
1958
1990
  filename: string;
1959
1991
  originalFilename: string;
1960
1992
  }[] | undefined>;
1961
- createdAt: string;
1962
- createdBy: string;
1963
1993
  createdAtLocation: string;
1964
- metadata?: Record<string, string | number | boolean | {
1994
+ annotation?: Record<string, string | number | boolean | {
1965
1995
  type: string;
1966
1996
  filename: string;
1967
1997
  originalFilename: string;
@@ -1999,11 +2029,12 @@ export declare const EventDocument: z.ZodObject<{
1999
2029
  filename: string;
2000
2030
  originalFilename: string;
2001
2031
  }[] | undefined> | undefined;
2032
+ originalActionId?: string | undefined;
2002
2033
  }>, z.ZodObject<z.objectUtil.extendShape<{
2003
2034
  id: z.ZodString;
2004
2035
  createdAt: z.ZodString;
2005
2036
  createdBy: z.ZodString;
2006
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2037
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2007
2038
  filename: z.ZodString;
2008
2039
  originalFilename: z.ZodString;
2009
2040
  type: z.ZodString;
@@ -2117,7 +2148,7 @@ export declare const EventDocument: z.ZodObject<{
2117
2148
  addressLine3?: string | null | undefined;
2118
2149
  postcodeOrZip?: string | null | undefined;
2119
2150
  }>]>>;
2120
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2151
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2121
2152
  filename: z.ZodString;
2122
2153
  originalFilename: z.ZodString;
2123
2154
  type: z.ZodString;
@@ -2232,12 +2263,17 @@ export declare const EventDocument: z.ZodObject<{
2232
2263
  postcodeOrZip?: string | null | undefined;
2233
2264
  }>]>>>;
2234
2265
  createdAtLocation: z.ZodString;
2266
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2267
+ originalActionId: z.ZodOptional<z.ZodString>;
2235
2268
  }, {
2236
2269
  type: z.ZodLiteral<"NOTIFY">;
2237
2270
  }>, "strip", z.ZodTypeAny, {
2238
2271
  type: "NOTIFY";
2239
2272
  id: string;
2240
- data: Record<string, string | number | boolean | {
2273
+ status: "Rejected" | "Requested" | "Accepted";
2274
+ createdAt: string;
2275
+ createdBy: string;
2276
+ declaration: Record<string, string | number | boolean | {
2241
2277
  type: string;
2242
2278
  filename: string;
2243
2279
  originalFilename: string;
@@ -2275,10 +2311,8 @@ export declare const EventDocument: z.ZodObject<{
2275
2311
  filename: string;
2276
2312
  originalFilename: string;
2277
2313
  }[] | undefined>;
2278
- createdAt: string;
2279
- createdBy: string;
2280
2314
  createdAtLocation: string;
2281
- metadata?: Record<string, string | number | boolean | {
2315
+ annotation?: Record<string, string | number | boolean | {
2282
2316
  type: string;
2283
2317
  filename: string;
2284
2318
  originalFilename: string;
@@ -2316,10 +2350,14 @@ export declare const EventDocument: z.ZodObject<{
2316
2350
  filename: string;
2317
2351
  originalFilename: string;
2318
2352
  }[] | undefined> | undefined;
2353
+ originalActionId?: string | undefined;
2319
2354
  }, {
2320
2355
  type: "NOTIFY";
2321
2356
  id: string;
2322
- data: Record<string, string | number | boolean | {
2357
+ status: "Rejected" | "Requested" | "Accepted";
2358
+ createdAt: string;
2359
+ createdBy: string;
2360
+ declaration: Record<string, string | number | boolean | {
2323
2361
  type: string;
2324
2362
  filename: string;
2325
2363
  originalFilename: string;
@@ -2357,10 +2395,8 @@ export declare const EventDocument: z.ZodObject<{
2357
2395
  filename: string;
2358
2396
  originalFilename: string;
2359
2397
  }[] | undefined>;
2360
- createdAt: string;
2361
- createdBy: string;
2362
2398
  createdAtLocation: string;
2363
- metadata?: Record<string, string | number | boolean | {
2399
+ annotation?: Record<string, string | number | boolean | {
2364
2400
  type: string;
2365
2401
  filename: string;
2366
2402
  originalFilename: string;
@@ -2398,11 +2434,12 @@ export declare const EventDocument: z.ZodObject<{
2398
2434
  filename: string;
2399
2435
  originalFilename: string;
2400
2436
  }[] | undefined> | undefined;
2437
+ originalActionId?: string | undefined;
2401
2438
  }>, z.ZodObject<z.objectUtil.extendShape<{
2402
2439
  id: z.ZodString;
2403
2440
  createdAt: z.ZodString;
2404
2441
  createdBy: z.ZodString;
2405
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2442
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2406
2443
  filename: z.ZodString;
2407
2444
  originalFilename: z.ZodString;
2408
2445
  type: z.ZodString;
@@ -2516,7 +2553,7 @@ export declare const EventDocument: z.ZodObject<{
2516
2553
  addressLine3?: string | null | undefined;
2517
2554
  postcodeOrZip?: string | null | undefined;
2518
2555
  }>]>>;
2519
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2556
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2520
2557
  filename: z.ZodString;
2521
2558
  originalFilename: z.ZodString;
2522
2559
  type: z.ZodString;
@@ -2631,22 +2668,18 @@ export declare const EventDocument: z.ZodObject<{
2631
2668
  postcodeOrZip?: string | null | undefined;
2632
2669
  }>]>>>;
2633
2670
  createdAtLocation: z.ZodString;
2671
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2672
+ originalActionId: z.ZodOptional<z.ZodString>;
2634
2673
  }, {
2635
2674
  type: z.ZodLiteral<"REGISTER">;
2636
- identifiers: z.ZodObject<{
2637
- trackingId: z.ZodString;
2638
- registrationNumber: z.ZodString;
2639
- }, "strip", z.ZodTypeAny, {
2640
- trackingId: string;
2641
- registrationNumber: string;
2642
- }, {
2643
- trackingId: string;
2644
- registrationNumber: string;
2645
- }>;
2675
+ registrationNumber: z.ZodOptional<z.ZodString>;
2646
2676
  }>, "strip", z.ZodTypeAny, {
2647
2677
  type: "REGISTER";
2648
2678
  id: string;
2649
- data: Record<string, string | number | boolean | {
2679
+ status: "Rejected" | "Requested" | "Accepted";
2680
+ createdAt: string;
2681
+ createdBy: string;
2682
+ declaration: Record<string, string | number | boolean | {
2650
2683
  type: string;
2651
2684
  filename: string;
2652
2685
  originalFilename: string;
@@ -2684,14 +2717,8 @@ export declare const EventDocument: z.ZodObject<{
2684
2717
  filename: string;
2685
2718
  originalFilename: string;
2686
2719
  }[] | undefined>;
2687
- createdAt: string;
2688
- createdBy: string;
2689
2720
  createdAtLocation: string;
2690
- identifiers: {
2691
- trackingId: string;
2692
- registrationNumber: string;
2693
- };
2694
- metadata?: Record<string, string | number | boolean | {
2721
+ annotation?: Record<string, string | number | boolean | {
2695
2722
  type: string;
2696
2723
  filename: string;
2697
2724
  originalFilename: string;
@@ -2729,10 +2756,15 @@ export declare const EventDocument: z.ZodObject<{
2729
2756
  filename: string;
2730
2757
  originalFilename: string;
2731
2758
  }[] | undefined> | undefined;
2759
+ originalActionId?: string | undefined;
2760
+ registrationNumber?: string | undefined;
2732
2761
  }, {
2733
2762
  type: "REGISTER";
2734
2763
  id: string;
2735
- data: Record<string, string | number | boolean | {
2764
+ status: "Rejected" | "Requested" | "Accepted";
2765
+ createdAt: string;
2766
+ createdBy: string;
2767
+ declaration: Record<string, string | number | boolean | {
2736
2768
  type: string;
2737
2769
  filename: string;
2738
2770
  originalFilename: string;
@@ -2770,14 +2802,8 @@ export declare const EventDocument: z.ZodObject<{
2770
2802
  filename: string;
2771
2803
  originalFilename: string;
2772
2804
  }[] | undefined>;
2773
- createdAt: string;
2774
- createdBy: string;
2775
2805
  createdAtLocation: string;
2776
- identifiers: {
2777
- trackingId: string;
2778
- registrationNumber: string;
2779
- };
2780
- metadata?: Record<string, string | number | boolean | {
2806
+ annotation?: Record<string, string | number | boolean | {
2781
2807
  type: string;
2782
2808
  filename: string;
2783
2809
  originalFilename: string;
@@ -2815,11 +2841,13 @@ export declare const EventDocument: z.ZodObject<{
2815
2841
  filename: string;
2816
2842
  originalFilename: string;
2817
2843
  }[] | undefined> | undefined;
2844
+ originalActionId?: string | undefined;
2845
+ registrationNumber?: string | undefined;
2818
2846
  }>, z.ZodObject<z.objectUtil.extendShape<{
2819
2847
  id: z.ZodString;
2820
2848
  createdAt: z.ZodString;
2821
2849
  createdBy: z.ZodString;
2822
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2850
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2823
2851
  filename: z.ZodString;
2824
2852
  originalFilename: z.ZodString;
2825
2853
  type: z.ZodString;
@@ -2933,7 +2961,7 @@ export declare const EventDocument: z.ZodObject<{
2933
2961
  addressLine3?: string | null | undefined;
2934
2962
  postcodeOrZip?: string | null | undefined;
2935
2963
  }>]>>;
2936
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2964
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2937
2965
  filename: z.ZodString;
2938
2966
  originalFilename: z.ZodString;
2939
2967
  type: z.ZodString;
@@ -3048,12 +3076,17 @@ export declare const EventDocument: z.ZodObject<{
3048
3076
  postcodeOrZip?: string | null | undefined;
3049
3077
  }>]>>>;
3050
3078
  createdAtLocation: z.ZodString;
3079
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3080
+ originalActionId: z.ZodOptional<z.ZodString>;
3051
3081
  }, {
3052
3082
  type: z.ZodLiteral<"DECLARE">;
3053
3083
  }>, "strip", z.ZodTypeAny, {
3054
3084
  type: "DECLARE";
3055
3085
  id: string;
3056
- data: Record<string, string | number | boolean | {
3086
+ status: "Rejected" | "Requested" | "Accepted";
3087
+ createdAt: string;
3088
+ createdBy: string;
3089
+ declaration: Record<string, string | number | boolean | {
3057
3090
  type: string;
3058
3091
  filename: string;
3059
3092
  originalFilename: string;
@@ -3091,10 +3124,8 @@ export declare const EventDocument: z.ZodObject<{
3091
3124
  filename: string;
3092
3125
  originalFilename: string;
3093
3126
  }[] | undefined>;
3094
- createdAt: string;
3095
- createdBy: string;
3096
3127
  createdAtLocation: string;
3097
- metadata?: Record<string, string | number | boolean | {
3128
+ annotation?: Record<string, string | number | boolean | {
3098
3129
  type: string;
3099
3130
  filename: string;
3100
3131
  originalFilename: string;
@@ -3132,10 +3163,14 @@ export declare const EventDocument: z.ZodObject<{
3132
3163
  filename: string;
3133
3164
  originalFilename: string;
3134
3165
  }[] | undefined> | undefined;
3166
+ originalActionId?: string | undefined;
3135
3167
  }, {
3136
3168
  type: "DECLARE";
3137
3169
  id: string;
3138
- data: Record<string, string | number | boolean | {
3170
+ status: "Rejected" | "Requested" | "Accepted";
3171
+ createdAt: string;
3172
+ createdBy: string;
3173
+ declaration: Record<string, string | number | boolean | {
3139
3174
  type: string;
3140
3175
  filename: string;
3141
3176
  originalFilename: string;
@@ -3173,10 +3208,8 @@ export declare const EventDocument: z.ZodObject<{
3173
3208
  filename: string;
3174
3209
  originalFilename: string;
3175
3210
  }[] | undefined>;
3176
- createdAt: string;
3177
- createdBy: string;
3178
3211
  createdAtLocation: string;
3179
- metadata?: Record<string, string | number | boolean | {
3212
+ annotation?: Record<string, string | number | boolean | {
3180
3213
  type: string;
3181
3214
  filename: string;
3182
3215
  originalFilename: string;
@@ -3214,11 +3247,12 @@ export declare const EventDocument: z.ZodObject<{
3214
3247
  filename: string;
3215
3248
  originalFilename: string;
3216
3249
  }[] | undefined> | undefined;
3250
+ originalActionId?: string | undefined;
3217
3251
  }>, z.ZodObject<z.objectUtil.extendShape<{
3218
3252
  id: z.ZodString;
3219
3253
  createdAt: z.ZodString;
3220
3254
  createdBy: z.ZodString;
3221
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3255
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3222
3256
  filename: z.ZodString;
3223
3257
  originalFilename: z.ZodString;
3224
3258
  type: z.ZodString;
@@ -3332,7 +3366,7 @@ export declare const EventDocument: z.ZodObject<{
3332
3366
  addressLine3?: string | null | undefined;
3333
3367
  postcodeOrZip?: string | null | undefined;
3334
3368
  }>]>>;
3335
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3369
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3336
3370
  filename: z.ZodString;
3337
3371
  originalFilename: z.ZodString;
3338
3372
  type: z.ZodString;
@@ -3447,13 +3481,18 @@ export declare const EventDocument: z.ZodObject<{
3447
3481
  postcodeOrZip?: string | null | undefined;
3448
3482
  }>]>>>;
3449
3483
  createdAtLocation: z.ZodString;
3484
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3485
+ originalActionId: z.ZodOptional<z.ZodString>;
3450
3486
  }, {
3451
3487
  type: z.ZodLiteral<"ASSIGN">;
3452
3488
  assignedTo: z.ZodString;
3453
3489
  }>, "strip", z.ZodTypeAny, {
3454
3490
  type: "ASSIGN";
3455
3491
  id: string;
3456
- data: Record<string, string | number | boolean | {
3492
+ status: "Rejected" | "Requested" | "Accepted";
3493
+ createdAt: string;
3494
+ createdBy: string;
3495
+ declaration: Record<string, string | number | boolean | {
3457
3496
  type: string;
3458
3497
  filename: string;
3459
3498
  originalFilename: string;
@@ -3491,11 +3530,9 @@ export declare const EventDocument: z.ZodObject<{
3491
3530
  filename: string;
3492
3531
  originalFilename: string;
3493
3532
  }[] | undefined>;
3494
- createdAt: string;
3495
- createdBy: string;
3496
3533
  createdAtLocation: string;
3497
3534
  assignedTo: string;
3498
- metadata?: Record<string, string | number | boolean | {
3535
+ annotation?: Record<string, string | number | boolean | {
3499
3536
  type: string;
3500
3537
  filename: string;
3501
3538
  originalFilename: string;
@@ -3533,10 +3570,14 @@ export declare const EventDocument: z.ZodObject<{
3533
3570
  filename: string;
3534
3571
  originalFilename: string;
3535
3572
  }[] | undefined> | undefined;
3573
+ originalActionId?: string | undefined;
3536
3574
  }, {
3537
3575
  type: "ASSIGN";
3538
3576
  id: string;
3539
- data: Record<string, string | number | boolean | {
3577
+ status: "Rejected" | "Requested" | "Accepted";
3578
+ createdAt: string;
3579
+ createdBy: string;
3580
+ declaration: Record<string, string | number | boolean | {
3540
3581
  type: string;
3541
3582
  filename: string;
3542
3583
  originalFilename: string;
@@ -3574,11 +3615,9 @@ export declare const EventDocument: z.ZodObject<{
3574
3615
  filename: string;
3575
3616
  originalFilename: string;
3576
3617
  }[] | undefined>;
3577
- createdAt: string;
3578
- createdBy: string;
3579
3618
  createdAtLocation: string;
3580
3619
  assignedTo: string;
3581
- metadata?: Record<string, string | number | boolean | {
3620
+ annotation?: Record<string, string | number | boolean | {
3582
3621
  type: string;
3583
3622
  filename: string;
3584
3623
  originalFilename: string;
@@ -3616,11 +3655,12 @@ export declare const EventDocument: z.ZodObject<{
3616
3655
  filename: string;
3617
3656
  originalFilename: string;
3618
3657
  }[] | undefined> | undefined;
3658
+ originalActionId?: string | undefined;
3619
3659
  }>, z.ZodObject<z.objectUtil.extendShape<{
3620
3660
  id: z.ZodString;
3621
3661
  createdAt: z.ZodString;
3622
3662
  createdBy: z.ZodString;
3623
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3663
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3624
3664
  filename: z.ZodString;
3625
3665
  originalFilename: z.ZodString;
3626
3666
  type: z.ZodString;
@@ -3734,7 +3774,7 @@ export declare const EventDocument: z.ZodObject<{
3734
3774
  addressLine3?: string | null | undefined;
3735
3775
  postcodeOrZip?: string | null | undefined;
3736
3776
  }>]>>;
3737
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3777
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3738
3778
  filename: z.ZodString;
3739
3779
  originalFilename: z.ZodString;
3740
3780
  type: z.ZodString;
@@ -3849,12 +3889,17 @@ export declare const EventDocument: z.ZodObject<{
3849
3889
  postcodeOrZip?: string | null | undefined;
3850
3890
  }>]>>>;
3851
3891
  createdAtLocation: z.ZodString;
3892
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3893
+ originalActionId: z.ZodOptional<z.ZodString>;
3852
3894
  }, {
3853
3895
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
3854
3896
  }>, "strip", z.ZodTypeAny, {
3855
3897
  type: "REQUEST_CORRECTION";
3856
3898
  id: string;
3857
- data: Record<string, string | number | boolean | {
3899
+ status: "Rejected" | "Requested" | "Accepted";
3900
+ createdAt: string;
3901
+ createdBy: string;
3902
+ declaration: Record<string, string | number | boolean | {
3858
3903
  type: string;
3859
3904
  filename: string;
3860
3905
  originalFilename: string;
@@ -3892,10 +3937,8 @@ export declare const EventDocument: z.ZodObject<{
3892
3937
  filename: string;
3893
3938
  originalFilename: string;
3894
3939
  }[] | undefined>;
3895
- createdAt: string;
3896
- createdBy: string;
3897
3940
  createdAtLocation: string;
3898
- metadata?: Record<string, string | number | boolean | {
3941
+ annotation?: Record<string, string | number | boolean | {
3899
3942
  type: string;
3900
3943
  filename: string;
3901
3944
  originalFilename: string;
@@ -3933,10 +3976,14 @@ export declare const EventDocument: z.ZodObject<{
3933
3976
  filename: string;
3934
3977
  originalFilename: string;
3935
3978
  }[] | undefined> | undefined;
3979
+ originalActionId?: string | undefined;
3936
3980
  }, {
3937
3981
  type: "REQUEST_CORRECTION";
3938
3982
  id: string;
3939
- data: Record<string, string | number | boolean | {
3983
+ status: "Rejected" | "Requested" | "Accepted";
3984
+ createdAt: string;
3985
+ createdBy: string;
3986
+ declaration: Record<string, string | number | boolean | {
3940
3987
  type: string;
3941
3988
  filename: string;
3942
3989
  originalFilename: string;
@@ -3974,10 +4021,8 @@ export declare const EventDocument: z.ZodObject<{
3974
4021
  filename: string;
3975
4022
  originalFilename: string;
3976
4023
  }[] | undefined>;
3977
- createdAt: string;
3978
- createdBy: string;
3979
4024
  createdAtLocation: string;
3980
- metadata?: Record<string, string | number | boolean | {
4025
+ annotation?: Record<string, string | number | boolean | {
3981
4026
  type: string;
3982
4027
  filename: string;
3983
4028
  originalFilename: string;
@@ -4015,11 +4060,12 @@ export declare const EventDocument: z.ZodObject<{
4015
4060
  filename: string;
4016
4061
  originalFilename: string;
4017
4062
  }[] | undefined> | undefined;
4063
+ originalActionId?: string | undefined;
4018
4064
  }>, z.ZodObject<z.objectUtil.extendShape<{
4019
4065
  id: z.ZodString;
4020
4066
  createdAt: z.ZodString;
4021
4067
  createdBy: z.ZodString;
4022
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4068
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4023
4069
  filename: z.ZodString;
4024
4070
  originalFilename: z.ZodString;
4025
4071
  type: z.ZodString;
@@ -4133,7 +4179,7 @@ export declare const EventDocument: z.ZodObject<{
4133
4179
  addressLine3?: string | null | undefined;
4134
4180
  postcodeOrZip?: string | null | undefined;
4135
4181
  }>]>>;
4136
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4182
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4137
4183
  filename: z.ZodString;
4138
4184
  originalFilename: z.ZodString;
4139
4185
  type: z.ZodString;
@@ -4248,13 +4294,18 @@ export declare const EventDocument: z.ZodObject<{
4248
4294
  postcodeOrZip?: string | null | undefined;
4249
4295
  }>]>>>;
4250
4296
  createdAtLocation: z.ZodString;
4297
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4298
+ originalActionId: z.ZodOptional<z.ZodString>;
4251
4299
  }, {
4252
4300
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
4253
4301
  requestId: z.ZodString;
4254
4302
  }>, "strip", z.ZodTypeAny, {
4255
4303
  type: "APPROVE_CORRECTION";
4256
4304
  id: string;
4257
- data: Record<string, string | number | boolean | {
4305
+ status: "Rejected" | "Requested" | "Accepted";
4306
+ createdAt: string;
4307
+ createdBy: string;
4308
+ declaration: Record<string, string | number | boolean | {
4258
4309
  type: string;
4259
4310
  filename: string;
4260
4311
  originalFilename: string;
@@ -4292,11 +4343,9 @@ export declare const EventDocument: z.ZodObject<{
4292
4343
  filename: string;
4293
4344
  originalFilename: string;
4294
4345
  }[] | undefined>;
4295
- createdAt: string;
4296
- createdBy: string;
4297
4346
  createdAtLocation: string;
4298
4347
  requestId: string;
4299
- metadata?: Record<string, string | number | boolean | {
4348
+ annotation?: Record<string, string | number | boolean | {
4300
4349
  type: string;
4301
4350
  filename: string;
4302
4351
  originalFilename: string;
@@ -4334,10 +4383,14 @@ export declare const EventDocument: z.ZodObject<{
4334
4383
  filename: string;
4335
4384
  originalFilename: string;
4336
4385
  }[] | undefined> | undefined;
4386
+ originalActionId?: string | undefined;
4337
4387
  }, {
4338
4388
  type: "APPROVE_CORRECTION";
4339
4389
  id: string;
4340
- data: Record<string, string | number | boolean | {
4390
+ status: "Rejected" | "Requested" | "Accepted";
4391
+ createdAt: string;
4392
+ createdBy: string;
4393
+ declaration: Record<string, string | number | boolean | {
4341
4394
  type: string;
4342
4395
  filename: string;
4343
4396
  originalFilename: string;
@@ -4375,11 +4428,9 @@ export declare const EventDocument: z.ZodObject<{
4375
4428
  filename: string;
4376
4429
  originalFilename: string;
4377
4430
  }[] | undefined>;
4378
- createdAt: string;
4379
- createdBy: string;
4380
4431
  createdAtLocation: string;
4381
4432
  requestId: string;
4382
- metadata?: Record<string, string | number | boolean | {
4433
+ annotation?: Record<string, string | number | boolean | {
4383
4434
  type: string;
4384
4435
  filename: string;
4385
4436
  originalFilename: string;
@@ -4417,11 +4468,12 @@ export declare const EventDocument: z.ZodObject<{
4417
4468
  filename: string;
4418
4469
  originalFilename: string;
4419
4470
  }[] | undefined> | undefined;
4471
+ originalActionId?: string | undefined;
4420
4472
  }>, z.ZodObject<z.objectUtil.extendShape<{
4421
4473
  id: z.ZodString;
4422
4474
  createdAt: z.ZodString;
4423
4475
  createdBy: z.ZodString;
4424
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4476
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4425
4477
  filename: z.ZodString;
4426
4478
  originalFilename: z.ZodString;
4427
4479
  type: z.ZodString;
@@ -4535,7 +4587,7 @@ export declare const EventDocument: z.ZodObject<{
4535
4587
  addressLine3?: string | null | undefined;
4536
4588
  postcodeOrZip?: string | null | undefined;
4537
4589
  }>]>>;
4538
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4590
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4539
4591
  filename: z.ZodString;
4540
4592
  originalFilename: z.ZodString;
4541
4593
  type: z.ZodString;
@@ -4650,13 +4702,18 @@ export declare const EventDocument: z.ZodObject<{
4650
4702
  postcodeOrZip?: string | null | undefined;
4651
4703
  }>]>>>;
4652
4704
  createdAtLocation: z.ZodString;
4705
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4706
+ originalActionId: z.ZodOptional<z.ZodString>;
4653
4707
  }, {
4654
4708
  type: z.ZodLiteral<"REJECT_CORRECTION">;
4655
4709
  requestId: z.ZodString;
4656
4710
  }>, "strip", z.ZodTypeAny, {
4657
4711
  type: "REJECT_CORRECTION";
4658
4712
  id: string;
4659
- data: Record<string, string | number | boolean | {
4713
+ status: "Rejected" | "Requested" | "Accepted";
4714
+ createdAt: string;
4715
+ createdBy: string;
4716
+ declaration: Record<string, string | number | boolean | {
4660
4717
  type: string;
4661
4718
  filename: string;
4662
4719
  originalFilename: string;
@@ -4694,11 +4751,9 @@ export declare const EventDocument: z.ZodObject<{
4694
4751
  filename: string;
4695
4752
  originalFilename: string;
4696
4753
  }[] | undefined>;
4697
- createdAt: string;
4698
- createdBy: string;
4699
4754
  createdAtLocation: string;
4700
4755
  requestId: string;
4701
- metadata?: Record<string, string | number | boolean | {
4756
+ annotation?: Record<string, string | number | boolean | {
4702
4757
  type: string;
4703
4758
  filename: string;
4704
4759
  originalFilename: string;
@@ -4736,10 +4791,14 @@ export declare const EventDocument: z.ZodObject<{
4736
4791
  filename: string;
4737
4792
  originalFilename: string;
4738
4793
  }[] | undefined> | undefined;
4794
+ originalActionId?: string | undefined;
4739
4795
  }, {
4740
4796
  type: "REJECT_CORRECTION";
4741
4797
  id: string;
4742
- data: Record<string, string | number | boolean | {
4798
+ status: "Rejected" | "Requested" | "Accepted";
4799
+ createdAt: string;
4800
+ createdBy: string;
4801
+ declaration: Record<string, string | number | boolean | {
4743
4802
  type: string;
4744
4803
  filename: string;
4745
4804
  originalFilename: string;
@@ -4777,11 +4836,9 @@ export declare const EventDocument: z.ZodObject<{
4777
4836
  filename: string;
4778
4837
  originalFilename: string;
4779
4838
  }[] | undefined>;
4780
- createdAt: string;
4781
- createdBy: string;
4782
4839
  createdAtLocation: string;
4783
4840
  requestId: string;
4784
- metadata?: Record<string, string | number | boolean | {
4841
+ annotation?: Record<string, string | number | boolean | {
4785
4842
  type: string;
4786
4843
  filename: string;
4787
4844
  originalFilename: string;
@@ -4819,11 +4876,12 @@ export declare const EventDocument: z.ZodObject<{
4819
4876
  filename: string;
4820
4877
  originalFilename: string;
4821
4878
  }[] | undefined> | undefined;
4879
+ originalActionId?: string | undefined;
4822
4880
  }>, z.ZodObject<z.objectUtil.extendShape<{
4823
4881
  id: z.ZodString;
4824
4882
  createdAt: z.ZodString;
4825
4883
  createdBy: z.ZodString;
4826
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4884
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4827
4885
  filename: z.ZodString;
4828
4886
  originalFilename: z.ZodString;
4829
4887
  type: z.ZodString;
@@ -4937,7 +4995,7 @@ export declare const EventDocument: z.ZodObject<{
4937
4995
  addressLine3?: string | null | undefined;
4938
4996
  postcodeOrZip?: string | null | undefined;
4939
4997
  }>]>>;
4940
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4998
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4941
4999
  filename: z.ZodString;
4942
5000
  originalFilename: z.ZodString;
4943
5001
  type: z.ZodString;
@@ -5052,12 +5110,17 @@ export declare const EventDocument: z.ZodObject<{
5052
5110
  postcodeOrZip?: string | null | undefined;
5053
5111
  }>]>>>;
5054
5112
  createdAtLocation: z.ZodString;
5113
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5114
+ originalActionId: z.ZodOptional<z.ZodString>;
5055
5115
  }, {
5056
5116
  type: z.ZodLiteral<"UNASSIGN">;
5057
5117
  }>, "strip", z.ZodTypeAny, {
5058
5118
  type: "UNASSIGN";
5059
5119
  id: string;
5060
- data: Record<string, string | number | boolean | {
5120
+ status: "Rejected" | "Requested" | "Accepted";
5121
+ createdAt: string;
5122
+ createdBy: string;
5123
+ declaration: Record<string, string | number | boolean | {
5061
5124
  type: string;
5062
5125
  filename: string;
5063
5126
  originalFilename: string;
@@ -5095,10 +5158,8 @@ export declare const EventDocument: z.ZodObject<{
5095
5158
  filename: string;
5096
5159
  originalFilename: string;
5097
5160
  }[] | undefined>;
5098
- createdAt: string;
5099
- createdBy: string;
5100
5161
  createdAtLocation: string;
5101
- metadata?: Record<string, string | number | boolean | {
5162
+ annotation?: Record<string, string | number | boolean | {
5102
5163
  type: string;
5103
5164
  filename: string;
5104
5165
  originalFilename: string;
@@ -5136,10 +5197,14 @@ export declare const EventDocument: z.ZodObject<{
5136
5197
  filename: string;
5137
5198
  originalFilename: string;
5138
5199
  }[] | undefined> | undefined;
5200
+ originalActionId?: string | undefined;
5139
5201
  }, {
5140
5202
  type: "UNASSIGN";
5141
5203
  id: string;
5142
- data: Record<string, string | number | boolean | {
5204
+ status: "Rejected" | "Requested" | "Accepted";
5205
+ createdAt: string;
5206
+ createdBy: string;
5207
+ declaration: Record<string, string | number | boolean | {
5143
5208
  type: string;
5144
5209
  filename: string;
5145
5210
  originalFilename: string;
@@ -5177,10 +5242,8 @@ export declare const EventDocument: z.ZodObject<{
5177
5242
  filename: string;
5178
5243
  originalFilename: string;
5179
5244
  }[] | undefined>;
5180
- createdAt: string;
5181
- createdBy: string;
5182
5245
  createdAtLocation: string;
5183
- metadata?: Record<string, string | number | boolean | {
5246
+ annotation?: Record<string, string | number | boolean | {
5184
5247
  type: string;
5185
5248
  filename: string;
5186
5249
  originalFilename: string;
@@ -5218,11 +5281,12 @@ export declare const EventDocument: z.ZodObject<{
5218
5281
  filename: string;
5219
5282
  originalFilename: string;
5220
5283
  }[] | undefined> | undefined;
5284
+ originalActionId?: string | undefined;
5221
5285
  }>, z.ZodObject<z.objectUtil.extendShape<{
5222
5286
  id: z.ZodString;
5223
5287
  createdAt: z.ZodString;
5224
5288
  createdBy: z.ZodString;
5225
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5289
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5226
5290
  filename: z.ZodString;
5227
5291
  originalFilename: z.ZodString;
5228
5292
  type: z.ZodString;
@@ -5336,7 +5400,7 @@ export declare const EventDocument: z.ZodObject<{
5336
5400
  addressLine3?: string | null | undefined;
5337
5401
  postcodeOrZip?: string | null | undefined;
5338
5402
  }>]>>;
5339
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5403
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5340
5404
  filename: z.ZodString;
5341
5405
  originalFilename: z.ZodString;
5342
5406
  type: z.ZodString;
@@ -5451,12 +5515,17 @@ export declare const EventDocument: z.ZodObject<{
5451
5515
  postcodeOrZip?: string | null | undefined;
5452
5516
  }>]>>>;
5453
5517
  createdAtLocation: z.ZodString;
5518
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5519
+ originalActionId: z.ZodOptional<z.ZodString>;
5454
5520
  }, {
5455
5521
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
5456
5522
  }>, "strip", z.ZodTypeAny, {
5457
5523
  type: "PRINT_CERTIFICATE";
5458
5524
  id: string;
5459
- data: Record<string, string | number | boolean | {
5525
+ status: "Rejected" | "Requested" | "Accepted";
5526
+ createdAt: string;
5527
+ createdBy: string;
5528
+ declaration: Record<string, string | number | boolean | {
5460
5529
  type: string;
5461
5530
  filename: string;
5462
5531
  originalFilename: string;
@@ -5494,10 +5563,8 @@ export declare const EventDocument: z.ZodObject<{
5494
5563
  filename: string;
5495
5564
  originalFilename: string;
5496
5565
  }[] | undefined>;
5497
- createdAt: string;
5498
- createdBy: string;
5499
5566
  createdAtLocation: string;
5500
- metadata?: Record<string, string | number | boolean | {
5567
+ annotation?: Record<string, string | number | boolean | {
5501
5568
  type: string;
5502
5569
  filename: string;
5503
5570
  originalFilename: string;
@@ -5535,10 +5602,14 @@ export declare const EventDocument: z.ZodObject<{
5535
5602
  filename: string;
5536
5603
  originalFilename: string;
5537
5604
  }[] | undefined> | undefined;
5605
+ originalActionId?: string | undefined;
5538
5606
  }, {
5539
5607
  type: "PRINT_CERTIFICATE";
5540
5608
  id: string;
5541
- data: Record<string, string | number | boolean | {
5609
+ status: "Rejected" | "Requested" | "Accepted";
5610
+ createdAt: string;
5611
+ createdBy: string;
5612
+ declaration: Record<string, string | number | boolean | {
5542
5613
  type: string;
5543
5614
  filename: string;
5544
5615
  originalFilename: string;
@@ -5576,10 +5647,8 @@ export declare const EventDocument: z.ZodObject<{
5576
5647
  filename: string;
5577
5648
  originalFilename: string;
5578
5649
  }[] | undefined>;
5579
- createdAt: string;
5580
- createdBy: string;
5581
5650
  createdAtLocation: string;
5582
- metadata?: Record<string, string | number | boolean | {
5651
+ annotation?: Record<string, string | number | boolean | {
5583
5652
  type: string;
5584
5653
  filename: string;
5585
5654
  originalFilename: string;
@@ -5617,11 +5686,12 @@ export declare const EventDocument: z.ZodObject<{
5617
5686
  filename: string;
5618
5687
  originalFilename: string;
5619
5688
  }[] | undefined> | undefined;
5689
+ originalActionId?: string | undefined;
5620
5690
  }>, z.ZodObject<z.objectUtil.extendShape<{
5621
5691
  id: z.ZodString;
5622
5692
  createdAt: z.ZodString;
5623
5693
  createdBy: z.ZodString;
5624
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5694
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5625
5695
  filename: z.ZodString;
5626
5696
  originalFilename: z.ZodString;
5627
5697
  type: z.ZodString;
@@ -5735,7 +5805,7 @@ export declare const EventDocument: z.ZodObject<{
5735
5805
  addressLine3?: string | null | undefined;
5736
5806
  postcodeOrZip?: string | null | undefined;
5737
5807
  }>]>>;
5738
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5808
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5739
5809
  filename: z.ZodString;
5740
5810
  originalFilename: z.ZodString;
5741
5811
  type: z.ZodString;
@@ -5850,12 +5920,17 @@ export declare const EventDocument: z.ZodObject<{
5850
5920
  postcodeOrZip?: string | null | undefined;
5851
5921
  }>]>>>;
5852
5922
  createdAtLocation: z.ZodString;
5923
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5924
+ originalActionId: z.ZodOptional<z.ZodString>;
5853
5925
  }, {
5854
- type: z.ZodLiteral<"CUSTOM">;
5926
+ type: z.ZodLiteral<"READ">;
5855
5927
  }>, "strip", z.ZodTypeAny, {
5856
- type: "CUSTOM";
5928
+ type: "READ";
5857
5929
  id: string;
5858
- data: Record<string, string | number | boolean | {
5930
+ status: "Rejected" | "Requested" | "Accepted";
5931
+ createdAt: string;
5932
+ createdBy: string;
5933
+ declaration: Record<string, string | number | boolean | {
5859
5934
  type: string;
5860
5935
  filename: string;
5861
5936
  originalFilename: string;
@@ -5893,10 +5968,8 @@ export declare const EventDocument: z.ZodObject<{
5893
5968
  filename: string;
5894
5969
  originalFilename: string;
5895
5970
  }[] | undefined>;
5896
- createdAt: string;
5897
- createdBy: string;
5898
5971
  createdAtLocation: string;
5899
- metadata?: Record<string, string | number | boolean | {
5972
+ annotation?: Record<string, string | number | boolean | {
5900
5973
  type: string;
5901
5974
  filename: string;
5902
5975
  originalFilename: string;
@@ -5934,10 +6007,14 @@ export declare const EventDocument: z.ZodObject<{
5934
6007
  filename: string;
5935
6008
  originalFilename: string;
5936
6009
  }[] | undefined> | undefined;
6010
+ originalActionId?: string | undefined;
5937
6011
  }, {
5938
- type: "CUSTOM";
6012
+ type: "READ";
5939
6013
  id: string;
5940
- data: Record<string, string | number | boolean | {
6014
+ status: "Rejected" | "Requested" | "Accepted";
6015
+ createdAt: string;
6016
+ createdBy: string;
6017
+ declaration: Record<string, string | number | boolean | {
5941
6018
  type: string;
5942
6019
  filename: string;
5943
6020
  originalFilename: string;
@@ -5975,10 +6052,8 @@ export declare const EventDocument: z.ZodObject<{
5975
6052
  filename: string;
5976
6053
  originalFilename: string;
5977
6054
  }[] | undefined>;
5978
- createdAt: string;
5979
- createdBy: string;
5980
6055
  createdAtLocation: string;
5981
- metadata?: Record<string, string | number | boolean | {
6056
+ annotation?: Record<string, string | number | boolean | {
5982
6057
  type: string;
5983
6058
  filename: string;
5984
6059
  originalFilename: string;
@@ -6016,18 +6091,272 @@ export declare const EventDocument: z.ZodObject<{
6016
6091
  filename: string;
6017
6092
  originalFilename: string;
6018
6093
  }[] | undefined> | undefined;
6094
+ originalActionId?: string | undefined;
6095
+ }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6096
+ id: z.ZodString;
6097
+ createdAt: z.ZodString;
6098
+ createdBy: z.ZodString;
6099
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6100
+ filename: z.ZodString;
6101
+ originalFilename: z.ZodString;
6102
+ type: z.ZodString;
6103
+ }, "strip", z.ZodTypeAny, {
6104
+ type: string;
6105
+ filename: string;
6106
+ originalFilename: string;
6107
+ }, {
6108
+ type: string;
6109
+ filename: string;
6110
+ originalFilename: string;
6111
+ }>, z.ZodArray<z.ZodObject<{
6112
+ filename: z.ZodString;
6113
+ originalFilename: z.ZodString;
6114
+ type: z.ZodString;
6115
+ option: z.ZodString;
6116
+ }, "strip", z.ZodTypeAny, {
6117
+ type: string;
6118
+ option: string;
6119
+ filename: string;
6120
+ originalFilename: string;
6121
+ }, {
6122
+ type: string;
6123
+ option: string;
6124
+ filename: string;
6125
+ originalFilename: string;
6126
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6127
+ country: z.ZodString;
6128
+ addressType: z.ZodLiteral<"DOMESTIC">;
6129
+ province: z.ZodString;
6130
+ district: z.ZodString;
6131
+ }, {
6132
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6133
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6134
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6135
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6136
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6137
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6138
+ }>, "strip", z.ZodTypeAny, {
6139
+ country: string;
6140
+ district: string;
6141
+ addressType: "DOMESTIC";
6142
+ province: string;
6143
+ urbanOrRural: "URBAN";
6144
+ number?: string | null | undefined;
6145
+ town?: string | null | undefined;
6146
+ residentialArea?: string | null | undefined;
6147
+ street?: string | null | undefined;
6148
+ zipCode?: string | null | undefined;
6149
+ }, {
6150
+ country: string;
6151
+ district: string;
6152
+ addressType: "DOMESTIC";
6153
+ province: string;
6154
+ urbanOrRural: "URBAN";
6155
+ number?: string | null | undefined;
6156
+ town?: string | null | undefined;
6157
+ residentialArea?: string | null | undefined;
6158
+ street?: string | null | undefined;
6159
+ zipCode?: string | null | undefined;
6160
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6161
+ country: z.ZodString;
6162
+ addressType: z.ZodLiteral<"DOMESTIC">;
6163
+ province: z.ZodString;
6164
+ district: z.ZodString;
6165
+ }, {
6166
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6167
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6168
+ }>, "strip", z.ZodTypeAny, {
6169
+ country: string;
6170
+ district: string;
6171
+ addressType: "DOMESTIC";
6172
+ province: string;
6173
+ urbanOrRural: "RURAL";
6174
+ village?: string | null | undefined;
6175
+ }, {
6176
+ country: string;
6177
+ district: string;
6178
+ addressType: "DOMESTIC";
6179
+ province: string;
6180
+ urbanOrRural: "RURAL";
6181
+ village?: string | null | undefined;
6182
+ }>, z.ZodUndefined, z.ZodObject<{
6183
+ country: z.ZodString;
6184
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6185
+ state: z.ZodString;
6186
+ district2: z.ZodString;
6187
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6188
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6189
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6190
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6191
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6192
+ }, "strip", z.ZodTypeAny, {
6193
+ country: string;
6194
+ state: string;
6195
+ addressType: "INTERNATIONAL";
6196
+ district2: string;
6197
+ cityOrTown?: string | null | undefined;
6198
+ addressLine1?: string | null | undefined;
6199
+ addressLine2?: string | null | undefined;
6200
+ addressLine3?: string | null | undefined;
6201
+ postcodeOrZip?: string | null | undefined;
6202
+ }, {
6203
+ country: string;
6204
+ state: string;
6205
+ addressType: "INTERNATIONAL";
6206
+ district2: string;
6207
+ cityOrTown?: string | null | undefined;
6208
+ addressLine1?: string | null | undefined;
6209
+ addressLine2?: string | null | undefined;
6210
+ addressLine3?: string | null | undefined;
6211
+ postcodeOrZip?: string | null | undefined;
6212
+ }>]>>;
6213
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6214
+ filename: z.ZodString;
6215
+ originalFilename: z.ZodString;
6216
+ type: z.ZodString;
6217
+ }, "strip", z.ZodTypeAny, {
6218
+ type: string;
6219
+ filename: string;
6220
+ originalFilename: string;
6221
+ }, {
6222
+ type: string;
6223
+ filename: string;
6224
+ originalFilename: string;
6225
+ }>, z.ZodArray<z.ZodObject<{
6226
+ filename: z.ZodString;
6227
+ originalFilename: z.ZodString;
6228
+ type: z.ZodString;
6229
+ option: z.ZodString;
6230
+ }, "strip", z.ZodTypeAny, {
6231
+ type: string;
6232
+ option: string;
6233
+ filename: string;
6234
+ originalFilename: string;
6235
+ }, {
6236
+ type: string;
6237
+ option: string;
6238
+ filename: string;
6239
+ originalFilename: string;
6240
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6241
+ country: z.ZodString;
6242
+ addressType: z.ZodLiteral<"DOMESTIC">;
6243
+ province: z.ZodString;
6244
+ district: z.ZodString;
6245
+ }, {
6246
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6247
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6248
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6249
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6250
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6251
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6252
+ }>, "strip", z.ZodTypeAny, {
6253
+ country: string;
6254
+ district: string;
6255
+ addressType: "DOMESTIC";
6256
+ province: string;
6257
+ urbanOrRural: "URBAN";
6258
+ number?: string | null | undefined;
6259
+ town?: string | null | undefined;
6260
+ residentialArea?: string | null | undefined;
6261
+ street?: string | null | undefined;
6262
+ zipCode?: string | null | undefined;
6263
+ }, {
6264
+ country: string;
6265
+ district: string;
6266
+ addressType: "DOMESTIC";
6267
+ province: string;
6268
+ urbanOrRural: "URBAN";
6269
+ number?: string | null | undefined;
6270
+ town?: string | null | undefined;
6271
+ residentialArea?: string | null | undefined;
6272
+ street?: string | null | undefined;
6273
+ zipCode?: string | null | undefined;
6274
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6275
+ country: z.ZodString;
6276
+ addressType: z.ZodLiteral<"DOMESTIC">;
6277
+ province: z.ZodString;
6278
+ district: z.ZodString;
6279
+ }, {
6280
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6281
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6282
+ }>, "strip", z.ZodTypeAny, {
6283
+ country: string;
6284
+ district: string;
6285
+ addressType: "DOMESTIC";
6286
+ province: string;
6287
+ urbanOrRural: "RURAL";
6288
+ village?: string | null | undefined;
6289
+ }, {
6290
+ country: string;
6291
+ district: string;
6292
+ addressType: "DOMESTIC";
6293
+ province: string;
6294
+ urbanOrRural: "RURAL";
6295
+ village?: string | null | undefined;
6296
+ }>, z.ZodUndefined, z.ZodObject<{
6297
+ country: z.ZodString;
6298
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6299
+ state: z.ZodString;
6300
+ district2: z.ZodString;
6301
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6302
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6303
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6304
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6305
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6306
+ }, "strip", z.ZodTypeAny, {
6307
+ country: string;
6308
+ state: string;
6309
+ addressType: "INTERNATIONAL";
6310
+ district2: string;
6311
+ cityOrTown?: string | null | undefined;
6312
+ addressLine1?: string | null | undefined;
6313
+ addressLine2?: string | null | undefined;
6314
+ addressLine3?: string | null | undefined;
6315
+ postcodeOrZip?: string | null | undefined;
6316
+ }, {
6317
+ country: string;
6318
+ state: string;
6319
+ addressType: "INTERNATIONAL";
6320
+ district2: string;
6321
+ cityOrTown?: string | null | undefined;
6322
+ addressLine1?: string | null | undefined;
6323
+ addressLine2?: string | null | undefined;
6324
+ addressLine3?: string | null | undefined;
6325
+ postcodeOrZip?: string | null | undefined;
6326
+ }>]>>>;
6327
+ createdAtLocation: z.ZodString;
6328
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6329
+ originalActionId: z.ZodOptional<z.ZodString>;
6330
+ }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
6331
+ type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
6332
+ status: z.ZodLiteral<"Rejected">;
6333
+ }>, "strip", z.ZodTypeAny, {
6334
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6335
+ id: string;
6336
+ status: "Rejected";
6337
+ createdAt: string;
6338
+ originalActionId?: string | undefined;
6339
+ }, {
6340
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6341
+ id: string;
6342
+ status: "Rejected";
6343
+ createdAt: string;
6344
+ originalActionId?: string | undefined;
6019
6345
  }>]>, "many">;
6020
6346
  trackingId: z.ZodString;
6021
6347
  }, "strip", z.ZodTypeAny, {
6022
6348
  type: string;
6023
6349
  id: string;
6024
6350
  createdAt: string;
6025
- trackingId: string;
6026
6351
  updatedAt: string;
6352
+ updatedAtLocation: string;
6027
6353
  actions: ({
6028
6354
  type: "ASSIGN";
6029
6355
  id: string;
6030
- data: Record<string, string | number | boolean | {
6356
+ status: "Rejected" | "Requested" | "Accepted";
6357
+ createdAt: string;
6358
+ createdBy: string;
6359
+ declaration: Record<string, string | number | boolean | {
6031
6360
  type: string;
6032
6361
  filename: string;
6033
6362
  originalFilename: string;
@@ -6065,11 +6394,9 @@ export declare const EventDocument: z.ZodObject<{
6065
6394
  filename: string;
6066
6395
  originalFilename: string;
6067
6396
  }[] | undefined>;
6068
- createdAt: string;
6069
- createdBy: string;
6070
6397
  createdAtLocation: string;
6071
6398
  assignedTo: string;
6072
- metadata?: Record<string, string | number | boolean | {
6399
+ annotation?: Record<string, string | number | boolean | {
6073
6400
  type: string;
6074
6401
  filename: string;
6075
6402
  originalFilename: string;
@@ -6107,10 +6434,14 @@ export declare const EventDocument: z.ZodObject<{
6107
6434
  filename: string;
6108
6435
  originalFilename: string;
6109
6436
  }[] | undefined> | undefined;
6437
+ originalActionId?: string | undefined;
6110
6438
  } | {
6111
6439
  type: "UNASSIGN";
6112
6440
  id: string;
6113
- data: Record<string, string | number | boolean | {
6441
+ status: "Rejected" | "Requested" | "Accepted";
6442
+ createdAt: string;
6443
+ createdBy: string;
6444
+ declaration: Record<string, string | number | boolean | {
6114
6445
  type: string;
6115
6446
  filename: string;
6116
6447
  originalFilename: string;
@@ -6148,10 +6479,8 @@ export declare const EventDocument: z.ZodObject<{
6148
6479
  filename: string;
6149
6480
  originalFilename: string;
6150
6481
  }[] | undefined>;
6151
- createdAt: string;
6152
- createdBy: string;
6153
6482
  createdAtLocation: string;
6154
- metadata?: Record<string, string | number | boolean | {
6483
+ annotation?: Record<string, string | number | boolean | {
6155
6484
  type: string;
6156
6485
  filename: string;
6157
6486
  originalFilename: string;
@@ -6189,10 +6518,14 @@ export declare const EventDocument: z.ZodObject<{
6189
6518
  filename: string;
6190
6519
  originalFilename: string;
6191
6520
  }[] | undefined> | undefined;
6521
+ originalActionId?: string | undefined;
6192
6522
  } | {
6193
6523
  type: "REGISTER";
6194
6524
  id: string;
6195
- data: Record<string, string | number | boolean | {
6525
+ status: "Rejected" | "Requested" | "Accepted";
6526
+ createdAt: string;
6527
+ createdBy: string;
6528
+ declaration: Record<string, string | number | boolean | {
6196
6529
  type: string;
6197
6530
  filename: string;
6198
6531
  originalFilename: string;
@@ -6230,14 +6563,8 @@ export declare const EventDocument: z.ZodObject<{
6230
6563
  filename: string;
6231
6564
  originalFilename: string;
6232
6565
  }[] | undefined>;
6233
- createdAt: string;
6234
- createdBy: string;
6235
6566
  createdAtLocation: string;
6236
- identifiers: {
6237
- trackingId: string;
6238
- registrationNumber: string;
6239
- };
6240
- metadata?: Record<string, string | number | boolean | {
6567
+ annotation?: Record<string, string | number | boolean | {
6241
6568
  type: string;
6242
6569
  filename: string;
6243
6570
  originalFilename: string;
@@ -6275,10 +6602,15 @@ export declare const EventDocument: z.ZodObject<{
6275
6602
  filename: string;
6276
6603
  originalFilename: string;
6277
6604
  }[] | undefined> | undefined;
6605
+ originalActionId?: string | undefined;
6606
+ registrationNumber?: string | undefined;
6278
6607
  } | {
6279
6608
  type: "DECLARE";
6280
6609
  id: string;
6281
- data: Record<string, string | number | boolean | {
6610
+ status: "Rejected" | "Requested" | "Accepted";
6611
+ createdAt: string;
6612
+ createdBy: string;
6613
+ declaration: Record<string, string | number | boolean | {
6282
6614
  type: string;
6283
6615
  filename: string;
6284
6616
  originalFilename: string;
@@ -6316,10 +6648,8 @@ export declare const EventDocument: z.ZodObject<{
6316
6648
  filename: string;
6317
6649
  originalFilename: string;
6318
6650
  }[] | undefined>;
6319
- createdAt: string;
6320
- createdBy: string;
6321
6651
  createdAtLocation: string;
6322
- metadata?: Record<string, string | number | boolean | {
6652
+ annotation?: Record<string, string | number | boolean | {
6323
6653
  type: string;
6324
6654
  filename: string;
6325
6655
  originalFilename: string;
@@ -6357,10 +6687,14 @@ export declare const EventDocument: z.ZodObject<{
6357
6687
  filename: string;
6358
6688
  originalFilename: string;
6359
6689
  }[] | undefined> | undefined;
6690
+ originalActionId?: string | undefined;
6360
6691
  } | {
6361
6692
  type: "VALIDATE";
6362
6693
  id: string;
6363
- data: Record<string, string | number | boolean | {
6694
+ status: "Rejected" | "Requested" | "Accepted";
6695
+ createdAt: string;
6696
+ createdBy: string;
6697
+ declaration: Record<string, string | number | boolean | {
6364
6698
  type: string;
6365
6699
  filename: string;
6366
6700
  originalFilename: string;
@@ -6398,10 +6732,8 @@ export declare const EventDocument: z.ZodObject<{
6398
6732
  filename: string;
6399
6733
  originalFilename: string;
6400
6734
  }[] | undefined>;
6401
- createdAt: string;
6402
- createdBy: string;
6403
6735
  createdAtLocation: string;
6404
- metadata?: Record<string, string | number | boolean | {
6736
+ annotation?: Record<string, string | number | boolean | {
6405
6737
  type: string;
6406
6738
  filename: string;
6407
6739
  originalFilename: string;
@@ -6439,10 +6771,14 @@ export declare const EventDocument: z.ZodObject<{
6439
6771
  filename: string;
6440
6772
  originalFilename: string;
6441
6773
  }[] | undefined> | undefined;
6774
+ originalActionId?: string | undefined;
6442
6775
  } | {
6443
6776
  type: "REJECT";
6444
6777
  id: string;
6445
- data: Record<string, string | number | boolean | {
6778
+ status: "Rejected" | "Requested" | "Accepted";
6779
+ createdAt: string;
6780
+ createdBy: string;
6781
+ declaration: Record<string, string | number | boolean | {
6446
6782
  type: string;
6447
6783
  filename: string;
6448
6784
  originalFilename: string;
@@ -6480,10 +6816,8 @@ export declare const EventDocument: z.ZodObject<{
6480
6816
  filename: string;
6481
6817
  originalFilename: string;
6482
6818
  }[] | undefined>;
6483
- createdAt: string;
6484
- createdBy: string;
6485
6819
  createdAtLocation: string;
6486
- metadata?: Record<string, string | number | boolean | {
6820
+ annotation?: Record<string, string | number | boolean | {
6487
6821
  type: string;
6488
6822
  filename: string;
6489
6823
  originalFilename: string;
@@ -6521,10 +6855,14 @@ export declare const EventDocument: z.ZodObject<{
6521
6855
  filename: string;
6522
6856
  originalFilename: string;
6523
6857
  }[] | undefined> | undefined;
6858
+ originalActionId?: string | undefined;
6524
6859
  } | {
6525
6860
  type: "MARKED_AS_DUPLICATE";
6526
6861
  id: string;
6527
- data: Record<string, string | number | boolean | {
6862
+ status: "Rejected" | "Requested" | "Accepted";
6863
+ createdAt: string;
6864
+ createdBy: string;
6865
+ declaration: Record<string, string | number | boolean | {
6528
6866
  type: string;
6529
6867
  filename: string;
6530
6868
  originalFilename: string;
@@ -6562,10 +6900,8 @@ export declare const EventDocument: z.ZodObject<{
6562
6900
  filename: string;
6563
6901
  originalFilename: string;
6564
6902
  }[] | undefined>;
6565
- createdAt: string;
6566
- createdBy: string;
6567
6903
  createdAtLocation: string;
6568
- metadata?: Record<string, string | number | boolean | {
6904
+ annotation?: Record<string, string | number | boolean | {
6569
6905
  type: string;
6570
6906
  filename: string;
6571
6907
  originalFilename: string;
@@ -6603,10 +6939,14 @@ export declare const EventDocument: z.ZodObject<{
6603
6939
  filename: string;
6604
6940
  originalFilename: string;
6605
6941
  }[] | undefined> | undefined;
6942
+ originalActionId?: string | undefined;
6606
6943
  } | {
6607
6944
  type: "ARCHIVE";
6608
6945
  id: string;
6609
- data: Record<string, string | number | boolean | {
6946
+ status: "Rejected" | "Requested" | "Accepted";
6947
+ createdAt: string;
6948
+ createdBy: string;
6949
+ declaration: Record<string, string | number | boolean | {
6610
6950
  type: string;
6611
6951
  filename: string;
6612
6952
  originalFilename: string;
@@ -6644,10 +6984,8 @@ export declare const EventDocument: z.ZodObject<{
6644
6984
  filename: string;
6645
6985
  originalFilename: string;
6646
6986
  }[] | undefined>;
6647
- createdAt: string;
6648
- createdBy: string;
6649
6987
  createdAtLocation: string;
6650
- metadata?: Record<string, string | number | boolean | {
6988
+ annotation?: Record<string, string | number | boolean | {
6651
6989
  type: string;
6652
6990
  filename: string;
6653
6991
  originalFilename: string;
@@ -6685,10 +7023,14 @@ export declare const EventDocument: z.ZodObject<{
6685
7023
  filename: string;
6686
7024
  originalFilename: string;
6687
7025
  }[] | undefined> | undefined;
7026
+ originalActionId?: string | undefined;
6688
7027
  } | {
6689
7028
  type: "CREATE";
6690
7029
  id: string;
6691
- data: Record<string, string | number | boolean | {
7030
+ status: "Rejected" | "Requested" | "Accepted";
7031
+ createdAt: string;
7032
+ createdBy: string;
7033
+ declaration: Record<string, string | number | boolean | {
6692
7034
  type: string;
6693
7035
  filename: string;
6694
7036
  originalFilename: string;
@@ -6726,10 +7068,8 @@ export declare const EventDocument: z.ZodObject<{
6726
7068
  filename: string;
6727
7069
  originalFilename: string;
6728
7070
  }[] | undefined>;
6729
- createdAt: string;
6730
- createdBy: string;
6731
7071
  createdAtLocation: string;
6732
- metadata?: Record<string, string | number | boolean | {
7072
+ annotation?: Record<string, string | number | boolean | {
6733
7073
  type: string;
6734
7074
  filename: string;
6735
7075
  originalFilename: string;
@@ -6767,10 +7107,14 @@ export declare const EventDocument: z.ZodObject<{
6767
7107
  filename: string;
6768
7108
  originalFilename: string;
6769
7109
  }[] | undefined> | undefined;
7110
+ originalActionId?: string | undefined;
6770
7111
  } | {
6771
7112
  type: "NOTIFY";
6772
7113
  id: string;
6773
- data: Record<string, string | number | boolean | {
7114
+ status: "Rejected" | "Requested" | "Accepted";
7115
+ createdAt: string;
7116
+ createdBy: string;
7117
+ declaration: Record<string, string | number | boolean | {
6774
7118
  type: string;
6775
7119
  filename: string;
6776
7120
  originalFilename: string;
@@ -6808,10 +7152,8 @@ export declare const EventDocument: z.ZodObject<{
6808
7152
  filename: string;
6809
7153
  originalFilename: string;
6810
7154
  }[] | undefined>;
6811
- createdAt: string;
6812
- createdBy: string;
6813
7155
  createdAtLocation: string;
6814
- metadata?: Record<string, string | number | boolean | {
7156
+ annotation?: Record<string, string | number | boolean | {
6815
7157
  type: string;
6816
7158
  filename: string;
6817
7159
  originalFilename: string;
@@ -6849,10 +7191,14 @@ export declare const EventDocument: z.ZodObject<{
6849
7191
  filename: string;
6850
7192
  originalFilename: string;
6851
7193
  }[] | undefined> | undefined;
7194
+ originalActionId?: string | undefined;
6852
7195
  } | {
6853
7196
  type: "PRINT_CERTIFICATE";
6854
7197
  id: string;
6855
- data: Record<string, string | number | boolean | {
7198
+ status: "Rejected" | "Requested" | "Accepted";
7199
+ createdAt: string;
7200
+ createdBy: string;
7201
+ declaration: Record<string, string | number | boolean | {
6856
7202
  type: string;
6857
7203
  filename: string;
6858
7204
  originalFilename: string;
@@ -6890,10 +7236,8 @@ export declare const EventDocument: z.ZodObject<{
6890
7236
  filename: string;
6891
7237
  originalFilename: string;
6892
7238
  }[] | undefined>;
6893
- createdAt: string;
6894
- createdBy: string;
6895
7239
  createdAtLocation: string;
6896
- metadata?: Record<string, string | number | boolean | {
7240
+ annotation?: Record<string, string | number | boolean | {
6897
7241
  type: string;
6898
7242
  filename: string;
6899
7243
  originalFilename: string;
@@ -6931,10 +7275,14 @@ export declare const EventDocument: z.ZodObject<{
6931
7275
  filename: string;
6932
7276
  originalFilename: string;
6933
7277
  }[] | undefined> | undefined;
7278
+ originalActionId?: string | undefined;
6934
7279
  } | {
6935
7280
  type: "REQUEST_CORRECTION";
6936
7281
  id: string;
6937
- data: Record<string, string | number | boolean | {
7282
+ status: "Rejected" | "Requested" | "Accepted";
7283
+ createdAt: string;
7284
+ createdBy: string;
7285
+ declaration: Record<string, string | number | boolean | {
6938
7286
  type: string;
6939
7287
  filename: string;
6940
7288
  originalFilename: string;
@@ -6972,10 +7320,8 @@ export declare const EventDocument: z.ZodObject<{
6972
7320
  filename: string;
6973
7321
  originalFilename: string;
6974
7322
  }[] | undefined>;
6975
- createdAt: string;
6976
- createdBy: string;
6977
7323
  createdAtLocation: string;
6978
- metadata?: Record<string, string | number | boolean | {
7324
+ annotation?: Record<string, string | number | boolean | {
6979
7325
  type: string;
6980
7326
  filename: string;
6981
7327
  originalFilename: string;
@@ -7013,10 +7359,14 @@ export declare const EventDocument: z.ZodObject<{
7013
7359
  filename: string;
7014
7360
  originalFilename: string;
7015
7361
  }[] | undefined> | undefined;
7362
+ originalActionId?: string | undefined;
7016
7363
  } | {
7017
7364
  type: "APPROVE_CORRECTION";
7018
7365
  id: string;
7019
- data: Record<string, string | number | boolean | {
7366
+ status: "Rejected" | "Requested" | "Accepted";
7367
+ createdAt: string;
7368
+ createdBy: string;
7369
+ declaration: Record<string, string | number | boolean | {
7020
7370
  type: string;
7021
7371
  filename: string;
7022
7372
  originalFilename: string;
@@ -7054,11 +7404,9 @@ export declare const EventDocument: z.ZodObject<{
7054
7404
  filename: string;
7055
7405
  originalFilename: string;
7056
7406
  }[] | undefined>;
7057
- createdAt: string;
7058
- createdBy: string;
7059
7407
  createdAtLocation: string;
7060
7408
  requestId: string;
7061
- metadata?: Record<string, string | number | boolean | {
7409
+ annotation?: Record<string, string | number | boolean | {
7062
7410
  type: string;
7063
7411
  filename: string;
7064
7412
  originalFilename: string;
@@ -7096,10 +7444,14 @@ export declare const EventDocument: z.ZodObject<{
7096
7444
  filename: string;
7097
7445
  originalFilename: string;
7098
7446
  }[] | undefined> | undefined;
7447
+ originalActionId?: string | undefined;
7099
7448
  } | {
7100
7449
  type: "REJECT_CORRECTION";
7101
7450
  id: string;
7102
- data: Record<string, string | number | boolean | {
7451
+ status: "Rejected" | "Requested" | "Accepted";
7452
+ createdAt: string;
7453
+ createdBy: string;
7454
+ declaration: Record<string, string | number | boolean | {
7103
7455
  type: string;
7104
7456
  filename: string;
7105
7457
  originalFilename: string;
@@ -7137,11 +7489,9 @@ export declare const EventDocument: z.ZodObject<{
7137
7489
  filename: string;
7138
7490
  originalFilename: string;
7139
7491
  }[] | undefined>;
7140
- createdAt: string;
7141
- createdBy: string;
7142
7492
  createdAtLocation: string;
7143
7493
  requestId: string;
7144
- metadata?: Record<string, string | number | boolean | {
7494
+ annotation?: Record<string, string | number | boolean | {
7145
7495
  type: string;
7146
7496
  filename: string;
7147
7497
  originalFilename: string;
@@ -7179,10 +7529,14 @@ export declare const EventDocument: z.ZodObject<{
7179
7529
  filename: string;
7180
7530
  originalFilename: string;
7181
7531
  }[] | undefined> | undefined;
7532
+ originalActionId?: string | undefined;
7182
7533
  } | {
7183
- type: "CUSTOM";
7534
+ type: "READ";
7184
7535
  id: string;
7185
- data: Record<string, string | number | boolean | {
7536
+ status: "Rejected" | "Requested" | "Accepted";
7537
+ createdAt: string;
7538
+ createdBy: string;
7539
+ declaration: Record<string, string | number | boolean | {
7186
7540
  type: string;
7187
7541
  filename: string;
7188
7542
  originalFilename: string;
@@ -7220,10 +7574,8 @@ export declare const EventDocument: z.ZodObject<{
7220
7574
  filename: string;
7221
7575
  originalFilename: string;
7222
7576
  }[] | undefined>;
7223
- createdAt: string;
7224
- createdBy: string;
7225
7577
  createdAtLocation: string;
7226
- metadata?: Record<string, string | number | boolean | {
7578
+ annotation?: Record<string, string | number | boolean | {
7227
7579
  type: string;
7228
7580
  filename: string;
7229
7581
  originalFilename: string;
@@ -7261,17 +7613,28 @@ export declare const EventDocument: z.ZodObject<{
7261
7613
  filename: string;
7262
7614
  originalFilename: string;
7263
7615
  }[] | undefined> | undefined;
7616
+ originalActionId?: string | undefined;
7617
+ } | {
7618
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7619
+ id: string;
7620
+ status: "Rejected";
7621
+ createdAt: string;
7622
+ originalActionId?: string | undefined;
7264
7623
  })[];
7624
+ trackingId: string;
7265
7625
  }, {
7266
7626
  type: string;
7267
7627
  id: string;
7268
7628
  createdAt: string;
7269
- trackingId: string;
7270
7629
  updatedAt: string;
7630
+ updatedAtLocation: string;
7271
7631
  actions: ({
7272
7632
  type: "ASSIGN";
7273
7633
  id: string;
7274
- data: Record<string, string | number | boolean | {
7634
+ status: "Rejected" | "Requested" | "Accepted";
7635
+ createdAt: string;
7636
+ createdBy: string;
7637
+ declaration: Record<string, string | number | boolean | {
7275
7638
  type: string;
7276
7639
  filename: string;
7277
7640
  originalFilename: string;
@@ -7309,11 +7672,9 @@ export declare const EventDocument: z.ZodObject<{
7309
7672
  filename: string;
7310
7673
  originalFilename: string;
7311
7674
  }[] | undefined>;
7312
- createdAt: string;
7313
- createdBy: string;
7314
7675
  createdAtLocation: string;
7315
7676
  assignedTo: string;
7316
- metadata?: Record<string, string | number | boolean | {
7677
+ annotation?: Record<string, string | number | boolean | {
7317
7678
  type: string;
7318
7679
  filename: string;
7319
7680
  originalFilename: string;
@@ -7351,10 +7712,14 @@ export declare const EventDocument: z.ZodObject<{
7351
7712
  filename: string;
7352
7713
  originalFilename: string;
7353
7714
  }[] | undefined> | undefined;
7715
+ originalActionId?: string | undefined;
7354
7716
  } | {
7355
7717
  type: "UNASSIGN";
7356
7718
  id: string;
7357
- data: Record<string, string | number | boolean | {
7719
+ status: "Rejected" | "Requested" | "Accepted";
7720
+ createdAt: string;
7721
+ createdBy: string;
7722
+ declaration: Record<string, string | number | boolean | {
7358
7723
  type: string;
7359
7724
  filename: string;
7360
7725
  originalFilename: string;
@@ -7392,10 +7757,8 @@ export declare const EventDocument: z.ZodObject<{
7392
7757
  filename: string;
7393
7758
  originalFilename: string;
7394
7759
  }[] | undefined>;
7395
- createdAt: string;
7396
- createdBy: string;
7397
7760
  createdAtLocation: string;
7398
- metadata?: Record<string, string | number | boolean | {
7761
+ annotation?: Record<string, string | number | boolean | {
7399
7762
  type: string;
7400
7763
  filename: string;
7401
7764
  originalFilename: string;
@@ -7433,10 +7796,14 @@ export declare const EventDocument: z.ZodObject<{
7433
7796
  filename: string;
7434
7797
  originalFilename: string;
7435
7798
  }[] | undefined> | undefined;
7799
+ originalActionId?: string | undefined;
7436
7800
  } | {
7437
7801
  type: "REGISTER";
7438
7802
  id: string;
7439
- data: Record<string, string | number | boolean | {
7803
+ status: "Rejected" | "Requested" | "Accepted";
7804
+ createdAt: string;
7805
+ createdBy: string;
7806
+ declaration: Record<string, string | number | boolean | {
7440
7807
  type: string;
7441
7808
  filename: string;
7442
7809
  originalFilename: string;
@@ -7474,14 +7841,8 @@ export declare const EventDocument: z.ZodObject<{
7474
7841
  filename: string;
7475
7842
  originalFilename: string;
7476
7843
  }[] | undefined>;
7477
- createdAt: string;
7478
- createdBy: string;
7479
7844
  createdAtLocation: string;
7480
- identifiers: {
7481
- trackingId: string;
7482
- registrationNumber: string;
7483
- };
7484
- metadata?: Record<string, string | number | boolean | {
7845
+ annotation?: Record<string, string | number | boolean | {
7485
7846
  type: string;
7486
7847
  filename: string;
7487
7848
  originalFilename: string;
@@ -7519,10 +7880,15 @@ export declare const EventDocument: z.ZodObject<{
7519
7880
  filename: string;
7520
7881
  originalFilename: string;
7521
7882
  }[] | undefined> | undefined;
7883
+ originalActionId?: string | undefined;
7884
+ registrationNumber?: string | undefined;
7522
7885
  } | {
7523
7886
  type: "DECLARE";
7524
7887
  id: string;
7525
- data: Record<string, string | number | boolean | {
7888
+ status: "Rejected" | "Requested" | "Accepted";
7889
+ createdAt: string;
7890
+ createdBy: string;
7891
+ declaration: Record<string, string | number | boolean | {
7526
7892
  type: string;
7527
7893
  filename: string;
7528
7894
  originalFilename: string;
@@ -7560,10 +7926,8 @@ export declare const EventDocument: z.ZodObject<{
7560
7926
  filename: string;
7561
7927
  originalFilename: string;
7562
7928
  }[] | undefined>;
7563
- createdAt: string;
7564
- createdBy: string;
7565
7929
  createdAtLocation: string;
7566
- metadata?: Record<string, string | number | boolean | {
7930
+ annotation?: Record<string, string | number | boolean | {
7567
7931
  type: string;
7568
7932
  filename: string;
7569
7933
  originalFilename: string;
@@ -7601,10 +7965,14 @@ export declare const EventDocument: z.ZodObject<{
7601
7965
  filename: string;
7602
7966
  originalFilename: string;
7603
7967
  }[] | undefined> | undefined;
7968
+ originalActionId?: string | undefined;
7604
7969
  } | {
7605
7970
  type: "VALIDATE";
7606
7971
  id: string;
7607
- data: Record<string, string | number | boolean | {
7972
+ status: "Rejected" | "Requested" | "Accepted";
7973
+ createdAt: string;
7974
+ createdBy: string;
7975
+ declaration: Record<string, string | number | boolean | {
7608
7976
  type: string;
7609
7977
  filename: string;
7610
7978
  originalFilename: string;
@@ -7642,10 +8010,8 @@ export declare const EventDocument: z.ZodObject<{
7642
8010
  filename: string;
7643
8011
  originalFilename: string;
7644
8012
  }[] | undefined>;
7645
- createdAt: string;
7646
- createdBy: string;
7647
8013
  createdAtLocation: string;
7648
- metadata?: Record<string, string | number | boolean | {
8014
+ annotation?: Record<string, string | number | boolean | {
7649
8015
  type: string;
7650
8016
  filename: string;
7651
8017
  originalFilename: string;
@@ -7683,10 +8049,14 @@ export declare const EventDocument: z.ZodObject<{
7683
8049
  filename: string;
7684
8050
  originalFilename: string;
7685
8051
  }[] | undefined> | undefined;
8052
+ originalActionId?: string | undefined;
7686
8053
  } | {
7687
8054
  type: "REJECT";
7688
8055
  id: string;
7689
- data: Record<string, string | number | boolean | {
8056
+ status: "Rejected" | "Requested" | "Accepted";
8057
+ createdAt: string;
8058
+ createdBy: string;
8059
+ declaration: Record<string, string | number | boolean | {
7690
8060
  type: string;
7691
8061
  filename: string;
7692
8062
  originalFilename: string;
@@ -7724,10 +8094,8 @@ export declare const EventDocument: z.ZodObject<{
7724
8094
  filename: string;
7725
8095
  originalFilename: string;
7726
8096
  }[] | undefined>;
7727
- createdAt: string;
7728
- createdBy: string;
7729
8097
  createdAtLocation: string;
7730
- metadata?: Record<string, string | number | boolean | {
8098
+ annotation?: Record<string, string | number | boolean | {
7731
8099
  type: string;
7732
8100
  filename: string;
7733
8101
  originalFilename: string;
@@ -7765,10 +8133,14 @@ export declare const EventDocument: z.ZodObject<{
7765
8133
  filename: string;
7766
8134
  originalFilename: string;
7767
8135
  }[] | undefined> | undefined;
8136
+ originalActionId?: string | undefined;
7768
8137
  } | {
7769
8138
  type: "MARKED_AS_DUPLICATE";
7770
8139
  id: string;
7771
- data: Record<string, string | number | boolean | {
8140
+ status: "Rejected" | "Requested" | "Accepted";
8141
+ createdAt: string;
8142
+ createdBy: string;
8143
+ declaration: Record<string, string | number | boolean | {
7772
8144
  type: string;
7773
8145
  filename: string;
7774
8146
  originalFilename: string;
@@ -7806,10 +8178,8 @@ export declare const EventDocument: z.ZodObject<{
7806
8178
  filename: string;
7807
8179
  originalFilename: string;
7808
8180
  }[] | undefined>;
7809
- createdAt: string;
7810
- createdBy: string;
7811
8181
  createdAtLocation: string;
7812
- metadata?: Record<string, string | number | boolean | {
8182
+ annotation?: Record<string, string | number | boolean | {
7813
8183
  type: string;
7814
8184
  filename: string;
7815
8185
  originalFilename: string;
@@ -7847,10 +8217,14 @@ export declare const EventDocument: z.ZodObject<{
7847
8217
  filename: string;
7848
8218
  originalFilename: string;
7849
8219
  }[] | undefined> | undefined;
8220
+ originalActionId?: string | undefined;
7850
8221
  } | {
7851
8222
  type: "ARCHIVE";
7852
8223
  id: string;
7853
- data: Record<string, string | number | boolean | {
8224
+ status: "Rejected" | "Requested" | "Accepted";
8225
+ createdAt: string;
8226
+ createdBy: string;
8227
+ declaration: Record<string, string | number | boolean | {
7854
8228
  type: string;
7855
8229
  filename: string;
7856
8230
  originalFilename: string;
@@ -7888,10 +8262,8 @@ export declare const EventDocument: z.ZodObject<{
7888
8262
  filename: string;
7889
8263
  originalFilename: string;
7890
8264
  }[] | undefined>;
7891
- createdAt: string;
7892
- createdBy: string;
7893
8265
  createdAtLocation: string;
7894
- metadata?: Record<string, string | number | boolean | {
8266
+ annotation?: Record<string, string | number | boolean | {
7895
8267
  type: string;
7896
8268
  filename: string;
7897
8269
  originalFilename: string;
@@ -7929,10 +8301,14 @@ export declare const EventDocument: z.ZodObject<{
7929
8301
  filename: string;
7930
8302
  originalFilename: string;
7931
8303
  }[] | undefined> | undefined;
8304
+ originalActionId?: string | undefined;
7932
8305
  } | {
7933
8306
  type: "CREATE";
7934
8307
  id: string;
7935
- data: Record<string, string | number | boolean | {
8308
+ status: "Rejected" | "Requested" | "Accepted";
8309
+ createdAt: string;
8310
+ createdBy: string;
8311
+ declaration: Record<string, string | number | boolean | {
7936
8312
  type: string;
7937
8313
  filename: string;
7938
8314
  originalFilename: string;
@@ -7970,10 +8346,8 @@ export declare const EventDocument: z.ZodObject<{
7970
8346
  filename: string;
7971
8347
  originalFilename: string;
7972
8348
  }[] | undefined>;
7973
- createdAt: string;
7974
- createdBy: string;
7975
8349
  createdAtLocation: string;
7976
- metadata?: Record<string, string | number | boolean | {
8350
+ annotation?: Record<string, string | number | boolean | {
7977
8351
  type: string;
7978
8352
  filename: string;
7979
8353
  originalFilename: string;
@@ -8011,10 +8385,14 @@ export declare const EventDocument: z.ZodObject<{
8011
8385
  filename: string;
8012
8386
  originalFilename: string;
8013
8387
  }[] | undefined> | undefined;
8388
+ originalActionId?: string | undefined;
8014
8389
  } | {
8015
8390
  type: "NOTIFY";
8016
8391
  id: string;
8017
- data: Record<string, string | number | boolean | {
8392
+ status: "Rejected" | "Requested" | "Accepted";
8393
+ createdAt: string;
8394
+ createdBy: string;
8395
+ declaration: Record<string, string | number | boolean | {
8018
8396
  type: string;
8019
8397
  filename: string;
8020
8398
  originalFilename: string;
@@ -8052,10 +8430,8 @@ export declare const EventDocument: z.ZodObject<{
8052
8430
  filename: string;
8053
8431
  originalFilename: string;
8054
8432
  }[] | undefined>;
8055
- createdAt: string;
8056
- createdBy: string;
8057
8433
  createdAtLocation: string;
8058
- metadata?: Record<string, string | number | boolean | {
8434
+ annotation?: Record<string, string | number | boolean | {
8059
8435
  type: string;
8060
8436
  filename: string;
8061
8437
  originalFilename: string;
@@ -8093,10 +8469,14 @@ export declare const EventDocument: z.ZodObject<{
8093
8469
  filename: string;
8094
8470
  originalFilename: string;
8095
8471
  }[] | undefined> | undefined;
8472
+ originalActionId?: string | undefined;
8096
8473
  } | {
8097
8474
  type: "PRINT_CERTIFICATE";
8098
8475
  id: string;
8099
- data: Record<string, string | number | boolean | {
8476
+ status: "Rejected" | "Requested" | "Accepted";
8477
+ createdAt: string;
8478
+ createdBy: string;
8479
+ declaration: Record<string, string | number | boolean | {
8100
8480
  type: string;
8101
8481
  filename: string;
8102
8482
  originalFilename: string;
@@ -8134,10 +8514,8 @@ export declare const EventDocument: z.ZodObject<{
8134
8514
  filename: string;
8135
8515
  originalFilename: string;
8136
8516
  }[] | undefined>;
8137
- createdAt: string;
8138
- createdBy: string;
8139
8517
  createdAtLocation: string;
8140
- metadata?: Record<string, string | number | boolean | {
8518
+ annotation?: Record<string, string | number | boolean | {
8141
8519
  type: string;
8142
8520
  filename: string;
8143
8521
  originalFilename: string;
@@ -8175,10 +8553,14 @@ export declare const EventDocument: z.ZodObject<{
8175
8553
  filename: string;
8176
8554
  originalFilename: string;
8177
8555
  }[] | undefined> | undefined;
8556
+ originalActionId?: string | undefined;
8178
8557
  } | {
8179
8558
  type: "REQUEST_CORRECTION";
8180
8559
  id: string;
8181
- data: Record<string, string | number | boolean | {
8560
+ status: "Rejected" | "Requested" | "Accepted";
8561
+ createdAt: string;
8562
+ createdBy: string;
8563
+ declaration: Record<string, string | number | boolean | {
8182
8564
  type: string;
8183
8565
  filename: string;
8184
8566
  originalFilename: string;
@@ -8216,10 +8598,8 @@ export declare const EventDocument: z.ZodObject<{
8216
8598
  filename: string;
8217
8599
  originalFilename: string;
8218
8600
  }[] | undefined>;
8219
- createdAt: string;
8220
- createdBy: string;
8221
8601
  createdAtLocation: string;
8222
- metadata?: Record<string, string | number | boolean | {
8602
+ annotation?: Record<string, string | number | boolean | {
8223
8603
  type: string;
8224
8604
  filename: string;
8225
8605
  originalFilename: string;
@@ -8257,10 +8637,14 @@ export declare const EventDocument: z.ZodObject<{
8257
8637
  filename: string;
8258
8638
  originalFilename: string;
8259
8639
  }[] | undefined> | undefined;
8640
+ originalActionId?: string | undefined;
8260
8641
  } | {
8261
8642
  type: "APPROVE_CORRECTION";
8262
8643
  id: string;
8263
- data: Record<string, string | number | boolean | {
8644
+ status: "Rejected" | "Requested" | "Accepted";
8645
+ createdAt: string;
8646
+ createdBy: string;
8647
+ declaration: Record<string, string | number | boolean | {
8264
8648
  type: string;
8265
8649
  filename: string;
8266
8650
  originalFilename: string;
@@ -8298,11 +8682,9 @@ export declare const EventDocument: z.ZodObject<{
8298
8682
  filename: string;
8299
8683
  originalFilename: string;
8300
8684
  }[] | undefined>;
8301
- createdAt: string;
8302
- createdBy: string;
8303
8685
  createdAtLocation: string;
8304
8686
  requestId: string;
8305
- metadata?: Record<string, string | number | boolean | {
8687
+ annotation?: Record<string, string | number | boolean | {
8306
8688
  type: string;
8307
8689
  filename: string;
8308
8690
  originalFilename: string;
@@ -8340,10 +8722,14 @@ export declare const EventDocument: z.ZodObject<{
8340
8722
  filename: string;
8341
8723
  originalFilename: string;
8342
8724
  }[] | undefined> | undefined;
8725
+ originalActionId?: string | undefined;
8343
8726
  } | {
8344
8727
  type: "REJECT_CORRECTION";
8345
8728
  id: string;
8346
- data: Record<string, string | number | boolean | {
8729
+ status: "Rejected" | "Requested" | "Accepted";
8730
+ createdAt: string;
8731
+ createdBy: string;
8732
+ declaration: Record<string, string | number | boolean | {
8347
8733
  type: string;
8348
8734
  filename: string;
8349
8735
  originalFilename: string;
@@ -8381,11 +8767,9 @@ export declare const EventDocument: z.ZodObject<{
8381
8767
  filename: string;
8382
8768
  originalFilename: string;
8383
8769
  }[] | undefined>;
8384
- createdAt: string;
8385
- createdBy: string;
8386
8770
  createdAtLocation: string;
8387
8771
  requestId: string;
8388
- metadata?: Record<string, string | number | boolean | {
8772
+ annotation?: Record<string, string | number | boolean | {
8389
8773
  type: string;
8390
8774
  filename: string;
8391
8775
  originalFilename: string;
@@ -8423,10 +8807,14 @@ export declare const EventDocument: z.ZodObject<{
8423
8807
  filename: string;
8424
8808
  originalFilename: string;
8425
8809
  }[] | undefined> | undefined;
8810
+ originalActionId?: string | undefined;
8426
8811
  } | {
8427
- type: "CUSTOM";
8812
+ type: "READ";
8428
8813
  id: string;
8429
- data: Record<string, string | number | boolean | {
8814
+ status: "Rejected" | "Requested" | "Accepted";
8815
+ createdAt: string;
8816
+ createdBy: string;
8817
+ declaration: Record<string, string | number | boolean | {
8430
8818
  type: string;
8431
8819
  filename: string;
8432
8820
  originalFilename: string;
@@ -8464,10 +8852,8 @@ export declare const EventDocument: z.ZodObject<{
8464
8852
  filename: string;
8465
8853
  originalFilename: string;
8466
8854
  }[] | undefined>;
8467
- createdAt: string;
8468
- createdBy: string;
8469
8855
  createdAtLocation: string;
8470
- metadata?: Record<string, string | number | boolean | {
8856
+ annotation?: Record<string, string | number | boolean | {
8471
8857
  type: string;
8472
8858
  filename: string;
8473
8859
  originalFilename: string;
@@ -8505,7 +8891,15 @@ export declare const EventDocument: z.ZodObject<{
8505
8891
  filename: string;
8506
8892
  originalFilename: string;
8507
8893
  }[] | undefined> | undefined;
8894
+ originalActionId?: string | undefined;
8895
+ } | {
8896
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
8897
+ id: string;
8898
+ status: "Rejected";
8899
+ createdAt: string;
8900
+ originalActionId?: string | undefined;
8508
8901
  })[];
8902
+ trackingId: string;
8509
8903
  }>;
8510
8904
  export type EventDocument = z.infer<typeof EventDocument>;
8511
8905
  //# sourceMappingURL=EventDocument.d.ts.map