@opencrvs/toolkit 1.8.0-rc.f872339 → 1.8.0-rc.f881988

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/commons/api/router.d.ts +7266 -4144
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -6
  3. package/dist/commons/events/ActionConfig.d.ts +86380 -1682
  4. package/dist/commons/events/ActionDocument.d.ts +418 -107
  5. package/dist/commons/events/ActionInput.d.ts +68 -60
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +371 -25
  7. package/dist/commons/events/Draft.d.ts +24 -9
  8. package/dist/commons/events/EventConfig.d.ts +40980 -1394
  9. package/dist/commons/events/EventDocument.d.ts +331 -82
  10. package/dist/commons/events/EventIndex.d.ts +912 -4
  11. package/dist/commons/events/EventInput.d.ts +13 -0
  12. package/dist/commons/events/EventMetadata.d.ts +10 -3
  13. package/dist/commons/events/FieldConfig.d.ts +3415 -711
  14. package/dist/commons/events/FieldType.d.ts +1 -2
  15. package/dist/commons/events/FieldValue.d.ts +1 -1
  16. package/dist/commons/events/FormConfig.d.ts +38845 -517
  17. package/dist/commons/events/PageConfig.d.ts +9671 -203
  18. package/dist/commons/events/SummaryConfig.d.ts +0 -47
  19. package/dist/commons/events/WorkqueueConfig.d.ts +44 -20
  20. package/dist/commons/events/defineConfig.d.ts +6669 -30
  21. package/dist/commons/events/event.d.ts +25 -0
  22. package/dist/commons/events/field.d.ts +68 -0
  23. package/dist/commons/events/index.d.ts +2 -0
  24. package/dist/commons/events/scopes.d.ts +1 -0
  25. package/dist/commons/events/test.utils.d.ts +1 -38
  26. package/dist/commons/events/utils.d.ts +3401 -90
  27. package/dist/conditionals/index.js +36 -33
  28. package/dist/events/index.js +707 -577
  29. package/package.json +3 -2
@@ -2,13 +2,22 @@ import { z } from 'zod';
2
2
  export declare const EventDocument: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  type: z.ZodString;
5
+ dateOfEvent: z.ZodOptional<z.ZodObject<{
6
+ fieldId: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ fieldId: string;
9
+ }, {
10
+ fieldId: string;
11
+ }>>;
5
12
  createdAt: z.ZodString;
6
13
  updatedAt: z.ZodString;
7
14
  updatedAtLocation: z.ZodString;
8
15
  actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
9
16
  id: z.ZodString;
17
+ transactionId: z.ZodString;
10
18
  createdAt: z.ZodString;
11
19
  createdBy: z.ZodString;
20
+ createdByRole: z.ZodString;
12
21
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13
22
  filename: z.ZodString;
14
23
  originalFilename: z.ZodString;
@@ -237,7 +246,8 @@ export declare const EventDocument: z.ZodObject<{
237
246
  addressLine3?: string | null | undefined;
238
247
  postcodeOrZip?: string | null | undefined;
239
248
  }>]>>>;
240
- createdAtLocation: z.ZodString;
249
+ createdAtLocation: z.ZodOptional<z.ZodString>;
250
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
241
251
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
242
252
  originalActionId: z.ZodOptional<z.ZodString>;
243
253
  }, {
@@ -246,8 +256,10 @@ export declare const EventDocument: z.ZodObject<{
246
256
  type: "CREATE";
247
257
  id: string;
248
258
  status: "Rejected" | "Requested" | "Accepted";
259
+ transactionId: string;
249
260
  createdAt: string;
250
261
  createdBy: string;
262
+ createdByRole: string;
251
263
  declaration: Record<string, string | number | boolean | {
252
264
  type: string;
253
265
  filename: string;
@@ -286,7 +298,6 @@ export declare const EventDocument: z.ZodObject<{
286
298
  filename: string;
287
299
  originalFilename: string;
288
300
  }[] | undefined>;
289
- createdAtLocation: string;
290
301
  annotation?: Record<string, string | number | boolean | {
291
302
  type: string;
292
303
  filename: string;
@@ -325,13 +336,17 @@ export declare const EventDocument: z.ZodObject<{
325
336
  filename: string;
326
337
  originalFilename: string;
327
338
  }[] | undefined> | undefined;
339
+ createdAtLocation?: string | undefined;
340
+ updatedAtLocation?: string | undefined;
328
341
  originalActionId?: string | undefined;
329
342
  }, {
330
343
  type: "CREATE";
331
344
  id: string;
332
345
  status: "Rejected" | "Requested" | "Accepted";
346
+ transactionId: string;
333
347
  createdAt: string;
334
348
  createdBy: string;
349
+ createdByRole: string;
335
350
  declaration: Record<string, string | number | boolean | {
336
351
  type: string;
337
352
  filename: string;
@@ -370,7 +385,6 @@ export declare const EventDocument: z.ZodObject<{
370
385
  filename: string;
371
386
  originalFilename: string;
372
387
  }[] | undefined>;
373
- createdAtLocation: string;
374
388
  annotation?: Record<string, string | number | boolean | {
375
389
  type: string;
376
390
  filename: string;
@@ -409,11 +423,15 @@ export declare const EventDocument: z.ZodObject<{
409
423
  filename: string;
410
424
  originalFilename: string;
411
425
  }[] | undefined> | undefined;
426
+ createdAtLocation?: string | undefined;
427
+ updatedAtLocation?: string | undefined;
412
428
  originalActionId?: string | undefined;
413
429
  }>, z.ZodObject<z.objectUtil.extendShape<{
414
430
  id: z.ZodString;
431
+ transactionId: z.ZodString;
415
432
  createdAt: z.ZodString;
416
433
  createdBy: z.ZodString;
434
+ createdByRole: z.ZodString;
417
435
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
418
436
  filename: z.ZodString;
419
437
  originalFilename: z.ZodString;
@@ -642,7 +660,8 @@ export declare const EventDocument: z.ZodObject<{
642
660
  addressLine3?: string | null | undefined;
643
661
  postcodeOrZip?: string | null | undefined;
644
662
  }>]>>>;
645
- createdAtLocation: z.ZodString;
663
+ createdAtLocation: z.ZodOptional<z.ZodString>;
664
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
646
665
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
647
666
  originalActionId: z.ZodOptional<z.ZodString>;
648
667
  }, {
@@ -651,8 +670,10 @@ export declare const EventDocument: z.ZodObject<{
651
670
  type: "VALIDATE";
652
671
  id: string;
653
672
  status: "Rejected" | "Requested" | "Accepted";
673
+ transactionId: string;
654
674
  createdAt: string;
655
675
  createdBy: string;
676
+ createdByRole: string;
656
677
  declaration: Record<string, string | number | boolean | {
657
678
  type: string;
658
679
  filename: string;
@@ -691,7 +712,6 @@ export declare const EventDocument: z.ZodObject<{
691
712
  filename: string;
692
713
  originalFilename: string;
693
714
  }[] | undefined>;
694
- createdAtLocation: string;
695
715
  annotation?: Record<string, string | number | boolean | {
696
716
  type: string;
697
717
  filename: string;
@@ -730,13 +750,17 @@ export declare const EventDocument: z.ZodObject<{
730
750
  filename: string;
731
751
  originalFilename: string;
732
752
  }[] | undefined> | undefined;
753
+ createdAtLocation?: string | undefined;
754
+ updatedAtLocation?: string | undefined;
733
755
  originalActionId?: string | undefined;
734
756
  }, {
735
757
  type: "VALIDATE";
736
758
  id: string;
737
759
  status: "Rejected" | "Requested" | "Accepted";
760
+ transactionId: string;
738
761
  createdAt: string;
739
762
  createdBy: string;
763
+ createdByRole: string;
740
764
  declaration: Record<string, string | number | boolean | {
741
765
  type: string;
742
766
  filename: string;
@@ -775,7 +799,6 @@ export declare const EventDocument: z.ZodObject<{
775
799
  filename: string;
776
800
  originalFilename: string;
777
801
  }[] | undefined>;
778
- createdAtLocation: string;
779
802
  annotation?: Record<string, string | number | boolean | {
780
803
  type: string;
781
804
  filename: string;
@@ -814,11 +837,15 @@ export declare const EventDocument: z.ZodObject<{
814
837
  filename: string;
815
838
  originalFilename: string;
816
839
  }[] | undefined> | undefined;
840
+ createdAtLocation?: string | undefined;
841
+ updatedAtLocation?: string | undefined;
817
842
  originalActionId?: string | undefined;
818
843
  }>, z.ZodObject<z.objectUtil.extendShape<{
819
844
  id: z.ZodString;
845
+ transactionId: z.ZodString;
820
846
  createdAt: z.ZodString;
821
847
  createdBy: z.ZodString;
848
+ createdByRole: z.ZodString;
822
849
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
823
850
  filename: z.ZodString;
824
851
  originalFilename: z.ZodString;
@@ -1047,7 +1074,8 @@ export declare const EventDocument: z.ZodObject<{
1047
1074
  addressLine3?: string | null | undefined;
1048
1075
  postcodeOrZip?: string | null | undefined;
1049
1076
  }>]>>>;
1050
- createdAtLocation: z.ZodString;
1077
+ createdAtLocation: z.ZodOptional<z.ZodString>;
1078
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
1051
1079
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1052
1080
  originalActionId: z.ZodOptional<z.ZodString>;
1053
1081
  }, {
@@ -1056,8 +1084,10 @@ export declare const EventDocument: z.ZodObject<{
1056
1084
  type: "REJECT";
1057
1085
  id: string;
1058
1086
  status: "Rejected" | "Requested" | "Accepted";
1087
+ transactionId: string;
1059
1088
  createdAt: string;
1060
1089
  createdBy: string;
1090
+ createdByRole: string;
1061
1091
  declaration: Record<string, string | number | boolean | {
1062
1092
  type: string;
1063
1093
  filename: string;
@@ -1096,7 +1126,6 @@ export declare const EventDocument: z.ZodObject<{
1096
1126
  filename: string;
1097
1127
  originalFilename: string;
1098
1128
  }[] | undefined>;
1099
- createdAtLocation: string;
1100
1129
  annotation?: Record<string, string | number | boolean | {
1101
1130
  type: string;
1102
1131
  filename: string;
@@ -1135,13 +1164,17 @@ export declare const EventDocument: z.ZodObject<{
1135
1164
  filename: string;
1136
1165
  originalFilename: string;
1137
1166
  }[] | undefined> | undefined;
1167
+ createdAtLocation?: string | undefined;
1168
+ updatedAtLocation?: string | undefined;
1138
1169
  originalActionId?: string | undefined;
1139
1170
  }, {
1140
1171
  type: "REJECT";
1141
1172
  id: string;
1142
1173
  status: "Rejected" | "Requested" | "Accepted";
1174
+ transactionId: string;
1143
1175
  createdAt: string;
1144
1176
  createdBy: string;
1177
+ createdByRole: string;
1145
1178
  declaration: Record<string, string | number | boolean | {
1146
1179
  type: string;
1147
1180
  filename: string;
@@ -1180,7 +1213,6 @@ export declare const EventDocument: z.ZodObject<{
1180
1213
  filename: string;
1181
1214
  originalFilename: string;
1182
1215
  }[] | undefined>;
1183
- createdAtLocation: string;
1184
1216
  annotation?: Record<string, string | number | boolean | {
1185
1217
  type: string;
1186
1218
  filename: string;
@@ -1219,11 +1251,15 @@ export declare const EventDocument: z.ZodObject<{
1219
1251
  filename: string;
1220
1252
  originalFilename: string;
1221
1253
  }[] | undefined> | undefined;
1254
+ createdAtLocation?: string | undefined;
1255
+ updatedAtLocation?: string | undefined;
1222
1256
  originalActionId?: string | undefined;
1223
1257
  }>, z.ZodObject<z.objectUtil.extendShape<{
1224
1258
  id: z.ZodString;
1259
+ transactionId: z.ZodString;
1225
1260
  createdAt: z.ZodString;
1226
1261
  createdBy: z.ZodString;
1262
+ createdByRole: z.ZodString;
1227
1263
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1228
1264
  filename: z.ZodString;
1229
1265
  originalFilename: z.ZodString;
@@ -1452,7 +1488,8 @@ export declare const EventDocument: z.ZodObject<{
1452
1488
  addressLine3?: string | null | undefined;
1453
1489
  postcodeOrZip?: string | null | undefined;
1454
1490
  }>]>>>;
1455
- createdAtLocation: z.ZodString;
1491
+ createdAtLocation: z.ZodOptional<z.ZodString>;
1492
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
1456
1493
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1457
1494
  originalActionId: z.ZodOptional<z.ZodString>;
1458
1495
  }, {
@@ -1461,8 +1498,10 @@ export declare const EventDocument: z.ZodObject<{
1461
1498
  type: "MARKED_AS_DUPLICATE";
1462
1499
  id: string;
1463
1500
  status: "Rejected" | "Requested" | "Accepted";
1501
+ transactionId: string;
1464
1502
  createdAt: string;
1465
1503
  createdBy: string;
1504
+ createdByRole: string;
1466
1505
  declaration: Record<string, string | number | boolean | {
1467
1506
  type: string;
1468
1507
  filename: string;
@@ -1501,7 +1540,6 @@ export declare const EventDocument: z.ZodObject<{
1501
1540
  filename: string;
1502
1541
  originalFilename: string;
1503
1542
  }[] | undefined>;
1504
- createdAtLocation: string;
1505
1543
  annotation?: Record<string, string | number | boolean | {
1506
1544
  type: string;
1507
1545
  filename: string;
@@ -1540,13 +1578,17 @@ export declare const EventDocument: z.ZodObject<{
1540
1578
  filename: string;
1541
1579
  originalFilename: string;
1542
1580
  }[] | undefined> | undefined;
1581
+ createdAtLocation?: string | undefined;
1582
+ updatedAtLocation?: string | undefined;
1543
1583
  originalActionId?: string | undefined;
1544
1584
  }, {
1545
1585
  type: "MARKED_AS_DUPLICATE";
1546
1586
  id: string;
1547
1587
  status: "Rejected" | "Requested" | "Accepted";
1588
+ transactionId: string;
1548
1589
  createdAt: string;
1549
1590
  createdBy: string;
1591
+ createdByRole: string;
1550
1592
  declaration: Record<string, string | number | boolean | {
1551
1593
  type: string;
1552
1594
  filename: string;
@@ -1585,7 +1627,6 @@ export declare const EventDocument: z.ZodObject<{
1585
1627
  filename: string;
1586
1628
  originalFilename: string;
1587
1629
  }[] | undefined>;
1588
- createdAtLocation: string;
1589
1630
  annotation?: Record<string, string | number | boolean | {
1590
1631
  type: string;
1591
1632
  filename: string;
@@ -1624,11 +1665,15 @@ export declare const EventDocument: z.ZodObject<{
1624
1665
  filename: string;
1625
1666
  originalFilename: string;
1626
1667
  }[] | undefined> | undefined;
1668
+ createdAtLocation?: string | undefined;
1669
+ updatedAtLocation?: string | undefined;
1627
1670
  originalActionId?: string | undefined;
1628
1671
  }>, z.ZodObject<z.objectUtil.extendShape<{
1629
1672
  id: z.ZodString;
1673
+ transactionId: z.ZodString;
1630
1674
  createdAt: z.ZodString;
1631
1675
  createdBy: z.ZodString;
1676
+ createdByRole: z.ZodString;
1632
1677
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1633
1678
  filename: z.ZodString;
1634
1679
  originalFilename: z.ZodString;
@@ -1857,7 +1902,8 @@ export declare const EventDocument: z.ZodObject<{
1857
1902
  addressLine3?: string | null | undefined;
1858
1903
  postcodeOrZip?: string | null | undefined;
1859
1904
  }>]>>>;
1860
- createdAtLocation: z.ZodString;
1905
+ createdAtLocation: z.ZodOptional<z.ZodString>;
1906
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
1861
1907
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1862
1908
  originalActionId: z.ZodOptional<z.ZodString>;
1863
1909
  }, {
@@ -1866,8 +1912,10 @@ export declare const EventDocument: z.ZodObject<{
1866
1912
  type: "ARCHIVE";
1867
1913
  id: string;
1868
1914
  status: "Rejected" | "Requested" | "Accepted";
1915
+ transactionId: string;
1869
1916
  createdAt: string;
1870
1917
  createdBy: string;
1918
+ createdByRole: string;
1871
1919
  declaration: Record<string, string | number | boolean | {
1872
1920
  type: string;
1873
1921
  filename: string;
@@ -1906,7 +1954,6 @@ export declare const EventDocument: z.ZodObject<{
1906
1954
  filename: string;
1907
1955
  originalFilename: string;
1908
1956
  }[] | undefined>;
1909
- createdAtLocation: string;
1910
1957
  annotation?: Record<string, string | number | boolean | {
1911
1958
  type: string;
1912
1959
  filename: string;
@@ -1945,13 +1992,17 @@ export declare const EventDocument: z.ZodObject<{
1945
1992
  filename: string;
1946
1993
  originalFilename: string;
1947
1994
  }[] | undefined> | undefined;
1995
+ createdAtLocation?: string | undefined;
1996
+ updatedAtLocation?: string | undefined;
1948
1997
  originalActionId?: string | undefined;
1949
1998
  }, {
1950
1999
  type: "ARCHIVE";
1951
2000
  id: string;
1952
2001
  status: "Rejected" | "Requested" | "Accepted";
2002
+ transactionId: string;
1953
2003
  createdAt: string;
1954
2004
  createdBy: string;
2005
+ createdByRole: string;
1955
2006
  declaration: Record<string, string | number | boolean | {
1956
2007
  type: string;
1957
2008
  filename: string;
@@ -1990,7 +2041,6 @@ export declare const EventDocument: z.ZodObject<{
1990
2041
  filename: string;
1991
2042
  originalFilename: string;
1992
2043
  }[] | undefined>;
1993
- createdAtLocation: string;
1994
2044
  annotation?: Record<string, string | number | boolean | {
1995
2045
  type: string;
1996
2046
  filename: string;
@@ -2029,11 +2079,15 @@ export declare const EventDocument: z.ZodObject<{
2029
2079
  filename: string;
2030
2080
  originalFilename: string;
2031
2081
  }[] | undefined> | undefined;
2082
+ createdAtLocation?: string | undefined;
2083
+ updatedAtLocation?: string | undefined;
2032
2084
  originalActionId?: string | undefined;
2033
2085
  }>, z.ZodObject<z.objectUtil.extendShape<{
2034
2086
  id: z.ZodString;
2087
+ transactionId: z.ZodString;
2035
2088
  createdAt: z.ZodString;
2036
2089
  createdBy: z.ZodString;
2090
+ createdByRole: z.ZodString;
2037
2091
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2038
2092
  filename: z.ZodString;
2039
2093
  originalFilename: z.ZodString;
@@ -2262,7 +2316,8 @@ export declare const EventDocument: z.ZodObject<{
2262
2316
  addressLine3?: string | null | undefined;
2263
2317
  postcodeOrZip?: string | null | undefined;
2264
2318
  }>]>>>;
2265
- createdAtLocation: z.ZodString;
2319
+ createdAtLocation: z.ZodOptional<z.ZodString>;
2320
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
2266
2321
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2267
2322
  originalActionId: z.ZodOptional<z.ZodString>;
2268
2323
  }, {
@@ -2271,8 +2326,10 @@ export declare const EventDocument: z.ZodObject<{
2271
2326
  type: "NOTIFY";
2272
2327
  id: string;
2273
2328
  status: "Rejected" | "Requested" | "Accepted";
2329
+ transactionId: string;
2274
2330
  createdAt: string;
2275
2331
  createdBy: string;
2332
+ createdByRole: string;
2276
2333
  declaration: Record<string, string | number | boolean | {
2277
2334
  type: string;
2278
2335
  filename: string;
@@ -2311,7 +2368,6 @@ export declare const EventDocument: z.ZodObject<{
2311
2368
  filename: string;
2312
2369
  originalFilename: string;
2313
2370
  }[] | undefined>;
2314
- createdAtLocation: string;
2315
2371
  annotation?: Record<string, string | number | boolean | {
2316
2372
  type: string;
2317
2373
  filename: string;
@@ -2350,13 +2406,17 @@ export declare const EventDocument: z.ZodObject<{
2350
2406
  filename: string;
2351
2407
  originalFilename: string;
2352
2408
  }[] | undefined> | undefined;
2409
+ createdAtLocation?: string | undefined;
2410
+ updatedAtLocation?: string | undefined;
2353
2411
  originalActionId?: string | undefined;
2354
2412
  }, {
2355
2413
  type: "NOTIFY";
2356
2414
  id: string;
2357
2415
  status: "Rejected" | "Requested" | "Accepted";
2416
+ transactionId: string;
2358
2417
  createdAt: string;
2359
2418
  createdBy: string;
2419
+ createdByRole: string;
2360
2420
  declaration: Record<string, string | number | boolean | {
2361
2421
  type: string;
2362
2422
  filename: string;
@@ -2395,7 +2455,6 @@ export declare const EventDocument: z.ZodObject<{
2395
2455
  filename: string;
2396
2456
  originalFilename: string;
2397
2457
  }[] | undefined>;
2398
- createdAtLocation: string;
2399
2458
  annotation?: Record<string, string | number | boolean | {
2400
2459
  type: string;
2401
2460
  filename: string;
@@ -2434,11 +2493,15 @@ export declare const EventDocument: z.ZodObject<{
2434
2493
  filename: string;
2435
2494
  originalFilename: string;
2436
2495
  }[] | undefined> | undefined;
2496
+ createdAtLocation?: string | undefined;
2497
+ updatedAtLocation?: string | undefined;
2437
2498
  originalActionId?: string | undefined;
2438
2499
  }>, z.ZodObject<z.objectUtil.extendShape<{
2439
2500
  id: z.ZodString;
2501
+ transactionId: z.ZodString;
2440
2502
  createdAt: z.ZodString;
2441
2503
  createdBy: z.ZodString;
2504
+ createdByRole: z.ZodString;
2442
2505
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2443
2506
  filename: z.ZodString;
2444
2507
  originalFilename: z.ZodString;
@@ -2667,7 +2730,8 @@ export declare const EventDocument: z.ZodObject<{
2667
2730
  addressLine3?: string | null | undefined;
2668
2731
  postcodeOrZip?: string | null | undefined;
2669
2732
  }>]>>>;
2670
- createdAtLocation: z.ZodString;
2733
+ createdAtLocation: z.ZodOptional<z.ZodString>;
2734
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
2671
2735
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2672
2736
  originalActionId: z.ZodOptional<z.ZodString>;
2673
2737
  }, {
@@ -2677,8 +2741,10 @@ export declare const EventDocument: z.ZodObject<{
2677
2741
  type: "REGISTER";
2678
2742
  id: string;
2679
2743
  status: "Rejected" | "Requested" | "Accepted";
2744
+ transactionId: string;
2680
2745
  createdAt: string;
2681
2746
  createdBy: string;
2747
+ createdByRole: string;
2682
2748
  declaration: Record<string, string | number | boolean | {
2683
2749
  type: string;
2684
2750
  filename: string;
@@ -2717,7 +2783,6 @@ export declare const EventDocument: z.ZodObject<{
2717
2783
  filename: string;
2718
2784
  originalFilename: string;
2719
2785
  }[] | undefined>;
2720
- createdAtLocation: string;
2721
2786
  annotation?: Record<string, string | number | boolean | {
2722
2787
  type: string;
2723
2788
  filename: string;
@@ -2756,14 +2821,18 @@ export declare const EventDocument: z.ZodObject<{
2756
2821
  filename: string;
2757
2822
  originalFilename: string;
2758
2823
  }[] | undefined> | undefined;
2824
+ createdAtLocation?: string | undefined;
2825
+ updatedAtLocation?: string | undefined;
2759
2826
  originalActionId?: string | undefined;
2760
2827
  registrationNumber?: string | undefined;
2761
2828
  }, {
2762
2829
  type: "REGISTER";
2763
2830
  id: string;
2764
2831
  status: "Rejected" | "Requested" | "Accepted";
2832
+ transactionId: string;
2765
2833
  createdAt: string;
2766
2834
  createdBy: string;
2835
+ createdByRole: string;
2767
2836
  declaration: Record<string, string | number | boolean | {
2768
2837
  type: string;
2769
2838
  filename: string;
@@ -2802,7 +2871,6 @@ export declare const EventDocument: z.ZodObject<{
2802
2871
  filename: string;
2803
2872
  originalFilename: string;
2804
2873
  }[] | undefined>;
2805
- createdAtLocation: string;
2806
2874
  annotation?: Record<string, string | number | boolean | {
2807
2875
  type: string;
2808
2876
  filename: string;
@@ -2841,12 +2909,16 @@ export declare const EventDocument: z.ZodObject<{
2841
2909
  filename: string;
2842
2910
  originalFilename: string;
2843
2911
  }[] | undefined> | undefined;
2912
+ createdAtLocation?: string | undefined;
2913
+ updatedAtLocation?: string | undefined;
2844
2914
  originalActionId?: string | undefined;
2845
2915
  registrationNumber?: string | undefined;
2846
2916
  }>, z.ZodObject<z.objectUtil.extendShape<{
2847
2917
  id: z.ZodString;
2918
+ transactionId: z.ZodString;
2848
2919
  createdAt: z.ZodString;
2849
2920
  createdBy: z.ZodString;
2921
+ createdByRole: z.ZodString;
2850
2922
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2851
2923
  filename: z.ZodString;
2852
2924
  originalFilename: z.ZodString;
@@ -3075,7 +3147,8 @@ export declare const EventDocument: z.ZodObject<{
3075
3147
  addressLine3?: string | null | undefined;
3076
3148
  postcodeOrZip?: string | null | undefined;
3077
3149
  }>]>>>;
3078
- createdAtLocation: z.ZodString;
3150
+ createdAtLocation: z.ZodOptional<z.ZodString>;
3151
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
3079
3152
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3080
3153
  originalActionId: z.ZodOptional<z.ZodString>;
3081
3154
  }, {
@@ -3084,8 +3157,10 @@ export declare const EventDocument: z.ZodObject<{
3084
3157
  type: "DECLARE";
3085
3158
  id: string;
3086
3159
  status: "Rejected" | "Requested" | "Accepted";
3160
+ transactionId: string;
3087
3161
  createdAt: string;
3088
3162
  createdBy: string;
3163
+ createdByRole: string;
3089
3164
  declaration: Record<string, string | number | boolean | {
3090
3165
  type: string;
3091
3166
  filename: string;
@@ -3124,7 +3199,6 @@ export declare const EventDocument: z.ZodObject<{
3124
3199
  filename: string;
3125
3200
  originalFilename: string;
3126
3201
  }[] | undefined>;
3127
- createdAtLocation: string;
3128
3202
  annotation?: Record<string, string | number | boolean | {
3129
3203
  type: string;
3130
3204
  filename: string;
@@ -3163,13 +3237,17 @@ export declare const EventDocument: z.ZodObject<{
3163
3237
  filename: string;
3164
3238
  originalFilename: string;
3165
3239
  }[] | undefined> | undefined;
3240
+ createdAtLocation?: string | undefined;
3241
+ updatedAtLocation?: string | undefined;
3166
3242
  originalActionId?: string | undefined;
3167
3243
  }, {
3168
3244
  type: "DECLARE";
3169
3245
  id: string;
3170
3246
  status: "Rejected" | "Requested" | "Accepted";
3247
+ transactionId: string;
3171
3248
  createdAt: string;
3172
3249
  createdBy: string;
3250
+ createdByRole: string;
3173
3251
  declaration: Record<string, string | number | boolean | {
3174
3252
  type: string;
3175
3253
  filename: string;
@@ -3208,7 +3286,6 @@ export declare const EventDocument: z.ZodObject<{
3208
3286
  filename: string;
3209
3287
  originalFilename: string;
3210
3288
  }[] | undefined>;
3211
- createdAtLocation: string;
3212
3289
  annotation?: Record<string, string | number | boolean | {
3213
3290
  type: string;
3214
3291
  filename: string;
@@ -3247,11 +3324,15 @@ export declare const EventDocument: z.ZodObject<{
3247
3324
  filename: string;
3248
3325
  originalFilename: string;
3249
3326
  }[] | undefined> | undefined;
3327
+ createdAtLocation?: string | undefined;
3328
+ updatedAtLocation?: string | undefined;
3250
3329
  originalActionId?: string | undefined;
3251
3330
  }>, z.ZodObject<z.objectUtil.extendShape<{
3252
3331
  id: z.ZodString;
3332
+ transactionId: z.ZodString;
3253
3333
  createdAt: z.ZodString;
3254
3334
  createdBy: z.ZodString;
3335
+ createdByRole: z.ZodString;
3255
3336
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3256
3337
  filename: z.ZodString;
3257
3338
  originalFilename: z.ZodString;
@@ -3480,7 +3561,8 @@ export declare const EventDocument: z.ZodObject<{
3480
3561
  addressLine3?: string | null | undefined;
3481
3562
  postcodeOrZip?: string | null | undefined;
3482
3563
  }>]>>>;
3483
- createdAtLocation: z.ZodString;
3564
+ createdAtLocation: z.ZodOptional<z.ZodString>;
3565
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
3484
3566
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3485
3567
  originalActionId: z.ZodOptional<z.ZodString>;
3486
3568
  }, {
@@ -3490,8 +3572,10 @@ export declare const EventDocument: z.ZodObject<{
3490
3572
  type: "ASSIGN";
3491
3573
  id: string;
3492
3574
  status: "Rejected" | "Requested" | "Accepted";
3575
+ transactionId: string;
3493
3576
  createdAt: string;
3494
3577
  createdBy: string;
3578
+ createdByRole: string;
3495
3579
  declaration: Record<string, string | number | boolean | {
3496
3580
  type: string;
3497
3581
  filename: string;
@@ -3530,7 +3614,6 @@ export declare const EventDocument: z.ZodObject<{
3530
3614
  filename: string;
3531
3615
  originalFilename: string;
3532
3616
  }[] | undefined>;
3533
- createdAtLocation: string;
3534
3617
  assignedTo: string;
3535
3618
  annotation?: Record<string, string | number | boolean | {
3536
3619
  type: string;
@@ -3570,13 +3653,17 @@ export declare const EventDocument: z.ZodObject<{
3570
3653
  filename: string;
3571
3654
  originalFilename: string;
3572
3655
  }[] | undefined> | undefined;
3656
+ createdAtLocation?: string | undefined;
3657
+ updatedAtLocation?: string | undefined;
3573
3658
  originalActionId?: string | undefined;
3574
3659
  }, {
3575
3660
  type: "ASSIGN";
3576
3661
  id: string;
3577
3662
  status: "Rejected" | "Requested" | "Accepted";
3663
+ transactionId: string;
3578
3664
  createdAt: string;
3579
3665
  createdBy: string;
3666
+ createdByRole: string;
3580
3667
  declaration: Record<string, string | number | boolean | {
3581
3668
  type: string;
3582
3669
  filename: string;
@@ -3615,7 +3702,6 @@ export declare const EventDocument: z.ZodObject<{
3615
3702
  filename: string;
3616
3703
  originalFilename: string;
3617
3704
  }[] | undefined>;
3618
- createdAtLocation: string;
3619
3705
  assignedTo: string;
3620
3706
  annotation?: Record<string, string | number | boolean | {
3621
3707
  type: string;
@@ -3655,11 +3741,15 @@ export declare const EventDocument: z.ZodObject<{
3655
3741
  filename: string;
3656
3742
  originalFilename: string;
3657
3743
  }[] | undefined> | undefined;
3744
+ createdAtLocation?: string | undefined;
3745
+ updatedAtLocation?: string | undefined;
3658
3746
  originalActionId?: string | undefined;
3659
3747
  }>, z.ZodObject<z.objectUtil.extendShape<{
3660
3748
  id: z.ZodString;
3749
+ transactionId: z.ZodString;
3661
3750
  createdAt: z.ZodString;
3662
3751
  createdBy: z.ZodString;
3752
+ createdByRole: z.ZodString;
3663
3753
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3664
3754
  filename: z.ZodString;
3665
3755
  originalFilename: z.ZodString;
@@ -3888,7 +3978,8 @@ export declare const EventDocument: z.ZodObject<{
3888
3978
  addressLine3?: string | null | undefined;
3889
3979
  postcodeOrZip?: string | null | undefined;
3890
3980
  }>]>>>;
3891
- createdAtLocation: z.ZodString;
3981
+ createdAtLocation: z.ZodOptional<z.ZodString>;
3982
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
3892
3983
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3893
3984
  originalActionId: z.ZodOptional<z.ZodString>;
3894
3985
  }, {
@@ -3897,8 +3988,10 @@ export declare const EventDocument: z.ZodObject<{
3897
3988
  type: "REQUEST_CORRECTION";
3898
3989
  id: string;
3899
3990
  status: "Rejected" | "Requested" | "Accepted";
3991
+ transactionId: string;
3900
3992
  createdAt: string;
3901
3993
  createdBy: string;
3994
+ createdByRole: string;
3902
3995
  declaration: Record<string, string | number | boolean | {
3903
3996
  type: string;
3904
3997
  filename: string;
@@ -3937,7 +4030,6 @@ export declare const EventDocument: z.ZodObject<{
3937
4030
  filename: string;
3938
4031
  originalFilename: string;
3939
4032
  }[] | undefined>;
3940
- createdAtLocation: string;
3941
4033
  annotation?: Record<string, string | number | boolean | {
3942
4034
  type: string;
3943
4035
  filename: string;
@@ -3976,13 +4068,17 @@ export declare const EventDocument: z.ZodObject<{
3976
4068
  filename: string;
3977
4069
  originalFilename: string;
3978
4070
  }[] | undefined> | undefined;
4071
+ createdAtLocation?: string | undefined;
4072
+ updatedAtLocation?: string | undefined;
3979
4073
  originalActionId?: string | undefined;
3980
4074
  }, {
3981
4075
  type: "REQUEST_CORRECTION";
3982
4076
  id: string;
3983
4077
  status: "Rejected" | "Requested" | "Accepted";
4078
+ transactionId: string;
3984
4079
  createdAt: string;
3985
4080
  createdBy: string;
4081
+ createdByRole: string;
3986
4082
  declaration: Record<string, string | number | boolean | {
3987
4083
  type: string;
3988
4084
  filename: string;
@@ -4021,7 +4117,6 @@ export declare const EventDocument: z.ZodObject<{
4021
4117
  filename: string;
4022
4118
  originalFilename: string;
4023
4119
  }[] | undefined>;
4024
- createdAtLocation: string;
4025
4120
  annotation?: Record<string, string | number | boolean | {
4026
4121
  type: string;
4027
4122
  filename: string;
@@ -4060,11 +4155,15 @@ export declare const EventDocument: z.ZodObject<{
4060
4155
  filename: string;
4061
4156
  originalFilename: string;
4062
4157
  }[] | undefined> | undefined;
4158
+ createdAtLocation?: string | undefined;
4159
+ updatedAtLocation?: string | undefined;
4063
4160
  originalActionId?: string | undefined;
4064
4161
  }>, z.ZodObject<z.objectUtil.extendShape<{
4065
4162
  id: z.ZodString;
4163
+ transactionId: z.ZodString;
4066
4164
  createdAt: z.ZodString;
4067
4165
  createdBy: z.ZodString;
4166
+ createdByRole: z.ZodString;
4068
4167
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4069
4168
  filename: z.ZodString;
4070
4169
  originalFilename: z.ZodString;
@@ -4293,7 +4392,8 @@ export declare const EventDocument: z.ZodObject<{
4293
4392
  addressLine3?: string | null | undefined;
4294
4393
  postcodeOrZip?: string | null | undefined;
4295
4394
  }>]>>>;
4296
- createdAtLocation: z.ZodString;
4395
+ createdAtLocation: z.ZodOptional<z.ZodString>;
4396
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
4297
4397
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4298
4398
  originalActionId: z.ZodOptional<z.ZodString>;
4299
4399
  }, {
@@ -4303,8 +4403,10 @@ export declare const EventDocument: z.ZodObject<{
4303
4403
  type: "APPROVE_CORRECTION";
4304
4404
  id: string;
4305
4405
  status: "Rejected" | "Requested" | "Accepted";
4406
+ transactionId: string;
4306
4407
  createdAt: string;
4307
4408
  createdBy: string;
4409
+ createdByRole: string;
4308
4410
  declaration: Record<string, string | number | boolean | {
4309
4411
  type: string;
4310
4412
  filename: string;
@@ -4343,7 +4445,6 @@ export declare const EventDocument: z.ZodObject<{
4343
4445
  filename: string;
4344
4446
  originalFilename: string;
4345
4447
  }[] | undefined>;
4346
- createdAtLocation: string;
4347
4448
  requestId: string;
4348
4449
  annotation?: Record<string, string | number | boolean | {
4349
4450
  type: string;
@@ -4383,13 +4484,17 @@ export declare const EventDocument: z.ZodObject<{
4383
4484
  filename: string;
4384
4485
  originalFilename: string;
4385
4486
  }[] | undefined> | undefined;
4487
+ createdAtLocation?: string | undefined;
4488
+ updatedAtLocation?: string | undefined;
4386
4489
  originalActionId?: string | undefined;
4387
4490
  }, {
4388
4491
  type: "APPROVE_CORRECTION";
4389
4492
  id: string;
4390
4493
  status: "Rejected" | "Requested" | "Accepted";
4494
+ transactionId: string;
4391
4495
  createdAt: string;
4392
4496
  createdBy: string;
4497
+ createdByRole: string;
4393
4498
  declaration: Record<string, string | number | boolean | {
4394
4499
  type: string;
4395
4500
  filename: string;
@@ -4428,7 +4533,6 @@ export declare const EventDocument: z.ZodObject<{
4428
4533
  filename: string;
4429
4534
  originalFilename: string;
4430
4535
  }[] | undefined>;
4431
- createdAtLocation: string;
4432
4536
  requestId: string;
4433
4537
  annotation?: Record<string, string | number | boolean | {
4434
4538
  type: string;
@@ -4468,11 +4572,15 @@ export declare const EventDocument: z.ZodObject<{
4468
4572
  filename: string;
4469
4573
  originalFilename: string;
4470
4574
  }[] | undefined> | undefined;
4575
+ createdAtLocation?: string | undefined;
4576
+ updatedAtLocation?: string | undefined;
4471
4577
  originalActionId?: string | undefined;
4472
4578
  }>, z.ZodObject<z.objectUtil.extendShape<{
4473
4579
  id: z.ZodString;
4580
+ transactionId: z.ZodString;
4474
4581
  createdAt: z.ZodString;
4475
4582
  createdBy: z.ZodString;
4583
+ createdByRole: z.ZodString;
4476
4584
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4477
4585
  filename: z.ZodString;
4478
4586
  originalFilename: z.ZodString;
@@ -4701,7 +4809,8 @@ export declare const EventDocument: z.ZodObject<{
4701
4809
  addressLine3?: string | null | undefined;
4702
4810
  postcodeOrZip?: string | null | undefined;
4703
4811
  }>]>>>;
4704
- createdAtLocation: z.ZodString;
4812
+ createdAtLocation: z.ZodOptional<z.ZodString>;
4813
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
4705
4814
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4706
4815
  originalActionId: z.ZodOptional<z.ZodString>;
4707
4816
  }, {
@@ -4711,8 +4820,10 @@ export declare const EventDocument: z.ZodObject<{
4711
4820
  type: "REJECT_CORRECTION";
4712
4821
  id: string;
4713
4822
  status: "Rejected" | "Requested" | "Accepted";
4823
+ transactionId: string;
4714
4824
  createdAt: string;
4715
4825
  createdBy: string;
4826
+ createdByRole: string;
4716
4827
  declaration: Record<string, string | number | boolean | {
4717
4828
  type: string;
4718
4829
  filename: string;
@@ -4751,7 +4862,6 @@ export declare const EventDocument: z.ZodObject<{
4751
4862
  filename: string;
4752
4863
  originalFilename: string;
4753
4864
  }[] | undefined>;
4754
- createdAtLocation: string;
4755
4865
  requestId: string;
4756
4866
  annotation?: Record<string, string | number | boolean | {
4757
4867
  type: string;
@@ -4791,13 +4901,17 @@ export declare const EventDocument: z.ZodObject<{
4791
4901
  filename: string;
4792
4902
  originalFilename: string;
4793
4903
  }[] | undefined> | undefined;
4904
+ createdAtLocation?: string | undefined;
4905
+ updatedAtLocation?: string | undefined;
4794
4906
  originalActionId?: string | undefined;
4795
4907
  }, {
4796
4908
  type: "REJECT_CORRECTION";
4797
4909
  id: string;
4798
4910
  status: "Rejected" | "Requested" | "Accepted";
4911
+ transactionId: string;
4799
4912
  createdAt: string;
4800
4913
  createdBy: string;
4914
+ createdByRole: string;
4801
4915
  declaration: Record<string, string | number | boolean | {
4802
4916
  type: string;
4803
4917
  filename: string;
@@ -4836,7 +4950,6 @@ export declare const EventDocument: z.ZodObject<{
4836
4950
  filename: string;
4837
4951
  originalFilename: string;
4838
4952
  }[] | undefined>;
4839
- createdAtLocation: string;
4840
4953
  requestId: string;
4841
4954
  annotation?: Record<string, string | number | boolean | {
4842
4955
  type: string;
@@ -4876,11 +4989,15 @@ export declare const EventDocument: z.ZodObject<{
4876
4989
  filename: string;
4877
4990
  originalFilename: string;
4878
4991
  }[] | undefined> | undefined;
4992
+ createdAtLocation?: string | undefined;
4993
+ updatedAtLocation?: string | undefined;
4879
4994
  originalActionId?: string | undefined;
4880
4995
  }>, z.ZodObject<z.objectUtil.extendShape<{
4881
4996
  id: z.ZodString;
4997
+ transactionId: z.ZodString;
4882
4998
  createdAt: z.ZodString;
4883
4999
  createdBy: z.ZodString;
5000
+ createdByRole: z.ZodString;
4884
5001
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4885
5002
  filename: z.ZodString;
4886
5003
  originalFilename: z.ZodString;
@@ -5109,18 +5226,21 @@ export declare const EventDocument: z.ZodObject<{
5109
5226
  addressLine3?: string | null | undefined;
5110
5227
  postcodeOrZip?: string | null | undefined;
5111
5228
  }>]>>>;
5112
- createdAtLocation: z.ZodString;
5229
+ createdAtLocation: z.ZodOptional<z.ZodString>;
5230
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
5113
5231
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5114
5232
  originalActionId: z.ZodOptional<z.ZodString>;
5115
5233
  }, {
5116
5234
  type: z.ZodLiteral<"UNASSIGN">;
5117
- assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
5235
+ assignedTo: z.ZodLiteral<null>;
5118
5236
  }>, "strip", z.ZodTypeAny, {
5119
5237
  type: "UNASSIGN";
5120
5238
  id: string;
5121
5239
  status: "Rejected" | "Requested" | "Accepted";
5240
+ transactionId: string;
5122
5241
  createdAt: string;
5123
5242
  createdBy: string;
5243
+ createdByRole: string;
5124
5244
  declaration: Record<string, string | number | boolean | {
5125
5245
  type: string;
5126
5246
  filename: string;
@@ -5159,7 +5279,6 @@ export declare const EventDocument: z.ZodObject<{
5159
5279
  filename: string;
5160
5280
  originalFilename: string;
5161
5281
  }[] | undefined>;
5162
- createdAtLocation: string;
5163
5282
  assignedTo: null;
5164
5283
  annotation?: Record<string, string | number | boolean | {
5165
5284
  type: string;
@@ -5199,13 +5318,17 @@ export declare const EventDocument: z.ZodObject<{
5199
5318
  filename: string;
5200
5319
  originalFilename: string;
5201
5320
  }[] | undefined> | undefined;
5321
+ createdAtLocation?: string | undefined;
5322
+ updatedAtLocation?: string | undefined;
5202
5323
  originalActionId?: string | undefined;
5203
5324
  }, {
5204
5325
  type: "UNASSIGN";
5205
5326
  id: string;
5206
5327
  status: "Rejected" | "Requested" | "Accepted";
5328
+ transactionId: string;
5207
5329
  createdAt: string;
5208
5330
  createdBy: string;
5331
+ createdByRole: string;
5209
5332
  declaration: Record<string, string | number | boolean | {
5210
5333
  type: string;
5211
5334
  filename: string;
@@ -5244,7 +5367,7 @@ export declare const EventDocument: z.ZodObject<{
5244
5367
  filename: string;
5245
5368
  originalFilename: string;
5246
5369
  }[] | undefined>;
5247
- createdAtLocation: string;
5370
+ assignedTo: null;
5248
5371
  annotation?: Record<string, string | number | boolean | {
5249
5372
  type: string;
5250
5373
  filename: string;
@@ -5283,12 +5406,15 @@ export declare const EventDocument: z.ZodObject<{
5283
5406
  filename: string;
5284
5407
  originalFilename: string;
5285
5408
  }[] | undefined> | undefined;
5409
+ createdAtLocation?: string | undefined;
5410
+ updatedAtLocation?: string | undefined;
5286
5411
  originalActionId?: string | undefined;
5287
- assignedTo?: null | undefined;
5288
5412
  }>, z.ZodObject<z.objectUtil.extendShape<{
5289
5413
  id: z.ZodString;
5414
+ transactionId: z.ZodString;
5290
5415
  createdAt: z.ZodString;
5291
5416
  createdBy: z.ZodString;
5417
+ createdByRole: z.ZodString;
5292
5418
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5293
5419
  filename: z.ZodString;
5294
5420
  originalFilename: z.ZodString;
@@ -5517,7 +5643,8 @@ export declare const EventDocument: z.ZodObject<{
5517
5643
  addressLine3?: string | null | undefined;
5518
5644
  postcodeOrZip?: string | null | undefined;
5519
5645
  }>]>>>;
5520
- createdAtLocation: z.ZodString;
5646
+ createdAtLocation: z.ZodOptional<z.ZodString>;
5647
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
5521
5648
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5522
5649
  originalActionId: z.ZodOptional<z.ZodString>;
5523
5650
  }, {
@@ -5526,8 +5653,10 @@ export declare const EventDocument: z.ZodObject<{
5526
5653
  type: "PRINT_CERTIFICATE";
5527
5654
  id: string;
5528
5655
  status: "Rejected" | "Requested" | "Accepted";
5656
+ transactionId: string;
5529
5657
  createdAt: string;
5530
5658
  createdBy: string;
5659
+ createdByRole: string;
5531
5660
  declaration: Record<string, string | number | boolean | {
5532
5661
  type: string;
5533
5662
  filename: string;
@@ -5566,7 +5695,6 @@ export declare const EventDocument: z.ZodObject<{
5566
5695
  filename: string;
5567
5696
  originalFilename: string;
5568
5697
  }[] | undefined>;
5569
- createdAtLocation: string;
5570
5698
  annotation?: Record<string, string | number | boolean | {
5571
5699
  type: string;
5572
5700
  filename: string;
@@ -5605,13 +5733,17 @@ export declare const EventDocument: z.ZodObject<{
5605
5733
  filename: string;
5606
5734
  originalFilename: string;
5607
5735
  }[] | undefined> | undefined;
5736
+ createdAtLocation?: string | undefined;
5737
+ updatedAtLocation?: string | undefined;
5608
5738
  originalActionId?: string | undefined;
5609
5739
  }, {
5610
5740
  type: "PRINT_CERTIFICATE";
5611
5741
  id: string;
5612
5742
  status: "Rejected" | "Requested" | "Accepted";
5743
+ transactionId: string;
5613
5744
  createdAt: string;
5614
5745
  createdBy: string;
5746
+ createdByRole: string;
5615
5747
  declaration: Record<string, string | number | boolean | {
5616
5748
  type: string;
5617
5749
  filename: string;
@@ -5650,7 +5782,6 @@ export declare const EventDocument: z.ZodObject<{
5650
5782
  filename: string;
5651
5783
  originalFilename: string;
5652
5784
  }[] | undefined>;
5653
- createdAtLocation: string;
5654
5785
  annotation?: Record<string, string | number | boolean | {
5655
5786
  type: string;
5656
5787
  filename: string;
@@ -5689,11 +5820,15 @@ export declare const EventDocument: z.ZodObject<{
5689
5820
  filename: string;
5690
5821
  originalFilename: string;
5691
5822
  }[] | undefined> | undefined;
5823
+ createdAtLocation?: string | undefined;
5824
+ updatedAtLocation?: string | undefined;
5692
5825
  originalActionId?: string | undefined;
5693
5826
  }>, z.ZodObject<z.objectUtil.extendShape<{
5694
5827
  id: z.ZodString;
5828
+ transactionId: z.ZodString;
5695
5829
  createdAt: z.ZodString;
5696
5830
  createdBy: z.ZodString;
5831
+ createdByRole: z.ZodString;
5697
5832
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5698
5833
  filename: z.ZodString;
5699
5834
  originalFilename: z.ZodString;
@@ -5922,7 +6057,8 @@ export declare const EventDocument: z.ZodObject<{
5922
6057
  addressLine3?: string | null | undefined;
5923
6058
  postcodeOrZip?: string | null | undefined;
5924
6059
  }>]>>>;
5925
- createdAtLocation: z.ZodString;
6060
+ createdAtLocation: z.ZodOptional<z.ZodString>;
6061
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
5926
6062
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5927
6063
  originalActionId: z.ZodOptional<z.ZodString>;
5928
6064
  }, {
@@ -5931,8 +6067,10 @@ export declare const EventDocument: z.ZodObject<{
5931
6067
  type: "READ";
5932
6068
  id: string;
5933
6069
  status: "Rejected" | "Requested" | "Accepted";
6070
+ transactionId: string;
5934
6071
  createdAt: string;
5935
6072
  createdBy: string;
6073
+ createdByRole: string;
5936
6074
  declaration: Record<string, string | number | boolean | {
5937
6075
  type: string;
5938
6076
  filename: string;
@@ -5971,7 +6109,6 @@ export declare const EventDocument: z.ZodObject<{
5971
6109
  filename: string;
5972
6110
  originalFilename: string;
5973
6111
  }[] | undefined>;
5974
- createdAtLocation: string;
5975
6112
  annotation?: Record<string, string | number | boolean | {
5976
6113
  type: string;
5977
6114
  filename: string;
@@ -6010,13 +6147,17 @@ export declare const EventDocument: z.ZodObject<{
6010
6147
  filename: string;
6011
6148
  originalFilename: string;
6012
6149
  }[] | undefined> | undefined;
6150
+ createdAtLocation?: string | undefined;
6151
+ updatedAtLocation?: string | undefined;
6013
6152
  originalActionId?: string | undefined;
6014
6153
  }, {
6015
6154
  type: "READ";
6016
6155
  id: string;
6017
6156
  status: "Rejected" | "Requested" | "Accepted";
6157
+ transactionId: string;
6018
6158
  createdAt: string;
6019
6159
  createdBy: string;
6160
+ createdByRole: string;
6020
6161
  declaration: Record<string, string | number | boolean | {
6021
6162
  type: string;
6022
6163
  filename: string;
@@ -6055,7 +6196,6 @@ export declare const EventDocument: z.ZodObject<{
6055
6196
  filename: string;
6056
6197
  originalFilename: string;
6057
6198
  }[] | undefined>;
6058
- createdAtLocation: string;
6059
6199
  annotation?: Record<string, string | number | boolean | {
6060
6200
  type: string;
6061
6201
  filename: string;
@@ -6094,11 +6234,15 @@ export declare const EventDocument: z.ZodObject<{
6094
6234
  filename: string;
6095
6235
  originalFilename: string;
6096
6236
  }[] | undefined> | undefined;
6237
+ createdAtLocation?: string | undefined;
6238
+ updatedAtLocation?: string | undefined;
6097
6239
  originalActionId?: string | undefined;
6098
6240
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6099
6241
  id: z.ZodString;
6242
+ transactionId: z.ZodString;
6100
6243
  createdAt: z.ZodString;
6101
6244
  createdBy: z.ZodString;
6245
+ createdByRole: z.ZodString;
6102
6246
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6103
6247
  filename: z.ZodString;
6104
6248
  originalFilename: z.ZodString;
@@ -6327,23 +6471,28 @@ export declare const EventDocument: z.ZodObject<{
6327
6471
  addressLine3?: string | null | undefined;
6328
6472
  postcodeOrZip?: string | null | undefined;
6329
6473
  }>]>>>;
6330
- createdAtLocation: z.ZodString;
6474
+ createdAtLocation: z.ZodOptional<z.ZodString>;
6475
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
6331
6476
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6332
6477
  originalActionId: z.ZodOptional<z.ZodString>;
6333
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
6478
+ }, "createdBy" | "createdByRole" | "declaration" | "annotation" | "createdAtLocation">, {
6334
6479
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
6335
6480
  status: z.ZodLiteral<"Rejected">;
6336
6481
  }>, "strip", z.ZodTypeAny, {
6337
6482
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6338
6483
  id: string;
6339
6484
  status: "Rejected";
6485
+ transactionId: string;
6340
6486
  createdAt: string;
6487
+ updatedAtLocation?: string | undefined;
6341
6488
  originalActionId?: string | undefined;
6342
6489
  }, {
6343
6490
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6344
6491
  id: string;
6345
6492
  status: "Rejected";
6493
+ transactionId: string;
6346
6494
  createdAt: string;
6495
+ updatedAtLocation?: string | undefined;
6347
6496
  originalActionId?: string | undefined;
6348
6497
  }>]>, "many">;
6349
6498
  trackingId: z.ZodString;
@@ -6351,14 +6500,16 @@ export declare const EventDocument: z.ZodObject<{
6351
6500
  type: string;
6352
6501
  id: string;
6353
6502
  createdAt: string;
6354
- updatedAt: string;
6355
6503
  updatedAtLocation: string;
6504
+ updatedAt: string;
6356
6505
  actions: ({
6357
6506
  type: "ASSIGN";
6358
6507
  id: string;
6359
6508
  status: "Rejected" | "Requested" | "Accepted";
6509
+ transactionId: string;
6360
6510
  createdAt: string;
6361
6511
  createdBy: string;
6512
+ createdByRole: string;
6362
6513
  declaration: Record<string, string | number | boolean | {
6363
6514
  type: string;
6364
6515
  filename: string;
@@ -6397,7 +6548,6 @@ export declare const EventDocument: z.ZodObject<{
6397
6548
  filename: string;
6398
6549
  originalFilename: string;
6399
6550
  }[] | undefined>;
6400
- createdAtLocation: string;
6401
6551
  assignedTo: string;
6402
6552
  annotation?: Record<string, string | number | boolean | {
6403
6553
  type: string;
@@ -6437,13 +6587,17 @@ export declare const EventDocument: z.ZodObject<{
6437
6587
  filename: string;
6438
6588
  originalFilename: string;
6439
6589
  }[] | undefined> | undefined;
6590
+ createdAtLocation?: string | undefined;
6591
+ updatedAtLocation?: string | undefined;
6440
6592
  originalActionId?: string | undefined;
6441
6593
  } | {
6442
6594
  type: "UNASSIGN";
6443
6595
  id: string;
6444
6596
  status: "Rejected" | "Requested" | "Accepted";
6597
+ transactionId: string;
6445
6598
  createdAt: string;
6446
6599
  createdBy: string;
6600
+ createdByRole: string;
6447
6601
  declaration: Record<string, string | number | boolean | {
6448
6602
  type: string;
6449
6603
  filename: string;
@@ -6482,7 +6636,6 @@ export declare const EventDocument: z.ZodObject<{
6482
6636
  filename: string;
6483
6637
  originalFilename: string;
6484
6638
  }[] | undefined>;
6485
- createdAtLocation: string;
6486
6639
  assignedTo: null;
6487
6640
  annotation?: Record<string, string | number | boolean | {
6488
6641
  type: string;
@@ -6522,13 +6675,17 @@ export declare const EventDocument: z.ZodObject<{
6522
6675
  filename: string;
6523
6676
  originalFilename: string;
6524
6677
  }[] | undefined> | undefined;
6678
+ createdAtLocation?: string | undefined;
6679
+ updatedAtLocation?: string | undefined;
6525
6680
  originalActionId?: string | undefined;
6526
6681
  } | {
6527
6682
  type: "REGISTER";
6528
6683
  id: string;
6529
6684
  status: "Rejected" | "Requested" | "Accepted";
6685
+ transactionId: string;
6530
6686
  createdAt: string;
6531
6687
  createdBy: string;
6688
+ createdByRole: string;
6532
6689
  declaration: Record<string, string | number | boolean | {
6533
6690
  type: string;
6534
6691
  filename: string;
@@ -6567,7 +6724,6 @@ export declare const EventDocument: z.ZodObject<{
6567
6724
  filename: string;
6568
6725
  originalFilename: string;
6569
6726
  }[] | undefined>;
6570
- createdAtLocation: string;
6571
6727
  annotation?: Record<string, string | number | boolean | {
6572
6728
  type: string;
6573
6729
  filename: string;
@@ -6606,14 +6762,18 @@ export declare const EventDocument: z.ZodObject<{
6606
6762
  filename: string;
6607
6763
  originalFilename: string;
6608
6764
  }[] | undefined> | undefined;
6765
+ createdAtLocation?: string | undefined;
6766
+ updatedAtLocation?: string | undefined;
6609
6767
  originalActionId?: string | undefined;
6610
6768
  registrationNumber?: string | undefined;
6611
6769
  } | {
6612
6770
  type: "DECLARE";
6613
6771
  id: string;
6614
6772
  status: "Rejected" | "Requested" | "Accepted";
6773
+ transactionId: string;
6615
6774
  createdAt: string;
6616
6775
  createdBy: string;
6776
+ createdByRole: string;
6617
6777
  declaration: Record<string, string | number | boolean | {
6618
6778
  type: string;
6619
6779
  filename: string;
@@ -6652,7 +6812,6 @@ export declare const EventDocument: z.ZodObject<{
6652
6812
  filename: string;
6653
6813
  originalFilename: string;
6654
6814
  }[] | undefined>;
6655
- createdAtLocation: string;
6656
6815
  annotation?: Record<string, string | number | boolean | {
6657
6816
  type: string;
6658
6817
  filename: string;
@@ -6691,13 +6850,17 @@ export declare const EventDocument: z.ZodObject<{
6691
6850
  filename: string;
6692
6851
  originalFilename: string;
6693
6852
  }[] | undefined> | undefined;
6853
+ createdAtLocation?: string | undefined;
6854
+ updatedAtLocation?: string | undefined;
6694
6855
  originalActionId?: string | undefined;
6695
6856
  } | {
6696
6857
  type: "VALIDATE";
6697
6858
  id: string;
6698
6859
  status: "Rejected" | "Requested" | "Accepted";
6860
+ transactionId: string;
6699
6861
  createdAt: string;
6700
6862
  createdBy: string;
6863
+ createdByRole: string;
6701
6864
  declaration: Record<string, string | number | boolean | {
6702
6865
  type: string;
6703
6866
  filename: string;
@@ -6736,7 +6899,6 @@ export declare const EventDocument: z.ZodObject<{
6736
6899
  filename: string;
6737
6900
  originalFilename: string;
6738
6901
  }[] | undefined>;
6739
- createdAtLocation: string;
6740
6902
  annotation?: Record<string, string | number | boolean | {
6741
6903
  type: string;
6742
6904
  filename: string;
@@ -6775,13 +6937,17 @@ export declare const EventDocument: z.ZodObject<{
6775
6937
  filename: string;
6776
6938
  originalFilename: string;
6777
6939
  }[] | undefined> | undefined;
6940
+ createdAtLocation?: string | undefined;
6941
+ updatedAtLocation?: string | undefined;
6778
6942
  originalActionId?: string | undefined;
6779
6943
  } | {
6780
6944
  type: "REJECT";
6781
6945
  id: string;
6782
6946
  status: "Rejected" | "Requested" | "Accepted";
6947
+ transactionId: string;
6783
6948
  createdAt: string;
6784
6949
  createdBy: string;
6950
+ createdByRole: string;
6785
6951
  declaration: Record<string, string | number | boolean | {
6786
6952
  type: string;
6787
6953
  filename: string;
@@ -6820,7 +6986,6 @@ export declare const EventDocument: z.ZodObject<{
6820
6986
  filename: string;
6821
6987
  originalFilename: string;
6822
6988
  }[] | undefined>;
6823
- createdAtLocation: string;
6824
6989
  annotation?: Record<string, string | number | boolean | {
6825
6990
  type: string;
6826
6991
  filename: string;
@@ -6859,13 +7024,17 @@ export declare const EventDocument: z.ZodObject<{
6859
7024
  filename: string;
6860
7025
  originalFilename: string;
6861
7026
  }[] | undefined> | undefined;
7027
+ createdAtLocation?: string | undefined;
7028
+ updatedAtLocation?: string | undefined;
6862
7029
  originalActionId?: string | undefined;
6863
7030
  } | {
6864
7031
  type: "MARKED_AS_DUPLICATE";
6865
7032
  id: string;
6866
7033
  status: "Rejected" | "Requested" | "Accepted";
7034
+ transactionId: string;
6867
7035
  createdAt: string;
6868
7036
  createdBy: string;
7037
+ createdByRole: string;
6869
7038
  declaration: Record<string, string | number | boolean | {
6870
7039
  type: string;
6871
7040
  filename: string;
@@ -6904,7 +7073,6 @@ export declare const EventDocument: z.ZodObject<{
6904
7073
  filename: string;
6905
7074
  originalFilename: string;
6906
7075
  }[] | undefined>;
6907
- createdAtLocation: string;
6908
7076
  annotation?: Record<string, string | number | boolean | {
6909
7077
  type: string;
6910
7078
  filename: string;
@@ -6943,13 +7111,17 @@ export declare const EventDocument: z.ZodObject<{
6943
7111
  filename: string;
6944
7112
  originalFilename: string;
6945
7113
  }[] | undefined> | undefined;
7114
+ createdAtLocation?: string | undefined;
7115
+ updatedAtLocation?: string | undefined;
6946
7116
  originalActionId?: string | undefined;
6947
7117
  } | {
6948
7118
  type: "ARCHIVE";
6949
7119
  id: string;
6950
7120
  status: "Rejected" | "Requested" | "Accepted";
7121
+ transactionId: string;
6951
7122
  createdAt: string;
6952
7123
  createdBy: string;
7124
+ createdByRole: string;
6953
7125
  declaration: Record<string, string | number | boolean | {
6954
7126
  type: string;
6955
7127
  filename: string;
@@ -6988,7 +7160,6 @@ export declare const EventDocument: z.ZodObject<{
6988
7160
  filename: string;
6989
7161
  originalFilename: string;
6990
7162
  }[] | undefined>;
6991
- createdAtLocation: string;
6992
7163
  annotation?: Record<string, string | number | boolean | {
6993
7164
  type: string;
6994
7165
  filename: string;
@@ -7027,13 +7198,17 @@ export declare const EventDocument: z.ZodObject<{
7027
7198
  filename: string;
7028
7199
  originalFilename: string;
7029
7200
  }[] | undefined> | undefined;
7201
+ createdAtLocation?: string | undefined;
7202
+ updatedAtLocation?: string | undefined;
7030
7203
  originalActionId?: string | undefined;
7031
7204
  } | {
7032
7205
  type: "CREATE";
7033
7206
  id: string;
7034
7207
  status: "Rejected" | "Requested" | "Accepted";
7208
+ transactionId: string;
7035
7209
  createdAt: string;
7036
7210
  createdBy: string;
7211
+ createdByRole: string;
7037
7212
  declaration: Record<string, string | number | boolean | {
7038
7213
  type: string;
7039
7214
  filename: string;
@@ -7072,7 +7247,6 @@ export declare const EventDocument: z.ZodObject<{
7072
7247
  filename: string;
7073
7248
  originalFilename: string;
7074
7249
  }[] | undefined>;
7075
- createdAtLocation: string;
7076
7250
  annotation?: Record<string, string | number | boolean | {
7077
7251
  type: string;
7078
7252
  filename: string;
@@ -7111,13 +7285,17 @@ export declare const EventDocument: z.ZodObject<{
7111
7285
  filename: string;
7112
7286
  originalFilename: string;
7113
7287
  }[] | undefined> | undefined;
7288
+ createdAtLocation?: string | undefined;
7289
+ updatedAtLocation?: string | undefined;
7114
7290
  originalActionId?: string | undefined;
7115
7291
  } | {
7116
7292
  type: "NOTIFY";
7117
7293
  id: string;
7118
7294
  status: "Rejected" | "Requested" | "Accepted";
7295
+ transactionId: string;
7119
7296
  createdAt: string;
7120
7297
  createdBy: string;
7298
+ createdByRole: string;
7121
7299
  declaration: Record<string, string | number | boolean | {
7122
7300
  type: string;
7123
7301
  filename: string;
@@ -7156,7 +7334,6 @@ export declare const EventDocument: z.ZodObject<{
7156
7334
  filename: string;
7157
7335
  originalFilename: string;
7158
7336
  }[] | undefined>;
7159
- createdAtLocation: string;
7160
7337
  annotation?: Record<string, string | number | boolean | {
7161
7338
  type: string;
7162
7339
  filename: string;
@@ -7195,13 +7372,17 @@ export declare const EventDocument: z.ZodObject<{
7195
7372
  filename: string;
7196
7373
  originalFilename: string;
7197
7374
  }[] | undefined> | undefined;
7375
+ createdAtLocation?: string | undefined;
7376
+ updatedAtLocation?: string | undefined;
7198
7377
  originalActionId?: string | undefined;
7199
7378
  } | {
7200
7379
  type: "PRINT_CERTIFICATE";
7201
7380
  id: string;
7202
7381
  status: "Rejected" | "Requested" | "Accepted";
7382
+ transactionId: string;
7203
7383
  createdAt: string;
7204
7384
  createdBy: string;
7385
+ createdByRole: string;
7205
7386
  declaration: Record<string, string | number | boolean | {
7206
7387
  type: string;
7207
7388
  filename: string;
@@ -7240,7 +7421,6 @@ export declare const EventDocument: z.ZodObject<{
7240
7421
  filename: string;
7241
7422
  originalFilename: string;
7242
7423
  }[] | undefined>;
7243
- createdAtLocation: string;
7244
7424
  annotation?: Record<string, string | number | boolean | {
7245
7425
  type: string;
7246
7426
  filename: string;
@@ -7279,13 +7459,17 @@ export declare const EventDocument: z.ZodObject<{
7279
7459
  filename: string;
7280
7460
  originalFilename: string;
7281
7461
  }[] | undefined> | undefined;
7462
+ createdAtLocation?: string | undefined;
7463
+ updatedAtLocation?: string | undefined;
7282
7464
  originalActionId?: string | undefined;
7283
7465
  } | {
7284
7466
  type: "REQUEST_CORRECTION";
7285
7467
  id: string;
7286
7468
  status: "Rejected" | "Requested" | "Accepted";
7469
+ transactionId: string;
7287
7470
  createdAt: string;
7288
7471
  createdBy: string;
7472
+ createdByRole: string;
7289
7473
  declaration: Record<string, string | number | boolean | {
7290
7474
  type: string;
7291
7475
  filename: string;
@@ -7324,7 +7508,6 @@ export declare const EventDocument: z.ZodObject<{
7324
7508
  filename: string;
7325
7509
  originalFilename: string;
7326
7510
  }[] | undefined>;
7327
- createdAtLocation: string;
7328
7511
  annotation?: Record<string, string | number | boolean | {
7329
7512
  type: string;
7330
7513
  filename: string;
@@ -7363,13 +7546,17 @@ export declare const EventDocument: z.ZodObject<{
7363
7546
  filename: string;
7364
7547
  originalFilename: string;
7365
7548
  }[] | undefined> | undefined;
7549
+ createdAtLocation?: string | undefined;
7550
+ updatedAtLocation?: string | undefined;
7366
7551
  originalActionId?: string | undefined;
7367
7552
  } | {
7368
7553
  type: "APPROVE_CORRECTION";
7369
7554
  id: string;
7370
7555
  status: "Rejected" | "Requested" | "Accepted";
7556
+ transactionId: string;
7371
7557
  createdAt: string;
7372
7558
  createdBy: string;
7559
+ createdByRole: string;
7373
7560
  declaration: Record<string, string | number | boolean | {
7374
7561
  type: string;
7375
7562
  filename: string;
@@ -7408,7 +7595,6 @@ export declare const EventDocument: z.ZodObject<{
7408
7595
  filename: string;
7409
7596
  originalFilename: string;
7410
7597
  }[] | undefined>;
7411
- createdAtLocation: string;
7412
7598
  requestId: string;
7413
7599
  annotation?: Record<string, string | number | boolean | {
7414
7600
  type: string;
@@ -7448,13 +7634,17 @@ export declare const EventDocument: z.ZodObject<{
7448
7634
  filename: string;
7449
7635
  originalFilename: string;
7450
7636
  }[] | undefined> | undefined;
7637
+ createdAtLocation?: string | undefined;
7638
+ updatedAtLocation?: string | undefined;
7451
7639
  originalActionId?: string | undefined;
7452
7640
  } | {
7453
7641
  type: "REJECT_CORRECTION";
7454
7642
  id: string;
7455
7643
  status: "Rejected" | "Requested" | "Accepted";
7644
+ transactionId: string;
7456
7645
  createdAt: string;
7457
7646
  createdBy: string;
7647
+ createdByRole: string;
7458
7648
  declaration: Record<string, string | number | boolean | {
7459
7649
  type: string;
7460
7650
  filename: string;
@@ -7493,7 +7683,6 @@ export declare const EventDocument: z.ZodObject<{
7493
7683
  filename: string;
7494
7684
  originalFilename: string;
7495
7685
  }[] | undefined>;
7496
- createdAtLocation: string;
7497
7686
  requestId: string;
7498
7687
  annotation?: Record<string, string | number | boolean | {
7499
7688
  type: string;
@@ -7533,13 +7722,17 @@ export declare const EventDocument: z.ZodObject<{
7533
7722
  filename: string;
7534
7723
  originalFilename: string;
7535
7724
  }[] | undefined> | undefined;
7725
+ createdAtLocation?: string | undefined;
7726
+ updatedAtLocation?: string | undefined;
7536
7727
  originalActionId?: string | undefined;
7537
7728
  } | {
7538
7729
  type: "READ";
7539
7730
  id: string;
7540
7731
  status: "Rejected" | "Requested" | "Accepted";
7732
+ transactionId: string;
7541
7733
  createdAt: string;
7542
7734
  createdBy: string;
7735
+ createdByRole: string;
7543
7736
  declaration: Record<string, string | number | boolean | {
7544
7737
  type: string;
7545
7738
  filename: string;
@@ -7578,7 +7771,6 @@ export declare const EventDocument: z.ZodObject<{
7578
7771
  filename: string;
7579
7772
  originalFilename: string;
7580
7773
  }[] | undefined>;
7581
- createdAtLocation: string;
7582
7774
  annotation?: Record<string, string | number | boolean | {
7583
7775
  type: string;
7584
7776
  filename: string;
@@ -7617,27 +7809,36 @@ export declare const EventDocument: z.ZodObject<{
7617
7809
  filename: string;
7618
7810
  originalFilename: string;
7619
7811
  }[] | undefined> | undefined;
7812
+ createdAtLocation?: string | undefined;
7813
+ updatedAtLocation?: string | undefined;
7620
7814
  originalActionId?: string | undefined;
7621
7815
  } | {
7622
7816
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7623
7817
  id: string;
7624
7818
  status: "Rejected";
7819
+ transactionId: string;
7625
7820
  createdAt: string;
7821
+ updatedAtLocation?: string | undefined;
7626
7822
  originalActionId?: string | undefined;
7627
7823
  })[];
7628
7824
  trackingId: string;
7825
+ dateOfEvent?: {
7826
+ fieldId: string;
7827
+ } | undefined;
7629
7828
  }, {
7630
7829
  type: string;
7631
7830
  id: string;
7632
7831
  createdAt: string;
7633
- updatedAt: string;
7634
7832
  updatedAtLocation: string;
7833
+ updatedAt: string;
7635
7834
  actions: ({
7636
7835
  type: "ASSIGN";
7637
7836
  id: string;
7638
7837
  status: "Rejected" | "Requested" | "Accepted";
7838
+ transactionId: string;
7639
7839
  createdAt: string;
7640
7840
  createdBy: string;
7841
+ createdByRole: string;
7641
7842
  declaration: Record<string, string | number | boolean | {
7642
7843
  type: string;
7643
7844
  filename: string;
@@ -7676,7 +7877,6 @@ export declare const EventDocument: z.ZodObject<{
7676
7877
  filename: string;
7677
7878
  originalFilename: string;
7678
7879
  }[] | undefined>;
7679
- createdAtLocation: string;
7680
7880
  assignedTo: string;
7681
7881
  annotation?: Record<string, string | number | boolean | {
7682
7882
  type: string;
@@ -7716,13 +7916,17 @@ export declare const EventDocument: z.ZodObject<{
7716
7916
  filename: string;
7717
7917
  originalFilename: string;
7718
7918
  }[] | undefined> | undefined;
7919
+ createdAtLocation?: string | undefined;
7920
+ updatedAtLocation?: string | undefined;
7719
7921
  originalActionId?: string | undefined;
7720
7922
  } | {
7721
7923
  type: "UNASSIGN";
7722
7924
  id: string;
7723
7925
  status: "Rejected" | "Requested" | "Accepted";
7926
+ transactionId: string;
7724
7927
  createdAt: string;
7725
7928
  createdBy: string;
7929
+ createdByRole: string;
7726
7930
  declaration: Record<string, string | number | boolean | {
7727
7931
  type: string;
7728
7932
  filename: string;
@@ -7761,7 +7965,7 @@ export declare const EventDocument: z.ZodObject<{
7761
7965
  filename: string;
7762
7966
  originalFilename: string;
7763
7967
  }[] | undefined>;
7764
- createdAtLocation: string;
7968
+ assignedTo: null;
7765
7969
  annotation?: Record<string, string | number | boolean | {
7766
7970
  type: string;
7767
7971
  filename: string;
@@ -7800,14 +8004,17 @@ export declare const EventDocument: z.ZodObject<{
7800
8004
  filename: string;
7801
8005
  originalFilename: string;
7802
8006
  }[] | undefined> | undefined;
8007
+ createdAtLocation?: string | undefined;
8008
+ updatedAtLocation?: string | undefined;
7803
8009
  originalActionId?: string | undefined;
7804
- assignedTo?: null | undefined;
7805
8010
  } | {
7806
8011
  type: "REGISTER";
7807
8012
  id: string;
7808
8013
  status: "Rejected" | "Requested" | "Accepted";
8014
+ transactionId: string;
7809
8015
  createdAt: string;
7810
8016
  createdBy: string;
8017
+ createdByRole: string;
7811
8018
  declaration: Record<string, string | number | boolean | {
7812
8019
  type: string;
7813
8020
  filename: string;
@@ -7846,7 +8053,6 @@ export declare const EventDocument: z.ZodObject<{
7846
8053
  filename: string;
7847
8054
  originalFilename: string;
7848
8055
  }[] | undefined>;
7849
- createdAtLocation: string;
7850
8056
  annotation?: Record<string, string | number | boolean | {
7851
8057
  type: string;
7852
8058
  filename: string;
@@ -7885,14 +8091,18 @@ export declare const EventDocument: z.ZodObject<{
7885
8091
  filename: string;
7886
8092
  originalFilename: string;
7887
8093
  }[] | undefined> | undefined;
8094
+ createdAtLocation?: string | undefined;
8095
+ updatedAtLocation?: string | undefined;
7888
8096
  originalActionId?: string | undefined;
7889
8097
  registrationNumber?: string | undefined;
7890
8098
  } | {
7891
8099
  type: "DECLARE";
7892
8100
  id: string;
7893
8101
  status: "Rejected" | "Requested" | "Accepted";
8102
+ transactionId: string;
7894
8103
  createdAt: string;
7895
8104
  createdBy: string;
8105
+ createdByRole: string;
7896
8106
  declaration: Record<string, string | number | boolean | {
7897
8107
  type: string;
7898
8108
  filename: string;
@@ -7931,7 +8141,6 @@ export declare const EventDocument: z.ZodObject<{
7931
8141
  filename: string;
7932
8142
  originalFilename: string;
7933
8143
  }[] | undefined>;
7934
- createdAtLocation: string;
7935
8144
  annotation?: Record<string, string | number | boolean | {
7936
8145
  type: string;
7937
8146
  filename: string;
@@ -7970,13 +8179,17 @@ export declare const EventDocument: z.ZodObject<{
7970
8179
  filename: string;
7971
8180
  originalFilename: string;
7972
8181
  }[] | undefined> | undefined;
8182
+ createdAtLocation?: string | undefined;
8183
+ updatedAtLocation?: string | undefined;
7973
8184
  originalActionId?: string | undefined;
7974
8185
  } | {
7975
8186
  type: "VALIDATE";
7976
8187
  id: string;
7977
8188
  status: "Rejected" | "Requested" | "Accepted";
8189
+ transactionId: string;
7978
8190
  createdAt: string;
7979
8191
  createdBy: string;
8192
+ createdByRole: string;
7980
8193
  declaration: Record<string, string | number | boolean | {
7981
8194
  type: string;
7982
8195
  filename: string;
@@ -8015,7 +8228,6 @@ export declare const EventDocument: z.ZodObject<{
8015
8228
  filename: string;
8016
8229
  originalFilename: string;
8017
8230
  }[] | undefined>;
8018
- createdAtLocation: string;
8019
8231
  annotation?: Record<string, string | number | boolean | {
8020
8232
  type: string;
8021
8233
  filename: string;
@@ -8054,13 +8266,17 @@ export declare const EventDocument: z.ZodObject<{
8054
8266
  filename: string;
8055
8267
  originalFilename: string;
8056
8268
  }[] | undefined> | undefined;
8269
+ createdAtLocation?: string | undefined;
8270
+ updatedAtLocation?: string | undefined;
8057
8271
  originalActionId?: string | undefined;
8058
8272
  } | {
8059
8273
  type: "REJECT";
8060
8274
  id: string;
8061
8275
  status: "Rejected" | "Requested" | "Accepted";
8276
+ transactionId: string;
8062
8277
  createdAt: string;
8063
8278
  createdBy: string;
8279
+ createdByRole: string;
8064
8280
  declaration: Record<string, string | number | boolean | {
8065
8281
  type: string;
8066
8282
  filename: string;
@@ -8099,7 +8315,6 @@ export declare const EventDocument: z.ZodObject<{
8099
8315
  filename: string;
8100
8316
  originalFilename: string;
8101
8317
  }[] | undefined>;
8102
- createdAtLocation: string;
8103
8318
  annotation?: Record<string, string | number | boolean | {
8104
8319
  type: string;
8105
8320
  filename: string;
@@ -8138,13 +8353,17 @@ export declare const EventDocument: z.ZodObject<{
8138
8353
  filename: string;
8139
8354
  originalFilename: string;
8140
8355
  }[] | undefined> | undefined;
8356
+ createdAtLocation?: string | undefined;
8357
+ updatedAtLocation?: string | undefined;
8141
8358
  originalActionId?: string | undefined;
8142
8359
  } | {
8143
8360
  type: "MARKED_AS_DUPLICATE";
8144
8361
  id: string;
8145
8362
  status: "Rejected" | "Requested" | "Accepted";
8363
+ transactionId: string;
8146
8364
  createdAt: string;
8147
8365
  createdBy: string;
8366
+ createdByRole: string;
8148
8367
  declaration: Record<string, string | number | boolean | {
8149
8368
  type: string;
8150
8369
  filename: string;
@@ -8183,7 +8402,6 @@ export declare const EventDocument: z.ZodObject<{
8183
8402
  filename: string;
8184
8403
  originalFilename: string;
8185
8404
  }[] | undefined>;
8186
- createdAtLocation: string;
8187
8405
  annotation?: Record<string, string | number | boolean | {
8188
8406
  type: string;
8189
8407
  filename: string;
@@ -8222,13 +8440,17 @@ export declare const EventDocument: z.ZodObject<{
8222
8440
  filename: string;
8223
8441
  originalFilename: string;
8224
8442
  }[] | undefined> | undefined;
8443
+ createdAtLocation?: string | undefined;
8444
+ updatedAtLocation?: string | undefined;
8225
8445
  originalActionId?: string | undefined;
8226
8446
  } | {
8227
8447
  type: "ARCHIVE";
8228
8448
  id: string;
8229
8449
  status: "Rejected" | "Requested" | "Accepted";
8450
+ transactionId: string;
8230
8451
  createdAt: string;
8231
8452
  createdBy: string;
8453
+ createdByRole: string;
8232
8454
  declaration: Record<string, string | number | boolean | {
8233
8455
  type: string;
8234
8456
  filename: string;
@@ -8267,7 +8489,6 @@ export declare const EventDocument: z.ZodObject<{
8267
8489
  filename: string;
8268
8490
  originalFilename: string;
8269
8491
  }[] | undefined>;
8270
- createdAtLocation: string;
8271
8492
  annotation?: Record<string, string | number | boolean | {
8272
8493
  type: string;
8273
8494
  filename: string;
@@ -8306,13 +8527,17 @@ export declare const EventDocument: z.ZodObject<{
8306
8527
  filename: string;
8307
8528
  originalFilename: string;
8308
8529
  }[] | undefined> | undefined;
8530
+ createdAtLocation?: string | undefined;
8531
+ updatedAtLocation?: string | undefined;
8309
8532
  originalActionId?: string | undefined;
8310
8533
  } | {
8311
8534
  type: "CREATE";
8312
8535
  id: string;
8313
8536
  status: "Rejected" | "Requested" | "Accepted";
8537
+ transactionId: string;
8314
8538
  createdAt: string;
8315
8539
  createdBy: string;
8540
+ createdByRole: string;
8316
8541
  declaration: Record<string, string | number | boolean | {
8317
8542
  type: string;
8318
8543
  filename: string;
@@ -8351,7 +8576,6 @@ export declare const EventDocument: z.ZodObject<{
8351
8576
  filename: string;
8352
8577
  originalFilename: string;
8353
8578
  }[] | undefined>;
8354
- createdAtLocation: string;
8355
8579
  annotation?: Record<string, string | number | boolean | {
8356
8580
  type: string;
8357
8581
  filename: string;
@@ -8390,13 +8614,17 @@ export declare const EventDocument: z.ZodObject<{
8390
8614
  filename: string;
8391
8615
  originalFilename: string;
8392
8616
  }[] | undefined> | undefined;
8617
+ createdAtLocation?: string | undefined;
8618
+ updatedAtLocation?: string | undefined;
8393
8619
  originalActionId?: string | undefined;
8394
8620
  } | {
8395
8621
  type: "NOTIFY";
8396
8622
  id: string;
8397
8623
  status: "Rejected" | "Requested" | "Accepted";
8624
+ transactionId: string;
8398
8625
  createdAt: string;
8399
8626
  createdBy: string;
8627
+ createdByRole: string;
8400
8628
  declaration: Record<string, string | number | boolean | {
8401
8629
  type: string;
8402
8630
  filename: string;
@@ -8435,7 +8663,6 @@ export declare const EventDocument: z.ZodObject<{
8435
8663
  filename: string;
8436
8664
  originalFilename: string;
8437
8665
  }[] | undefined>;
8438
- createdAtLocation: string;
8439
8666
  annotation?: Record<string, string | number | boolean | {
8440
8667
  type: string;
8441
8668
  filename: string;
@@ -8474,13 +8701,17 @@ export declare const EventDocument: z.ZodObject<{
8474
8701
  filename: string;
8475
8702
  originalFilename: string;
8476
8703
  }[] | undefined> | undefined;
8704
+ createdAtLocation?: string | undefined;
8705
+ updatedAtLocation?: string | undefined;
8477
8706
  originalActionId?: string | undefined;
8478
8707
  } | {
8479
8708
  type: "PRINT_CERTIFICATE";
8480
8709
  id: string;
8481
8710
  status: "Rejected" | "Requested" | "Accepted";
8711
+ transactionId: string;
8482
8712
  createdAt: string;
8483
8713
  createdBy: string;
8714
+ createdByRole: string;
8484
8715
  declaration: Record<string, string | number | boolean | {
8485
8716
  type: string;
8486
8717
  filename: string;
@@ -8519,7 +8750,6 @@ export declare const EventDocument: z.ZodObject<{
8519
8750
  filename: string;
8520
8751
  originalFilename: string;
8521
8752
  }[] | undefined>;
8522
- createdAtLocation: string;
8523
8753
  annotation?: Record<string, string | number | boolean | {
8524
8754
  type: string;
8525
8755
  filename: string;
@@ -8558,13 +8788,17 @@ export declare const EventDocument: z.ZodObject<{
8558
8788
  filename: string;
8559
8789
  originalFilename: string;
8560
8790
  }[] | undefined> | undefined;
8791
+ createdAtLocation?: string | undefined;
8792
+ updatedAtLocation?: string | undefined;
8561
8793
  originalActionId?: string | undefined;
8562
8794
  } | {
8563
8795
  type: "REQUEST_CORRECTION";
8564
8796
  id: string;
8565
8797
  status: "Rejected" | "Requested" | "Accepted";
8798
+ transactionId: string;
8566
8799
  createdAt: string;
8567
8800
  createdBy: string;
8801
+ createdByRole: string;
8568
8802
  declaration: Record<string, string | number | boolean | {
8569
8803
  type: string;
8570
8804
  filename: string;
@@ -8603,7 +8837,6 @@ export declare const EventDocument: z.ZodObject<{
8603
8837
  filename: string;
8604
8838
  originalFilename: string;
8605
8839
  }[] | undefined>;
8606
- createdAtLocation: string;
8607
8840
  annotation?: Record<string, string | number | boolean | {
8608
8841
  type: string;
8609
8842
  filename: string;
@@ -8642,13 +8875,17 @@ export declare const EventDocument: z.ZodObject<{
8642
8875
  filename: string;
8643
8876
  originalFilename: string;
8644
8877
  }[] | undefined> | undefined;
8878
+ createdAtLocation?: string | undefined;
8879
+ updatedAtLocation?: string | undefined;
8645
8880
  originalActionId?: string | undefined;
8646
8881
  } | {
8647
8882
  type: "APPROVE_CORRECTION";
8648
8883
  id: string;
8649
8884
  status: "Rejected" | "Requested" | "Accepted";
8885
+ transactionId: string;
8650
8886
  createdAt: string;
8651
8887
  createdBy: string;
8888
+ createdByRole: string;
8652
8889
  declaration: Record<string, string | number | boolean | {
8653
8890
  type: string;
8654
8891
  filename: string;
@@ -8687,7 +8924,6 @@ export declare const EventDocument: z.ZodObject<{
8687
8924
  filename: string;
8688
8925
  originalFilename: string;
8689
8926
  }[] | undefined>;
8690
- createdAtLocation: string;
8691
8927
  requestId: string;
8692
8928
  annotation?: Record<string, string | number | boolean | {
8693
8929
  type: string;
@@ -8727,13 +8963,17 @@ export declare const EventDocument: z.ZodObject<{
8727
8963
  filename: string;
8728
8964
  originalFilename: string;
8729
8965
  }[] | undefined> | undefined;
8966
+ createdAtLocation?: string | undefined;
8967
+ updatedAtLocation?: string | undefined;
8730
8968
  originalActionId?: string | undefined;
8731
8969
  } | {
8732
8970
  type: "REJECT_CORRECTION";
8733
8971
  id: string;
8734
8972
  status: "Rejected" | "Requested" | "Accepted";
8973
+ transactionId: string;
8735
8974
  createdAt: string;
8736
8975
  createdBy: string;
8976
+ createdByRole: string;
8737
8977
  declaration: Record<string, string | number | boolean | {
8738
8978
  type: string;
8739
8979
  filename: string;
@@ -8772,7 +9012,6 @@ export declare const EventDocument: z.ZodObject<{
8772
9012
  filename: string;
8773
9013
  originalFilename: string;
8774
9014
  }[] | undefined>;
8775
- createdAtLocation: string;
8776
9015
  requestId: string;
8777
9016
  annotation?: Record<string, string | number | boolean | {
8778
9017
  type: string;
@@ -8812,13 +9051,17 @@ export declare const EventDocument: z.ZodObject<{
8812
9051
  filename: string;
8813
9052
  originalFilename: string;
8814
9053
  }[] | undefined> | undefined;
9054
+ createdAtLocation?: string | undefined;
9055
+ updatedAtLocation?: string | undefined;
8815
9056
  originalActionId?: string | undefined;
8816
9057
  } | {
8817
9058
  type: "READ";
8818
9059
  id: string;
8819
9060
  status: "Rejected" | "Requested" | "Accepted";
9061
+ transactionId: string;
8820
9062
  createdAt: string;
8821
9063
  createdBy: string;
9064
+ createdByRole: string;
8822
9065
  declaration: Record<string, string | number | boolean | {
8823
9066
  type: string;
8824
9067
  filename: string;
@@ -8857,7 +9100,6 @@ export declare const EventDocument: z.ZodObject<{
8857
9100
  filename: string;
8858
9101
  originalFilename: string;
8859
9102
  }[] | undefined>;
8860
- createdAtLocation: string;
8861
9103
  annotation?: Record<string, string | number | boolean | {
8862
9104
  type: string;
8863
9105
  filename: string;
@@ -8896,15 +9138,22 @@ export declare const EventDocument: z.ZodObject<{
8896
9138
  filename: string;
8897
9139
  originalFilename: string;
8898
9140
  }[] | undefined> | undefined;
9141
+ createdAtLocation?: string | undefined;
9142
+ updatedAtLocation?: string | undefined;
8899
9143
  originalActionId?: string | undefined;
8900
9144
  } | {
8901
9145
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
8902
9146
  id: string;
8903
9147
  status: "Rejected";
9148
+ transactionId: string;
8904
9149
  createdAt: string;
9150
+ updatedAtLocation?: string | undefined;
8905
9151
  originalActionId?: string | undefined;
8906
9152
  })[];
8907
9153
  trackingId: string;
9154
+ dateOfEvent?: {
9155
+ fieldId: string;
9156
+ } | undefined;
8908
9157
  }>;
8909
9158
  export type EventDocument = z.infer<typeof EventDocument>;
8910
9159
  //# sourceMappingURL=EventDocument.d.ts.map