@opencrvs/toolkit 1.8.0-rc.fca3e39 → 1.8.0-rc.fcd89ec

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 (42) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +12801 -14208
  3. package/dist/commons/conditionals/conditionals.d.ts +30 -5
  4. package/dist/commons/conditionals/validate.d.ts +12 -17
  5. package/dist/commons/events/ActionConfig.d.ts +96433 -2006
  6. package/dist/commons/events/ActionDocument.d.ts +7832 -401
  7. package/dist/commons/events/ActionInput.d.ts +2292 -547
  8. package/dist/commons/events/ActionType.d.ts +26 -16
  9. package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
  10. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  11. package/dist/commons/events/Conditional.d.ts +21 -5
  12. package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
  13. package/dist/commons/events/Draft.d.ts +88 -60
  14. package/dist/commons/events/EventConfig.d.ts +46117 -1795
  15. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  16. package/dist/commons/events/EventDocument.d.ts +1106 -529
  17. package/dist/commons/events/EventIndex.d.ts +1239 -13
  18. package/dist/commons/events/EventInput.d.ts +13 -0
  19. package/dist/commons/events/EventMetadata.d.ts +277 -11
  20. package/dist/commons/events/FieldConfig.d.ts +4704 -786
  21. package/dist/commons/events/FieldType.d.ts +4 -3
  22. package/dist/commons/events/FieldTypeMapping.d.ts +33 -5
  23. package/dist/commons/events/FieldValue.d.ts +12 -7
  24. package/dist/commons/events/FormConfig.d.ts +43810 -73
  25. package/dist/commons/events/PageConfig.d.ts +10991 -0
  26. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  27. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  28. package/dist/commons/events/User.d.ts +5 -0
  29. package/dist/commons/events/WorkqueueConfig.d.ts +746 -20
  30. package/dist/commons/events/defineConfig.d.ts +7282 -224
  31. package/dist/commons/events/event.d.ts +54 -0
  32. package/dist/commons/events/field.d.ts +82 -0
  33. package/dist/commons/events/index.d.ts +5 -1
  34. package/dist/commons/events/scopes.d.ts +45 -0
  35. package/dist/commons/events/test.utils.d.ts +71 -325
  36. package/dist/commons/events/utils.d.ts +3700 -96
  37. package/dist/commons/events/utils.test.d.ts +2 -0
  38. package/dist/conditionals/index.js +191 -120
  39. package/dist/events/index.js +2905 -1344
  40. package/dist/scopes/index.d.ts +158 -1
  41. package/dist/scopes/index.js +152 -1
  42. package/package.json +3 -2
@@ -2,13 +2,23 @@ import { z } from 'zod';
2
2
  export declare const EventDocument: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  type: z.ZodString;
5
+ dateOfEvent: z.ZodOptional<z.ZodObject<{
6
+ fieldId: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ fieldId: string;
9
+ }, {
10
+ fieldId: string;
11
+ }>>;
5
12
  createdAt: z.ZodString;
6
13
  updatedAt: z.ZodString;
7
- actions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
14
+ actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
8
15
  id: z.ZodString;
16
+ transactionId: z.ZodString;
9
17
  createdAt: z.ZodString;
10
18
  createdBy: z.ZodString;
11
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
19
+ createdByRole: z.ZodString;
20
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ 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<{
12
22
  filename: z.ZodString;
13
23
  originalFilename: z.ZodString;
14
24
  type: z.ZodString;
@@ -91,7 +101,7 @@ export declare const EventDocument: z.ZodObject<{
91
101
  province: string;
92
102
  urbanOrRural: "RURAL";
93
103
  village?: string | null | undefined;
94
- }>, z.ZodObject<{
104
+ }>, z.ZodUndefined, z.ZodObject<{
95
105
  country: z.ZodString;
96
106
  addressType: z.ZodLiteral<"INTERNATIONAL">;
97
107
  state: z.ZodString;
@@ -122,7 +132,7 @@ export declare const EventDocument: z.ZodObject<{
122
132
  addressLine3?: string | null | undefined;
123
133
  postcodeOrZip?: string | null | undefined;
124
134
  }>]>>;
125
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
135
+ 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<{
126
136
  filename: z.ZodString;
127
137
  originalFilename: z.ZodString;
128
138
  type: z.ZodString;
@@ -205,7 +215,7 @@ export declare const EventDocument: z.ZodObject<{
205
215
  province: string;
206
216
  urbanOrRural: "RURAL";
207
217
  village?: string | null | undefined;
208
- }>, z.ZodObject<{
218
+ }>, z.ZodUndefined, z.ZodObject<{
209
219
  country: z.ZodString;
210
220
  addressType: z.ZodLiteral<"INTERNATIONAL">;
211
221
  state: z.ZodString;
@@ -236,13 +246,19 @@ export declare const EventDocument: z.ZodObject<{
236
246
  addressLine3?: string | null | undefined;
237
247
  postcodeOrZip?: string | null | undefined;
238
248
  }>]>>>;
239
- createdAtLocation: z.ZodString;
249
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
250
+ originalActionId: z.ZodOptional<z.ZodString>;
240
251
  }, {
241
252
  type: z.ZodLiteral<"CREATE">;
242
253
  }>, "strip", z.ZodTypeAny, {
243
254
  type: "CREATE";
244
255
  id: string;
245
- data: Record<string, string | number | boolean | {
256
+ status: "Rejected" | "Requested" | "Accepted";
257
+ transactionId: string;
258
+ createdAt: string;
259
+ createdBy: string;
260
+ createdByRole: string;
261
+ declaration: Record<string, string | number | boolean | {
246
262
  type: string;
247
263
  filename: string;
248
264
  originalFilename: string;
@@ -279,11 +295,9 @@ export declare const EventDocument: z.ZodObject<{
279
295
  option: string;
280
296
  filename: string;
281
297
  originalFilename: string;
282
- }[]>;
283
- createdAt: string;
284
- createdBy: string;
285
- createdAtLocation: string;
286
- metadata?: Record<string, string | number | boolean | {
298
+ }[] | [string, string] | undefined>;
299
+ createdAtLocation?: string | null | undefined;
300
+ annotation?: Record<string, string | number | boolean | {
287
301
  type: string;
288
302
  filename: string;
289
303
  originalFilename: string;
@@ -320,11 +334,17 @@ export declare const EventDocument: z.ZodObject<{
320
334
  option: string;
321
335
  filename: string;
322
336
  originalFilename: string;
323
- }[]> | undefined;
337
+ }[] | [string, string] | undefined> | undefined;
338
+ originalActionId?: string | undefined;
324
339
  }, {
325
340
  type: "CREATE";
326
341
  id: string;
327
- data: Record<string, string | number | boolean | {
342
+ status: "Rejected" | "Requested" | "Accepted";
343
+ transactionId: string;
344
+ createdAt: string;
345
+ createdBy: string;
346
+ createdByRole: string;
347
+ declaration: Record<string, string | number | boolean | {
328
348
  type: string;
329
349
  filename: string;
330
350
  originalFilename: string;
@@ -361,11 +381,9 @@ export declare const EventDocument: z.ZodObject<{
361
381
  option: string;
362
382
  filename: string;
363
383
  originalFilename: string;
364
- }[]>;
365
- createdAt: string;
366
- createdBy: string;
367
- createdAtLocation: string;
368
- metadata?: Record<string, string | number | boolean | {
384
+ }[] | [string, string] | undefined>;
385
+ createdAtLocation?: string | null | undefined;
386
+ annotation?: Record<string, string | number | boolean | {
369
387
  type: string;
370
388
  filename: string;
371
389
  originalFilename: string;
@@ -402,12 +420,16 @@ export declare const EventDocument: z.ZodObject<{
402
420
  option: string;
403
421
  filename: string;
404
422
  originalFilename: string;
405
- }[]> | undefined;
423
+ }[] | [string, string] | undefined> | undefined;
424
+ originalActionId?: string | undefined;
406
425
  }>, z.ZodObject<z.objectUtil.extendShape<{
407
426
  id: z.ZodString;
427
+ transactionId: z.ZodString;
408
428
  createdAt: z.ZodString;
409
429
  createdBy: z.ZodString;
410
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
430
+ createdByRole: z.ZodString;
431
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
432
+ 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<{
411
433
  filename: z.ZodString;
412
434
  originalFilename: z.ZodString;
413
435
  type: z.ZodString;
@@ -490,7 +512,7 @@ export declare const EventDocument: z.ZodObject<{
490
512
  province: string;
491
513
  urbanOrRural: "RURAL";
492
514
  village?: string | null | undefined;
493
- }>, z.ZodObject<{
515
+ }>, z.ZodUndefined, z.ZodObject<{
494
516
  country: z.ZodString;
495
517
  addressType: z.ZodLiteral<"INTERNATIONAL">;
496
518
  state: z.ZodString;
@@ -521,7 +543,7 @@ export declare const EventDocument: z.ZodObject<{
521
543
  addressLine3?: string | null | undefined;
522
544
  postcodeOrZip?: string | null | undefined;
523
545
  }>]>>;
524
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
546
+ 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<{
525
547
  filename: z.ZodString;
526
548
  originalFilename: z.ZodString;
527
549
  type: z.ZodString;
@@ -604,7 +626,7 @@ export declare const EventDocument: z.ZodObject<{
604
626
  province: string;
605
627
  urbanOrRural: "RURAL";
606
628
  village?: string | null | undefined;
607
- }>, z.ZodObject<{
629
+ }>, z.ZodUndefined, z.ZodObject<{
608
630
  country: z.ZodString;
609
631
  addressType: z.ZodLiteral<"INTERNATIONAL">;
610
632
  state: z.ZodString;
@@ -635,13 +657,19 @@ export declare const EventDocument: z.ZodObject<{
635
657
  addressLine3?: string | null | undefined;
636
658
  postcodeOrZip?: string | null | undefined;
637
659
  }>]>>>;
638
- createdAtLocation: z.ZodString;
660
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
661
+ originalActionId: z.ZodOptional<z.ZodString>;
639
662
  }, {
640
663
  type: z.ZodLiteral<"VALIDATE">;
641
664
  }>, "strip", z.ZodTypeAny, {
642
665
  type: "VALIDATE";
643
666
  id: string;
644
- data: Record<string, string | number | boolean | {
667
+ status: "Rejected" | "Requested" | "Accepted";
668
+ transactionId: string;
669
+ createdAt: string;
670
+ createdBy: string;
671
+ createdByRole: string;
672
+ declaration: Record<string, string | number | boolean | {
645
673
  type: string;
646
674
  filename: string;
647
675
  originalFilename: string;
@@ -678,11 +706,9 @@ export declare const EventDocument: z.ZodObject<{
678
706
  option: string;
679
707
  filename: string;
680
708
  originalFilename: string;
681
- }[]>;
682
- createdAt: string;
683
- createdBy: string;
684
- createdAtLocation: string;
685
- metadata?: Record<string, string | number | boolean | {
709
+ }[] | [string, string] | undefined>;
710
+ createdAtLocation?: string | null | undefined;
711
+ annotation?: Record<string, string | number | boolean | {
686
712
  type: string;
687
713
  filename: string;
688
714
  originalFilename: string;
@@ -719,11 +745,17 @@ export declare const EventDocument: z.ZodObject<{
719
745
  option: string;
720
746
  filename: string;
721
747
  originalFilename: string;
722
- }[]> | undefined;
748
+ }[] | [string, string] | undefined> | undefined;
749
+ originalActionId?: string | undefined;
723
750
  }, {
724
751
  type: "VALIDATE";
725
752
  id: string;
726
- data: Record<string, string | number | boolean | {
753
+ status: "Rejected" | "Requested" | "Accepted";
754
+ transactionId: string;
755
+ createdAt: string;
756
+ createdBy: string;
757
+ createdByRole: string;
758
+ declaration: Record<string, string | number | boolean | {
727
759
  type: string;
728
760
  filename: string;
729
761
  originalFilename: string;
@@ -760,11 +792,9 @@ export declare const EventDocument: z.ZodObject<{
760
792
  option: string;
761
793
  filename: string;
762
794
  originalFilename: string;
763
- }[]>;
764
- createdAt: string;
765
- createdBy: string;
766
- createdAtLocation: string;
767
- metadata?: Record<string, string | number | boolean | {
795
+ }[] | [string, string] | undefined>;
796
+ createdAtLocation?: string | null | undefined;
797
+ annotation?: Record<string, string | number | boolean | {
768
798
  type: string;
769
799
  filename: string;
770
800
  originalFilename: string;
@@ -801,12 +831,16 @@ export declare const EventDocument: z.ZodObject<{
801
831
  option: string;
802
832
  filename: string;
803
833
  originalFilename: string;
804
- }[]> | undefined;
834
+ }[] | [string, string] | undefined> | undefined;
835
+ originalActionId?: string | undefined;
805
836
  }>, z.ZodObject<z.objectUtil.extendShape<{
806
837
  id: z.ZodString;
838
+ transactionId: z.ZodString;
807
839
  createdAt: z.ZodString;
808
840
  createdBy: z.ZodString;
809
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
841
+ createdByRole: z.ZodString;
842
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
843
+ 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<{
810
844
  filename: z.ZodString;
811
845
  originalFilename: z.ZodString;
812
846
  type: z.ZodString;
@@ -889,7 +923,7 @@ export declare const EventDocument: z.ZodObject<{
889
923
  province: string;
890
924
  urbanOrRural: "RURAL";
891
925
  village?: string | null | undefined;
892
- }>, z.ZodObject<{
926
+ }>, z.ZodUndefined, z.ZodObject<{
893
927
  country: z.ZodString;
894
928
  addressType: z.ZodLiteral<"INTERNATIONAL">;
895
929
  state: z.ZodString;
@@ -920,7 +954,7 @@ export declare const EventDocument: z.ZodObject<{
920
954
  addressLine3?: string | null | undefined;
921
955
  postcodeOrZip?: string | null | undefined;
922
956
  }>]>>;
923
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
957
+ 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<{
924
958
  filename: z.ZodString;
925
959
  originalFilename: z.ZodString;
926
960
  type: z.ZodString;
@@ -1003,7 +1037,7 @@ export declare const EventDocument: z.ZodObject<{
1003
1037
  province: string;
1004
1038
  urbanOrRural: "RURAL";
1005
1039
  village?: string | null | undefined;
1006
- }>, z.ZodObject<{
1040
+ }>, z.ZodUndefined, z.ZodObject<{
1007
1041
  country: z.ZodString;
1008
1042
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1009
1043
  state: z.ZodString;
@@ -1034,13 +1068,19 @@ export declare const EventDocument: z.ZodObject<{
1034
1068
  addressLine3?: string | null | undefined;
1035
1069
  postcodeOrZip?: string | null | undefined;
1036
1070
  }>]>>>;
1037
- createdAtLocation: z.ZodString;
1071
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1072
+ originalActionId: z.ZodOptional<z.ZodString>;
1038
1073
  }, {
1039
1074
  type: z.ZodLiteral<"REJECT">;
1040
1075
  }>, "strip", z.ZodTypeAny, {
1041
1076
  type: "REJECT";
1042
1077
  id: string;
1043
- data: Record<string, string | number | boolean | {
1078
+ status: "Rejected" | "Requested" | "Accepted";
1079
+ transactionId: string;
1080
+ createdAt: string;
1081
+ createdBy: string;
1082
+ createdByRole: string;
1083
+ declaration: Record<string, string | number | boolean | {
1044
1084
  type: string;
1045
1085
  filename: string;
1046
1086
  originalFilename: string;
@@ -1077,11 +1117,9 @@ export declare const EventDocument: z.ZodObject<{
1077
1117
  option: string;
1078
1118
  filename: string;
1079
1119
  originalFilename: string;
1080
- }[]>;
1081
- createdAt: string;
1082
- createdBy: string;
1083
- createdAtLocation: string;
1084
- metadata?: Record<string, string | number | boolean | {
1120
+ }[] | [string, string] | undefined>;
1121
+ createdAtLocation?: string | null | undefined;
1122
+ annotation?: Record<string, string | number | boolean | {
1085
1123
  type: string;
1086
1124
  filename: string;
1087
1125
  originalFilename: string;
@@ -1118,11 +1156,17 @@ export declare const EventDocument: z.ZodObject<{
1118
1156
  option: string;
1119
1157
  filename: string;
1120
1158
  originalFilename: string;
1121
- }[]> | undefined;
1159
+ }[] | [string, string] | undefined> | undefined;
1160
+ originalActionId?: string | undefined;
1122
1161
  }, {
1123
1162
  type: "REJECT";
1124
1163
  id: string;
1125
- data: Record<string, string | number | boolean | {
1164
+ status: "Rejected" | "Requested" | "Accepted";
1165
+ transactionId: string;
1166
+ createdAt: string;
1167
+ createdBy: string;
1168
+ createdByRole: string;
1169
+ declaration: Record<string, string | number | boolean | {
1126
1170
  type: string;
1127
1171
  filename: string;
1128
1172
  originalFilename: string;
@@ -1159,11 +1203,9 @@ export declare const EventDocument: z.ZodObject<{
1159
1203
  option: string;
1160
1204
  filename: string;
1161
1205
  originalFilename: string;
1162
- }[]>;
1163
- createdAt: string;
1164
- createdBy: string;
1165
- createdAtLocation: string;
1166
- metadata?: Record<string, string | number | boolean | {
1206
+ }[] | [string, string] | undefined>;
1207
+ createdAtLocation?: string | null | undefined;
1208
+ annotation?: Record<string, string | number | boolean | {
1167
1209
  type: string;
1168
1210
  filename: string;
1169
1211
  originalFilename: string;
@@ -1200,12 +1242,16 @@ export declare const EventDocument: z.ZodObject<{
1200
1242
  option: string;
1201
1243
  filename: string;
1202
1244
  originalFilename: string;
1203
- }[]> | undefined;
1245
+ }[] | [string, string] | undefined> | undefined;
1246
+ originalActionId?: string | undefined;
1204
1247
  }>, z.ZodObject<z.objectUtil.extendShape<{
1205
1248
  id: z.ZodString;
1249
+ transactionId: z.ZodString;
1206
1250
  createdAt: z.ZodString;
1207
1251
  createdBy: z.ZodString;
1208
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1252
+ createdByRole: z.ZodString;
1253
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1254
+ 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<{
1209
1255
  filename: z.ZodString;
1210
1256
  originalFilename: z.ZodString;
1211
1257
  type: z.ZodString;
@@ -1288,7 +1334,7 @@ export declare const EventDocument: z.ZodObject<{
1288
1334
  province: string;
1289
1335
  urbanOrRural: "RURAL";
1290
1336
  village?: string | null | undefined;
1291
- }>, z.ZodObject<{
1337
+ }>, z.ZodUndefined, z.ZodObject<{
1292
1338
  country: z.ZodString;
1293
1339
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1294
1340
  state: z.ZodString;
@@ -1319,7 +1365,7 @@ export declare const EventDocument: z.ZodObject<{
1319
1365
  addressLine3?: string | null | undefined;
1320
1366
  postcodeOrZip?: string | null | undefined;
1321
1367
  }>]>>;
1322
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1368
+ 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<{
1323
1369
  filename: z.ZodString;
1324
1370
  originalFilename: z.ZodString;
1325
1371
  type: z.ZodString;
@@ -1402,7 +1448,7 @@ export declare const EventDocument: z.ZodObject<{
1402
1448
  province: string;
1403
1449
  urbanOrRural: "RURAL";
1404
1450
  village?: string | null | undefined;
1405
- }>, z.ZodObject<{
1451
+ }>, z.ZodUndefined, z.ZodObject<{
1406
1452
  country: z.ZodString;
1407
1453
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1408
1454
  state: z.ZodString;
@@ -1433,13 +1479,19 @@ export declare const EventDocument: z.ZodObject<{
1433
1479
  addressLine3?: string | null | undefined;
1434
1480
  postcodeOrZip?: string | null | undefined;
1435
1481
  }>]>>>;
1436
- createdAtLocation: z.ZodString;
1482
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1483
+ originalActionId: z.ZodOptional<z.ZodString>;
1437
1484
  }, {
1438
1485
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1439
1486
  }>, "strip", z.ZodTypeAny, {
1440
1487
  type: "MARKED_AS_DUPLICATE";
1441
1488
  id: string;
1442
- data: Record<string, string | number | boolean | {
1489
+ status: "Rejected" | "Requested" | "Accepted";
1490
+ transactionId: string;
1491
+ createdAt: string;
1492
+ createdBy: string;
1493
+ createdByRole: string;
1494
+ declaration: Record<string, string | number | boolean | {
1443
1495
  type: string;
1444
1496
  filename: string;
1445
1497
  originalFilename: string;
@@ -1476,11 +1528,9 @@ export declare const EventDocument: z.ZodObject<{
1476
1528
  option: string;
1477
1529
  filename: string;
1478
1530
  originalFilename: string;
1479
- }[]>;
1480
- createdAt: string;
1481
- createdBy: string;
1482
- createdAtLocation: string;
1483
- metadata?: Record<string, string | number | boolean | {
1531
+ }[] | [string, string] | undefined>;
1532
+ createdAtLocation?: string | null | undefined;
1533
+ annotation?: Record<string, string | number | boolean | {
1484
1534
  type: string;
1485
1535
  filename: string;
1486
1536
  originalFilename: string;
@@ -1517,11 +1567,17 @@ export declare const EventDocument: z.ZodObject<{
1517
1567
  option: string;
1518
1568
  filename: string;
1519
1569
  originalFilename: string;
1520
- }[]> | undefined;
1570
+ }[] | [string, string] | undefined> | undefined;
1571
+ originalActionId?: string | undefined;
1521
1572
  }, {
1522
1573
  type: "MARKED_AS_DUPLICATE";
1523
1574
  id: string;
1524
- data: Record<string, string | number | boolean | {
1575
+ status: "Rejected" | "Requested" | "Accepted";
1576
+ transactionId: string;
1577
+ createdAt: string;
1578
+ createdBy: string;
1579
+ createdByRole: string;
1580
+ declaration: Record<string, string | number | boolean | {
1525
1581
  type: string;
1526
1582
  filename: string;
1527
1583
  originalFilename: string;
@@ -1558,11 +1614,9 @@ export declare const EventDocument: z.ZodObject<{
1558
1614
  option: string;
1559
1615
  filename: string;
1560
1616
  originalFilename: string;
1561
- }[]>;
1562
- createdAt: string;
1563
- createdBy: string;
1564
- createdAtLocation: string;
1565
- metadata?: Record<string, string | number | boolean | {
1617
+ }[] | [string, string] | undefined>;
1618
+ createdAtLocation?: string | null | undefined;
1619
+ annotation?: Record<string, string | number | boolean | {
1566
1620
  type: string;
1567
1621
  filename: string;
1568
1622
  originalFilename: string;
@@ -1599,12 +1653,16 @@ export declare const EventDocument: z.ZodObject<{
1599
1653
  option: string;
1600
1654
  filename: string;
1601
1655
  originalFilename: string;
1602
- }[]> | undefined;
1656
+ }[] | [string, string] | undefined> | undefined;
1657
+ originalActionId?: string | undefined;
1603
1658
  }>, z.ZodObject<z.objectUtil.extendShape<{
1604
1659
  id: z.ZodString;
1660
+ transactionId: z.ZodString;
1605
1661
  createdAt: z.ZodString;
1606
1662
  createdBy: z.ZodString;
1607
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1663
+ createdByRole: z.ZodString;
1664
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1665
+ 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<{
1608
1666
  filename: z.ZodString;
1609
1667
  originalFilename: z.ZodString;
1610
1668
  type: z.ZodString;
@@ -1687,7 +1745,7 @@ export declare const EventDocument: z.ZodObject<{
1687
1745
  province: string;
1688
1746
  urbanOrRural: "RURAL";
1689
1747
  village?: string | null | undefined;
1690
- }>, z.ZodObject<{
1748
+ }>, z.ZodUndefined, z.ZodObject<{
1691
1749
  country: z.ZodString;
1692
1750
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1693
1751
  state: z.ZodString;
@@ -1718,7 +1776,7 @@ export declare const EventDocument: z.ZodObject<{
1718
1776
  addressLine3?: string | null | undefined;
1719
1777
  postcodeOrZip?: string | null | undefined;
1720
1778
  }>]>>;
1721
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1779
+ 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<{
1722
1780
  filename: z.ZodString;
1723
1781
  originalFilename: z.ZodString;
1724
1782
  type: z.ZodString;
@@ -1801,7 +1859,7 @@ export declare const EventDocument: z.ZodObject<{
1801
1859
  province: string;
1802
1860
  urbanOrRural: "RURAL";
1803
1861
  village?: string | null | undefined;
1804
- }>, z.ZodObject<{
1862
+ }>, z.ZodUndefined, z.ZodObject<{
1805
1863
  country: z.ZodString;
1806
1864
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1807
1865
  state: z.ZodString;
@@ -1832,13 +1890,19 @@ export declare const EventDocument: z.ZodObject<{
1832
1890
  addressLine3?: string | null | undefined;
1833
1891
  postcodeOrZip?: string | null | undefined;
1834
1892
  }>]>>>;
1835
- createdAtLocation: z.ZodString;
1893
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1894
+ originalActionId: z.ZodOptional<z.ZodString>;
1836
1895
  }, {
1837
1896
  type: z.ZodLiteral<"ARCHIVE">;
1838
1897
  }>, "strip", z.ZodTypeAny, {
1839
1898
  type: "ARCHIVE";
1840
1899
  id: string;
1841
- data: Record<string, string | number | boolean | {
1900
+ status: "Rejected" | "Requested" | "Accepted";
1901
+ transactionId: string;
1902
+ createdAt: string;
1903
+ createdBy: string;
1904
+ createdByRole: string;
1905
+ declaration: Record<string, string | number | boolean | {
1842
1906
  type: string;
1843
1907
  filename: string;
1844
1908
  originalFilename: string;
@@ -1875,11 +1939,9 @@ export declare const EventDocument: z.ZodObject<{
1875
1939
  option: string;
1876
1940
  filename: string;
1877
1941
  originalFilename: string;
1878
- }[]>;
1879
- createdAt: string;
1880
- createdBy: string;
1881
- createdAtLocation: string;
1882
- metadata?: Record<string, string | number | boolean | {
1942
+ }[] | [string, string] | undefined>;
1943
+ createdAtLocation?: string | null | undefined;
1944
+ annotation?: Record<string, string | number | boolean | {
1883
1945
  type: string;
1884
1946
  filename: string;
1885
1947
  originalFilename: string;
@@ -1916,11 +1978,17 @@ export declare const EventDocument: z.ZodObject<{
1916
1978
  option: string;
1917
1979
  filename: string;
1918
1980
  originalFilename: string;
1919
- }[]> | undefined;
1981
+ }[] | [string, string] | undefined> | undefined;
1982
+ originalActionId?: string | undefined;
1920
1983
  }, {
1921
1984
  type: "ARCHIVE";
1922
1985
  id: string;
1923
- data: Record<string, string | number | boolean | {
1986
+ status: "Rejected" | "Requested" | "Accepted";
1987
+ transactionId: string;
1988
+ createdAt: string;
1989
+ createdBy: string;
1990
+ createdByRole: string;
1991
+ declaration: Record<string, string | number | boolean | {
1924
1992
  type: string;
1925
1993
  filename: string;
1926
1994
  originalFilename: string;
@@ -1957,11 +2025,9 @@ export declare const EventDocument: z.ZodObject<{
1957
2025
  option: string;
1958
2026
  filename: string;
1959
2027
  originalFilename: string;
1960
- }[]>;
1961
- createdAt: string;
1962
- createdBy: string;
1963
- createdAtLocation: string;
1964
- metadata?: Record<string, string | number | boolean | {
2028
+ }[] | [string, string] | undefined>;
2029
+ createdAtLocation?: string | null | undefined;
2030
+ annotation?: Record<string, string | number | boolean | {
1965
2031
  type: string;
1966
2032
  filename: string;
1967
2033
  originalFilename: string;
@@ -1998,12 +2064,16 @@ export declare const EventDocument: z.ZodObject<{
1998
2064
  option: string;
1999
2065
  filename: string;
2000
2066
  originalFilename: string;
2001
- }[]> | undefined;
2067
+ }[] | [string, string] | undefined> | undefined;
2068
+ originalActionId?: string | undefined;
2002
2069
  }>, z.ZodObject<z.objectUtil.extendShape<{
2003
2070
  id: z.ZodString;
2071
+ transactionId: z.ZodString;
2004
2072
  createdAt: z.ZodString;
2005
2073
  createdBy: z.ZodString;
2006
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2074
+ createdByRole: z.ZodString;
2075
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2076
+ 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<{
2007
2077
  filename: z.ZodString;
2008
2078
  originalFilename: z.ZodString;
2009
2079
  type: z.ZodString;
@@ -2086,7 +2156,7 @@ export declare const EventDocument: z.ZodObject<{
2086
2156
  province: string;
2087
2157
  urbanOrRural: "RURAL";
2088
2158
  village?: string | null | undefined;
2089
- }>, z.ZodObject<{
2159
+ }>, z.ZodUndefined, z.ZodObject<{
2090
2160
  country: z.ZodString;
2091
2161
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2092
2162
  state: z.ZodString;
@@ -2117,7 +2187,7 @@ export declare const EventDocument: z.ZodObject<{
2117
2187
  addressLine3?: string | null | undefined;
2118
2188
  postcodeOrZip?: string | null | undefined;
2119
2189
  }>]>>;
2120
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2190
+ 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<{
2121
2191
  filename: z.ZodString;
2122
2192
  originalFilename: z.ZodString;
2123
2193
  type: z.ZodString;
@@ -2200,7 +2270,7 @@ export declare const EventDocument: z.ZodObject<{
2200
2270
  province: string;
2201
2271
  urbanOrRural: "RURAL";
2202
2272
  village?: string | null | undefined;
2203
- }>, z.ZodObject<{
2273
+ }>, z.ZodUndefined, z.ZodObject<{
2204
2274
  country: z.ZodString;
2205
2275
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2206
2276
  state: z.ZodString;
@@ -2231,13 +2301,19 @@ export declare const EventDocument: z.ZodObject<{
2231
2301
  addressLine3?: string | null | undefined;
2232
2302
  postcodeOrZip?: string | null | undefined;
2233
2303
  }>]>>>;
2234
- createdAtLocation: z.ZodString;
2304
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2305
+ originalActionId: z.ZodOptional<z.ZodString>;
2235
2306
  }, {
2236
2307
  type: z.ZodLiteral<"NOTIFY">;
2237
2308
  }>, "strip", z.ZodTypeAny, {
2238
2309
  type: "NOTIFY";
2239
2310
  id: string;
2240
- data: Record<string, string | number | boolean | {
2311
+ status: "Rejected" | "Requested" | "Accepted";
2312
+ transactionId: string;
2313
+ createdAt: string;
2314
+ createdBy: string;
2315
+ createdByRole: string;
2316
+ declaration: Record<string, string | number | boolean | {
2241
2317
  type: string;
2242
2318
  filename: string;
2243
2319
  originalFilename: string;
@@ -2274,11 +2350,9 @@ export declare const EventDocument: z.ZodObject<{
2274
2350
  option: string;
2275
2351
  filename: string;
2276
2352
  originalFilename: string;
2277
- }[]>;
2278
- createdAt: string;
2279
- createdBy: string;
2280
- createdAtLocation: string;
2281
- metadata?: Record<string, string | number | boolean | {
2353
+ }[] | [string, string] | undefined>;
2354
+ createdAtLocation?: string | null | undefined;
2355
+ annotation?: Record<string, string | number | boolean | {
2282
2356
  type: string;
2283
2357
  filename: string;
2284
2358
  originalFilename: string;
@@ -2315,11 +2389,17 @@ export declare const EventDocument: z.ZodObject<{
2315
2389
  option: string;
2316
2390
  filename: string;
2317
2391
  originalFilename: string;
2318
- }[]> | undefined;
2392
+ }[] | [string, string] | undefined> | undefined;
2393
+ originalActionId?: string | undefined;
2319
2394
  }, {
2320
2395
  type: "NOTIFY";
2321
2396
  id: string;
2322
- data: Record<string, string | number | boolean | {
2397
+ status: "Rejected" | "Requested" | "Accepted";
2398
+ transactionId: string;
2399
+ createdAt: string;
2400
+ createdBy: string;
2401
+ createdByRole: string;
2402
+ declaration: Record<string, string | number | boolean | {
2323
2403
  type: string;
2324
2404
  filename: string;
2325
2405
  originalFilename: string;
@@ -2356,11 +2436,9 @@ export declare const EventDocument: z.ZodObject<{
2356
2436
  option: string;
2357
2437
  filename: string;
2358
2438
  originalFilename: string;
2359
- }[]>;
2360
- createdAt: string;
2361
- createdBy: string;
2362
- createdAtLocation: string;
2363
- metadata?: Record<string, string | number | boolean | {
2439
+ }[] | [string, string] | undefined>;
2440
+ createdAtLocation?: string | null | undefined;
2441
+ annotation?: Record<string, string | number | boolean | {
2364
2442
  type: string;
2365
2443
  filename: string;
2366
2444
  originalFilename: string;
@@ -2397,12 +2475,16 @@ export declare const EventDocument: z.ZodObject<{
2397
2475
  option: string;
2398
2476
  filename: string;
2399
2477
  originalFilename: string;
2400
- }[]> | undefined;
2478
+ }[] | [string, string] | undefined> | undefined;
2479
+ originalActionId?: string | undefined;
2401
2480
  }>, z.ZodObject<z.objectUtil.extendShape<{
2402
2481
  id: z.ZodString;
2482
+ transactionId: z.ZodString;
2403
2483
  createdAt: z.ZodString;
2404
2484
  createdBy: z.ZodString;
2405
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2485
+ createdByRole: z.ZodString;
2486
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2487
+ 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<{
2406
2488
  filename: z.ZodString;
2407
2489
  originalFilename: z.ZodString;
2408
2490
  type: z.ZodString;
@@ -2485,7 +2567,7 @@ export declare const EventDocument: z.ZodObject<{
2485
2567
  province: string;
2486
2568
  urbanOrRural: "RURAL";
2487
2569
  village?: string | null | undefined;
2488
- }>, z.ZodObject<{
2570
+ }>, z.ZodUndefined, z.ZodObject<{
2489
2571
  country: z.ZodString;
2490
2572
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2491
2573
  state: z.ZodString;
@@ -2516,7 +2598,7 @@ export declare const EventDocument: z.ZodObject<{
2516
2598
  addressLine3?: string | null | undefined;
2517
2599
  postcodeOrZip?: string | null | undefined;
2518
2600
  }>]>>;
2519
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2601
+ 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<{
2520
2602
  filename: z.ZodString;
2521
2603
  originalFilename: z.ZodString;
2522
2604
  type: z.ZodString;
@@ -2599,7 +2681,7 @@ export declare const EventDocument: z.ZodObject<{
2599
2681
  province: string;
2600
2682
  urbanOrRural: "RURAL";
2601
2683
  village?: string | null | undefined;
2602
- }>, z.ZodObject<{
2684
+ }>, z.ZodUndefined, z.ZodObject<{
2603
2685
  country: z.ZodString;
2604
2686
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2605
2687
  state: z.ZodString;
@@ -2630,23 +2712,20 @@ export declare const EventDocument: z.ZodObject<{
2630
2712
  addressLine3?: string | null | undefined;
2631
2713
  postcodeOrZip?: string | null | undefined;
2632
2714
  }>]>>>;
2633
- createdAtLocation: z.ZodString;
2715
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2716
+ originalActionId: z.ZodOptional<z.ZodString>;
2634
2717
  }, {
2635
2718
  type: z.ZodLiteral<"REGISTER">;
2636
- identifiers: z.ZodObject<{
2637
- trackingId: z.ZodString;
2638
- registrationNumber: z.ZodString;
2639
- }, "strip", z.ZodTypeAny, {
2640
- trackingId: string;
2641
- registrationNumber: string;
2642
- }, {
2643
- trackingId: string;
2644
- registrationNumber: string;
2645
- }>;
2719
+ registrationNumber: z.ZodOptional<z.ZodString>;
2646
2720
  }>, "strip", z.ZodTypeAny, {
2647
2721
  type: "REGISTER";
2648
2722
  id: string;
2649
- data: Record<string, string | number | boolean | {
2723
+ status: "Rejected" | "Requested" | "Accepted";
2724
+ transactionId: string;
2725
+ createdAt: string;
2726
+ createdBy: string;
2727
+ createdByRole: string;
2728
+ declaration: Record<string, string | number | boolean | {
2650
2729
  type: string;
2651
2730
  filename: string;
2652
2731
  originalFilename: string;
@@ -2683,15 +2762,9 @@ export declare const EventDocument: z.ZodObject<{
2683
2762
  option: string;
2684
2763
  filename: string;
2685
2764
  originalFilename: string;
2686
- }[]>;
2687
- createdAt: string;
2688
- createdBy: string;
2689
- createdAtLocation: string;
2690
- identifiers: {
2691
- trackingId: string;
2692
- registrationNumber: string;
2693
- };
2694
- metadata?: Record<string, string | number | boolean | {
2765
+ }[] | [string, string] | undefined>;
2766
+ createdAtLocation?: string | null | undefined;
2767
+ annotation?: Record<string, string | number | boolean | {
2695
2768
  type: string;
2696
2769
  filename: string;
2697
2770
  originalFilename: string;
@@ -2728,11 +2801,18 @@ export declare const EventDocument: z.ZodObject<{
2728
2801
  option: string;
2729
2802
  filename: string;
2730
2803
  originalFilename: string;
2731
- }[]> | undefined;
2804
+ }[] | [string, string] | undefined> | undefined;
2805
+ originalActionId?: string | undefined;
2806
+ registrationNumber?: string | undefined;
2732
2807
  }, {
2733
2808
  type: "REGISTER";
2734
2809
  id: string;
2735
- data: Record<string, string | number | boolean | {
2810
+ status: "Rejected" | "Requested" | "Accepted";
2811
+ transactionId: string;
2812
+ createdAt: string;
2813
+ createdBy: string;
2814
+ createdByRole: string;
2815
+ declaration: Record<string, string | number | boolean | {
2736
2816
  type: string;
2737
2817
  filename: string;
2738
2818
  originalFilename: string;
@@ -2769,15 +2849,9 @@ export declare const EventDocument: z.ZodObject<{
2769
2849
  option: string;
2770
2850
  filename: string;
2771
2851
  originalFilename: string;
2772
- }[]>;
2773
- createdAt: string;
2774
- createdBy: string;
2775
- createdAtLocation: string;
2776
- identifiers: {
2777
- trackingId: string;
2778
- registrationNumber: string;
2779
- };
2780
- metadata?: Record<string, string | number | boolean | {
2852
+ }[] | [string, string] | undefined>;
2853
+ createdAtLocation?: string | null | undefined;
2854
+ annotation?: Record<string, string | number | boolean | {
2781
2855
  type: string;
2782
2856
  filename: string;
2783
2857
  originalFilename: string;
@@ -2814,12 +2888,17 @@ export declare const EventDocument: z.ZodObject<{
2814
2888
  option: string;
2815
2889
  filename: string;
2816
2890
  originalFilename: string;
2817
- }[]> | undefined;
2891
+ }[] | [string, string] | undefined> | undefined;
2892
+ originalActionId?: string | undefined;
2893
+ registrationNumber?: string | undefined;
2818
2894
  }>, z.ZodObject<z.objectUtil.extendShape<{
2819
2895
  id: z.ZodString;
2896
+ transactionId: z.ZodString;
2820
2897
  createdAt: z.ZodString;
2821
2898
  createdBy: z.ZodString;
2822
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2899
+ createdByRole: z.ZodString;
2900
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2901
+ 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<{
2823
2902
  filename: z.ZodString;
2824
2903
  originalFilename: z.ZodString;
2825
2904
  type: z.ZodString;
@@ -2902,7 +2981,7 @@ export declare const EventDocument: z.ZodObject<{
2902
2981
  province: string;
2903
2982
  urbanOrRural: "RURAL";
2904
2983
  village?: string | null | undefined;
2905
- }>, z.ZodObject<{
2984
+ }>, z.ZodUndefined, z.ZodObject<{
2906
2985
  country: z.ZodString;
2907
2986
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2908
2987
  state: z.ZodString;
@@ -2933,7 +3012,7 @@ export declare const EventDocument: z.ZodObject<{
2933
3012
  addressLine3?: string | null | undefined;
2934
3013
  postcodeOrZip?: string | null | undefined;
2935
3014
  }>]>>;
2936
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3015
+ 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<{
2937
3016
  filename: z.ZodString;
2938
3017
  originalFilename: z.ZodString;
2939
3018
  type: z.ZodString;
@@ -3016,7 +3095,7 @@ export declare const EventDocument: z.ZodObject<{
3016
3095
  province: string;
3017
3096
  urbanOrRural: "RURAL";
3018
3097
  village?: string | null | undefined;
3019
- }>, z.ZodObject<{
3098
+ }>, z.ZodUndefined, z.ZodObject<{
3020
3099
  country: z.ZodString;
3021
3100
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3022
3101
  state: z.ZodString;
@@ -3047,13 +3126,19 @@ export declare const EventDocument: z.ZodObject<{
3047
3126
  addressLine3?: string | null | undefined;
3048
3127
  postcodeOrZip?: string | null | undefined;
3049
3128
  }>]>>>;
3050
- createdAtLocation: z.ZodString;
3129
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3130
+ originalActionId: z.ZodOptional<z.ZodString>;
3051
3131
  }, {
3052
3132
  type: z.ZodLiteral<"DECLARE">;
3053
3133
  }>, "strip", z.ZodTypeAny, {
3054
3134
  type: "DECLARE";
3055
3135
  id: string;
3056
- data: Record<string, string | number | boolean | {
3136
+ status: "Rejected" | "Requested" | "Accepted";
3137
+ transactionId: string;
3138
+ createdAt: string;
3139
+ createdBy: string;
3140
+ createdByRole: string;
3141
+ declaration: Record<string, string | number | boolean | {
3057
3142
  type: string;
3058
3143
  filename: string;
3059
3144
  originalFilename: string;
@@ -3090,11 +3175,9 @@ export declare const EventDocument: z.ZodObject<{
3090
3175
  option: string;
3091
3176
  filename: string;
3092
3177
  originalFilename: string;
3093
- }[]>;
3094
- createdAt: string;
3095
- createdBy: string;
3096
- createdAtLocation: string;
3097
- metadata?: Record<string, string | number | boolean | {
3178
+ }[] | [string, string] | undefined>;
3179
+ createdAtLocation?: string | null | undefined;
3180
+ annotation?: Record<string, string | number | boolean | {
3098
3181
  type: string;
3099
3182
  filename: string;
3100
3183
  originalFilename: string;
@@ -3131,11 +3214,17 @@ export declare const EventDocument: z.ZodObject<{
3131
3214
  option: string;
3132
3215
  filename: string;
3133
3216
  originalFilename: string;
3134
- }[]> | undefined;
3217
+ }[] | [string, string] | undefined> | undefined;
3218
+ originalActionId?: string | undefined;
3135
3219
  }, {
3136
3220
  type: "DECLARE";
3137
3221
  id: string;
3138
- data: Record<string, string | number | boolean | {
3222
+ status: "Rejected" | "Requested" | "Accepted";
3223
+ transactionId: string;
3224
+ createdAt: string;
3225
+ createdBy: string;
3226
+ createdByRole: string;
3227
+ declaration: Record<string, string | number | boolean | {
3139
3228
  type: string;
3140
3229
  filename: string;
3141
3230
  originalFilename: string;
@@ -3172,11 +3261,9 @@ export declare const EventDocument: z.ZodObject<{
3172
3261
  option: string;
3173
3262
  filename: string;
3174
3263
  originalFilename: string;
3175
- }[]>;
3176
- createdAt: string;
3177
- createdBy: string;
3178
- createdAtLocation: string;
3179
- metadata?: Record<string, string | number | boolean | {
3264
+ }[] | [string, string] | undefined>;
3265
+ createdAtLocation?: string | null | undefined;
3266
+ annotation?: Record<string, string | number | boolean | {
3180
3267
  type: string;
3181
3268
  filename: string;
3182
3269
  originalFilename: string;
@@ -3213,12 +3300,16 @@ export declare const EventDocument: z.ZodObject<{
3213
3300
  option: string;
3214
3301
  filename: string;
3215
3302
  originalFilename: string;
3216
- }[]> | undefined;
3303
+ }[] | [string, string] | undefined> | undefined;
3304
+ originalActionId?: string | undefined;
3217
3305
  }>, z.ZodObject<z.objectUtil.extendShape<{
3218
3306
  id: z.ZodString;
3307
+ transactionId: z.ZodString;
3219
3308
  createdAt: z.ZodString;
3220
3309
  createdBy: z.ZodString;
3221
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3310
+ createdByRole: z.ZodString;
3311
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3312
+ 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<{
3222
3313
  filename: z.ZodString;
3223
3314
  originalFilename: z.ZodString;
3224
3315
  type: z.ZodString;
@@ -3301,7 +3392,7 @@ export declare const EventDocument: z.ZodObject<{
3301
3392
  province: string;
3302
3393
  urbanOrRural: "RURAL";
3303
3394
  village?: string | null | undefined;
3304
- }>, z.ZodObject<{
3395
+ }>, z.ZodUndefined, z.ZodObject<{
3305
3396
  country: z.ZodString;
3306
3397
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3307
3398
  state: z.ZodString;
@@ -3332,7 +3423,7 @@ export declare const EventDocument: z.ZodObject<{
3332
3423
  addressLine3?: string | null | undefined;
3333
3424
  postcodeOrZip?: string | null | undefined;
3334
3425
  }>]>>;
3335
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3426
+ 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<{
3336
3427
  filename: z.ZodString;
3337
3428
  originalFilename: z.ZodString;
3338
3429
  type: z.ZodString;
@@ -3415,7 +3506,7 @@ export declare const EventDocument: z.ZodObject<{
3415
3506
  province: string;
3416
3507
  urbanOrRural: "RURAL";
3417
3508
  village?: string | null | undefined;
3418
- }>, z.ZodObject<{
3509
+ }>, z.ZodUndefined, z.ZodObject<{
3419
3510
  country: z.ZodString;
3420
3511
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3421
3512
  state: z.ZodString;
@@ -3446,14 +3537,20 @@ export declare const EventDocument: z.ZodObject<{
3446
3537
  addressLine3?: string | null | undefined;
3447
3538
  postcodeOrZip?: string | null | undefined;
3448
3539
  }>]>>>;
3449
- createdAtLocation: z.ZodString;
3540
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3541
+ originalActionId: z.ZodOptional<z.ZodString>;
3450
3542
  }, {
3451
3543
  type: z.ZodLiteral<"ASSIGN">;
3452
3544
  assignedTo: z.ZodString;
3453
3545
  }>, "strip", z.ZodTypeAny, {
3454
3546
  type: "ASSIGN";
3455
3547
  id: string;
3456
- data: Record<string, string | number | boolean | {
3548
+ status: "Rejected" | "Requested" | "Accepted";
3549
+ transactionId: string;
3550
+ createdAt: string;
3551
+ createdBy: string;
3552
+ createdByRole: string;
3553
+ declaration: Record<string, string | number | boolean | {
3457
3554
  type: string;
3458
3555
  filename: string;
3459
3556
  originalFilename: string;
@@ -3490,12 +3587,10 @@ export declare const EventDocument: z.ZodObject<{
3490
3587
  option: string;
3491
3588
  filename: string;
3492
3589
  originalFilename: string;
3493
- }[]>;
3494
- createdAt: string;
3495
- createdBy: string;
3496
- createdAtLocation: string;
3590
+ }[] | [string, string] | undefined>;
3497
3591
  assignedTo: string;
3498
- metadata?: Record<string, string | number | boolean | {
3592
+ createdAtLocation?: string | null | undefined;
3593
+ annotation?: Record<string, string | number | boolean | {
3499
3594
  type: string;
3500
3595
  filename: string;
3501
3596
  originalFilename: string;
@@ -3532,11 +3627,17 @@ export declare const EventDocument: z.ZodObject<{
3532
3627
  option: string;
3533
3628
  filename: string;
3534
3629
  originalFilename: string;
3535
- }[]> | undefined;
3630
+ }[] | [string, string] | undefined> | undefined;
3631
+ originalActionId?: string | undefined;
3536
3632
  }, {
3537
3633
  type: "ASSIGN";
3538
3634
  id: string;
3539
- data: Record<string, string | number | boolean | {
3635
+ status: "Rejected" | "Requested" | "Accepted";
3636
+ transactionId: string;
3637
+ createdAt: string;
3638
+ createdBy: string;
3639
+ createdByRole: string;
3640
+ declaration: Record<string, string | number | boolean | {
3540
3641
  type: string;
3541
3642
  filename: string;
3542
3643
  originalFilename: string;
@@ -3573,12 +3674,10 @@ export declare const EventDocument: z.ZodObject<{
3573
3674
  option: string;
3574
3675
  filename: string;
3575
3676
  originalFilename: string;
3576
- }[]>;
3577
- createdAt: string;
3578
- createdBy: string;
3579
- createdAtLocation: string;
3677
+ }[] | [string, string] | undefined>;
3580
3678
  assignedTo: string;
3581
- metadata?: Record<string, string | number | boolean | {
3679
+ createdAtLocation?: string | null | undefined;
3680
+ annotation?: Record<string, string | number | boolean | {
3582
3681
  type: string;
3583
3682
  filename: string;
3584
3683
  originalFilename: string;
@@ -3615,12 +3714,16 @@ export declare const EventDocument: z.ZodObject<{
3615
3714
  option: string;
3616
3715
  filename: string;
3617
3716
  originalFilename: string;
3618
- }[]> | undefined;
3717
+ }[] | [string, string] | undefined> | undefined;
3718
+ originalActionId?: string | undefined;
3619
3719
  }>, z.ZodObject<z.objectUtil.extendShape<{
3620
3720
  id: z.ZodString;
3721
+ transactionId: z.ZodString;
3621
3722
  createdAt: z.ZodString;
3622
3723
  createdBy: z.ZodString;
3623
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3724
+ createdByRole: z.ZodString;
3725
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3726
+ 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<{
3624
3727
  filename: z.ZodString;
3625
3728
  originalFilename: z.ZodString;
3626
3729
  type: z.ZodString;
@@ -3703,7 +3806,7 @@ export declare const EventDocument: z.ZodObject<{
3703
3806
  province: string;
3704
3807
  urbanOrRural: "RURAL";
3705
3808
  village?: string | null | undefined;
3706
- }>, z.ZodObject<{
3809
+ }>, z.ZodUndefined, z.ZodObject<{
3707
3810
  country: z.ZodString;
3708
3811
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3709
3812
  state: z.ZodString;
@@ -3734,7 +3837,7 @@ export declare const EventDocument: z.ZodObject<{
3734
3837
  addressLine3?: string | null | undefined;
3735
3838
  postcodeOrZip?: string | null | undefined;
3736
3839
  }>]>>;
3737
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3840
+ 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<{
3738
3841
  filename: z.ZodString;
3739
3842
  originalFilename: z.ZodString;
3740
3843
  type: z.ZodString;
@@ -3817,7 +3920,7 @@ export declare const EventDocument: z.ZodObject<{
3817
3920
  province: string;
3818
3921
  urbanOrRural: "RURAL";
3819
3922
  village?: string | null | undefined;
3820
- }>, z.ZodObject<{
3923
+ }>, z.ZodUndefined, z.ZodObject<{
3821
3924
  country: z.ZodString;
3822
3925
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3823
3926
  state: z.ZodString;
@@ -3848,13 +3951,19 @@ export declare const EventDocument: z.ZodObject<{
3848
3951
  addressLine3?: string | null | undefined;
3849
3952
  postcodeOrZip?: string | null | undefined;
3850
3953
  }>]>>>;
3851
- createdAtLocation: z.ZodString;
3954
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3955
+ originalActionId: z.ZodOptional<z.ZodString>;
3852
3956
  }, {
3853
3957
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
3854
3958
  }>, "strip", z.ZodTypeAny, {
3855
3959
  type: "REQUEST_CORRECTION";
3856
3960
  id: string;
3857
- data: Record<string, string | number | boolean | {
3961
+ status: "Rejected" | "Requested" | "Accepted";
3962
+ transactionId: string;
3963
+ createdAt: string;
3964
+ createdBy: string;
3965
+ createdByRole: string;
3966
+ declaration: Record<string, string | number | boolean | {
3858
3967
  type: string;
3859
3968
  filename: string;
3860
3969
  originalFilename: string;
@@ -3891,11 +4000,9 @@ export declare const EventDocument: z.ZodObject<{
3891
4000
  option: string;
3892
4001
  filename: string;
3893
4002
  originalFilename: string;
3894
- }[]>;
3895
- createdAt: string;
3896
- createdBy: string;
3897
- createdAtLocation: string;
3898
- metadata?: Record<string, string | number | boolean | {
4003
+ }[] | [string, string] | undefined>;
4004
+ createdAtLocation?: string | null | undefined;
4005
+ annotation?: Record<string, string | number | boolean | {
3899
4006
  type: string;
3900
4007
  filename: string;
3901
4008
  originalFilename: string;
@@ -3932,11 +4039,17 @@ export declare const EventDocument: z.ZodObject<{
3932
4039
  option: string;
3933
4040
  filename: string;
3934
4041
  originalFilename: string;
3935
- }[]> | undefined;
4042
+ }[] | [string, string] | undefined> | undefined;
4043
+ originalActionId?: string | undefined;
3936
4044
  }, {
3937
4045
  type: "REQUEST_CORRECTION";
3938
4046
  id: string;
3939
- data: Record<string, string | number | boolean | {
4047
+ status: "Rejected" | "Requested" | "Accepted";
4048
+ transactionId: string;
4049
+ createdAt: string;
4050
+ createdBy: string;
4051
+ createdByRole: string;
4052
+ declaration: Record<string, string | number | boolean | {
3940
4053
  type: string;
3941
4054
  filename: string;
3942
4055
  originalFilename: string;
@@ -3973,11 +4086,9 @@ export declare const EventDocument: z.ZodObject<{
3973
4086
  option: string;
3974
4087
  filename: string;
3975
4088
  originalFilename: string;
3976
- }[]>;
3977
- createdAt: string;
3978
- createdBy: string;
3979
- createdAtLocation: string;
3980
- metadata?: Record<string, string | number | boolean | {
4089
+ }[] | [string, string] | undefined>;
4090
+ createdAtLocation?: string | null | undefined;
4091
+ annotation?: Record<string, string | number | boolean | {
3981
4092
  type: string;
3982
4093
  filename: string;
3983
4094
  originalFilename: string;
@@ -4014,12 +4125,16 @@ export declare const EventDocument: z.ZodObject<{
4014
4125
  option: string;
4015
4126
  filename: string;
4016
4127
  originalFilename: string;
4017
- }[]> | undefined;
4128
+ }[] | [string, string] | undefined> | undefined;
4129
+ originalActionId?: string | undefined;
4018
4130
  }>, z.ZodObject<z.objectUtil.extendShape<{
4019
4131
  id: z.ZodString;
4132
+ transactionId: z.ZodString;
4020
4133
  createdAt: z.ZodString;
4021
4134
  createdBy: z.ZodString;
4022
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4135
+ createdByRole: z.ZodString;
4136
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4137
+ 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<{
4023
4138
  filename: z.ZodString;
4024
4139
  originalFilename: z.ZodString;
4025
4140
  type: z.ZodString;
@@ -4102,7 +4217,7 @@ export declare const EventDocument: z.ZodObject<{
4102
4217
  province: string;
4103
4218
  urbanOrRural: "RURAL";
4104
4219
  village?: string | null | undefined;
4105
- }>, z.ZodObject<{
4220
+ }>, z.ZodUndefined, z.ZodObject<{
4106
4221
  country: z.ZodString;
4107
4222
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4108
4223
  state: z.ZodString;
@@ -4133,7 +4248,7 @@ export declare const EventDocument: z.ZodObject<{
4133
4248
  addressLine3?: string | null | undefined;
4134
4249
  postcodeOrZip?: string | null | undefined;
4135
4250
  }>]>>;
4136
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4251
+ 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<{
4137
4252
  filename: z.ZodString;
4138
4253
  originalFilename: z.ZodString;
4139
4254
  type: z.ZodString;
@@ -4216,7 +4331,7 @@ export declare const EventDocument: z.ZodObject<{
4216
4331
  province: string;
4217
4332
  urbanOrRural: "RURAL";
4218
4333
  village?: string | null | undefined;
4219
- }>, z.ZodObject<{
4334
+ }>, z.ZodUndefined, z.ZodObject<{
4220
4335
  country: z.ZodString;
4221
4336
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4222
4337
  state: z.ZodString;
@@ -4247,14 +4362,20 @@ export declare const EventDocument: z.ZodObject<{
4247
4362
  addressLine3?: string | null | undefined;
4248
4363
  postcodeOrZip?: string | null | undefined;
4249
4364
  }>]>>>;
4250
- createdAtLocation: z.ZodString;
4365
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4366
+ originalActionId: z.ZodOptional<z.ZodString>;
4251
4367
  }, {
4252
4368
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
4253
4369
  requestId: z.ZodString;
4254
4370
  }>, "strip", z.ZodTypeAny, {
4255
4371
  type: "APPROVE_CORRECTION";
4256
4372
  id: string;
4257
- data: Record<string, string | number | boolean | {
4373
+ status: "Rejected" | "Requested" | "Accepted";
4374
+ transactionId: string;
4375
+ createdAt: string;
4376
+ createdBy: string;
4377
+ createdByRole: string;
4378
+ declaration: Record<string, string | number | boolean | {
4258
4379
  type: string;
4259
4380
  filename: string;
4260
4381
  originalFilename: string;
@@ -4291,12 +4412,10 @@ export declare const EventDocument: z.ZodObject<{
4291
4412
  option: string;
4292
4413
  filename: string;
4293
4414
  originalFilename: string;
4294
- }[]>;
4295
- createdAt: string;
4296
- createdBy: string;
4297
- createdAtLocation: string;
4415
+ }[] | [string, string] | undefined>;
4298
4416
  requestId: string;
4299
- metadata?: Record<string, string | number | boolean | {
4417
+ createdAtLocation?: string | null | undefined;
4418
+ annotation?: Record<string, string | number | boolean | {
4300
4419
  type: string;
4301
4420
  filename: string;
4302
4421
  originalFilename: string;
@@ -4333,11 +4452,17 @@ export declare const EventDocument: z.ZodObject<{
4333
4452
  option: string;
4334
4453
  filename: string;
4335
4454
  originalFilename: string;
4336
- }[]> | undefined;
4455
+ }[] | [string, string] | undefined> | undefined;
4456
+ originalActionId?: string | undefined;
4337
4457
  }, {
4338
4458
  type: "APPROVE_CORRECTION";
4339
4459
  id: string;
4340
- data: Record<string, string | number | boolean | {
4460
+ status: "Rejected" | "Requested" | "Accepted";
4461
+ transactionId: string;
4462
+ createdAt: string;
4463
+ createdBy: string;
4464
+ createdByRole: string;
4465
+ declaration: Record<string, string | number | boolean | {
4341
4466
  type: string;
4342
4467
  filename: string;
4343
4468
  originalFilename: string;
@@ -4374,12 +4499,10 @@ export declare const EventDocument: z.ZodObject<{
4374
4499
  option: string;
4375
4500
  filename: string;
4376
4501
  originalFilename: string;
4377
- }[]>;
4378
- createdAt: string;
4379
- createdBy: string;
4380
- createdAtLocation: string;
4502
+ }[] | [string, string] | undefined>;
4381
4503
  requestId: string;
4382
- metadata?: Record<string, string | number | boolean | {
4504
+ createdAtLocation?: string | null | undefined;
4505
+ annotation?: Record<string, string | number | boolean | {
4383
4506
  type: string;
4384
4507
  filename: string;
4385
4508
  originalFilename: string;
@@ -4416,12 +4539,16 @@ export declare const EventDocument: z.ZodObject<{
4416
4539
  option: string;
4417
4540
  filename: string;
4418
4541
  originalFilename: string;
4419
- }[]> | undefined;
4542
+ }[] | [string, string] | undefined> | undefined;
4543
+ originalActionId?: string | undefined;
4420
4544
  }>, z.ZodObject<z.objectUtil.extendShape<{
4421
4545
  id: z.ZodString;
4546
+ transactionId: z.ZodString;
4422
4547
  createdAt: z.ZodString;
4423
4548
  createdBy: z.ZodString;
4424
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4549
+ createdByRole: z.ZodString;
4550
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4551
+ 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<{
4425
4552
  filename: z.ZodString;
4426
4553
  originalFilename: z.ZodString;
4427
4554
  type: z.ZodString;
@@ -4504,7 +4631,7 @@ export declare const EventDocument: z.ZodObject<{
4504
4631
  province: string;
4505
4632
  urbanOrRural: "RURAL";
4506
4633
  village?: string | null | undefined;
4507
- }>, z.ZodObject<{
4634
+ }>, z.ZodUndefined, z.ZodObject<{
4508
4635
  country: z.ZodString;
4509
4636
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4510
4637
  state: z.ZodString;
@@ -4535,7 +4662,7 @@ export declare const EventDocument: z.ZodObject<{
4535
4662
  addressLine3?: string | null | undefined;
4536
4663
  postcodeOrZip?: string | null | undefined;
4537
4664
  }>]>>;
4538
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4665
+ 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<{
4539
4666
  filename: z.ZodString;
4540
4667
  originalFilename: z.ZodString;
4541
4668
  type: z.ZodString;
@@ -4618,7 +4745,7 @@ export declare const EventDocument: z.ZodObject<{
4618
4745
  province: string;
4619
4746
  urbanOrRural: "RURAL";
4620
4747
  village?: string | null | undefined;
4621
- }>, z.ZodObject<{
4748
+ }>, z.ZodUndefined, z.ZodObject<{
4622
4749
  country: z.ZodString;
4623
4750
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4624
4751
  state: z.ZodString;
@@ -4649,14 +4776,20 @@ export declare const EventDocument: z.ZodObject<{
4649
4776
  addressLine3?: string | null | undefined;
4650
4777
  postcodeOrZip?: string | null | undefined;
4651
4778
  }>]>>>;
4652
- createdAtLocation: z.ZodString;
4779
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4780
+ originalActionId: z.ZodOptional<z.ZodString>;
4653
4781
  }, {
4654
4782
  type: z.ZodLiteral<"REJECT_CORRECTION">;
4655
4783
  requestId: z.ZodString;
4656
4784
  }>, "strip", z.ZodTypeAny, {
4657
4785
  type: "REJECT_CORRECTION";
4658
4786
  id: string;
4659
- data: Record<string, string | number | boolean | {
4787
+ status: "Rejected" | "Requested" | "Accepted";
4788
+ transactionId: string;
4789
+ createdAt: string;
4790
+ createdBy: string;
4791
+ createdByRole: string;
4792
+ declaration: Record<string, string | number | boolean | {
4660
4793
  type: string;
4661
4794
  filename: string;
4662
4795
  originalFilename: string;
@@ -4693,12 +4826,10 @@ export declare const EventDocument: z.ZodObject<{
4693
4826
  option: string;
4694
4827
  filename: string;
4695
4828
  originalFilename: string;
4696
- }[]>;
4697
- createdAt: string;
4698
- createdBy: string;
4699
- createdAtLocation: string;
4829
+ }[] | [string, string] | undefined>;
4700
4830
  requestId: string;
4701
- metadata?: Record<string, string | number | boolean | {
4831
+ createdAtLocation?: string | null | undefined;
4832
+ annotation?: Record<string, string | number | boolean | {
4702
4833
  type: string;
4703
4834
  filename: string;
4704
4835
  originalFilename: string;
@@ -4735,11 +4866,17 @@ export declare const EventDocument: z.ZodObject<{
4735
4866
  option: string;
4736
4867
  filename: string;
4737
4868
  originalFilename: string;
4738
- }[]> | undefined;
4869
+ }[] | [string, string] | undefined> | undefined;
4870
+ originalActionId?: string | undefined;
4739
4871
  }, {
4740
4872
  type: "REJECT_CORRECTION";
4741
4873
  id: string;
4742
- data: Record<string, string | number | boolean | {
4874
+ status: "Rejected" | "Requested" | "Accepted";
4875
+ transactionId: string;
4876
+ createdAt: string;
4877
+ createdBy: string;
4878
+ createdByRole: string;
4879
+ declaration: Record<string, string | number | boolean | {
4743
4880
  type: string;
4744
4881
  filename: string;
4745
4882
  originalFilename: string;
@@ -4776,12 +4913,10 @@ export declare const EventDocument: z.ZodObject<{
4776
4913
  option: string;
4777
4914
  filename: string;
4778
4915
  originalFilename: string;
4779
- }[]>;
4780
- createdAt: string;
4781
- createdBy: string;
4782
- createdAtLocation: string;
4916
+ }[] | [string, string] | undefined>;
4783
4917
  requestId: string;
4784
- metadata?: Record<string, string | number | boolean | {
4918
+ createdAtLocation?: string | null | undefined;
4919
+ annotation?: Record<string, string | number | boolean | {
4785
4920
  type: string;
4786
4921
  filename: string;
4787
4922
  originalFilename: string;
@@ -4818,12 +4953,16 @@ export declare const EventDocument: z.ZodObject<{
4818
4953
  option: string;
4819
4954
  filename: string;
4820
4955
  originalFilename: string;
4821
- }[]> | undefined;
4956
+ }[] | [string, string] | undefined> | undefined;
4957
+ originalActionId?: string | undefined;
4822
4958
  }>, z.ZodObject<z.objectUtil.extendShape<{
4823
4959
  id: z.ZodString;
4960
+ transactionId: z.ZodString;
4824
4961
  createdAt: z.ZodString;
4825
4962
  createdBy: z.ZodString;
4826
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4963
+ createdByRole: z.ZodString;
4964
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4965
+ 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<{
4827
4966
  filename: z.ZodString;
4828
4967
  originalFilename: z.ZodString;
4829
4968
  type: z.ZodString;
@@ -4906,7 +5045,7 @@ export declare const EventDocument: z.ZodObject<{
4906
5045
  province: string;
4907
5046
  urbanOrRural: "RURAL";
4908
5047
  village?: string | null | undefined;
4909
- }>, z.ZodObject<{
5048
+ }>, z.ZodUndefined, z.ZodObject<{
4910
5049
  country: z.ZodString;
4911
5050
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4912
5051
  state: z.ZodString;
@@ -4937,7 +5076,7 @@ export declare const EventDocument: z.ZodObject<{
4937
5076
  addressLine3?: string | null | undefined;
4938
5077
  postcodeOrZip?: string | null | undefined;
4939
5078
  }>]>>;
4940
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5079
+ 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<{
4941
5080
  filename: z.ZodString;
4942
5081
  originalFilename: z.ZodString;
4943
5082
  type: z.ZodString;
@@ -5020,7 +5159,7 @@ export declare const EventDocument: z.ZodObject<{
5020
5159
  province: string;
5021
5160
  urbanOrRural: "RURAL";
5022
5161
  village?: string | null | undefined;
5023
- }>, z.ZodObject<{
5162
+ }>, z.ZodUndefined, z.ZodObject<{
5024
5163
  country: z.ZodString;
5025
5164
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5026
5165
  state: z.ZodString;
@@ -5051,13 +5190,20 @@ export declare const EventDocument: z.ZodObject<{
5051
5190
  addressLine3?: string | null | undefined;
5052
5191
  postcodeOrZip?: string | null | undefined;
5053
5192
  }>]>>>;
5054
- createdAtLocation: z.ZodString;
5193
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5194
+ originalActionId: z.ZodOptional<z.ZodString>;
5055
5195
  }, {
5056
5196
  type: z.ZodLiteral<"UNASSIGN">;
5197
+ assignedTo: z.ZodLiteral<null>;
5057
5198
  }>, "strip", z.ZodTypeAny, {
5058
5199
  type: "UNASSIGN";
5059
5200
  id: string;
5060
- data: Record<string, string | number | boolean | {
5201
+ status: "Rejected" | "Requested" | "Accepted";
5202
+ transactionId: string;
5203
+ createdAt: string;
5204
+ createdBy: string;
5205
+ createdByRole: string;
5206
+ declaration: Record<string, string | number | boolean | {
5061
5207
  type: string;
5062
5208
  filename: string;
5063
5209
  originalFilename: string;
@@ -5094,11 +5240,10 @@ export declare const EventDocument: z.ZodObject<{
5094
5240
  option: string;
5095
5241
  filename: string;
5096
5242
  originalFilename: string;
5097
- }[]>;
5098
- createdAt: string;
5099
- createdBy: string;
5100
- createdAtLocation: string;
5101
- metadata?: Record<string, string | number | boolean | {
5243
+ }[] | [string, string] | undefined>;
5244
+ assignedTo: null;
5245
+ createdAtLocation?: string | null | undefined;
5246
+ annotation?: Record<string, string | number | boolean | {
5102
5247
  type: string;
5103
5248
  filename: string;
5104
5249
  originalFilename: string;
@@ -5135,11 +5280,17 @@ export declare const EventDocument: z.ZodObject<{
5135
5280
  option: string;
5136
5281
  filename: string;
5137
5282
  originalFilename: string;
5138
- }[]> | undefined;
5283
+ }[] | [string, string] | undefined> | undefined;
5284
+ originalActionId?: string | undefined;
5139
5285
  }, {
5140
5286
  type: "UNASSIGN";
5141
5287
  id: string;
5142
- data: Record<string, string | number | boolean | {
5288
+ status: "Rejected" | "Requested" | "Accepted";
5289
+ transactionId: string;
5290
+ createdAt: string;
5291
+ createdBy: string;
5292
+ createdByRole: string;
5293
+ declaration: Record<string, string | number | boolean | {
5143
5294
  type: string;
5144
5295
  filename: string;
5145
5296
  originalFilename: string;
@@ -5176,11 +5327,10 @@ export declare const EventDocument: z.ZodObject<{
5176
5327
  option: string;
5177
5328
  filename: string;
5178
5329
  originalFilename: string;
5179
- }[]>;
5180
- createdAt: string;
5181
- createdBy: string;
5182
- createdAtLocation: string;
5183
- metadata?: Record<string, string | number | boolean | {
5330
+ }[] | [string, string] | undefined>;
5331
+ assignedTo: null;
5332
+ createdAtLocation?: string | null | undefined;
5333
+ annotation?: Record<string, string | number | boolean | {
5184
5334
  type: string;
5185
5335
  filename: string;
5186
5336
  originalFilename: string;
@@ -5217,12 +5367,16 @@ export declare const EventDocument: z.ZodObject<{
5217
5367
  option: string;
5218
5368
  filename: string;
5219
5369
  originalFilename: string;
5220
- }[]> | undefined;
5370
+ }[] | [string, string] | undefined> | undefined;
5371
+ originalActionId?: string | undefined;
5221
5372
  }>, z.ZodObject<z.objectUtil.extendShape<{
5222
5373
  id: z.ZodString;
5374
+ transactionId: z.ZodString;
5223
5375
  createdAt: z.ZodString;
5224
5376
  createdBy: z.ZodString;
5225
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5377
+ createdByRole: z.ZodString;
5378
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5379
+ 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<{
5226
5380
  filename: z.ZodString;
5227
5381
  originalFilename: z.ZodString;
5228
5382
  type: z.ZodString;
@@ -5305,7 +5459,7 @@ export declare const EventDocument: z.ZodObject<{
5305
5459
  province: string;
5306
5460
  urbanOrRural: "RURAL";
5307
5461
  village?: string | null | undefined;
5308
- }>, z.ZodObject<{
5462
+ }>, z.ZodUndefined, z.ZodObject<{
5309
5463
  country: z.ZodString;
5310
5464
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5311
5465
  state: z.ZodString;
@@ -5336,7 +5490,7 @@ export declare const EventDocument: z.ZodObject<{
5336
5490
  addressLine3?: string | null | undefined;
5337
5491
  postcodeOrZip?: string | null | undefined;
5338
5492
  }>]>>;
5339
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5493
+ 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<{
5340
5494
  filename: z.ZodString;
5341
5495
  originalFilename: z.ZodString;
5342
5496
  type: z.ZodString;
@@ -5419,7 +5573,7 @@ export declare const EventDocument: z.ZodObject<{
5419
5573
  province: string;
5420
5574
  urbanOrRural: "RURAL";
5421
5575
  village?: string | null | undefined;
5422
- }>, z.ZodObject<{
5576
+ }>, z.ZodUndefined, z.ZodObject<{
5423
5577
  country: z.ZodString;
5424
5578
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5425
5579
  state: z.ZodString;
@@ -5450,13 +5604,19 @@ export declare const EventDocument: z.ZodObject<{
5450
5604
  addressLine3?: string | null | undefined;
5451
5605
  postcodeOrZip?: string | null | undefined;
5452
5606
  }>]>>>;
5453
- createdAtLocation: z.ZodString;
5607
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5608
+ originalActionId: z.ZodOptional<z.ZodString>;
5454
5609
  }, {
5455
5610
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
5456
5611
  }>, "strip", z.ZodTypeAny, {
5457
5612
  type: "PRINT_CERTIFICATE";
5458
5613
  id: string;
5459
- data: Record<string, string | number | boolean | {
5614
+ status: "Rejected" | "Requested" | "Accepted";
5615
+ transactionId: string;
5616
+ createdAt: string;
5617
+ createdBy: string;
5618
+ createdByRole: string;
5619
+ declaration: Record<string, string | number | boolean | {
5460
5620
  type: string;
5461
5621
  filename: string;
5462
5622
  originalFilename: string;
@@ -5493,11 +5653,9 @@ export declare const EventDocument: z.ZodObject<{
5493
5653
  option: string;
5494
5654
  filename: string;
5495
5655
  originalFilename: string;
5496
- }[]>;
5497
- createdAt: string;
5498
- createdBy: string;
5499
- createdAtLocation: string;
5500
- metadata?: Record<string, string | number | boolean | {
5656
+ }[] | [string, string] | undefined>;
5657
+ createdAtLocation?: string | null | undefined;
5658
+ annotation?: Record<string, string | number | boolean | {
5501
5659
  type: string;
5502
5660
  filename: string;
5503
5661
  originalFilename: string;
@@ -5534,11 +5692,17 @@ export declare const EventDocument: z.ZodObject<{
5534
5692
  option: string;
5535
5693
  filename: string;
5536
5694
  originalFilename: string;
5537
- }[]> | undefined;
5695
+ }[] | [string, string] | undefined> | undefined;
5696
+ originalActionId?: string | undefined;
5538
5697
  }, {
5539
5698
  type: "PRINT_CERTIFICATE";
5540
5699
  id: string;
5541
- data: Record<string, string | number | boolean | {
5700
+ status: "Rejected" | "Requested" | "Accepted";
5701
+ transactionId: string;
5702
+ createdAt: string;
5703
+ createdBy: string;
5704
+ createdByRole: string;
5705
+ declaration: Record<string, string | number | boolean | {
5542
5706
  type: string;
5543
5707
  filename: string;
5544
5708
  originalFilename: string;
@@ -5575,11 +5739,9 @@ export declare const EventDocument: z.ZodObject<{
5575
5739
  option: string;
5576
5740
  filename: string;
5577
5741
  originalFilename: string;
5578
- }[]>;
5579
- createdAt: string;
5580
- createdBy: string;
5581
- createdAtLocation: string;
5582
- metadata?: Record<string, string | number | boolean | {
5742
+ }[] | [string, string] | undefined>;
5743
+ createdAtLocation?: string | null | undefined;
5744
+ annotation?: Record<string, string | number | boolean | {
5583
5745
  type: string;
5584
5746
  filename: string;
5585
5747
  originalFilename: string;
@@ -5616,12 +5778,16 @@ export declare const EventDocument: z.ZodObject<{
5616
5778
  option: string;
5617
5779
  filename: string;
5618
5780
  originalFilename: string;
5619
- }[]> | undefined;
5781
+ }[] | [string, string] | undefined> | undefined;
5782
+ originalActionId?: string | undefined;
5620
5783
  }>, z.ZodObject<z.objectUtil.extendShape<{
5621
5784
  id: z.ZodString;
5785
+ transactionId: z.ZodString;
5622
5786
  createdAt: z.ZodString;
5623
5787
  createdBy: z.ZodString;
5624
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5788
+ createdByRole: z.ZodString;
5789
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5790
+ 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<{
5625
5791
  filename: z.ZodString;
5626
5792
  originalFilename: z.ZodString;
5627
5793
  type: z.ZodString;
@@ -5704,7 +5870,7 @@ export declare const EventDocument: z.ZodObject<{
5704
5870
  province: string;
5705
5871
  urbanOrRural: "RURAL";
5706
5872
  village?: string | null | undefined;
5707
- }>, z.ZodObject<{
5873
+ }>, z.ZodUndefined, z.ZodObject<{
5708
5874
  country: z.ZodString;
5709
5875
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5710
5876
  state: z.ZodString;
@@ -5735,7 +5901,7 @@ export declare const EventDocument: z.ZodObject<{
5735
5901
  addressLine3?: string | null | undefined;
5736
5902
  postcodeOrZip?: string | null | undefined;
5737
5903
  }>]>>;
5738
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5904
+ 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<{
5739
5905
  filename: z.ZodString;
5740
5906
  originalFilename: z.ZodString;
5741
5907
  type: z.ZodString;
@@ -5818,7 +5984,7 @@ export declare const EventDocument: z.ZodObject<{
5818
5984
  province: string;
5819
5985
  urbanOrRural: "RURAL";
5820
5986
  village?: string | null | undefined;
5821
- }>, z.ZodObject<{
5987
+ }>, z.ZodUndefined, z.ZodObject<{
5822
5988
  country: z.ZodString;
5823
5989
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5824
5990
  state: z.ZodString;
@@ -5849,13 +6015,19 @@ export declare const EventDocument: z.ZodObject<{
5849
6015
  addressLine3?: string | null | undefined;
5850
6016
  postcodeOrZip?: string | null | undefined;
5851
6017
  }>]>>>;
5852
- createdAtLocation: z.ZodString;
6018
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6019
+ originalActionId: z.ZodOptional<z.ZodString>;
5853
6020
  }, {
5854
- type: z.ZodLiteral<"CUSTOM">;
6021
+ type: z.ZodLiteral<"READ">;
5855
6022
  }>, "strip", z.ZodTypeAny, {
5856
- type: "CUSTOM";
6023
+ type: "READ";
5857
6024
  id: string;
5858
- data: Record<string, string | number | boolean | {
6025
+ status: "Rejected" | "Requested" | "Accepted";
6026
+ transactionId: string;
6027
+ createdAt: string;
6028
+ createdBy: string;
6029
+ createdByRole: string;
6030
+ declaration: Record<string, string | number | boolean | {
5859
6031
  type: string;
5860
6032
  filename: string;
5861
6033
  originalFilename: string;
@@ -5892,11 +6064,9 @@ export declare const EventDocument: z.ZodObject<{
5892
6064
  option: string;
5893
6065
  filename: string;
5894
6066
  originalFilename: string;
5895
- }[]>;
5896
- createdAt: string;
5897
- createdBy: string;
5898
- createdAtLocation: string;
5899
- metadata?: Record<string, string | number | boolean | {
6067
+ }[] | [string, string] | undefined>;
6068
+ createdAtLocation?: string | null | undefined;
6069
+ annotation?: Record<string, string | number | boolean | {
5900
6070
  type: string;
5901
6071
  filename: string;
5902
6072
  originalFilename: string;
@@ -5933,11 +6103,17 @@ export declare const EventDocument: z.ZodObject<{
5933
6103
  option: string;
5934
6104
  filename: string;
5935
6105
  originalFilename: string;
5936
- }[]> | undefined;
6106
+ }[] | [string, string] | undefined> | undefined;
6107
+ originalActionId?: string | undefined;
5937
6108
  }, {
5938
- type: "CUSTOM";
6109
+ type: "READ";
5939
6110
  id: string;
5940
- data: Record<string, string | number | boolean | {
6111
+ status: "Rejected" | "Requested" | "Accepted";
6112
+ transactionId: string;
6113
+ createdAt: string;
6114
+ createdBy: string;
6115
+ createdByRole: string;
6116
+ declaration: Record<string, string | number | boolean | {
5941
6117
  type: string;
5942
6118
  filename: string;
5943
6119
  originalFilename: string;
@@ -5974,11 +6150,9 @@ export declare const EventDocument: z.ZodObject<{
5974
6150
  option: string;
5975
6151
  filename: string;
5976
6152
  originalFilename: string;
5977
- }[]>;
5978
- createdAt: string;
5979
- createdBy: string;
5980
- createdAtLocation: string;
5981
- metadata?: Record<string, string | number | boolean | {
6153
+ }[] | [string, string] | undefined>;
6154
+ createdAtLocation?: string | null | undefined;
6155
+ annotation?: Record<string, string | number | boolean | {
5982
6156
  type: string;
5983
6157
  filename: string;
5984
6158
  originalFilename: string;
@@ -6015,19 +6189,284 @@ export declare const EventDocument: z.ZodObject<{
6015
6189
  option: string;
6016
6190
  filename: string;
6017
6191
  originalFilename: string;
6018
- }[]> | undefined;
6192
+ }[] | [string, string] | undefined> | undefined;
6193
+ originalActionId?: string | undefined;
6194
+ }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6195
+ id: z.ZodString;
6196
+ transactionId: z.ZodString;
6197
+ createdAt: z.ZodString;
6198
+ createdBy: z.ZodString;
6199
+ createdByRole: z.ZodString;
6200
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6201
+ 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<{
6202
+ filename: z.ZodString;
6203
+ originalFilename: z.ZodString;
6204
+ type: z.ZodString;
6205
+ }, "strip", z.ZodTypeAny, {
6206
+ type: string;
6207
+ filename: string;
6208
+ originalFilename: string;
6209
+ }, {
6210
+ type: string;
6211
+ filename: string;
6212
+ originalFilename: string;
6213
+ }>, z.ZodArray<z.ZodObject<{
6214
+ filename: z.ZodString;
6215
+ originalFilename: z.ZodString;
6216
+ type: z.ZodString;
6217
+ option: z.ZodString;
6218
+ }, "strip", z.ZodTypeAny, {
6219
+ type: string;
6220
+ option: string;
6221
+ filename: string;
6222
+ originalFilename: string;
6223
+ }, {
6224
+ type: string;
6225
+ option: string;
6226
+ filename: string;
6227
+ originalFilename: string;
6228
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6229
+ country: z.ZodString;
6230
+ addressType: z.ZodLiteral<"DOMESTIC">;
6231
+ province: z.ZodString;
6232
+ district: z.ZodString;
6233
+ }, {
6234
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6235
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6236
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6237
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6238
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6239
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6240
+ }>, "strip", z.ZodTypeAny, {
6241
+ country: string;
6242
+ district: string;
6243
+ addressType: "DOMESTIC";
6244
+ province: string;
6245
+ urbanOrRural: "URBAN";
6246
+ number?: string | null | undefined;
6247
+ town?: string | null | undefined;
6248
+ residentialArea?: string | null | undefined;
6249
+ street?: string | null | undefined;
6250
+ zipCode?: string | null | undefined;
6251
+ }, {
6252
+ country: string;
6253
+ district: string;
6254
+ addressType: "DOMESTIC";
6255
+ province: string;
6256
+ urbanOrRural: "URBAN";
6257
+ number?: string | null | undefined;
6258
+ town?: string | null | undefined;
6259
+ residentialArea?: string | null | undefined;
6260
+ street?: string | null | undefined;
6261
+ zipCode?: string | null | undefined;
6262
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6263
+ country: z.ZodString;
6264
+ addressType: z.ZodLiteral<"DOMESTIC">;
6265
+ province: z.ZodString;
6266
+ district: z.ZodString;
6267
+ }, {
6268
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6269
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6270
+ }>, "strip", z.ZodTypeAny, {
6271
+ country: string;
6272
+ district: string;
6273
+ addressType: "DOMESTIC";
6274
+ province: string;
6275
+ urbanOrRural: "RURAL";
6276
+ village?: string | null | undefined;
6277
+ }, {
6278
+ country: string;
6279
+ district: string;
6280
+ addressType: "DOMESTIC";
6281
+ province: string;
6282
+ urbanOrRural: "RURAL";
6283
+ village?: string | null | undefined;
6284
+ }>, z.ZodUndefined, z.ZodObject<{
6285
+ country: z.ZodString;
6286
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6287
+ state: z.ZodString;
6288
+ district2: z.ZodString;
6289
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6290
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6291
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6292
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6293
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6294
+ }, "strip", z.ZodTypeAny, {
6295
+ country: string;
6296
+ state: string;
6297
+ addressType: "INTERNATIONAL";
6298
+ district2: string;
6299
+ cityOrTown?: string | null | undefined;
6300
+ addressLine1?: string | null | undefined;
6301
+ addressLine2?: string | null | undefined;
6302
+ addressLine3?: string | null | undefined;
6303
+ postcodeOrZip?: string | null | undefined;
6304
+ }, {
6305
+ country: string;
6306
+ state: string;
6307
+ addressType: "INTERNATIONAL";
6308
+ district2: string;
6309
+ cityOrTown?: string | null | undefined;
6310
+ addressLine1?: string | null | undefined;
6311
+ addressLine2?: string | null | undefined;
6312
+ addressLine3?: string | null | undefined;
6313
+ postcodeOrZip?: string | null | undefined;
6314
+ }>]>>;
6315
+ 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<{
6316
+ filename: z.ZodString;
6317
+ originalFilename: z.ZodString;
6318
+ type: z.ZodString;
6319
+ }, "strip", z.ZodTypeAny, {
6320
+ type: string;
6321
+ filename: string;
6322
+ originalFilename: string;
6323
+ }, {
6324
+ type: string;
6325
+ filename: string;
6326
+ originalFilename: string;
6327
+ }>, z.ZodArray<z.ZodObject<{
6328
+ filename: z.ZodString;
6329
+ originalFilename: z.ZodString;
6330
+ type: z.ZodString;
6331
+ option: z.ZodString;
6332
+ }, "strip", z.ZodTypeAny, {
6333
+ type: string;
6334
+ option: string;
6335
+ filename: string;
6336
+ originalFilename: string;
6337
+ }, {
6338
+ type: string;
6339
+ option: string;
6340
+ filename: string;
6341
+ originalFilename: string;
6342
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6343
+ country: z.ZodString;
6344
+ addressType: z.ZodLiteral<"DOMESTIC">;
6345
+ province: z.ZodString;
6346
+ district: z.ZodString;
6347
+ }, {
6348
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6349
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6350
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6351
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6352
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6353
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6354
+ }>, "strip", z.ZodTypeAny, {
6355
+ country: string;
6356
+ district: string;
6357
+ addressType: "DOMESTIC";
6358
+ province: string;
6359
+ urbanOrRural: "URBAN";
6360
+ number?: string | null | undefined;
6361
+ town?: string | null | undefined;
6362
+ residentialArea?: string | null | undefined;
6363
+ street?: string | null | undefined;
6364
+ zipCode?: string | null | undefined;
6365
+ }, {
6366
+ country: string;
6367
+ district: string;
6368
+ addressType: "DOMESTIC";
6369
+ province: string;
6370
+ urbanOrRural: "URBAN";
6371
+ number?: string | null | undefined;
6372
+ town?: string | null | undefined;
6373
+ residentialArea?: string | null | undefined;
6374
+ street?: string | null | undefined;
6375
+ zipCode?: string | null | undefined;
6376
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6377
+ country: z.ZodString;
6378
+ addressType: z.ZodLiteral<"DOMESTIC">;
6379
+ province: z.ZodString;
6380
+ district: z.ZodString;
6381
+ }, {
6382
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6383
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6384
+ }>, "strip", z.ZodTypeAny, {
6385
+ country: string;
6386
+ district: string;
6387
+ addressType: "DOMESTIC";
6388
+ province: string;
6389
+ urbanOrRural: "RURAL";
6390
+ village?: string | null | undefined;
6391
+ }, {
6392
+ country: string;
6393
+ district: string;
6394
+ addressType: "DOMESTIC";
6395
+ province: string;
6396
+ urbanOrRural: "RURAL";
6397
+ village?: string | null | undefined;
6398
+ }>, z.ZodUndefined, z.ZodObject<{
6399
+ country: z.ZodString;
6400
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6401
+ state: z.ZodString;
6402
+ district2: z.ZodString;
6403
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6404
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6405
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6406
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6407
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6408
+ }, "strip", z.ZodTypeAny, {
6409
+ country: string;
6410
+ state: string;
6411
+ addressType: "INTERNATIONAL";
6412
+ district2: string;
6413
+ cityOrTown?: string | null | undefined;
6414
+ addressLine1?: string | null | undefined;
6415
+ addressLine2?: string | null | undefined;
6416
+ addressLine3?: string | null | undefined;
6417
+ postcodeOrZip?: string | null | undefined;
6418
+ }, {
6419
+ country: string;
6420
+ state: string;
6421
+ addressType: "INTERNATIONAL";
6422
+ district2: string;
6423
+ cityOrTown?: string | null | undefined;
6424
+ addressLine1?: string | null | undefined;
6425
+ addressLine2?: string | null | undefined;
6426
+ addressLine3?: string | null | undefined;
6427
+ postcodeOrZip?: string | null | undefined;
6428
+ }>]>>>;
6429
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6430
+ originalActionId: z.ZodOptional<z.ZodString>;
6431
+ }, "declaration" | "annotation">, {
6432
+ type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
6433
+ status: z.ZodLiteral<"Rejected">;
6434
+ }>, "strip", z.ZodTypeAny, {
6435
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6436
+ id: string;
6437
+ status: "Rejected";
6438
+ transactionId: string;
6439
+ createdAt: string;
6440
+ createdBy: string;
6441
+ createdByRole: string;
6442
+ createdAtLocation?: string | null | undefined;
6443
+ originalActionId?: string | undefined;
6444
+ }, {
6445
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6446
+ id: string;
6447
+ status: "Rejected";
6448
+ transactionId: string;
6449
+ createdAt: string;
6450
+ createdBy: string;
6451
+ createdByRole: string;
6452
+ createdAtLocation?: string | null | undefined;
6453
+ originalActionId?: string | undefined;
6019
6454
  }>]>, "many">;
6020
6455
  trackingId: z.ZodString;
6021
6456
  }, "strip", z.ZodTypeAny, {
6022
6457
  type: string;
6023
6458
  id: string;
6024
6459
  createdAt: string;
6025
- trackingId: string;
6026
6460
  updatedAt: string;
6027
6461
  actions: ({
6028
6462
  type: "ASSIGN";
6029
6463
  id: string;
6030
- data: Record<string, string | number | boolean | {
6464
+ status: "Rejected" | "Requested" | "Accepted";
6465
+ transactionId: string;
6466
+ createdAt: string;
6467
+ createdBy: string;
6468
+ createdByRole: string;
6469
+ declaration: Record<string, string | number | boolean | {
6031
6470
  type: string;
6032
6471
  filename: string;
6033
6472
  originalFilename: string;
@@ -6064,12 +6503,10 @@ export declare const EventDocument: z.ZodObject<{
6064
6503
  option: string;
6065
6504
  filename: string;
6066
6505
  originalFilename: string;
6067
- }[]>;
6068
- createdAt: string;
6069
- createdBy: string;
6070
- createdAtLocation: string;
6506
+ }[] | [string, string] | undefined>;
6071
6507
  assignedTo: string;
6072
- metadata?: Record<string, string | number | boolean | {
6508
+ createdAtLocation?: string | null | undefined;
6509
+ annotation?: Record<string, string | number | boolean | {
6073
6510
  type: string;
6074
6511
  filename: string;
6075
6512
  originalFilename: string;
@@ -6106,11 +6543,17 @@ export declare const EventDocument: z.ZodObject<{
6106
6543
  option: string;
6107
6544
  filename: string;
6108
6545
  originalFilename: string;
6109
- }[]> | undefined;
6546
+ }[] | [string, string] | undefined> | undefined;
6547
+ originalActionId?: string | undefined;
6110
6548
  } | {
6111
6549
  type: "UNASSIGN";
6112
6550
  id: string;
6113
- data: Record<string, string | number | boolean | {
6551
+ status: "Rejected" | "Requested" | "Accepted";
6552
+ transactionId: string;
6553
+ createdAt: string;
6554
+ createdBy: string;
6555
+ createdByRole: string;
6556
+ declaration: Record<string, string | number | boolean | {
6114
6557
  type: string;
6115
6558
  filename: string;
6116
6559
  originalFilename: string;
@@ -6147,11 +6590,10 @@ export declare const EventDocument: z.ZodObject<{
6147
6590
  option: string;
6148
6591
  filename: string;
6149
6592
  originalFilename: string;
6150
- }[]>;
6151
- createdAt: string;
6152
- createdBy: string;
6153
- createdAtLocation: string;
6154
- metadata?: Record<string, string | number | boolean | {
6593
+ }[] | [string, string] | undefined>;
6594
+ assignedTo: null;
6595
+ createdAtLocation?: string | null | undefined;
6596
+ annotation?: Record<string, string | number | boolean | {
6155
6597
  type: string;
6156
6598
  filename: string;
6157
6599
  originalFilename: string;
@@ -6188,11 +6630,17 @@ export declare const EventDocument: z.ZodObject<{
6188
6630
  option: string;
6189
6631
  filename: string;
6190
6632
  originalFilename: string;
6191
- }[]> | undefined;
6633
+ }[] | [string, string] | undefined> | undefined;
6634
+ originalActionId?: string | undefined;
6192
6635
  } | {
6193
6636
  type: "REGISTER";
6194
6637
  id: string;
6195
- data: Record<string, string | number | boolean | {
6638
+ status: "Rejected" | "Requested" | "Accepted";
6639
+ transactionId: string;
6640
+ createdAt: string;
6641
+ createdBy: string;
6642
+ createdByRole: string;
6643
+ declaration: Record<string, string | number | boolean | {
6196
6644
  type: string;
6197
6645
  filename: string;
6198
6646
  originalFilename: string;
@@ -6229,15 +6677,9 @@ export declare const EventDocument: z.ZodObject<{
6229
6677
  option: string;
6230
6678
  filename: string;
6231
6679
  originalFilename: string;
6232
- }[]>;
6233
- createdAt: string;
6234
- createdBy: string;
6235
- createdAtLocation: string;
6236
- identifiers: {
6237
- trackingId: string;
6238
- registrationNumber: string;
6239
- };
6240
- metadata?: Record<string, string | number | boolean | {
6680
+ }[] | [string, string] | undefined>;
6681
+ createdAtLocation?: string | null | undefined;
6682
+ annotation?: Record<string, string | number | boolean | {
6241
6683
  type: string;
6242
6684
  filename: string;
6243
6685
  originalFilename: string;
@@ -6274,11 +6716,18 @@ export declare const EventDocument: z.ZodObject<{
6274
6716
  option: string;
6275
6717
  filename: string;
6276
6718
  originalFilename: string;
6277
- }[]> | undefined;
6719
+ }[] | [string, string] | undefined> | undefined;
6720
+ originalActionId?: string | undefined;
6721
+ registrationNumber?: string | undefined;
6278
6722
  } | {
6279
6723
  type: "DECLARE";
6280
6724
  id: string;
6281
- data: Record<string, string | number | boolean | {
6725
+ status: "Rejected" | "Requested" | "Accepted";
6726
+ transactionId: string;
6727
+ createdAt: string;
6728
+ createdBy: string;
6729
+ createdByRole: string;
6730
+ declaration: Record<string, string | number | boolean | {
6282
6731
  type: string;
6283
6732
  filename: string;
6284
6733
  originalFilename: string;
@@ -6315,11 +6764,9 @@ export declare const EventDocument: z.ZodObject<{
6315
6764
  option: string;
6316
6765
  filename: string;
6317
6766
  originalFilename: string;
6318
- }[]>;
6319
- createdAt: string;
6320
- createdBy: string;
6321
- createdAtLocation: string;
6322
- metadata?: Record<string, string | number | boolean | {
6767
+ }[] | [string, string] | undefined>;
6768
+ createdAtLocation?: string | null | undefined;
6769
+ annotation?: Record<string, string | number | boolean | {
6323
6770
  type: string;
6324
6771
  filename: string;
6325
6772
  originalFilename: string;
@@ -6356,11 +6803,17 @@ export declare const EventDocument: z.ZodObject<{
6356
6803
  option: string;
6357
6804
  filename: string;
6358
6805
  originalFilename: string;
6359
- }[]> | undefined;
6806
+ }[] | [string, string] | undefined> | undefined;
6807
+ originalActionId?: string | undefined;
6360
6808
  } | {
6361
6809
  type: "VALIDATE";
6362
6810
  id: string;
6363
- data: Record<string, string | number | boolean | {
6811
+ status: "Rejected" | "Requested" | "Accepted";
6812
+ transactionId: string;
6813
+ createdAt: string;
6814
+ createdBy: string;
6815
+ createdByRole: string;
6816
+ declaration: Record<string, string | number | boolean | {
6364
6817
  type: string;
6365
6818
  filename: string;
6366
6819
  originalFilename: string;
@@ -6397,11 +6850,9 @@ export declare const EventDocument: z.ZodObject<{
6397
6850
  option: string;
6398
6851
  filename: string;
6399
6852
  originalFilename: string;
6400
- }[]>;
6401
- createdAt: string;
6402
- createdBy: string;
6403
- createdAtLocation: string;
6404
- metadata?: Record<string, string | number | boolean | {
6853
+ }[] | [string, string] | undefined>;
6854
+ createdAtLocation?: string | null | undefined;
6855
+ annotation?: Record<string, string | number | boolean | {
6405
6856
  type: string;
6406
6857
  filename: string;
6407
6858
  originalFilename: string;
@@ -6438,11 +6889,17 @@ export declare const EventDocument: z.ZodObject<{
6438
6889
  option: string;
6439
6890
  filename: string;
6440
6891
  originalFilename: string;
6441
- }[]> | undefined;
6892
+ }[] | [string, string] | undefined> | undefined;
6893
+ originalActionId?: string | undefined;
6442
6894
  } | {
6443
6895
  type: "REJECT";
6444
6896
  id: string;
6445
- data: Record<string, string | number | boolean | {
6897
+ status: "Rejected" | "Requested" | "Accepted";
6898
+ transactionId: string;
6899
+ createdAt: string;
6900
+ createdBy: string;
6901
+ createdByRole: string;
6902
+ declaration: Record<string, string | number | boolean | {
6446
6903
  type: string;
6447
6904
  filename: string;
6448
6905
  originalFilename: string;
@@ -6479,11 +6936,9 @@ export declare const EventDocument: z.ZodObject<{
6479
6936
  option: string;
6480
6937
  filename: string;
6481
6938
  originalFilename: string;
6482
- }[]>;
6483
- createdAt: string;
6484
- createdBy: string;
6485
- createdAtLocation: string;
6486
- metadata?: Record<string, string | number | boolean | {
6939
+ }[] | [string, string] | undefined>;
6940
+ createdAtLocation?: string | null | undefined;
6941
+ annotation?: Record<string, string | number | boolean | {
6487
6942
  type: string;
6488
6943
  filename: string;
6489
6944
  originalFilename: string;
@@ -6520,11 +6975,17 @@ export declare const EventDocument: z.ZodObject<{
6520
6975
  option: string;
6521
6976
  filename: string;
6522
6977
  originalFilename: string;
6523
- }[]> | undefined;
6978
+ }[] | [string, string] | undefined> | undefined;
6979
+ originalActionId?: string | undefined;
6524
6980
  } | {
6525
6981
  type: "MARKED_AS_DUPLICATE";
6526
6982
  id: string;
6527
- data: Record<string, string | number | boolean | {
6983
+ status: "Rejected" | "Requested" | "Accepted";
6984
+ transactionId: string;
6985
+ createdAt: string;
6986
+ createdBy: string;
6987
+ createdByRole: string;
6988
+ declaration: Record<string, string | number | boolean | {
6528
6989
  type: string;
6529
6990
  filename: string;
6530
6991
  originalFilename: string;
@@ -6561,11 +7022,9 @@ export declare const EventDocument: z.ZodObject<{
6561
7022
  option: string;
6562
7023
  filename: string;
6563
7024
  originalFilename: string;
6564
- }[]>;
6565
- createdAt: string;
6566
- createdBy: string;
6567
- createdAtLocation: string;
6568
- metadata?: Record<string, string | number | boolean | {
7025
+ }[] | [string, string] | undefined>;
7026
+ createdAtLocation?: string | null | undefined;
7027
+ annotation?: Record<string, string | number | boolean | {
6569
7028
  type: string;
6570
7029
  filename: string;
6571
7030
  originalFilename: string;
@@ -6602,11 +7061,17 @@ export declare const EventDocument: z.ZodObject<{
6602
7061
  option: string;
6603
7062
  filename: string;
6604
7063
  originalFilename: string;
6605
- }[]> | undefined;
7064
+ }[] | [string, string] | undefined> | undefined;
7065
+ originalActionId?: string | undefined;
6606
7066
  } | {
6607
7067
  type: "ARCHIVE";
6608
7068
  id: string;
6609
- data: Record<string, string | number | boolean | {
7069
+ status: "Rejected" | "Requested" | "Accepted";
7070
+ transactionId: string;
7071
+ createdAt: string;
7072
+ createdBy: string;
7073
+ createdByRole: string;
7074
+ declaration: Record<string, string | number | boolean | {
6610
7075
  type: string;
6611
7076
  filename: string;
6612
7077
  originalFilename: string;
@@ -6643,11 +7108,9 @@ export declare const EventDocument: z.ZodObject<{
6643
7108
  option: string;
6644
7109
  filename: string;
6645
7110
  originalFilename: string;
6646
- }[]>;
6647
- createdAt: string;
6648
- createdBy: string;
6649
- createdAtLocation: string;
6650
- metadata?: Record<string, string | number | boolean | {
7111
+ }[] | [string, string] | undefined>;
7112
+ createdAtLocation?: string | null | undefined;
7113
+ annotation?: Record<string, string | number | boolean | {
6651
7114
  type: string;
6652
7115
  filename: string;
6653
7116
  originalFilename: string;
@@ -6684,11 +7147,17 @@ export declare const EventDocument: z.ZodObject<{
6684
7147
  option: string;
6685
7148
  filename: string;
6686
7149
  originalFilename: string;
6687
- }[]> | undefined;
7150
+ }[] | [string, string] | undefined> | undefined;
7151
+ originalActionId?: string | undefined;
6688
7152
  } | {
6689
7153
  type: "CREATE";
6690
7154
  id: string;
6691
- data: Record<string, string | number | boolean | {
7155
+ status: "Rejected" | "Requested" | "Accepted";
7156
+ transactionId: string;
7157
+ createdAt: string;
7158
+ createdBy: string;
7159
+ createdByRole: string;
7160
+ declaration: Record<string, string | number | boolean | {
6692
7161
  type: string;
6693
7162
  filename: string;
6694
7163
  originalFilename: string;
@@ -6725,11 +7194,9 @@ export declare const EventDocument: z.ZodObject<{
6725
7194
  option: string;
6726
7195
  filename: string;
6727
7196
  originalFilename: string;
6728
- }[]>;
6729
- createdAt: string;
6730
- createdBy: string;
6731
- createdAtLocation: string;
6732
- metadata?: Record<string, string | number | boolean | {
7197
+ }[] | [string, string] | undefined>;
7198
+ createdAtLocation?: string | null | undefined;
7199
+ annotation?: Record<string, string | number | boolean | {
6733
7200
  type: string;
6734
7201
  filename: string;
6735
7202
  originalFilename: string;
@@ -6766,11 +7233,17 @@ export declare const EventDocument: z.ZodObject<{
6766
7233
  option: string;
6767
7234
  filename: string;
6768
7235
  originalFilename: string;
6769
- }[]> | undefined;
7236
+ }[] | [string, string] | undefined> | undefined;
7237
+ originalActionId?: string | undefined;
6770
7238
  } | {
6771
7239
  type: "NOTIFY";
6772
7240
  id: string;
6773
- data: Record<string, string | number | boolean | {
7241
+ status: "Rejected" | "Requested" | "Accepted";
7242
+ transactionId: string;
7243
+ createdAt: string;
7244
+ createdBy: string;
7245
+ createdByRole: string;
7246
+ declaration: Record<string, string | number | boolean | {
6774
7247
  type: string;
6775
7248
  filename: string;
6776
7249
  originalFilename: string;
@@ -6807,11 +7280,9 @@ export declare const EventDocument: z.ZodObject<{
6807
7280
  option: string;
6808
7281
  filename: string;
6809
7282
  originalFilename: string;
6810
- }[]>;
6811
- createdAt: string;
6812
- createdBy: string;
6813
- createdAtLocation: string;
6814
- metadata?: Record<string, string | number | boolean | {
7283
+ }[] | [string, string] | undefined>;
7284
+ createdAtLocation?: string | null | undefined;
7285
+ annotation?: Record<string, string | number | boolean | {
6815
7286
  type: string;
6816
7287
  filename: string;
6817
7288
  originalFilename: string;
@@ -6848,11 +7319,17 @@ export declare const EventDocument: z.ZodObject<{
6848
7319
  option: string;
6849
7320
  filename: string;
6850
7321
  originalFilename: string;
6851
- }[]> | undefined;
7322
+ }[] | [string, string] | undefined> | undefined;
7323
+ originalActionId?: string | undefined;
6852
7324
  } | {
6853
7325
  type: "PRINT_CERTIFICATE";
6854
7326
  id: string;
6855
- data: Record<string, string | number | boolean | {
7327
+ status: "Rejected" | "Requested" | "Accepted";
7328
+ transactionId: string;
7329
+ createdAt: string;
7330
+ createdBy: string;
7331
+ createdByRole: string;
7332
+ declaration: Record<string, string | number | boolean | {
6856
7333
  type: string;
6857
7334
  filename: string;
6858
7335
  originalFilename: string;
@@ -6889,11 +7366,9 @@ export declare const EventDocument: z.ZodObject<{
6889
7366
  option: string;
6890
7367
  filename: string;
6891
7368
  originalFilename: string;
6892
- }[]>;
6893
- createdAt: string;
6894
- createdBy: string;
6895
- createdAtLocation: string;
6896
- metadata?: Record<string, string | number | boolean | {
7369
+ }[] | [string, string] | undefined>;
7370
+ createdAtLocation?: string | null | undefined;
7371
+ annotation?: Record<string, string | number | boolean | {
6897
7372
  type: string;
6898
7373
  filename: string;
6899
7374
  originalFilename: string;
@@ -6930,11 +7405,17 @@ export declare const EventDocument: z.ZodObject<{
6930
7405
  option: string;
6931
7406
  filename: string;
6932
7407
  originalFilename: string;
6933
- }[]> | undefined;
7408
+ }[] | [string, string] | undefined> | undefined;
7409
+ originalActionId?: string | undefined;
6934
7410
  } | {
6935
7411
  type: "REQUEST_CORRECTION";
6936
7412
  id: string;
6937
- data: Record<string, string | number | boolean | {
7413
+ status: "Rejected" | "Requested" | "Accepted";
7414
+ transactionId: string;
7415
+ createdAt: string;
7416
+ createdBy: string;
7417
+ createdByRole: string;
7418
+ declaration: Record<string, string | number | boolean | {
6938
7419
  type: string;
6939
7420
  filename: string;
6940
7421
  originalFilename: string;
@@ -6971,11 +7452,9 @@ export declare const EventDocument: z.ZodObject<{
6971
7452
  option: string;
6972
7453
  filename: string;
6973
7454
  originalFilename: string;
6974
- }[]>;
6975
- createdAt: string;
6976
- createdBy: string;
6977
- createdAtLocation: string;
6978
- metadata?: Record<string, string | number | boolean | {
7455
+ }[] | [string, string] | undefined>;
7456
+ createdAtLocation?: string | null | undefined;
7457
+ annotation?: Record<string, string | number | boolean | {
6979
7458
  type: string;
6980
7459
  filename: string;
6981
7460
  originalFilename: string;
@@ -7012,11 +7491,17 @@ export declare const EventDocument: z.ZodObject<{
7012
7491
  option: string;
7013
7492
  filename: string;
7014
7493
  originalFilename: string;
7015
- }[]> | undefined;
7494
+ }[] | [string, string] | undefined> | undefined;
7495
+ originalActionId?: string | undefined;
7016
7496
  } | {
7017
7497
  type: "APPROVE_CORRECTION";
7018
7498
  id: string;
7019
- data: Record<string, string | number | boolean | {
7499
+ status: "Rejected" | "Requested" | "Accepted";
7500
+ transactionId: string;
7501
+ createdAt: string;
7502
+ createdBy: string;
7503
+ createdByRole: string;
7504
+ declaration: Record<string, string | number | boolean | {
7020
7505
  type: string;
7021
7506
  filename: string;
7022
7507
  originalFilename: string;
@@ -7053,12 +7538,10 @@ export declare const EventDocument: z.ZodObject<{
7053
7538
  option: string;
7054
7539
  filename: string;
7055
7540
  originalFilename: string;
7056
- }[]>;
7057
- createdAt: string;
7058
- createdBy: string;
7059
- createdAtLocation: string;
7541
+ }[] | [string, string] | undefined>;
7060
7542
  requestId: string;
7061
- metadata?: Record<string, string | number | boolean | {
7543
+ createdAtLocation?: string | null | undefined;
7544
+ annotation?: Record<string, string | number | boolean | {
7062
7545
  type: string;
7063
7546
  filename: string;
7064
7547
  originalFilename: string;
@@ -7095,11 +7578,17 @@ export declare const EventDocument: z.ZodObject<{
7095
7578
  option: string;
7096
7579
  filename: string;
7097
7580
  originalFilename: string;
7098
- }[]> | undefined;
7581
+ }[] | [string, string] | undefined> | undefined;
7582
+ originalActionId?: string | undefined;
7099
7583
  } | {
7100
7584
  type: "REJECT_CORRECTION";
7101
7585
  id: string;
7102
- data: Record<string, string | number | boolean | {
7586
+ status: "Rejected" | "Requested" | "Accepted";
7587
+ transactionId: string;
7588
+ createdAt: string;
7589
+ createdBy: string;
7590
+ createdByRole: string;
7591
+ declaration: Record<string, string | number | boolean | {
7103
7592
  type: string;
7104
7593
  filename: string;
7105
7594
  originalFilename: string;
@@ -7136,12 +7625,10 @@ export declare const EventDocument: z.ZodObject<{
7136
7625
  option: string;
7137
7626
  filename: string;
7138
7627
  originalFilename: string;
7139
- }[]>;
7140
- createdAt: string;
7141
- createdBy: string;
7142
- createdAtLocation: string;
7628
+ }[] | [string, string] | undefined>;
7143
7629
  requestId: string;
7144
- metadata?: Record<string, string | number | boolean | {
7630
+ createdAtLocation?: string | null | undefined;
7631
+ annotation?: Record<string, string | number | boolean | {
7145
7632
  type: string;
7146
7633
  filename: string;
7147
7634
  originalFilename: string;
@@ -7178,11 +7665,17 @@ export declare const EventDocument: z.ZodObject<{
7178
7665
  option: string;
7179
7666
  filename: string;
7180
7667
  originalFilename: string;
7181
- }[]> | undefined;
7668
+ }[] | [string, string] | undefined> | undefined;
7669
+ originalActionId?: string | undefined;
7182
7670
  } | {
7183
- type: "CUSTOM";
7671
+ type: "READ";
7184
7672
  id: string;
7185
- data: Record<string, string | number | boolean | {
7673
+ status: "Rejected" | "Requested" | "Accepted";
7674
+ transactionId: string;
7675
+ createdAt: string;
7676
+ createdBy: string;
7677
+ createdByRole: string;
7678
+ declaration: Record<string, string | number | boolean | {
7186
7679
  type: string;
7187
7680
  filename: string;
7188
7681
  originalFilename: string;
@@ -7219,11 +7712,9 @@ export declare const EventDocument: z.ZodObject<{
7219
7712
  option: string;
7220
7713
  filename: string;
7221
7714
  originalFilename: string;
7222
- }[]>;
7223
- createdAt: string;
7224
- createdBy: string;
7225
- createdAtLocation: string;
7226
- metadata?: Record<string, string | number | boolean | {
7715
+ }[] | [string, string] | undefined>;
7716
+ createdAtLocation?: string | null | undefined;
7717
+ annotation?: Record<string, string | number | boolean | {
7227
7718
  type: string;
7228
7719
  filename: string;
7229
7720
  originalFilename: string;
@@ -7260,18 +7751,37 @@ export declare const EventDocument: z.ZodObject<{
7260
7751
  option: string;
7261
7752
  filename: string;
7262
7753
  originalFilename: string;
7263
- }[]> | undefined;
7754
+ }[] | [string, string] | undefined> | undefined;
7755
+ originalActionId?: string | undefined;
7756
+ } | {
7757
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7758
+ id: string;
7759
+ status: "Rejected";
7760
+ transactionId: string;
7761
+ createdAt: string;
7762
+ createdBy: string;
7763
+ createdByRole: string;
7764
+ createdAtLocation?: string | null | undefined;
7765
+ originalActionId?: string | undefined;
7264
7766
  })[];
7767
+ trackingId: string;
7768
+ dateOfEvent?: {
7769
+ fieldId: string;
7770
+ } | undefined;
7265
7771
  }, {
7266
7772
  type: string;
7267
7773
  id: string;
7268
7774
  createdAt: string;
7269
- trackingId: string;
7270
7775
  updatedAt: string;
7271
7776
  actions: ({
7272
7777
  type: "ASSIGN";
7273
7778
  id: string;
7274
- data: Record<string, string | number | boolean | {
7779
+ status: "Rejected" | "Requested" | "Accepted";
7780
+ transactionId: string;
7781
+ createdAt: string;
7782
+ createdBy: string;
7783
+ createdByRole: string;
7784
+ declaration: Record<string, string | number | boolean | {
7275
7785
  type: string;
7276
7786
  filename: string;
7277
7787
  originalFilename: string;
@@ -7308,12 +7818,10 @@ export declare const EventDocument: z.ZodObject<{
7308
7818
  option: string;
7309
7819
  filename: string;
7310
7820
  originalFilename: string;
7311
- }[]>;
7312
- createdAt: string;
7313
- createdBy: string;
7314
- createdAtLocation: string;
7821
+ }[] | [string, string] | undefined>;
7315
7822
  assignedTo: string;
7316
- metadata?: Record<string, string | number | boolean | {
7823
+ createdAtLocation?: string | null | undefined;
7824
+ annotation?: Record<string, string | number | boolean | {
7317
7825
  type: string;
7318
7826
  filename: string;
7319
7827
  originalFilename: string;
@@ -7350,11 +7858,17 @@ export declare const EventDocument: z.ZodObject<{
7350
7858
  option: string;
7351
7859
  filename: string;
7352
7860
  originalFilename: string;
7353
- }[]> | undefined;
7861
+ }[] | [string, string] | undefined> | undefined;
7862
+ originalActionId?: string | undefined;
7354
7863
  } | {
7355
7864
  type: "UNASSIGN";
7356
7865
  id: string;
7357
- data: Record<string, string | number | boolean | {
7866
+ status: "Rejected" | "Requested" | "Accepted";
7867
+ transactionId: string;
7868
+ createdAt: string;
7869
+ createdBy: string;
7870
+ createdByRole: string;
7871
+ declaration: Record<string, string | number | boolean | {
7358
7872
  type: string;
7359
7873
  filename: string;
7360
7874
  originalFilename: string;
@@ -7391,11 +7905,10 @@ export declare const EventDocument: z.ZodObject<{
7391
7905
  option: string;
7392
7906
  filename: string;
7393
7907
  originalFilename: string;
7394
- }[]>;
7395
- createdAt: string;
7396
- createdBy: string;
7397
- createdAtLocation: string;
7398
- metadata?: Record<string, string | number | boolean | {
7908
+ }[] | [string, string] | undefined>;
7909
+ assignedTo: null;
7910
+ createdAtLocation?: string | null | undefined;
7911
+ annotation?: Record<string, string | number | boolean | {
7399
7912
  type: string;
7400
7913
  filename: string;
7401
7914
  originalFilename: string;
@@ -7432,11 +7945,17 @@ export declare const EventDocument: z.ZodObject<{
7432
7945
  option: string;
7433
7946
  filename: string;
7434
7947
  originalFilename: string;
7435
- }[]> | undefined;
7948
+ }[] | [string, string] | undefined> | undefined;
7949
+ originalActionId?: string | undefined;
7436
7950
  } | {
7437
7951
  type: "REGISTER";
7438
7952
  id: string;
7439
- data: Record<string, string | number | boolean | {
7953
+ status: "Rejected" | "Requested" | "Accepted";
7954
+ transactionId: string;
7955
+ createdAt: string;
7956
+ createdBy: string;
7957
+ createdByRole: string;
7958
+ declaration: Record<string, string | number | boolean | {
7440
7959
  type: string;
7441
7960
  filename: string;
7442
7961
  originalFilename: string;
@@ -7473,15 +7992,9 @@ export declare const EventDocument: z.ZodObject<{
7473
7992
  option: string;
7474
7993
  filename: string;
7475
7994
  originalFilename: string;
7476
- }[]>;
7477
- createdAt: string;
7478
- createdBy: string;
7479
- createdAtLocation: string;
7480
- identifiers: {
7481
- trackingId: string;
7482
- registrationNumber: string;
7483
- };
7484
- metadata?: Record<string, string | number | boolean | {
7995
+ }[] | [string, string] | undefined>;
7996
+ createdAtLocation?: string | null | undefined;
7997
+ annotation?: Record<string, string | number | boolean | {
7485
7998
  type: string;
7486
7999
  filename: string;
7487
8000
  originalFilename: string;
@@ -7518,11 +8031,18 @@ export declare const EventDocument: z.ZodObject<{
7518
8031
  option: string;
7519
8032
  filename: string;
7520
8033
  originalFilename: string;
7521
- }[]> | undefined;
8034
+ }[] | [string, string] | undefined> | undefined;
8035
+ originalActionId?: string | undefined;
8036
+ registrationNumber?: string | undefined;
7522
8037
  } | {
7523
8038
  type: "DECLARE";
7524
8039
  id: string;
7525
- data: Record<string, string | number | boolean | {
8040
+ status: "Rejected" | "Requested" | "Accepted";
8041
+ transactionId: string;
8042
+ createdAt: string;
8043
+ createdBy: string;
8044
+ createdByRole: string;
8045
+ declaration: Record<string, string | number | boolean | {
7526
8046
  type: string;
7527
8047
  filename: string;
7528
8048
  originalFilename: string;
@@ -7559,11 +8079,9 @@ export declare const EventDocument: z.ZodObject<{
7559
8079
  option: string;
7560
8080
  filename: string;
7561
8081
  originalFilename: string;
7562
- }[]>;
7563
- createdAt: string;
7564
- createdBy: string;
7565
- createdAtLocation: string;
7566
- metadata?: Record<string, string | number | boolean | {
8082
+ }[] | [string, string] | undefined>;
8083
+ createdAtLocation?: string | null | undefined;
8084
+ annotation?: Record<string, string | number | boolean | {
7567
8085
  type: string;
7568
8086
  filename: string;
7569
8087
  originalFilename: string;
@@ -7600,11 +8118,17 @@ export declare const EventDocument: z.ZodObject<{
7600
8118
  option: string;
7601
8119
  filename: string;
7602
8120
  originalFilename: string;
7603
- }[]> | undefined;
8121
+ }[] | [string, string] | undefined> | undefined;
8122
+ originalActionId?: string | undefined;
7604
8123
  } | {
7605
8124
  type: "VALIDATE";
7606
8125
  id: string;
7607
- data: Record<string, string | number | boolean | {
8126
+ status: "Rejected" | "Requested" | "Accepted";
8127
+ transactionId: string;
8128
+ createdAt: string;
8129
+ createdBy: string;
8130
+ createdByRole: string;
8131
+ declaration: Record<string, string | number | boolean | {
7608
8132
  type: string;
7609
8133
  filename: string;
7610
8134
  originalFilename: string;
@@ -7641,11 +8165,9 @@ export declare const EventDocument: z.ZodObject<{
7641
8165
  option: string;
7642
8166
  filename: string;
7643
8167
  originalFilename: string;
7644
- }[]>;
7645
- createdAt: string;
7646
- createdBy: string;
7647
- createdAtLocation: string;
7648
- metadata?: Record<string, string | number | boolean | {
8168
+ }[] | [string, string] | undefined>;
8169
+ createdAtLocation?: string | null | undefined;
8170
+ annotation?: Record<string, string | number | boolean | {
7649
8171
  type: string;
7650
8172
  filename: string;
7651
8173
  originalFilename: string;
@@ -7682,11 +8204,17 @@ export declare const EventDocument: z.ZodObject<{
7682
8204
  option: string;
7683
8205
  filename: string;
7684
8206
  originalFilename: string;
7685
- }[]> | undefined;
8207
+ }[] | [string, string] | undefined> | undefined;
8208
+ originalActionId?: string | undefined;
7686
8209
  } | {
7687
8210
  type: "REJECT";
7688
8211
  id: string;
7689
- data: Record<string, string | number | boolean | {
8212
+ status: "Rejected" | "Requested" | "Accepted";
8213
+ transactionId: string;
8214
+ createdAt: string;
8215
+ createdBy: string;
8216
+ createdByRole: string;
8217
+ declaration: Record<string, string | number | boolean | {
7690
8218
  type: string;
7691
8219
  filename: string;
7692
8220
  originalFilename: string;
@@ -7723,11 +8251,9 @@ export declare const EventDocument: z.ZodObject<{
7723
8251
  option: string;
7724
8252
  filename: string;
7725
8253
  originalFilename: string;
7726
- }[]>;
7727
- createdAt: string;
7728
- createdBy: string;
7729
- createdAtLocation: string;
7730
- metadata?: Record<string, string | number | boolean | {
8254
+ }[] | [string, string] | undefined>;
8255
+ createdAtLocation?: string | null | undefined;
8256
+ annotation?: Record<string, string | number | boolean | {
7731
8257
  type: string;
7732
8258
  filename: string;
7733
8259
  originalFilename: string;
@@ -7764,11 +8290,17 @@ export declare const EventDocument: z.ZodObject<{
7764
8290
  option: string;
7765
8291
  filename: string;
7766
8292
  originalFilename: string;
7767
- }[]> | undefined;
8293
+ }[] | [string, string] | undefined> | undefined;
8294
+ originalActionId?: string | undefined;
7768
8295
  } | {
7769
8296
  type: "MARKED_AS_DUPLICATE";
7770
8297
  id: string;
7771
- data: Record<string, string | number | boolean | {
8298
+ status: "Rejected" | "Requested" | "Accepted";
8299
+ transactionId: string;
8300
+ createdAt: string;
8301
+ createdBy: string;
8302
+ createdByRole: string;
8303
+ declaration: Record<string, string | number | boolean | {
7772
8304
  type: string;
7773
8305
  filename: string;
7774
8306
  originalFilename: string;
@@ -7805,11 +8337,9 @@ export declare const EventDocument: z.ZodObject<{
7805
8337
  option: string;
7806
8338
  filename: string;
7807
8339
  originalFilename: string;
7808
- }[]>;
7809
- createdAt: string;
7810
- createdBy: string;
7811
- createdAtLocation: string;
7812
- metadata?: Record<string, string | number | boolean | {
8340
+ }[] | [string, string] | undefined>;
8341
+ createdAtLocation?: string | null | undefined;
8342
+ annotation?: Record<string, string | number | boolean | {
7813
8343
  type: string;
7814
8344
  filename: string;
7815
8345
  originalFilename: string;
@@ -7846,11 +8376,17 @@ export declare const EventDocument: z.ZodObject<{
7846
8376
  option: string;
7847
8377
  filename: string;
7848
8378
  originalFilename: string;
7849
- }[]> | undefined;
8379
+ }[] | [string, string] | undefined> | undefined;
8380
+ originalActionId?: string | undefined;
7850
8381
  } | {
7851
8382
  type: "ARCHIVE";
7852
8383
  id: string;
7853
- data: Record<string, string | number | boolean | {
8384
+ status: "Rejected" | "Requested" | "Accepted";
8385
+ transactionId: string;
8386
+ createdAt: string;
8387
+ createdBy: string;
8388
+ createdByRole: string;
8389
+ declaration: Record<string, string | number | boolean | {
7854
8390
  type: string;
7855
8391
  filename: string;
7856
8392
  originalFilename: string;
@@ -7887,11 +8423,9 @@ export declare const EventDocument: z.ZodObject<{
7887
8423
  option: string;
7888
8424
  filename: string;
7889
8425
  originalFilename: string;
7890
- }[]>;
7891
- createdAt: string;
7892
- createdBy: string;
7893
- createdAtLocation: string;
7894
- metadata?: Record<string, string | number | boolean | {
8426
+ }[] | [string, string] | undefined>;
8427
+ createdAtLocation?: string | null | undefined;
8428
+ annotation?: Record<string, string | number | boolean | {
7895
8429
  type: string;
7896
8430
  filename: string;
7897
8431
  originalFilename: string;
@@ -7928,11 +8462,17 @@ export declare const EventDocument: z.ZodObject<{
7928
8462
  option: string;
7929
8463
  filename: string;
7930
8464
  originalFilename: string;
7931
- }[]> | undefined;
8465
+ }[] | [string, string] | undefined> | undefined;
8466
+ originalActionId?: string | undefined;
7932
8467
  } | {
7933
8468
  type: "CREATE";
7934
8469
  id: string;
7935
- data: Record<string, string | number | boolean | {
8470
+ status: "Rejected" | "Requested" | "Accepted";
8471
+ transactionId: string;
8472
+ createdAt: string;
8473
+ createdBy: string;
8474
+ createdByRole: string;
8475
+ declaration: Record<string, string | number | boolean | {
7936
8476
  type: string;
7937
8477
  filename: string;
7938
8478
  originalFilename: string;
@@ -7969,11 +8509,9 @@ export declare const EventDocument: z.ZodObject<{
7969
8509
  option: string;
7970
8510
  filename: string;
7971
8511
  originalFilename: string;
7972
- }[]>;
7973
- createdAt: string;
7974
- createdBy: string;
7975
- createdAtLocation: string;
7976
- metadata?: Record<string, string | number | boolean | {
8512
+ }[] | [string, string] | undefined>;
8513
+ createdAtLocation?: string | null | undefined;
8514
+ annotation?: Record<string, string | number | boolean | {
7977
8515
  type: string;
7978
8516
  filename: string;
7979
8517
  originalFilename: string;
@@ -8010,11 +8548,17 @@ export declare const EventDocument: z.ZodObject<{
8010
8548
  option: string;
8011
8549
  filename: string;
8012
8550
  originalFilename: string;
8013
- }[]> | undefined;
8551
+ }[] | [string, string] | undefined> | undefined;
8552
+ originalActionId?: string | undefined;
8014
8553
  } | {
8015
8554
  type: "NOTIFY";
8016
8555
  id: string;
8017
- data: Record<string, string | number | boolean | {
8556
+ status: "Rejected" | "Requested" | "Accepted";
8557
+ transactionId: string;
8558
+ createdAt: string;
8559
+ createdBy: string;
8560
+ createdByRole: string;
8561
+ declaration: Record<string, string | number | boolean | {
8018
8562
  type: string;
8019
8563
  filename: string;
8020
8564
  originalFilename: string;
@@ -8051,11 +8595,9 @@ export declare const EventDocument: z.ZodObject<{
8051
8595
  option: string;
8052
8596
  filename: string;
8053
8597
  originalFilename: string;
8054
- }[]>;
8055
- createdAt: string;
8056
- createdBy: string;
8057
- createdAtLocation: string;
8058
- metadata?: Record<string, string | number | boolean | {
8598
+ }[] | [string, string] | undefined>;
8599
+ createdAtLocation?: string | null | undefined;
8600
+ annotation?: Record<string, string | number | boolean | {
8059
8601
  type: string;
8060
8602
  filename: string;
8061
8603
  originalFilename: string;
@@ -8092,11 +8634,17 @@ export declare const EventDocument: z.ZodObject<{
8092
8634
  option: string;
8093
8635
  filename: string;
8094
8636
  originalFilename: string;
8095
- }[]> | undefined;
8637
+ }[] | [string, string] | undefined> | undefined;
8638
+ originalActionId?: string | undefined;
8096
8639
  } | {
8097
8640
  type: "PRINT_CERTIFICATE";
8098
8641
  id: string;
8099
- data: Record<string, string | number | boolean | {
8642
+ status: "Rejected" | "Requested" | "Accepted";
8643
+ transactionId: string;
8644
+ createdAt: string;
8645
+ createdBy: string;
8646
+ createdByRole: string;
8647
+ declaration: Record<string, string | number | boolean | {
8100
8648
  type: string;
8101
8649
  filename: string;
8102
8650
  originalFilename: string;
@@ -8133,11 +8681,9 @@ export declare const EventDocument: z.ZodObject<{
8133
8681
  option: string;
8134
8682
  filename: string;
8135
8683
  originalFilename: string;
8136
- }[]>;
8137
- createdAt: string;
8138
- createdBy: string;
8139
- createdAtLocation: string;
8140
- metadata?: Record<string, string | number | boolean | {
8684
+ }[] | [string, string] | undefined>;
8685
+ createdAtLocation?: string | null | undefined;
8686
+ annotation?: Record<string, string | number | boolean | {
8141
8687
  type: string;
8142
8688
  filename: string;
8143
8689
  originalFilename: string;
@@ -8174,11 +8720,17 @@ export declare const EventDocument: z.ZodObject<{
8174
8720
  option: string;
8175
8721
  filename: string;
8176
8722
  originalFilename: string;
8177
- }[]> | undefined;
8723
+ }[] | [string, string] | undefined> | undefined;
8724
+ originalActionId?: string | undefined;
8178
8725
  } | {
8179
8726
  type: "REQUEST_CORRECTION";
8180
8727
  id: string;
8181
- data: Record<string, string | number | boolean | {
8728
+ status: "Rejected" | "Requested" | "Accepted";
8729
+ transactionId: string;
8730
+ createdAt: string;
8731
+ createdBy: string;
8732
+ createdByRole: string;
8733
+ declaration: Record<string, string | number | boolean | {
8182
8734
  type: string;
8183
8735
  filename: string;
8184
8736
  originalFilename: string;
@@ -8215,11 +8767,9 @@ export declare const EventDocument: z.ZodObject<{
8215
8767
  option: string;
8216
8768
  filename: string;
8217
8769
  originalFilename: string;
8218
- }[]>;
8219
- createdAt: string;
8220
- createdBy: string;
8221
- createdAtLocation: string;
8222
- metadata?: Record<string, string | number | boolean | {
8770
+ }[] | [string, string] | undefined>;
8771
+ createdAtLocation?: string | null | undefined;
8772
+ annotation?: Record<string, string | number | boolean | {
8223
8773
  type: string;
8224
8774
  filename: string;
8225
8775
  originalFilename: string;
@@ -8256,11 +8806,17 @@ export declare const EventDocument: z.ZodObject<{
8256
8806
  option: string;
8257
8807
  filename: string;
8258
8808
  originalFilename: string;
8259
- }[]> | undefined;
8809
+ }[] | [string, string] | undefined> | undefined;
8810
+ originalActionId?: string | undefined;
8260
8811
  } | {
8261
8812
  type: "APPROVE_CORRECTION";
8262
8813
  id: string;
8263
- data: Record<string, string | number | boolean | {
8814
+ status: "Rejected" | "Requested" | "Accepted";
8815
+ transactionId: string;
8816
+ createdAt: string;
8817
+ createdBy: string;
8818
+ createdByRole: string;
8819
+ declaration: Record<string, string | number | boolean | {
8264
8820
  type: string;
8265
8821
  filename: string;
8266
8822
  originalFilename: string;
@@ -8297,12 +8853,10 @@ export declare const EventDocument: z.ZodObject<{
8297
8853
  option: string;
8298
8854
  filename: string;
8299
8855
  originalFilename: string;
8300
- }[]>;
8301
- createdAt: string;
8302
- createdBy: string;
8303
- createdAtLocation: string;
8856
+ }[] | [string, string] | undefined>;
8304
8857
  requestId: string;
8305
- metadata?: Record<string, string | number | boolean | {
8858
+ createdAtLocation?: string | null | undefined;
8859
+ annotation?: Record<string, string | number | boolean | {
8306
8860
  type: string;
8307
8861
  filename: string;
8308
8862
  originalFilename: string;
@@ -8339,11 +8893,17 @@ export declare const EventDocument: z.ZodObject<{
8339
8893
  option: string;
8340
8894
  filename: string;
8341
8895
  originalFilename: string;
8342
- }[]> | undefined;
8896
+ }[] | [string, string] | undefined> | undefined;
8897
+ originalActionId?: string | undefined;
8343
8898
  } | {
8344
8899
  type: "REJECT_CORRECTION";
8345
8900
  id: string;
8346
- data: Record<string, string | number | boolean | {
8901
+ status: "Rejected" | "Requested" | "Accepted";
8902
+ transactionId: string;
8903
+ createdAt: string;
8904
+ createdBy: string;
8905
+ createdByRole: string;
8906
+ declaration: Record<string, string | number | boolean | {
8347
8907
  type: string;
8348
8908
  filename: string;
8349
8909
  originalFilename: string;
@@ -8380,12 +8940,10 @@ export declare const EventDocument: z.ZodObject<{
8380
8940
  option: string;
8381
8941
  filename: string;
8382
8942
  originalFilename: string;
8383
- }[]>;
8384
- createdAt: string;
8385
- createdBy: string;
8386
- createdAtLocation: string;
8943
+ }[] | [string, string] | undefined>;
8387
8944
  requestId: string;
8388
- metadata?: Record<string, string | number | boolean | {
8945
+ createdAtLocation?: string | null | undefined;
8946
+ annotation?: Record<string, string | number | boolean | {
8389
8947
  type: string;
8390
8948
  filename: string;
8391
8949
  originalFilename: string;
@@ -8422,11 +8980,17 @@ export declare const EventDocument: z.ZodObject<{
8422
8980
  option: string;
8423
8981
  filename: string;
8424
8982
  originalFilename: string;
8425
- }[]> | undefined;
8983
+ }[] | [string, string] | undefined> | undefined;
8984
+ originalActionId?: string | undefined;
8426
8985
  } | {
8427
- type: "CUSTOM";
8986
+ type: "READ";
8428
8987
  id: string;
8429
- data: Record<string, string | number | boolean | {
8988
+ status: "Rejected" | "Requested" | "Accepted";
8989
+ transactionId: string;
8990
+ createdAt: string;
8991
+ createdBy: string;
8992
+ createdByRole: string;
8993
+ declaration: Record<string, string | number | boolean | {
8430
8994
  type: string;
8431
8995
  filename: string;
8432
8996
  originalFilename: string;
@@ -8463,11 +9027,9 @@ export declare const EventDocument: z.ZodObject<{
8463
9027
  option: string;
8464
9028
  filename: string;
8465
9029
  originalFilename: string;
8466
- }[]>;
8467
- createdAt: string;
8468
- createdBy: string;
8469
- createdAtLocation: string;
8470
- metadata?: Record<string, string | number | boolean | {
9030
+ }[] | [string, string] | undefined>;
9031
+ createdAtLocation?: string | null | undefined;
9032
+ annotation?: Record<string, string | number | boolean | {
8471
9033
  type: string;
8472
9034
  filename: string;
8473
9035
  originalFilename: string;
@@ -8504,8 +9066,23 @@ export declare const EventDocument: z.ZodObject<{
8504
9066
  option: string;
8505
9067
  filename: string;
8506
9068
  originalFilename: string;
8507
- }[]> | undefined;
9069
+ }[] | [string, string] | undefined> | undefined;
9070
+ originalActionId?: string | undefined;
9071
+ } | {
9072
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
9073
+ id: string;
9074
+ status: "Rejected";
9075
+ transactionId: string;
9076
+ createdAt: string;
9077
+ createdBy: string;
9078
+ createdByRole: string;
9079
+ createdAtLocation?: string | null | undefined;
9080
+ originalActionId?: string | undefined;
8508
9081
  })[];
9082
+ trackingId: string;
9083
+ dateOfEvent?: {
9084
+ fieldId: string;
9085
+ } | undefined;
8509
9086
  }>;
8510
9087
  export type EventDocument = z.infer<typeof EventDocument>;
8511
9088
  //# sourceMappingURL=EventDocument.d.ts.map