@opencrvs/toolkit 1.8.0-rc.fb0e687 → 1.8.0-rc.fb0f34f

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 (39) hide show
  1. package/dist/commons/api/router.d.ts +10680 -4260
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -6
  3. package/dist/commons/conditionals/validate.d.ts +5 -11
  4. package/dist/commons/events/ActionConfig.d.ts +97080 -1720
  5. package/dist/commons/events/ActionDocument.d.ts +645 -308
  6. package/dist/commons/events/ActionInput.d.ts +341 -243
  7. package/dist/commons/events/ActionType.d.ts +2 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
  9. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  10. package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
  11. package/dist/commons/events/Draft.d.ts +41 -25
  12. package/dist/commons/events/EventConfig.d.ts +46322 -1345
  13. package/dist/commons/events/EventDocument.d.ts +415 -229
  14. package/dist/commons/events/EventIndex.d.ts +1738 -16
  15. package/dist/commons/events/EventInput.d.ts +13 -0
  16. package/dist/commons/events/EventMetadata.d.ts +277 -14
  17. package/dist/commons/events/FieldConfig.d.ts +4280 -754
  18. package/dist/commons/events/FieldType.d.ts +3 -3
  19. package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
  20. package/dist/commons/events/FieldValue.d.ts +7 -4
  21. package/dist/commons/events/FormConfig.d.ts +43591 -439
  22. package/dist/commons/events/PageConfig.d.ts +10860 -204
  23. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  24. package/dist/commons/events/TemplateConfig.d.ts +4 -4
  25. package/dist/commons/events/User.d.ts +5 -0
  26. package/dist/commons/events/WorkqueueConfig.d.ts +1549 -19
  27. package/dist/commons/events/defineConfig.d.ts +7223 -40
  28. package/dist/commons/events/event.d.ts +54 -0
  29. package/dist/commons/events/field.d.ts +82 -0
  30. package/dist/commons/events/index.d.ts +3 -0
  31. package/dist/commons/events/scopes.d.ts +45 -0
  32. package/dist/commons/events/test.utils.d.ts +11 -48
  33. package/dist/commons/events/utils.d.ts +3678 -72
  34. package/dist/commons/events/utils.test.d.ts +2 -0
  35. package/dist/conditionals/index.js +36 -33
  36. package/dist/events/index.js +2089 -1005
  37. package/dist/scopes/index.d.ts +158 -1
  38. package/dist/scopes/index.js +152 -1
  39. package/package.json +3 -2
@@ -1,9 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { FieldValue } from './FieldValue';
3
2
  /**
4
3
  * ActionUpdate is a record of a specific action that updated data fields.
5
4
  */
6
- export declare const ActionUpdate: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5
+ export declare const ActionUpdate: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7
6
  filename: z.ZodString;
8
7
  originalFilename: z.ZodString;
9
8
  type: z.ZodString;
@@ -121,7 +120,121 @@ export type ActionUpdate = z.infer<typeof ActionUpdate>;
121
120
  /**
122
121
  * EventState is an aggregate of all the actions that have been applied to event data.
123
122
  */
124
- export type EventState = Record<string, FieldValue>;
123
+ export declare const EventState: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
124
+ filename: z.ZodString;
125
+ originalFilename: z.ZodString;
126
+ type: z.ZodString;
127
+ }, "strip", z.ZodTypeAny, {
128
+ type: string;
129
+ filename: string;
130
+ originalFilename: string;
131
+ }, {
132
+ type: string;
133
+ filename: string;
134
+ originalFilename: string;
135
+ }>, z.ZodArray<z.ZodObject<{
136
+ filename: z.ZodString;
137
+ originalFilename: z.ZodString;
138
+ type: z.ZodString;
139
+ option: z.ZodString;
140
+ }, "strip", z.ZodTypeAny, {
141
+ type: string;
142
+ option: string;
143
+ filename: string;
144
+ originalFilename: string;
145
+ }, {
146
+ type: string;
147
+ option: string;
148
+ filename: string;
149
+ originalFilename: string;
150
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
151
+ country: z.ZodString;
152
+ addressType: z.ZodLiteral<"DOMESTIC">;
153
+ province: z.ZodString;
154
+ district: z.ZodString;
155
+ }, {
156
+ urbanOrRural: z.ZodLiteral<"URBAN">;
157
+ town: z.ZodOptional<z.ZodString>;
158
+ residentialArea: z.ZodOptional<z.ZodString>;
159
+ street: z.ZodOptional<z.ZodString>;
160
+ number: z.ZodOptional<z.ZodString>;
161
+ zipCode: z.ZodOptional<z.ZodString>;
162
+ }>, "strip", z.ZodTypeAny, {
163
+ country: string;
164
+ district: string;
165
+ addressType: "DOMESTIC";
166
+ province: string;
167
+ urbanOrRural: "URBAN";
168
+ number?: string | undefined;
169
+ town?: string | undefined;
170
+ residentialArea?: string | undefined;
171
+ street?: string | undefined;
172
+ zipCode?: string | undefined;
173
+ }, {
174
+ country: string;
175
+ district: string;
176
+ addressType: "DOMESTIC";
177
+ province: string;
178
+ urbanOrRural: "URBAN";
179
+ number?: string | undefined;
180
+ town?: string | undefined;
181
+ residentialArea?: string | undefined;
182
+ street?: string | undefined;
183
+ zipCode?: string | undefined;
184
+ }>, z.ZodObject<z.objectUtil.extendShape<{
185
+ country: z.ZodString;
186
+ addressType: z.ZodLiteral<"DOMESTIC">;
187
+ province: z.ZodString;
188
+ district: z.ZodString;
189
+ }, {
190
+ urbanOrRural: z.ZodLiteral<"RURAL">;
191
+ village: z.ZodOptional<z.ZodString>;
192
+ }>, "strip", z.ZodTypeAny, {
193
+ country: string;
194
+ district: string;
195
+ addressType: "DOMESTIC";
196
+ province: string;
197
+ urbanOrRural: "RURAL";
198
+ village?: string | undefined;
199
+ }, {
200
+ country: string;
201
+ district: string;
202
+ addressType: "DOMESTIC";
203
+ province: string;
204
+ urbanOrRural: "RURAL";
205
+ village?: string | undefined;
206
+ }>, z.ZodUndefined, z.ZodObject<{
207
+ country: z.ZodString;
208
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
209
+ state: z.ZodString;
210
+ district2: z.ZodString;
211
+ cityOrTown: z.ZodOptional<z.ZodString>;
212
+ addressLine1: z.ZodOptional<z.ZodString>;
213
+ addressLine2: z.ZodOptional<z.ZodString>;
214
+ addressLine3: z.ZodOptional<z.ZodString>;
215
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ country: string;
218
+ state: string;
219
+ addressType: "INTERNATIONAL";
220
+ district2: string;
221
+ cityOrTown?: string | undefined;
222
+ addressLine1?: string | undefined;
223
+ addressLine2?: string | undefined;
224
+ addressLine3?: string | undefined;
225
+ postcodeOrZip?: string | undefined;
226
+ }, {
227
+ country: string;
228
+ state: string;
229
+ addressType: "INTERNATIONAL";
230
+ district2: string;
231
+ cityOrTown?: string | undefined;
232
+ addressLine1?: string | undefined;
233
+ addressLine2?: string | undefined;
234
+ addressLine3?: string | undefined;
235
+ postcodeOrZip?: string | undefined;
236
+ }>]>>;
237
+ export type EventState = z.infer<typeof EventState>;
125
238
  export declare const ActionStatus: {
126
239
  readonly Requested: "Requested";
127
240
  readonly Accepted: "Accepted";
@@ -130,9 +243,12 @@ export declare const ActionStatus: {
130
243
  export type ActionStatus = keyof typeof ActionStatus;
131
244
  export declare const ActionBase: z.ZodObject<{
132
245
  id: z.ZodString;
246
+ transactionId: z.ZodString;
133
247
  createdAt: z.ZodString;
134
248
  createdBy: z.ZodString;
135
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
249
+ createdByRole: z.ZodString;
250
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
251
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
136
252
  filename: z.ZodString;
137
253
  originalFilename: z.ZodString;
138
254
  type: z.ZodString;
@@ -246,7 +362,7 @@ export declare const ActionBase: z.ZodObject<{
246
362
  addressLine3?: string | null | undefined;
247
363
  postcodeOrZip?: string | null | undefined;
248
364
  }>]>>;
249
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
365
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
250
366
  filename: z.ZodString;
251
367
  originalFilename: z.ZodString;
252
368
  type: z.ZodString;
@@ -360,14 +476,15 @@ export declare const ActionBase: z.ZodObject<{
360
476
  addressLine3?: string | null | undefined;
361
477
  postcodeOrZip?: string | null | undefined;
362
478
  }>]>>>;
363
- createdAtLocation: z.ZodString;
364
479
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
365
480
  originalActionId: z.ZodOptional<z.ZodString>;
366
481
  }, "strip", z.ZodTypeAny, {
367
482
  id: string;
368
483
  status: "Rejected" | "Requested" | "Accepted";
484
+ transactionId: string;
369
485
  createdAt: string;
370
486
  createdBy: string;
487
+ createdByRole: string;
371
488
  declaration: Record<string, string | number | boolean | {
372
489
  type: string;
373
490
  filename: string;
@@ -405,8 +522,8 @@ export declare const ActionBase: z.ZodObject<{
405
522
  option: string;
406
523
  filename: string;
407
524
  originalFilename: string;
408
- }[] | undefined>;
409
- createdAtLocation: string;
525
+ }[] | [string, string] | undefined>;
526
+ createdAtLocation?: string | null | undefined;
410
527
  annotation?: Record<string, string | number | boolean | {
411
528
  type: string;
412
529
  filename: string;
@@ -444,13 +561,15 @@ export declare const ActionBase: z.ZodObject<{
444
561
  option: string;
445
562
  filename: string;
446
563
  originalFilename: string;
447
- }[] | undefined> | undefined;
564
+ }[] | [string, string] | undefined> | undefined;
448
565
  originalActionId?: string | undefined;
449
566
  }, {
450
567
  id: string;
451
568
  status: "Rejected" | "Requested" | "Accepted";
569
+ transactionId: string;
452
570
  createdAt: string;
453
571
  createdBy: string;
572
+ createdByRole: string;
454
573
  declaration: Record<string, string | number | boolean | {
455
574
  type: string;
456
575
  filename: string;
@@ -488,8 +607,8 @@ export declare const ActionBase: z.ZodObject<{
488
607
  option: string;
489
608
  filename: string;
490
609
  originalFilename: string;
491
- }[] | undefined>;
492
- createdAtLocation: string;
610
+ }[] | [string, string] | undefined>;
611
+ createdAtLocation?: string | null | undefined;
493
612
  annotation?: Record<string, string | number | boolean | {
494
613
  type: string;
495
614
  filename: string;
@@ -527,15 +646,18 @@ export declare const ActionBase: z.ZodObject<{
527
646
  option: string;
528
647
  filename: string;
529
648
  originalFilename: string;
530
- }[] | undefined> | undefined;
649
+ }[] | [string, string] | undefined> | undefined;
531
650
  originalActionId?: string | undefined;
532
651
  }>;
533
652
  export type ActionBase = z.infer<typeof ActionBase>;
534
653
  export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
535
654
  id: z.ZodString;
655
+ transactionId: z.ZodString;
536
656
  createdAt: z.ZodString;
537
657
  createdBy: z.ZodString;
538
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
658
+ createdByRole: z.ZodString;
659
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
660
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
539
661
  filename: z.ZodString;
540
662
  originalFilename: z.ZodString;
541
663
  type: z.ZodString;
@@ -649,7 +771,7 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
649
771
  addressLine3?: string | null | undefined;
650
772
  postcodeOrZip?: string | null | undefined;
651
773
  }>]>>;
652
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
774
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
653
775
  filename: z.ZodString;
654
776
  originalFilename: z.ZodString;
655
777
  type: z.ZodString;
@@ -763,7 +885,6 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
763
885
  addressLine3?: string | null | undefined;
764
886
  postcodeOrZip?: string | null | undefined;
765
887
  }>]>>>;
766
- createdAtLocation: z.ZodString;
767
888
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
768
889
  originalActionId: z.ZodOptional<z.ZodString>;
769
890
  }, {
@@ -773,8 +894,10 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
773
894
  type: "REGISTER";
774
895
  id: string;
775
896
  status: "Rejected" | "Requested" | "Accepted";
897
+ transactionId: string;
776
898
  createdAt: string;
777
899
  createdBy: string;
900
+ createdByRole: string;
778
901
  declaration: Record<string, string | number | boolean | {
779
902
  type: string;
780
903
  filename: string;
@@ -812,8 +935,8 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
812
935
  option: string;
813
936
  filename: string;
814
937
  originalFilename: string;
815
- }[] | undefined>;
816
- createdAtLocation: string;
938
+ }[] | [string, string] | undefined>;
939
+ createdAtLocation?: string | null | undefined;
817
940
  annotation?: Record<string, string | number | boolean | {
818
941
  type: string;
819
942
  filename: string;
@@ -851,15 +974,17 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
851
974
  option: string;
852
975
  filename: string;
853
976
  originalFilename: string;
854
- }[] | undefined> | undefined;
977
+ }[] | [string, string] | undefined> | undefined;
855
978
  originalActionId?: string | undefined;
856
979
  registrationNumber?: string | undefined;
857
980
  }, {
858
981
  type: "REGISTER";
859
982
  id: string;
860
983
  status: "Rejected" | "Requested" | "Accepted";
984
+ transactionId: string;
861
985
  createdAt: string;
862
986
  createdBy: string;
987
+ createdByRole: string;
863
988
  declaration: Record<string, string | number | boolean | {
864
989
  type: string;
865
990
  filename: string;
@@ -897,8 +1022,8 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
897
1022
  option: string;
898
1023
  filename: string;
899
1024
  originalFilename: string;
900
- }[] | undefined>;
901
- createdAtLocation: string;
1025
+ }[] | [string, string] | undefined>;
1026
+ createdAtLocation?: string | null | undefined;
902
1027
  annotation?: Record<string, string | number | boolean | {
903
1028
  type: string;
904
1029
  filename: string;
@@ -936,16 +1061,19 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
936
1061
  option: string;
937
1062
  filename: string;
938
1063
  originalFilename: string;
939
- }[] | undefined> | undefined;
1064
+ }[] | [string, string] | undefined> | undefined;
940
1065
  originalActionId?: string | undefined;
941
1066
  registrationNumber?: string | undefined;
942
1067
  }>;
943
1068
  export type RegisterAction = z.infer<typeof RegisterAction>;
944
1069
  declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
945
1070
  id: z.ZodString;
1071
+ transactionId: z.ZodString;
946
1072
  createdAt: z.ZodString;
947
1073
  createdBy: z.ZodString;
948
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1074
+ createdByRole: z.ZodString;
1075
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1076
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
949
1077
  filename: z.ZodString;
950
1078
  originalFilename: z.ZodString;
951
1079
  type: z.ZodString;
@@ -1059,7 +1187,7 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1059
1187
  addressLine3?: string | null | undefined;
1060
1188
  postcodeOrZip?: string | null | undefined;
1061
1189
  }>]>>;
1062
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1190
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1063
1191
  filename: z.ZodString;
1064
1192
  originalFilename: z.ZodString;
1065
1193
  type: z.ZodString;
@@ -1173,7 +1301,6 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1173
1301
  addressLine3?: string | null | undefined;
1174
1302
  postcodeOrZip?: string | null | undefined;
1175
1303
  }>]>>>;
1176
- createdAtLocation: z.ZodString;
1177
1304
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1178
1305
  originalActionId: z.ZodOptional<z.ZodString>;
1179
1306
  }, {
@@ -1182,8 +1309,10 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1182
1309
  type: "CREATE";
1183
1310
  id: string;
1184
1311
  status: "Rejected" | "Requested" | "Accepted";
1312
+ transactionId: string;
1185
1313
  createdAt: string;
1186
1314
  createdBy: string;
1315
+ createdByRole: string;
1187
1316
  declaration: Record<string, string | number | boolean | {
1188
1317
  type: string;
1189
1318
  filename: string;
@@ -1221,8 +1350,8 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1221
1350
  option: string;
1222
1351
  filename: string;
1223
1352
  originalFilename: string;
1224
- }[] | undefined>;
1225
- createdAtLocation: string;
1353
+ }[] | [string, string] | undefined>;
1354
+ createdAtLocation?: string | null | undefined;
1226
1355
  annotation?: Record<string, string | number | boolean | {
1227
1356
  type: string;
1228
1357
  filename: string;
@@ -1260,14 +1389,16 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1260
1389
  option: string;
1261
1390
  filename: string;
1262
1391
  originalFilename: string;
1263
- }[] | undefined> | undefined;
1392
+ }[] | [string, string] | undefined> | undefined;
1264
1393
  originalActionId?: string | undefined;
1265
1394
  }, {
1266
1395
  type: "CREATE";
1267
1396
  id: string;
1268
1397
  status: "Rejected" | "Requested" | "Accepted";
1398
+ transactionId: string;
1269
1399
  createdAt: string;
1270
1400
  createdBy: string;
1401
+ createdByRole: string;
1271
1402
  declaration: Record<string, string | number | boolean | {
1272
1403
  type: string;
1273
1404
  filename: string;
@@ -1305,8 +1436,8 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1305
1436
  option: string;
1306
1437
  filename: string;
1307
1438
  originalFilename: string;
1308
- }[] | undefined>;
1309
- createdAtLocation: string;
1439
+ }[] | [string, string] | undefined>;
1440
+ createdAtLocation?: string | null | undefined;
1310
1441
  annotation?: Record<string, string | number | boolean | {
1311
1442
  type: string;
1312
1443
  filename: string;
@@ -1344,14 +1475,17 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1344
1475
  option: string;
1345
1476
  filename: string;
1346
1477
  originalFilename: string;
1347
- }[] | undefined> | undefined;
1478
+ }[] | [string, string] | undefined> | undefined;
1348
1479
  originalActionId?: string | undefined;
1349
1480
  }>;
1350
1481
  export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
1351
1482
  id: z.ZodString;
1483
+ transactionId: z.ZodString;
1352
1484
  createdAt: z.ZodString;
1353
1485
  createdBy: z.ZodString;
1354
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1486
+ createdByRole: z.ZodString;
1487
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1488
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1355
1489
  filename: z.ZodString;
1356
1490
  originalFilename: z.ZodString;
1357
1491
  type: z.ZodString;
@@ -1465,7 +1599,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1465
1599
  addressLine3?: string | null | undefined;
1466
1600
  postcodeOrZip?: string | null | undefined;
1467
1601
  }>]>>;
1468
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1602
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1469
1603
  filename: z.ZodString;
1470
1604
  originalFilename: z.ZodString;
1471
1605
  type: z.ZodString;
@@ -1579,7 +1713,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1579
1713
  addressLine3?: string | null | undefined;
1580
1714
  postcodeOrZip?: string | null | undefined;
1581
1715
  }>]>>>;
1582
- createdAtLocation: z.ZodString;
1583
1716
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1584
1717
  originalActionId: z.ZodOptional<z.ZodString>;
1585
1718
  }, {
@@ -1588,8 +1721,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1588
1721
  type: "CREATE";
1589
1722
  id: string;
1590
1723
  status: "Rejected" | "Requested" | "Accepted";
1724
+ transactionId: string;
1591
1725
  createdAt: string;
1592
1726
  createdBy: string;
1727
+ createdByRole: string;
1593
1728
  declaration: Record<string, string | number | boolean | {
1594
1729
  type: string;
1595
1730
  filename: string;
@@ -1627,8 +1762,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1627
1762
  option: string;
1628
1763
  filename: string;
1629
1764
  originalFilename: string;
1630
- }[] | undefined>;
1631
- createdAtLocation: string;
1765
+ }[] | [string, string] | undefined>;
1766
+ createdAtLocation?: string | null | undefined;
1632
1767
  annotation?: Record<string, string | number | boolean | {
1633
1768
  type: string;
1634
1769
  filename: string;
@@ -1666,14 +1801,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1666
1801
  option: string;
1667
1802
  filename: string;
1668
1803
  originalFilename: string;
1669
- }[] | undefined> | undefined;
1804
+ }[] | [string, string] | undefined> | undefined;
1670
1805
  originalActionId?: string | undefined;
1671
1806
  }, {
1672
1807
  type: "CREATE";
1673
1808
  id: string;
1674
1809
  status: "Rejected" | "Requested" | "Accepted";
1810
+ transactionId: string;
1675
1811
  createdAt: string;
1676
1812
  createdBy: string;
1813
+ createdByRole: string;
1677
1814
  declaration: Record<string, string | number | boolean | {
1678
1815
  type: string;
1679
1816
  filename: string;
@@ -1711,8 +1848,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1711
1848
  option: string;
1712
1849
  filename: string;
1713
1850
  originalFilename: string;
1714
- }[] | undefined>;
1715
- createdAtLocation: string;
1851
+ }[] | [string, string] | undefined>;
1852
+ createdAtLocation?: string | null | undefined;
1716
1853
  annotation?: Record<string, string | number | boolean | {
1717
1854
  type: string;
1718
1855
  filename: string;
@@ -1750,13 +1887,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1750
1887
  option: string;
1751
1888
  filename: string;
1752
1889
  originalFilename: string;
1753
- }[] | undefined> | undefined;
1890
+ }[] | [string, string] | undefined> | undefined;
1754
1891
  originalActionId?: string | undefined;
1755
1892
  }>, z.ZodObject<z.objectUtil.extendShape<{
1756
1893
  id: z.ZodString;
1894
+ transactionId: z.ZodString;
1757
1895
  createdAt: z.ZodString;
1758
1896
  createdBy: z.ZodString;
1759
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1897
+ createdByRole: z.ZodString;
1898
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1899
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1760
1900
  filename: z.ZodString;
1761
1901
  originalFilename: z.ZodString;
1762
1902
  type: z.ZodString;
@@ -1870,7 +2010,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1870
2010
  addressLine3?: string | null | undefined;
1871
2011
  postcodeOrZip?: string | null | undefined;
1872
2012
  }>]>>;
1873
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2013
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1874
2014
  filename: z.ZodString;
1875
2015
  originalFilename: z.ZodString;
1876
2016
  type: z.ZodString;
@@ -1984,7 +2124,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1984
2124
  addressLine3?: string | null | undefined;
1985
2125
  postcodeOrZip?: string | null | undefined;
1986
2126
  }>]>>>;
1987
- createdAtLocation: z.ZodString;
1988
2127
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1989
2128
  originalActionId: z.ZodOptional<z.ZodString>;
1990
2129
  }, {
@@ -1993,8 +2132,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1993
2132
  type: "VALIDATE";
1994
2133
  id: string;
1995
2134
  status: "Rejected" | "Requested" | "Accepted";
2135
+ transactionId: string;
1996
2136
  createdAt: string;
1997
2137
  createdBy: string;
2138
+ createdByRole: string;
1998
2139
  declaration: Record<string, string | number | boolean | {
1999
2140
  type: string;
2000
2141
  filename: string;
@@ -2032,8 +2173,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2032
2173
  option: string;
2033
2174
  filename: string;
2034
2175
  originalFilename: string;
2035
- }[] | undefined>;
2036
- createdAtLocation: string;
2176
+ }[] | [string, string] | undefined>;
2177
+ createdAtLocation?: string | null | undefined;
2037
2178
  annotation?: Record<string, string | number | boolean | {
2038
2179
  type: string;
2039
2180
  filename: string;
@@ -2071,14 +2212,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2071
2212
  option: string;
2072
2213
  filename: string;
2073
2214
  originalFilename: string;
2074
- }[] | undefined> | undefined;
2215
+ }[] | [string, string] | undefined> | undefined;
2075
2216
  originalActionId?: string | undefined;
2076
2217
  }, {
2077
2218
  type: "VALIDATE";
2078
2219
  id: string;
2079
2220
  status: "Rejected" | "Requested" | "Accepted";
2221
+ transactionId: string;
2080
2222
  createdAt: string;
2081
2223
  createdBy: string;
2224
+ createdByRole: string;
2082
2225
  declaration: Record<string, string | number | boolean | {
2083
2226
  type: string;
2084
2227
  filename: string;
@@ -2116,8 +2259,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2116
2259
  option: string;
2117
2260
  filename: string;
2118
2261
  originalFilename: string;
2119
- }[] | undefined>;
2120
- createdAtLocation: string;
2262
+ }[] | [string, string] | undefined>;
2263
+ createdAtLocation?: string | null | undefined;
2121
2264
  annotation?: Record<string, string | number | boolean | {
2122
2265
  type: string;
2123
2266
  filename: string;
@@ -2155,13 +2298,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2155
2298
  option: string;
2156
2299
  filename: string;
2157
2300
  originalFilename: string;
2158
- }[] | undefined> | undefined;
2301
+ }[] | [string, string] | undefined> | undefined;
2159
2302
  originalActionId?: string | undefined;
2160
2303
  }>, z.ZodObject<z.objectUtil.extendShape<{
2161
2304
  id: z.ZodString;
2305
+ transactionId: z.ZodString;
2162
2306
  createdAt: z.ZodString;
2163
2307
  createdBy: z.ZodString;
2164
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2308
+ createdByRole: z.ZodString;
2309
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2310
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2165
2311
  filename: z.ZodString;
2166
2312
  originalFilename: z.ZodString;
2167
2313
  type: z.ZodString;
@@ -2275,7 +2421,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2275
2421
  addressLine3?: string | null | undefined;
2276
2422
  postcodeOrZip?: string | null | undefined;
2277
2423
  }>]>>;
2278
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2424
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2279
2425
  filename: z.ZodString;
2280
2426
  originalFilename: z.ZodString;
2281
2427
  type: z.ZodString;
@@ -2389,7 +2535,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2389
2535
  addressLine3?: string | null | undefined;
2390
2536
  postcodeOrZip?: string | null | undefined;
2391
2537
  }>]>>>;
2392
- createdAtLocation: z.ZodString;
2393
2538
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2394
2539
  originalActionId: z.ZodOptional<z.ZodString>;
2395
2540
  }, {
@@ -2398,8 +2543,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2398
2543
  type: "REJECT";
2399
2544
  id: string;
2400
2545
  status: "Rejected" | "Requested" | "Accepted";
2546
+ transactionId: string;
2401
2547
  createdAt: string;
2402
2548
  createdBy: string;
2549
+ createdByRole: string;
2403
2550
  declaration: Record<string, string | number | boolean | {
2404
2551
  type: string;
2405
2552
  filename: string;
@@ -2437,8 +2584,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2437
2584
  option: string;
2438
2585
  filename: string;
2439
2586
  originalFilename: string;
2440
- }[] | undefined>;
2441
- createdAtLocation: string;
2587
+ }[] | [string, string] | undefined>;
2588
+ createdAtLocation?: string | null | undefined;
2442
2589
  annotation?: Record<string, string | number | boolean | {
2443
2590
  type: string;
2444
2591
  filename: string;
@@ -2476,14 +2623,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2476
2623
  option: string;
2477
2624
  filename: string;
2478
2625
  originalFilename: string;
2479
- }[] | undefined> | undefined;
2626
+ }[] | [string, string] | undefined> | undefined;
2480
2627
  originalActionId?: string | undefined;
2481
2628
  }, {
2482
2629
  type: "REJECT";
2483
2630
  id: string;
2484
2631
  status: "Rejected" | "Requested" | "Accepted";
2632
+ transactionId: string;
2485
2633
  createdAt: string;
2486
2634
  createdBy: string;
2635
+ createdByRole: string;
2487
2636
  declaration: Record<string, string | number | boolean | {
2488
2637
  type: string;
2489
2638
  filename: string;
@@ -2521,8 +2670,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2521
2670
  option: string;
2522
2671
  filename: string;
2523
2672
  originalFilename: string;
2524
- }[] | undefined>;
2525
- createdAtLocation: string;
2673
+ }[] | [string, string] | undefined>;
2674
+ createdAtLocation?: string | null | undefined;
2526
2675
  annotation?: Record<string, string | number | boolean | {
2527
2676
  type: string;
2528
2677
  filename: string;
@@ -2560,13 +2709,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2560
2709
  option: string;
2561
2710
  filename: string;
2562
2711
  originalFilename: string;
2563
- }[] | undefined> | undefined;
2712
+ }[] | [string, string] | undefined> | undefined;
2564
2713
  originalActionId?: string | undefined;
2565
2714
  }>, z.ZodObject<z.objectUtil.extendShape<{
2566
2715
  id: z.ZodString;
2716
+ transactionId: z.ZodString;
2567
2717
  createdAt: z.ZodString;
2568
2718
  createdBy: z.ZodString;
2569
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2719
+ createdByRole: z.ZodString;
2720
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2721
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2570
2722
  filename: z.ZodString;
2571
2723
  originalFilename: z.ZodString;
2572
2724
  type: z.ZodString;
@@ -2680,7 +2832,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2680
2832
  addressLine3?: string | null | undefined;
2681
2833
  postcodeOrZip?: string | null | undefined;
2682
2834
  }>]>>;
2683
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2835
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2684
2836
  filename: z.ZodString;
2685
2837
  originalFilename: z.ZodString;
2686
2838
  type: z.ZodString;
@@ -2794,7 +2946,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2794
2946
  addressLine3?: string | null | undefined;
2795
2947
  postcodeOrZip?: string | null | undefined;
2796
2948
  }>]>>>;
2797
- createdAtLocation: z.ZodString;
2798
2949
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2799
2950
  originalActionId: z.ZodOptional<z.ZodString>;
2800
2951
  }, {
@@ -2803,8 +2954,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2803
2954
  type: "MARKED_AS_DUPLICATE";
2804
2955
  id: string;
2805
2956
  status: "Rejected" | "Requested" | "Accepted";
2957
+ transactionId: string;
2806
2958
  createdAt: string;
2807
2959
  createdBy: string;
2960
+ createdByRole: string;
2808
2961
  declaration: Record<string, string | number | boolean | {
2809
2962
  type: string;
2810
2963
  filename: string;
@@ -2842,8 +2995,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2842
2995
  option: string;
2843
2996
  filename: string;
2844
2997
  originalFilename: string;
2845
- }[] | undefined>;
2846
- createdAtLocation: string;
2998
+ }[] | [string, string] | undefined>;
2999
+ createdAtLocation?: string | null | undefined;
2847
3000
  annotation?: Record<string, string | number | boolean | {
2848
3001
  type: string;
2849
3002
  filename: string;
@@ -2881,14 +3034,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2881
3034
  option: string;
2882
3035
  filename: string;
2883
3036
  originalFilename: string;
2884
- }[] | undefined> | undefined;
3037
+ }[] | [string, string] | undefined> | undefined;
2885
3038
  originalActionId?: string | undefined;
2886
3039
  }, {
2887
3040
  type: "MARKED_AS_DUPLICATE";
2888
3041
  id: string;
2889
3042
  status: "Rejected" | "Requested" | "Accepted";
3043
+ transactionId: string;
2890
3044
  createdAt: string;
2891
3045
  createdBy: string;
3046
+ createdByRole: string;
2892
3047
  declaration: Record<string, string | number | boolean | {
2893
3048
  type: string;
2894
3049
  filename: string;
@@ -2926,8 +3081,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2926
3081
  option: string;
2927
3082
  filename: string;
2928
3083
  originalFilename: string;
2929
- }[] | undefined>;
2930
- createdAtLocation: string;
3084
+ }[] | [string, string] | undefined>;
3085
+ createdAtLocation?: string | null | undefined;
2931
3086
  annotation?: Record<string, string | number | boolean | {
2932
3087
  type: string;
2933
3088
  filename: string;
@@ -2965,13 +3120,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2965
3120
  option: string;
2966
3121
  filename: string;
2967
3122
  originalFilename: string;
2968
- }[] | undefined> | undefined;
3123
+ }[] | [string, string] | undefined> | undefined;
2969
3124
  originalActionId?: string | undefined;
2970
3125
  }>, z.ZodObject<z.objectUtil.extendShape<{
2971
3126
  id: z.ZodString;
3127
+ transactionId: z.ZodString;
2972
3128
  createdAt: z.ZodString;
2973
3129
  createdBy: z.ZodString;
2974
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3130
+ createdByRole: z.ZodString;
3131
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3132
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2975
3133
  filename: z.ZodString;
2976
3134
  originalFilename: z.ZodString;
2977
3135
  type: z.ZodString;
@@ -3085,7 +3243,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3085
3243
  addressLine3?: string | null | undefined;
3086
3244
  postcodeOrZip?: string | null | undefined;
3087
3245
  }>]>>;
3088
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3246
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3089
3247
  filename: z.ZodString;
3090
3248
  originalFilename: z.ZodString;
3091
3249
  type: z.ZodString;
@@ -3199,7 +3357,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3199
3357
  addressLine3?: string | null | undefined;
3200
3358
  postcodeOrZip?: string | null | undefined;
3201
3359
  }>]>>>;
3202
- createdAtLocation: z.ZodString;
3203
3360
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3204
3361
  originalActionId: z.ZodOptional<z.ZodString>;
3205
3362
  }, {
@@ -3208,8 +3365,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3208
3365
  type: "ARCHIVE";
3209
3366
  id: string;
3210
3367
  status: "Rejected" | "Requested" | "Accepted";
3368
+ transactionId: string;
3211
3369
  createdAt: string;
3212
3370
  createdBy: string;
3371
+ createdByRole: string;
3213
3372
  declaration: Record<string, string | number | boolean | {
3214
3373
  type: string;
3215
3374
  filename: string;
@@ -3247,8 +3406,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3247
3406
  option: string;
3248
3407
  filename: string;
3249
3408
  originalFilename: string;
3250
- }[] | undefined>;
3251
- createdAtLocation: string;
3409
+ }[] | [string, string] | undefined>;
3410
+ createdAtLocation?: string | null | undefined;
3252
3411
  annotation?: Record<string, string | number | boolean | {
3253
3412
  type: string;
3254
3413
  filename: string;
@@ -3286,14 +3445,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3286
3445
  option: string;
3287
3446
  filename: string;
3288
3447
  originalFilename: string;
3289
- }[] | undefined> | undefined;
3448
+ }[] | [string, string] | undefined> | undefined;
3290
3449
  originalActionId?: string | undefined;
3291
3450
  }, {
3292
3451
  type: "ARCHIVE";
3293
3452
  id: string;
3294
3453
  status: "Rejected" | "Requested" | "Accepted";
3454
+ transactionId: string;
3295
3455
  createdAt: string;
3296
3456
  createdBy: string;
3457
+ createdByRole: string;
3297
3458
  declaration: Record<string, string | number | boolean | {
3298
3459
  type: string;
3299
3460
  filename: string;
@@ -3331,8 +3492,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3331
3492
  option: string;
3332
3493
  filename: string;
3333
3494
  originalFilename: string;
3334
- }[] | undefined>;
3335
- createdAtLocation: string;
3495
+ }[] | [string, string] | undefined>;
3496
+ createdAtLocation?: string | null | undefined;
3336
3497
  annotation?: Record<string, string | number | boolean | {
3337
3498
  type: string;
3338
3499
  filename: string;
@@ -3370,13 +3531,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3370
3531
  option: string;
3371
3532
  filename: string;
3372
3533
  originalFilename: string;
3373
- }[] | undefined> | undefined;
3534
+ }[] | [string, string] | undefined> | undefined;
3374
3535
  originalActionId?: string | undefined;
3375
3536
  }>, z.ZodObject<z.objectUtil.extendShape<{
3376
3537
  id: z.ZodString;
3538
+ transactionId: z.ZodString;
3377
3539
  createdAt: z.ZodString;
3378
3540
  createdBy: z.ZodString;
3379
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3541
+ createdByRole: z.ZodString;
3542
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3543
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3380
3544
  filename: z.ZodString;
3381
3545
  originalFilename: z.ZodString;
3382
3546
  type: z.ZodString;
@@ -3490,7 +3654,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3490
3654
  addressLine3?: string | null | undefined;
3491
3655
  postcodeOrZip?: string | null | undefined;
3492
3656
  }>]>>;
3493
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3657
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3494
3658
  filename: z.ZodString;
3495
3659
  originalFilename: z.ZodString;
3496
3660
  type: z.ZodString;
@@ -3604,7 +3768,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3604
3768
  addressLine3?: string | null | undefined;
3605
3769
  postcodeOrZip?: string | null | undefined;
3606
3770
  }>]>>>;
3607
- createdAtLocation: z.ZodString;
3608
3771
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3609
3772
  originalActionId: z.ZodOptional<z.ZodString>;
3610
3773
  }, {
@@ -3613,8 +3776,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3613
3776
  type: "NOTIFY";
3614
3777
  id: string;
3615
3778
  status: "Rejected" | "Requested" | "Accepted";
3779
+ transactionId: string;
3616
3780
  createdAt: string;
3617
3781
  createdBy: string;
3782
+ createdByRole: string;
3618
3783
  declaration: Record<string, string | number | boolean | {
3619
3784
  type: string;
3620
3785
  filename: string;
@@ -3652,8 +3817,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3652
3817
  option: string;
3653
3818
  filename: string;
3654
3819
  originalFilename: string;
3655
- }[] | undefined>;
3656
- createdAtLocation: string;
3820
+ }[] | [string, string] | undefined>;
3821
+ createdAtLocation?: string | null | undefined;
3657
3822
  annotation?: Record<string, string | number | boolean | {
3658
3823
  type: string;
3659
3824
  filename: string;
@@ -3691,14 +3856,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3691
3856
  option: string;
3692
3857
  filename: string;
3693
3858
  originalFilename: string;
3694
- }[] | undefined> | undefined;
3859
+ }[] | [string, string] | undefined> | undefined;
3695
3860
  originalActionId?: string | undefined;
3696
3861
  }, {
3697
3862
  type: "NOTIFY";
3698
3863
  id: string;
3699
3864
  status: "Rejected" | "Requested" | "Accepted";
3865
+ transactionId: string;
3700
3866
  createdAt: string;
3701
3867
  createdBy: string;
3868
+ createdByRole: string;
3702
3869
  declaration: Record<string, string | number | boolean | {
3703
3870
  type: string;
3704
3871
  filename: string;
@@ -3736,8 +3903,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3736
3903
  option: string;
3737
3904
  filename: string;
3738
3905
  originalFilename: string;
3739
- }[] | undefined>;
3740
- createdAtLocation: string;
3906
+ }[] | [string, string] | undefined>;
3907
+ createdAtLocation?: string | null | undefined;
3741
3908
  annotation?: Record<string, string | number | boolean | {
3742
3909
  type: string;
3743
3910
  filename: string;
@@ -3775,13 +3942,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3775
3942
  option: string;
3776
3943
  filename: string;
3777
3944
  originalFilename: string;
3778
- }[] | undefined> | undefined;
3945
+ }[] | [string, string] | undefined> | undefined;
3779
3946
  originalActionId?: string | undefined;
3780
3947
  }>, z.ZodObject<z.objectUtil.extendShape<{
3781
3948
  id: z.ZodString;
3949
+ transactionId: z.ZodString;
3782
3950
  createdAt: z.ZodString;
3783
3951
  createdBy: z.ZodString;
3784
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3952
+ createdByRole: z.ZodString;
3953
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3954
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3785
3955
  filename: z.ZodString;
3786
3956
  originalFilename: z.ZodString;
3787
3957
  type: z.ZodString;
@@ -3895,7 +4065,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3895
4065
  addressLine3?: string | null | undefined;
3896
4066
  postcodeOrZip?: string | null | undefined;
3897
4067
  }>]>>;
3898
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4068
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3899
4069
  filename: z.ZodString;
3900
4070
  originalFilename: z.ZodString;
3901
4071
  type: z.ZodString;
@@ -4009,7 +4179,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4009
4179
  addressLine3?: string | null | undefined;
4010
4180
  postcodeOrZip?: string | null | undefined;
4011
4181
  }>]>>>;
4012
- createdAtLocation: z.ZodString;
4013
4182
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4014
4183
  originalActionId: z.ZodOptional<z.ZodString>;
4015
4184
  }, {
@@ -4019,8 +4188,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4019
4188
  type: "REGISTER";
4020
4189
  id: string;
4021
4190
  status: "Rejected" | "Requested" | "Accepted";
4191
+ transactionId: string;
4022
4192
  createdAt: string;
4023
4193
  createdBy: string;
4194
+ createdByRole: string;
4024
4195
  declaration: Record<string, string | number | boolean | {
4025
4196
  type: string;
4026
4197
  filename: string;
@@ -4058,8 +4229,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4058
4229
  option: string;
4059
4230
  filename: string;
4060
4231
  originalFilename: string;
4061
- }[] | undefined>;
4062
- createdAtLocation: string;
4232
+ }[] | [string, string] | undefined>;
4233
+ createdAtLocation?: string | null | undefined;
4063
4234
  annotation?: Record<string, string | number | boolean | {
4064
4235
  type: string;
4065
4236
  filename: string;
@@ -4097,15 +4268,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4097
4268
  option: string;
4098
4269
  filename: string;
4099
4270
  originalFilename: string;
4100
- }[] | undefined> | undefined;
4271
+ }[] | [string, string] | undefined> | undefined;
4101
4272
  originalActionId?: string | undefined;
4102
4273
  registrationNumber?: string | undefined;
4103
4274
  }, {
4104
4275
  type: "REGISTER";
4105
4276
  id: string;
4106
4277
  status: "Rejected" | "Requested" | "Accepted";
4278
+ transactionId: string;
4107
4279
  createdAt: string;
4108
4280
  createdBy: string;
4281
+ createdByRole: string;
4109
4282
  declaration: Record<string, string | number | boolean | {
4110
4283
  type: string;
4111
4284
  filename: string;
@@ -4143,8 +4316,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4143
4316
  option: string;
4144
4317
  filename: string;
4145
4318
  originalFilename: string;
4146
- }[] | undefined>;
4147
- createdAtLocation: string;
4319
+ }[] | [string, string] | undefined>;
4320
+ createdAtLocation?: string | null | undefined;
4148
4321
  annotation?: Record<string, string | number | boolean | {
4149
4322
  type: string;
4150
4323
  filename: string;
@@ -4182,14 +4355,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4182
4355
  option: string;
4183
4356
  filename: string;
4184
4357
  originalFilename: string;
4185
- }[] | undefined> | undefined;
4358
+ }[] | [string, string] | undefined> | undefined;
4186
4359
  originalActionId?: string | undefined;
4187
4360
  registrationNumber?: string | undefined;
4188
4361
  }>, z.ZodObject<z.objectUtil.extendShape<{
4189
4362
  id: z.ZodString;
4363
+ transactionId: z.ZodString;
4190
4364
  createdAt: z.ZodString;
4191
4365
  createdBy: z.ZodString;
4192
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4366
+ createdByRole: z.ZodString;
4367
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4368
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4193
4369
  filename: z.ZodString;
4194
4370
  originalFilename: z.ZodString;
4195
4371
  type: z.ZodString;
@@ -4303,7 +4479,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4303
4479
  addressLine3?: string | null | undefined;
4304
4480
  postcodeOrZip?: string | null | undefined;
4305
4481
  }>]>>;
4306
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4482
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4307
4483
  filename: z.ZodString;
4308
4484
  originalFilename: z.ZodString;
4309
4485
  type: z.ZodString;
@@ -4417,7 +4593,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4417
4593
  addressLine3?: string | null | undefined;
4418
4594
  postcodeOrZip?: string | null | undefined;
4419
4595
  }>]>>>;
4420
- createdAtLocation: z.ZodString;
4421
4596
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4422
4597
  originalActionId: z.ZodOptional<z.ZodString>;
4423
4598
  }, {
@@ -4426,8 +4601,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4426
4601
  type: "DECLARE";
4427
4602
  id: string;
4428
4603
  status: "Rejected" | "Requested" | "Accepted";
4604
+ transactionId: string;
4429
4605
  createdAt: string;
4430
4606
  createdBy: string;
4607
+ createdByRole: string;
4431
4608
  declaration: Record<string, string | number | boolean | {
4432
4609
  type: string;
4433
4610
  filename: string;
@@ -4465,8 +4642,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4465
4642
  option: string;
4466
4643
  filename: string;
4467
4644
  originalFilename: string;
4468
- }[] | undefined>;
4469
- createdAtLocation: string;
4645
+ }[] | [string, string] | undefined>;
4646
+ createdAtLocation?: string | null | undefined;
4470
4647
  annotation?: Record<string, string | number | boolean | {
4471
4648
  type: string;
4472
4649
  filename: string;
@@ -4504,14 +4681,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4504
4681
  option: string;
4505
4682
  filename: string;
4506
4683
  originalFilename: string;
4507
- }[] | undefined> | undefined;
4684
+ }[] | [string, string] | undefined> | undefined;
4508
4685
  originalActionId?: string | undefined;
4509
4686
  }, {
4510
4687
  type: "DECLARE";
4511
4688
  id: string;
4512
4689
  status: "Rejected" | "Requested" | "Accepted";
4690
+ transactionId: string;
4513
4691
  createdAt: string;
4514
4692
  createdBy: string;
4693
+ createdByRole: string;
4515
4694
  declaration: Record<string, string | number | boolean | {
4516
4695
  type: string;
4517
4696
  filename: string;
@@ -4549,8 +4728,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4549
4728
  option: string;
4550
4729
  filename: string;
4551
4730
  originalFilename: string;
4552
- }[] | undefined>;
4553
- createdAtLocation: string;
4731
+ }[] | [string, string] | undefined>;
4732
+ createdAtLocation?: string | null | undefined;
4554
4733
  annotation?: Record<string, string | number | boolean | {
4555
4734
  type: string;
4556
4735
  filename: string;
@@ -4588,13 +4767,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4588
4767
  option: string;
4589
4768
  filename: string;
4590
4769
  originalFilename: string;
4591
- }[] | undefined> | undefined;
4770
+ }[] | [string, string] | undefined> | undefined;
4592
4771
  originalActionId?: string | undefined;
4593
4772
  }>, z.ZodObject<z.objectUtil.extendShape<{
4594
4773
  id: z.ZodString;
4774
+ transactionId: z.ZodString;
4595
4775
  createdAt: z.ZodString;
4596
4776
  createdBy: z.ZodString;
4597
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4777
+ createdByRole: z.ZodString;
4778
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4779
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4598
4780
  filename: z.ZodString;
4599
4781
  originalFilename: z.ZodString;
4600
4782
  type: z.ZodString;
@@ -4708,7 +4890,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4708
4890
  addressLine3?: string | null | undefined;
4709
4891
  postcodeOrZip?: string | null | undefined;
4710
4892
  }>]>>;
4711
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4893
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4712
4894
  filename: z.ZodString;
4713
4895
  originalFilename: z.ZodString;
4714
4896
  type: z.ZodString;
@@ -4822,7 +5004,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4822
5004
  addressLine3?: string | null | undefined;
4823
5005
  postcodeOrZip?: string | null | undefined;
4824
5006
  }>]>>>;
4825
- createdAtLocation: z.ZodString;
4826
5007
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4827
5008
  originalActionId: z.ZodOptional<z.ZodString>;
4828
5009
  }, {
@@ -4832,8 +5013,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4832
5013
  type: "ASSIGN";
4833
5014
  id: string;
4834
5015
  status: "Rejected" | "Requested" | "Accepted";
5016
+ transactionId: string;
4835
5017
  createdAt: string;
4836
5018
  createdBy: string;
5019
+ createdByRole: string;
4837
5020
  declaration: Record<string, string | number | boolean | {
4838
5021
  type: string;
4839
5022
  filename: string;
@@ -4871,9 +5054,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4871
5054
  option: string;
4872
5055
  filename: string;
4873
5056
  originalFilename: string;
4874
- }[] | undefined>;
4875
- createdAtLocation: string;
5057
+ }[] | [string, string] | undefined>;
4876
5058
  assignedTo: string;
5059
+ createdAtLocation?: string | null | undefined;
4877
5060
  annotation?: Record<string, string | number | boolean | {
4878
5061
  type: string;
4879
5062
  filename: string;
@@ -4911,14 +5094,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4911
5094
  option: string;
4912
5095
  filename: string;
4913
5096
  originalFilename: string;
4914
- }[] | undefined> | undefined;
5097
+ }[] | [string, string] | undefined> | undefined;
4915
5098
  originalActionId?: string | undefined;
4916
5099
  }, {
4917
5100
  type: "ASSIGN";
4918
5101
  id: string;
4919
5102
  status: "Rejected" | "Requested" | "Accepted";
5103
+ transactionId: string;
4920
5104
  createdAt: string;
4921
5105
  createdBy: string;
5106
+ createdByRole: string;
4922
5107
  declaration: Record<string, string | number | boolean | {
4923
5108
  type: string;
4924
5109
  filename: string;
@@ -4956,9 +5141,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4956
5141
  option: string;
4957
5142
  filename: string;
4958
5143
  originalFilename: string;
4959
- }[] | undefined>;
4960
- createdAtLocation: string;
5144
+ }[] | [string, string] | undefined>;
4961
5145
  assignedTo: string;
5146
+ createdAtLocation?: string | null | undefined;
4962
5147
  annotation?: Record<string, string | number | boolean | {
4963
5148
  type: string;
4964
5149
  filename: string;
@@ -4996,13 +5181,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4996
5181
  option: string;
4997
5182
  filename: string;
4998
5183
  originalFilename: string;
4999
- }[] | undefined> | undefined;
5184
+ }[] | [string, string] | undefined> | undefined;
5000
5185
  originalActionId?: string | undefined;
5001
5186
  }>, z.ZodObject<z.objectUtil.extendShape<{
5002
5187
  id: z.ZodString;
5188
+ transactionId: z.ZodString;
5003
5189
  createdAt: z.ZodString;
5004
5190
  createdBy: z.ZodString;
5005
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5191
+ createdByRole: z.ZodString;
5192
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5193
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5006
5194
  filename: z.ZodString;
5007
5195
  originalFilename: z.ZodString;
5008
5196
  type: z.ZodString;
@@ -5116,7 +5304,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5116
5304
  addressLine3?: string | null | undefined;
5117
5305
  postcodeOrZip?: string | null | undefined;
5118
5306
  }>]>>;
5119
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5307
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5120
5308
  filename: z.ZodString;
5121
5309
  originalFilename: z.ZodString;
5122
5310
  type: z.ZodString;
@@ -5230,7 +5418,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5230
5418
  addressLine3?: string | null | undefined;
5231
5419
  postcodeOrZip?: string | null | undefined;
5232
5420
  }>]>>>;
5233
- createdAtLocation: z.ZodString;
5234
5421
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5235
5422
  originalActionId: z.ZodOptional<z.ZodString>;
5236
5423
  }, {
@@ -5239,8 +5426,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5239
5426
  type: "REQUEST_CORRECTION";
5240
5427
  id: string;
5241
5428
  status: "Rejected" | "Requested" | "Accepted";
5429
+ transactionId: string;
5242
5430
  createdAt: string;
5243
5431
  createdBy: string;
5432
+ createdByRole: string;
5244
5433
  declaration: Record<string, string | number | boolean | {
5245
5434
  type: string;
5246
5435
  filename: string;
@@ -5278,8 +5467,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5278
5467
  option: string;
5279
5468
  filename: string;
5280
5469
  originalFilename: string;
5281
- }[] | undefined>;
5282
- createdAtLocation: string;
5470
+ }[] | [string, string] | undefined>;
5471
+ createdAtLocation?: string | null | undefined;
5283
5472
  annotation?: Record<string, string | number | boolean | {
5284
5473
  type: string;
5285
5474
  filename: string;
@@ -5317,14 +5506,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5317
5506
  option: string;
5318
5507
  filename: string;
5319
5508
  originalFilename: string;
5320
- }[] | undefined> | undefined;
5509
+ }[] | [string, string] | undefined> | undefined;
5321
5510
  originalActionId?: string | undefined;
5322
5511
  }, {
5323
5512
  type: "REQUEST_CORRECTION";
5324
5513
  id: string;
5325
5514
  status: "Rejected" | "Requested" | "Accepted";
5515
+ transactionId: string;
5326
5516
  createdAt: string;
5327
5517
  createdBy: string;
5518
+ createdByRole: string;
5328
5519
  declaration: Record<string, string | number | boolean | {
5329
5520
  type: string;
5330
5521
  filename: string;
@@ -5362,8 +5553,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5362
5553
  option: string;
5363
5554
  filename: string;
5364
5555
  originalFilename: string;
5365
- }[] | undefined>;
5366
- createdAtLocation: string;
5556
+ }[] | [string, string] | undefined>;
5557
+ createdAtLocation?: string | null | undefined;
5367
5558
  annotation?: Record<string, string | number | boolean | {
5368
5559
  type: string;
5369
5560
  filename: string;
@@ -5401,13 +5592,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5401
5592
  option: string;
5402
5593
  filename: string;
5403
5594
  originalFilename: string;
5404
- }[] | undefined> | undefined;
5595
+ }[] | [string, string] | undefined> | undefined;
5405
5596
  originalActionId?: string | undefined;
5406
5597
  }>, z.ZodObject<z.objectUtil.extendShape<{
5407
5598
  id: z.ZodString;
5599
+ transactionId: z.ZodString;
5408
5600
  createdAt: z.ZodString;
5409
5601
  createdBy: z.ZodString;
5410
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5602
+ createdByRole: z.ZodString;
5603
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5604
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5411
5605
  filename: z.ZodString;
5412
5606
  originalFilename: z.ZodString;
5413
5607
  type: z.ZodString;
@@ -5521,7 +5715,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5521
5715
  addressLine3?: string | null | undefined;
5522
5716
  postcodeOrZip?: string | null | undefined;
5523
5717
  }>]>>;
5524
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5718
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5525
5719
  filename: z.ZodString;
5526
5720
  originalFilename: z.ZodString;
5527
5721
  type: z.ZodString;
@@ -5635,7 +5829,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5635
5829
  addressLine3?: string | null | undefined;
5636
5830
  postcodeOrZip?: string | null | undefined;
5637
5831
  }>]>>>;
5638
- createdAtLocation: z.ZodString;
5639
5832
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5640
5833
  originalActionId: z.ZodOptional<z.ZodString>;
5641
5834
  }, {
@@ -5645,8 +5838,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5645
5838
  type: "APPROVE_CORRECTION";
5646
5839
  id: string;
5647
5840
  status: "Rejected" | "Requested" | "Accepted";
5841
+ transactionId: string;
5648
5842
  createdAt: string;
5649
5843
  createdBy: string;
5844
+ createdByRole: string;
5650
5845
  declaration: Record<string, string | number | boolean | {
5651
5846
  type: string;
5652
5847
  filename: string;
@@ -5684,9 +5879,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5684
5879
  option: string;
5685
5880
  filename: string;
5686
5881
  originalFilename: string;
5687
- }[] | undefined>;
5688
- createdAtLocation: string;
5882
+ }[] | [string, string] | undefined>;
5689
5883
  requestId: string;
5884
+ createdAtLocation?: string | null | undefined;
5690
5885
  annotation?: Record<string, string | number | boolean | {
5691
5886
  type: string;
5692
5887
  filename: string;
@@ -5724,14 +5919,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5724
5919
  option: string;
5725
5920
  filename: string;
5726
5921
  originalFilename: string;
5727
- }[] | undefined> | undefined;
5922
+ }[] | [string, string] | undefined> | undefined;
5728
5923
  originalActionId?: string | undefined;
5729
5924
  }, {
5730
5925
  type: "APPROVE_CORRECTION";
5731
5926
  id: string;
5732
5927
  status: "Rejected" | "Requested" | "Accepted";
5928
+ transactionId: string;
5733
5929
  createdAt: string;
5734
5930
  createdBy: string;
5931
+ createdByRole: string;
5735
5932
  declaration: Record<string, string | number | boolean | {
5736
5933
  type: string;
5737
5934
  filename: string;
@@ -5769,9 +5966,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5769
5966
  option: string;
5770
5967
  filename: string;
5771
5968
  originalFilename: string;
5772
- }[] | undefined>;
5773
- createdAtLocation: string;
5969
+ }[] | [string, string] | undefined>;
5774
5970
  requestId: string;
5971
+ createdAtLocation?: string | null | undefined;
5775
5972
  annotation?: Record<string, string | number | boolean | {
5776
5973
  type: string;
5777
5974
  filename: string;
@@ -5809,13 +6006,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5809
6006
  option: string;
5810
6007
  filename: string;
5811
6008
  originalFilename: string;
5812
- }[] | undefined> | undefined;
6009
+ }[] | [string, string] | undefined> | undefined;
5813
6010
  originalActionId?: string | undefined;
5814
6011
  }>, z.ZodObject<z.objectUtil.extendShape<{
5815
6012
  id: z.ZodString;
6013
+ transactionId: z.ZodString;
5816
6014
  createdAt: z.ZodString;
5817
6015
  createdBy: z.ZodString;
5818
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6016
+ createdByRole: z.ZodString;
6017
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6018
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5819
6019
  filename: z.ZodString;
5820
6020
  originalFilename: z.ZodString;
5821
6021
  type: z.ZodString;
@@ -5929,7 +6129,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5929
6129
  addressLine3?: string | null | undefined;
5930
6130
  postcodeOrZip?: string | null | undefined;
5931
6131
  }>]>>;
5932
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6132
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5933
6133
  filename: z.ZodString;
5934
6134
  originalFilename: z.ZodString;
5935
6135
  type: z.ZodString;
@@ -6043,7 +6243,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6043
6243
  addressLine3?: string | null | undefined;
6044
6244
  postcodeOrZip?: string | null | undefined;
6045
6245
  }>]>>>;
6046
- createdAtLocation: z.ZodString;
6047
6246
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6048
6247
  originalActionId: z.ZodOptional<z.ZodString>;
6049
6248
  }, {
@@ -6053,8 +6252,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6053
6252
  type: "REJECT_CORRECTION";
6054
6253
  id: string;
6055
6254
  status: "Rejected" | "Requested" | "Accepted";
6255
+ transactionId: string;
6056
6256
  createdAt: string;
6057
6257
  createdBy: string;
6258
+ createdByRole: string;
6058
6259
  declaration: Record<string, string | number | boolean | {
6059
6260
  type: string;
6060
6261
  filename: string;
@@ -6092,9 +6293,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6092
6293
  option: string;
6093
6294
  filename: string;
6094
6295
  originalFilename: string;
6095
- }[] | undefined>;
6096
- createdAtLocation: string;
6296
+ }[] | [string, string] | undefined>;
6097
6297
  requestId: string;
6298
+ createdAtLocation?: string | null | undefined;
6098
6299
  annotation?: Record<string, string | number | boolean | {
6099
6300
  type: string;
6100
6301
  filename: string;
@@ -6132,14 +6333,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6132
6333
  option: string;
6133
6334
  filename: string;
6134
6335
  originalFilename: string;
6135
- }[] | undefined> | undefined;
6336
+ }[] | [string, string] | undefined> | undefined;
6136
6337
  originalActionId?: string | undefined;
6137
6338
  }, {
6138
6339
  type: "REJECT_CORRECTION";
6139
6340
  id: string;
6140
6341
  status: "Rejected" | "Requested" | "Accepted";
6342
+ transactionId: string;
6141
6343
  createdAt: string;
6142
6344
  createdBy: string;
6345
+ createdByRole: string;
6143
6346
  declaration: Record<string, string | number | boolean | {
6144
6347
  type: string;
6145
6348
  filename: string;
@@ -6177,9 +6380,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6177
6380
  option: string;
6178
6381
  filename: string;
6179
6382
  originalFilename: string;
6180
- }[] | undefined>;
6181
- createdAtLocation: string;
6383
+ }[] | [string, string] | undefined>;
6182
6384
  requestId: string;
6385
+ createdAtLocation?: string | null | undefined;
6183
6386
  annotation?: Record<string, string | number | boolean | {
6184
6387
  type: string;
6185
6388
  filename: string;
@@ -6217,13 +6420,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6217
6420
  option: string;
6218
6421
  filename: string;
6219
6422
  originalFilename: string;
6220
- }[] | undefined> | undefined;
6423
+ }[] | [string, string] | undefined> | undefined;
6221
6424
  originalActionId?: string | undefined;
6222
6425
  }>, z.ZodObject<z.objectUtil.extendShape<{
6223
6426
  id: z.ZodString;
6427
+ transactionId: z.ZodString;
6224
6428
  createdAt: z.ZodString;
6225
6429
  createdBy: z.ZodString;
6226
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6430
+ createdByRole: z.ZodString;
6431
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6432
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6227
6433
  filename: z.ZodString;
6228
6434
  originalFilename: z.ZodString;
6229
6435
  type: z.ZodString;
@@ -6337,7 +6543,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6337
6543
  addressLine3?: string | null | undefined;
6338
6544
  postcodeOrZip?: string | null | undefined;
6339
6545
  }>]>>;
6340
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6546
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6341
6547
  filename: z.ZodString;
6342
6548
  originalFilename: z.ZodString;
6343
6549
  type: z.ZodString;
@@ -6451,17 +6657,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6451
6657
  addressLine3?: string | null | undefined;
6452
6658
  postcodeOrZip?: string | null | undefined;
6453
6659
  }>]>>>;
6454
- createdAtLocation: z.ZodString;
6455
6660
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6456
6661
  originalActionId: z.ZodOptional<z.ZodString>;
6457
6662
  }, {
6458
6663
  type: z.ZodLiteral<"UNASSIGN">;
6664
+ assignedTo: z.ZodLiteral<null>;
6459
6665
  }>, "strip", z.ZodTypeAny, {
6460
6666
  type: "UNASSIGN";
6461
6667
  id: string;
6462
6668
  status: "Rejected" | "Requested" | "Accepted";
6669
+ transactionId: string;
6463
6670
  createdAt: string;
6464
6671
  createdBy: string;
6672
+ createdByRole: string;
6465
6673
  declaration: Record<string, string | number | boolean | {
6466
6674
  type: string;
6467
6675
  filename: string;
@@ -6499,8 +6707,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6499
6707
  option: string;
6500
6708
  filename: string;
6501
6709
  originalFilename: string;
6502
- }[] | undefined>;
6503
- createdAtLocation: string;
6710
+ }[] | [string, string] | undefined>;
6711
+ assignedTo: null;
6712
+ createdAtLocation?: string | null | undefined;
6504
6713
  annotation?: Record<string, string | number | boolean | {
6505
6714
  type: string;
6506
6715
  filename: string;
@@ -6538,14 +6747,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6538
6747
  option: string;
6539
6748
  filename: string;
6540
6749
  originalFilename: string;
6541
- }[] | undefined> | undefined;
6750
+ }[] | [string, string] | undefined> | undefined;
6542
6751
  originalActionId?: string | undefined;
6543
6752
  }, {
6544
6753
  type: "UNASSIGN";
6545
6754
  id: string;
6546
6755
  status: "Rejected" | "Requested" | "Accepted";
6756
+ transactionId: string;
6547
6757
  createdAt: string;
6548
6758
  createdBy: string;
6759
+ createdByRole: string;
6549
6760
  declaration: Record<string, string | number | boolean | {
6550
6761
  type: string;
6551
6762
  filename: string;
@@ -6583,8 +6794,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6583
6794
  option: string;
6584
6795
  filename: string;
6585
6796
  originalFilename: string;
6586
- }[] | undefined>;
6587
- createdAtLocation: string;
6797
+ }[] | [string, string] | undefined>;
6798
+ assignedTo: null;
6799
+ createdAtLocation?: string | null | undefined;
6588
6800
  annotation?: Record<string, string | number | boolean | {
6589
6801
  type: string;
6590
6802
  filename: string;
@@ -6622,13 +6834,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6622
6834
  option: string;
6623
6835
  filename: string;
6624
6836
  originalFilename: string;
6625
- }[] | undefined> | undefined;
6837
+ }[] | [string, string] | undefined> | undefined;
6626
6838
  originalActionId?: string | undefined;
6627
6839
  }>, z.ZodObject<z.objectUtil.extendShape<{
6628
6840
  id: z.ZodString;
6841
+ transactionId: z.ZodString;
6629
6842
  createdAt: z.ZodString;
6630
6843
  createdBy: z.ZodString;
6631
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6844
+ createdByRole: z.ZodString;
6845
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6846
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6632
6847
  filename: z.ZodString;
6633
6848
  originalFilename: z.ZodString;
6634
6849
  type: z.ZodString;
@@ -6742,7 +6957,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6742
6957
  addressLine3?: string | null | undefined;
6743
6958
  postcodeOrZip?: string | null | undefined;
6744
6959
  }>]>>;
6745
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6960
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6746
6961
  filename: z.ZodString;
6747
6962
  originalFilename: z.ZodString;
6748
6963
  type: z.ZodString;
@@ -6856,7 +7071,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6856
7071
  addressLine3?: string | null | undefined;
6857
7072
  postcodeOrZip?: string | null | undefined;
6858
7073
  }>]>>>;
6859
- createdAtLocation: z.ZodString;
6860
7074
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6861
7075
  originalActionId: z.ZodOptional<z.ZodString>;
6862
7076
  }, {
@@ -6865,8 +7079,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6865
7079
  type: "PRINT_CERTIFICATE";
6866
7080
  id: string;
6867
7081
  status: "Rejected" | "Requested" | "Accepted";
7082
+ transactionId: string;
6868
7083
  createdAt: string;
6869
7084
  createdBy: string;
7085
+ createdByRole: string;
6870
7086
  declaration: Record<string, string | number | boolean | {
6871
7087
  type: string;
6872
7088
  filename: string;
@@ -6904,8 +7120,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6904
7120
  option: string;
6905
7121
  filename: string;
6906
7122
  originalFilename: string;
6907
- }[] | undefined>;
6908
- createdAtLocation: string;
7123
+ }[] | [string, string] | undefined>;
7124
+ createdAtLocation?: string | null | undefined;
6909
7125
  annotation?: Record<string, string | number | boolean | {
6910
7126
  type: string;
6911
7127
  filename: string;
@@ -6943,14 +7159,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6943
7159
  option: string;
6944
7160
  filename: string;
6945
7161
  originalFilename: string;
6946
- }[] | undefined> | undefined;
7162
+ }[] | [string, string] | undefined> | undefined;
6947
7163
  originalActionId?: string | undefined;
6948
7164
  }, {
6949
7165
  type: "PRINT_CERTIFICATE";
6950
7166
  id: string;
6951
7167
  status: "Rejected" | "Requested" | "Accepted";
7168
+ transactionId: string;
6952
7169
  createdAt: string;
6953
7170
  createdBy: string;
7171
+ createdByRole: string;
6954
7172
  declaration: Record<string, string | number | boolean | {
6955
7173
  type: string;
6956
7174
  filename: string;
@@ -6988,8 +7206,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6988
7206
  option: string;
6989
7207
  filename: string;
6990
7208
  originalFilename: string;
6991
- }[] | undefined>;
6992
- createdAtLocation: string;
7209
+ }[] | [string, string] | undefined>;
7210
+ createdAtLocation?: string | null | undefined;
6993
7211
  annotation?: Record<string, string | number | boolean | {
6994
7212
  type: string;
6995
7213
  filename: string;
@@ -7027,13 +7245,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7027
7245
  option: string;
7028
7246
  filename: string;
7029
7247
  originalFilename: string;
7030
- }[] | undefined> | undefined;
7248
+ }[] | [string, string] | undefined> | undefined;
7031
7249
  originalActionId?: string | undefined;
7032
7250
  }>, z.ZodObject<z.objectUtil.extendShape<{
7033
7251
  id: z.ZodString;
7252
+ transactionId: z.ZodString;
7034
7253
  createdAt: z.ZodString;
7035
7254
  createdBy: z.ZodString;
7036
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7255
+ createdByRole: z.ZodString;
7256
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7257
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7037
7258
  filename: z.ZodString;
7038
7259
  originalFilename: z.ZodString;
7039
7260
  type: z.ZodString;
@@ -7147,7 +7368,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7147
7368
  addressLine3?: string | null | undefined;
7148
7369
  postcodeOrZip?: string | null | undefined;
7149
7370
  }>]>>;
7150
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7371
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7151
7372
  filename: z.ZodString;
7152
7373
  originalFilename: z.ZodString;
7153
7374
  type: z.ZodString;
@@ -7261,7 +7482,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7261
7482
  addressLine3?: string | null | undefined;
7262
7483
  postcodeOrZip?: string | null | undefined;
7263
7484
  }>]>>>;
7264
- createdAtLocation: z.ZodString;
7265
7485
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7266
7486
  originalActionId: z.ZodOptional<z.ZodString>;
7267
7487
  }, {
@@ -7270,8 +7490,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7270
7490
  type: "READ";
7271
7491
  id: string;
7272
7492
  status: "Rejected" | "Requested" | "Accepted";
7493
+ transactionId: string;
7273
7494
  createdAt: string;
7274
7495
  createdBy: string;
7496
+ createdByRole: string;
7275
7497
  declaration: Record<string, string | number | boolean | {
7276
7498
  type: string;
7277
7499
  filename: string;
@@ -7309,8 +7531,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7309
7531
  option: string;
7310
7532
  filename: string;
7311
7533
  originalFilename: string;
7312
- }[] | undefined>;
7313
- createdAtLocation: string;
7534
+ }[] | [string, string] | undefined>;
7535
+ createdAtLocation?: string | null | undefined;
7314
7536
  annotation?: Record<string, string | number | boolean | {
7315
7537
  type: string;
7316
7538
  filename: string;
@@ -7348,14 +7570,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7348
7570
  option: string;
7349
7571
  filename: string;
7350
7572
  originalFilename: string;
7351
- }[] | undefined> | undefined;
7573
+ }[] | [string, string] | undefined> | undefined;
7352
7574
  originalActionId?: string | undefined;
7353
7575
  }, {
7354
7576
  type: "READ";
7355
7577
  id: string;
7356
7578
  status: "Rejected" | "Requested" | "Accepted";
7579
+ transactionId: string;
7357
7580
  createdAt: string;
7358
7581
  createdBy: string;
7582
+ createdByRole: string;
7359
7583
  declaration: Record<string, string | number | boolean | {
7360
7584
  type: string;
7361
7585
  filename: string;
@@ -7393,8 +7617,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7393
7617
  option: string;
7394
7618
  filename: string;
7395
7619
  originalFilename: string;
7396
- }[] | undefined>;
7397
- createdAtLocation: string;
7620
+ }[] | [string, string] | undefined>;
7621
+ createdAtLocation?: string | null | undefined;
7398
7622
  annotation?: Record<string, string | number | boolean | {
7399
7623
  type: string;
7400
7624
  filename: string;
@@ -7432,15 +7656,18 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7432
7656
  option: string;
7433
7657
  filename: string;
7434
7658
  originalFilename: string;
7435
- }[] | undefined> | undefined;
7659
+ }[] | [string, string] | undefined> | undefined;
7436
7660
  originalActionId?: string | undefined;
7437
7661
  }>]>;
7438
7662
  export type ActionDocument = z.infer<typeof ActionDocument>;
7439
7663
  export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendShape<Omit<{
7440
7664
  id: z.ZodString;
7665
+ transactionId: z.ZodString;
7441
7666
  createdAt: z.ZodString;
7442
7667
  createdBy: z.ZodString;
7443
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7668
+ createdByRole: z.ZodString;
7669
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7670
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7444
7671
  filename: z.ZodString;
7445
7672
  originalFilename: z.ZodString;
7446
7673
  type: z.ZodString;
@@ -7554,7 +7781,7 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
7554
7781
  addressLine3?: string | null | undefined;
7555
7782
  postcodeOrZip?: string | null | undefined;
7556
7783
  }>]>>;
7557
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7784
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7558
7785
  filename: z.ZodString;
7559
7786
  originalFilename: z.ZodString;
7560
7787
  type: z.ZodString;
@@ -7668,31 +7895,41 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
7668
7895
  addressLine3?: string | null | undefined;
7669
7896
  postcodeOrZip?: string | null | undefined;
7670
7897
  }>]>>>;
7671
- createdAtLocation: z.ZodString;
7672
7898
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7673
7899
  originalActionId: z.ZodOptional<z.ZodString>;
7674
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
7900
+ }, "declaration" | "annotation">, {
7675
7901
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
7676
7902
  status: z.ZodLiteral<"Rejected">;
7677
7903
  }>, "strip", z.ZodTypeAny, {
7678
7904
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7679
7905
  id: string;
7680
7906
  status: "Rejected";
7907
+ transactionId: string;
7681
7908
  createdAt: string;
7909
+ createdBy: string;
7910
+ createdByRole: string;
7911
+ createdAtLocation?: string | null | undefined;
7682
7912
  originalActionId?: string | undefined;
7683
7913
  }, {
7684
7914
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7685
7915
  id: string;
7686
7916
  status: "Rejected";
7917
+ transactionId: string;
7687
7918
  createdAt: string;
7919
+ createdBy: string;
7920
+ createdByRole: string;
7921
+ createdAtLocation?: string | null | undefined;
7688
7922
  originalActionId?: string | undefined;
7689
7923
  }>;
7690
7924
  export type AsyncRejectActionDocument = z.infer<typeof AsyncRejectActionDocument>;
7691
7925
  export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
7692
7926
  id: z.ZodString;
7927
+ transactionId: z.ZodString;
7693
7928
  createdAt: z.ZodString;
7694
7929
  createdBy: z.ZodString;
7695
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7930
+ createdByRole: z.ZodString;
7931
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7932
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7696
7933
  filename: z.ZodString;
7697
7934
  originalFilename: z.ZodString;
7698
7935
  type: z.ZodString;
@@ -7806,7 +8043,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7806
8043
  addressLine3?: string | null | undefined;
7807
8044
  postcodeOrZip?: string | null | undefined;
7808
8045
  }>]>>;
7809
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8046
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7810
8047
  filename: z.ZodString;
7811
8048
  originalFilename: z.ZodString;
7812
8049
  type: z.ZodString;
@@ -7920,7 +8157,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7920
8157
  addressLine3?: string | null | undefined;
7921
8158
  postcodeOrZip?: string | null | undefined;
7922
8159
  }>]>>>;
7923
- createdAtLocation: z.ZodString;
7924
8160
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7925
8161
  originalActionId: z.ZodOptional<z.ZodString>;
7926
8162
  }, {
@@ -7929,8 +8165,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7929
8165
  type: "CREATE";
7930
8166
  id: string;
7931
8167
  status: "Rejected" | "Requested" | "Accepted";
8168
+ transactionId: string;
7932
8169
  createdAt: string;
7933
8170
  createdBy: string;
8171
+ createdByRole: string;
7934
8172
  declaration: Record<string, string | number | boolean | {
7935
8173
  type: string;
7936
8174
  filename: string;
@@ -7968,8 +8206,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7968
8206
  option: string;
7969
8207
  filename: string;
7970
8208
  originalFilename: string;
7971
- }[] | undefined>;
7972
- createdAtLocation: string;
8209
+ }[] | [string, string] | undefined>;
8210
+ createdAtLocation?: string | null | undefined;
7973
8211
  annotation?: Record<string, string | number | boolean | {
7974
8212
  type: string;
7975
8213
  filename: string;
@@ -8007,14 +8245,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8007
8245
  option: string;
8008
8246
  filename: string;
8009
8247
  originalFilename: string;
8010
- }[] | undefined> | undefined;
8248
+ }[] | [string, string] | undefined> | undefined;
8011
8249
  originalActionId?: string | undefined;
8012
8250
  }, {
8013
8251
  type: "CREATE";
8014
8252
  id: string;
8015
8253
  status: "Rejected" | "Requested" | "Accepted";
8254
+ transactionId: string;
8016
8255
  createdAt: string;
8017
8256
  createdBy: string;
8257
+ createdByRole: string;
8018
8258
  declaration: Record<string, string | number | boolean | {
8019
8259
  type: string;
8020
8260
  filename: string;
@@ -8052,8 +8292,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8052
8292
  option: string;
8053
8293
  filename: string;
8054
8294
  originalFilename: string;
8055
- }[] | undefined>;
8056
- createdAtLocation: string;
8295
+ }[] | [string, string] | undefined>;
8296
+ createdAtLocation?: string | null | undefined;
8057
8297
  annotation?: Record<string, string | number | boolean | {
8058
8298
  type: string;
8059
8299
  filename: string;
@@ -8091,13 +8331,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8091
8331
  option: string;
8092
8332
  filename: string;
8093
8333
  originalFilename: string;
8094
- }[] | undefined> | undefined;
8334
+ }[] | [string, string] | undefined> | undefined;
8095
8335
  originalActionId?: string | undefined;
8096
8336
  }>, z.ZodObject<z.objectUtil.extendShape<{
8097
8337
  id: z.ZodString;
8338
+ transactionId: z.ZodString;
8098
8339
  createdAt: z.ZodString;
8099
8340
  createdBy: z.ZodString;
8100
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8341
+ createdByRole: z.ZodString;
8342
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8343
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8101
8344
  filename: z.ZodString;
8102
8345
  originalFilename: z.ZodString;
8103
8346
  type: z.ZodString;
@@ -8211,7 +8454,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8211
8454
  addressLine3?: string | null | undefined;
8212
8455
  postcodeOrZip?: string | null | undefined;
8213
8456
  }>]>>;
8214
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8457
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8215
8458
  filename: z.ZodString;
8216
8459
  originalFilename: z.ZodString;
8217
8460
  type: z.ZodString;
@@ -8325,7 +8568,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8325
8568
  addressLine3?: string | null | undefined;
8326
8569
  postcodeOrZip?: string | null | undefined;
8327
8570
  }>]>>>;
8328
- createdAtLocation: z.ZodString;
8329
8571
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
8330
8572
  originalActionId: z.ZodOptional<z.ZodString>;
8331
8573
  }, {
@@ -8334,8 +8576,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8334
8576
  type: "VALIDATE";
8335
8577
  id: string;
8336
8578
  status: "Rejected" | "Requested" | "Accepted";
8579
+ transactionId: string;
8337
8580
  createdAt: string;
8338
8581
  createdBy: string;
8582
+ createdByRole: string;
8339
8583
  declaration: Record<string, string | number | boolean | {
8340
8584
  type: string;
8341
8585
  filename: string;
@@ -8373,8 +8617,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8373
8617
  option: string;
8374
8618
  filename: string;
8375
8619
  originalFilename: string;
8376
- }[] | undefined>;
8377
- createdAtLocation: string;
8620
+ }[] | [string, string] | undefined>;
8621
+ createdAtLocation?: string | null | undefined;
8378
8622
  annotation?: Record<string, string | number | boolean | {
8379
8623
  type: string;
8380
8624
  filename: string;
@@ -8412,14 +8656,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8412
8656
  option: string;
8413
8657
  filename: string;
8414
8658
  originalFilename: string;
8415
- }[] | undefined> | undefined;
8659
+ }[] | [string, string] | undefined> | undefined;
8416
8660
  originalActionId?: string | undefined;
8417
8661
  }, {
8418
8662
  type: "VALIDATE";
8419
8663
  id: string;
8420
8664
  status: "Rejected" | "Requested" | "Accepted";
8665
+ transactionId: string;
8421
8666
  createdAt: string;
8422
8667
  createdBy: string;
8668
+ createdByRole: string;
8423
8669
  declaration: Record<string, string | number | boolean | {
8424
8670
  type: string;
8425
8671
  filename: string;
@@ -8457,8 +8703,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8457
8703
  option: string;
8458
8704
  filename: string;
8459
8705
  originalFilename: string;
8460
- }[] | undefined>;
8461
- createdAtLocation: string;
8706
+ }[] | [string, string] | undefined>;
8707
+ createdAtLocation?: string | null | undefined;
8462
8708
  annotation?: Record<string, string | number | boolean | {
8463
8709
  type: string;
8464
8710
  filename: string;
@@ -8496,13 +8742,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8496
8742
  option: string;
8497
8743
  filename: string;
8498
8744
  originalFilename: string;
8499
- }[] | undefined> | undefined;
8745
+ }[] | [string, string] | undefined> | undefined;
8500
8746
  originalActionId?: string | undefined;
8501
8747
  }>, z.ZodObject<z.objectUtil.extendShape<{
8502
8748
  id: z.ZodString;
8749
+ transactionId: z.ZodString;
8503
8750
  createdAt: z.ZodString;
8504
8751
  createdBy: z.ZodString;
8505
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8752
+ createdByRole: z.ZodString;
8753
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8754
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8506
8755
  filename: z.ZodString;
8507
8756
  originalFilename: z.ZodString;
8508
8757
  type: z.ZodString;
@@ -8616,7 +8865,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8616
8865
  addressLine3?: string | null | undefined;
8617
8866
  postcodeOrZip?: string | null | undefined;
8618
8867
  }>]>>;
8619
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8868
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8620
8869
  filename: z.ZodString;
8621
8870
  originalFilename: z.ZodString;
8622
8871
  type: z.ZodString;
@@ -8730,7 +8979,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8730
8979
  addressLine3?: string | null | undefined;
8731
8980
  postcodeOrZip?: string | null | undefined;
8732
8981
  }>]>>>;
8733
- createdAtLocation: z.ZodString;
8734
8982
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
8735
8983
  originalActionId: z.ZodOptional<z.ZodString>;
8736
8984
  }, {
@@ -8739,8 +8987,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8739
8987
  type: "REJECT";
8740
8988
  id: string;
8741
8989
  status: "Rejected" | "Requested" | "Accepted";
8990
+ transactionId: string;
8742
8991
  createdAt: string;
8743
8992
  createdBy: string;
8993
+ createdByRole: string;
8744
8994
  declaration: Record<string, string | number | boolean | {
8745
8995
  type: string;
8746
8996
  filename: string;
@@ -8778,8 +9028,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8778
9028
  option: string;
8779
9029
  filename: string;
8780
9030
  originalFilename: string;
8781
- }[] | undefined>;
8782
- createdAtLocation: string;
9031
+ }[] | [string, string] | undefined>;
9032
+ createdAtLocation?: string | null | undefined;
8783
9033
  annotation?: Record<string, string | number | boolean | {
8784
9034
  type: string;
8785
9035
  filename: string;
@@ -8817,14 +9067,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8817
9067
  option: string;
8818
9068
  filename: string;
8819
9069
  originalFilename: string;
8820
- }[] | undefined> | undefined;
9070
+ }[] | [string, string] | undefined> | undefined;
8821
9071
  originalActionId?: string | undefined;
8822
9072
  }, {
8823
9073
  type: "REJECT";
8824
9074
  id: string;
8825
9075
  status: "Rejected" | "Requested" | "Accepted";
9076
+ transactionId: string;
8826
9077
  createdAt: string;
8827
9078
  createdBy: string;
9079
+ createdByRole: string;
8828
9080
  declaration: Record<string, string | number | boolean | {
8829
9081
  type: string;
8830
9082
  filename: string;
@@ -8862,8 +9114,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8862
9114
  option: string;
8863
9115
  filename: string;
8864
9116
  originalFilename: string;
8865
- }[] | undefined>;
8866
- createdAtLocation: string;
9117
+ }[] | [string, string] | undefined>;
9118
+ createdAtLocation?: string | null | undefined;
8867
9119
  annotation?: Record<string, string | number | boolean | {
8868
9120
  type: string;
8869
9121
  filename: string;
@@ -8901,13 +9153,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8901
9153
  option: string;
8902
9154
  filename: string;
8903
9155
  originalFilename: string;
8904
- }[] | undefined> | undefined;
9156
+ }[] | [string, string] | undefined> | undefined;
8905
9157
  originalActionId?: string | undefined;
8906
9158
  }>, z.ZodObject<z.objectUtil.extendShape<{
8907
9159
  id: z.ZodString;
9160
+ transactionId: z.ZodString;
8908
9161
  createdAt: z.ZodString;
8909
9162
  createdBy: z.ZodString;
8910
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9163
+ createdByRole: z.ZodString;
9164
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9165
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8911
9166
  filename: z.ZodString;
8912
9167
  originalFilename: z.ZodString;
8913
9168
  type: z.ZodString;
@@ -9021,7 +9276,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9021
9276
  addressLine3?: string | null | undefined;
9022
9277
  postcodeOrZip?: string | null | undefined;
9023
9278
  }>]>>;
9024
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9279
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9025
9280
  filename: z.ZodString;
9026
9281
  originalFilename: z.ZodString;
9027
9282
  type: z.ZodString;
@@ -9135,7 +9390,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9135
9390
  addressLine3?: string | null | undefined;
9136
9391
  postcodeOrZip?: string | null | undefined;
9137
9392
  }>]>>>;
9138
- createdAtLocation: z.ZodString;
9139
9393
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9140
9394
  originalActionId: z.ZodOptional<z.ZodString>;
9141
9395
  }, {
@@ -9144,8 +9398,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9144
9398
  type: "MARKED_AS_DUPLICATE";
9145
9399
  id: string;
9146
9400
  status: "Rejected" | "Requested" | "Accepted";
9401
+ transactionId: string;
9147
9402
  createdAt: string;
9148
9403
  createdBy: string;
9404
+ createdByRole: string;
9149
9405
  declaration: Record<string, string | number | boolean | {
9150
9406
  type: string;
9151
9407
  filename: string;
@@ -9183,8 +9439,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9183
9439
  option: string;
9184
9440
  filename: string;
9185
9441
  originalFilename: string;
9186
- }[] | undefined>;
9187
- createdAtLocation: string;
9442
+ }[] | [string, string] | undefined>;
9443
+ createdAtLocation?: string | null | undefined;
9188
9444
  annotation?: Record<string, string | number | boolean | {
9189
9445
  type: string;
9190
9446
  filename: string;
@@ -9222,14 +9478,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9222
9478
  option: string;
9223
9479
  filename: string;
9224
9480
  originalFilename: string;
9225
- }[] | undefined> | undefined;
9481
+ }[] | [string, string] | undefined> | undefined;
9226
9482
  originalActionId?: string | undefined;
9227
9483
  }, {
9228
9484
  type: "MARKED_AS_DUPLICATE";
9229
9485
  id: string;
9230
9486
  status: "Rejected" | "Requested" | "Accepted";
9487
+ transactionId: string;
9231
9488
  createdAt: string;
9232
9489
  createdBy: string;
9490
+ createdByRole: string;
9233
9491
  declaration: Record<string, string | number | boolean | {
9234
9492
  type: string;
9235
9493
  filename: string;
@@ -9267,8 +9525,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9267
9525
  option: string;
9268
9526
  filename: string;
9269
9527
  originalFilename: string;
9270
- }[] | undefined>;
9271
- createdAtLocation: string;
9528
+ }[] | [string, string] | undefined>;
9529
+ createdAtLocation?: string | null | undefined;
9272
9530
  annotation?: Record<string, string | number | boolean | {
9273
9531
  type: string;
9274
9532
  filename: string;
@@ -9306,13 +9564,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9306
9564
  option: string;
9307
9565
  filename: string;
9308
9566
  originalFilename: string;
9309
- }[] | undefined> | undefined;
9567
+ }[] | [string, string] | undefined> | undefined;
9310
9568
  originalActionId?: string | undefined;
9311
9569
  }>, z.ZodObject<z.objectUtil.extendShape<{
9312
9570
  id: z.ZodString;
9571
+ transactionId: z.ZodString;
9313
9572
  createdAt: z.ZodString;
9314
9573
  createdBy: z.ZodString;
9315
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9574
+ createdByRole: z.ZodString;
9575
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9576
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9316
9577
  filename: z.ZodString;
9317
9578
  originalFilename: z.ZodString;
9318
9579
  type: z.ZodString;
@@ -9426,7 +9687,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9426
9687
  addressLine3?: string | null | undefined;
9427
9688
  postcodeOrZip?: string | null | undefined;
9428
9689
  }>]>>;
9429
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9690
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9430
9691
  filename: z.ZodString;
9431
9692
  originalFilename: z.ZodString;
9432
9693
  type: z.ZodString;
@@ -9540,7 +9801,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9540
9801
  addressLine3?: string | null | undefined;
9541
9802
  postcodeOrZip?: string | null | undefined;
9542
9803
  }>]>>>;
9543
- createdAtLocation: z.ZodString;
9544
9804
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9545
9805
  originalActionId: z.ZodOptional<z.ZodString>;
9546
9806
  }, {
@@ -9549,8 +9809,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9549
9809
  type: "ARCHIVE";
9550
9810
  id: string;
9551
9811
  status: "Rejected" | "Requested" | "Accepted";
9812
+ transactionId: string;
9552
9813
  createdAt: string;
9553
9814
  createdBy: string;
9815
+ createdByRole: string;
9554
9816
  declaration: Record<string, string | number | boolean | {
9555
9817
  type: string;
9556
9818
  filename: string;
@@ -9588,8 +9850,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9588
9850
  option: string;
9589
9851
  filename: string;
9590
9852
  originalFilename: string;
9591
- }[] | undefined>;
9592
- createdAtLocation: string;
9853
+ }[] | [string, string] | undefined>;
9854
+ createdAtLocation?: string | null | undefined;
9593
9855
  annotation?: Record<string, string | number | boolean | {
9594
9856
  type: string;
9595
9857
  filename: string;
@@ -9627,14 +9889,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9627
9889
  option: string;
9628
9890
  filename: string;
9629
9891
  originalFilename: string;
9630
- }[] | undefined> | undefined;
9892
+ }[] | [string, string] | undefined> | undefined;
9631
9893
  originalActionId?: string | undefined;
9632
9894
  }, {
9633
9895
  type: "ARCHIVE";
9634
9896
  id: string;
9635
9897
  status: "Rejected" | "Requested" | "Accepted";
9898
+ transactionId: string;
9636
9899
  createdAt: string;
9637
9900
  createdBy: string;
9901
+ createdByRole: string;
9638
9902
  declaration: Record<string, string | number | boolean | {
9639
9903
  type: string;
9640
9904
  filename: string;
@@ -9672,8 +9936,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9672
9936
  option: string;
9673
9937
  filename: string;
9674
9938
  originalFilename: string;
9675
- }[] | undefined>;
9676
- createdAtLocation: string;
9939
+ }[] | [string, string] | undefined>;
9940
+ createdAtLocation?: string | null | undefined;
9677
9941
  annotation?: Record<string, string | number | boolean | {
9678
9942
  type: string;
9679
9943
  filename: string;
@@ -9711,13 +9975,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9711
9975
  option: string;
9712
9976
  filename: string;
9713
9977
  originalFilename: string;
9714
- }[] | undefined> | undefined;
9978
+ }[] | [string, string] | undefined> | undefined;
9715
9979
  originalActionId?: string | undefined;
9716
9980
  }>, z.ZodObject<z.objectUtil.extendShape<{
9717
9981
  id: z.ZodString;
9982
+ transactionId: z.ZodString;
9718
9983
  createdAt: z.ZodString;
9719
9984
  createdBy: z.ZodString;
9720
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9985
+ createdByRole: z.ZodString;
9986
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9987
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9721
9988
  filename: z.ZodString;
9722
9989
  originalFilename: z.ZodString;
9723
9990
  type: z.ZodString;
@@ -9831,7 +10098,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9831
10098
  addressLine3?: string | null | undefined;
9832
10099
  postcodeOrZip?: string | null | undefined;
9833
10100
  }>]>>;
9834
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10101
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9835
10102
  filename: z.ZodString;
9836
10103
  originalFilename: z.ZodString;
9837
10104
  type: z.ZodString;
@@ -9945,7 +10212,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9945
10212
  addressLine3?: string | null | undefined;
9946
10213
  postcodeOrZip?: string | null | undefined;
9947
10214
  }>]>>>;
9948
- createdAtLocation: z.ZodString;
9949
10215
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9950
10216
  originalActionId: z.ZodOptional<z.ZodString>;
9951
10217
  }, {
@@ -9954,8 +10220,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9954
10220
  type: "NOTIFY";
9955
10221
  id: string;
9956
10222
  status: "Rejected" | "Requested" | "Accepted";
10223
+ transactionId: string;
9957
10224
  createdAt: string;
9958
10225
  createdBy: string;
10226
+ createdByRole: string;
9959
10227
  declaration: Record<string, string | number | boolean | {
9960
10228
  type: string;
9961
10229
  filename: string;
@@ -9993,8 +10261,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9993
10261
  option: string;
9994
10262
  filename: string;
9995
10263
  originalFilename: string;
9996
- }[] | undefined>;
9997
- createdAtLocation: string;
10264
+ }[] | [string, string] | undefined>;
10265
+ createdAtLocation?: string | null | undefined;
9998
10266
  annotation?: Record<string, string | number | boolean | {
9999
10267
  type: string;
10000
10268
  filename: string;
@@ -10032,14 +10300,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10032
10300
  option: string;
10033
10301
  filename: string;
10034
10302
  originalFilename: string;
10035
- }[] | undefined> | undefined;
10303
+ }[] | [string, string] | undefined> | undefined;
10036
10304
  originalActionId?: string | undefined;
10037
10305
  }, {
10038
10306
  type: "NOTIFY";
10039
10307
  id: string;
10040
10308
  status: "Rejected" | "Requested" | "Accepted";
10309
+ transactionId: string;
10041
10310
  createdAt: string;
10042
10311
  createdBy: string;
10312
+ createdByRole: string;
10043
10313
  declaration: Record<string, string | number | boolean | {
10044
10314
  type: string;
10045
10315
  filename: string;
@@ -10077,8 +10347,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10077
10347
  option: string;
10078
10348
  filename: string;
10079
10349
  originalFilename: string;
10080
- }[] | undefined>;
10081
- createdAtLocation: string;
10350
+ }[] | [string, string] | undefined>;
10351
+ createdAtLocation?: string | null | undefined;
10082
10352
  annotation?: Record<string, string | number | boolean | {
10083
10353
  type: string;
10084
10354
  filename: string;
@@ -10116,13 +10386,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10116
10386
  option: string;
10117
10387
  filename: string;
10118
10388
  originalFilename: string;
10119
- }[] | undefined> | undefined;
10389
+ }[] | [string, string] | undefined> | undefined;
10120
10390
  originalActionId?: string | undefined;
10121
10391
  }>, z.ZodObject<z.objectUtil.extendShape<{
10122
10392
  id: z.ZodString;
10393
+ transactionId: z.ZodString;
10123
10394
  createdAt: z.ZodString;
10124
10395
  createdBy: z.ZodString;
10125
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10396
+ createdByRole: z.ZodString;
10397
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10398
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10126
10399
  filename: z.ZodString;
10127
10400
  originalFilename: z.ZodString;
10128
10401
  type: z.ZodString;
@@ -10236,7 +10509,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10236
10509
  addressLine3?: string | null | undefined;
10237
10510
  postcodeOrZip?: string | null | undefined;
10238
10511
  }>]>>;
10239
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10512
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10240
10513
  filename: z.ZodString;
10241
10514
  originalFilename: z.ZodString;
10242
10515
  type: z.ZodString;
@@ -10350,7 +10623,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10350
10623
  addressLine3?: string | null | undefined;
10351
10624
  postcodeOrZip?: string | null | undefined;
10352
10625
  }>]>>>;
10353
- createdAtLocation: z.ZodString;
10354
10626
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
10355
10627
  originalActionId: z.ZodOptional<z.ZodString>;
10356
10628
  }, {
@@ -10360,8 +10632,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10360
10632
  type: "REGISTER";
10361
10633
  id: string;
10362
10634
  status: "Rejected" | "Requested" | "Accepted";
10635
+ transactionId: string;
10363
10636
  createdAt: string;
10364
10637
  createdBy: string;
10638
+ createdByRole: string;
10365
10639
  declaration: Record<string, string | number | boolean | {
10366
10640
  type: string;
10367
10641
  filename: string;
@@ -10399,8 +10673,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10399
10673
  option: string;
10400
10674
  filename: string;
10401
10675
  originalFilename: string;
10402
- }[] | undefined>;
10403
- createdAtLocation: string;
10676
+ }[] | [string, string] | undefined>;
10677
+ createdAtLocation?: string | null | undefined;
10404
10678
  annotation?: Record<string, string | number | boolean | {
10405
10679
  type: string;
10406
10680
  filename: string;
@@ -10438,15 +10712,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10438
10712
  option: string;
10439
10713
  filename: string;
10440
10714
  originalFilename: string;
10441
- }[] | undefined> | undefined;
10715
+ }[] | [string, string] | undefined> | undefined;
10442
10716
  originalActionId?: string | undefined;
10443
10717
  registrationNumber?: string | undefined;
10444
10718
  }, {
10445
10719
  type: "REGISTER";
10446
10720
  id: string;
10447
10721
  status: "Rejected" | "Requested" | "Accepted";
10722
+ transactionId: string;
10448
10723
  createdAt: string;
10449
10724
  createdBy: string;
10725
+ createdByRole: string;
10450
10726
  declaration: Record<string, string | number | boolean | {
10451
10727
  type: string;
10452
10728
  filename: string;
@@ -10484,8 +10760,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10484
10760
  option: string;
10485
10761
  filename: string;
10486
10762
  originalFilename: string;
10487
- }[] | undefined>;
10488
- createdAtLocation: string;
10763
+ }[] | [string, string] | undefined>;
10764
+ createdAtLocation?: string | null | undefined;
10489
10765
  annotation?: Record<string, string | number | boolean | {
10490
10766
  type: string;
10491
10767
  filename: string;
@@ -10523,14 +10799,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10523
10799
  option: string;
10524
10800
  filename: string;
10525
10801
  originalFilename: string;
10526
- }[] | undefined> | undefined;
10802
+ }[] | [string, string] | undefined> | undefined;
10527
10803
  originalActionId?: string | undefined;
10528
10804
  registrationNumber?: string | undefined;
10529
10805
  }>, z.ZodObject<z.objectUtil.extendShape<{
10530
10806
  id: z.ZodString;
10807
+ transactionId: z.ZodString;
10531
10808
  createdAt: z.ZodString;
10532
10809
  createdBy: z.ZodString;
10533
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10810
+ createdByRole: z.ZodString;
10811
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10812
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10534
10813
  filename: z.ZodString;
10535
10814
  originalFilename: z.ZodString;
10536
10815
  type: z.ZodString;
@@ -10644,7 +10923,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10644
10923
  addressLine3?: string | null | undefined;
10645
10924
  postcodeOrZip?: string | null | undefined;
10646
10925
  }>]>>;
10647
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10926
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10648
10927
  filename: z.ZodString;
10649
10928
  originalFilename: z.ZodString;
10650
10929
  type: z.ZodString;
@@ -10758,7 +11037,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10758
11037
  addressLine3?: string | null | undefined;
10759
11038
  postcodeOrZip?: string | null | undefined;
10760
11039
  }>]>>>;
10761
- createdAtLocation: z.ZodString;
10762
11040
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
10763
11041
  originalActionId: z.ZodOptional<z.ZodString>;
10764
11042
  }, {
@@ -10767,8 +11045,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10767
11045
  type: "DECLARE";
10768
11046
  id: string;
10769
11047
  status: "Rejected" | "Requested" | "Accepted";
11048
+ transactionId: string;
10770
11049
  createdAt: string;
10771
11050
  createdBy: string;
11051
+ createdByRole: string;
10772
11052
  declaration: Record<string, string | number | boolean | {
10773
11053
  type: string;
10774
11054
  filename: string;
@@ -10806,8 +11086,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10806
11086
  option: string;
10807
11087
  filename: string;
10808
11088
  originalFilename: string;
10809
- }[] | undefined>;
10810
- createdAtLocation: string;
11089
+ }[] | [string, string] | undefined>;
11090
+ createdAtLocation?: string | null | undefined;
10811
11091
  annotation?: Record<string, string | number | boolean | {
10812
11092
  type: string;
10813
11093
  filename: string;
@@ -10845,14 +11125,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10845
11125
  option: string;
10846
11126
  filename: string;
10847
11127
  originalFilename: string;
10848
- }[] | undefined> | undefined;
11128
+ }[] | [string, string] | undefined> | undefined;
10849
11129
  originalActionId?: string | undefined;
10850
11130
  }, {
10851
11131
  type: "DECLARE";
10852
11132
  id: string;
10853
11133
  status: "Rejected" | "Requested" | "Accepted";
11134
+ transactionId: string;
10854
11135
  createdAt: string;
10855
11136
  createdBy: string;
11137
+ createdByRole: string;
10856
11138
  declaration: Record<string, string | number | boolean | {
10857
11139
  type: string;
10858
11140
  filename: string;
@@ -10890,8 +11172,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10890
11172
  option: string;
10891
11173
  filename: string;
10892
11174
  originalFilename: string;
10893
- }[] | undefined>;
10894
- createdAtLocation: string;
11175
+ }[] | [string, string] | undefined>;
11176
+ createdAtLocation?: string | null | undefined;
10895
11177
  annotation?: Record<string, string | number | boolean | {
10896
11178
  type: string;
10897
11179
  filename: string;
@@ -10929,13 +11211,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10929
11211
  option: string;
10930
11212
  filename: string;
10931
11213
  originalFilename: string;
10932
- }[] | undefined> | undefined;
11214
+ }[] | [string, string] | undefined> | undefined;
10933
11215
  originalActionId?: string | undefined;
10934
11216
  }>, z.ZodObject<z.objectUtil.extendShape<{
10935
11217
  id: z.ZodString;
11218
+ transactionId: z.ZodString;
10936
11219
  createdAt: z.ZodString;
10937
11220
  createdBy: z.ZodString;
10938
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11221
+ createdByRole: z.ZodString;
11222
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11223
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10939
11224
  filename: z.ZodString;
10940
11225
  originalFilename: z.ZodString;
10941
11226
  type: z.ZodString;
@@ -11049,7 +11334,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11049
11334
  addressLine3?: string | null | undefined;
11050
11335
  postcodeOrZip?: string | null | undefined;
11051
11336
  }>]>>;
11052
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11337
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11053
11338
  filename: z.ZodString;
11054
11339
  originalFilename: z.ZodString;
11055
11340
  type: z.ZodString;
@@ -11163,7 +11448,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11163
11448
  addressLine3?: string | null | undefined;
11164
11449
  postcodeOrZip?: string | null | undefined;
11165
11450
  }>]>>>;
11166
- createdAtLocation: z.ZodString;
11167
11451
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11168
11452
  originalActionId: z.ZodOptional<z.ZodString>;
11169
11453
  }, {
@@ -11173,8 +11457,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11173
11457
  type: "ASSIGN";
11174
11458
  id: string;
11175
11459
  status: "Rejected" | "Requested" | "Accepted";
11460
+ transactionId: string;
11176
11461
  createdAt: string;
11177
11462
  createdBy: string;
11463
+ createdByRole: string;
11178
11464
  declaration: Record<string, string | number | boolean | {
11179
11465
  type: string;
11180
11466
  filename: string;
@@ -11212,9 +11498,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11212
11498
  option: string;
11213
11499
  filename: string;
11214
11500
  originalFilename: string;
11215
- }[] | undefined>;
11216
- createdAtLocation: string;
11501
+ }[] | [string, string] | undefined>;
11217
11502
  assignedTo: string;
11503
+ createdAtLocation?: string | null | undefined;
11218
11504
  annotation?: Record<string, string | number | boolean | {
11219
11505
  type: string;
11220
11506
  filename: string;
@@ -11252,14 +11538,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11252
11538
  option: string;
11253
11539
  filename: string;
11254
11540
  originalFilename: string;
11255
- }[] | undefined> | undefined;
11541
+ }[] | [string, string] | undefined> | undefined;
11256
11542
  originalActionId?: string | undefined;
11257
11543
  }, {
11258
11544
  type: "ASSIGN";
11259
11545
  id: string;
11260
11546
  status: "Rejected" | "Requested" | "Accepted";
11547
+ transactionId: string;
11261
11548
  createdAt: string;
11262
11549
  createdBy: string;
11550
+ createdByRole: string;
11263
11551
  declaration: Record<string, string | number | boolean | {
11264
11552
  type: string;
11265
11553
  filename: string;
@@ -11297,9 +11585,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11297
11585
  option: string;
11298
11586
  filename: string;
11299
11587
  originalFilename: string;
11300
- }[] | undefined>;
11301
- createdAtLocation: string;
11588
+ }[] | [string, string] | undefined>;
11302
11589
  assignedTo: string;
11590
+ createdAtLocation?: string | null | undefined;
11303
11591
  annotation?: Record<string, string | number | boolean | {
11304
11592
  type: string;
11305
11593
  filename: string;
@@ -11337,13 +11625,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11337
11625
  option: string;
11338
11626
  filename: string;
11339
11627
  originalFilename: string;
11340
- }[] | undefined> | undefined;
11628
+ }[] | [string, string] | undefined> | undefined;
11341
11629
  originalActionId?: string | undefined;
11342
11630
  }>, z.ZodObject<z.objectUtil.extendShape<{
11343
11631
  id: z.ZodString;
11632
+ transactionId: z.ZodString;
11344
11633
  createdAt: z.ZodString;
11345
11634
  createdBy: z.ZodString;
11346
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11635
+ createdByRole: z.ZodString;
11636
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11637
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11347
11638
  filename: z.ZodString;
11348
11639
  originalFilename: z.ZodString;
11349
11640
  type: z.ZodString;
@@ -11457,7 +11748,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11457
11748
  addressLine3?: string | null | undefined;
11458
11749
  postcodeOrZip?: string | null | undefined;
11459
11750
  }>]>>;
11460
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11751
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11461
11752
  filename: z.ZodString;
11462
11753
  originalFilename: z.ZodString;
11463
11754
  type: z.ZodString;
@@ -11571,7 +11862,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11571
11862
  addressLine3?: string | null | undefined;
11572
11863
  postcodeOrZip?: string | null | undefined;
11573
11864
  }>]>>>;
11574
- createdAtLocation: z.ZodString;
11575
11865
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11576
11866
  originalActionId: z.ZodOptional<z.ZodString>;
11577
11867
  }, {
@@ -11580,8 +11870,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11580
11870
  type: "REQUEST_CORRECTION";
11581
11871
  id: string;
11582
11872
  status: "Rejected" | "Requested" | "Accepted";
11873
+ transactionId: string;
11583
11874
  createdAt: string;
11584
11875
  createdBy: string;
11876
+ createdByRole: string;
11585
11877
  declaration: Record<string, string | number | boolean | {
11586
11878
  type: string;
11587
11879
  filename: string;
@@ -11619,8 +11911,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11619
11911
  option: string;
11620
11912
  filename: string;
11621
11913
  originalFilename: string;
11622
- }[] | undefined>;
11623
- createdAtLocation: string;
11914
+ }[] | [string, string] | undefined>;
11915
+ createdAtLocation?: string | null | undefined;
11624
11916
  annotation?: Record<string, string | number | boolean | {
11625
11917
  type: string;
11626
11918
  filename: string;
@@ -11658,14 +11950,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11658
11950
  option: string;
11659
11951
  filename: string;
11660
11952
  originalFilename: string;
11661
- }[] | undefined> | undefined;
11953
+ }[] | [string, string] | undefined> | undefined;
11662
11954
  originalActionId?: string | undefined;
11663
11955
  }, {
11664
11956
  type: "REQUEST_CORRECTION";
11665
11957
  id: string;
11666
11958
  status: "Rejected" | "Requested" | "Accepted";
11959
+ transactionId: string;
11667
11960
  createdAt: string;
11668
11961
  createdBy: string;
11962
+ createdByRole: string;
11669
11963
  declaration: Record<string, string | number | boolean | {
11670
11964
  type: string;
11671
11965
  filename: string;
@@ -11703,8 +11997,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11703
11997
  option: string;
11704
11998
  filename: string;
11705
11999
  originalFilename: string;
11706
- }[] | undefined>;
11707
- createdAtLocation: string;
12000
+ }[] | [string, string] | undefined>;
12001
+ createdAtLocation?: string | null | undefined;
11708
12002
  annotation?: Record<string, string | number | boolean | {
11709
12003
  type: string;
11710
12004
  filename: string;
@@ -11742,13 +12036,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11742
12036
  option: string;
11743
12037
  filename: string;
11744
12038
  originalFilename: string;
11745
- }[] | undefined> | undefined;
12039
+ }[] | [string, string] | undefined> | undefined;
11746
12040
  originalActionId?: string | undefined;
11747
12041
  }>, z.ZodObject<z.objectUtil.extendShape<{
11748
12042
  id: z.ZodString;
12043
+ transactionId: z.ZodString;
11749
12044
  createdAt: z.ZodString;
11750
12045
  createdBy: z.ZodString;
11751
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12046
+ createdByRole: z.ZodString;
12047
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12048
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11752
12049
  filename: z.ZodString;
11753
12050
  originalFilename: z.ZodString;
11754
12051
  type: z.ZodString;
@@ -11862,7 +12159,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11862
12159
  addressLine3?: string | null | undefined;
11863
12160
  postcodeOrZip?: string | null | undefined;
11864
12161
  }>]>>;
11865
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12162
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11866
12163
  filename: z.ZodString;
11867
12164
  originalFilename: z.ZodString;
11868
12165
  type: z.ZodString;
@@ -11976,7 +12273,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11976
12273
  addressLine3?: string | null | undefined;
11977
12274
  postcodeOrZip?: string | null | undefined;
11978
12275
  }>]>>>;
11979
- createdAtLocation: z.ZodString;
11980
12276
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11981
12277
  originalActionId: z.ZodOptional<z.ZodString>;
11982
12278
  }, {
@@ -11986,8 +12282,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11986
12282
  type: "APPROVE_CORRECTION";
11987
12283
  id: string;
11988
12284
  status: "Rejected" | "Requested" | "Accepted";
12285
+ transactionId: string;
11989
12286
  createdAt: string;
11990
12287
  createdBy: string;
12288
+ createdByRole: string;
11991
12289
  declaration: Record<string, string | number | boolean | {
11992
12290
  type: string;
11993
12291
  filename: string;
@@ -12025,9 +12323,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12025
12323
  option: string;
12026
12324
  filename: string;
12027
12325
  originalFilename: string;
12028
- }[] | undefined>;
12029
- createdAtLocation: string;
12326
+ }[] | [string, string] | undefined>;
12030
12327
  requestId: string;
12328
+ createdAtLocation?: string | null | undefined;
12031
12329
  annotation?: Record<string, string | number | boolean | {
12032
12330
  type: string;
12033
12331
  filename: string;
@@ -12065,14 +12363,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12065
12363
  option: string;
12066
12364
  filename: string;
12067
12365
  originalFilename: string;
12068
- }[] | undefined> | undefined;
12366
+ }[] | [string, string] | undefined> | undefined;
12069
12367
  originalActionId?: string | undefined;
12070
12368
  }, {
12071
12369
  type: "APPROVE_CORRECTION";
12072
12370
  id: string;
12073
12371
  status: "Rejected" | "Requested" | "Accepted";
12372
+ transactionId: string;
12074
12373
  createdAt: string;
12075
12374
  createdBy: string;
12375
+ createdByRole: string;
12076
12376
  declaration: Record<string, string | number | boolean | {
12077
12377
  type: string;
12078
12378
  filename: string;
@@ -12110,9 +12410,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12110
12410
  option: string;
12111
12411
  filename: string;
12112
12412
  originalFilename: string;
12113
- }[] | undefined>;
12114
- createdAtLocation: string;
12413
+ }[] | [string, string] | undefined>;
12115
12414
  requestId: string;
12415
+ createdAtLocation?: string | null | undefined;
12116
12416
  annotation?: Record<string, string | number | boolean | {
12117
12417
  type: string;
12118
12418
  filename: string;
@@ -12150,13 +12450,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12150
12450
  option: string;
12151
12451
  filename: string;
12152
12452
  originalFilename: string;
12153
- }[] | undefined> | undefined;
12453
+ }[] | [string, string] | undefined> | undefined;
12154
12454
  originalActionId?: string | undefined;
12155
12455
  }>, z.ZodObject<z.objectUtil.extendShape<{
12156
12456
  id: z.ZodString;
12457
+ transactionId: z.ZodString;
12157
12458
  createdAt: z.ZodString;
12158
12459
  createdBy: z.ZodString;
12159
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12460
+ createdByRole: z.ZodString;
12461
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12462
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12160
12463
  filename: z.ZodString;
12161
12464
  originalFilename: z.ZodString;
12162
12465
  type: z.ZodString;
@@ -12270,7 +12573,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12270
12573
  addressLine3?: string | null | undefined;
12271
12574
  postcodeOrZip?: string | null | undefined;
12272
12575
  }>]>>;
12273
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12576
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12274
12577
  filename: z.ZodString;
12275
12578
  originalFilename: z.ZodString;
12276
12579
  type: z.ZodString;
@@ -12384,7 +12687,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12384
12687
  addressLine3?: string | null | undefined;
12385
12688
  postcodeOrZip?: string | null | undefined;
12386
12689
  }>]>>>;
12387
- createdAtLocation: z.ZodString;
12388
12690
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
12389
12691
  originalActionId: z.ZodOptional<z.ZodString>;
12390
12692
  }, {
@@ -12394,8 +12696,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12394
12696
  type: "REJECT_CORRECTION";
12395
12697
  id: string;
12396
12698
  status: "Rejected" | "Requested" | "Accepted";
12699
+ transactionId: string;
12397
12700
  createdAt: string;
12398
12701
  createdBy: string;
12702
+ createdByRole: string;
12399
12703
  declaration: Record<string, string | number | boolean | {
12400
12704
  type: string;
12401
12705
  filename: string;
@@ -12433,9 +12737,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12433
12737
  option: string;
12434
12738
  filename: string;
12435
12739
  originalFilename: string;
12436
- }[] | undefined>;
12437
- createdAtLocation: string;
12740
+ }[] | [string, string] | undefined>;
12438
12741
  requestId: string;
12742
+ createdAtLocation?: string | null | undefined;
12439
12743
  annotation?: Record<string, string | number | boolean | {
12440
12744
  type: string;
12441
12745
  filename: string;
@@ -12473,14 +12777,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12473
12777
  option: string;
12474
12778
  filename: string;
12475
12779
  originalFilename: string;
12476
- }[] | undefined> | undefined;
12780
+ }[] | [string, string] | undefined> | undefined;
12477
12781
  originalActionId?: string | undefined;
12478
12782
  }, {
12479
12783
  type: "REJECT_CORRECTION";
12480
12784
  id: string;
12481
12785
  status: "Rejected" | "Requested" | "Accepted";
12786
+ transactionId: string;
12482
12787
  createdAt: string;
12483
12788
  createdBy: string;
12789
+ createdByRole: string;
12484
12790
  declaration: Record<string, string | number | boolean | {
12485
12791
  type: string;
12486
12792
  filename: string;
@@ -12518,9 +12824,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12518
12824
  option: string;
12519
12825
  filename: string;
12520
12826
  originalFilename: string;
12521
- }[] | undefined>;
12522
- createdAtLocation: string;
12827
+ }[] | [string, string] | undefined>;
12523
12828
  requestId: string;
12829
+ createdAtLocation?: string | null | undefined;
12524
12830
  annotation?: Record<string, string | number | boolean | {
12525
12831
  type: string;
12526
12832
  filename: string;
@@ -12558,13 +12864,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12558
12864
  option: string;
12559
12865
  filename: string;
12560
12866
  originalFilename: string;
12561
- }[] | undefined> | undefined;
12867
+ }[] | [string, string] | undefined> | undefined;
12562
12868
  originalActionId?: string | undefined;
12563
12869
  }>, z.ZodObject<z.objectUtil.extendShape<{
12564
12870
  id: z.ZodString;
12871
+ transactionId: z.ZodString;
12565
12872
  createdAt: z.ZodString;
12566
12873
  createdBy: z.ZodString;
12567
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12874
+ createdByRole: z.ZodString;
12875
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12876
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12568
12877
  filename: z.ZodString;
12569
12878
  originalFilename: z.ZodString;
12570
12879
  type: z.ZodString;
@@ -12678,7 +12987,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12678
12987
  addressLine3?: string | null | undefined;
12679
12988
  postcodeOrZip?: string | null | undefined;
12680
12989
  }>]>>;
12681
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12990
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12682
12991
  filename: z.ZodString;
12683
12992
  originalFilename: z.ZodString;
12684
12993
  type: z.ZodString;
@@ -12792,17 +13101,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12792
13101
  addressLine3?: string | null | undefined;
12793
13102
  postcodeOrZip?: string | null | undefined;
12794
13103
  }>]>>>;
12795
- createdAtLocation: z.ZodString;
12796
13104
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
12797
13105
  originalActionId: z.ZodOptional<z.ZodString>;
12798
13106
  }, {
12799
13107
  type: z.ZodLiteral<"UNASSIGN">;
13108
+ assignedTo: z.ZodLiteral<null>;
12800
13109
  }>, "strip", z.ZodTypeAny, {
12801
13110
  type: "UNASSIGN";
12802
13111
  id: string;
12803
13112
  status: "Rejected" | "Requested" | "Accepted";
13113
+ transactionId: string;
12804
13114
  createdAt: string;
12805
13115
  createdBy: string;
13116
+ createdByRole: string;
12806
13117
  declaration: Record<string, string | number | boolean | {
12807
13118
  type: string;
12808
13119
  filename: string;
@@ -12840,8 +13151,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12840
13151
  option: string;
12841
13152
  filename: string;
12842
13153
  originalFilename: string;
12843
- }[] | undefined>;
12844
- createdAtLocation: string;
13154
+ }[] | [string, string] | undefined>;
13155
+ assignedTo: null;
13156
+ createdAtLocation?: string | null | undefined;
12845
13157
  annotation?: Record<string, string | number | boolean | {
12846
13158
  type: string;
12847
13159
  filename: string;
@@ -12879,14 +13191,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12879
13191
  option: string;
12880
13192
  filename: string;
12881
13193
  originalFilename: string;
12882
- }[] | undefined> | undefined;
13194
+ }[] | [string, string] | undefined> | undefined;
12883
13195
  originalActionId?: string | undefined;
12884
13196
  }, {
12885
13197
  type: "UNASSIGN";
12886
13198
  id: string;
12887
13199
  status: "Rejected" | "Requested" | "Accepted";
13200
+ transactionId: string;
12888
13201
  createdAt: string;
12889
13202
  createdBy: string;
13203
+ createdByRole: string;
12890
13204
  declaration: Record<string, string | number | boolean | {
12891
13205
  type: string;
12892
13206
  filename: string;
@@ -12924,8 +13238,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12924
13238
  option: string;
12925
13239
  filename: string;
12926
13240
  originalFilename: string;
12927
- }[] | undefined>;
12928
- createdAtLocation: string;
13241
+ }[] | [string, string] | undefined>;
13242
+ assignedTo: null;
13243
+ createdAtLocation?: string | null | undefined;
12929
13244
  annotation?: Record<string, string | number | boolean | {
12930
13245
  type: string;
12931
13246
  filename: string;
@@ -12963,13 +13278,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12963
13278
  option: string;
12964
13279
  filename: string;
12965
13280
  originalFilename: string;
12966
- }[] | undefined> | undefined;
13281
+ }[] | [string, string] | undefined> | undefined;
12967
13282
  originalActionId?: string | undefined;
12968
13283
  }>, z.ZodObject<z.objectUtil.extendShape<{
12969
13284
  id: z.ZodString;
13285
+ transactionId: z.ZodString;
12970
13286
  createdAt: z.ZodString;
12971
13287
  createdBy: z.ZodString;
12972
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13288
+ createdByRole: z.ZodString;
13289
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13290
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12973
13291
  filename: z.ZodString;
12974
13292
  originalFilename: z.ZodString;
12975
13293
  type: z.ZodString;
@@ -13083,7 +13401,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13083
13401
  addressLine3?: string | null | undefined;
13084
13402
  postcodeOrZip?: string | null | undefined;
13085
13403
  }>]>>;
13086
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13404
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13087
13405
  filename: z.ZodString;
13088
13406
  originalFilename: z.ZodString;
13089
13407
  type: z.ZodString;
@@ -13197,7 +13515,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13197
13515
  addressLine3?: string | null | undefined;
13198
13516
  postcodeOrZip?: string | null | undefined;
13199
13517
  }>]>>>;
13200
- createdAtLocation: z.ZodString;
13201
13518
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
13202
13519
  originalActionId: z.ZodOptional<z.ZodString>;
13203
13520
  }, {
@@ -13206,8 +13523,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13206
13523
  type: "PRINT_CERTIFICATE";
13207
13524
  id: string;
13208
13525
  status: "Rejected" | "Requested" | "Accepted";
13526
+ transactionId: string;
13209
13527
  createdAt: string;
13210
13528
  createdBy: string;
13529
+ createdByRole: string;
13211
13530
  declaration: Record<string, string | number | boolean | {
13212
13531
  type: string;
13213
13532
  filename: string;
@@ -13245,8 +13564,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13245
13564
  option: string;
13246
13565
  filename: string;
13247
13566
  originalFilename: string;
13248
- }[] | undefined>;
13249
- createdAtLocation: string;
13567
+ }[] | [string, string] | undefined>;
13568
+ createdAtLocation?: string | null | undefined;
13250
13569
  annotation?: Record<string, string | number | boolean | {
13251
13570
  type: string;
13252
13571
  filename: string;
@@ -13284,14 +13603,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13284
13603
  option: string;
13285
13604
  filename: string;
13286
13605
  originalFilename: string;
13287
- }[] | undefined> | undefined;
13606
+ }[] | [string, string] | undefined> | undefined;
13288
13607
  originalActionId?: string | undefined;
13289
13608
  }, {
13290
13609
  type: "PRINT_CERTIFICATE";
13291
13610
  id: string;
13292
13611
  status: "Rejected" | "Requested" | "Accepted";
13612
+ transactionId: string;
13293
13613
  createdAt: string;
13294
13614
  createdBy: string;
13615
+ createdByRole: string;
13295
13616
  declaration: Record<string, string | number | boolean | {
13296
13617
  type: string;
13297
13618
  filename: string;
@@ -13329,8 +13650,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13329
13650
  option: string;
13330
13651
  filename: string;
13331
13652
  originalFilename: string;
13332
- }[] | undefined>;
13333
- createdAtLocation: string;
13653
+ }[] | [string, string] | undefined>;
13654
+ createdAtLocation?: string | null | undefined;
13334
13655
  annotation?: Record<string, string | number | boolean | {
13335
13656
  type: string;
13336
13657
  filename: string;
@@ -13368,13 +13689,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13368
13689
  option: string;
13369
13690
  filename: string;
13370
13691
  originalFilename: string;
13371
- }[] | undefined> | undefined;
13692
+ }[] | [string, string] | undefined> | undefined;
13372
13693
  originalActionId?: string | undefined;
13373
13694
  }>, z.ZodObject<z.objectUtil.extendShape<{
13374
13695
  id: z.ZodString;
13696
+ transactionId: z.ZodString;
13375
13697
  createdAt: z.ZodString;
13376
13698
  createdBy: z.ZodString;
13377
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13699
+ createdByRole: z.ZodString;
13700
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13701
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13378
13702
  filename: z.ZodString;
13379
13703
  originalFilename: z.ZodString;
13380
13704
  type: z.ZodString;
@@ -13488,7 +13812,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13488
13812
  addressLine3?: string | null | undefined;
13489
13813
  postcodeOrZip?: string | null | undefined;
13490
13814
  }>]>>;
13491
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13815
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13492
13816
  filename: z.ZodString;
13493
13817
  originalFilename: z.ZodString;
13494
13818
  type: z.ZodString;
@@ -13602,7 +13926,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13602
13926
  addressLine3?: string | null | undefined;
13603
13927
  postcodeOrZip?: string | null | undefined;
13604
13928
  }>]>>>;
13605
- createdAtLocation: z.ZodString;
13606
13929
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
13607
13930
  originalActionId: z.ZodOptional<z.ZodString>;
13608
13931
  }, {
@@ -13611,8 +13934,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13611
13934
  type: "READ";
13612
13935
  id: string;
13613
13936
  status: "Rejected" | "Requested" | "Accepted";
13937
+ transactionId: string;
13614
13938
  createdAt: string;
13615
13939
  createdBy: string;
13940
+ createdByRole: string;
13616
13941
  declaration: Record<string, string | number | boolean | {
13617
13942
  type: string;
13618
13943
  filename: string;
@@ -13650,8 +13975,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13650
13975
  option: string;
13651
13976
  filename: string;
13652
13977
  originalFilename: string;
13653
- }[] | undefined>;
13654
- createdAtLocation: string;
13978
+ }[] | [string, string] | undefined>;
13979
+ createdAtLocation?: string | null | undefined;
13655
13980
  annotation?: Record<string, string | number | boolean | {
13656
13981
  type: string;
13657
13982
  filename: string;
@@ -13689,14 +14014,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13689
14014
  option: string;
13690
14015
  filename: string;
13691
14016
  originalFilename: string;
13692
- }[] | undefined> | undefined;
14017
+ }[] | [string, string] | undefined> | undefined;
13693
14018
  originalActionId?: string | undefined;
13694
14019
  }, {
13695
14020
  type: "READ";
13696
14021
  id: string;
13697
14022
  status: "Rejected" | "Requested" | "Accepted";
14023
+ transactionId: string;
13698
14024
  createdAt: string;
13699
14025
  createdBy: string;
14026
+ createdByRole: string;
13700
14027
  declaration: Record<string, string | number | boolean | {
13701
14028
  type: string;
13702
14029
  filename: string;
@@ -13734,8 +14061,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13734
14061
  option: string;
13735
14062
  filename: string;
13736
14063
  originalFilename: string;
13737
- }[] | undefined>;
13738
- createdAtLocation: string;
14064
+ }[] | [string, string] | undefined>;
14065
+ createdAtLocation?: string | null | undefined;
13739
14066
  annotation?: Record<string, string | number | boolean | {
13740
14067
  type: string;
13741
14068
  filename: string;
@@ -13773,13 +14100,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13773
14100
  option: string;
13774
14101
  filename: string;
13775
14102
  originalFilename: string;
13776
- }[] | undefined> | undefined;
14103
+ }[] | [string, string] | undefined> | undefined;
13777
14104
  originalActionId?: string | undefined;
13778
14105
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
13779
14106
  id: z.ZodString;
14107
+ transactionId: z.ZodString;
13780
14108
  createdAt: z.ZodString;
13781
14109
  createdBy: z.ZodString;
13782
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
14110
+ createdByRole: z.ZodString;
14111
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14112
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13783
14113
  filename: z.ZodString;
13784
14114
  originalFilename: z.ZodString;
13785
14115
  type: z.ZodString;
@@ -13893,7 +14223,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13893
14223
  addressLine3?: string | null | undefined;
13894
14224
  postcodeOrZip?: string | null | undefined;
13895
14225
  }>]>>;
13896
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
14226
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13897
14227
  filename: z.ZodString;
13898
14228
  originalFilename: z.ZodString;
13899
14229
  type: z.ZodString;
@@ -14007,23 +14337,30 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14007
14337
  addressLine3?: string | null | undefined;
14008
14338
  postcodeOrZip?: string | null | undefined;
14009
14339
  }>]>>>;
14010
- createdAtLocation: z.ZodString;
14011
14340
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
14012
14341
  originalActionId: z.ZodOptional<z.ZodString>;
14013
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
14342
+ }, "declaration" | "annotation">, {
14014
14343
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
14015
14344
  status: z.ZodLiteral<"Rejected">;
14016
14345
  }>, "strip", z.ZodTypeAny, {
14017
14346
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
14018
14347
  id: string;
14019
14348
  status: "Rejected";
14349
+ transactionId: string;
14020
14350
  createdAt: string;
14351
+ createdBy: string;
14352
+ createdByRole: string;
14353
+ createdAtLocation?: string | null | undefined;
14021
14354
  originalActionId?: string | undefined;
14022
14355
  }, {
14023
14356
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
14024
14357
  id: string;
14025
14358
  status: "Rejected";
14359
+ transactionId: string;
14026
14360
  createdAt: string;
14361
+ createdBy: string;
14362
+ createdByRole: string;
14363
+ createdAtLocation?: string | null | undefined;
14027
14364
  originalActionId?: string | undefined;
14028
14365
  }>]>;
14029
14366
  export type Action = ActionDocument | AsyncRejectActionDocument;