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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/commons/api/router.d.ts +7266 -4144
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -6
  3. package/dist/commons/events/ActionConfig.d.ts +86380 -1682
  4. package/dist/commons/events/ActionDocument.d.ts +418 -107
  5. package/dist/commons/events/ActionInput.d.ts +68 -60
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +371 -25
  7. package/dist/commons/events/Draft.d.ts +24 -9
  8. package/dist/commons/events/EventConfig.d.ts +40980 -1394
  9. package/dist/commons/events/EventDocument.d.ts +331 -82
  10. package/dist/commons/events/EventIndex.d.ts +912 -4
  11. package/dist/commons/events/EventInput.d.ts +13 -0
  12. package/dist/commons/events/EventMetadata.d.ts +10 -3
  13. package/dist/commons/events/FieldConfig.d.ts +3415 -711
  14. package/dist/commons/events/FieldType.d.ts +1 -2
  15. package/dist/commons/events/FieldValue.d.ts +1 -1
  16. package/dist/commons/events/FormConfig.d.ts +38845 -517
  17. package/dist/commons/events/PageConfig.d.ts +9671 -203
  18. package/dist/commons/events/SummaryConfig.d.ts +0 -47
  19. package/dist/commons/events/WorkqueueConfig.d.ts +44 -20
  20. package/dist/commons/events/defineConfig.d.ts +6669 -30
  21. package/dist/commons/events/event.d.ts +25 -0
  22. package/dist/commons/events/field.d.ts +68 -0
  23. package/dist/commons/events/index.d.ts +2 -0
  24. package/dist/commons/events/scopes.d.ts +1 -0
  25. package/dist/commons/events/test.utils.d.ts +1 -38
  26. package/dist/commons/events/utils.d.ts +3401 -90
  27. package/dist/conditionals/index.js +36 -33
  28. package/dist/events/index.js +707 -577
  29. package/package.json +3 -2
@@ -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,18 +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">;
6459
- assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
6597
+ assignedTo: z.ZodLiteral<null>;
6460
6598
  }>, "strip", z.ZodTypeAny, {
6461
6599
  type: "UNASSIGN";
6462
6600
  id: string;
6463
6601
  status: "Rejected" | "Requested" | "Accepted";
6602
+ transactionId: string;
6464
6603
  createdAt: string;
6465
6604
  createdBy: string;
6605
+ createdByRole: string;
6466
6606
  declaration: Record<string, string | number | boolean | {
6467
6607
  type: string;
6468
6608
  filename: string;
@@ -6501,7 +6641,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6501
6641
  filename: string;
6502
6642
  originalFilename: string;
6503
6643
  }[] | undefined>;
6504
- createdAtLocation: string;
6505
6644
  assignedTo: null;
6506
6645
  annotation?: Record<string, string | number | boolean | {
6507
6646
  type: string;
@@ -6541,13 +6680,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6541
6680
  filename: string;
6542
6681
  originalFilename: string;
6543
6682
  }[] | undefined> | undefined;
6683
+ createdAtLocation?: string | undefined;
6684
+ updatedAtLocation?: string | undefined;
6544
6685
  originalActionId?: string | undefined;
6545
6686
  }, {
6546
6687
  type: "UNASSIGN";
6547
6688
  id: string;
6548
6689
  status: "Rejected" | "Requested" | "Accepted";
6690
+ transactionId: string;
6549
6691
  createdAt: string;
6550
6692
  createdBy: string;
6693
+ createdByRole: string;
6551
6694
  declaration: Record<string, string | number | boolean | {
6552
6695
  type: string;
6553
6696
  filename: string;
@@ -6586,7 +6729,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6586
6729
  filename: string;
6587
6730
  originalFilename: string;
6588
6731
  }[] | undefined>;
6589
- createdAtLocation: string;
6732
+ assignedTo: null;
6590
6733
  annotation?: Record<string, string | number | boolean | {
6591
6734
  type: string;
6592
6735
  filename: string;
@@ -6625,12 +6768,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6625
6768
  filename: string;
6626
6769
  originalFilename: string;
6627
6770
  }[] | undefined> | undefined;
6771
+ createdAtLocation?: string | undefined;
6772
+ updatedAtLocation?: string | undefined;
6628
6773
  originalActionId?: string | undefined;
6629
- assignedTo?: null | undefined;
6630
6774
  }>, z.ZodObject<z.objectUtil.extendShape<{
6631
6775
  id: z.ZodString;
6776
+ transactionId: z.ZodString;
6632
6777
  createdAt: z.ZodString;
6633
6778
  createdBy: z.ZodString;
6779
+ createdByRole: z.ZodString;
6634
6780
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6635
6781
  filename: z.ZodString;
6636
6782
  originalFilename: z.ZodString;
@@ -6859,7 +7005,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6859
7005
  addressLine3?: string | null | undefined;
6860
7006
  postcodeOrZip?: string | null | undefined;
6861
7007
  }>]>>>;
6862
- createdAtLocation: z.ZodString;
7008
+ createdAtLocation: z.ZodOptional<z.ZodString>;
7009
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
6863
7010
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6864
7011
  originalActionId: z.ZodOptional<z.ZodString>;
6865
7012
  }, {
@@ -6868,8 +7015,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6868
7015
  type: "PRINT_CERTIFICATE";
6869
7016
  id: string;
6870
7017
  status: "Rejected" | "Requested" | "Accepted";
7018
+ transactionId: string;
6871
7019
  createdAt: string;
6872
7020
  createdBy: string;
7021
+ createdByRole: string;
6873
7022
  declaration: Record<string, string | number | boolean | {
6874
7023
  type: string;
6875
7024
  filename: string;
@@ -6908,7 +7057,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6908
7057
  filename: string;
6909
7058
  originalFilename: string;
6910
7059
  }[] | undefined>;
6911
- createdAtLocation: string;
6912
7060
  annotation?: Record<string, string | number | boolean | {
6913
7061
  type: string;
6914
7062
  filename: string;
@@ -6947,13 +7095,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6947
7095
  filename: string;
6948
7096
  originalFilename: string;
6949
7097
  }[] | undefined> | undefined;
7098
+ createdAtLocation?: string | undefined;
7099
+ updatedAtLocation?: string | undefined;
6950
7100
  originalActionId?: string | undefined;
6951
7101
  }, {
6952
7102
  type: "PRINT_CERTIFICATE";
6953
7103
  id: string;
6954
7104
  status: "Rejected" | "Requested" | "Accepted";
7105
+ transactionId: string;
6955
7106
  createdAt: string;
6956
7107
  createdBy: string;
7108
+ createdByRole: string;
6957
7109
  declaration: Record<string, string | number | boolean | {
6958
7110
  type: string;
6959
7111
  filename: string;
@@ -6992,7 +7144,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6992
7144
  filename: string;
6993
7145
  originalFilename: string;
6994
7146
  }[] | undefined>;
6995
- createdAtLocation: string;
6996
7147
  annotation?: Record<string, string | number | boolean | {
6997
7148
  type: string;
6998
7149
  filename: string;
@@ -7031,11 +7182,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7031
7182
  filename: string;
7032
7183
  originalFilename: string;
7033
7184
  }[] | undefined> | undefined;
7185
+ createdAtLocation?: string | undefined;
7186
+ updatedAtLocation?: string | undefined;
7034
7187
  originalActionId?: string | undefined;
7035
7188
  }>, z.ZodObject<z.objectUtil.extendShape<{
7036
7189
  id: z.ZodString;
7190
+ transactionId: z.ZodString;
7037
7191
  createdAt: z.ZodString;
7038
7192
  createdBy: z.ZodString;
7193
+ createdByRole: z.ZodString;
7039
7194
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7040
7195
  filename: z.ZodString;
7041
7196
  originalFilename: z.ZodString;
@@ -7264,7 +7419,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7264
7419
  addressLine3?: string | null | undefined;
7265
7420
  postcodeOrZip?: string | null | undefined;
7266
7421
  }>]>>>;
7267
- createdAtLocation: z.ZodString;
7422
+ createdAtLocation: z.ZodOptional<z.ZodString>;
7423
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
7268
7424
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7269
7425
  originalActionId: z.ZodOptional<z.ZodString>;
7270
7426
  }, {
@@ -7273,8 +7429,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7273
7429
  type: "READ";
7274
7430
  id: string;
7275
7431
  status: "Rejected" | "Requested" | "Accepted";
7432
+ transactionId: string;
7276
7433
  createdAt: string;
7277
7434
  createdBy: string;
7435
+ createdByRole: string;
7278
7436
  declaration: Record<string, string | number | boolean | {
7279
7437
  type: string;
7280
7438
  filename: string;
@@ -7313,7 +7471,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7313
7471
  filename: string;
7314
7472
  originalFilename: string;
7315
7473
  }[] | undefined>;
7316
- createdAtLocation: string;
7317
7474
  annotation?: Record<string, string | number | boolean | {
7318
7475
  type: string;
7319
7476
  filename: string;
@@ -7352,13 +7509,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7352
7509
  filename: string;
7353
7510
  originalFilename: string;
7354
7511
  }[] | undefined> | undefined;
7512
+ createdAtLocation?: string | undefined;
7513
+ updatedAtLocation?: string | undefined;
7355
7514
  originalActionId?: string | undefined;
7356
7515
  }, {
7357
7516
  type: "READ";
7358
7517
  id: string;
7359
7518
  status: "Rejected" | "Requested" | "Accepted";
7519
+ transactionId: string;
7360
7520
  createdAt: string;
7361
7521
  createdBy: string;
7522
+ createdByRole: string;
7362
7523
  declaration: Record<string, string | number | boolean | {
7363
7524
  type: string;
7364
7525
  filename: string;
@@ -7397,7 +7558,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7397
7558
  filename: string;
7398
7559
  originalFilename: string;
7399
7560
  }[] | undefined>;
7400
- createdAtLocation: string;
7401
7561
  annotation?: Record<string, string | number | boolean | {
7402
7562
  type: string;
7403
7563
  filename: string;
@@ -7436,13 +7596,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7436
7596
  filename: string;
7437
7597
  originalFilename: string;
7438
7598
  }[] | undefined> | undefined;
7599
+ createdAtLocation?: string | undefined;
7600
+ updatedAtLocation?: string | undefined;
7439
7601
  originalActionId?: string | undefined;
7440
7602
  }>]>;
7441
7603
  export type ActionDocument = z.infer<typeof ActionDocument>;
7442
7604
  export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendShape<Omit<{
7443
7605
  id: z.ZodString;
7606
+ transactionId: z.ZodString;
7444
7607
  createdAt: z.ZodString;
7445
7608
  createdBy: z.ZodString;
7609
+ createdByRole: z.ZodString;
7446
7610
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7447
7611
  filename: z.ZodString;
7448
7612
  originalFilename: z.ZodString;
@@ -7671,30 +7835,37 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
7671
7835
  addressLine3?: string | null | undefined;
7672
7836
  postcodeOrZip?: string | null | undefined;
7673
7837
  }>]>>>;
7674
- createdAtLocation: z.ZodString;
7838
+ createdAtLocation: z.ZodOptional<z.ZodString>;
7839
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
7675
7840
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7676
7841
  originalActionId: z.ZodOptional<z.ZodString>;
7677
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
7842
+ }, "createdBy" | "createdByRole" | "declaration" | "annotation" | "createdAtLocation">, {
7678
7843
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
7679
7844
  status: z.ZodLiteral<"Rejected">;
7680
7845
  }>, "strip", z.ZodTypeAny, {
7681
7846
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7682
7847
  id: string;
7683
7848
  status: "Rejected";
7849
+ transactionId: string;
7684
7850
  createdAt: string;
7851
+ updatedAtLocation?: string | undefined;
7685
7852
  originalActionId?: string | undefined;
7686
7853
  }, {
7687
7854
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7688
7855
  id: string;
7689
7856
  status: "Rejected";
7857
+ transactionId: string;
7690
7858
  createdAt: string;
7859
+ updatedAtLocation?: string | undefined;
7691
7860
  originalActionId?: string | undefined;
7692
7861
  }>;
7693
7862
  export type AsyncRejectActionDocument = z.infer<typeof AsyncRejectActionDocument>;
7694
7863
  export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
7695
7864
  id: z.ZodString;
7865
+ transactionId: z.ZodString;
7696
7866
  createdAt: z.ZodString;
7697
7867
  createdBy: z.ZodString;
7868
+ createdByRole: z.ZodString;
7698
7869
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7699
7870
  filename: z.ZodString;
7700
7871
  originalFilename: z.ZodString;
@@ -7923,7 +8094,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7923
8094
  addressLine3?: string | null | undefined;
7924
8095
  postcodeOrZip?: string | null | undefined;
7925
8096
  }>]>>>;
7926
- createdAtLocation: z.ZodString;
8097
+ createdAtLocation: z.ZodOptional<z.ZodString>;
8098
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
7927
8099
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7928
8100
  originalActionId: z.ZodOptional<z.ZodString>;
7929
8101
  }, {
@@ -7932,8 +8104,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7932
8104
  type: "CREATE";
7933
8105
  id: string;
7934
8106
  status: "Rejected" | "Requested" | "Accepted";
8107
+ transactionId: string;
7935
8108
  createdAt: string;
7936
8109
  createdBy: string;
8110
+ createdByRole: string;
7937
8111
  declaration: Record<string, string | number | boolean | {
7938
8112
  type: string;
7939
8113
  filename: string;
@@ -7972,7 +8146,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7972
8146
  filename: string;
7973
8147
  originalFilename: string;
7974
8148
  }[] | undefined>;
7975
- createdAtLocation: string;
7976
8149
  annotation?: Record<string, string | number | boolean | {
7977
8150
  type: string;
7978
8151
  filename: string;
@@ -8011,13 +8184,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8011
8184
  filename: string;
8012
8185
  originalFilename: string;
8013
8186
  }[] | undefined> | undefined;
8187
+ createdAtLocation?: string | undefined;
8188
+ updatedAtLocation?: string | undefined;
8014
8189
  originalActionId?: string | undefined;
8015
8190
  }, {
8016
8191
  type: "CREATE";
8017
8192
  id: string;
8018
8193
  status: "Rejected" | "Requested" | "Accepted";
8194
+ transactionId: string;
8019
8195
  createdAt: string;
8020
8196
  createdBy: string;
8197
+ createdByRole: string;
8021
8198
  declaration: Record<string, string | number | boolean | {
8022
8199
  type: string;
8023
8200
  filename: string;
@@ -8056,7 +8233,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8056
8233
  filename: string;
8057
8234
  originalFilename: string;
8058
8235
  }[] | undefined>;
8059
- createdAtLocation: string;
8060
8236
  annotation?: Record<string, string | number | boolean | {
8061
8237
  type: string;
8062
8238
  filename: string;
@@ -8095,11 +8271,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8095
8271
  filename: string;
8096
8272
  originalFilename: string;
8097
8273
  }[] | undefined> | undefined;
8274
+ createdAtLocation?: string | undefined;
8275
+ updatedAtLocation?: string | undefined;
8098
8276
  originalActionId?: string | undefined;
8099
8277
  }>, z.ZodObject<z.objectUtil.extendShape<{
8100
8278
  id: z.ZodString;
8279
+ transactionId: z.ZodString;
8101
8280
  createdAt: z.ZodString;
8102
8281
  createdBy: z.ZodString;
8282
+ createdByRole: z.ZodString;
8103
8283
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8104
8284
  filename: z.ZodString;
8105
8285
  originalFilename: z.ZodString;
@@ -8328,7 +8508,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8328
8508
  addressLine3?: string | null | undefined;
8329
8509
  postcodeOrZip?: string | null | undefined;
8330
8510
  }>]>>>;
8331
- createdAtLocation: z.ZodString;
8511
+ createdAtLocation: z.ZodOptional<z.ZodString>;
8512
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
8332
8513
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
8333
8514
  originalActionId: z.ZodOptional<z.ZodString>;
8334
8515
  }, {
@@ -8337,8 +8518,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8337
8518
  type: "VALIDATE";
8338
8519
  id: string;
8339
8520
  status: "Rejected" | "Requested" | "Accepted";
8521
+ transactionId: string;
8340
8522
  createdAt: string;
8341
8523
  createdBy: string;
8524
+ createdByRole: string;
8342
8525
  declaration: Record<string, string | number | boolean | {
8343
8526
  type: string;
8344
8527
  filename: string;
@@ -8377,7 +8560,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8377
8560
  filename: string;
8378
8561
  originalFilename: string;
8379
8562
  }[] | undefined>;
8380
- createdAtLocation: string;
8381
8563
  annotation?: Record<string, string | number | boolean | {
8382
8564
  type: string;
8383
8565
  filename: string;
@@ -8416,13 +8598,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8416
8598
  filename: string;
8417
8599
  originalFilename: string;
8418
8600
  }[] | undefined> | undefined;
8601
+ createdAtLocation?: string | undefined;
8602
+ updatedAtLocation?: string | undefined;
8419
8603
  originalActionId?: string | undefined;
8420
8604
  }, {
8421
8605
  type: "VALIDATE";
8422
8606
  id: string;
8423
8607
  status: "Rejected" | "Requested" | "Accepted";
8608
+ transactionId: string;
8424
8609
  createdAt: string;
8425
8610
  createdBy: string;
8611
+ createdByRole: string;
8426
8612
  declaration: Record<string, string | number | boolean | {
8427
8613
  type: string;
8428
8614
  filename: string;
@@ -8461,7 +8647,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8461
8647
  filename: string;
8462
8648
  originalFilename: string;
8463
8649
  }[] | undefined>;
8464
- createdAtLocation: string;
8465
8650
  annotation?: Record<string, string | number | boolean | {
8466
8651
  type: string;
8467
8652
  filename: string;
@@ -8500,11 +8685,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8500
8685
  filename: string;
8501
8686
  originalFilename: string;
8502
8687
  }[] | undefined> | undefined;
8688
+ createdAtLocation?: string | undefined;
8689
+ updatedAtLocation?: string | undefined;
8503
8690
  originalActionId?: string | undefined;
8504
8691
  }>, z.ZodObject<z.objectUtil.extendShape<{
8505
8692
  id: z.ZodString;
8693
+ transactionId: z.ZodString;
8506
8694
  createdAt: z.ZodString;
8507
8695
  createdBy: z.ZodString;
8696
+ createdByRole: z.ZodString;
8508
8697
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8509
8698
  filename: z.ZodString;
8510
8699
  originalFilename: z.ZodString;
@@ -8733,7 +8922,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8733
8922
  addressLine3?: string | null | undefined;
8734
8923
  postcodeOrZip?: string | null | undefined;
8735
8924
  }>]>>>;
8736
- createdAtLocation: z.ZodString;
8925
+ createdAtLocation: z.ZodOptional<z.ZodString>;
8926
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
8737
8927
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
8738
8928
  originalActionId: z.ZodOptional<z.ZodString>;
8739
8929
  }, {
@@ -8742,8 +8932,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8742
8932
  type: "REJECT";
8743
8933
  id: string;
8744
8934
  status: "Rejected" | "Requested" | "Accepted";
8935
+ transactionId: string;
8745
8936
  createdAt: string;
8746
8937
  createdBy: string;
8938
+ createdByRole: string;
8747
8939
  declaration: Record<string, string | number | boolean | {
8748
8940
  type: string;
8749
8941
  filename: string;
@@ -8782,7 +8974,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8782
8974
  filename: string;
8783
8975
  originalFilename: string;
8784
8976
  }[] | undefined>;
8785
- createdAtLocation: string;
8786
8977
  annotation?: Record<string, string | number | boolean | {
8787
8978
  type: string;
8788
8979
  filename: string;
@@ -8821,13 +9012,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8821
9012
  filename: string;
8822
9013
  originalFilename: string;
8823
9014
  }[] | undefined> | undefined;
9015
+ createdAtLocation?: string | undefined;
9016
+ updatedAtLocation?: string | undefined;
8824
9017
  originalActionId?: string | undefined;
8825
9018
  }, {
8826
9019
  type: "REJECT";
8827
9020
  id: string;
8828
9021
  status: "Rejected" | "Requested" | "Accepted";
9022
+ transactionId: string;
8829
9023
  createdAt: string;
8830
9024
  createdBy: string;
9025
+ createdByRole: string;
8831
9026
  declaration: Record<string, string | number | boolean | {
8832
9027
  type: string;
8833
9028
  filename: string;
@@ -8866,7 +9061,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8866
9061
  filename: string;
8867
9062
  originalFilename: string;
8868
9063
  }[] | undefined>;
8869
- createdAtLocation: string;
8870
9064
  annotation?: Record<string, string | number | boolean | {
8871
9065
  type: string;
8872
9066
  filename: string;
@@ -8905,11 +9099,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8905
9099
  filename: string;
8906
9100
  originalFilename: string;
8907
9101
  }[] | undefined> | undefined;
9102
+ createdAtLocation?: string | undefined;
9103
+ updatedAtLocation?: string | undefined;
8908
9104
  originalActionId?: string | undefined;
8909
9105
  }>, z.ZodObject<z.objectUtil.extendShape<{
8910
9106
  id: z.ZodString;
9107
+ transactionId: z.ZodString;
8911
9108
  createdAt: z.ZodString;
8912
9109
  createdBy: z.ZodString;
9110
+ createdByRole: z.ZodString;
8913
9111
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8914
9112
  filename: z.ZodString;
8915
9113
  originalFilename: z.ZodString;
@@ -9138,7 +9336,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9138
9336
  addressLine3?: string | null | undefined;
9139
9337
  postcodeOrZip?: string | null | undefined;
9140
9338
  }>]>>>;
9141
- createdAtLocation: z.ZodString;
9339
+ createdAtLocation: z.ZodOptional<z.ZodString>;
9340
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
9142
9341
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9143
9342
  originalActionId: z.ZodOptional<z.ZodString>;
9144
9343
  }, {
@@ -9147,8 +9346,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9147
9346
  type: "MARKED_AS_DUPLICATE";
9148
9347
  id: string;
9149
9348
  status: "Rejected" | "Requested" | "Accepted";
9349
+ transactionId: string;
9150
9350
  createdAt: string;
9151
9351
  createdBy: string;
9352
+ createdByRole: string;
9152
9353
  declaration: Record<string, string | number | boolean | {
9153
9354
  type: string;
9154
9355
  filename: string;
@@ -9187,7 +9388,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9187
9388
  filename: string;
9188
9389
  originalFilename: string;
9189
9390
  }[] | undefined>;
9190
- createdAtLocation: string;
9191
9391
  annotation?: Record<string, string | number | boolean | {
9192
9392
  type: string;
9193
9393
  filename: string;
@@ -9226,13 +9426,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9226
9426
  filename: string;
9227
9427
  originalFilename: string;
9228
9428
  }[] | undefined> | undefined;
9429
+ createdAtLocation?: string | undefined;
9430
+ updatedAtLocation?: string | undefined;
9229
9431
  originalActionId?: string | undefined;
9230
9432
  }, {
9231
9433
  type: "MARKED_AS_DUPLICATE";
9232
9434
  id: string;
9233
9435
  status: "Rejected" | "Requested" | "Accepted";
9436
+ transactionId: string;
9234
9437
  createdAt: string;
9235
9438
  createdBy: string;
9439
+ createdByRole: string;
9236
9440
  declaration: Record<string, string | number | boolean | {
9237
9441
  type: string;
9238
9442
  filename: string;
@@ -9271,7 +9475,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9271
9475
  filename: string;
9272
9476
  originalFilename: string;
9273
9477
  }[] | undefined>;
9274
- createdAtLocation: string;
9275
9478
  annotation?: Record<string, string | number | boolean | {
9276
9479
  type: string;
9277
9480
  filename: string;
@@ -9310,11 +9513,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9310
9513
  filename: string;
9311
9514
  originalFilename: string;
9312
9515
  }[] | undefined> | undefined;
9516
+ createdAtLocation?: string | undefined;
9517
+ updatedAtLocation?: string | undefined;
9313
9518
  originalActionId?: string | undefined;
9314
9519
  }>, z.ZodObject<z.objectUtil.extendShape<{
9315
9520
  id: z.ZodString;
9521
+ transactionId: z.ZodString;
9316
9522
  createdAt: z.ZodString;
9317
9523
  createdBy: z.ZodString;
9524
+ createdByRole: z.ZodString;
9318
9525
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9319
9526
  filename: z.ZodString;
9320
9527
  originalFilename: z.ZodString;
@@ -9543,7 +9750,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9543
9750
  addressLine3?: string | null | undefined;
9544
9751
  postcodeOrZip?: string | null | undefined;
9545
9752
  }>]>>>;
9546
- createdAtLocation: z.ZodString;
9753
+ createdAtLocation: z.ZodOptional<z.ZodString>;
9754
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
9547
9755
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9548
9756
  originalActionId: z.ZodOptional<z.ZodString>;
9549
9757
  }, {
@@ -9552,8 +9760,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9552
9760
  type: "ARCHIVE";
9553
9761
  id: string;
9554
9762
  status: "Rejected" | "Requested" | "Accepted";
9763
+ transactionId: string;
9555
9764
  createdAt: string;
9556
9765
  createdBy: string;
9766
+ createdByRole: string;
9557
9767
  declaration: Record<string, string | number | boolean | {
9558
9768
  type: string;
9559
9769
  filename: string;
@@ -9592,7 +9802,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9592
9802
  filename: string;
9593
9803
  originalFilename: string;
9594
9804
  }[] | undefined>;
9595
- createdAtLocation: string;
9596
9805
  annotation?: Record<string, string | number | boolean | {
9597
9806
  type: string;
9598
9807
  filename: string;
@@ -9631,13 +9840,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9631
9840
  filename: string;
9632
9841
  originalFilename: string;
9633
9842
  }[] | undefined> | undefined;
9843
+ createdAtLocation?: string | undefined;
9844
+ updatedAtLocation?: string | undefined;
9634
9845
  originalActionId?: string | undefined;
9635
9846
  }, {
9636
9847
  type: "ARCHIVE";
9637
9848
  id: string;
9638
9849
  status: "Rejected" | "Requested" | "Accepted";
9850
+ transactionId: string;
9639
9851
  createdAt: string;
9640
9852
  createdBy: string;
9853
+ createdByRole: string;
9641
9854
  declaration: Record<string, string | number | boolean | {
9642
9855
  type: string;
9643
9856
  filename: string;
@@ -9676,7 +9889,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9676
9889
  filename: string;
9677
9890
  originalFilename: string;
9678
9891
  }[] | undefined>;
9679
- createdAtLocation: string;
9680
9892
  annotation?: Record<string, string | number | boolean | {
9681
9893
  type: string;
9682
9894
  filename: string;
@@ -9715,11 +9927,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9715
9927
  filename: string;
9716
9928
  originalFilename: string;
9717
9929
  }[] | undefined> | undefined;
9930
+ createdAtLocation?: string | undefined;
9931
+ updatedAtLocation?: string | undefined;
9718
9932
  originalActionId?: string | undefined;
9719
9933
  }>, z.ZodObject<z.objectUtil.extendShape<{
9720
9934
  id: z.ZodString;
9935
+ transactionId: z.ZodString;
9721
9936
  createdAt: z.ZodString;
9722
9937
  createdBy: z.ZodString;
9938
+ createdByRole: z.ZodString;
9723
9939
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9724
9940
  filename: z.ZodString;
9725
9941
  originalFilename: z.ZodString;
@@ -9948,7 +10164,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9948
10164
  addressLine3?: string | null | undefined;
9949
10165
  postcodeOrZip?: string | null | undefined;
9950
10166
  }>]>>>;
9951
- createdAtLocation: z.ZodString;
10167
+ createdAtLocation: z.ZodOptional<z.ZodString>;
10168
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
9952
10169
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9953
10170
  originalActionId: z.ZodOptional<z.ZodString>;
9954
10171
  }, {
@@ -9957,8 +10174,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9957
10174
  type: "NOTIFY";
9958
10175
  id: string;
9959
10176
  status: "Rejected" | "Requested" | "Accepted";
10177
+ transactionId: string;
9960
10178
  createdAt: string;
9961
10179
  createdBy: string;
10180
+ createdByRole: string;
9962
10181
  declaration: Record<string, string | number | boolean | {
9963
10182
  type: string;
9964
10183
  filename: string;
@@ -9997,7 +10216,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9997
10216
  filename: string;
9998
10217
  originalFilename: string;
9999
10218
  }[] | undefined>;
10000
- createdAtLocation: string;
10001
10219
  annotation?: Record<string, string | number | boolean | {
10002
10220
  type: string;
10003
10221
  filename: string;
@@ -10036,13 +10254,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10036
10254
  filename: string;
10037
10255
  originalFilename: string;
10038
10256
  }[] | undefined> | undefined;
10257
+ createdAtLocation?: string | undefined;
10258
+ updatedAtLocation?: string | undefined;
10039
10259
  originalActionId?: string | undefined;
10040
10260
  }, {
10041
10261
  type: "NOTIFY";
10042
10262
  id: string;
10043
10263
  status: "Rejected" | "Requested" | "Accepted";
10264
+ transactionId: string;
10044
10265
  createdAt: string;
10045
10266
  createdBy: string;
10267
+ createdByRole: string;
10046
10268
  declaration: Record<string, string | number | boolean | {
10047
10269
  type: string;
10048
10270
  filename: string;
@@ -10081,7 +10303,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10081
10303
  filename: string;
10082
10304
  originalFilename: string;
10083
10305
  }[] | undefined>;
10084
- createdAtLocation: string;
10085
10306
  annotation?: Record<string, string | number | boolean | {
10086
10307
  type: string;
10087
10308
  filename: string;
@@ -10120,11 +10341,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10120
10341
  filename: string;
10121
10342
  originalFilename: string;
10122
10343
  }[] | undefined> | undefined;
10344
+ createdAtLocation?: string | undefined;
10345
+ updatedAtLocation?: string | undefined;
10123
10346
  originalActionId?: string | undefined;
10124
10347
  }>, z.ZodObject<z.objectUtil.extendShape<{
10125
10348
  id: z.ZodString;
10349
+ transactionId: z.ZodString;
10126
10350
  createdAt: z.ZodString;
10127
10351
  createdBy: z.ZodString;
10352
+ createdByRole: z.ZodString;
10128
10353
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10129
10354
  filename: z.ZodString;
10130
10355
  originalFilename: z.ZodString;
@@ -10353,7 +10578,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10353
10578
  addressLine3?: string | null | undefined;
10354
10579
  postcodeOrZip?: string | null | undefined;
10355
10580
  }>]>>>;
10356
- createdAtLocation: z.ZodString;
10581
+ createdAtLocation: z.ZodOptional<z.ZodString>;
10582
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
10357
10583
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
10358
10584
  originalActionId: z.ZodOptional<z.ZodString>;
10359
10585
  }, {
@@ -10363,8 +10589,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10363
10589
  type: "REGISTER";
10364
10590
  id: string;
10365
10591
  status: "Rejected" | "Requested" | "Accepted";
10592
+ transactionId: string;
10366
10593
  createdAt: string;
10367
10594
  createdBy: string;
10595
+ createdByRole: string;
10368
10596
  declaration: Record<string, string | number | boolean | {
10369
10597
  type: string;
10370
10598
  filename: string;
@@ -10403,7 +10631,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10403
10631
  filename: string;
10404
10632
  originalFilename: string;
10405
10633
  }[] | undefined>;
10406
- createdAtLocation: string;
10407
10634
  annotation?: Record<string, string | number | boolean | {
10408
10635
  type: string;
10409
10636
  filename: string;
@@ -10442,14 +10669,18 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10442
10669
  filename: string;
10443
10670
  originalFilename: string;
10444
10671
  }[] | undefined> | undefined;
10672
+ createdAtLocation?: string | undefined;
10673
+ updatedAtLocation?: string | undefined;
10445
10674
  originalActionId?: string | undefined;
10446
10675
  registrationNumber?: string | undefined;
10447
10676
  }, {
10448
10677
  type: "REGISTER";
10449
10678
  id: string;
10450
10679
  status: "Rejected" | "Requested" | "Accepted";
10680
+ transactionId: string;
10451
10681
  createdAt: string;
10452
10682
  createdBy: string;
10683
+ createdByRole: string;
10453
10684
  declaration: Record<string, string | number | boolean | {
10454
10685
  type: string;
10455
10686
  filename: string;
@@ -10488,7 +10719,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10488
10719
  filename: string;
10489
10720
  originalFilename: string;
10490
10721
  }[] | undefined>;
10491
- createdAtLocation: string;
10492
10722
  annotation?: Record<string, string | number | boolean | {
10493
10723
  type: string;
10494
10724
  filename: string;
@@ -10527,12 +10757,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10527
10757
  filename: string;
10528
10758
  originalFilename: string;
10529
10759
  }[] | undefined> | undefined;
10760
+ createdAtLocation?: string | undefined;
10761
+ updatedAtLocation?: string | undefined;
10530
10762
  originalActionId?: string | undefined;
10531
10763
  registrationNumber?: string | undefined;
10532
10764
  }>, z.ZodObject<z.objectUtil.extendShape<{
10533
10765
  id: z.ZodString;
10766
+ transactionId: z.ZodString;
10534
10767
  createdAt: z.ZodString;
10535
10768
  createdBy: z.ZodString;
10769
+ createdByRole: z.ZodString;
10536
10770
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10537
10771
  filename: z.ZodString;
10538
10772
  originalFilename: z.ZodString;
@@ -10761,7 +10995,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10761
10995
  addressLine3?: string | null | undefined;
10762
10996
  postcodeOrZip?: string | null | undefined;
10763
10997
  }>]>>>;
10764
- createdAtLocation: z.ZodString;
10998
+ createdAtLocation: z.ZodOptional<z.ZodString>;
10999
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
10765
11000
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
10766
11001
  originalActionId: z.ZodOptional<z.ZodString>;
10767
11002
  }, {
@@ -10770,8 +11005,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10770
11005
  type: "DECLARE";
10771
11006
  id: string;
10772
11007
  status: "Rejected" | "Requested" | "Accepted";
11008
+ transactionId: string;
10773
11009
  createdAt: string;
10774
11010
  createdBy: string;
11011
+ createdByRole: string;
10775
11012
  declaration: Record<string, string | number | boolean | {
10776
11013
  type: string;
10777
11014
  filename: string;
@@ -10810,7 +11047,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10810
11047
  filename: string;
10811
11048
  originalFilename: string;
10812
11049
  }[] | undefined>;
10813
- createdAtLocation: string;
10814
11050
  annotation?: Record<string, string | number | boolean | {
10815
11051
  type: string;
10816
11052
  filename: string;
@@ -10849,13 +11085,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10849
11085
  filename: string;
10850
11086
  originalFilename: string;
10851
11087
  }[] | undefined> | undefined;
11088
+ createdAtLocation?: string | undefined;
11089
+ updatedAtLocation?: string | undefined;
10852
11090
  originalActionId?: string | undefined;
10853
11091
  }, {
10854
11092
  type: "DECLARE";
10855
11093
  id: string;
10856
11094
  status: "Rejected" | "Requested" | "Accepted";
11095
+ transactionId: string;
10857
11096
  createdAt: string;
10858
11097
  createdBy: string;
11098
+ createdByRole: string;
10859
11099
  declaration: Record<string, string | number | boolean | {
10860
11100
  type: string;
10861
11101
  filename: string;
@@ -10894,7 +11134,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10894
11134
  filename: string;
10895
11135
  originalFilename: string;
10896
11136
  }[] | undefined>;
10897
- createdAtLocation: string;
10898
11137
  annotation?: Record<string, string | number | boolean | {
10899
11138
  type: string;
10900
11139
  filename: string;
@@ -10933,11 +11172,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10933
11172
  filename: string;
10934
11173
  originalFilename: string;
10935
11174
  }[] | undefined> | undefined;
11175
+ createdAtLocation?: string | undefined;
11176
+ updatedAtLocation?: string | undefined;
10936
11177
  originalActionId?: string | undefined;
10937
11178
  }>, z.ZodObject<z.objectUtil.extendShape<{
10938
11179
  id: z.ZodString;
11180
+ transactionId: z.ZodString;
10939
11181
  createdAt: z.ZodString;
10940
11182
  createdBy: z.ZodString;
11183
+ createdByRole: z.ZodString;
10941
11184
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10942
11185
  filename: z.ZodString;
10943
11186
  originalFilename: z.ZodString;
@@ -11166,7 +11409,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11166
11409
  addressLine3?: string | null | undefined;
11167
11410
  postcodeOrZip?: string | null | undefined;
11168
11411
  }>]>>>;
11169
- createdAtLocation: z.ZodString;
11412
+ createdAtLocation: z.ZodOptional<z.ZodString>;
11413
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
11170
11414
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11171
11415
  originalActionId: z.ZodOptional<z.ZodString>;
11172
11416
  }, {
@@ -11176,8 +11420,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11176
11420
  type: "ASSIGN";
11177
11421
  id: string;
11178
11422
  status: "Rejected" | "Requested" | "Accepted";
11423
+ transactionId: string;
11179
11424
  createdAt: string;
11180
11425
  createdBy: string;
11426
+ createdByRole: string;
11181
11427
  declaration: Record<string, string | number | boolean | {
11182
11428
  type: string;
11183
11429
  filename: string;
@@ -11216,7 +11462,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11216
11462
  filename: string;
11217
11463
  originalFilename: string;
11218
11464
  }[] | undefined>;
11219
- createdAtLocation: string;
11220
11465
  assignedTo: string;
11221
11466
  annotation?: Record<string, string | number | boolean | {
11222
11467
  type: string;
@@ -11256,13 +11501,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11256
11501
  filename: string;
11257
11502
  originalFilename: string;
11258
11503
  }[] | undefined> | undefined;
11504
+ createdAtLocation?: string | undefined;
11505
+ updatedAtLocation?: string | undefined;
11259
11506
  originalActionId?: string | undefined;
11260
11507
  }, {
11261
11508
  type: "ASSIGN";
11262
11509
  id: string;
11263
11510
  status: "Rejected" | "Requested" | "Accepted";
11511
+ transactionId: string;
11264
11512
  createdAt: string;
11265
11513
  createdBy: string;
11514
+ createdByRole: string;
11266
11515
  declaration: Record<string, string | number | boolean | {
11267
11516
  type: string;
11268
11517
  filename: string;
@@ -11301,7 +11550,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11301
11550
  filename: string;
11302
11551
  originalFilename: string;
11303
11552
  }[] | undefined>;
11304
- createdAtLocation: string;
11305
11553
  assignedTo: string;
11306
11554
  annotation?: Record<string, string | number | boolean | {
11307
11555
  type: string;
@@ -11341,11 +11589,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11341
11589
  filename: string;
11342
11590
  originalFilename: string;
11343
11591
  }[] | undefined> | undefined;
11592
+ createdAtLocation?: string | undefined;
11593
+ updatedAtLocation?: string | undefined;
11344
11594
  originalActionId?: string | undefined;
11345
11595
  }>, z.ZodObject<z.objectUtil.extendShape<{
11346
11596
  id: z.ZodString;
11597
+ transactionId: z.ZodString;
11347
11598
  createdAt: z.ZodString;
11348
11599
  createdBy: z.ZodString;
11600
+ createdByRole: z.ZodString;
11349
11601
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11350
11602
  filename: z.ZodString;
11351
11603
  originalFilename: z.ZodString;
@@ -11574,7 +11826,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11574
11826
  addressLine3?: string | null | undefined;
11575
11827
  postcodeOrZip?: string | null | undefined;
11576
11828
  }>]>>>;
11577
- createdAtLocation: z.ZodString;
11829
+ createdAtLocation: z.ZodOptional<z.ZodString>;
11830
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
11578
11831
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11579
11832
  originalActionId: z.ZodOptional<z.ZodString>;
11580
11833
  }, {
@@ -11583,8 +11836,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11583
11836
  type: "REQUEST_CORRECTION";
11584
11837
  id: string;
11585
11838
  status: "Rejected" | "Requested" | "Accepted";
11839
+ transactionId: string;
11586
11840
  createdAt: string;
11587
11841
  createdBy: string;
11842
+ createdByRole: string;
11588
11843
  declaration: Record<string, string | number | boolean | {
11589
11844
  type: string;
11590
11845
  filename: string;
@@ -11623,7 +11878,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11623
11878
  filename: string;
11624
11879
  originalFilename: string;
11625
11880
  }[] | undefined>;
11626
- createdAtLocation: string;
11627
11881
  annotation?: Record<string, string | number | boolean | {
11628
11882
  type: string;
11629
11883
  filename: string;
@@ -11662,13 +11916,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11662
11916
  filename: string;
11663
11917
  originalFilename: string;
11664
11918
  }[] | undefined> | undefined;
11919
+ createdAtLocation?: string | undefined;
11920
+ updatedAtLocation?: string | undefined;
11665
11921
  originalActionId?: string | undefined;
11666
11922
  }, {
11667
11923
  type: "REQUEST_CORRECTION";
11668
11924
  id: string;
11669
11925
  status: "Rejected" | "Requested" | "Accepted";
11926
+ transactionId: string;
11670
11927
  createdAt: string;
11671
11928
  createdBy: string;
11929
+ createdByRole: string;
11672
11930
  declaration: Record<string, string | number | boolean | {
11673
11931
  type: string;
11674
11932
  filename: string;
@@ -11707,7 +11965,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11707
11965
  filename: string;
11708
11966
  originalFilename: string;
11709
11967
  }[] | undefined>;
11710
- createdAtLocation: string;
11711
11968
  annotation?: Record<string, string | number | boolean | {
11712
11969
  type: string;
11713
11970
  filename: string;
@@ -11746,11 +12003,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11746
12003
  filename: string;
11747
12004
  originalFilename: string;
11748
12005
  }[] | undefined> | undefined;
12006
+ createdAtLocation?: string | undefined;
12007
+ updatedAtLocation?: string | undefined;
11749
12008
  originalActionId?: string | undefined;
11750
12009
  }>, z.ZodObject<z.objectUtil.extendShape<{
11751
12010
  id: z.ZodString;
12011
+ transactionId: z.ZodString;
11752
12012
  createdAt: z.ZodString;
11753
12013
  createdBy: z.ZodString;
12014
+ createdByRole: z.ZodString;
11754
12015
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11755
12016
  filename: z.ZodString;
11756
12017
  originalFilename: z.ZodString;
@@ -11979,7 +12240,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11979
12240
  addressLine3?: string | null | undefined;
11980
12241
  postcodeOrZip?: string | null | undefined;
11981
12242
  }>]>>>;
11982
- createdAtLocation: z.ZodString;
12243
+ createdAtLocation: z.ZodOptional<z.ZodString>;
12244
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
11983
12245
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11984
12246
  originalActionId: z.ZodOptional<z.ZodString>;
11985
12247
  }, {
@@ -11989,8 +12251,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11989
12251
  type: "APPROVE_CORRECTION";
11990
12252
  id: string;
11991
12253
  status: "Rejected" | "Requested" | "Accepted";
12254
+ transactionId: string;
11992
12255
  createdAt: string;
11993
12256
  createdBy: string;
12257
+ createdByRole: string;
11994
12258
  declaration: Record<string, string | number | boolean | {
11995
12259
  type: string;
11996
12260
  filename: string;
@@ -12029,7 +12293,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12029
12293
  filename: string;
12030
12294
  originalFilename: string;
12031
12295
  }[] | undefined>;
12032
- createdAtLocation: string;
12033
12296
  requestId: string;
12034
12297
  annotation?: Record<string, string | number | boolean | {
12035
12298
  type: string;
@@ -12069,13 +12332,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12069
12332
  filename: string;
12070
12333
  originalFilename: string;
12071
12334
  }[] | undefined> | undefined;
12335
+ createdAtLocation?: string | undefined;
12336
+ updatedAtLocation?: string | undefined;
12072
12337
  originalActionId?: string | undefined;
12073
12338
  }, {
12074
12339
  type: "APPROVE_CORRECTION";
12075
12340
  id: string;
12076
12341
  status: "Rejected" | "Requested" | "Accepted";
12342
+ transactionId: string;
12077
12343
  createdAt: string;
12078
12344
  createdBy: string;
12345
+ createdByRole: string;
12079
12346
  declaration: Record<string, string | number | boolean | {
12080
12347
  type: string;
12081
12348
  filename: string;
@@ -12114,7 +12381,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12114
12381
  filename: string;
12115
12382
  originalFilename: string;
12116
12383
  }[] | undefined>;
12117
- createdAtLocation: string;
12118
12384
  requestId: string;
12119
12385
  annotation?: Record<string, string | number | boolean | {
12120
12386
  type: string;
@@ -12154,11 +12420,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12154
12420
  filename: string;
12155
12421
  originalFilename: string;
12156
12422
  }[] | undefined> | undefined;
12423
+ createdAtLocation?: string | undefined;
12424
+ updatedAtLocation?: string | undefined;
12157
12425
  originalActionId?: string | undefined;
12158
12426
  }>, z.ZodObject<z.objectUtil.extendShape<{
12159
12427
  id: z.ZodString;
12428
+ transactionId: z.ZodString;
12160
12429
  createdAt: z.ZodString;
12161
12430
  createdBy: z.ZodString;
12431
+ createdByRole: z.ZodString;
12162
12432
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12163
12433
  filename: z.ZodString;
12164
12434
  originalFilename: z.ZodString;
@@ -12387,7 +12657,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12387
12657
  addressLine3?: string | null | undefined;
12388
12658
  postcodeOrZip?: string | null | undefined;
12389
12659
  }>]>>>;
12390
- createdAtLocation: z.ZodString;
12660
+ createdAtLocation: z.ZodOptional<z.ZodString>;
12661
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
12391
12662
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
12392
12663
  originalActionId: z.ZodOptional<z.ZodString>;
12393
12664
  }, {
@@ -12397,8 +12668,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12397
12668
  type: "REJECT_CORRECTION";
12398
12669
  id: string;
12399
12670
  status: "Rejected" | "Requested" | "Accepted";
12671
+ transactionId: string;
12400
12672
  createdAt: string;
12401
12673
  createdBy: string;
12674
+ createdByRole: string;
12402
12675
  declaration: Record<string, string | number | boolean | {
12403
12676
  type: string;
12404
12677
  filename: string;
@@ -12437,7 +12710,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12437
12710
  filename: string;
12438
12711
  originalFilename: string;
12439
12712
  }[] | undefined>;
12440
- createdAtLocation: string;
12441
12713
  requestId: string;
12442
12714
  annotation?: Record<string, string | number | boolean | {
12443
12715
  type: string;
@@ -12477,13 +12749,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12477
12749
  filename: string;
12478
12750
  originalFilename: string;
12479
12751
  }[] | undefined> | undefined;
12752
+ createdAtLocation?: string | undefined;
12753
+ updatedAtLocation?: string | undefined;
12480
12754
  originalActionId?: string | undefined;
12481
12755
  }, {
12482
12756
  type: "REJECT_CORRECTION";
12483
12757
  id: string;
12484
12758
  status: "Rejected" | "Requested" | "Accepted";
12759
+ transactionId: string;
12485
12760
  createdAt: string;
12486
12761
  createdBy: string;
12762
+ createdByRole: string;
12487
12763
  declaration: Record<string, string | number | boolean | {
12488
12764
  type: string;
12489
12765
  filename: string;
@@ -12522,7 +12798,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12522
12798
  filename: string;
12523
12799
  originalFilename: string;
12524
12800
  }[] | undefined>;
12525
- createdAtLocation: string;
12526
12801
  requestId: string;
12527
12802
  annotation?: Record<string, string | number | boolean | {
12528
12803
  type: string;
@@ -12562,11 +12837,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12562
12837
  filename: string;
12563
12838
  originalFilename: string;
12564
12839
  }[] | undefined> | undefined;
12840
+ createdAtLocation?: string | undefined;
12841
+ updatedAtLocation?: string | undefined;
12565
12842
  originalActionId?: string | undefined;
12566
12843
  }>, z.ZodObject<z.objectUtil.extendShape<{
12567
12844
  id: z.ZodString;
12845
+ transactionId: z.ZodString;
12568
12846
  createdAt: z.ZodString;
12569
12847
  createdBy: z.ZodString;
12848
+ createdByRole: z.ZodString;
12570
12849
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12571
12850
  filename: z.ZodString;
12572
12851
  originalFilename: z.ZodString;
@@ -12795,18 +13074,21 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12795
13074
  addressLine3?: string | null | undefined;
12796
13075
  postcodeOrZip?: string | null | undefined;
12797
13076
  }>]>>>;
12798
- createdAtLocation: z.ZodString;
13077
+ createdAtLocation: z.ZodOptional<z.ZodString>;
13078
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
12799
13079
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
12800
13080
  originalActionId: z.ZodOptional<z.ZodString>;
12801
13081
  }, {
12802
13082
  type: z.ZodLiteral<"UNASSIGN">;
12803
- assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
13083
+ assignedTo: z.ZodLiteral<null>;
12804
13084
  }>, "strip", z.ZodTypeAny, {
12805
13085
  type: "UNASSIGN";
12806
13086
  id: string;
12807
13087
  status: "Rejected" | "Requested" | "Accepted";
13088
+ transactionId: string;
12808
13089
  createdAt: string;
12809
13090
  createdBy: string;
13091
+ createdByRole: string;
12810
13092
  declaration: Record<string, string | number | boolean | {
12811
13093
  type: string;
12812
13094
  filename: string;
@@ -12845,7 +13127,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12845
13127
  filename: string;
12846
13128
  originalFilename: string;
12847
13129
  }[] | undefined>;
12848
- createdAtLocation: string;
12849
13130
  assignedTo: null;
12850
13131
  annotation?: Record<string, string | number | boolean | {
12851
13132
  type: string;
@@ -12885,13 +13166,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12885
13166
  filename: string;
12886
13167
  originalFilename: string;
12887
13168
  }[] | undefined> | undefined;
13169
+ createdAtLocation?: string | undefined;
13170
+ updatedAtLocation?: string | undefined;
12888
13171
  originalActionId?: string | undefined;
12889
13172
  }, {
12890
13173
  type: "UNASSIGN";
12891
13174
  id: string;
12892
13175
  status: "Rejected" | "Requested" | "Accepted";
13176
+ transactionId: string;
12893
13177
  createdAt: string;
12894
13178
  createdBy: string;
13179
+ createdByRole: string;
12895
13180
  declaration: Record<string, string | number | boolean | {
12896
13181
  type: string;
12897
13182
  filename: string;
@@ -12930,7 +13215,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12930
13215
  filename: string;
12931
13216
  originalFilename: string;
12932
13217
  }[] | undefined>;
12933
- createdAtLocation: string;
13218
+ assignedTo: null;
12934
13219
  annotation?: Record<string, string | number | boolean | {
12935
13220
  type: string;
12936
13221
  filename: string;
@@ -12969,12 +13254,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12969
13254
  filename: string;
12970
13255
  originalFilename: string;
12971
13256
  }[] | undefined> | undefined;
13257
+ createdAtLocation?: string | undefined;
13258
+ updatedAtLocation?: string | undefined;
12972
13259
  originalActionId?: string | undefined;
12973
- assignedTo?: null | undefined;
12974
13260
  }>, z.ZodObject<z.objectUtil.extendShape<{
12975
13261
  id: z.ZodString;
13262
+ transactionId: z.ZodString;
12976
13263
  createdAt: z.ZodString;
12977
13264
  createdBy: z.ZodString;
13265
+ createdByRole: z.ZodString;
12978
13266
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12979
13267
  filename: z.ZodString;
12980
13268
  originalFilename: z.ZodString;
@@ -13203,7 +13491,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13203
13491
  addressLine3?: string | null | undefined;
13204
13492
  postcodeOrZip?: string | null | undefined;
13205
13493
  }>]>>>;
13206
- createdAtLocation: z.ZodString;
13494
+ createdAtLocation: z.ZodOptional<z.ZodString>;
13495
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
13207
13496
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
13208
13497
  originalActionId: z.ZodOptional<z.ZodString>;
13209
13498
  }, {
@@ -13212,8 +13501,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13212
13501
  type: "PRINT_CERTIFICATE";
13213
13502
  id: string;
13214
13503
  status: "Rejected" | "Requested" | "Accepted";
13504
+ transactionId: string;
13215
13505
  createdAt: string;
13216
13506
  createdBy: string;
13507
+ createdByRole: string;
13217
13508
  declaration: Record<string, string | number | boolean | {
13218
13509
  type: string;
13219
13510
  filename: string;
@@ -13252,7 +13543,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13252
13543
  filename: string;
13253
13544
  originalFilename: string;
13254
13545
  }[] | undefined>;
13255
- createdAtLocation: string;
13256
13546
  annotation?: Record<string, string | number | boolean | {
13257
13547
  type: string;
13258
13548
  filename: string;
@@ -13291,13 +13581,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13291
13581
  filename: string;
13292
13582
  originalFilename: string;
13293
13583
  }[] | undefined> | undefined;
13584
+ createdAtLocation?: string | undefined;
13585
+ updatedAtLocation?: string | undefined;
13294
13586
  originalActionId?: string | undefined;
13295
13587
  }, {
13296
13588
  type: "PRINT_CERTIFICATE";
13297
13589
  id: string;
13298
13590
  status: "Rejected" | "Requested" | "Accepted";
13591
+ transactionId: string;
13299
13592
  createdAt: string;
13300
13593
  createdBy: string;
13594
+ createdByRole: string;
13301
13595
  declaration: Record<string, string | number | boolean | {
13302
13596
  type: string;
13303
13597
  filename: string;
@@ -13336,7 +13630,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13336
13630
  filename: string;
13337
13631
  originalFilename: string;
13338
13632
  }[] | undefined>;
13339
- createdAtLocation: string;
13340
13633
  annotation?: Record<string, string | number | boolean | {
13341
13634
  type: string;
13342
13635
  filename: string;
@@ -13375,11 +13668,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13375
13668
  filename: string;
13376
13669
  originalFilename: string;
13377
13670
  }[] | undefined> | undefined;
13671
+ createdAtLocation?: string | undefined;
13672
+ updatedAtLocation?: string | undefined;
13378
13673
  originalActionId?: string | undefined;
13379
13674
  }>, z.ZodObject<z.objectUtil.extendShape<{
13380
13675
  id: z.ZodString;
13676
+ transactionId: z.ZodString;
13381
13677
  createdAt: z.ZodString;
13382
13678
  createdBy: z.ZodString;
13679
+ createdByRole: z.ZodString;
13383
13680
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13384
13681
  filename: z.ZodString;
13385
13682
  originalFilename: z.ZodString;
@@ -13608,7 +13905,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13608
13905
  addressLine3?: string | null | undefined;
13609
13906
  postcodeOrZip?: string | null | undefined;
13610
13907
  }>]>>>;
13611
- createdAtLocation: z.ZodString;
13908
+ createdAtLocation: z.ZodOptional<z.ZodString>;
13909
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
13612
13910
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
13613
13911
  originalActionId: z.ZodOptional<z.ZodString>;
13614
13912
  }, {
@@ -13617,8 +13915,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13617
13915
  type: "READ";
13618
13916
  id: string;
13619
13917
  status: "Rejected" | "Requested" | "Accepted";
13918
+ transactionId: string;
13620
13919
  createdAt: string;
13621
13920
  createdBy: string;
13921
+ createdByRole: string;
13622
13922
  declaration: Record<string, string | number | boolean | {
13623
13923
  type: string;
13624
13924
  filename: string;
@@ -13657,7 +13957,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13657
13957
  filename: string;
13658
13958
  originalFilename: string;
13659
13959
  }[] | undefined>;
13660
- createdAtLocation: string;
13661
13960
  annotation?: Record<string, string | number | boolean | {
13662
13961
  type: string;
13663
13962
  filename: string;
@@ -13696,13 +13995,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13696
13995
  filename: string;
13697
13996
  originalFilename: string;
13698
13997
  }[] | undefined> | undefined;
13998
+ createdAtLocation?: string | undefined;
13999
+ updatedAtLocation?: string | undefined;
13699
14000
  originalActionId?: string | undefined;
13700
14001
  }, {
13701
14002
  type: "READ";
13702
14003
  id: string;
13703
14004
  status: "Rejected" | "Requested" | "Accepted";
14005
+ transactionId: string;
13704
14006
  createdAt: string;
13705
14007
  createdBy: string;
14008
+ createdByRole: string;
13706
14009
  declaration: Record<string, string | number | boolean | {
13707
14010
  type: string;
13708
14011
  filename: string;
@@ -13741,7 +14044,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13741
14044
  filename: string;
13742
14045
  originalFilename: string;
13743
14046
  }[] | undefined>;
13744
- createdAtLocation: string;
13745
14047
  annotation?: Record<string, string | number | boolean | {
13746
14048
  type: string;
13747
14049
  filename: string;
@@ -13780,11 +14082,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13780
14082
  filename: string;
13781
14083
  originalFilename: string;
13782
14084
  }[] | undefined> | undefined;
14085
+ createdAtLocation?: string | undefined;
14086
+ updatedAtLocation?: string | undefined;
13783
14087
  originalActionId?: string | undefined;
13784
14088
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
13785
14089
  id: z.ZodString;
14090
+ transactionId: z.ZodString;
13786
14091
  createdAt: z.ZodString;
13787
14092
  createdBy: z.ZodString;
14093
+ createdByRole: z.ZodString;
13788
14094
  declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13789
14095
  filename: z.ZodString;
13790
14096
  originalFilename: z.ZodString;
@@ -14013,23 +14319,28 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14013
14319
  addressLine3?: string | null | undefined;
14014
14320
  postcodeOrZip?: string | null | undefined;
14015
14321
  }>]>>>;
14016
- createdAtLocation: z.ZodString;
14322
+ createdAtLocation: z.ZodOptional<z.ZodString>;
14323
+ updatedAtLocation: z.ZodOptional<z.ZodString>;
14017
14324
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
14018
14325
  originalActionId: z.ZodOptional<z.ZodString>;
14019
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
14326
+ }, "createdBy" | "createdByRole" | "declaration" | "annotation" | "createdAtLocation">, {
14020
14327
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
14021
14328
  status: z.ZodLiteral<"Rejected">;
14022
14329
  }>, "strip", z.ZodTypeAny, {
14023
14330
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
14024
14331
  id: string;
14025
14332
  status: "Rejected";
14333
+ transactionId: string;
14026
14334
  createdAt: string;
14335
+ updatedAtLocation?: string | undefined;
14027
14336
  originalActionId?: string | undefined;
14028
14337
  }, {
14029
14338
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
14030
14339
  id: string;
14031
14340
  status: "Rejected";
14341
+ transactionId: string;
14032
14342
  createdAt: string;
14343
+ updatedAtLocation?: string | undefined;
14033
14344
  originalActionId?: string | undefined;
14034
14345
  }>]>;
14035
14346
  export type Action = ActionDocument | AsyncRejectActionDocument;