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

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 (34) hide show
  1. package/dist/commons/api/router.d.ts +7290 -4133
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -6
  3. package/dist/commons/conditionals/validate.d.ts +4 -6
  4. package/dist/commons/events/ActionConfig.d.ts +86380 -1682
  5. package/dist/commons/events/ActionDocument.d.ts +420 -103
  6. package/dist/commons/events/ActionInput.d.ts +158 -60
  7. package/dist/commons/events/ActionType.d.ts +2 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +371 -25
  9. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  10. package/dist/commons/events/Draft.d.ts +27 -9
  11. package/dist/commons/events/EventConfig.d.ts +41061 -1337
  12. package/dist/commons/events/EventDocument.d.ts +334 -77
  13. package/dist/commons/events/EventIndex.d.ts +915 -4
  14. package/dist/commons/events/EventInput.d.ts +13 -0
  15. package/dist/commons/events/EventMetadata.d.ts +13 -3
  16. package/dist/commons/events/FieldConfig.d.ts +3466 -721
  17. package/dist/commons/events/FieldType.d.ts +1 -2
  18. package/dist/commons/events/FieldValue.d.ts +1 -1
  19. package/dist/commons/events/FormConfig.d.ts +38845 -517
  20. package/dist/commons/events/PageConfig.d.ts +9671 -203
  21. package/dist/commons/events/SummaryConfig.d.ts +81 -42
  22. package/dist/commons/events/User.d.ts +5 -0
  23. package/dist/commons/events/WorkqueueConfig.d.ts +44 -20
  24. package/dist/commons/events/defineConfig.d.ts +6681 -31
  25. package/dist/commons/events/event.d.ts +25 -0
  26. package/dist/commons/events/field.d.ts +68 -0
  27. package/dist/commons/events/index.d.ts +3 -0
  28. package/dist/commons/events/scopes.d.ts +26 -0
  29. package/dist/commons/events/test.utils.d.ts +1 -38
  30. package/dist/commons/events/utils.d.ts +3404 -91
  31. package/dist/commons/events/utils.test.d.ts +2 -0
  32. package/dist/conditionals/index.js +36 -33
  33. package/dist/events/index.js +975 -625
  34. package/package.json +3 -2
@@ -130,8 +130,10 @@ export declare const ActionStatus: {
130
130
  export type ActionStatus = keyof typeof ActionStatus;
131
131
  export declare const ActionBase: z.ZodObject<{
132
132
  id: z.ZodString;
133
+ transactionId: z.ZodString;
133
134
  createdAt: z.ZodString;
134
135
  createdBy: z.ZodString;
136
+ createdByRole: z.ZodString;
135
137
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
136
138
  filename: z.ZodString;
137
139
  originalFilename: z.ZodString;
@@ -360,14 +362,17 @@ export declare const ActionBase: z.ZodObject<{
360
362
  addressLine3?: string | null | undefined;
361
363
  postcodeOrZip?: string | null | undefined;
362
364
  }>]>>>;
363
- createdAtLocation: z.ZodString;
365
+ createdAtLocation: z.ZodOptional<z.ZodString>;
366
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
364
367
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
365
368
  originalActionId: z.ZodOptional<z.ZodString>;
366
369
  }, "strip", z.ZodTypeAny, {
367
370
  id: string;
368
371
  status: "Rejected" | "Requested" | "Accepted";
372
+ transactionId: string;
369
373
  createdAt: string;
370
374
  createdBy: string;
375
+ createdByRole: string;
371
376
  declaration: Record<string, string | number | boolean | {
372
377
  type: string;
373
378
  filename: string;
@@ -406,7 +411,6 @@ export declare const ActionBase: z.ZodObject<{
406
411
  filename: string;
407
412
  originalFilename: string;
408
413
  }[] | undefined>;
409
- createdAtLocation: string;
410
414
  annotation?: Record<string, string | number | boolean | {
411
415
  type: string;
412
416
  filename: string;
@@ -445,12 +449,16 @@ export declare const ActionBase: z.ZodObject<{
445
449
  filename: string;
446
450
  originalFilename: string;
447
451
  }[] | undefined> | undefined;
452
+ createdAtLocation?: string | undefined;
453
+ updatedAtLocation?: string | undefined;
448
454
  originalActionId?: string | undefined;
449
455
  }, {
450
456
  id: string;
451
457
  status: "Rejected" | "Requested" | "Accepted";
458
+ transactionId: string;
452
459
  createdAt: string;
453
460
  createdBy: string;
461
+ createdByRole: string;
454
462
  declaration: Record<string, string | number | boolean | {
455
463
  type: string;
456
464
  filename: string;
@@ -489,7 +497,6 @@ export declare const ActionBase: z.ZodObject<{
489
497
  filename: string;
490
498
  originalFilename: string;
491
499
  }[] | undefined>;
492
- createdAtLocation: string;
493
500
  annotation?: Record<string, string | number | boolean | {
494
501
  type: string;
495
502
  filename: string;
@@ -528,13 +535,17 @@ export declare const ActionBase: z.ZodObject<{
528
535
  filename: string;
529
536
  originalFilename: string;
530
537
  }[] | undefined> | undefined;
538
+ createdAtLocation?: string | undefined;
539
+ updatedAtLocation?: string | undefined;
531
540
  originalActionId?: string | undefined;
532
541
  }>;
533
542
  export type ActionBase = z.infer<typeof ActionBase>;
534
543
  export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
535
544
  id: z.ZodString;
545
+ transactionId: z.ZodString;
536
546
  createdAt: z.ZodString;
537
547
  createdBy: z.ZodString;
548
+ createdByRole: z.ZodString;
538
549
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
539
550
  filename: z.ZodString;
540
551
  originalFilename: z.ZodString;
@@ -763,7 +774,8 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
763
774
  addressLine3?: string | null | undefined;
764
775
  postcodeOrZip?: string | null | undefined;
765
776
  }>]>>>;
766
- createdAtLocation: z.ZodString;
777
+ createdAtLocation: z.ZodOptional<z.ZodString>;
778
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
767
779
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
768
780
  originalActionId: z.ZodOptional<z.ZodString>;
769
781
  }, {
@@ -773,8 +785,10 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
773
785
  type: "REGISTER";
774
786
  id: string;
775
787
  status: "Rejected" | "Requested" | "Accepted";
788
+ transactionId: string;
776
789
  createdAt: string;
777
790
  createdBy: string;
791
+ createdByRole: string;
778
792
  declaration: Record<string, string | number | boolean | {
779
793
  type: string;
780
794
  filename: string;
@@ -813,7 +827,6 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
813
827
  filename: string;
814
828
  originalFilename: string;
815
829
  }[] | undefined>;
816
- createdAtLocation: string;
817
830
  annotation?: Record<string, string | number | boolean | {
818
831
  type: string;
819
832
  filename: string;
@@ -852,14 +865,18 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
852
865
  filename: string;
853
866
  originalFilename: string;
854
867
  }[] | undefined> | undefined;
868
+ createdAtLocation?: string | undefined;
869
+ updatedAtLocation?: string | undefined;
855
870
  originalActionId?: string | undefined;
856
871
  registrationNumber?: string | undefined;
857
872
  }, {
858
873
  type: "REGISTER";
859
874
  id: string;
860
875
  status: "Rejected" | "Requested" | "Accepted";
876
+ transactionId: string;
861
877
  createdAt: string;
862
878
  createdBy: string;
879
+ createdByRole: string;
863
880
  declaration: Record<string, string | number | boolean | {
864
881
  type: string;
865
882
  filename: string;
@@ -898,7 +915,6 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
898
915
  filename: string;
899
916
  originalFilename: string;
900
917
  }[] | undefined>;
901
- createdAtLocation: string;
902
918
  annotation?: Record<string, string | number | boolean | {
903
919
  type: string;
904
920
  filename: string;
@@ -937,14 +953,18 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
937
953
  filename: string;
938
954
  originalFilename: string;
939
955
  }[] | undefined> | undefined;
956
+ createdAtLocation?: string | undefined;
957
+ updatedAtLocation?: string | undefined;
940
958
  originalActionId?: string | undefined;
941
959
  registrationNumber?: string | undefined;
942
960
  }>;
943
961
  export type RegisterAction = z.infer<typeof RegisterAction>;
944
962
  declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
945
963
  id: z.ZodString;
964
+ transactionId: z.ZodString;
946
965
  createdAt: z.ZodString;
947
966
  createdBy: z.ZodString;
967
+ createdByRole: z.ZodString;
948
968
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
949
969
  filename: z.ZodString;
950
970
  originalFilename: z.ZodString;
@@ -1173,7 +1193,8 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1173
1193
  addressLine3?: string | null | undefined;
1174
1194
  postcodeOrZip?: string | null | undefined;
1175
1195
  }>]>>>;
1176
- createdAtLocation: z.ZodString;
1196
+ createdAtLocation: z.ZodOptional<z.ZodString>;
1197
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
1177
1198
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1178
1199
  originalActionId: z.ZodOptional<z.ZodString>;
1179
1200
  }, {
@@ -1182,8 +1203,10 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1182
1203
  type: "CREATE";
1183
1204
  id: string;
1184
1205
  status: "Rejected" | "Requested" | "Accepted";
1206
+ transactionId: string;
1185
1207
  createdAt: string;
1186
1208
  createdBy: string;
1209
+ createdByRole: string;
1187
1210
  declaration: Record<string, string | number | boolean | {
1188
1211
  type: string;
1189
1212
  filename: string;
@@ -1222,7 +1245,6 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1222
1245
  filename: string;
1223
1246
  originalFilename: string;
1224
1247
  }[] | undefined>;
1225
- createdAtLocation: string;
1226
1248
  annotation?: Record<string, string | number | boolean | {
1227
1249
  type: string;
1228
1250
  filename: string;
@@ -1261,13 +1283,17 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1261
1283
  filename: string;
1262
1284
  originalFilename: string;
1263
1285
  }[] | undefined> | undefined;
1286
+ createdAtLocation?: string | undefined;
1287
+ updatedAtLocation?: string | undefined;
1264
1288
  originalActionId?: string | undefined;
1265
1289
  }, {
1266
1290
  type: "CREATE";
1267
1291
  id: string;
1268
1292
  status: "Rejected" | "Requested" | "Accepted";
1293
+ transactionId: string;
1269
1294
  createdAt: string;
1270
1295
  createdBy: string;
1296
+ createdByRole: string;
1271
1297
  declaration: Record<string, string | number | boolean | {
1272
1298
  type: string;
1273
1299
  filename: string;
@@ -1306,7 +1332,6 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1306
1332
  filename: string;
1307
1333
  originalFilename: string;
1308
1334
  }[] | undefined>;
1309
- createdAtLocation: string;
1310
1335
  annotation?: Record<string, string | number | boolean | {
1311
1336
  type: string;
1312
1337
  filename: string;
@@ -1345,12 +1370,16 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1345
1370
  filename: string;
1346
1371
  originalFilename: string;
1347
1372
  }[] | undefined> | undefined;
1373
+ createdAtLocation?: string | undefined;
1374
+ updatedAtLocation?: string | undefined;
1348
1375
  originalActionId?: string | undefined;
1349
1376
  }>;
1350
1377
  export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
1351
1378
  id: z.ZodString;
1379
+ transactionId: z.ZodString;
1352
1380
  createdAt: z.ZodString;
1353
1381
  createdBy: z.ZodString;
1382
+ createdByRole: z.ZodString;
1354
1383
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1355
1384
  filename: z.ZodString;
1356
1385
  originalFilename: z.ZodString;
@@ -1579,7 +1608,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1579
1608
  addressLine3?: string | null | undefined;
1580
1609
  postcodeOrZip?: string | null | undefined;
1581
1610
  }>]>>>;
1582
- createdAtLocation: z.ZodString;
1611
+ createdAtLocation: z.ZodOptional<z.ZodString>;
1612
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
1583
1613
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1584
1614
  originalActionId: z.ZodOptional<z.ZodString>;
1585
1615
  }, {
@@ -1588,8 +1618,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1588
1618
  type: "CREATE";
1589
1619
  id: string;
1590
1620
  status: "Rejected" | "Requested" | "Accepted";
1621
+ transactionId: string;
1591
1622
  createdAt: string;
1592
1623
  createdBy: string;
1624
+ createdByRole: string;
1593
1625
  declaration: Record<string, string | number | boolean | {
1594
1626
  type: string;
1595
1627
  filename: string;
@@ -1628,7 +1660,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1628
1660
  filename: string;
1629
1661
  originalFilename: string;
1630
1662
  }[] | undefined>;
1631
- createdAtLocation: string;
1632
1663
  annotation?: Record<string, string | number | boolean | {
1633
1664
  type: string;
1634
1665
  filename: string;
@@ -1667,13 +1698,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1667
1698
  filename: string;
1668
1699
  originalFilename: string;
1669
1700
  }[] | undefined> | undefined;
1701
+ createdAtLocation?: string | undefined;
1702
+ updatedAtLocation?: string | undefined;
1670
1703
  originalActionId?: string | undefined;
1671
1704
  }, {
1672
1705
  type: "CREATE";
1673
1706
  id: string;
1674
1707
  status: "Rejected" | "Requested" | "Accepted";
1708
+ transactionId: string;
1675
1709
  createdAt: string;
1676
1710
  createdBy: string;
1711
+ createdByRole: string;
1677
1712
  declaration: Record<string, string | number | boolean | {
1678
1713
  type: string;
1679
1714
  filename: string;
@@ -1712,7 +1747,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1712
1747
  filename: string;
1713
1748
  originalFilename: string;
1714
1749
  }[] | undefined>;
1715
- createdAtLocation: string;
1716
1750
  annotation?: Record<string, string | number | boolean | {
1717
1751
  type: string;
1718
1752
  filename: string;
@@ -1751,11 +1785,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1751
1785
  filename: string;
1752
1786
  originalFilename: string;
1753
1787
  }[] | undefined> | undefined;
1788
+ createdAtLocation?: string | undefined;
1789
+ updatedAtLocation?: string | undefined;
1754
1790
  originalActionId?: string | undefined;
1755
1791
  }>, z.ZodObject<z.objectUtil.extendShape<{
1756
1792
  id: z.ZodString;
1793
+ transactionId: z.ZodString;
1757
1794
  createdAt: z.ZodString;
1758
1795
  createdBy: z.ZodString;
1796
+ createdByRole: z.ZodString;
1759
1797
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1760
1798
  filename: z.ZodString;
1761
1799
  originalFilename: z.ZodString;
@@ -1984,7 +2022,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1984
2022
  addressLine3?: string | null | undefined;
1985
2023
  postcodeOrZip?: string | null | undefined;
1986
2024
  }>]>>>;
1987
- createdAtLocation: z.ZodString;
2025
+ createdAtLocation: z.ZodOptional<z.ZodString>;
2026
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
1988
2027
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1989
2028
  originalActionId: z.ZodOptional<z.ZodString>;
1990
2029
  }, {
@@ -1993,8 +2032,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1993
2032
  type: "VALIDATE";
1994
2033
  id: string;
1995
2034
  status: "Rejected" | "Requested" | "Accepted";
2035
+ transactionId: string;
1996
2036
  createdAt: string;
1997
2037
  createdBy: string;
2038
+ createdByRole: string;
1998
2039
  declaration: Record<string, string | number | boolean | {
1999
2040
  type: string;
2000
2041
  filename: string;
@@ -2033,7 +2074,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2033
2074
  filename: string;
2034
2075
  originalFilename: string;
2035
2076
  }[] | undefined>;
2036
- createdAtLocation: string;
2037
2077
  annotation?: Record<string, string | number | boolean | {
2038
2078
  type: string;
2039
2079
  filename: string;
@@ -2072,13 +2112,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2072
2112
  filename: string;
2073
2113
  originalFilename: string;
2074
2114
  }[] | undefined> | undefined;
2115
+ createdAtLocation?: string | undefined;
2116
+ updatedAtLocation?: string | undefined;
2075
2117
  originalActionId?: string | undefined;
2076
2118
  }, {
2077
2119
  type: "VALIDATE";
2078
2120
  id: string;
2079
2121
  status: "Rejected" | "Requested" | "Accepted";
2122
+ transactionId: string;
2080
2123
  createdAt: string;
2081
2124
  createdBy: string;
2125
+ createdByRole: string;
2082
2126
  declaration: Record<string, string | number | boolean | {
2083
2127
  type: string;
2084
2128
  filename: string;
@@ -2117,7 +2161,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2117
2161
  filename: string;
2118
2162
  originalFilename: string;
2119
2163
  }[] | undefined>;
2120
- createdAtLocation: string;
2121
2164
  annotation?: Record<string, string | number | boolean | {
2122
2165
  type: string;
2123
2166
  filename: string;
@@ -2156,11 +2199,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2156
2199
  filename: string;
2157
2200
  originalFilename: string;
2158
2201
  }[] | undefined> | undefined;
2202
+ createdAtLocation?: string | undefined;
2203
+ updatedAtLocation?: string | undefined;
2159
2204
  originalActionId?: string | undefined;
2160
2205
  }>, z.ZodObject<z.objectUtil.extendShape<{
2161
2206
  id: z.ZodString;
2207
+ transactionId: z.ZodString;
2162
2208
  createdAt: z.ZodString;
2163
2209
  createdBy: z.ZodString;
2210
+ createdByRole: z.ZodString;
2164
2211
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2165
2212
  filename: z.ZodString;
2166
2213
  originalFilename: z.ZodString;
@@ -2389,7 +2436,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2389
2436
  addressLine3?: string | null | undefined;
2390
2437
  postcodeOrZip?: string | null | undefined;
2391
2438
  }>]>>>;
2392
- createdAtLocation: z.ZodString;
2439
+ createdAtLocation: z.ZodOptional<z.ZodString>;
2440
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
2393
2441
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2394
2442
  originalActionId: z.ZodOptional<z.ZodString>;
2395
2443
  }, {
@@ -2398,8 +2446,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2398
2446
  type: "REJECT";
2399
2447
  id: string;
2400
2448
  status: "Rejected" | "Requested" | "Accepted";
2449
+ transactionId: string;
2401
2450
  createdAt: string;
2402
2451
  createdBy: string;
2452
+ createdByRole: string;
2403
2453
  declaration: Record<string, string | number | boolean | {
2404
2454
  type: string;
2405
2455
  filename: string;
@@ -2438,7 +2488,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2438
2488
  filename: string;
2439
2489
  originalFilename: string;
2440
2490
  }[] | undefined>;
2441
- createdAtLocation: string;
2442
2491
  annotation?: Record<string, string | number | boolean | {
2443
2492
  type: string;
2444
2493
  filename: string;
@@ -2477,13 +2526,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2477
2526
  filename: string;
2478
2527
  originalFilename: string;
2479
2528
  }[] | undefined> | undefined;
2529
+ createdAtLocation?: string | undefined;
2530
+ updatedAtLocation?: string | undefined;
2480
2531
  originalActionId?: string | undefined;
2481
2532
  }, {
2482
2533
  type: "REJECT";
2483
2534
  id: string;
2484
2535
  status: "Rejected" | "Requested" | "Accepted";
2536
+ transactionId: string;
2485
2537
  createdAt: string;
2486
2538
  createdBy: string;
2539
+ createdByRole: string;
2487
2540
  declaration: Record<string, string | number | boolean | {
2488
2541
  type: string;
2489
2542
  filename: string;
@@ -2522,7 +2575,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2522
2575
  filename: string;
2523
2576
  originalFilename: string;
2524
2577
  }[] | undefined>;
2525
- createdAtLocation: string;
2526
2578
  annotation?: Record<string, string | number | boolean | {
2527
2579
  type: string;
2528
2580
  filename: string;
@@ -2561,11 +2613,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2561
2613
  filename: string;
2562
2614
  originalFilename: string;
2563
2615
  }[] | undefined> | undefined;
2616
+ createdAtLocation?: string | undefined;
2617
+ updatedAtLocation?: string | undefined;
2564
2618
  originalActionId?: string | undefined;
2565
2619
  }>, z.ZodObject<z.objectUtil.extendShape<{
2566
2620
  id: z.ZodString;
2621
+ transactionId: z.ZodString;
2567
2622
  createdAt: z.ZodString;
2568
2623
  createdBy: z.ZodString;
2624
+ createdByRole: z.ZodString;
2569
2625
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2570
2626
  filename: z.ZodString;
2571
2627
  originalFilename: z.ZodString;
@@ -2794,7 +2850,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2794
2850
  addressLine3?: string | null | undefined;
2795
2851
  postcodeOrZip?: string | null | undefined;
2796
2852
  }>]>>>;
2797
- createdAtLocation: z.ZodString;
2853
+ createdAtLocation: z.ZodOptional<z.ZodString>;
2854
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
2798
2855
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2799
2856
  originalActionId: z.ZodOptional<z.ZodString>;
2800
2857
  }, {
@@ -2803,8 +2860,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2803
2860
  type: "MARKED_AS_DUPLICATE";
2804
2861
  id: string;
2805
2862
  status: "Rejected" | "Requested" | "Accepted";
2863
+ transactionId: string;
2806
2864
  createdAt: string;
2807
2865
  createdBy: string;
2866
+ createdByRole: string;
2808
2867
  declaration: Record<string, string | number | boolean | {
2809
2868
  type: string;
2810
2869
  filename: string;
@@ -2843,7 +2902,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2843
2902
  filename: string;
2844
2903
  originalFilename: string;
2845
2904
  }[] | undefined>;
2846
- createdAtLocation: string;
2847
2905
  annotation?: Record<string, string | number | boolean | {
2848
2906
  type: string;
2849
2907
  filename: string;
@@ -2882,13 +2940,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2882
2940
  filename: string;
2883
2941
  originalFilename: string;
2884
2942
  }[] | undefined> | undefined;
2943
+ createdAtLocation?: string | undefined;
2944
+ updatedAtLocation?: string | undefined;
2885
2945
  originalActionId?: string | undefined;
2886
2946
  }, {
2887
2947
  type: "MARKED_AS_DUPLICATE";
2888
2948
  id: string;
2889
2949
  status: "Rejected" | "Requested" | "Accepted";
2950
+ transactionId: string;
2890
2951
  createdAt: string;
2891
2952
  createdBy: string;
2953
+ createdByRole: string;
2892
2954
  declaration: Record<string, string | number | boolean | {
2893
2955
  type: string;
2894
2956
  filename: string;
@@ -2927,7 +2989,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2927
2989
  filename: string;
2928
2990
  originalFilename: string;
2929
2991
  }[] | undefined>;
2930
- createdAtLocation: string;
2931
2992
  annotation?: Record<string, string | number | boolean | {
2932
2993
  type: string;
2933
2994
  filename: string;
@@ -2966,11 +3027,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2966
3027
  filename: string;
2967
3028
  originalFilename: string;
2968
3029
  }[] | undefined> | undefined;
3030
+ createdAtLocation?: string | undefined;
3031
+ updatedAtLocation?: string | undefined;
2969
3032
  originalActionId?: string | undefined;
2970
3033
  }>, z.ZodObject<z.objectUtil.extendShape<{
2971
3034
  id: z.ZodString;
3035
+ transactionId: z.ZodString;
2972
3036
  createdAt: z.ZodString;
2973
3037
  createdBy: z.ZodString;
3038
+ createdByRole: z.ZodString;
2974
3039
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2975
3040
  filename: z.ZodString;
2976
3041
  originalFilename: z.ZodString;
@@ -3199,7 +3264,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3199
3264
  addressLine3?: string | null | undefined;
3200
3265
  postcodeOrZip?: string | null | undefined;
3201
3266
  }>]>>>;
3202
- createdAtLocation: z.ZodString;
3267
+ createdAtLocation: z.ZodOptional<z.ZodString>;
3268
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
3203
3269
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3204
3270
  originalActionId: z.ZodOptional<z.ZodString>;
3205
3271
  }, {
@@ -3208,8 +3274,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3208
3274
  type: "ARCHIVE";
3209
3275
  id: string;
3210
3276
  status: "Rejected" | "Requested" | "Accepted";
3277
+ transactionId: string;
3211
3278
  createdAt: string;
3212
3279
  createdBy: string;
3280
+ createdByRole: string;
3213
3281
  declaration: Record<string, string | number | boolean | {
3214
3282
  type: string;
3215
3283
  filename: string;
@@ -3248,7 +3316,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3248
3316
  filename: string;
3249
3317
  originalFilename: string;
3250
3318
  }[] | undefined>;
3251
- createdAtLocation: string;
3252
3319
  annotation?: Record<string, string | number | boolean | {
3253
3320
  type: string;
3254
3321
  filename: string;
@@ -3287,13 +3354,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3287
3354
  filename: string;
3288
3355
  originalFilename: string;
3289
3356
  }[] | undefined> | undefined;
3357
+ createdAtLocation?: string | undefined;
3358
+ updatedAtLocation?: string | undefined;
3290
3359
  originalActionId?: string | undefined;
3291
3360
  }, {
3292
3361
  type: "ARCHIVE";
3293
3362
  id: string;
3294
3363
  status: "Rejected" | "Requested" | "Accepted";
3364
+ transactionId: string;
3295
3365
  createdAt: string;
3296
3366
  createdBy: string;
3367
+ createdByRole: string;
3297
3368
  declaration: Record<string, string | number | boolean | {
3298
3369
  type: string;
3299
3370
  filename: string;
@@ -3332,7 +3403,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3332
3403
  filename: string;
3333
3404
  originalFilename: string;
3334
3405
  }[] | undefined>;
3335
- createdAtLocation: string;
3336
3406
  annotation?: Record<string, string | number | boolean | {
3337
3407
  type: string;
3338
3408
  filename: string;
@@ -3371,11 +3441,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3371
3441
  filename: string;
3372
3442
  originalFilename: string;
3373
3443
  }[] | undefined> | undefined;
3444
+ createdAtLocation?: string | undefined;
3445
+ updatedAtLocation?: string | undefined;
3374
3446
  originalActionId?: string | undefined;
3375
3447
  }>, z.ZodObject<z.objectUtil.extendShape<{
3376
3448
  id: z.ZodString;
3449
+ transactionId: z.ZodString;
3377
3450
  createdAt: z.ZodString;
3378
3451
  createdBy: z.ZodString;
3452
+ createdByRole: z.ZodString;
3379
3453
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3380
3454
  filename: z.ZodString;
3381
3455
  originalFilename: z.ZodString;
@@ -3604,7 +3678,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3604
3678
  addressLine3?: string | null | undefined;
3605
3679
  postcodeOrZip?: string | null | undefined;
3606
3680
  }>]>>>;
3607
- createdAtLocation: z.ZodString;
3681
+ createdAtLocation: z.ZodOptional<z.ZodString>;
3682
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
3608
3683
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3609
3684
  originalActionId: z.ZodOptional<z.ZodString>;
3610
3685
  }, {
@@ -3613,8 +3688,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3613
3688
  type: "NOTIFY";
3614
3689
  id: string;
3615
3690
  status: "Rejected" | "Requested" | "Accepted";
3691
+ transactionId: string;
3616
3692
  createdAt: string;
3617
3693
  createdBy: string;
3694
+ createdByRole: string;
3618
3695
  declaration: Record<string, string | number | boolean | {
3619
3696
  type: string;
3620
3697
  filename: string;
@@ -3653,7 +3730,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3653
3730
  filename: string;
3654
3731
  originalFilename: string;
3655
3732
  }[] | undefined>;
3656
- createdAtLocation: string;
3657
3733
  annotation?: Record<string, string | number | boolean | {
3658
3734
  type: string;
3659
3735
  filename: string;
@@ -3692,13 +3768,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3692
3768
  filename: string;
3693
3769
  originalFilename: string;
3694
3770
  }[] | undefined> | undefined;
3771
+ createdAtLocation?: string | undefined;
3772
+ updatedAtLocation?: string | undefined;
3695
3773
  originalActionId?: string | undefined;
3696
3774
  }, {
3697
3775
  type: "NOTIFY";
3698
3776
  id: string;
3699
3777
  status: "Rejected" | "Requested" | "Accepted";
3778
+ transactionId: string;
3700
3779
  createdAt: string;
3701
3780
  createdBy: string;
3781
+ createdByRole: string;
3702
3782
  declaration: Record<string, string | number | boolean | {
3703
3783
  type: string;
3704
3784
  filename: string;
@@ -3737,7 +3817,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3737
3817
  filename: string;
3738
3818
  originalFilename: string;
3739
3819
  }[] | undefined>;
3740
- createdAtLocation: string;
3741
3820
  annotation?: Record<string, string | number | boolean | {
3742
3821
  type: string;
3743
3822
  filename: string;
@@ -3776,11 +3855,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3776
3855
  filename: string;
3777
3856
  originalFilename: string;
3778
3857
  }[] | undefined> | undefined;
3858
+ createdAtLocation?: string | undefined;
3859
+ updatedAtLocation?: string | undefined;
3779
3860
  originalActionId?: string | undefined;
3780
3861
  }>, z.ZodObject<z.objectUtil.extendShape<{
3781
3862
  id: z.ZodString;
3863
+ transactionId: z.ZodString;
3782
3864
  createdAt: z.ZodString;
3783
3865
  createdBy: z.ZodString;
3866
+ createdByRole: z.ZodString;
3784
3867
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3785
3868
  filename: z.ZodString;
3786
3869
  originalFilename: z.ZodString;
@@ -4009,7 +4092,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4009
4092
  addressLine3?: string | null | undefined;
4010
4093
  postcodeOrZip?: string | null | undefined;
4011
4094
  }>]>>>;
4012
- createdAtLocation: z.ZodString;
4095
+ createdAtLocation: z.ZodOptional<z.ZodString>;
4096
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
4013
4097
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4014
4098
  originalActionId: z.ZodOptional<z.ZodString>;
4015
4099
  }, {
@@ -4019,8 +4103,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4019
4103
  type: "REGISTER";
4020
4104
  id: string;
4021
4105
  status: "Rejected" | "Requested" | "Accepted";
4106
+ transactionId: string;
4022
4107
  createdAt: string;
4023
4108
  createdBy: string;
4109
+ createdByRole: string;
4024
4110
  declaration: Record<string, string | number | boolean | {
4025
4111
  type: string;
4026
4112
  filename: string;
@@ -4059,7 +4145,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4059
4145
  filename: string;
4060
4146
  originalFilename: string;
4061
4147
  }[] | undefined>;
4062
- createdAtLocation: string;
4063
4148
  annotation?: Record<string, string | number | boolean | {
4064
4149
  type: string;
4065
4150
  filename: string;
@@ -4098,14 +4183,18 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4098
4183
  filename: string;
4099
4184
  originalFilename: string;
4100
4185
  }[] | undefined> | undefined;
4186
+ createdAtLocation?: string | undefined;
4187
+ updatedAtLocation?: string | undefined;
4101
4188
  originalActionId?: string | undefined;
4102
4189
  registrationNumber?: string | undefined;
4103
4190
  }, {
4104
4191
  type: "REGISTER";
4105
4192
  id: string;
4106
4193
  status: "Rejected" | "Requested" | "Accepted";
4194
+ transactionId: string;
4107
4195
  createdAt: string;
4108
4196
  createdBy: string;
4197
+ createdByRole: string;
4109
4198
  declaration: Record<string, string | number | boolean | {
4110
4199
  type: string;
4111
4200
  filename: string;
@@ -4144,7 +4233,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4144
4233
  filename: string;
4145
4234
  originalFilename: string;
4146
4235
  }[] | undefined>;
4147
- createdAtLocation: string;
4148
4236
  annotation?: Record<string, string | number | boolean | {
4149
4237
  type: string;
4150
4238
  filename: string;
@@ -4183,12 +4271,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4183
4271
  filename: string;
4184
4272
  originalFilename: string;
4185
4273
  }[] | undefined> | undefined;
4274
+ createdAtLocation?: string | undefined;
4275
+ updatedAtLocation?: string | undefined;
4186
4276
  originalActionId?: string | undefined;
4187
4277
  registrationNumber?: string | undefined;
4188
4278
  }>, z.ZodObject<z.objectUtil.extendShape<{
4189
4279
  id: z.ZodString;
4280
+ transactionId: z.ZodString;
4190
4281
  createdAt: z.ZodString;
4191
4282
  createdBy: z.ZodString;
4283
+ createdByRole: z.ZodString;
4192
4284
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4193
4285
  filename: z.ZodString;
4194
4286
  originalFilename: z.ZodString;
@@ -4417,7 +4509,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4417
4509
  addressLine3?: string | null | undefined;
4418
4510
  postcodeOrZip?: string | null | undefined;
4419
4511
  }>]>>>;
4420
- createdAtLocation: z.ZodString;
4512
+ createdAtLocation: z.ZodOptional<z.ZodString>;
4513
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
4421
4514
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4422
4515
  originalActionId: z.ZodOptional<z.ZodString>;
4423
4516
  }, {
@@ -4426,8 +4519,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4426
4519
  type: "DECLARE";
4427
4520
  id: string;
4428
4521
  status: "Rejected" | "Requested" | "Accepted";
4522
+ transactionId: string;
4429
4523
  createdAt: string;
4430
4524
  createdBy: string;
4525
+ createdByRole: string;
4431
4526
  declaration: Record<string, string | number | boolean | {
4432
4527
  type: string;
4433
4528
  filename: string;
@@ -4466,7 +4561,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4466
4561
  filename: string;
4467
4562
  originalFilename: string;
4468
4563
  }[] | undefined>;
4469
- createdAtLocation: string;
4470
4564
  annotation?: Record<string, string | number | boolean | {
4471
4565
  type: string;
4472
4566
  filename: string;
@@ -4505,13 +4599,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4505
4599
  filename: string;
4506
4600
  originalFilename: string;
4507
4601
  }[] | undefined> | undefined;
4602
+ createdAtLocation?: string | undefined;
4603
+ updatedAtLocation?: string | undefined;
4508
4604
  originalActionId?: string | undefined;
4509
4605
  }, {
4510
4606
  type: "DECLARE";
4511
4607
  id: string;
4512
4608
  status: "Rejected" | "Requested" | "Accepted";
4609
+ transactionId: string;
4513
4610
  createdAt: string;
4514
4611
  createdBy: string;
4612
+ createdByRole: string;
4515
4613
  declaration: Record<string, string | number | boolean | {
4516
4614
  type: string;
4517
4615
  filename: string;
@@ -4550,7 +4648,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4550
4648
  filename: string;
4551
4649
  originalFilename: string;
4552
4650
  }[] | undefined>;
4553
- createdAtLocation: string;
4554
4651
  annotation?: Record<string, string | number | boolean | {
4555
4652
  type: string;
4556
4653
  filename: string;
@@ -4589,11 +4686,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4589
4686
  filename: string;
4590
4687
  originalFilename: string;
4591
4688
  }[] | undefined> | undefined;
4689
+ createdAtLocation?: string | undefined;
4690
+ updatedAtLocation?: string | undefined;
4592
4691
  originalActionId?: string | undefined;
4593
4692
  }>, z.ZodObject<z.objectUtil.extendShape<{
4594
4693
  id: z.ZodString;
4694
+ transactionId: z.ZodString;
4595
4695
  createdAt: z.ZodString;
4596
4696
  createdBy: z.ZodString;
4697
+ createdByRole: z.ZodString;
4597
4698
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4598
4699
  filename: z.ZodString;
4599
4700
  originalFilename: z.ZodString;
@@ -4822,7 +4923,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4822
4923
  addressLine3?: string | null | undefined;
4823
4924
  postcodeOrZip?: string | null | undefined;
4824
4925
  }>]>>>;
4825
- createdAtLocation: z.ZodString;
4926
+ createdAtLocation: z.ZodOptional<z.ZodString>;
4927
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
4826
4928
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4827
4929
  originalActionId: z.ZodOptional<z.ZodString>;
4828
4930
  }, {
@@ -4832,8 +4934,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4832
4934
  type: "ASSIGN";
4833
4935
  id: string;
4834
4936
  status: "Rejected" | "Requested" | "Accepted";
4937
+ transactionId: string;
4835
4938
  createdAt: string;
4836
4939
  createdBy: string;
4940
+ createdByRole: string;
4837
4941
  declaration: Record<string, string | number | boolean | {
4838
4942
  type: string;
4839
4943
  filename: string;
@@ -4872,7 +4976,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4872
4976
  filename: string;
4873
4977
  originalFilename: string;
4874
4978
  }[] | undefined>;
4875
- createdAtLocation: string;
4876
4979
  assignedTo: string;
4877
4980
  annotation?: Record<string, string | number | boolean | {
4878
4981
  type: string;
@@ -4912,13 +5015,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4912
5015
  filename: string;
4913
5016
  originalFilename: string;
4914
5017
  }[] | undefined> | undefined;
5018
+ createdAtLocation?: string | undefined;
5019
+ updatedAtLocation?: string | undefined;
4915
5020
  originalActionId?: string | undefined;
4916
5021
  }, {
4917
5022
  type: "ASSIGN";
4918
5023
  id: string;
4919
5024
  status: "Rejected" | "Requested" | "Accepted";
5025
+ transactionId: string;
4920
5026
  createdAt: string;
4921
5027
  createdBy: string;
5028
+ createdByRole: string;
4922
5029
  declaration: Record<string, string | number | boolean | {
4923
5030
  type: string;
4924
5031
  filename: string;
@@ -4957,7 +5064,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4957
5064
  filename: string;
4958
5065
  originalFilename: string;
4959
5066
  }[] | undefined>;
4960
- createdAtLocation: string;
4961
5067
  assignedTo: string;
4962
5068
  annotation?: Record<string, string | number | boolean | {
4963
5069
  type: string;
@@ -4997,11 +5103,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4997
5103
  filename: string;
4998
5104
  originalFilename: string;
4999
5105
  }[] | undefined> | undefined;
5106
+ createdAtLocation?: string | undefined;
5107
+ updatedAtLocation?: string | undefined;
5000
5108
  originalActionId?: string | undefined;
5001
5109
  }>, z.ZodObject<z.objectUtil.extendShape<{
5002
5110
  id: z.ZodString;
5111
+ transactionId: z.ZodString;
5003
5112
  createdAt: z.ZodString;
5004
5113
  createdBy: z.ZodString;
5114
+ createdByRole: z.ZodString;
5005
5115
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5006
5116
  filename: z.ZodString;
5007
5117
  originalFilename: z.ZodString;
@@ -5230,7 +5340,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5230
5340
  addressLine3?: string | null | undefined;
5231
5341
  postcodeOrZip?: string | null | undefined;
5232
5342
  }>]>>>;
5233
- createdAtLocation: z.ZodString;
5343
+ createdAtLocation: z.ZodOptional<z.ZodString>;
5344
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
5234
5345
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5235
5346
  originalActionId: z.ZodOptional<z.ZodString>;
5236
5347
  }, {
@@ -5239,8 +5350,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5239
5350
  type: "REQUEST_CORRECTION";
5240
5351
  id: string;
5241
5352
  status: "Rejected" | "Requested" | "Accepted";
5353
+ transactionId: string;
5242
5354
  createdAt: string;
5243
5355
  createdBy: string;
5356
+ createdByRole: string;
5244
5357
  declaration: Record<string, string | number | boolean | {
5245
5358
  type: string;
5246
5359
  filename: string;
@@ -5279,7 +5392,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5279
5392
  filename: string;
5280
5393
  originalFilename: string;
5281
5394
  }[] | undefined>;
5282
- createdAtLocation: string;
5283
5395
  annotation?: Record<string, string | number | boolean | {
5284
5396
  type: string;
5285
5397
  filename: string;
@@ -5318,13 +5430,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5318
5430
  filename: string;
5319
5431
  originalFilename: string;
5320
5432
  }[] | undefined> | undefined;
5433
+ createdAtLocation?: string | undefined;
5434
+ updatedAtLocation?: string | undefined;
5321
5435
  originalActionId?: string | undefined;
5322
5436
  }, {
5323
5437
  type: "REQUEST_CORRECTION";
5324
5438
  id: string;
5325
5439
  status: "Rejected" | "Requested" | "Accepted";
5440
+ transactionId: string;
5326
5441
  createdAt: string;
5327
5442
  createdBy: string;
5443
+ createdByRole: string;
5328
5444
  declaration: Record<string, string | number | boolean | {
5329
5445
  type: string;
5330
5446
  filename: string;
@@ -5363,7 +5479,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5363
5479
  filename: string;
5364
5480
  originalFilename: string;
5365
5481
  }[] | undefined>;
5366
- createdAtLocation: string;
5367
5482
  annotation?: Record<string, string | number | boolean | {
5368
5483
  type: string;
5369
5484
  filename: string;
@@ -5402,11 +5517,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5402
5517
  filename: string;
5403
5518
  originalFilename: string;
5404
5519
  }[] | undefined> | undefined;
5520
+ createdAtLocation?: string | undefined;
5521
+ updatedAtLocation?: string | undefined;
5405
5522
  originalActionId?: string | undefined;
5406
5523
  }>, z.ZodObject<z.objectUtil.extendShape<{
5407
5524
  id: z.ZodString;
5525
+ transactionId: z.ZodString;
5408
5526
  createdAt: z.ZodString;
5409
5527
  createdBy: z.ZodString;
5528
+ createdByRole: z.ZodString;
5410
5529
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5411
5530
  filename: z.ZodString;
5412
5531
  originalFilename: z.ZodString;
@@ -5635,7 +5754,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5635
5754
  addressLine3?: string | null | undefined;
5636
5755
  postcodeOrZip?: string | null | undefined;
5637
5756
  }>]>>>;
5638
- createdAtLocation: z.ZodString;
5757
+ createdAtLocation: z.ZodOptional<z.ZodString>;
5758
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
5639
5759
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5640
5760
  originalActionId: z.ZodOptional<z.ZodString>;
5641
5761
  }, {
@@ -5645,8 +5765,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5645
5765
  type: "APPROVE_CORRECTION";
5646
5766
  id: string;
5647
5767
  status: "Rejected" | "Requested" | "Accepted";
5768
+ transactionId: string;
5648
5769
  createdAt: string;
5649
5770
  createdBy: string;
5771
+ createdByRole: string;
5650
5772
  declaration: Record<string, string | number | boolean | {
5651
5773
  type: string;
5652
5774
  filename: string;
@@ -5685,7 +5807,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5685
5807
  filename: string;
5686
5808
  originalFilename: string;
5687
5809
  }[] | undefined>;
5688
- createdAtLocation: string;
5689
5810
  requestId: string;
5690
5811
  annotation?: Record<string, string | number | boolean | {
5691
5812
  type: string;
@@ -5725,13 +5846,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5725
5846
  filename: string;
5726
5847
  originalFilename: string;
5727
5848
  }[] | undefined> | undefined;
5849
+ createdAtLocation?: string | undefined;
5850
+ updatedAtLocation?: string | undefined;
5728
5851
  originalActionId?: string | undefined;
5729
5852
  }, {
5730
5853
  type: "APPROVE_CORRECTION";
5731
5854
  id: string;
5732
5855
  status: "Rejected" | "Requested" | "Accepted";
5856
+ transactionId: string;
5733
5857
  createdAt: string;
5734
5858
  createdBy: string;
5859
+ createdByRole: string;
5735
5860
  declaration: Record<string, string | number | boolean | {
5736
5861
  type: string;
5737
5862
  filename: string;
@@ -5770,7 +5895,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5770
5895
  filename: string;
5771
5896
  originalFilename: string;
5772
5897
  }[] | undefined>;
5773
- createdAtLocation: string;
5774
5898
  requestId: string;
5775
5899
  annotation?: Record<string, string | number | boolean | {
5776
5900
  type: string;
@@ -5810,11 +5934,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5810
5934
  filename: string;
5811
5935
  originalFilename: string;
5812
5936
  }[] | undefined> | undefined;
5937
+ createdAtLocation?: string | undefined;
5938
+ updatedAtLocation?: string | undefined;
5813
5939
  originalActionId?: string | undefined;
5814
5940
  }>, z.ZodObject<z.objectUtil.extendShape<{
5815
5941
  id: z.ZodString;
5942
+ transactionId: z.ZodString;
5816
5943
  createdAt: z.ZodString;
5817
5944
  createdBy: z.ZodString;
5945
+ createdByRole: z.ZodString;
5818
5946
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5819
5947
  filename: z.ZodString;
5820
5948
  originalFilename: z.ZodString;
@@ -6043,7 +6171,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6043
6171
  addressLine3?: string | null | undefined;
6044
6172
  postcodeOrZip?: string | null | undefined;
6045
6173
  }>]>>>;
6046
- createdAtLocation: z.ZodString;
6174
+ createdAtLocation: z.ZodOptional<z.ZodString>;
6175
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
6047
6176
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6048
6177
  originalActionId: z.ZodOptional<z.ZodString>;
6049
6178
  }, {
@@ -6053,8 +6182,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6053
6182
  type: "REJECT_CORRECTION";
6054
6183
  id: string;
6055
6184
  status: "Rejected" | "Requested" | "Accepted";
6185
+ transactionId: string;
6056
6186
  createdAt: string;
6057
6187
  createdBy: string;
6188
+ createdByRole: string;
6058
6189
  declaration: Record<string, string | number | boolean | {
6059
6190
  type: string;
6060
6191
  filename: string;
@@ -6093,7 +6224,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6093
6224
  filename: string;
6094
6225
  originalFilename: string;
6095
6226
  }[] | undefined>;
6096
- createdAtLocation: string;
6097
6227
  requestId: string;
6098
6228
  annotation?: Record<string, string | number | boolean | {
6099
6229
  type: string;
@@ -6133,13 +6263,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6133
6263
  filename: string;
6134
6264
  originalFilename: string;
6135
6265
  }[] | undefined> | undefined;
6266
+ createdAtLocation?: string | undefined;
6267
+ updatedAtLocation?: string | undefined;
6136
6268
  originalActionId?: string | undefined;
6137
6269
  }, {
6138
6270
  type: "REJECT_CORRECTION";
6139
6271
  id: string;
6140
6272
  status: "Rejected" | "Requested" | "Accepted";
6273
+ transactionId: string;
6141
6274
  createdAt: string;
6142
6275
  createdBy: string;
6276
+ createdByRole: string;
6143
6277
  declaration: Record<string, string | number | boolean | {
6144
6278
  type: string;
6145
6279
  filename: string;
@@ -6178,7 +6312,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6178
6312
  filename: string;
6179
6313
  originalFilename: string;
6180
6314
  }[] | undefined>;
6181
- createdAtLocation: string;
6182
6315
  requestId: string;
6183
6316
  annotation?: Record<string, string | number | boolean | {
6184
6317
  type: string;
@@ -6218,11 +6351,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6218
6351
  filename: string;
6219
6352
  originalFilename: string;
6220
6353
  }[] | undefined> | undefined;
6354
+ createdAtLocation?: string | undefined;
6355
+ updatedAtLocation?: string | undefined;
6221
6356
  originalActionId?: string | undefined;
6222
6357
  }>, z.ZodObject<z.objectUtil.extendShape<{
6223
6358
  id: z.ZodString;
6359
+ transactionId: z.ZodString;
6224
6360
  createdAt: z.ZodString;
6225
6361
  createdBy: z.ZodString;
6362
+ createdByRole: z.ZodString;
6226
6363
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6227
6364
  filename: z.ZodString;
6228
6365
  originalFilename: z.ZodString;
@@ -6451,17 +6588,21 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6451
6588
  addressLine3?: string | null | undefined;
6452
6589
  postcodeOrZip?: string | null | undefined;
6453
6590
  }>]>>>;
6454
- createdAtLocation: z.ZodString;
6591
+ createdAtLocation: z.ZodOptional<z.ZodString>;
6592
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
6455
6593
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6456
6594
  originalActionId: z.ZodOptional<z.ZodString>;
6457
6595
  }, {
6458
6596
  type: z.ZodLiteral<"UNASSIGN">;
6597
+ assignedTo: z.ZodLiteral<null>;
6459
6598
  }>, "strip", z.ZodTypeAny, {
6460
6599
  type: "UNASSIGN";
6461
6600
  id: string;
6462
6601
  status: "Rejected" | "Requested" | "Accepted";
6602
+ transactionId: string;
6463
6603
  createdAt: string;
6464
6604
  createdBy: string;
6605
+ createdByRole: string;
6465
6606
  declaration: Record<string, string | number | boolean | {
6466
6607
  type: string;
6467
6608
  filename: string;
@@ -6500,7 +6641,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6500
6641
  filename: string;
6501
6642
  originalFilename: string;
6502
6643
  }[] | undefined>;
6503
- createdAtLocation: string;
6644
+ assignedTo: null;
6504
6645
  annotation?: Record<string, string | number | boolean | {
6505
6646
  type: string;
6506
6647
  filename: string;
@@ -6539,13 +6680,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6539
6680
  filename: string;
6540
6681
  originalFilename: string;
6541
6682
  }[] | undefined> | undefined;
6683
+ createdAtLocation?: string | undefined;
6684
+ updatedAtLocation?: string | undefined;
6542
6685
  originalActionId?: string | undefined;
6543
6686
  }, {
6544
6687
  type: "UNASSIGN";
6545
6688
  id: string;
6546
6689
  status: "Rejected" | "Requested" | "Accepted";
6690
+ transactionId: string;
6547
6691
  createdAt: string;
6548
6692
  createdBy: string;
6693
+ createdByRole: string;
6549
6694
  declaration: Record<string, string | number | boolean | {
6550
6695
  type: string;
6551
6696
  filename: string;
@@ -6584,7 +6729,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6584
6729
  filename: string;
6585
6730
  originalFilename: string;
6586
6731
  }[] | undefined>;
6587
- createdAtLocation: string;
6732
+ assignedTo: null;
6588
6733
  annotation?: Record<string, string | number | boolean | {
6589
6734
  type: string;
6590
6735
  filename: string;
@@ -6623,11 +6768,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6623
6768
  filename: string;
6624
6769
  originalFilename: string;
6625
6770
  }[] | undefined> | undefined;
6771
+ createdAtLocation?: string | undefined;
6772
+ updatedAtLocation?: string | undefined;
6626
6773
  originalActionId?: string | undefined;
6627
6774
  }>, z.ZodObject<z.objectUtil.extendShape<{
6628
6775
  id: z.ZodString;
6776
+ transactionId: z.ZodString;
6629
6777
  createdAt: z.ZodString;
6630
6778
  createdBy: z.ZodString;
6779
+ createdByRole: z.ZodString;
6631
6780
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6632
6781
  filename: z.ZodString;
6633
6782
  originalFilename: z.ZodString;
@@ -6856,7 +7005,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6856
7005
  addressLine3?: string | null | undefined;
6857
7006
  postcodeOrZip?: string | null | undefined;
6858
7007
  }>]>>>;
6859
- createdAtLocation: z.ZodString;
7008
+ createdAtLocation: z.ZodOptional<z.ZodString>;
7009
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
6860
7010
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6861
7011
  originalActionId: z.ZodOptional<z.ZodString>;
6862
7012
  }, {
@@ -6865,8 +7015,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6865
7015
  type: "PRINT_CERTIFICATE";
6866
7016
  id: string;
6867
7017
  status: "Rejected" | "Requested" | "Accepted";
7018
+ transactionId: string;
6868
7019
  createdAt: string;
6869
7020
  createdBy: string;
7021
+ createdByRole: string;
6870
7022
  declaration: Record<string, string | number | boolean | {
6871
7023
  type: string;
6872
7024
  filename: string;
@@ -6905,7 +7057,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6905
7057
  filename: string;
6906
7058
  originalFilename: string;
6907
7059
  }[] | undefined>;
6908
- createdAtLocation: string;
6909
7060
  annotation?: Record<string, string | number | boolean | {
6910
7061
  type: string;
6911
7062
  filename: string;
@@ -6944,13 +7095,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6944
7095
  filename: string;
6945
7096
  originalFilename: string;
6946
7097
  }[] | undefined> | undefined;
7098
+ createdAtLocation?: string | undefined;
7099
+ updatedAtLocation?: string | undefined;
6947
7100
  originalActionId?: string | undefined;
6948
7101
  }, {
6949
7102
  type: "PRINT_CERTIFICATE";
6950
7103
  id: string;
6951
7104
  status: "Rejected" | "Requested" | "Accepted";
7105
+ transactionId: string;
6952
7106
  createdAt: string;
6953
7107
  createdBy: string;
7108
+ createdByRole: string;
6954
7109
  declaration: Record<string, string | number | boolean | {
6955
7110
  type: string;
6956
7111
  filename: string;
@@ -6989,7 +7144,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6989
7144
  filename: string;
6990
7145
  originalFilename: string;
6991
7146
  }[] | undefined>;
6992
- createdAtLocation: string;
6993
7147
  annotation?: Record<string, string | number | boolean | {
6994
7148
  type: string;
6995
7149
  filename: string;
@@ -7028,11 +7182,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7028
7182
  filename: string;
7029
7183
  originalFilename: string;
7030
7184
  }[] | undefined> | undefined;
7185
+ createdAtLocation?: string | undefined;
7186
+ updatedAtLocation?: string | undefined;
7031
7187
  originalActionId?: string | undefined;
7032
7188
  }>, z.ZodObject<z.objectUtil.extendShape<{
7033
7189
  id: z.ZodString;
7190
+ transactionId: z.ZodString;
7034
7191
  createdAt: z.ZodString;
7035
7192
  createdBy: z.ZodString;
7193
+ createdByRole: z.ZodString;
7036
7194
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7037
7195
  filename: z.ZodString;
7038
7196
  originalFilename: z.ZodString;
@@ -7261,7 +7419,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7261
7419
  addressLine3?: string | null | undefined;
7262
7420
  postcodeOrZip?: string | null | undefined;
7263
7421
  }>]>>>;
7264
- createdAtLocation: z.ZodString;
7422
+ createdAtLocation: z.ZodOptional<z.ZodString>;
7423
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
7265
7424
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7266
7425
  originalActionId: z.ZodOptional<z.ZodString>;
7267
7426
  }, {
@@ -7270,8 +7429,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7270
7429
  type: "READ";
7271
7430
  id: string;
7272
7431
  status: "Rejected" | "Requested" | "Accepted";
7432
+ transactionId: string;
7273
7433
  createdAt: string;
7274
7434
  createdBy: string;
7435
+ createdByRole: string;
7275
7436
  declaration: Record<string, string | number | boolean | {
7276
7437
  type: string;
7277
7438
  filename: string;
@@ -7310,7 +7471,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7310
7471
  filename: string;
7311
7472
  originalFilename: string;
7312
7473
  }[] | undefined>;
7313
- createdAtLocation: string;
7314
7474
  annotation?: Record<string, string | number | boolean | {
7315
7475
  type: string;
7316
7476
  filename: string;
@@ -7349,13 +7509,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7349
7509
  filename: string;
7350
7510
  originalFilename: string;
7351
7511
  }[] | undefined> | undefined;
7512
+ createdAtLocation?: string | undefined;
7513
+ updatedAtLocation?: string | undefined;
7352
7514
  originalActionId?: string | undefined;
7353
7515
  }, {
7354
7516
  type: "READ";
7355
7517
  id: string;
7356
7518
  status: "Rejected" | "Requested" | "Accepted";
7519
+ transactionId: string;
7357
7520
  createdAt: string;
7358
7521
  createdBy: string;
7522
+ createdByRole: string;
7359
7523
  declaration: Record<string, string | number | boolean | {
7360
7524
  type: string;
7361
7525
  filename: string;
@@ -7394,7 +7558,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7394
7558
  filename: string;
7395
7559
  originalFilename: string;
7396
7560
  }[] | undefined>;
7397
- createdAtLocation: string;
7398
7561
  annotation?: Record<string, string | number | boolean | {
7399
7562
  type: string;
7400
7563
  filename: string;
@@ -7433,13 +7596,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7433
7596
  filename: string;
7434
7597
  originalFilename: string;
7435
7598
  }[] | undefined> | undefined;
7599
+ createdAtLocation?: string | undefined;
7600
+ updatedAtLocation?: string | undefined;
7436
7601
  originalActionId?: string | undefined;
7437
7602
  }>]>;
7438
7603
  export type ActionDocument = z.infer<typeof ActionDocument>;
7439
7604
  export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendShape<Omit<{
7440
7605
  id: z.ZodString;
7606
+ transactionId: z.ZodString;
7441
7607
  createdAt: z.ZodString;
7442
7608
  createdBy: z.ZodString;
7609
+ createdByRole: z.ZodString;
7443
7610
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7444
7611
  filename: z.ZodString;
7445
7612
  originalFilename: z.ZodString;
@@ -7668,30 +7835,37 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
7668
7835
  addressLine3?: string | null | undefined;
7669
7836
  postcodeOrZip?: string | null | undefined;
7670
7837
  }>]>>>;
7671
- createdAtLocation: z.ZodString;
7838
+ createdAtLocation: z.ZodOptional<z.ZodString>;
7839
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
7672
7840
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7673
7841
  originalActionId: z.ZodOptional<z.ZodString>;
7674
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
7842
+ }, "createdBy" | "createdByRole" | "declaration" | "annotation" | "createdAtLocation">, {
7675
7843
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
7676
7844
  status: z.ZodLiteral<"Rejected">;
7677
7845
  }>, "strip", z.ZodTypeAny, {
7678
7846
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7679
7847
  id: string;
7680
7848
  status: "Rejected";
7849
+ transactionId: string;
7681
7850
  createdAt: string;
7851
+ updatedAtLocation?: string | undefined;
7682
7852
  originalActionId?: string | undefined;
7683
7853
  }, {
7684
7854
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7685
7855
  id: string;
7686
7856
  status: "Rejected";
7857
+ transactionId: string;
7687
7858
  createdAt: string;
7859
+ updatedAtLocation?: string | undefined;
7688
7860
  originalActionId?: string | undefined;
7689
7861
  }>;
7690
7862
  export type AsyncRejectActionDocument = z.infer<typeof AsyncRejectActionDocument>;
7691
7863
  export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
7692
7864
  id: z.ZodString;
7865
+ transactionId: z.ZodString;
7693
7866
  createdAt: z.ZodString;
7694
7867
  createdBy: z.ZodString;
7868
+ createdByRole: z.ZodString;
7695
7869
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7696
7870
  filename: z.ZodString;
7697
7871
  originalFilename: z.ZodString;
@@ -7920,7 +8094,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7920
8094
  addressLine3?: string | null | undefined;
7921
8095
  postcodeOrZip?: string | null | undefined;
7922
8096
  }>]>>>;
7923
- createdAtLocation: z.ZodString;
8097
+ createdAtLocation: z.ZodOptional<z.ZodString>;
8098
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
7924
8099
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7925
8100
  originalActionId: z.ZodOptional<z.ZodString>;
7926
8101
  }, {
@@ -7929,8 +8104,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7929
8104
  type: "CREATE";
7930
8105
  id: string;
7931
8106
  status: "Rejected" | "Requested" | "Accepted";
8107
+ transactionId: string;
7932
8108
  createdAt: string;
7933
8109
  createdBy: string;
8110
+ createdByRole: string;
7934
8111
  declaration: Record<string, string | number | boolean | {
7935
8112
  type: string;
7936
8113
  filename: string;
@@ -7969,7 +8146,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7969
8146
  filename: string;
7970
8147
  originalFilename: string;
7971
8148
  }[] | undefined>;
7972
- createdAtLocation: string;
7973
8149
  annotation?: Record<string, string | number | boolean | {
7974
8150
  type: string;
7975
8151
  filename: string;
@@ -8008,13 +8184,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8008
8184
  filename: string;
8009
8185
  originalFilename: string;
8010
8186
  }[] | undefined> | undefined;
8187
+ createdAtLocation?: string | undefined;
8188
+ updatedAtLocation?: string | undefined;
8011
8189
  originalActionId?: string | undefined;
8012
8190
  }, {
8013
8191
  type: "CREATE";
8014
8192
  id: string;
8015
8193
  status: "Rejected" | "Requested" | "Accepted";
8194
+ transactionId: string;
8016
8195
  createdAt: string;
8017
8196
  createdBy: string;
8197
+ createdByRole: string;
8018
8198
  declaration: Record<string, string | number | boolean | {
8019
8199
  type: string;
8020
8200
  filename: string;
@@ -8053,7 +8233,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8053
8233
  filename: string;
8054
8234
  originalFilename: string;
8055
8235
  }[] | undefined>;
8056
- createdAtLocation: string;
8057
8236
  annotation?: Record<string, string | number | boolean | {
8058
8237
  type: string;
8059
8238
  filename: string;
@@ -8092,11 +8271,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8092
8271
  filename: string;
8093
8272
  originalFilename: string;
8094
8273
  }[] | undefined> | undefined;
8274
+ createdAtLocation?: string | undefined;
8275
+ updatedAtLocation?: string | undefined;
8095
8276
  originalActionId?: string | undefined;
8096
8277
  }>, z.ZodObject<z.objectUtil.extendShape<{
8097
8278
  id: z.ZodString;
8279
+ transactionId: z.ZodString;
8098
8280
  createdAt: z.ZodString;
8099
8281
  createdBy: z.ZodString;
8282
+ createdByRole: z.ZodString;
8100
8283
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8101
8284
  filename: z.ZodString;
8102
8285
  originalFilename: z.ZodString;
@@ -8325,7 +8508,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8325
8508
  addressLine3?: string | null | undefined;
8326
8509
  postcodeOrZip?: string | null | undefined;
8327
8510
  }>]>>>;
8328
- createdAtLocation: z.ZodString;
8511
+ createdAtLocation: z.ZodOptional<z.ZodString>;
8512
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
8329
8513
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
8330
8514
  originalActionId: z.ZodOptional<z.ZodString>;
8331
8515
  }, {
@@ -8334,8 +8518,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8334
8518
  type: "VALIDATE";
8335
8519
  id: string;
8336
8520
  status: "Rejected" | "Requested" | "Accepted";
8521
+ transactionId: string;
8337
8522
  createdAt: string;
8338
8523
  createdBy: string;
8524
+ createdByRole: string;
8339
8525
  declaration: Record<string, string | number | boolean | {
8340
8526
  type: string;
8341
8527
  filename: string;
@@ -8374,7 +8560,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8374
8560
  filename: string;
8375
8561
  originalFilename: string;
8376
8562
  }[] | undefined>;
8377
- createdAtLocation: string;
8378
8563
  annotation?: Record<string, string | number | boolean | {
8379
8564
  type: string;
8380
8565
  filename: string;
@@ -8413,13 +8598,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8413
8598
  filename: string;
8414
8599
  originalFilename: string;
8415
8600
  }[] | undefined> | undefined;
8601
+ createdAtLocation?: string | undefined;
8602
+ updatedAtLocation?: string | undefined;
8416
8603
  originalActionId?: string | undefined;
8417
8604
  }, {
8418
8605
  type: "VALIDATE";
8419
8606
  id: string;
8420
8607
  status: "Rejected" | "Requested" | "Accepted";
8608
+ transactionId: string;
8421
8609
  createdAt: string;
8422
8610
  createdBy: string;
8611
+ createdByRole: string;
8423
8612
  declaration: Record<string, string | number | boolean | {
8424
8613
  type: string;
8425
8614
  filename: string;
@@ -8458,7 +8647,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8458
8647
  filename: string;
8459
8648
  originalFilename: string;
8460
8649
  }[] | undefined>;
8461
- createdAtLocation: string;
8462
8650
  annotation?: Record<string, string | number | boolean | {
8463
8651
  type: string;
8464
8652
  filename: string;
@@ -8497,11 +8685,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8497
8685
  filename: string;
8498
8686
  originalFilename: string;
8499
8687
  }[] | undefined> | undefined;
8688
+ createdAtLocation?: string | undefined;
8689
+ updatedAtLocation?: string | undefined;
8500
8690
  originalActionId?: string | undefined;
8501
8691
  }>, z.ZodObject<z.objectUtil.extendShape<{
8502
8692
  id: z.ZodString;
8693
+ transactionId: z.ZodString;
8503
8694
  createdAt: z.ZodString;
8504
8695
  createdBy: z.ZodString;
8696
+ createdByRole: z.ZodString;
8505
8697
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8506
8698
  filename: z.ZodString;
8507
8699
  originalFilename: z.ZodString;
@@ -8730,7 +8922,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8730
8922
  addressLine3?: string | null | undefined;
8731
8923
  postcodeOrZip?: string | null | undefined;
8732
8924
  }>]>>>;
8733
- createdAtLocation: z.ZodString;
8925
+ createdAtLocation: z.ZodOptional<z.ZodString>;
8926
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
8734
8927
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
8735
8928
  originalActionId: z.ZodOptional<z.ZodString>;
8736
8929
  }, {
@@ -8739,8 +8932,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8739
8932
  type: "REJECT";
8740
8933
  id: string;
8741
8934
  status: "Rejected" | "Requested" | "Accepted";
8935
+ transactionId: string;
8742
8936
  createdAt: string;
8743
8937
  createdBy: string;
8938
+ createdByRole: string;
8744
8939
  declaration: Record<string, string | number | boolean | {
8745
8940
  type: string;
8746
8941
  filename: string;
@@ -8779,7 +8974,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8779
8974
  filename: string;
8780
8975
  originalFilename: string;
8781
8976
  }[] | undefined>;
8782
- createdAtLocation: string;
8783
8977
  annotation?: Record<string, string | number | boolean | {
8784
8978
  type: string;
8785
8979
  filename: string;
@@ -8818,13 +9012,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8818
9012
  filename: string;
8819
9013
  originalFilename: string;
8820
9014
  }[] | undefined> | undefined;
9015
+ createdAtLocation?: string | undefined;
9016
+ updatedAtLocation?: string | undefined;
8821
9017
  originalActionId?: string | undefined;
8822
9018
  }, {
8823
9019
  type: "REJECT";
8824
9020
  id: string;
8825
9021
  status: "Rejected" | "Requested" | "Accepted";
9022
+ transactionId: string;
8826
9023
  createdAt: string;
8827
9024
  createdBy: string;
9025
+ createdByRole: string;
8828
9026
  declaration: Record<string, string | number | boolean | {
8829
9027
  type: string;
8830
9028
  filename: string;
@@ -8863,7 +9061,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8863
9061
  filename: string;
8864
9062
  originalFilename: string;
8865
9063
  }[] | undefined>;
8866
- createdAtLocation: string;
8867
9064
  annotation?: Record<string, string | number | boolean | {
8868
9065
  type: string;
8869
9066
  filename: string;
@@ -8902,11 +9099,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8902
9099
  filename: string;
8903
9100
  originalFilename: string;
8904
9101
  }[] | undefined> | undefined;
9102
+ createdAtLocation?: string | undefined;
9103
+ updatedAtLocation?: string | undefined;
8905
9104
  originalActionId?: string | undefined;
8906
9105
  }>, z.ZodObject<z.objectUtil.extendShape<{
8907
9106
  id: z.ZodString;
9107
+ transactionId: z.ZodString;
8908
9108
  createdAt: z.ZodString;
8909
9109
  createdBy: z.ZodString;
9110
+ createdByRole: z.ZodString;
8910
9111
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8911
9112
  filename: z.ZodString;
8912
9113
  originalFilename: z.ZodString;
@@ -9135,7 +9336,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9135
9336
  addressLine3?: string | null | undefined;
9136
9337
  postcodeOrZip?: string | null | undefined;
9137
9338
  }>]>>>;
9138
- createdAtLocation: z.ZodString;
9339
+ createdAtLocation: z.ZodOptional<z.ZodString>;
9340
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
9139
9341
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9140
9342
  originalActionId: z.ZodOptional<z.ZodString>;
9141
9343
  }, {
@@ -9144,8 +9346,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9144
9346
  type: "MARKED_AS_DUPLICATE";
9145
9347
  id: string;
9146
9348
  status: "Rejected" | "Requested" | "Accepted";
9349
+ transactionId: string;
9147
9350
  createdAt: string;
9148
9351
  createdBy: string;
9352
+ createdByRole: string;
9149
9353
  declaration: Record<string, string | number | boolean | {
9150
9354
  type: string;
9151
9355
  filename: string;
@@ -9184,7 +9388,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9184
9388
  filename: string;
9185
9389
  originalFilename: string;
9186
9390
  }[] | undefined>;
9187
- createdAtLocation: string;
9188
9391
  annotation?: Record<string, string | number | boolean | {
9189
9392
  type: string;
9190
9393
  filename: string;
@@ -9223,13 +9426,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9223
9426
  filename: string;
9224
9427
  originalFilename: string;
9225
9428
  }[] | undefined> | undefined;
9429
+ createdAtLocation?: string | undefined;
9430
+ updatedAtLocation?: string | undefined;
9226
9431
  originalActionId?: string | undefined;
9227
9432
  }, {
9228
9433
  type: "MARKED_AS_DUPLICATE";
9229
9434
  id: string;
9230
9435
  status: "Rejected" | "Requested" | "Accepted";
9436
+ transactionId: string;
9231
9437
  createdAt: string;
9232
9438
  createdBy: string;
9439
+ createdByRole: string;
9233
9440
  declaration: Record<string, string | number | boolean | {
9234
9441
  type: string;
9235
9442
  filename: string;
@@ -9268,7 +9475,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9268
9475
  filename: string;
9269
9476
  originalFilename: string;
9270
9477
  }[] | undefined>;
9271
- createdAtLocation: string;
9272
9478
  annotation?: Record<string, string | number | boolean | {
9273
9479
  type: string;
9274
9480
  filename: string;
@@ -9307,11 +9513,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9307
9513
  filename: string;
9308
9514
  originalFilename: string;
9309
9515
  }[] | undefined> | undefined;
9516
+ createdAtLocation?: string | undefined;
9517
+ updatedAtLocation?: string | undefined;
9310
9518
  originalActionId?: string | undefined;
9311
9519
  }>, z.ZodObject<z.objectUtil.extendShape<{
9312
9520
  id: z.ZodString;
9521
+ transactionId: z.ZodString;
9313
9522
  createdAt: z.ZodString;
9314
9523
  createdBy: z.ZodString;
9524
+ createdByRole: z.ZodString;
9315
9525
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9316
9526
  filename: z.ZodString;
9317
9527
  originalFilename: z.ZodString;
@@ -9540,7 +9750,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9540
9750
  addressLine3?: string | null | undefined;
9541
9751
  postcodeOrZip?: string | null | undefined;
9542
9752
  }>]>>>;
9543
- createdAtLocation: z.ZodString;
9753
+ createdAtLocation: z.ZodOptional<z.ZodString>;
9754
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
9544
9755
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9545
9756
  originalActionId: z.ZodOptional<z.ZodString>;
9546
9757
  }, {
@@ -9549,8 +9760,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9549
9760
  type: "ARCHIVE";
9550
9761
  id: string;
9551
9762
  status: "Rejected" | "Requested" | "Accepted";
9763
+ transactionId: string;
9552
9764
  createdAt: string;
9553
9765
  createdBy: string;
9766
+ createdByRole: string;
9554
9767
  declaration: Record<string, string | number | boolean | {
9555
9768
  type: string;
9556
9769
  filename: string;
@@ -9589,7 +9802,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9589
9802
  filename: string;
9590
9803
  originalFilename: string;
9591
9804
  }[] | undefined>;
9592
- createdAtLocation: string;
9593
9805
  annotation?: Record<string, string | number | boolean | {
9594
9806
  type: string;
9595
9807
  filename: string;
@@ -9628,13 +9840,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9628
9840
  filename: string;
9629
9841
  originalFilename: string;
9630
9842
  }[] | undefined> | undefined;
9843
+ createdAtLocation?: string | undefined;
9844
+ updatedAtLocation?: string | undefined;
9631
9845
  originalActionId?: string | undefined;
9632
9846
  }, {
9633
9847
  type: "ARCHIVE";
9634
9848
  id: string;
9635
9849
  status: "Rejected" | "Requested" | "Accepted";
9850
+ transactionId: string;
9636
9851
  createdAt: string;
9637
9852
  createdBy: string;
9853
+ createdByRole: string;
9638
9854
  declaration: Record<string, string | number | boolean | {
9639
9855
  type: string;
9640
9856
  filename: string;
@@ -9673,7 +9889,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9673
9889
  filename: string;
9674
9890
  originalFilename: string;
9675
9891
  }[] | undefined>;
9676
- createdAtLocation: string;
9677
9892
  annotation?: Record<string, string | number | boolean | {
9678
9893
  type: string;
9679
9894
  filename: string;
@@ -9712,11 +9927,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9712
9927
  filename: string;
9713
9928
  originalFilename: string;
9714
9929
  }[] | undefined> | undefined;
9930
+ createdAtLocation?: string | undefined;
9931
+ updatedAtLocation?: string | undefined;
9715
9932
  originalActionId?: string | undefined;
9716
9933
  }>, z.ZodObject<z.objectUtil.extendShape<{
9717
9934
  id: z.ZodString;
9935
+ transactionId: z.ZodString;
9718
9936
  createdAt: z.ZodString;
9719
9937
  createdBy: z.ZodString;
9938
+ createdByRole: z.ZodString;
9720
9939
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9721
9940
  filename: z.ZodString;
9722
9941
  originalFilename: z.ZodString;
@@ -9945,7 +10164,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9945
10164
  addressLine3?: string | null | undefined;
9946
10165
  postcodeOrZip?: string | null | undefined;
9947
10166
  }>]>>>;
9948
- createdAtLocation: z.ZodString;
10167
+ createdAtLocation: z.ZodOptional<z.ZodString>;
10168
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
9949
10169
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9950
10170
  originalActionId: z.ZodOptional<z.ZodString>;
9951
10171
  }, {
@@ -9954,8 +10174,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9954
10174
  type: "NOTIFY";
9955
10175
  id: string;
9956
10176
  status: "Rejected" | "Requested" | "Accepted";
10177
+ transactionId: string;
9957
10178
  createdAt: string;
9958
10179
  createdBy: string;
10180
+ createdByRole: string;
9959
10181
  declaration: Record<string, string | number | boolean | {
9960
10182
  type: string;
9961
10183
  filename: string;
@@ -9994,7 +10216,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9994
10216
  filename: string;
9995
10217
  originalFilename: string;
9996
10218
  }[] | undefined>;
9997
- createdAtLocation: string;
9998
10219
  annotation?: Record<string, string | number | boolean | {
9999
10220
  type: string;
10000
10221
  filename: string;
@@ -10033,13 +10254,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10033
10254
  filename: string;
10034
10255
  originalFilename: string;
10035
10256
  }[] | undefined> | undefined;
10257
+ createdAtLocation?: string | undefined;
10258
+ updatedAtLocation?: string | undefined;
10036
10259
  originalActionId?: string | undefined;
10037
10260
  }, {
10038
10261
  type: "NOTIFY";
10039
10262
  id: string;
10040
10263
  status: "Rejected" | "Requested" | "Accepted";
10264
+ transactionId: string;
10041
10265
  createdAt: string;
10042
10266
  createdBy: string;
10267
+ createdByRole: string;
10043
10268
  declaration: Record<string, string | number | boolean | {
10044
10269
  type: string;
10045
10270
  filename: string;
@@ -10078,7 +10303,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10078
10303
  filename: string;
10079
10304
  originalFilename: string;
10080
10305
  }[] | undefined>;
10081
- createdAtLocation: string;
10082
10306
  annotation?: Record<string, string | number | boolean | {
10083
10307
  type: string;
10084
10308
  filename: string;
@@ -10117,11 +10341,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10117
10341
  filename: string;
10118
10342
  originalFilename: string;
10119
10343
  }[] | undefined> | undefined;
10344
+ createdAtLocation?: string | undefined;
10345
+ updatedAtLocation?: string | undefined;
10120
10346
  originalActionId?: string | undefined;
10121
10347
  }>, z.ZodObject<z.objectUtil.extendShape<{
10122
10348
  id: z.ZodString;
10349
+ transactionId: z.ZodString;
10123
10350
  createdAt: z.ZodString;
10124
10351
  createdBy: z.ZodString;
10352
+ createdByRole: z.ZodString;
10125
10353
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10126
10354
  filename: z.ZodString;
10127
10355
  originalFilename: z.ZodString;
@@ -10350,7 +10578,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10350
10578
  addressLine3?: string | null | undefined;
10351
10579
  postcodeOrZip?: string | null | undefined;
10352
10580
  }>]>>>;
10353
- createdAtLocation: z.ZodString;
10581
+ createdAtLocation: z.ZodOptional<z.ZodString>;
10582
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
10354
10583
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
10355
10584
  originalActionId: z.ZodOptional<z.ZodString>;
10356
10585
  }, {
@@ -10360,8 +10589,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10360
10589
  type: "REGISTER";
10361
10590
  id: string;
10362
10591
  status: "Rejected" | "Requested" | "Accepted";
10592
+ transactionId: string;
10363
10593
  createdAt: string;
10364
10594
  createdBy: string;
10595
+ createdByRole: string;
10365
10596
  declaration: Record<string, string | number | boolean | {
10366
10597
  type: string;
10367
10598
  filename: string;
@@ -10400,7 +10631,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10400
10631
  filename: string;
10401
10632
  originalFilename: string;
10402
10633
  }[] | undefined>;
10403
- createdAtLocation: string;
10404
10634
  annotation?: Record<string, string | number | boolean | {
10405
10635
  type: string;
10406
10636
  filename: string;
@@ -10439,14 +10669,18 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10439
10669
  filename: string;
10440
10670
  originalFilename: string;
10441
10671
  }[] | undefined> | undefined;
10672
+ createdAtLocation?: string | undefined;
10673
+ updatedAtLocation?: string | undefined;
10442
10674
  originalActionId?: string | undefined;
10443
10675
  registrationNumber?: string | undefined;
10444
10676
  }, {
10445
10677
  type: "REGISTER";
10446
10678
  id: string;
10447
10679
  status: "Rejected" | "Requested" | "Accepted";
10680
+ transactionId: string;
10448
10681
  createdAt: string;
10449
10682
  createdBy: string;
10683
+ createdByRole: string;
10450
10684
  declaration: Record<string, string | number | boolean | {
10451
10685
  type: string;
10452
10686
  filename: string;
@@ -10485,7 +10719,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10485
10719
  filename: string;
10486
10720
  originalFilename: string;
10487
10721
  }[] | undefined>;
10488
- createdAtLocation: string;
10489
10722
  annotation?: Record<string, string | number | boolean | {
10490
10723
  type: string;
10491
10724
  filename: string;
@@ -10524,12 +10757,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10524
10757
  filename: string;
10525
10758
  originalFilename: string;
10526
10759
  }[] | undefined> | undefined;
10760
+ createdAtLocation?: string | undefined;
10761
+ updatedAtLocation?: string | undefined;
10527
10762
  originalActionId?: string | undefined;
10528
10763
  registrationNumber?: string | undefined;
10529
10764
  }>, z.ZodObject<z.objectUtil.extendShape<{
10530
10765
  id: z.ZodString;
10766
+ transactionId: z.ZodString;
10531
10767
  createdAt: z.ZodString;
10532
10768
  createdBy: z.ZodString;
10769
+ createdByRole: z.ZodString;
10533
10770
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10534
10771
  filename: z.ZodString;
10535
10772
  originalFilename: z.ZodString;
@@ -10758,7 +10995,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10758
10995
  addressLine3?: string | null | undefined;
10759
10996
  postcodeOrZip?: string | null | undefined;
10760
10997
  }>]>>>;
10761
- createdAtLocation: z.ZodString;
10998
+ createdAtLocation: z.ZodOptional<z.ZodString>;
10999
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
10762
11000
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
10763
11001
  originalActionId: z.ZodOptional<z.ZodString>;
10764
11002
  }, {
@@ -10767,8 +11005,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10767
11005
  type: "DECLARE";
10768
11006
  id: string;
10769
11007
  status: "Rejected" | "Requested" | "Accepted";
11008
+ transactionId: string;
10770
11009
  createdAt: string;
10771
11010
  createdBy: string;
11011
+ createdByRole: string;
10772
11012
  declaration: Record<string, string | number | boolean | {
10773
11013
  type: string;
10774
11014
  filename: string;
@@ -10807,7 +11047,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10807
11047
  filename: string;
10808
11048
  originalFilename: string;
10809
11049
  }[] | undefined>;
10810
- createdAtLocation: string;
10811
11050
  annotation?: Record<string, string | number | boolean | {
10812
11051
  type: string;
10813
11052
  filename: string;
@@ -10846,13 +11085,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10846
11085
  filename: string;
10847
11086
  originalFilename: string;
10848
11087
  }[] | undefined> | undefined;
11088
+ createdAtLocation?: string | undefined;
11089
+ updatedAtLocation?: string | undefined;
10849
11090
  originalActionId?: string | undefined;
10850
11091
  }, {
10851
11092
  type: "DECLARE";
10852
11093
  id: string;
10853
11094
  status: "Rejected" | "Requested" | "Accepted";
11095
+ transactionId: string;
10854
11096
  createdAt: string;
10855
11097
  createdBy: string;
11098
+ createdByRole: string;
10856
11099
  declaration: Record<string, string | number | boolean | {
10857
11100
  type: string;
10858
11101
  filename: string;
@@ -10891,7 +11134,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10891
11134
  filename: string;
10892
11135
  originalFilename: string;
10893
11136
  }[] | undefined>;
10894
- createdAtLocation: string;
10895
11137
  annotation?: Record<string, string | number | boolean | {
10896
11138
  type: string;
10897
11139
  filename: string;
@@ -10930,11 +11172,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10930
11172
  filename: string;
10931
11173
  originalFilename: string;
10932
11174
  }[] | undefined> | undefined;
11175
+ createdAtLocation?: string | undefined;
11176
+ updatedAtLocation?: string | undefined;
10933
11177
  originalActionId?: string | undefined;
10934
11178
  }>, z.ZodObject<z.objectUtil.extendShape<{
10935
11179
  id: z.ZodString;
11180
+ transactionId: z.ZodString;
10936
11181
  createdAt: z.ZodString;
10937
11182
  createdBy: z.ZodString;
11183
+ createdByRole: z.ZodString;
10938
11184
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10939
11185
  filename: z.ZodString;
10940
11186
  originalFilename: z.ZodString;
@@ -11163,7 +11409,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11163
11409
  addressLine3?: string | null | undefined;
11164
11410
  postcodeOrZip?: string | null | undefined;
11165
11411
  }>]>>>;
11166
- createdAtLocation: z.ZodString;
11412
+ createdAtLocation: z.ZodOptional<z.ZodString>;
11413
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
11167
11414
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11168
11415
  originalActionId: z.ZodOptional<z.ZodString>;
11169
11416
  }, {
@@ -11173,8 +11420,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11173
11420
  type: "ASSIGN";
11174
11421
  id: string;
11175
11422
  status: "Rejected" | "Requested" | "Accepted";
11423
+ transactionId: string;
11176
11424
  createdAt: string;
11177
11425
  createdBy: string;
11426
+ createdByRole: string;
11178
11427
  declaration: Record<string, string | number | boolean | {
11179
11428
  type: string;
11180
11429
  filename: string;
@@ -11213,7 +11462,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11213
11462
  filename: string;
11214
11463
  originalFilename: string;
11215
11464
  }[] | undefined>;
11216
- createdAtLocation: string;
11217
11465
  assignedTo: string;
11218
11466
  annotation?: Record<string, string | number | boolean | {
11219
11467
  type: string;
@@ -11253,13 +11501,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11253
11501
  filename: string;
11254
11502
  originalFilename: string;
11255
11503
  }[] | undefined> | undefined;
11504
+ createdAtLocation?: string | undefined;
11505
+ updatedAtLocation?: string | undefined;
11256
11506
  originalActionId?: string | undefined;
11257
11507
  }, {
11258
11508
  type: "ASSIGN";
11259
11509
  id: string;
11260
11510
  status: "Rejected" | "Requested" | "Accepted";
11511
+ transactionId: string;
11261
11512
  createdAt: string;
11262
11513
  createdBy: string;
11514
+ createdByRole: string;
11263
11515
  declaration: Record<string, string | number | boolean | {
11264
11516
  type: string;
11265
11517
  filename: string;
@@ -11298,7 +11550,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11298
11550
  filename: string;
11299
11551
  originalFilename: string;
11300
11552
  }[] | undefined>;
11301
- createdAtLocation: string;
11302
11553
  assignedTo: string;
11303
11554
  annotation?: Record<string, string | number | boolean | {
11304
11555
  type: string;
@@ -11338,11 +11589,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11338
11589
  filename: string;
11339
11590
  originalFilename: string;
11340
11591
  }[] | undefined> | undefined;
11592
+ createdAtLocation?: string | undefined;
11593
+ updatedAtLocation?: string | undefined;
11341
11594
  originalActionId?: string | undefined;
11342
11595
  }>, z.ZodObject<z.objectUtil.extendShape<{
11343
11596
  id: z.ZodString;
11597
+ transactionId: z.ZodString;
11344
11598
  createdAt: z.ZodString;
11345
11599
  createdBy: z.ZodString;
11600
+ createdByRole: z.ZodString;
11346
11601
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11347
11602
  filename: z.ZodString;
11348
11603
  originalFilename: z.ZodString;
@@ -11571,7 +11826,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11571
11826
  addressLine3?: string | null | undefined;
11572
11827
  postcodeOrZip?: string | null | undefined;
11573
11828
  }>]>>>;
11574
- createdAtLocation: z.ZodString;
11829
+ createdAtLocation: z.ZodOptional<z.ZodString>;
11830
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
11575
11831
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11576
11832
  originalActionId: z.ZodOptional<z.ZodString>;
11577
11833
  }, {
@@ -11580,8 +11836,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11580
11836
  type: "REQUEST_CORRECTION";
11581
11837
  id: string;
11582
11838
  status: "Rejected" | "Requested" | "Accepted";
11839
+ transactionId: string;
11583
11840
  createdAt: string;
11584
11841
  createdBy: string;
11842
+ createdByRole: string;
11585
11843
  declaration: Record<string, string | number | boolean | {
11586
11844
  type: string;
11587
11845
  filename: string;
@@ -11620,7 +11878,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11620
11878
  filename: string;
11621
11879
  originalFilename: string;
11622
11880
  }[] | undefined>;
11623
- createdAtLocation: string;
11624
11881
  annotation?: Record<string, string | number | boolean | {
11625
11882
  type: string;
11626
11883
  filename: string;
@@ -11659,13 +11916,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11659
11916
  filename: string;
11660
11917
  originalFilename: string;
11661
11918
  }[] | undefined> | undefined;
11919
+ createdAtLocation?: string | undefined;
11920
+ updatedAtLocation?: string | undefined;
11662
11921
  originalActionId?: string | undefined;
11663
11922
  }, {
11664
11923
  type: "REQUEST_CORRECTION";
11665
11924
  id: string;
11666
11925
  status: "Rejected" | "Requested" | "Accepted";
11926
+ transactionId: string;
11667
11927
  createdAt: string;
11668
11928
  createdBy: string;
11929
+ createdByRole: string;
11669
11930
  declaration: Record<string, string | number | boolean | {
11670
11931
  type: string;
11671
11932
  filename: string;
@@ -11704,7 +11965,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11704
11965
  filename: string;
11705
11966
  originalFilename: string;
11706
11967
  }[] | undefined>;
11707
- createdAtLocation: string;
11708
11968
  annotation?: Record<string, string | number | boolean | {
11709
11969
  type: string;
11710
11970
  filename: string;
@@ -11743,11 +12003,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11743
12003
  filename: string;
11744
12004
  originalFilename: string;
11745
12005
  }[] | undefined> | undefined;
12006
+ createdAtLocation?: string | undefined;
12007
+ updatedAtLocation?: string | undefined;
11746
12008
  originalActionId?: string | undefined;
11747
12009
  }>, z.ZodObject<z.objectUtil.extendShape<{
11748
12010
  id: z.ZodString;
12011
+ transactionId: z.ZodString;
11749
12012
  createdAt: z.ZodString;
11750
12013
  createdBy: z.ZodString;
12014
+ createdByRole: z.ZodString;
11751
12015
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11752
12016
  filename: z.ZodString;
11753
12017
  originalFilename: z.ZodString;
@@ -11976,7 +12240,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11976
12240
  addressLine3?: string | null | undefined;
11977
12241
  postcodeOrZip?: string | null | undefined;
11978
12242
  }>]>>>;
11979
- createdAtLocation: z.ZodString;
12243
+ createdAtLocation: z.ZodOptional<z.ZodString>;
12244
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
11980
12245
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11981
12246
  originalActionId: z.ZodOptional<z.ZodString>;
11982
12247
  }, {
@@ -11986,8 +12251,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11986
12251
  type: "APPROVE_CORRECTION";
11987
12252
  id: string;
11988
12253
  status: "Rejected" | "Requested" | "Accepted";
12254
+ transactionId: string;
11989
12255
  createdAt: string;
11990
12256
  createdBy: string;
12257
+ createdByRole: string;
11991
12258
  declaration: Record<string, string | number | boolean | {
11992
12259
  type: string;
11993
12260
  filename: string;
@@ -12026,7 +12293,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12026
12293
  filename: string;
12027
12294
  originalFilename: string;
12028
12295
  }[] | undefined>;
12029
- createdAtLocation: string;
12030
12296
  requestId: string;
12031
12297
  annotation?: Record<string, string | number | boolean | {
12032
12298
  type: string;
@@ -12066,13 +12332,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12066
12332
  filename: string;
12067
12333
  originalFilename: string;
12068
12334
  }[] | undefined> | undefined;
12335
+ createdAtLocation?: string | undefined;
12336
+ updatedAtLocation?: string | undefined;
12069
12337
  originalActionId?: string | undefined;
12070
12338
  }, {
12071
12339
  type: "APPROVE_CORRECTION";
12072
12340
  id: string;
12073
12341
  status: "Rejected" | "Requested" | "Accepted";
12342
+ transactionId: string;
12074
12343
  createdAt: string;
12075
12344
  createdBy: string;
12345
+ createdByRole: string;
12076
12346
  declaration: Record<string, string | number | boolean | {
12077
12347
  type: string;
12078
12348
  filename: string;
@@ -12111,7 +12381,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12111
12381
  filename: string;
12112
12382
  originalFilename: string;
12113
12383
  }[] | undefined>;
12114
- createdAtLocation: string;
12115
12384
  requestId: string;
12116
12385
  annotation?: Record<string, string | number | boolean | {
12117
12386
  type: string;
@@ -12151,11 +12420,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12151
12420
  filename: string;
12152
12421
  originalFilename: string;
12153
12422
  }[] | undefined> | undefined;
12423
+ createdAtLocation?: string | undefined;
12424
+ updatedAtLocation?: string | undefined;
12154
12425
  originalActionId?: string | undefined;
12155
12426
  }>, z.ZodObject<z.objectUtil.extendShape<{
12156
12427
  id: z.ZodString;
12428
+ transactionId: z.ZodString;
12157
12429
  createdAt: z.ZodString;
12158
12430
  createdBy: z.ZodString;
12431
+ createdByRole: z.ZodString;
12159
12432
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12160
12433
  filename: z.ZodString;
12161
12434
  originalFilename: z.ZodString;
@@ -12384,7 +12657,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12384
12657
  addressLine3?: string | null | undefined;
12385
12658
  postcodeOrZip?: string | null | undefined;
12386
12659
  }>]>>>;
12387
- createdAtLocation: z.ZodString;
12660
+ createdAtLocation: z.ZodOptional<z.ZodString>;
12661
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
12388
12662
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
12389
12663
  originalActionId: z.ZodOptional<z.ZodString>;
12390
12664
  }, {
@@ -12394,8 +12668,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12394
12668
  type: "REJECT_CORRECTION";
12395
12669
  id: string;
12396
12670
  status: "Rejected" | "Requested" | "Accepted";
12671
+ transactionId: string;
12397
12672
  createdAt: string;
12398
12673
  createdBy: string;
12674
+ createdByRole: string;
12399
12675
  declaration: Record<string, string | number | boolean | {
12400
12676
  type: string;
12401
12677
  filename: string;
@@ -12434,7 +12710,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12434
12710
  filename: string;
12435
12711
  originalFilename: string;
12436
12712
  }[] | undefined>;
12437
- createdAtLocation: string;
12438
12713
  requestId: string;
12439
12714
  annotation?: Record<string, string | number | boolean | {
12440
12715
  type: string;
@@ -12474,13 +12749,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12474
12749
  filename: string;
12475
12750
  originalFilename: string;
12476
12751
  }[] | undefined> | undefined;
12752
+ createdAtLocation?: string | undefined;
12753
+ updatedAtLocation?: string | undefined;
12477
12754
  originalActionId?: string | undefined;
12478
12755
  }, {
12479
12756
  type: "REJECT_CORRECTION";
12480
12757
  id: string;
12481
12758
  status: "Rejected" | "Requested" | "Accepted";
12759
+ transactionId: string;
12482
12760
  createdAt: string;
12483
12761
  createdBy: string;
12762
+ createdByRole: string;
12484
12763
  declaration: Record<string, string | number | boolean | {
12485
12764
  type: string;
12486
12765
  filename: string;
@@ -12519,7 +12798,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12519
12798
  filename: string;
12520
12799
  originalFilename: string;
12521
12800
  }[] | undefined>;
12522
- createdAtLocation: string;
12523
12801
  requestId: string;
12524
12802
  annotation?: Record<string, string | number | boolean | {
12525
12803
  type: string;
@@ -12559,11 +12837,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12559
12837
  filename: string;
12560
12838
  originalFilename: string;
12561
12839
  }[] | undefined> | undefined;
12840
+ createdAtLocation?: string | undefined;
12841
+ updatedAtLocation?: string | undefined;
12562
12842
  originalActionId?: string | undefined;
12563
12843
  }>, z.ZodObject<z.objectUtil.extendShape<{
12564
12844
  id: z.ZodString;
12845
+ transactionId: z.ZodString;
12565
12846
  createdAt: z.ZodString;
12566
12847
  createdBy: z.ZodString;
12848
+ createdByRole: z.ZodString;
12567
12849
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12568
12850
  filename: z.ZodString;
12569
12851
  originalFilename: z.ZodString;
@@ -12792,17 +13074,21 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12792
13074
  addressLine3?: string | null | undefined;
12793
13075
  postcodeOrZip?: string | null | undefined;
12794
13076
  }>]>>>;
12795
- createdAtLocation: z.ZodString;
13077
+ createdAtLocation: z.ZodOptional<z.ZodString>;
13078
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
12796
13079
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
12797
13080
  originalActionId: z.ZodOptional<z.ZodString>;
12798
13081
  }, {
12799
13082
  type: z.ZodLiteral<"UNASSIGN">;
13083
+ assignedTo: z.ZodLiteral<null>;
12800
13084
  }>, "strip", z.ZodTypeAny, {
12801
13085
  type: "UNASSIGN";
12802
13086
  id: string;
12803
13087
  status: "Rejected" | "Requested" | "Accepted";
13088
+ transactionId: string;
12804
13089
  createdAt: string;
12805
13090
  createdBy: string;
13091
+ createdByRole: string;
12806
13092
  declaration: Record<string, string | number | boolean | {
12807
13093
  type: string;
12808
13094
  filename: string;
@@ -12841,7 +13127,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12841
13127
  filename: string;
12842
13128
  originalFilename: string;
12843
13129
  }[] | undefined>;
12844
- createdAtLocation: string;
13130
+ assignedTo: null;
12845
13131
  annotation?: Record<string, string | number | boolean | {
12846
13132
  type: string;
12847
13133
  filename: string;
@@ -12880,13 +13166,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12880
13166
  filename: string;
12881
13167
  originalFilename: string;
12882
13168
  }[] | undefined> | undefined;
13169
+ createdAtLocation?: string | undefined;
13170
+ updatedAtLocation?: string | undefined;
12883
13171
  originalActionId?: string | undefined;
12884
13172
  }, {
12885
13173
  type: "UNASSIGN";
12886
13174
  id: string;
12887
13175
  status: "Rejected" | "Requested" | "Accepted";
13176
+ transactionId: string;
12888
13177
  createdAt: string;
12889
13178
  createdBy: string;
13179
+ createdByRole: string;
12890
13180
  declaration: Record<string, string | number | boolean | {
12891
13181
  type: string;
12892
13182
  filename: string;
@@ -12925,7 +13215,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12925
13215
  filename: string;
12926
13216
  originalFilename: string;
12927
13217
  }[] | undefined>;
12928
- createdAtLocation: string;
13218
+ assignedTo: null;
12929
13219
  annotation?: Record<string, string | number | boolean | {
12930
13220
  type: string;
12931
13221
  filename: string;
@@ -12964,11 +13254,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12964
13254
  filename: string;
12965
13255
  originalFilename: string;
12966
13256
  }[] | undefined> | undefined;
13257
+ createdAtLocation?: string | undefined;
13258
+ updatedAtLocation?: string | undefined;
12967
13259
  originalActionId?: string | undefined;
12968
13260
  }>, z.ZodObject<z.objectUtil.extendShape<{
12969
13261
  id: z.ZodString;
13262
+ transactionId: z.ZodString;
12970
13263
  createdAt: z.ZodString;
12971
13264
  createdBy: z.ZodString;
13265
+ createdByRole: z.ZodString;
12972
13266
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12973
13267
  filename: z.ZodString;
12974
13268
  originalFilename: z.ZodString;
@@ -13197,7 +13491,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13197
13491
  addressLine3?: string | null | undefined;
13198
13492
  postcodeOrZip?: string | null | undefined;
13199
13493
  }>]>>>;
13200
- createdAtLocation: z.ZodString;
13494
+ createdAtLocation: z.ZodOptional<z.ZodString>;
13495
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
13201
13496
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
13202
13497
  originalActionId: z.ZodOptional<z.ZodString>;
13203
13498
  }, {
@@ -13206,8 +13501,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13206
13501
  type: "PRINT_CERTIFICATE";
13207
13502
  id: string;
13208
13503
  status: "Rejected" | "Requested" | "Accepted";
13504
+ transactionId: string;
13209
13505
  createdAt: string;
13210
13506
  createdBy: string;
13507
+ createdByRole: string;
13211
13508
  declaration: Record<string, string | number | boolean | {
13212
13509
  type: string;
13213
13510
  filename: string;
@@ -13246,7 +13543,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13246
13543
  filename: string;
13247
13544
  originalFilename: string;
13248
13545
  }[] | undefined>;
13249
- createdAtLocation: string;
13250
13546
  annotation?: Record<string, string | number | boolean | {
13251
13547
  type: string;
13252
13548
  filename: string;
@@ -13285,13 +13581,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13285
13581
  filename: string;
13286
13582
  originalFilename: string;
13287
13583
  }[] | undefined> | undefined;
13584
+ createdAtLocation?: string | undefined;
13585
+ updatedAtLocation?: string | undefined;
13288
13586
  originalActionId?: string | undefined;
13289
13587
  }, {
13290
13588
  type: "PRINT_CERTIFICATE";
13291
13589
  id: string;
13292
13590
  status: "Rejected" | "Requested" | "Accepted";
13591
+ transactionId: string;
13293
13592
  createdAt: string;
13294
13593
  createdBy: string;
13594
+ createdByRole: string;
13295
13595
  declaration: Record<string, string | number | boolean | {
13296
13596
  type: string;
13297
13597
  filename: string;
@@ -13330,7 +13630,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13330
13630
  filename: string;
13331
13631
  originalFilename: string;
13332
13632
  }[] | undefined>;
13333
- createdAtLocation: string;
13334
13633
  annotation?: Record<string, string | number | boolean | {
13335
13634
  type: string;
13336
13635
  filename: string;
@@ -13369,11 +13668,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13369
13668
  filename: string;
13370
13669
  originalFilename: string;
13371
13670
  }[] | undefined> | undefined;
13671
+ createdAtLocation?: string | undefined;
13672
+ updatedAtLocation?: string | undefined;
13372
13673
  originalActionId?: string | undefined;
13373
13674
  }>, z.ZodObject<z.objectUtil.extendShape<{
13374
13675
  id: z.ZodString;
13676
+ transactionId: z.ZodString;
13375
13677
  createdAt: z.ZodString;
13376
13678
  createdBy: z.ZodString;
13679
+ createdByRole: z.ZodString;
13377
13680
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13378
13681
  filename: z.ZodString;
13379
13682
  originalFilename: z.ZodString;
@@ -13602,7 +13905,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13602
13905
  addressLine3?: string | null | undefined;
13603
13906
  postcodeOrZip?: string | null | undefined;
13604
13907
  }>]>>>;
13605
- createdAtLocation: z.ZodString;
13908
+ createdAtLocation: z.ZodOptional<z.ZodString>;
13909
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
13606
13910
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
13607
13911
  originalActionId: z.ZodOptional<z.ZodString>;
13608
13912
  }, {
@@ -13611,8 +13915,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13611
13915
  type: "READ";
13612
13916
  id: string;
13613
13917
  status: "Rejected" | "Requested" | "Accepted";
13918
+ transactionId: string;
13614
13919
  createdAt: string;
13615
13920
  createdBy: string;
13921
+ createdByRole: string;
13616
13922
  declaration: Record<string, string | number | boolean | {
13617
13923
  type: string;
13618
13924
  filename: string;
@@ -13651,7 +13957,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13651
13957
  filename: string;
13652
13958
  originalFilename: string;
13653
13959
  }[] | undefined>;
13654
- createdAtLocation: string;
13655
13960
  annotation?: Record<string, string | number | boolean | {
13656
13961
  type: string;
13657
13962
  filename: string;
@@ -13690,13 +13995,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13690
13995
  filename: string;
13691
13996
  originalFilename: string;
13692
13997
  }[] | undefined> | undefined;
13998
+ createdAtLocation?: string | undefined;
13999
+ updatedAtLocation?: string | undefined;
13693
14000
  originalActionId?: string | undefined;
13694
14001
  }, {
13695
14002
  type: "READ";
13696
14003
  id: string;
13697
14004
  status: "Rejected" | "Requested" | "Accepted";
14005
+ transactionId: string;
13698
14006
  createdAt: string;
13699
14007
  createdBy: string;
14008
+ createdByRole: string;
13700
14009
  declaration: Record<string, string | number | boolean | {
13701
14010
  type: string;
13702
14011
  filename: string;
@@ -13735,7 +14044,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13735
14044
  filename: string;
13736
14045
  originalFilename: string;
13737
14046
  }[] | undefined>;
13738
- createdAtLocation: string;
13739
14047
  annotation?: Record<string, string | number | boolean | {
13740
14048
  type: string;
13741
14049
  filename: string;
@@ -13774,11 +14082,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13774
14082
  filename: string;
13775
14083
  originalFilename: string;
13776
14084
  }[] | undefined> | undefined;
14085
+ createdAtLocation?: string | undefined;
14086
+ updatedAtLocation?: string | undefined;
13777
14087
  originalActionId?: string | undefined;
13778
14088
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
13779
14089
  id: z.ZodString;
14090
+ transactionId: z.ZodString;
13780
14091
  createdAt: z.ZodString;
13781
14092
  createdBy: z.ZodString;
14093
+ createdByRole: z.ZodString;
13782
14094
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13783
14095
  filename: z.ZodString;
13784
14096
  originalFilename: z.ZodString;
@@ -14007,23 +14319,28 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14007
14319
  addressLine3?: string | null | undefined;
14008
14320
  postcodeOrZip?: string | null | undefined;
14009
14321
  }>]>>>;
14010
- createdAtLocation: z.ZodString;
14322
+ createdAtLocation: z.ZodOptional<z.ZodString>;
14323
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
14011
14324
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
14012
14325
  originalActionId: z.ZodOptional<z.ZodString>;
14013
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
14326
+ }, "createdBy" | "createdByRole" | "declaration" | "annotation" | "createdAtLocation">, {
14014
14327
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
14015
14328
  status: z.ZodLiteral<"Rejected">;
14016
14329
  }>, "strip", z.ZodTypeAny, {
14017
14330
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
14018
14331
  id: string;
14019
14332
  status: "Rejected";
14333
+ transactionId: string;
14020
14334
  createdAt: string;
14335
+ updatedAtLocation?: string | undefined;
14021
14336
  originalActionId?: string | undefined;
14022
14337
  }, {
14023
14338
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
14024
14339
  id: string;
14025
14340
  status: "Rejected";
14341
+ transactionId: string;
14026
14342
  createdAt: string;
14343
+ updatedAtLocation?: string | undefined;
14027
14344
  originalActionId?: string | undefined;
14028
14345
  }>]>;
14029
14346
  export type Action = ActionDocument | AsyncRejectActionDocument;