@opencrvs/toolkit 1.8.0-rc.f9911ed → 1.8.0-rc.f9c5526

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