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

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 (46) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +12639 -14167
  3. package/dist/commons/conditionals/conditionals.d.ts +32 -6
  4. package/dist/commons/conditionals/validate.d.ts +12 -17
  5. package/dist/commons/events/ActionConfig.d.ts +92869 -2005
  6. package/dist/commons/events/ActionDocument.d.ts +8019 -401
  7. package/dist/commons/events/ActionInput.d.ts +2365 -548
  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/Constants.d.ts +2 -0
  13. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  14. package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
  15. package/dist/commons/events/Draft.d.ts +93 -60
  16. package/dist/commons/events/EventConfig.d.ts +42302 -1760
  17. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  18. package/dist/commons/events/EventDocument.d.ts +1225 -529
  19. package/dist/commons/events/EventIndex.d.ts +1328 -13
  20. package/dist/commons/events/EventMetadata.d.ts +270 -11
  21. package/dist/commons/events/FieldConfig.d.ts +4704 -786
  22. package/dist/commons/events/FieldType.d.ts +4 -3
  23. package/dist/commons/events/FieldTypeMapping.d.ts +33 -5
  24. package/dist/commons/events/FieldValue.d.ts +12 -7
  25. package/dist/commons/events/FormConfig.d.ts +43810 -73
  26. package/dist/commons/events/PageConfig.d.ts +10991 -0
  27. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  28. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  29. package/dist/commons/events/User.d.ts +31 -2
  30. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  31. package/dist/commons/events/WorkqueueConfig.d.ts +4525 -20
  32. package/dist/commons/events/defineConfig.d.ts +6560 -223
  33. package/dist/commons/events/event.d.ts +54 -0
  34. package/dist/commons/events/field.d.ts +82 -0
  35. package/dist/commons/events/index.d.ts +9 -1
  36. package/dist/commons/events/scopes.d.ts +45 -0
  37. package/dist/commons/events/serializer.d.ts +2 -0
  38. package/dist/commons/events/test.utils.d.ts +93 -327
  39. package/dist/commons/events/utils.d.ts +3701 -96
  40. package/dist/commons/events/utils.test.d.ts +2 -0
  41. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  42. package/dist/conditionals/index.js +210 -122
  43. package/dist/events/index.js +4464 -1981
  44. package/dist/scopes/index.d.ts +158 -1
  45. package/dist/scopes/index.js +152 -1
  46. package/package.json +3 -2
@@ -4,11 +4,15 @@ export declare const EventDocument: z.ZodObject<{
4
4
  type: z.ZodString;
5
5
  createdAt: z.ZodString;
6
6
  updatedAt: z.ZodString;
7
- actions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
7
+ actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
8
8
  id: z.ZodString;
9
+ transactionId: z.ZodString;
9
10
  createdAt: z.ZodString;
10
11
  createdBy: z.ZodString;
11
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12
+ createdByRole: z.ZodString;
13
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ 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
16
  filename: z.ZodString;
13
17
  originalFilename: z.ZodString;
14
18
  type: z.ZodString;
@@ -91,7 +95,7 @@ export declare const EventDocument: z.ZodObject<{
91
95
  province: string;
92
96
  urbanOrRural: "RURAL";
93
97
  village?: string | null | undefined;
94
- }>, z.ZodObject<{
98
+ }>, z.ZodUndefined, z.ZodObject<{
95
99
  country: z.ZodString;
96
100
  addressType: z.ZodLiteral<"INTERNATIONAL">;
97
101
  state: z.ZodString;
@@ -122,7 +126,7 @@ export declare const EventDocument: z.ZodObject<{
122
126
  addressLine3?: string | null | undefined;
123
127
  postcodeOrZip?: string | null | undefined;
124
128
  }>]>>;
125
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
129
+ 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
130
  filename: z.ZodString;
127
131
  originalFilename: z.ZodString;
128
132
  type: z.ZodString;
@@ -205,7 +209,7 @@ export declare const EventDocument: z.ZodObject<{
205
209
  province: string;
206
210
  urbanOrRural: "RURAL";
207
211
  village?: string | null | undefined;
208
- }>, z.ZodObject<{
212
+ }>, z.ZodUndefined, z.ZodObject<{
209
213
  country: z.ZodString;
210
214
  addressType: z.ZodLiteral<"INTERNATIONAL">;
211
215
  state: z.ZodString;
@@ -236,13 +240,19 @@ export declare const EventDocument: z.ZodObject<{
236
240
  addressLine3?: string | null | undefined;
237
241
  postcodeOrZip?: string | null | undefined;
238
242
  }>]>>>;
239
- createdAtLocation: z.ZodString;
243
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
244
+ originalActionId: z.ZodOptional<z.ZodString>;
240
245
  }, {
241
246
  type: z.ZodLiteral<"CREATE">;
242
247
  }>, "strip", z.ZodTypeAny, {
243
248
  type: "CREATE";
244
249
  id: string;
245
- data: Record<string, string | number | boolean | {
250
+ status: "Rejected" | "Requested" | "Accepted";
251
+ transactionId: string;
252
+ createdAt: string;
253
+ createdBy: string;
254
+ createdByRole: string;
255
+ declaration: Record<string, string | number | boolean | {
246
256
  type: string;
247
257
  filename: string;
248
258
  originalFilename: string;
@@ -279,11 +289,10 @@ export declare const EventDocument: z.ZodObject<{
279
289
  option: string;
280
290
  filename: string;
281
291
  originalFilename: string;
282
- }[]>;
283
- createdAt: string;
284
- createdBy: string;
285
- createdAtLocation: string;
286
- metadata?: Record<string, string | number | boolean | {
292
+ }[] | [string, string] | undefined>;
293
+ createdBySignature?: string | null | undefined;
294
+ createdAtLocation?: string | null | undefined;
295
+ annotation?: Record<string, string | number | boolean | {
287
296
  type: string;
288
297
  filename: string;
289
298
  originalFilename: string;
@@ -320,11 +329,17 @@ export declare const EventDocument: z.ZodObject<{
320
329
  option: string;
321
330
  filename: string;
322
331
  originalFilename: string;
323
- }[]> | undefined;
332
+ }[] | [string, string] | undefined> | undefined;
333
+ originalActionId?: string | undefined;
324
334
  }, {
325
335
  type: "CREATE";
326
336
  id: string;
327
- data: Record<string, string | number | boolean | {
337
+ status: "Rejected" | "Requested" | "Accepted";
338
+ transactionId: string;
339
+ createdAt: string;
340
+ createdBy: string;
341
+ createdByRole: string;
342
+ declaration: Record<string, string | number | boolean | {
328
343
  type: string;
329
344
  filename: string;
330
345
  originalFilename: string;
@@ -361,11 +376,10 @@ export declare const EventDocument: z.ZodObject<{
361
376
  option: string;
362
377
  filename: string;
363
378
  originalFilename: string;
364
- }[]>;
365
- createdAt: string;
366
- createdBy: string;
367
- createdAtLocation: string;
368
- metadata?: Record<string, string | number | boolean | {
379
+ }[] | [string, string] | undefined>;
380
+ createdBySignature?: string | null | undefined;
381
+ createdAtLocation?: string | null | undefined;
382
+ annotation?: Record<string, string | number | boolean | {
369
383
  type: string;
370
384
  filename: string;
371
385
  originalFilename: string;
@@ -402,12 +416,17 @@ export declare const EventDocument: z.ZodObject<{
402
416
  option: string;
403
417
  filename: string;
404
418
  originalFilename: string;
405
- }[]> | undefined;
419
+ }[] | [string, string] | undefined> | undefined;
420
+ originalActionId?: string | undefined;
406
421
  }>, z.ZodObject<z.objectUtil.extendShape<{
407
422
  id: z.ZodString;
423
+ transactionId: z.ZodString;
408
424
  createdAt: z.ZodString;
409
425
  createdBy: z.ZodString;
410
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
426
+ createdByRole: z.ZodString;
427
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
428
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
429
+ 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
430
  filename: z.ZodString;
412
431
  originalFilename: z.ZodString;
413
432
  type: z.ZodString;
@@ -490,7 +509,7 @@ export declare const EventDocument: z.ZodObject<{
490
509
  province: string;
491
510
  urbanOrRural: "RURAL";
492
511
  village?: string | null | undefined;
493
- }>, z.ZodObject<{
512
+ }>, z.ZodUndefined, z.ZodObject<{
494
513
  country: z.ZodString;
495
514
  addressType: z.ZodLiteral<"INTERNATIONAL">;
496
515
  state: z.ZodString;
@@ -521,7 +540,7 @@ export declare const EventDocument: z.ZodObject<{
521
540
  addressLine3?: string | null | undefined;
522
541
  postcodeOrZip?: string | null | undefined;
523
542
  }>]>>;
524
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
543
+ 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
544
  filename: z.ZodString;
526
545
  originalFilename: z.ZodString;
527
546
  type: z.ZodString;
@@ -604,7 +623,7 @@ export declare const EventDocument: z.ZodObject<{
604
623
  province: string;
605
624
  urbanOrRural: "RURAL";
606
625
  village?: string | null | undefined;
607
- }>, z.ZodObject<{
626
+ }>, z.ZodUndefined, z.ZodObject<{
608
627
  country: z.ZodString;
609
628
  addressType: z.ZodLiteral<"INTERNATIONAL">;
610
629
  state: z.ZodString;
@@ -635,13 +654,19 @@ export declare const EventDocument: z.ZodObject<{
635
654
  addressLine3?: string | null | undefined;
636
655
  postcodeOrZip?: string | null | undefined;
637
656
  }>]>>>;
638
- createdAtLocation: z.ZodString;
657
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
658
+ originalActionId: z.ZodOptional<z.ZodString>;
639
659
  }, {
640
660
  type: z.ZodLiteral<"VALIDATE">;
641
661
  }>, "strip", z.ZodTypeAny, {
642
662
  type: "VALIDATE";
643
663
  id: string;
644
- data: Record<string, string | number | boolean | {
664
+ status: "Rejected" | "Requested" | "Accepted";
665
+ transactionId: string;
666
+ createdAt: string;
667
+ createdBy: string;
668
+ createdByRole: string;
669
+ declaration: Record<string, string | number | boolean | {
645
670
  type: string;
646
671
  filename: string;
647
672
  originalFilename: string;
@@ -678,11 +703,10 @@ export declare const EventDocument: z.ZodObject<{
678
703
  option: string;
679
704
  filename: string;
680
705
  originalFilename: string;
681
- }[]>;
682
- createdAt: string;
683
- createdBy: string;
684
- createdAtLocation: string;
685
- metadata?: Record<string, string | number | boolean | {
706
+ }[] | [string, string] | undefined>;
707
+ createdBySignature?: string | null | undefined;
708
+ createdAtLocation?: string | null | undefined;
709
+ annotation?: Record<string, string | number | boolean | {
686
710
  type: string;
687
711
  filename: string;
688
712
  originalFilename: string;
@@ -719,11 +743,17 @@ export declare const EventDocument: z.ZodObject<{
719
743
  option: string;
720
744
  filename: string;
721
745
  originalFilename: string;
722
- }[]> | undefined;
746
+ }[] | [string, string] | undefined> | undefined;
747
+ originalActionId?: string | undefined;
723
748
  }, {
724
749
  type: "VALIDATE";
725
750
  id: string;
726
- data: Record<string, string | number | boolean | {
751
+ status: "Rejected" | "Requested" | "Accepted";
752
+ transactionId: string;
753
+ createdAt: string;
754
+ createdBy: string;
755
+ createdByRole: string;
756
+ declaration: Record<string, string | number | boolean | {
727
757
  type: string;
728
758
  filename: string;
729
759
  originalFilename: string;
@@ -760,11 +790,10 @@ export declare const EventDocument: z.ZodObject<{
760
790
  option: string;
761
791
  filename: string;
762
792
  originalFilename: string;
763
- }[]>;
764
- createdAt: string;
765
- createdBy: string;
766
- createdAtLocation: string;
767
- metadata?: Record<string, string | number | boolean | {
793
+ }[] | [string, string] | undefined>;
794
+ createdBySignature?: string | null | undefined;
795
+ createdAtLocation?: string | null | undefined;
796
+ annotation?: Record<string, string | number | boolean | {
768
797
  type: string;
769
798
  filename: string;
770
799
  originalFilename: string;
@@ -801,12 +830,17 @@ export declare const EventDocument: z.ZodObject<{
801
830
  option: string;
802
831
  filename: string;
803
832
  originalFilename: string;
804
- }[]> | undefined;
833
+ }[] | [string, string] | undefined> | undefined;
834
+ originalActionId?: string | undefined;
805
835
  }>, z.ZodObject<z.objectUtil.extendShape<{
806
836
  id: z.ZodString;
837
+ transactionId: z.ZodString;
807
838
  createdAt: z.ZodString;
808
839
  createdBy: z.ZodString;
809
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
840
+ createdByRole: z.ZodString;
841
+ createdBySignature: z.ZodOptional<z.ZodNullable<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,33 @@ 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">;
1075
+ reason: z.ZodObject<{
1076
+ message: z.ZodString;
1077
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
1078
+ }, "strip", z.ZodTypeAny, {
1079
+ message: string;
1080
+ isDuplicate?: boolean | undefined;
1081
+ }, {
1082
+ message: string;
1083
+ isDuplicate?: boolean | undefined;
1084
+ }>;
1040
1085
  }>, "strip", z.ZodTypeAny, {
1041
1086
  type: "REJECT";
1042
1087
  id: string;
1043
- data: Record<string, string | number | boolean | {
1088
+ status: "Rejected" | "Requested" | "Accepted";
1089
+ reason: {
1090
+ message: string;
1091
+ isDuplicate?: boolean | undefined;
1092
+ };
1093
+ transactionId: string;
1094
+ createdAt: string;
1095
+ createdBy: string;
1096
+ createdByRole: string;
1097
+ declaration: Record<string, string | number | boolean | {
1044
1098
  type: string;
1045
1099
  filename: string;
1046
1100
  originalFilename: string;
@@ -1077,11 +1131,10 @@ export declare const EventDocument: z.ZodObject<{
1077
1131
  option: string;
1078
1132
  filename: string;
1079
1133
  originalFilename: string;
1080
- }[]>;
1081
- createdAt: string;
1082
- createdBy: string;
1083
- createdAtLocation: string;
1084
- metadata?: Record<string, string | number | boolean | {
1134
+ }[] | [string, string] | undefined>;
1135
+ createdBySignature?: string | null | undefined;
1136
+ createdAtLocation?: string | null | undefined;
1137
+ annotation?: Record<string, string | number | boolean | {
1085
1138
  type: string;
1086
1139
  filename: string;
1087
1140
  originalFilename: string;
@@ -1118,11 +1171,21 @@ export declare const EventDocument: z.ZodObject<{
1118
1171
  option: string;
1119
1172
  filename: string;
1120
1173
  originalFilename: string;
1121
- }[]> | undefined;
1174
+ }[] | [string, string] | undefined> | undefined;
1175
+ originalActionId?: string | undefined;
1122
1176
  }, {
1123
1177
  type: "REJECT";
1124
1178
  id: string;
1125
- data: Record<string, string | number | boolean | {
1179
+ status: "Rejected" | "Requested" | "Accepted";
1180
+ reason: {
1181
+ message: string;
1182
+ isDuplicate?: boolean | undefined;
1183
+ };
1184
+ transactionId: string;
1185
+ createdAt: string;
1186
+ createdBy: string;
1187
+ createdByRole: string;
1188
+ declaration: Record<string, string | number | boolean | {
1126
1189
  type: string;
1127
1190
  filename: string;
1128
1191
  originalFilename: string;
@@ -1159,11 +1222,10 @@ export declare const EventDocument: z.ZodObject<{
1159
1222
  option: string;
1160
1223
  filename: string;
1161
1224
  originalFilename: string;
1162
- }[]>;
1163
- createdAt: string;
1164
- createdBy: string;
1165
- createdAtLocation: string;
1166
- metadata?: Record<string, string | number | boolean | {
1225
+ }[] | [string, string] | undefined>;
1226
+ createdBySignature?: string | null | undefined;
1227
+ createdAtLocation?: string | null | undefined;
1228
+ annotation?: Record<string, string | number | boolean | {
1167
1229
  type: string;
1168
1230
  filename: string;
1169
1231
  originalFilename: string;
@@ -1200,12 +1262,17 @@ export declare const EventDocument: z.ZodObject<{
1200
1262
  option: string;
1201
1263
  filename: string;
1202
1264
  originalFilename: string;
1203
- }[]> | undefined;
1265
+ }[] | [string, string] | undefined> | undefined;
1266
+ originalActionId?: string | undefined;
1204
1267
  }>, z.ZodObject<z.objectUtil.extendShape<{
1205
1268
  id: z.ZodString;
1269
+ transactionId: z.ZodString;
1206
1270
  createdAt: z.ZodString;
1207
1271
  createdBy: z.ZodString;
1208
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1272
+ createdByRole: z.ZodString;
1273
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1274
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1275
+ 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
1276
  filename: z.ZodString;
1210
1277
  originalFilename: z.ZodString;
1211
1278
  type: z.ZodString;
@@ -1288,7 +1355,7 @@ export declare const EventDocument: z.ZodObject<{
1288
1355
  province: string;
1289
1356
  urbanOrRural: "RURAL";
1290
1357
  village?: string | null | undefined;
1291
- }>, z.ZodObject<{
1358
+ }>, z.ZodUndefined, z.ZodObject<{
1292
1359
  country: z.ZodString;
1293
1360
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1294
1361
  state: z.ZodString;
@@ -1319,7 +1386,7 @@ export declare const EventDocument: z.ZodObject<{
1319
1386
  addressLine3?: string | null | undefined;
1320
1387
  postcodeOrZip?: string | null | undefined;
1321
1388
  }>]>>;
1322
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1389
+ 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
1390
  filename: z.ZodString;
1324
1391
  originalFilename: z.ZodString;
1325
1392
  type: z.ZodString;
@@ -1402,7 +1469,7 @@ export declare const EventDocument: z.ZodObject<{
1402
1469
  province: string;
1403
1470
  urbanOrRural: "RURAL";
1404
1471
  village?: string | null | undefined;
1405
- }>, z.ZodObject<{
1472
+ }>, z.ZodUndefined, z.ZodObject<{
1406
1473
  country: z.ZodString;
1407
1474
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1408
1475
  state: z.ZodString;
@@ -1433,13 +1500,19 @@ export declare const EventDocument: z.ZodObject<{
1433
1500
  addressLine3?: string | null | undefined;
1434
1501
  postcodeOrZip?: string | null | undefined;
1435
1502
  }>]>>>;
1436
- createdAtLocation: z.ZodString;
1503
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1504
+ originalActionId: z.ZodOptional<z.ZodString>;
1437
1505
  }, {
1438
1506
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1439
1507
  }>, "strip", z.ZodTypeAny, {
1440
1508
  type: "MARKED_AS_DUPLICATE";
1441
1509
  id: string;
1442
- data: Record<string, string | number | boolean | {
1510
+ status: "Rejected" | "Requested" | "Accepted";
1511
+ transactionId: string;
1512
+ createdAt: string;
1513
+ createdBy: string;
1514
+ createdByRole: string;
1515
+ declaration: Record<string, string | number | boolean | {
1443
1516
  type: string;
1444
1517
  filename: string;
1445
1518
  originalFilename: string;
@@ -1476,11 +1549,10 @@ export declare const EventDocument: z.ZodObject<{
1476
1549
  option: string;
1477
1550
  filename: string;
1478
1551
  originalFilename: string;
1479
- }[]>;
1480
- createdAt: string;
1481
- createdBy: string;
1482
- createdAtLocation: string;
1483
- metadata?: Record<string, string | number | boolean | {
1552
+ }[] | [string, string] | undefined>;
1553
+ createdBySignature?: string | null | undefined;
1554
+ createdAtLocation?: string | null | undefined;
1555
+ annotation?: Record<string, string | number | boolean | {
1484
1556
  type: string;
1485
1557
  filename: string;
1486
1558
  originalFilename: string;
@@ -1517,11 +1589,17 @@ export declare const EventDocument: z.ZodObject<{
1517
1589
  option: string;
1518
1590
  filename: string;
1519
1591
  originalFilename: string;
1520
- }[]> | undefined;
1592
+ }[] | [string, string] | undefined> | undefined;
1593
+ originalActionId?: string | undefined;
1521
1594
  }, {
1522
1595
  type: "MARKED_AS_DUPLICATE";
1523
1596
  id: string;
1524
- data: Record<string, string | number | boolean | {
1597
+ status: "Rejected" | "Requested" | "Accepted";
1598
+ transactionId: string;
1599
+ createdAt: string;
1600
+ createdBy: string;
1601
+ createdByRole: string;
1602
+ declaration: Record<string, string | number | boolean | {
1525
1603
  type: string;
1526
1604
  filename: string;
1527
1605
  originalFilename: string;
@@ -1558,11 +1636,10 @@ export declare const EventDocument: z.ZodObject<{
1558
1636
  option: string;
1559
1637
  filename: string;
1560
1638
  originalFilename: string;
1561
- }[]>;
1562
- createdAt: string;
1563
- createdBy: string;
1564
- createdAtLocation: string;
1565
- metadata?: Record<string, string | number | boolean | {
1639
+ }[] | [string, string] | undefined>;
1640
+ createdBySignature?: string | null | undefined;
1641
+ createdAtLocation?: string | null | undefined;
1642
+ annotation?: Record<string, string | number | boolean | {
1566
1643
  type: string;
1567
1644
  filename: string;
1568
1645
  originalFilename: string;
@@ -1599,12 +1676,17 @@ export declare const EventDocument: z.ZodObject<{
1599
1676
  option: string;
1600
1677
  filename: string;
1601
1678
  originalFilename: string;
1602
- }[]> | undefined;
1679
+ }[] | [string, string] | undefined> | undefined;
1680
+ originalActionId?: string | undefined;
1603
1681
  }>, z.ZodObject<z.objectUtil.extendShape<{
1604
1682
  id: z.ZodString;
1683
+ transactionId: z.ZodString;
1605
1684
  createdAt: z.ZodString;
1606
1685
  createdBy: z.ZodString;
1607
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1686
+ createdByRole: z.ZodString;
1687
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1688
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1689
+ 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
1690
  filename: z.ZodString;
1609
1691
  originalFilename: z.ZodString;
1610
1692
  type: z.ZodString;
@@ -1687,7 +1769,7 @@ export declare const EventDocument: z.ZodObject<{
1687
1769
  province: string;
1688
1770
  urbanOrRural: "RURAL";
1689
1771
  village?: string | null | undefined;
1690
- }>, z.ZodObject<{
1772
+ }>, z.ZodUndefined, z.ZodObject<{
1691
1773
  country: z.ZodString;
1692
1774
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1693
1775
  state: z.ZodString;
@@ -1718,7 +1800,7 @@ export declare const EventDocument: z.ZodObject<{
1718
1800
  addressLine3?: string | null | undefined;
1719
1801
  postcodeOrZip?: string | null | undefined;
1720
1802
  }>]>>;
1721
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1803
+ 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
1804
  filename: z.ZodString;
1723
1805
  originalFilename: z.ZodString;
1724
1806
  type: z.ZodString;
@@ -1801,7 +1883,7 @@ export declare const EventDocument: z.ZodObject<{
1801
1883
  province: string;
1802
1884
  urbanOrRural: "RURAL";
1803
1885
  village?: string | null | undefined;
1804
- }>, z.ZodObject<{
1886
+ }>, z.ZodUndefined, z.ZodObject<{
1805
1887
  country: z.ZodString;
1806
1888
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1807
1889
  state: z.ZodString;
@@ -1832,13 +1914,33 @@ export declare const EventDocument: z.ZodObject<{
1832
1914
  addressLine3?: string | null | undefined;
1833
1915
  postcodeOrZip?: string | null | undefined;
1834
1916
  }>]>>>;
1835
- createdAtLocation: z.ZodString;
1917
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1918
+ originalActionId: z.ZodOptional<z.ZodString>;
1836
1919
  }, {
1837
1920
  type: z.ZodLiteral<"ARCHIVE">;
1921
+ reason: z.ZodObject<{
1922
+ message: z.ZodString;
1923
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
1924
+ }, "strip", z.ZodTypeAny, {
1925
+ message: string;
1926
+ isDuplicate?: boolean | undefined;
1927
+ }, {
1928
+ message: string;
1929
+ isDuplicate?: boolean | undefined;
1930
+ }>;
1838
1931
  }>, "strip", z.ZodTypeAny, {
1839
1932
  type: "ARCHIVE";
1840
1933
  id: string;
1841
- data: Record<string, string | number | boolean | {
1934
+ status: "Rejected" | "Requested" | "Accepted";
1935
+ reason: {
1936
+ message: string;
1937
+ isDuplicate?: boolean | undefined;
1938
+ };
1939
+ transactionId: string;
1940
+ createdAt: string;
1941
+ createdBy: string;
1942
+ createdByRole: string;
1943
+ declaration: Record<string, string | number | boolean | {
1842
1944
  type: string;
1843
1945
  filename: string;
1844
1946
  originalFilename: string;
@@ -1875,11 +1977,10 @@ export declare const EventDocument: z.ZodObject<{
1875
1977
  option: string;
1876
1978
  filename: string;
1877
1979
  originalFilename: string;
1878
- }[]>;
1879
- createdAt: string;
1880
- createdBy: string;
1881
- createdAtLocation: string;
1882
- metadata?: Record<string, string | number | boolean | {
1980
+ }[] | [string, string] | undefined>;
1981
+ createdBySignature?: string | null | undefined;
1982
+ createdAtLocation?: string | null | undefined;
1983
+ annotation?: Record<string, string | number | boolean | {
1883
1984
  type: string;
1884
1985
  filename: string;
1885
1986
  originalFilename: string;
@@ -1916,11 +2017,21 @@ export declare const EventDocument: z.ZodObject<{
1916
2017
  option: string;
1917
2018
  filename: string;
1918
2019
  originalFilename: string;
1919
- }[]> | undefined;
2020
+ }[] | [string, string] | undefined> | undefined;
2021
+ originalActionId?: string | undefined;
1920
2022
  }, {
1921
2023
  type: "ARCHIVE";
1922
2024
  id: string;
1923
- data: Record<string, string | number | boolean | {
2025
+ status: "Rejected" | "Requested" | "Accepted";
2026
+ reason: {
2027
+ message: string;
2028
+ isDuplicate?: boolean | undefined;
2029
+ };
2030
+ transactionId: string;
2031
+ createdAt: string;
2032
+ createdBy: string;
2033
+ createdByRole: string;
2034
+ declaration: Record<string, string | number | boolean | {
1924
2035
  type: string;
1925
2036
  filename: string;
1926
2037
  originalFilename: string;
@@ -1957,11 +2068,10 @@ export declare const EventDocument: z.ZodObject<{
1957
2068
  option: string;
1958
2069
  filename: string;
1959
2070
  originalFilename: string;
1960
- }[]>;
1961
- createdAt: string;
1962
- createdBy: string;
1963
- createdAtLocation: string;
1964
- metadata?: Record<string, string | number | boolean | {
2071
+ }[] | [string, string] | undefined>;
2072
+ createdBySignature?: string | null | undefined;
2073
+ createdAtLocation?: string | null | undefined;
2074
+ annotation?: Record<string, string | number | boolean | {
1965
2075
  type: string;
1966
2076
  filename: string;
1967
2077
  originalFilename: string;
@@ -1998,12 +2108,17 @@ export declare const EventDocument: z.ZodObject<{
1998
2108
  option: string;
1999
2109
  filename: string;
2000
2110
  originalFilename: string;
2001
- }[]> | undefined;
2111
+ }[] | [string, string] | undefined> | undefined;
2112
+ originalActionId?: string | undefined;
2002
2113
  }>, z.ZodObject<z.objectUtil.extendShape<{
2003
2114
  id: z.ZodString;
2115
+ transactionId: z.ZodString;
2004
2116
  createdAt: z.ZodString;
2005
2117
  createdBy: z.ZodString;
2006
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2118
+ createdByRole: z.ZodString;
2119
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2120
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2121
+ 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
2122
  filename: z.ZodString;
2008
2123
  originalFilename: z.ZodString;
2009
2124
  type: z.ZodString;
@@ -2086,7 +2201,7 @@ export declare const EventDocument: z.ZodObject<{
2086
2201
  province: string;
2087
2202
  urbanOrRural: "RURAL";
2088
2203
  village?: string | null | undefined;
2089
- }>, z.ZodObject<{
2204
+ }>, z.ZodUndefined, z.ZodObject<{
2090
2205
  country: z.ZodString;
2091
2206
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2092
2207
  state: z.ZodString;
@@ -2117,7 +2232,7 @@ export declare const EventDocument: z.ZodObject<{
2117
2232
  addressLine3?: string | null | undefined;
2118
2233
  postcodeOrZip?: string | null | undefined;
2119
2234
  }>]>>;
2120
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2235
+ 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
2236
  filename: z.ZodString;
2122
2237
  originalFilename: z.ZodString;
2123
2238
  type: z.ZodString;
@@ -2200,7 +2315,7 @@ export declare const EventDocument: z.ZodObject<{
2200
2315
  province: string;
2201
2316
  urbanOrRural: "RURAL";
2202
2317
  village?: string | null | undefined;
2203
- }>, z.ZodObject<{
2318
+ }>, z.ZodUndefined, z.ZodObject<{
2204
2319
  country: z.ZodString;
2205
2320
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2206
2321
  state: z.ZodString;
@@ -2231,13 +2346,19 @@ export declare const EventDocument: z.ZodObject<{
2231
2346
  addressLine3?: string | null | undefined;
2232
2347
  postcodeOrZip?: string | null | undefined;
2233
2348
  }>]>>>;
2234
- createdAtLocation: z.ZodString;
2349
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2350
+ originalActionId: z.ZodOptional<z.ZodString>;
2235
2351
  }, {
2236
2352
  type: z.ZodLiteral<"NOTIFY">;
2237
2353
  }>, "strip", z.ZodTypeAny, {
2238
2354
  type: "NOTIFY";
2239
2355
  id: string;
2240
- data: Record<string, string | number | boolean | {
2356
+ status: "Rejected" | "Requested" | "Accepted";
2357
+ transactionId: string;
2358
+ createdAt: string;
2359
+ createdBy: string;
2360
+ createdByRole: string;
2361
+ declaration: Record<string, string | number | boolean | {
2241
2362
  type: string;
2242
2363
  filename: string;
2243
2364
  originalFilename: string;
@@ -2274,11 +2395,10 @@ export declare const EventDocument: z.ZodObject<{
2274
2395
  option: string;
2275
2396
  filename: string;
2276
2397
  originalFilename: string;
2277
- }[]>;
2278
- createdAt: string;
2279
- createdBy: string;
2280
- createdAtLocation: string;
2281
- metadata?: Record<string, string | number | boolean | {
2398
+ }[] | [string, string] | undefined>;
2399
+ createdBySignature?: string | null | undefined;
2400
+ createdAtLocation?: string | null | undefined;
2401
+ annotation?: Record<string, string | number | boolean | {
2282
2402
  type: string;
2283
2403
  filename: string;
2284
2404
  originalFilename: string;
@@ -2315,11 +2435,17 @@ export declare const EventDocument: z.ZodObject<{
2315
2435
  option: string;
2316
2436
  filename: string;
2317
2437
  originalFilename: string;
2318
- }[]> | undefined;
2438
+ }[] | [string, string] | undefined> | undefined;
2439
+ originalActionId?: string | undefined;
2319
2440
  }, {
2320
2441
  type: "NOTIFY";
2321
2442
  id: string;
2322
- data: Record<string, string | number | boolean | {
2443
+ status: "Rejected" | "Requested" | "Accepted";
2444
+ transactionId: string;
2445
+ createdAt: string;
2446
+ createdBy: string;
2447
+ createdByRole: string;
2448
+ declaration: Record<string, string | number | boolean | {
2323
2449
  type: string;
2324
2450
  filename: string;
2325
2451
  originalFilename: string;
@@ -2356,11 +2482,10 @@ export declare const EventDocument: z.ZodObject<{
2356
2482
  option: string;
2357
2483
  filename: string;
2358
2484
  originalFilename: string;
2359
- }[]>;
2360
- createdAt: string;
2361
- createdBy: string;
2362
- createdAtLocation: string;
2363
- metadata?: Record<string, string | number | boolean | {
2485
+ }[] | [string, string] | undefined>;
2486
+ createdBySignature?: string | null | undefined;
2487
+ createdAtLocation?: string | null | undefined;
2488
+ annotation?: Record<string, string | number | boolean | {
2364
2489
  type: string;
2365
2490
  filename: string;
2366
2491
  originalFilename: string;
@@ -2397,12 +2522,17 @@ export declare const EventDocument: z.ZodObject<{
2397
2522
  option: string;
2398
2523
  filename: string;
2399
2524
  originalFilename: string;
2400
- }[]> | undefined;
2525
+ }[] | [string, string] | undefined> | undefined;
2526
+ originalActionId?: string | undefined;
2401
2527
  }>, z.ZodObject<z.objectUtil.extendShape<{
2402
2528
  id: z.ZodString;
2529
+ transactionId: z.ZodString;
2403
2530
  createdAt: z.ZodString;
2404
2531
  createdBy: z.ZodString;
2405
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2532
+ createdByRole: z.ZodString;
2533
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2534
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2535
+ 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
2536
  filename: z.ZodString;
2407
2537
  originalFilename: z.ZodString;
2408
2538
  type: z.ZodString;
@@ -2485,7 +2615,7 @@ export declare const EventDocument: z.ZodObject<{
2485
2615
  province: string;
2486
2616
  urbanOrRural: "RURAL";
2487
2617
  village?: string | null | undefined;
2488
- }>, z.ZodObject<{
2618
+ }>, z.ZodUndefined, z.ZodObject<{
2489
2619
  country: z.ZodString;
2490
2620
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2491
2621
  state: z.ZodString;
@@ -2516,7 +2646,7 @@ export declare const EventDocument: z.ZodObject<{
2516
2646
  addressLine3?: string | null | undefined;
2517
2647
  postcodeOrZip?: string | null | undefined;
2518
2648
  }>]>>;
2519
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2649
+ 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
2650
  filename: z.ZodString;
2521
2651
  originalFilename: z.ZodString;
2522
2652
  type: z.ZodString;
@@ -2599,7 +2729,7 @@ export declare const EventDocument: z.ZodObject<{
2599
2729
  province: string;
2600
2730
  urbanOrRural: "RURAL";
2601
2731
  village?: string | null | undefined;
2602
- }>, z.ZodObject<{
2732
+ }>, z.ZodUndefined, z.ZodObject<{
2603
2733
  country: z.ZodString;
2604
2734
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2605
2735
  state: z.ZodString;
@@ -2630,23 +2760,20 @@ export declare const EventDocument: z.ZodObject<{
2630
2760
  addressLine3?: string | null | undefined;
2631
2761
  postcodeOrZip?: string | null | undefined;
2632
2762
  }>]>>>;
2633
- createdAtLocation: z.ZodString;
2763
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2764
+ originalActionId: z.ZodOptional<z.ZodString>;
2634
2765
  }, {
2635
2766
  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
- }>;
2767
+ registrationNumber: z.ZodOptional<z.ZodString>;
2646
2768
  }>, "strip", z.ZodTypeAny, {
2647
2769
  type: "REGISTER";
2648
2770
  id: string;
2649
- data: Record<string, string | number | boolean | {
2771
+ status: "Rejected" | "Requested" | "Accepted";
2772
+ transactionId: string;
2773
+ createdAt: string;
2774
+ createdBy: string;
2775
+ createdByRole: string;
2776
+ declaration: Record<string, string | number | boolean | {
2650
2777
  type: string;
2651
2778
  filename: string;
2652
2779
  originalFilename: string;
@@ -2683,15 +2810,10 @@ export declare const EventDocument: z.ZodObject<{
2683
2810
  option: string;
2684
2811
  filename: string;
2685
2812
  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 | {
2813
+ }[] | [string, string] | undefined>;
2814
+ createdBySignature?: string | null | undefined;
2815
+ createdAtLocation?: string | null | undefined;
2816
+ annotation?: Record<string, string | number | boolean | {
2695
2817
  type: string;
2696
2818
  filename: string;
2697
2819
  originalFilename: string;
@@ -2728,11 +2850,18 @@ export declare const EventDocument: z.ZodObject<{
2728
2850
  option: string;
2729
2851
  filename: string;
2730
2852
  originalFilename: string;
2731
- }[]> | undefined;
2853
+ }[] | [string, string] | undefined> | undefined;
2854
+ originalActionId?: string | undefined;
2855
+ registrationNumber?: string | undefined;
2732
2856
  }, {
2733
2857
  type: "REGISTER";
2734
2858
  id: string;
2735
- data: Record<string, string | number | boolean | {
2859
+ status: "Rejected" | "Requested" | "Accepted";
2860
+ transactionId: string;
2861
+ createdAt: string;
2862
+ createdBy: string;
2863
+ createdByRole: string;
2864
+ declaration: Record<string, string | number | boolean | {
2736
2865
  type: string;
2737
2866
  filename: string;
2738
2867
  originalFilename: string;
@@ -2769,15 +2898,10 @@ export declare const EventDocument: z.ZodObject<{
2769
2898
  option: string;
2770
2899
  filename: string;
2771
2900
  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 | {
2901
+ }[] | [string, string] | undefined>;
2902
+ createdBySignature?: string | null | undefined;
2903
+ createdAtLocation?: string | null | undefined;
2904
+ annotation?: Record<string, string | number | boolean | {
2781
2905
  type: string;
2782
2906
  filename: string;
2783
2907
  originalFilename: string;
@@ -2814,12 +2938,18 @@ export declare const EventDocument: z.ZodObject<{
2814
2938
  option: string;
2815
2939
  filename: string;
2816
2940
  originalFilename: string;
2817
- }[]> | undefined;
2941
+ }[] | [string, string] | undefined> | undefined;
2942
+ originalActionId?: string | undefined;
2943
+ registrationNumber?: string | undefined;
2818
2944
  }>, z.ZodObject<z.objectUtil.extendShape<{
2819
2945
  id: z.ZodString;
2946
+ transactionId: z.ZodString;
2820
2947
  createdAt: z.ZodString;
2821
2948
  createdBy: z.ZodString;
2822
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2949
+ createdByRole: z.ZodString;
2950
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2951
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2952
+ 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
2953
  filename: z.ZodString;
2824
2954
  originalFilename: z.ZodString;
2825
2955
  type: z.ZodString;
@@ -2902,7 +3032,7 @@ export declare const EventDocument: z.ZodObject<{
2902
3032
  province: string;
2903
3033
  urbanOrRural: "RURAL";
2904
3034
  village?: string | null | undefined;
2905
- }>, z.ZodObject<{
3035
+ }>, z.ZodUndefined, z.ZodObject<{
2906
3036
  country: z.ZodString;
2907
3037
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2908
3038
  state: z.ZodString;
@@ -2933,7 +3063,7 @@ export declare const EventDocument: z.ZodObject<{
2933
3063
  addressLine3?: string | null | undefined;
2934
3064
  postcodeOrZip?: string | null | undefined;
2935
3065
  }>]>>;
2936
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3066
+ 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
3067
  filename: z.ZodString;
2938
3068
  originalFilename: z.ZodString;
2939
3069
  type: z.ZodString;
@@ -3016,7 +3146,7 @@ export declare const EventDocument: z.ZodObject<{
3016
3146
  province: string;
3017
3147
  urbanOrRural: "RURAL";
3018
3148
  village?: string | null | undefined;
3019
- }>, z.ZodObject<{
3149
+ }>, z.ZodUndefined, z.ZodObject<{
3020
3150
  country: z.ZodString;
3021
3151
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3022
3152
  state: z.ZodString;
@@ -3047,13 +3177,19 @@ export declare const EventDocument: z.ZodObject<{
3047
3177
  addressLine3?: string | null | undefined;
3048
3178
  postcodeOrZip?: string | null | undefined;
3049
3179
  }>]>>>;
3050
- createdAtLocation: z.ZodString;
3180
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3181
+ originalActionId: z.ZodOptional<z.ZodString>;
3051
3182
  }, {
3052
3183
  type: z.ZodLiteral<"DECLARE">;
3053
3184
  }>, "strip", z.ZodTypeAny, {
3054
3185
  type: "DECLARE";
3055
3186
  id: string;
3056
- data: Record<string, string | number | boolean | {
3187
+ status: "Rejected" | "Requested" | "Accepted";
3188
+ transactionId: string;
3189
+ createdAt: string;
3190
+ createdBy: string;
3191
+ createdByRole: string;
3192
+ declaration: Record<string, string | number | boolean | {
3057
3193
  type: string;
3058
3194
  filename: string;
3059
3195
  originalFilename: string;
@@ -3090,11 +3226,10 @@ export declare const EventDocument: z.ZodObject<{
3090
3226
  option: string;
3091
3227
  filename: string;
3092
3228
  originalFilename: string;
3093
- }[]>;
3094
- createdAt: string;
3095
- createdBy: string;
3096
- createdAtLocation: string;
3097
- metadata?: Record<string, string | number | boolean | {
3229
+ }[] | [string, string] | undefined>;
3230
+ createdBySignature?: string | null | undefined;
3231
+ createdAtLocation?: string | null | undefined;
3232
+ annotation?: Record<string, string | number | boolean | {
3098
3233
  type: string;
3099
3234
  filename: string;
3100
3235
  originalFilename: string;
@@ -3131,11 +3266,17 @@ export declare const EventDocument: z.ZodObject<{
3131
3266
  option: string;
3132
3267
  filename: string;
3133
3268
  originalFilename: string;
3134
- }[]> | undefined;
3269
+ }[] | [string, string] | undefined> | undefined;
3270
+ originalActionId?: string | undefined;
3135
3271
  }, {
3136
3272
  type: "DECLARE";
3137
3273
  id: string;
3138
- data: Record<string, string | number | boolean | {
3274
+ status: "Rejected" | "Requested" | "Accepted";
3275
+ transactionId: string;
3276
+ createdAt: string;
3277
+ createdBy: string;
3278
+ createdByRole: string;
3279
+ declaration: Record<string, string | number | boolean | {
3139
3280
  type: string;
3140
3281
  filename: string;
3141
3282
  originalFilename: string;
@@ -3172,11 +3313,10 @@ export declare const EventDocument: z.ZodObject<{
3172
3313
  option: string;
3173
3314
  filename: string;
3174
3315
  originalFilename: string;
3175
- }[]>;
3176
- createdAt: string;
3177
- createdBy: string;
3178
- createdAtLocation: string;
3179
- metadata?: Record<string, string | number | boolean | {
3316
+ }[] | [string, string] | undefined>;
3317
+ createdBySignature?: string | null | undefined;
3318
+ createdAtLocation?: string | null | undefined;
3319
+ annotation?: Record<string, string | number | boolean | {
3180
3320
  type: string;
3181
3321
  filename: string;
3182
3322
  originalFilename: string;
@@ -3213,12 +3353,17 @@ export declare const EventDocument: z.ZodObject<{
3213
3353
  option: string;
3214
3354
  filename: string;
3215
3355
  originalFilename: string;
3216
- }[]> | undefined;
3356
+ }[] | [string, string] | undefined> | undefined;
3357
+ originalActionId?: string | undefined;
3217
3358
  }>, z.ZodObject<z.objectUtil.extendShape<{
3218
3359
  id: z.ZodString;
3360
+ transactionId: z.ZodString;
3219
3361
  createdAt: z.ZodString;
3220
3362
  createdBy: z.ZodString;
3221
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3363
+ createdByRole: z.ZodString;
3364
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3365
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3366
+ 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
3367
  filename: z.ZodString;
3223
3368
  originalFilename: z.ZodString;
3224
3369
  type: z.ZodString;
@@ -3301,7 +3446,7 @@ export declare const EventDocument: z.ZodObject<{
3301
3446
  province: string;
3302
3447
  urbanOrRural: "RURAL";
3303
3448
  village?: string | null | undefined;
3304
- }>, z.ZodObject<{
3449
+ }>, z.ZodUndefined, z.ZodObject<{
3305
3450
  country: z.ZodString;
3306
3451
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3307
3452
  state: z.ZodString;
@@ -3332,7 +3477,7 @@ export declare const EventDocument: z.ZodObject<{
3332
3477
  addressLine3?: string | null | undefined;
3333
3478
  postcodeOrZip?: string | null | undefined;
3334
3479
  }>]>>;
3335
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3480
+ 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
3481
  filename: z.ZodString;
3337
3482
  originalFilename: z.ZodString;
3338
3483
  type: z.ZodString;
@@ -3415,7 +3560,7 @@ export declare const EventDocument: z.ZodObject<{
3415
3560
  province: string;
3416
3561
  urbanOrRural: "RURAL";
3417
3562
  village?: string | null | undefined;
3418
- }>, z.ZodObject<{
3563
+ }>, z.ZodUndefined, z.ZodObject<{
3419
3564
  country: z.ZodString;
3420
3565
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3421
3566
  state: z.ZodString;
@@ -3446,14 +3591,20 @@ export declare const EventDocument: z.ZodObject<{
3446
3591
  addressLine3?: string | null | undefined;
3447
3592
  postcodeOrZip?: string | null | undefined;
3448
3593
  }>]>>>;
3449
- createdAtLocation: z.ZodString;
3594
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3595
+ originalActionId: z.ZodOptional<z.ZodString>;
3450
3596
  }, {
3451
3597
  type: z.ZodLiteral<"ASSIGN">;
3452
3598
  assignedTo: z.ZodString;
3453
3599
  }>, "strip", z.ZodTypeAny, {
3454
3600
  type: "ASSIGN";
3455
3601
  id: string;
3456
- data: Record<string, string | number | boolean | {
3602
+ status: "Rejected" | "Requested" | "Accepted";
3603
+ transactionId: string;
3604
+ createdAt: string;
3605
+ createdBy: string;
3606
+ createdByRole: string;
3607
+ declaration: Record<string, string | number | boolean | {
3457
3608
  type: string;
3458
3609
  filename: string;
3459
3610
  originalFilename: string;
@@ -3490,12 +3641,11 @@ export declare const EventDocument: z.ZodObject<{
3490
3641
  option: string;
3491
3642
  filename: string;
3492
3643
  originalFilename: string;
3493
- }[]>;
3494
- createdAt: string;
3495
- createdBy: string;
3496
- createdAtLocation: string;
3644
+ }[] | [string, string] | undefined>;
3497
3645
  assignedTo: string;
3498
- metadata?: Record<string, string | number | boolean | {
3646
+ createdBySignature?: string | null | undefined;
3647
+ createdAtLocation?: string | null | undefined;
3648
+ annotation?: Record<string, string | number | boolean | {
3499
3649
  type: string;
3500
3650
  filename: string;
3501
3651
  originalFilename: string;
@@ -3532,11 +3682,17 @@ export declare const EventDocument: z.ZodObject<{
3532
3682
  option: string;
3533
3683
  filename: string;
3534
3684
  originalFilename: string;
3535
- }[]> | undefined;
3685
+ }[] | [string, string] | undefined> | undefined;
3686
+ originalActionId?: string | undefined;
3536
3687
  }, {
3537
3688
  type: "ASSIGN";
3538
3689
  id: string;
3539
- data: Record<string, string | number | boolean | {
3690
+ status: "Rejected" | "Requested" | "Accepted";
3691
+ transactionId: string;
3692
+ createdAt: string;
3693
+ createdBy: string;
3694
+ createdByRole: string;
3695
+ declaration: Record<string, string | number | boolean | {
3540
3696
  type: string;
3541
3697
  filename: string;
3542
3698
  originalFilename: string;
@@ -3573,12 +3729,11 @@ export declare const EventDocument: z.ZodObject<{
3573
3729
  option: string;
3574
3730
  filename: string;
3575
3731
  originalFilename: string;
3576
- }[]>;
3577
- createdAt: string;
3578
- createdBy: string;
3579
- createdAtLocation: string;
3732
+ }[] | [string, string] | undefined>;
3580
3733
  assignedTo: string;
3581
- metadata?: Record<string, string | number | boolean | {
3734
+ createdBySignature?: string | null | undefined;
3735
+ createdAtLocation?: string | null | undefined;
3736
+ annotation?: Record<string, string | number | boolean | {
3582
3737
  type: string;
3583
3738
  filename: string;
3584
3739
  originalFilename: string;
@@ -3615,12 +3770,17 @@ export declare const EventDocument: z.ZodObject<{
3615
3770
  option: string;
3616
3771
  filename: string;
3617
3772
  originalFilename: string;
3618
- }[]> | undefined;
3773
+ }[] | [string, string] | undefined> | undefined;
3774
+ originalActionId?: string | undefined;
3619
3775
  }>, z.ZodObject<z.objectUtil.extendShape<{
3620
3776
  id: z.ZodString;
3777
+ transactionId: z.ZodString;
3621
3778
  createdAt: z.ZodString;
3622
3779
  createdBy: z.ZodString;
3623
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3780
+ createdByRole: z.ZodString;
3781
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3782
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3783
+ 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
3784
  filename: z.ZodString;
3625
3785
  originalFilename: z.ZodString;
3626
3786
  type: z.ZodString;
@@ -3703,7 +3863,7 @@ export declare const EventDocument: z.ZodObject<{
3703
3863
  province: string;
3704
3864
  urbanOrRural: "RURAL";
3705
3865
  village?: string | null | undefined;
3706
- }>, z.ZodObject<{
3866
+ }>, z.ZodUndefined, z.ZodObject<{
3707
3867
  country: z.ZodString;
3708
3868
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3709
3869
  state: z.ZodString;
@@ -3734,7 +3894,7 @@ export declare const EventDocument: z.ZodObject<{
3734
3894
  addressLine3?: string | null | undefined;
3735
3895
  postcodeOrZip?: string | null | undefined;
3736
3896
  }>]>>;
3737
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3897
+ 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
3898
  filename: z.ZodString;
3739
3899
  originalFilename: z.ZodString;
3740
3900
  type: z.ZodString;
@@ -3817,7 +3977,7 @@ export declare const EventDocument: z.ZodObject<{
3817
3977
  province: string;
3818
3978
  urbanOrRural: "RURAL";
3819
3979
  village?: string | null | undefined;
3820
- }>, z.ZodObject<{
3980
+ }>, z.ZodUndefined, z.ZodObject<{
3821
3981
  country: z.ZodString;
3822
3982
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3823
3983
  state: z.ZodString;
@@ -3848,13 +4008,19 @@ export declare const EventDocument: z.ZodObject<{
3848
4008
  addressLine3?: string | null | undefined;
3849
4009
  postcodeOrZip?: string | null | undefined;
3850
4010
  }>]>>>;
3851
- createdAtLocation: z.ZodString;
4011
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4012
+ originalActionId: z.ZodOptional<z.ZodString>;
3852
4013
  }, {
3853
4014
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
3854
4015
  }>, "strip", z.ZodTypeAny, {
3855
4016
  type: "REQUEST_CORRECTION";
3856
4017
  id: string;
3857
- data: Record<string, string | number | boolean | {
4018
+ status: "Rejected" | "Requested" | "Accepted";
4019
+ transactionId: string;
4020
+ createdAt: string;
4021
+ createdBy: string;
4022
+ createdByRole: string;
4023
+ declaration: Record<string, string | number | boolean | {
3858
4024
  type: string;
3859
4025
  filename: string;
3860
4026
  originalFilename: string;
@@ -3891,11 +4057,10 @@ export declare const EventDocument: z.ZodObject<{
3891
4057
  option: string;
3892
4058
  filename: string;
3893
4059
  originalFilename: string;
3894
- }[]>;
3895
- createdAt: string;
3896
- createdBy: string;
3897
- createdAtLocation: string;
3898
- metadata?: Record<string, string | number | boolean | {
4060
+ }[] | [string, string] | undefined>;
4061
+ createdBySignature?: string | null | undefined;
4062
+ createdAtLocation?: string | null | undefined;
4063
+ annotation?: Record<string, string | number | boolean | {
3899
4064
  type: string;
3900
4065
  filename: string;
3901
4066
  originalFilename: string;
@@ -3932,11 +4097,17 @@ export declare const EventDocument: z.ZodObject<{
3932
4097
  option: string;
3933
4098
  filename: string;
3934
4099
  originalFilename: string;
3935
- }[]> | undefined;
4100
+ }[] | [string, string] | undefined> | undefined;
4101
+ originalActionId?: string | undefined;
3936
4102
  }, {
3937
4103
  type: "REQUEST_CORRECTION";
3938
4104
  id: string;
3939
- data: Record<string, string | number | boolean | {
4105
+ status: "Rejected" | "Requested" | "Accepted";
4106
+ transactionId: string;
4107
+ createdAt: string;
4108
+ createdBy: string;
4109
+ createdByRole: string;
4110
+ declaration: Record<string, string | number | boolean | {
3940
4111
  type: string;
3941
4112
  filename: string;
3942
4113
  originalFilename: string;
@@ -3973,11 +4144,10 @@ export declare const EventDocument: z.ZodObject<{
3973
4144
  option: string;
3974
4145
  filename: string;
3975
4146
  originalFilename: string;
3976
- }[]>;
3977
- createdAt: string;
3978
- createdBy: string;
3979
- createdAtLocation: string;
3980
- metadata?: Record<string, string | number | boolean | {
4147
+ }[] | [string, string] | undefined>;
4148
+ createdBySignature?: string | null | undefined;
4149
+ createdAtLocation?: string | null | undefined;
4150
+ annotation?: Record<string, string | number | boolean | {
3981
4151
  type: string;
3982
4152
  filename: string;
3983
4153
  originalFilename: string;
@@ -4014,12 +4184,17 @@ export declare const EventDocument: z.ZodObject<{
4014
4184
  option: string;
4015
4185
  filename: string;
4016
4186
  originalFilename: string;
4017
- }[]> | undefined;
4187
+ }[] | [string, string] | undefined> | undefined;
4188
+ originalActionId?: string | undefined;
4018
4189
  }>, z.ZodObject<z.objectUtil.extendShape<{
4019
4190
  id: z.ZodString;
4191
+ transactionId: z.ZodString;
4020
4192
  createdAt: z.ZodString;
4021
4193
  createdBy: z.ZodString;
4022
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4194
+ createdByRole: z.ZodString;
4195
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4196
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4197
+ 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
4198
  filename: z.ZodString;
4024
4199
  originalFilename: z.ZodString;
4025
4200
  type: z.ZodString;
@@ -4102,7 +4277,7 @@ export declare const EventDocument: z.ZodObject<{
4102
4277
  province: string;
4103
4278
  urbanOrRural: "RURAL";
4104
4279
  village?: string | null | undefined;
4105
- }>, z.ZodObject<{
4280
+ }>, z.ZodUndefined, z.ZodObject<{
4106
4281
  country: z.ZodString;
4107
4282
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4108
4283
  state: z.ZodString;
@@ -4133,7 +4308,7 @@ export declare const EventDocument: z.ZodObject<{
4133
4308
  addressLine3?: string | null | undefined;
4134
4309
  postcodeOrZip?: string | null | undefined;
4135
4310
  }>]>>;
4136
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4311
+ 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
4312
  filename: z.ZodString;
4138
4313
  originalFilename: z.ZodString;
4139
4314
  type: z.ZodString;
@@ -4216,7 +4391,7 @@ export declare const EventDocument: z.ZodObject<{
4216
4391
  province: string;
4217
4392
  urbanOrRural: "RURAL";
4218
4393
  village?: string | null | undefined;
4219
- }>, z.ZodObject<{
4394
+ }>, z.ZodUndefined, z.ZodObject<{
4220
4395
  country: z.ZodString;
4221
4396
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4222
4397
  state: z.ZodString;
@@ -4247,14 +4422,20 @@ export declare const EventDocument: z.ZodObject<{
4247
4422
  addressLine3?: string | null | undefined;
4248
4423
  postcodeOrZip?: string | null | undefined;
4249
4424
  }>]>>>;
4250
- createdAtLocation: z.ZodString;
4425
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4426
+ originalActionId: z.ZodOptional<z.ZodString>;
4251
4427
  }, {
4252
4428
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
4253
4429
  requestId: z.ZodString;
4254
4430
  }>, "strip", z.ZodTypeAny, {
4255
4431
  type: "APPROVE_CORRECTION";
4256
4432
  id: string;
4257
- data: Record<string, string | number | boolean | {
4433
+ status: "Rejected" | "Requested" | "Accepted";
4434
+ transactionId: string;
4435
+ createdAt: string;
4436
+ createdBy: string;
4437
+ createdByRole: string;
4438
+ declaration: Record<string, string | number | boolean | {
4258
4439
  type: string;
4259
4440
  filename: string;
4260
4441
  originalFilename: string;
@@ -4291,12 +4472,11 @@ export declare const EventDocument: z.ZodObject<{
4291
4472
  option: string;
4292
4473
  filename: string;
4293
4474
  originalFilename: string;
4294
- }[]>;
4295
- createdAt: string;
4296
- createdBy: string;
4297
- createdAtLocation: string;
4475
+ }[] | [string, string] | undefined>;
4298
4476
  requestId: string;
4299
- metadata?: Record<string, string | number | boolean | {
4477
+ createdBySignature?: string | null | undefined;
4478
+ createdAtLocation?: string | null | undefined;
4479
+ annotation?: Record<string, string | number | boolean | {
4300
4480
  type: string;
4301
4481
  filename: string;
4302
4482
  originalFilename: string;
@@ -4333,11 +4513,17 @@ export declare const EventDocument: z.ZodObject<{
4333
4513
  option: string;
4334
4514
  filename: string;
4335
4515
  originalFilename: string;
4336
- }[]> | undefined;
4516
+ }[] | [string, string] | undefined> | undefined;
4517
+ originalActionId?: string | undefined;
4337
4518
  }, {
4338
4519
  type: "APPROVE_CORRECTION";
4339
4520
  id: string;
4340
- data: Record<string, string | number | boolean | {
4521
+ status: "Rejected" | "Requested" | "Accepted";
4522
+ transactionId: string;
4523
+ createdAt: string;
4524
+ createdBy: string;
4525
+ createdByRole: string;
4526
+ declaration: Record<string, string | number | boolean | {
4341
4527
  type: string;
4342
4528
  filename: string;
4343
4529
  originalFilename: string;
@@ -4374,12 +4560,11 @@ export declare const EventDocument: z.ZodObject<{
4374
4560
  option: string;
4375
4561
  filename: string;
4376
4562
  originalFilename: string;
4377
- }[]>;
4378
- createdAt: string;
4379
- createdBy: string;
4380
- createdAtLocation: string;
4563
+ }[] | [string, string] | undefined>;
4381
4564
  requestId: string;
4382
- metadata?: Record<string, string | number | boolean | {
4565
+ createdBySignature?: string | null | undefined;
4566
+ createdAtLocation?: string | null | undefined;
4567
+ annotation?: Record<string, string | number | boolean | {
4383
4568
  type: string;
4384
4569
  filename: string;
4385
4570
  originalFilename: string;
@@ -4416,12 +4601,17 @@ export declare const EventDocument: z.ZodObject<{
4416
4601
  option: string;
4417
4602
  filename: string;
4418
4603
  originalFilename: string;
4419
- }[]> | undefined;
4604
+ }[] | [string, string] | undefined> | undefined;
4605
+ originalActionId?: string | undefined;
4420
4606
  }>, z.ZodObject<z.objectUtil.extendShape<{
4421
4607
  id: z.ZodString;
4608
+ transactionId: z.ZodString;
4422
4609
  createdAt: z.ZodString;
4423
4610
  createdBy: z.ZodString;
4424
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4611
+ createdByRole: z.ZodString;
4612
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4613
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4614
+ 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
4615
  filename: z.ZodString;
4426
4616
  originalFilename: z.ZodString;
4427
4617
  type: z.ZodString;
@@ -4504,7 +4694,7 @@ export declare const EventDocument: z.ZodObject<{
4504
4694
  province: string;
4505
4695
  urbanOrRural: "RURAL";
4506
4696
  village?: string | null | undefined;
4507
- }>, z.ZodObject<{
4697
+ }>, z.ZodUndefined, z.ZodObject<{
4508
4698
  country: z.ZodString;
4509
4699
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4510
4700
  state: z.ZodString;
@@ -4535,7 +4725,7 @@ export declare const EventDocument: z.ZodObject<{
4535
4725
  addressLine3?: string | null | undefined;
4536
4726
  postcodeOrZip?: string | null | undefined;
4537
4727
  }>]>>;
4538
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4728
+ 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
4729
  filename: z.ZodString;
4540
4730
  originalFilename: z.ZodString;
4541
4731
  type: z.ZodString;
@@ -4618,7 +4808,7 @@ export declare const EventDocument: z.ZodObject<{
4618
4808
  province: string;
4619
4809
  urbanOrRural: "RURAL";
4620
4810
  village?: string | null | undefined;
4621
- }>, z.ZodObject<{
4811
+ }>, z.ZodUndefined, z.ZodObject<{
4622
4812
  country: z.ZodString;
4623
4813
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4624
4814
  state: z.ZodString;
@@ -4649,14 +4839,20 @@ export declare const EventDocument: z.ZodObject<{
4649
4839
  addressLine3?: string | null | undefined;
4650
4840
  postcodeOrZip?: string | null | undefined;
4651
4841
  }>]>>>;
4652
- createdAtLocation: z.ZodString;
4842
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4843
+ originalActionId: z.ZodOptional<z.ZodString>;
4653
4844
  }, {
4654
4845
  type: z.ZodLiteral<"REJECT_CORRECTION">;
4655
4846
  requestId: z.ZodString;
4656
4847
  }>, "strip", z.ZodTypeAny, {
4657
4848
  type: "REJECT_CORRECTION";
4658
4849
  id: string;
4659
- data: Record<string, string | number | boolean | {
4850
+ status: "Rejected" | "Requested" | "Accepted";
4851
+ transactionId: string;
4852
+ createdAt: string;
4853
+ createdBy: string;
4854
+ createdByRole: string;
4855
+ declaration: Record<string, string | number | boolean | {
4660
4856
  type: string;
4661
4857
  filename: string;
4662
4858
  originalFilename: string;
@@ -4693,12 +4889,11 @@ export declare const EventDocument: z.ZodObject<{
4693
4889
  option: string;
4694
4890
  filename: string;
4695
4891
  originalFilename: string;
4696
- }[]>;
4697
- createdAt: string;
4698
- createdBy: string;
4699
- createdAtLocation: string;
4892
+ }[] | [string, string] | undefined>;
4700
4893
  requestId: string;
4701
- metadata?: Record<string, string | number | boolean | {
4894
+ createdBySignature?: string | null | undefined;
4895
+ createdAtLocation?: string | null | undefined;
4896
+ annotation?: Record<string, string | number | boolean | {
4702
4897
  type: string;
4703
4898
  filename: string;
4704
4899
  originalFilename: string;
@@ -4735,11 +4930,17 @@ export declare const EventDocument: z.ZodObject<{
4735
4930
  option: string;
4736
4931
  filename: string;
4737
4932
  originalFilename: string;
4738
- }[]> | undefined;
4933
+ }[] | [string, string] | undefined> | undefined;
4934
+ originalActionId?: string | undefined;
4739
4935
  }, {
4740
4936
  type: "REJECT_CORRECTION";
4741
4937
  id: string;
4742
- data: Record<string, string | number | boolean | {
4938
+ status: "Rejected" | "Requested" | "Accepted";
4939
+ transactionId: string;
4940
+ createdAt: string;
4941
+ createdBy: string;
4942
+ createdByRole: string;
4943
+ declaration: Record<string, string | number | boolean | {
4743
4944
  type: string;
4744
4945
  filename: string;
4745
4946
  originalFilename: string;
@@ -4776,12 +4977,11 @@ export declare const EventDocument: z.ZodObject<{
4776
4977
  option: string;
4777
4978
  filename: string;
4778
4979
  originalFilename: string;
4779
- }[]>;
4780
- createdAt: string;
4781
- createdBy: string;
4782
- createdAtLocation: string;
4980
+ }[] | [string, string] | undefined>;
4783
4981
  requestId: string;
4784
- metadata?: Record<string, string | number | boolean | {
4982
+ createdBySignature?: string | null | undefined;
4983
+ createdAtLocation?: string | null | undefined;
4984
+ annotation?: Record<string, string | number | boolean | {
4785
4985
  type: string;
4786
4986
  filename: string;
4787
4987
  originalFilename: string;
@@ -4818,12 +5018,17 @@ export declare const EventDocument: z.ZodObject<{
4818
5018
  option: string;
4819
5019
  filename: string;
4820
5020
  originalFilename: string;
4821
- }[]> | undefined;
5021
+ }[] | [string, string] | undefined> | undefined;
5022
+ originalActionId?: string | undefined;
4822
5023
  }>, z.ZodObject<z.objectUtil.extendShape<{
4823
5024
  id: z.ZodString;
5025
+ transactionId: z.ZodString;
4824
5026
  createdAt: z.ZodString;
4825
5027
  createdBy: z.ZodString;
4826
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5028
+ createdByRole: z.ZodString;
5029
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5030
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5031
+ 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
5032
  filename: z.ZodString;
4828
5033
  originalFilename: z.ZodString;
4829
5034
  type: z.ZodString;
@@ -4906,7 +5111,7 @@ export declare const EventDocument: z.ZodObject<{
4906
5111
  province: string;
4907
5112
  urbanOrRural: "RURAL";
4908
5113
  village?: string | null | undefined;
4909
- }>, z.ZodObject<{
5114
+ }>, z.ZodUndefined, z.ZodObject<{
4910
5115
  country: z.ZodString;
4911
5116
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4912
5117
  state: z.ZodString;
@@ -4937,7 +5142,7 @@ export declare const EventDocument: z.ZodObject<{
4937
5142
  addressLine3?: string | null | undefined;
4938
5143
  postcodeOrZip?: string | null | undefined;
4939
5144
  }>]>>;
4940
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5145
+ 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
5146
  filename: z.ZodString;
4942
5147
  originalFilename: z.ZodString;
4943
5148
  type: z.ZodString;
@@ -5020,7 +5225,7 @@ export declare const EventDocument: z.ZodObject<{
5020
5225
  province: string;
5021
5226
  urbanOrRural: "RURAL";
5022
5227
  village?: string | null | undefined;
5023
- }>, z.ZodObject<{
5228
+ }>, z.ZodUndefined, z.ZodObject<{
5024
5229
  country: z.ZodString;
5025
5230
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5026
5231
  state: z.ZodString;
@@ -5051,13 +5256,20 @@ export declare const EventDocument: z.ZodObject<{
5051
5256
  addressLine3?: string | null | undefined;
5052
5257
  postcodeOrZip?: string | null | undefined;
5053
5258
  }>]>>>;
5054
- createdAtLocation: z.ZodString;
5259
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5260
+ originalActionId: z.ZodOptional<z.ZodString>;
5055
5261
  }, {
5056
5262
  type: z.ZodLiteral<"UNASSIGN">;
5263
+ assignedTo: z.ZodLiteral<null>;
5057
5264
  }>, "strip", z.ZodTypeAny, {
5058
5265
  type: "UNASSIGN";
5059
5266
  id: string;
5060
- data: Record<string, string | number | boolean | {
5267
+ status: "Rejected" | "Requested" | "Accepted";
5268
+ transactionId: string;
5269
+ createdAt: string;
5270
+ createdBy: string;
5271
+ createdByRole: string;
5272
+ declaration: Record<string, string | number | boolean | {
5061
5273
  type: string;
5062
5274
  filename: string;
5063
5275
  originalFilename: string;
@@ -5094,11 +5306,11 @@ export declare const EventDocument: z.ZodObject<{
5094
5306
  option: string;
5095
5307
  filename: string;
5096
5308
  originalFilename: string;
5097
- }[]>;
5098
- createdAt: string;
5099
- createdBy: string;
5100
- createdAtLocation: string;
5101
- metadata?: Record<string, string | number | boolean | {
5309
+ }[] | [string, string] | undefined>;
5310
+ assignedTo: null;
5311
+ createdBySignature?: string | null | undefined;
5312
+ createdAtLocation?: string | null | undefined;
5313
+ annotation?: Record<string, string | number | boolean | {
5102
5314
  type: string;
5103
5315
  filename: string;
5104
5316
  originalFilename: string;
@@ -5135,11 +5347,17 @@ export declare const EventDocument: z.ZodObject<{
5135
5347
  option: string;
5136
5348
  filename: string;
5137
5349
  originalFilename: string;
5138
- }[]> | undefined;
5350
+ }[] | [string, string] | undefined> | undefined;
5351
+ originalActionId?: string | undefined;
5139
5352
  }, {
5140
5353
  type: "UNASSIGN";
5141
5354
  id: string;
5142
- data: Record<string, string | number | boolean | {
5355
+ status: "Rejected" | "Requested" | "Accepted";
5356
+ transactionId: string;
5357
+ createdAt: string;
5358
+ createdBy: string;
5359
+ createdByRole: string;
5360
+ declaration: Record<string, string | number | boolean | {
5143
5361
  type: string;
5144
5362
  filename: string;
5145
5363
  originalFilename: string;
@@ -5176,11 +5394,11 @@ export declare const EventDocument: z.ZodObject<{
5176
5394
  option: string;
5177
5395
  filename: string;
5178
5396
  originalFilename: string;
5179
- }[]>;
5180
- createdAt: string;
5181
- createdBy: string;
5182
- createdAtLocation: string;
5183
- metadata?: Record<string, string | number | boolean | {
5397
+ }[] | [string, string] | undefined>;
5398
+ assignedTo: null;
5399
+ createdBySignature?: string | null | undefined;
5400
+ createdAtLocation?: string | null | undefined;
5401
+ annotation?: Record<string, string | number | boolean | {
5184
5402
  type: string;
5185
5403
  filename: string;
5186
5404
  originalFilename: string;
@@ -5217,12 +5435,17 @@ export declare const EventDocument: z.ZodObject<{
5217
5435
  option: string;
5218
5436
  filename: string;
5219
5437
  originalFilename: string;
5220
- }[]> | undefined;
5438
+ }[] | [string, string] | undefined> | undefined;
5439
+ originalActionId?: string | undefined;
5221
5440
  }>, z.ZodObject<z.objectUtil.extendShape<{
5222
5441
  id: z.ZodString;
5442
+ transactionId: z.ZodString;
5223
5443
  createdAt: z.ZodString;
5224
5444
  createdBy: z.ZodString;
5225
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5445
+ createdByRole: z.ZodString;
5446
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5447
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5448
+ 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
5449
  filename: z.ZodString;
5227
5450
  originalFilename: z.ZodString;
5228
5451
  type: z.ZodString;
@@ -5305,7 +5528,7 @@ export declare const EventDocument: z.ZodObject<{
5305
5528
  province: string;
5306
5529
  urbanOrRural: "RURAL";
5307
5530
  village?: string | null | undefined;
5308
- }>, z.ZodObject<{
5531
+ }>, z.ZodUndefined, z.ZodObject<{
5309
5532
  country: z.ZodString;
5310
5533
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5311
5534
  state: z.ZodString;
@@ -5336,7 +5559,7 @@ export declare const EventDocument: z.ZodObject<{
5336
5559
  addressLine3?: string | null | undefined;
5337
5560
  postcodeOrZip?: string | null | undefined;
5338
5561
  }>]>>;
5339
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5562
+ 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
5563
  filename: z.ZodString;
5341
5564
  originalFilename: z.ZodString;
5342
5565
  type: z.ZodString;
@@ -5419,7 +5642,7 @@ export declare const EventDocument: z.ZodObject<{
5419
5642
  province: string;
5420
5643
  urbanOrRural: "RURAL";
5421
5644
  village?: string | null | undefined;
5422
- }>, z.ZodObject<{
5645
+ }>, z.ZodUndefined, z.ZodObject<{
5423
5646
  country: z.ZodString;
5424
5647
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5425
5648
  state: z.ZodString;
@@ -5450,13 +5673,19 @@ export declare const EventDocument: z.ZodObject<{
5450
5673
  addressLine3?: string | null | undefined;
5451
5674
  postcodeOrZip?: string | null | undefined;
5452
5675
  }>]>>>;
5453
- createdAtLocation: z.ZodString;
5676
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5677
+ originalActionId: z.ZodOptional<z.ZodString>;
5454
5678
  }, {
5455
5679
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
5456
5680
  }>, "strip", z.ZodTypeAny, {
5457
5681
  type: "PRINT_CERTIFICATE";
5458
5682
  id: string;
5459
- data: Record<string, string | number | boolean | {
5683
+ status: "Rejected" | "Requested" | "Accepted";
5684
+ transactionId: string;
5685
+ createdAt: string;
5686
+ createdBy: string;
5687
+ createdByRole: string;
5688
+ declaration: Record<string, string | number | boolean | {
5460
5689
  type: string;
5461
5690
  filename: string;
5462
5691
  originalFilename: string;
@@ -5493,11 +5722,10 @@ export declare const EventDocument: z.ZodObject<{
5493
5722
  option: string;
5494
5723
  filename: string;
5495
5724
  originalFilename: string;
5496
- }[]>;
5497
- createdAt: string;
5498
- createdBy: string;
5499
- createdAtLocation: string;
5500
- metadata?: Record<string, string | number | boolean | {
5725
+ }[] | [string, string] | undefined>;
5726
+ createdBySignature?: string | null | undefined;
5727
+ createdAtLocation?: string | null | undefined;
5728
+ annotation?: Record<string, string | number | boolean | {
5501
5729
  type: string;
5502
5730
  filename: string;
5503
5731
  originalFilename: string;
@@ -5534,11 +5762,17 @@ export declare const EventDocument: z.ZodObject<{
5534
5762
  option: string;
5535
5763
  filename: string;
5536
5764
  originalFilename: string;
5537
- }[]> | undefined;
5765
+ }[] | [string, string] | undefined> | undefined;
5766
+ originalActionId?: string | undefined;
5538
5767
  }, {
5539
5768
  type: "PRINT_CERTIFICATE";
5540
5769
  id: string;
5541
- data: Record<string, string | number | boolean | {
5770
+ status: "Rejected" | "Requested" | "Accepted";
5771
+ transactionId: string;
5772
+ createdAt: string;
5773
+ createdBy: string;
5774
+ createdByRole: string;
5775
+ declaration: Record<string, string | number | boolean | {
5542
5776
  type: string;
5543
5777
  filename: string;
5544
5778
  originalFilename: string;
@@ -5575,11 +5809,10 @@ export declare const EventDocument: z.ZodObject<{
5575
5809
  option: string;
5576
5810
  filename: string;
5577
5811
  originalFilename: string;
5578
- }[]>;
5579
- createdAt: string;
5580
- createdBy: string;
5581
- createdAtLocation: string;
5582
- metadata?: Record<string, string | number | boolean | {
5812
+ }[] | [string, string] | undefined>;
5813
+ createdBySignature?: string | null | undefined;
5814
+ createdAtLocation?: string | null | undefined;
5815
+ annotation?: Record<string, string | number | boolean | {
5583
5816
  type: string;
5584
5817
  filename: string;
5585
5818
  originalFilename: string;
@@ -5616,12 +5849,17 @@ export declare const EventDocument: z.ZodObject<{
5616
5849
  option: string;
5617
5850
  filename: string;
5618
5851
  originalFilename: string;
5619
- }[]> | undefined;
5852
+ }[] | [string, string] | undefined> | undefined;
5853
+ originalActionId?: string | undefined;
5620
5854
  }>, z.ZodObject<z.objectUtil.extendShape<{
5621
5855
  id: z.ZodString;
5856
+ transactionId: z.ZodString;
5622
5857
  createdAt: z.ZodString;
5623
5858
  createdBy: z.ZodString;
5624
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5859
+ createdByRole: z.ZodString;
5860
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5861
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5862
+ 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
5863
  filename: z.ZodString;
5626
5864
  originalFilename: z.ZodString;
5627
5865
  type: z.ZodString;
@@ -5704,7 +5942,7 @@ export declare const EventDocument: z.ZodObject<{
5704
5942
  province: string;
5705
5943
  urbanOrRural: "RURAL";
5706
5944
  village?: string | null | undefined;
5707
- }>, z.ZodObject<{
5945
+ }>, z.ZodUndefined, z.ZodObject<{
5708
5946
  country: z.ZodString;
5709
5947
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5710
5948
  state: z.ZodString;
@@ -5735,7 +5973,7 @@ export declare const EventDocument: z.ZodObject<{
5735
5973
  addressLine3?: string | null | undefined;
5736
5974
  postcodeOrZip?: string | null | undefined;
5737
5975
  }>]>>;
5738
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5976
+ 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
5977
  filename: z.ZodString;
5740
5978
  originalFilename: z.ZodString;
5741
5979
  type: z.ZodString;
@@ -5818,7 +6056,7 @@ export declare const EventDocument: z.ZodObject<{
5818
6056
  province: string;
5819
6057
  urbanOrRural: "RURAL";
5820
6058
  village?: string | null | undefined;
5821
- }>, z.ZodObject<{
6059
+ }>, z.ZodUndefined, z.ZodObject<{
5822
6060
  country: z.ZodString;
5823
6061
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5824
6062
  state: z.ZodString;
@@ -5849,13 +6087,19 @@ export declare const EventDocument: z.ZodObject<{
5849
6087
  addressLine3?: string | null | undefined;
5850
6088
  postcodeOrZip?: string | null | undefined;
5851
6089
  }>]>>>;
5852
- createdAtLocation: z.ZodString;
6090
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6091
+ originalActionId: z.ZodOptional<z.ZodString>;
5853
6092
  }, {
5854
- type: z.ZodLiteral<"CUSTOM">;
6093
+ type: z.ZodLiteral<"READ">;
5855
6094
  }>, "strip", z.ZodTypeAny, {
5856
- type: "CUSTOM";
6095
+ type: "READ";
5857
6096
  id: string;
5858
- data: Record<string, string | number | boolean | {
6097
+ status: "Rejected" | "Requested" | "Accepted";
6098
+ transactionId: string;
6099
+ createdAt: string;
6100
+ createdBy: string;
6101
+ createdByRole: string;
6102
+ declaration: Record<string, string | number | boolean | {
5859
6103
  type: string;
5860
6104
  filename: string;
5861
6105
  originalFilename: string;
@@ -5892,11 +6136,10 @@ export declare const EventDocument: z.ZodObject<{
5892
6136
  option: string;
5893
6137
  filename: string;
5894
6138
  originalFilename: string;
5895
- }[]>;
5896
- createdAt: string;
5897
- createdBy: string;
5898
- createdAtLocation: string;
5899
- metadata?: Record<string, string | number | boolean | {
6139
+ }[] | [string, string] | undefined>;
6140
+ createdBySignature?: string | null | undefined;
6141
+ createdAtLocation?: string | null | undefined;
6142
+ annotation?: Record<string, string | number | boolean | {
5900
6143
  type: string;
5901
6144
  filename: string;
5902
6145
  originalFilename: string;
@@ -5933,11 +6176,17 @@ export declare const EventDocument: z.ZodObject<{
5933
6176
  option: string;
5934
6177
  filename: string;
5935
6178
  originalFilename: string;
5936
- }[]> | undefined;
6179
+ }[] | [string, string] | undefined> | undefined;
6180
+ originalActionId?: string | undefined;
5937
6181
  }, {
5938
- type: "CUSTOM";
6182
+ type: "READ";
5939
6183
  id: string;
5940
- data: Record<string, string | number | boolean | {
6184
+ status: "Rejected" | "Requested" | "Accepted";
6185
+ transactionId: string;
6186
+ createdAt: string;
6187
+ createdBy: string;
6188
+ createdByRole: string;
6189
+ declaration: Record<string, string | number | boolean | {
5941
6190
  type: string;
5942
6191
  filename: string;
5943
6192
  originalFilename: string;
@@ -5974,11 +6223,10 @@ export declare const EventDocument: z.ZodObject<{
5974
6223
  option: string;
5975
6224
  filename: string;
5976
6225
  originalFilename: string;
5977
- }[]>;
5978
- createdAt: string;
5979
- createdBy: string;
5980
- createdAtLocation: string;
5981
- metadata?: Record<string, string | number | boolean | {
6226
+ }[] | [string, string] | undefined>;
6227
+ createdBySignature?: string | null | undefined;
6228
+ createdAtLocation?: string | null | undefined;
6229
+ annotation?: Record<string, string | number | boolean | {
5982
6230
  type: string;
5983
6231
  filename: string;
5984
6232
  originalFilename: string;
@@ -6015,19 +6263,287 @@ export declare const EventDocument: z.ZodObject<{
6015
6263
  option: string;
6016
6264
  filename: string;
6017
6265
  originalFilename: string;
6018
- }[]> | undefined;
6266
+ }[] | [string, string] | undefined> | undefined;
6267
+ originalActionId?: string | undefined;
6268
+ }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6269
+ id: z.ZodString;
6270
+ transactionId: z.ZodString;
6271
+ createdAt: z.ZodString;
6272
+ createdBy: z.ZodString;
6273
+ createdByRole: z.ZodString;
6274
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6275
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6276
+ 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<{
6277
+ filename: z.ZodString;
6278
+ originalFilename: z.ZodString;
6279
+ type: z.ZodString;
6280
+ }, "strip", z.ZodTypeAny, {
6281
+ type: string;
6282
+ filename: string;
6283
+ originalFilename: string;
6284
+ }, {
6285
+ type: string;
6286
+ filename: string;
6287
+ originalFilename: string;
6288
+ }>, z.ZodArray<z.ZodObject<{
6289
+ filename: z.ZodString;
6290
+ originalFilename: z.ZodString;
6291
+ type: z.ZodString;
6292
+ option: z.ZodString;
6293
+ }, "strip", z.ZodTypeAny, {
6294
+ type: string;
6295
+ option: string;
6296
+ filename: string;
6297
+ originalFilename: string;
6298
+ }, {
6299
+ type: string;
6300
+ option: string;
6301
+ filename: string;
6302
+ originalFilename: string;
6303
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6304
+ country: z.ZodString;
6305
+ addressType: z.ZodLiteral<"DOMESTIC">;
6306
+ province: z.ZodString;
6307
+ district: z.ZodString;
6308
+ }, {
6309
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6310
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6311
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6312
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6313
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6314
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6315
+ }>, "strip", z.ZodTypeAny, {
6316
+ country: string;
6317
+ district: string;
6318
+ addressType: "DOMESTIC";
6319
+ province: string;
6320
+ urbanOrRural: "URBAN";
6321
+ number?: string | null | undefined;
6322
+ town?: string | null | undefined;
6323
+ residentialArea?: string | null | undefined;
6324
+ street?: string | null | undefined;
6325
+ zipCode?: string | null | undefined;
6326
+ }, {
6327
+ country: string;
6328
+ district: string;
6329
+ addressType: "DOMESTIC";
6330
+ province: string;
6331
+ urbanOrRural: "URBAN";
6332
+ number?: string | null | undefined;
6333
+ town?: string | null | undefined;
6334
+ residentialArea?: string | null | undefined;
6335
+ street?: string | null | undefined;
6336
+ zipCode?: string | null | undefined;
6337
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6338
+ country: z.ZodString;
6339
+ addressType: z.ZodLiteral<"DOMESTIC">;
6340
+ province: z.ZodString;
6341
+ district: z.ZodString;
6342
+ }, {
6343
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6344
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6345
+ }>, "strip", z.ZodTypeAny, {
6346
+ country: string;
6347
+ district: string;
6348
+ addressType: "DOMESTIC";
6349
+ province: string;
6350
+ urbanOrRural: "RURAL";
6351
+ village?: string | null | undefined;
6352
+ }, {
6353
+ country: string;
6354
+ district: string;
6355
+ addressType: "DOMESTIC";
6356
+ province: string;
6357
+ urbanOrRural: "RURAL";
6358
+ village?: string | null | undefined;
6359
+ }>, z.ZodUndefined, z.ZodObject<{
6360
+ country: z.ZodString;
6361
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6362
+ state: z.ZodString;
6363
+ district2: z.ZodString;
6364
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6365
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6366
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6367
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6368
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6369
+ }, "strip", z.ZodTypeAny, {
6370
+ country: string;
6371
+ state: string;
6372
+ addressType: "INTERNATIONAL";
6373
+ district2: string;
6374
+ cityOrTown?: string | null | undefined;
6375
+ addressLine1?: string | null | undefined;
6376
+ addressLine2?: string | null | undefined;
6377
+ addressLine3?: string | null | undefined;
6378
+ postcodeOrZip?: string | null | undefined;
6379
+ }, {
6380
+ country: string;
6381
+ state: string;
6382
+ addressType: "INTERNATIONAL";
6383
+ district2: string;
6384
+ cityOrTown?: string | null | undefined;
6385
+ addressLine1?: string | null | undefined;
6386
+ addressLine2?: string | null | undefined;
6387
+ addressLine3?: string | null | undefined;
6388
+ postcodeOrZip?: string | null | undefined;
6389
+ }>]>>;
6390
+ 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<{
6391
+ filename: z.ZodString;
6392
+ originalFilename: z.ZodString;
6393
+ type: z.ZodString;
6394
+ }, "strip", z.ZodTypeAny, {
6395
+ type: string;
6396
+ filename: string;
6397
+ originalFilename: string;
6398
+ }, {
6399
+ type: string;
6400
+ filename: string;
6401
+ originalFilename: string;
6402
+ }>, z.ZodArray<z.ZodObject<{
6403
+ filename: z.ZodString;
6404
+ originalFilename: z.ZodString;
6405
+ type: z.ZodString;
6406
+ option: z.ZodString;
6407
+ }, "strip", z.ZodTypeAny, {
6408
+ type: string;
6409
+ option: string;
6410
+ filename: string;
6411
+ originalFilename: string;
6412
+ }, {
6413
+ type: string;
6414
+ option: string;
6415
+ filename: string;
6416
+ originalFilename: string;
6417
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6418
+ country: z.ZodString;
6419
+ addressType: z.ZodLiteral<"DOMESTIC">;
6420
+ province: z.ZodString;
6421
+ district: z.ZodString;
6422
+ }, {
6423
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6424
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6425
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6426
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6427
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6428
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6429
+ }>, "strip", z.ZodTypeAny, {
6430
+ country: string;
6431
+ district: string;
6432
+ addressType: "DOMESTIC";
6433
+ province: string;
6434
+ urbanOrRural: "URBAN";
6435
+ number?: string | null | undefined;
6436
+ town?: string | null | undefined;
6437
+ residentialArea?: string | null | undefined;
6438
+ street?: string | null | undefined;
6439
+ zipCode?: string | null | undefined;
6440
+ }, {
6441
+ country: string;
6442
+ district: string;
6443
+ addressType: "DOMESTIC";
6444
+ province: string;
6445
+ urbanOrRural: "URBAN";
6446
+ number?: string | null | undefined;
6447
+ town?: string | null | undefined;
6448
+ residentialArea?: string | null | undefined;
6449
+ street?: string | null | undefined;
6450
+ zipCode?: string | null | undefined;
6451
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6452
+ country: z.ZodString;
6453
+ addressType: z.ZodLiteral<"DOMESTIC">;
6454
+ province: z.ZodString;
6455
+ district: z.ZodString;
6456
+ }, {
6457
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6458
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6459
+ }>, "strip", z.ZodTypeAny, {
6460
+ country: string;
6461
+ district: string;
6462
+ addressType: "DOMESTIC";
6463
+ province: string;
6464
+ urbanOrRural: "RURAL";
6465
+ village?: string | null | undefined;
6466
+ }, {
6467
+ country: string;
6468
+ district: string;
6469
+ addressType: "DOMESTIC";
6470
+ province: string;
6471
+ urbanOrRural: "RURAL";
6472
+ village?: string | null | undefined;
6473
+ }>, z.ZodUndefined, z.ZodObject<{
6474
+ country: z.ZodString;
6475
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6476
+ state: z.ZodString;
6477
+ district2: z.ZodString;
6478
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6479
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6480
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6481
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6482
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6483
+ }, "strip", z.ZodTypeAny, {
6484
+ country: string;
6485
+ state: string;
6486
+ addressType: "INTERNATIONAL";
6487
+ district2: string;
6488
+ cityOrTown?: string | null | undefined;
6489
+ addressLine1?: string | null | undefined;
6490
+ addressLine2?: string | null | undefined;
6491
+ addressLine3?: string | null | undefined;
6492
+ postcodeOrZip?: string | null | undefined;
6493
+ }, {
6494
+ country: string;
6495
+ state: string;
6496
+ addressType: "INTERNATIONAL";
6497
+ district2: string;
6498
+ cityOrTown?: string | null | undefined;
6499
+ addressLine1?: string | null | undefined;
6500
+ addressLine2?: string | null | undefined;
6501
+ addressLine3?: string | null | undefined;
6502
+ postcodeOrZip?: string | null | undefined;
6503
+ }>]>>>;
6504
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6505
+ originalActionId: z.ZodOptional<z.ZodString>;
6506
+ }, "declaration" | "annotation">, {
6507
+ type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
6508
+ status: z.ZodLiteral<"Rejected">;
6509
+ }>, "strip", z.ZodTypeAny, {
6510
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6511
+ id: string;
6512
+ status: "Rejected";
6513
+ transactionId: string;
6514
+ createdAt: string;
6515
+ createdBy: string;
6516
+ createdByRole: string;
6517
+ createdBySignature?: string | null | undefined;
6518
+ createdAtLocation?: string | null | undefined;
6519
+ originalActionId?: string | undefined;
6520
+ }, {
6521
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6522
+ id: string;
6523
+ status: "Rejected";
6524
+ transactionId: string;
6525
+ createdAt: string;
6526
+ createdBy: string;
6527
+ createdByRole: string;
6528
+ createdBySignature?: string | null | undefined;
6529
+ createdAtLocation?: string | null | undefined;
6530
+ originalActionId?: string | undefined;
6019
6531
  }>]>, "many">;
6020
6532
  trackingId: z.ZodString;
6021
6533
  }, "strip", z.ZodTypeAny, {
6022
6534
  type: string;
6023
6535
  id: string;
6024
6536
  createdAt: string;
6025
- trackingId: string;
6026
6537
  updatedAt: string;
6027
6538
  actions: ({
6028
6539
  type: "ASSIGN";
6029
6540
  id: string;
6030
- data: Record<string, string | number | boolean | {
6541
+ status: "Rejected" | "Requested" | "Accepted";
6542
+ transactionId: string;
6543
+ createdAt: string;
6544
+ createdBy: string;
6545
+ createdByRole: string;
6546
+ declaration: Record<string, string | number | boolean | {
6031
6547
  type: string;
6032
6548
  filename: string;
6033
6549
  originalFilename: string;
@@ -6064,12 +6580,11 @@ export declare const EventDocument: z.ZodObject<{
6064
6580
  option: string;
6065
6581
  filename: string;
6066
6582
  originalFilename: string;
6067
- }[]>;
6068
- createdAt: string;
6069
- createdBy: string;
6070
- createdAtLocation: string;
6583
+ }[] | [string, string] | undefined>;
6071
6584
  assignedTo: string;
6072
- metadata?: Record<string, string | number | boolean | {
6585
+ createdBySignature?: string | null | undefined;
6586
+ createdAtLocation?: string | null | undefined;
6587
+ annotation?: Record<string, string | number | boolean | {
6073
6588
  type: string;
6074
6589
  filename: string;
6075
6590
  originalFilename: string;
@@ -6106,11 +6621,17 @@ export declare const EventDocument: z.ZodObject<{
6106
6621
  option: string;
6107
6622
  filename: string;
6108
6623
  originalFilename: string;
6109
- }[]> | undefined;
6624
+ }[] | [string, string] | undefined> | undefined;
6625
+ originalActionId?: string | undefined;
6110
6626
  } | {
6111
6627
  type: "UNASSIGN";
6112
6628
  id: string;
6113
- data: Record<string, string | number | boolean | {
6629
+ status: "Rejected" | "Requested" | "Accepted";
6630
+ transactionId: string;
6631
+ createdAt: string;
6632
+ createdBy: string;
6633
+ createdByRole: string;
6634
+ declaration: Record<string, string | number | boolean | {
6114
6635
  type: string;
6115
6636
  filename: string;
6116
6637
  originalFilename: string;
@@ -6147,11 +6668,11 @@ export declare const EventDocument: z.ZodObject<{
6147
6668
  option: string;
6148
6669
  filename: string;
6149
6670
  originalFilename: string;
6150
- }[]>;
6151
- createdAt: string;
6152
- createdBy: string;
6153
- createdAtLocation: string;
6154
- metadata?: Record<string, string | number | boolean | {
6671
+ }[] | [string, string] | undefined>;
6672
+ assignedTo: null;
6673
+ createdBySignature?: string | null | undefined;
6674
+ createdAtLocation?: string | null | undefined;
6675
+ annotation?: Record<string, string | number | boolean | {
6155
6676
  type: string;
6156
6677
  filename: string;
6157
6678
  originalFilename: string;
@@ -6188,11 +6709,17 @@ export declare const EventDocument: z.ZodObject<{
6188
6709
  option: string;
6189
6710
  filename: string;
6190
6711
  originalFilename: string;
6191
- }[]> | undefined;
6712
+ }[] | [string, string] | undefined> | undefined;
6713
+ originalActionId?: string | undefined;
6192
6714
  } | {
6193
6715
  type: "REGISTER";
6194
6716
  id: string;
6195
- data: Record<string, string | number | boolean | {
6717
+ status: "Rejected" | "Requested" | "Accepted";
6718
+ transactionId: string;
6719
+ createdAt: string;
6720
+ createdBy: string;
6721
+ createdByRole: string;
6722
+ declaration: Record<string, string | number | boolean | {
6196
6723
  type: string;
6197
6724
  filename: string;
6198
6725
  originalFilename: string;
@@ -6229,15 +6756,10 @@ export declare const EventDocument: z.ZodObject<{
6229
6756
  option: string;
6230
6757
  filename: string;
6231
6758
  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 | {
6759
+ }[] | [string, string] | undefined>;
6760
+ createdBySignature?: string | null | undefined;
6761
+ createdAtLocation?: string | null | undefined;
6762
+ annotation?: Record<string, string | number | boolean | {
6241
6763
  type: string;
6242
6764
  filename: string;
6243
6765
  originalFilename: string;
@@ -6274,11 +6796,18 @@ export declare const EventDocument: z.ZodObject<{
6274
6796
  option: string;
6275
6797
  filename: string;
6276
6798
  originalFilename: string;
6277
- }[]> | undefined;
6799
+ }[] | [string, string] | undefined> | undefined;
6800
+ originalActionId?: string | undefined;
6801
+ registrationNumber?: string | undefined;
6278
6802
  } | {
6279
6803
  type: "DECLARE";
6280
6804
  id: string;
6281
- data: Record<string, string | number | boolean | {
6805
+ status: "Rejected" | "Requested" | "Accepted";
6806
+ transactionId: string;
6807
+ createdAt: string;
6808
+ createdBy: string;
6809
+ createdByRole: string;
6810
+ declaration: Record<string, string | number | boolean | {
6282
6811
  type: string;
6283
6812
  filename: string;
6284
6813
  originalFilename: string;
@@ -6315,11 +6844,10 @@ export declare const EventDocument: z.ZodObject<{
6315
6844
  option: string;
6316
6845
  filename: string;
6317
6846
  originalFilename: string;
6318
- }[]>;
6319
- createdAt: string;
6320
- createdBy: string;
6321
- createdAtLocation: string;
6322
- metadata?: Record<string, string | number | boolean | {
6847
+ }[] | [string, string] | undefined>;
6848
+ createdBySignature?: string | null | undefined;
6849
+ createdAtLocation?: string | null | undefined;
6850
+ annotation?: Record<string, string | number | boolean | {
6323
6851
  type: string;
6324
6852
  filename: string;
6325
6853
  originalFilename: string;
@@ -6356,11 +6884,17 @@ export declare const EventDocument: z.ZodObject<{
6356
6884
  option: string;
6357
6885
  filename: string;
6358
6886
  originalFilename: string;
6359
- }[]> | undefined;
6887
+ }[] | [string, string] | undefined> | undefined;
6888
+ originalActionId?: string | undefined;
6360
6889
  } | {
6361
6890
  type: "VALIDATE";
6362
6891
  id: string;
6363
- data: Record<string, string | number | boolean | {
6892
+ status: "Rejected" | "Requested" | "Accepted";
6893
+ transactionId: string;
6894
+ createdAt: string;
6895
+ createdBy: string;
6896
+ createdByRole: string;
6897
+ declaration: Record<string, string | number | boolean | {
6364
6898
  type: string;
6365
6899
  filename: string;
6366
6900
  originalFilename: string;
@@ -6397,11 +6931,10 @@ export declare const EventDocument: z.ZodObject<{
6397
6931
  option: string;
6398
6932
  filename: string;
6399
6933
  originalFilename: string;
6400
- }[]>;
6401
- createdAt: string;
6402
- createdBy: string;
6403
- createdAtLocation: string;
6404
- metadata?: Record<string, string | number | boolean | {
6934
+ }[] | [string, string] | undefined>;
6935
+ createdBySignature?: string | null | undefined;
6936
+ createdAtLocation?: string | null | undefined;
6937
+ annotation?: Record<string, string | number | boolean | {
6405
6938
  type: string;
6406
6939
  filename: string;
6407
6940
  originalFilename: string;
@@ -6438,11 +6971,21 @@ export declare const EventDocument: z.ZodObject<{
6438
6971
  option: string;
6439
6972
  filename: string;
6440
6973
  originalFilename: string;
6441
- }[]> | undefined;
6974
+ }[] | [string, string] | undefined> | undefined;
6975
+ originalActionId?: string | undefined;
6442
6976
  } | {
6443
6977
  type: "REJECT";
6444
6978
  id: string;
6445
- data: Record<string, string | number | boolean | {
6979
+ status: "Rejected" | "Requested" | "Accepted";
6980
+ reason: {
6981
+ message: string;
6982
+ isDuplicate?: boolean | undefined;
6983
+ };
6984
+ transactionId: string;
6985
+ createdAt: string;
6986
+ createdBy: string;
6987
+ createdByRole: string;
6988
+ declaration: Record<string, string | number | boolean | {
6446
6989
  type: string;
6447
6990
  filename: string;
6448
6991
  originalFilename: string;
@@ -6479,11 +7022,10 @@ export declare const EventDocument: z.ZodObject<{
6479
7022
  option: string;
6480
7023
  filename: string;
6481
7024
  originalFilename: string;
6482
- }[]>;
6483
- createdAt: string;
6484
- createdBy: string;
6485
- createdAtLocation: string;
6486
- metadata?: Record<string, string | number | boolean | {
7025
+ }[] | [string, string] | undefined>;
7026
+ createdBySignature?: string | null | undefined;
7027
+ createdAtLocation?: string | null | undefined;
7028
+ annotation?: Record<string, string | number | boolean | {
6487
7029
  type: string;
6488
7030
  filename: string;
6489
7031
  originalFilename: string;
@@ -6520,11 +7062,17 @@ export declare const EventDocument: z.ZodObject<{
6520
7062
  option: string;
6521
7063
  filename: string;
6522
7064
  originalFilename: string;
6523
- }[]> | undefined;
7065
+ }[] | [string, string] | undefined> | undefined;
7066
+ originalActionId?: string | undefined;
6524
7067
  } | {
6525
7068
  type: "MARKED_AS_DUPLICATE";
6526
7069
  id: string;
6527
- data: Record<string, string | number | boolean | {
7070
+ status: "Rejected" | "Requested" | "Accepted";
7071
+ transactionId: string;
7072
+ createdAt: string;
7073
+ createdBy: string;
7074
+ createdByRole: string;
7075
+ declaration: Record<string, string | number | boolean | {
6528
7076
  type: string;
6529
7077
  filename: string;
6530
7078
  originalFilename: string;
@@ -6561,11 +7109,10 @@ export declare const EventDocument: z.ZodObject<{
6561
7109
  option: string;
6562
7110
  filename: string;
6563
7111
  originalFilename: string;
6564
- }[]>;
6565
- createdAt: string;
6566
- createdBy: string;
6567
- createdAtLocation: string;
6568
- metadata?: Record<string, string | number | boolean | {
7112
+ }[] | [string, string] | undefined>;
7113
+ createdBySignature?: string | null | undefined;
7114
+ createdAtLocation?: string | null | undefined;
7115
+ annotation?: Record<string, string | number | boolean | {
6569
7116
  type: string;
6570
7117
  filename: string;
6571
7118
  originalFilename: string;
@@ -6602,11 +7149,21 @@ export declare const EventDocument: z.ZodObject<{
6602
7149
  option: string;
6603
7150
  filename: string;
6604
7151
  originalFilename: string;
6605
- }[]> | undefined;
7152
+ }[] | [string, string] | undefined> | undefined;
7153
+ originalActionId?: string | undefined;
6606
7154
  } | {
6607
7155
  type: "ARCHIVE";
6608
7156
  id: string;
6609
- data: Record<string, string | number | boolean | {
7157
+ status: "Rejected" | "Requested" | "Accepted";
7158
+ reason: {
7159
+ message: string;
7160
+ isDuplicate?: boolean | undefined;
7161
+ };
7162
+ transactionId: string;
7163
+ createdAt: string;
7164
+ createdBy: string;
7165
+ createdByRole: string;
7166
+ declaration: Record<string, string | number | boolean | {
6610
7167
  type: string;
6611
7168
  filename: string;
6612
7169
  originalFilename: string;
@@ -6643,11 +7200,10 @@ export declare const EventDocument: z.ZodObject<{
6643
7200
  option: string;
6644
7201
  filename: string;
6645
7202
  originalFilename: string;
6646
- }[]>;
6647
- createdAt: string;
6648
- createdBy: string;
6649
- createdAtLocation: string;
6650
- metadata?: Record<string, string | number | boolean | {
7203
+ }[] | [string, string] | undefined>;
7204
+ createdBySignature?: string | null | undefined;
7205
+ createdAtLocation?: string | null | undefined;
7206
+ annotation?: Record<string, string | number | boolean | {
6651
7207
  type: string;
6652
7208
  filename: string;
6653
7209
  originalFilename: string;
@@ -6684,11 +7240,17 @@ export declare const EventDocument: z.ZodObject<{
6684
7240
  option: string;
6685
7241
  filename: string;
6686
7242
  originalFilename: string;
6687
- }[]> | undefined;
7243
+ }[] | [string, string] | undefined> | undefined;
7244
+ originalActionId?: string | undefined;
6688
7245
  } | {
6689
7246
  type: "CREATE";
6690
7247
  id: string;
6691
- data: Record<string, string | number | boolean | {
7248
+ status: "Rejected" | "Requested" | "Accepted";
7249
+ transactionId: string;
7250
+ createdAt: string;
7251
+ createdBy: string;
7252
+ createdByRole: string;
7253
+ declaration: Record<string, string | number | boolean | {
6692
7254
  type: string;
6693
7255
  filename: string;
6694
7256
  originalFilename: string;
@@ -6725,11 +7287,10 @@ export declare const EventDocument: z.ZodObject<{
6725
7287
  option: string;
6726
7288
  filename: string;
6727
7289
  originalFilename: string;
6728
- }[]>;
6729
- createdAt: string;
6730
- createdBy: string;
6731
- createdAtLocation: string;
6732
- metadata?: Record<string, string | number | boolean | {
7290
+ }[] | [string, string] | undefined>;
7291
+ createdBySignature?: string | null | undefined;
7292
+ createdAtLocation?: string | null | undefined;
7293
+ annotation?: Record<string, string | number | boolean | {
6733
7294
  type: string;
6734
7295
  filename: string;
6735
7296
  originalFilename: string;
@@ -6766,11 +7327,17 @@ export declare const EventDocument: z.ZodObject<{
6766
7327
  option: string;
6767
7328
  filename: string;
6768
7329
  originalFilename: string;
6769
- }[]> | undefined;
7330
+ }[] | [string, string] | undefined> | undefined;
7331
+ originalActionId?: string | undefined;
6770
7332
  } | {
6771
7333
  type: "NOTIFY";
6772
7334
  id: string;
6773
- data: Record<string, string | number | boolean | {
7335
+ status: "Rejected" | "Requested" | "Accepted";
7336
+ transactionId: string;
7337
+ createdAt: string;
7338
+ createdBy: string;
7339
+ createdByRole: string;
7340
+ declaration: Record<string, string | number | boolean | {
6774
7341
  type: string;
6775
7342
  filename: string;
6776
7343
  originalFilename: string;
@@ -6807,11 +7374,10 @@ export declare const EventDocument: z.ZodObject<{
6807
7374
  option: string;
6808
7375
  filename: string;
6809
7376
  originalFilename: string;
6810
- }[]>;
6811
- createdAt: string;
6812
- createdBy: string;
6813
- createdAtLocation: string;
6814
- metadata?: Record<string, string | number | boolean | {
7377
+ }[] | [string, string] | undefined>;
7378
+ createdBySignature?: string | null | undefined;
7379
+ createdAtLocation?: string | null | undefined;
7380
+ annotation?: Record<string, string | number | boolean | {
6815
7381
  type: string;
6816
7382
  filename: string;
6817
7383
  originalFilename: string;
@@ -6848,11 +7414,17 @@ export declare const EventDocument: z.ZodObject<{
6848
7414
  option: string;
6849
7415
  filename: string;
6850
7416
  originalFilename: string;
6851
- }[]> | undefined;
7417
+ }[] | [string, string] | undefined> | undefined;
7418
+ originalActionId?: string | undefined;
6852
7419
  } | {
6853
7420
  type: "PRINT_CERTIFICATE";
6854
7421
  id: string;
6855
- data: Record<string, string | number | boolean | {
7422
+ status: "Rejected" | "Requested" | "Accepted";
7423
+ transactionId: string;
7424
+ createdAt: string;
7425
+ createdBy: string;
7426
+ createdByRole: string;
7427
+ declaration: Record<string, string | number | boolean | {
6856
7428
  type: string;
6857
7429
  filename: string;
6858
7430
  originalFilename: string;
@@ -6889,11 +7461,10 @@ export declare const EventDocument: z.ZodObject<{
6889
7461
  option: string;
6890
7462
  filename: string;
6891
7463
  originalFilename: string;
6892
- }[]>;
6893
- createdAt: string;
6894
- createdBy: string;
6895
- createdAtLocation: string;
6896
- metadata?: Record<string, string | number | boolean | {
7464
+ }[] | [string, string] | undefined>;
7465
+ createdBySignature?: string | null | undefined;
7466
+ createdAtLocation?: string | null | undefined;
7467
+ annotation?: Record<string, string | number | boolean | {
6897
7468
  type: string;
6898
7469
  filename: string;
6899
7470
  originalFilename: string;
@@ -6930,11 +7501,17 @@ export declare const EventDocument: z.ZodObject<{
6930
7501
  option: string;
6931
7502
  filename: string;
6932
7503
  originalFilename: string;
6933
- }[]> | undefined;
7504
+ }[] | [string, string] | undefined> | undefined;
7505
+ originalActionId?: string | undefined;
6934
7506
  } | {
6935
7507
  type: "REQUEST_CORRECTION";
6936
7508
  id: string;
6937
- data: Record<string, string | number | boolean | {
7509
+ status: "Rejected" | "Requested" | "Accepted";
7510
+ transactionId: string;
7511
+ createdAt: string;
7512
+ createdBy: string;
7513
+ createdByRole: string;
7514
+ declaration: Record<string, string | number | boolean | {
6938
7515
  type: string;
6939
7516
  filename: string;
6940
7517
  originalFilename: string;
@@ -6971,11 +7548,10 @@ export declare const EventDocument: z.ZodObject<{
6971
7548
  option: string;
6972
7549
  filename: string;
6973
7550
  originalFilename: string;
6974
- }[]>;
6975
- createdAt: string;
6976
- createdBy: string;
6977
- createdAtLocation: string;
6978
- metadata?: Record<string, string | number | boolean | {
7551
+ }[] | [string, string] | undefined>;
7552
+ createdBySignature?: string | null | undefined;
7553
+ createdAtLocation?: string | null | undefined;
7554
+ annotation?: Record<string, string | number | boolean | {
6979
7555
  type: string;
6980
7556
  filename: string;
6981
7557
  originalFilename: string;
@@ -7012,11 +7588,17 @@ export declare const EventDocument: z.ZodObject<{
7012
7588
  option: string;
7013
7589
  filename: string;
7014
7590
  originalFilename: string;
7015
- }[]> | undefined;
7591
+ }[] | [string, string] | undefined> | undefined;
7592
+ originalActionId?: string | undefined;
7016
7593
  } | {
7017
7594
  type: "APPROVE_CORRECTION";
7018
7595
  id: string;
7019
- data: Record<string, string | number | boolean | {
7596
+ status: "Rejected" | "Requested" | "Accepted";
7597
+ transactionId: string;
7598
+ createdAt: string;
7599
+ createdBy: string;
7600
+ createdByRole: string;
7601
+ declaration: Record<string, string | number | boolean | {
7020
7602
  type: string;
7021
7603
  filename: string;
7022
7604
  originalFilename: string;
@@ -7053,12 +7635,11 @@ export declare const EventDocument: z.ZodObject<{
7053
7635
  option: string;
7054
7636
  filename: string;
7055
7637
  originalFilename: string;
7056
- }[]>;
7057
- createdAt: string;
7058
- createdBy: string;
7059
- createdAtLocation: string;
7638
+ }[] | [string, string] | undefined>;
7060
7639
  requestId: string;
7061
- metadata?: Record<string, string | number | boolean | {
7640
+ createdBySignature?: string | null | undefined;
7641
+ createdAtLocation?: string | null | undefined;
7642
+ annotation?: Record<string, string | number | boolean | {
7062
7643
  type: string;
7063
7644
  filename: string;
7064
7645
  originalFilename: string;
@@ -7095,11 +7676,17 @@ export declare const EventDocument: z.ZodObject<{
7095
7676
  option: string;
7096
7677
  filename: string;
7097
7678
  originalFilename: string;
7098
- }[]> | undefined;
7679
+ }[] | [string, string] | undefined> | undefined;
7680
+ originalActionId?: string | undefined;
7099
7681
  } | {
7100
7682
  type: "REJECT_CORRECTION";
7101
7683
  id: string;
7102
- data: Record<string, string | number | boolean | {
7684
+ status: "Rejected" | "Requested" | "Accepted";
7685
+ transactionId: string;
7686
+ createdAt: string;
7687
+ createdBy: string;
7688
+ createdByRole: string;
7689
+ declaration: Record<string, string | number | boolean | {
7103
7690
  type: string;
7104
7691
  filename: string;
7105
7692
  originalFilename: string;
@@ -7136,12 +7723,11 @@ export declare const EventDocument: z.ZodObject<{
7136
7723
  option: string;
7137
7724
  filename: string;
7138
7725
  originalFilename: string;
7139
- }[]>;
7140
- createdAt: string;
7141
- createdBy: string;
7142
- createdAtLocation: string;
7726
+ }[] | [string, string] | undefined>;
7143
7727
  requestId: string;
7144
- metadata?: Record<string, string | number | boolean | {
7728
+ createdBySignature?: string | null | undefined;
7729
+ createdAtLocation?: string | null | undefined;
7730
+ annotation?: Record<string, string | number | boolean | {
7145
7731
  type: string;
7146
7732
  filename: string;
7147
7733
  originalFilename: string;
@@ -7178,11 +7764,17 @@ export declare const EventDocument: z.ZodObject<{
7178
7764
  option: string;
7179
7765
  filename: string;
7180
7766
  originalFilename: string;
7181
- }[]> | undefined;
7767
+ }[] | [string, string] | undefined> | undefined;
7768
+ originalActionId?: string | undefined;
7182
7769
  } | {
7183
- type: "CUSTOM";
7770
+ type: "READ";
7184
7771
  id: string;
7185
- data: Record<string, string | number | boolean | {
7772
+ status: "Rejected" | "Requested" | "Accepted";
7773
+ transactionId: string;
7774
+ createdAt: string;
7775
+ createdBy: string;
7776
+ createdByRole: string;
7777
+ declaration: Record<string, string | number | boolean | {
7186
7778
  type: string;
7187
7779
  filename: string;
7188
7780
  originalFilename: string;
@@ -7219,11 +7811,10 @@ export declare const EventDocument: z.ZodObject<{
7219
7811
  option: string;
7220
7812
  filename: string;
7221
7813
  originalFilename: string;
7222
- }[]>;
7223
- createdAt: string;
7224
- createdBy: string;
7225
- createdAtLocation: string;
7226
- metadata?: Record<string, string | number | boolean | {
7814
+ }[] | [string, string] | undefined>;
7815
+ createdBySignature?: string | null | undefined;
7816
+ createdAtLocation?: string | null | undefined;
7817
+ annotation?: Record<string, string | number | boolean | {
7227
7818
  type: string;
7228
7819
  filename: string;
7229
7820
  originalFilename: string;
@@ -7260,18 +7851,35 @@ export declare const EventDocument: z.ZodObject<{
7260
7851
  option: string;
7261
7852
  filename: string;
7262
7853
  originalFilename: string;
7263
- }[]> | undefined;
7854
+ }[] | [string, string] | undefined> | undefined;
7855
+ originalActionId?: string | undefined;
7856
+ } | {
7857
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7858
+ id: string;
7859
+ status: "Rejected";
7860
+ transactionId: string;
7861
+ createdAt: string;
7862
+ createdBy: string;
7863
+ createdByRole: string;
7864
+ createdBySignature?: string | null | undefined;
7865
+ createdAtLocation?: string | null | undefined;
7866
+ originalActionId?: string | undefined;
7264
7867
  })[];
7868
+ trackingId: string;
7265
7869
  }, {
7266
7870
  type: string;
7267
7871
  id: string;
7268
7872
  createdAt: string;
7269
- trackingId: string;
7270
7873
  updatedAt: string;
7271
7874
  actions: ({
7272
7875
  type: "ASSIGN";
7273
7876
  id: string;
7274
- data: Record<string, string | number | boolean | {
7877
+ status: "Rejected" | "Requested" | "Accepted";
7878
+ transactionId: string;
7879
+ createdAt: string;
7880
+ createdBy: string;
7881
+ createdByRole: string;
7882
+ declaration: Record<string, string | number | boolean | {
7275
7883
  type: string;
7276
7884
  filename: string;
7277
7885
  originalFilename: string;
@@ -7308,12 +7916,11 @@ export declare const EventDocument: z.ZodObject<{
7308
7916
  option: string;
7309
7917
  filename: string;
7310
7918
  originalFilename: string;
7311
- }[]>;
7312
- createdAt: string;
7313
- createdBy: string;
7314
- createdAtLocation: string;
7919
+ }[] | [string, string] | undefined>;
7315
7920
  assignedTo: string;
7316
- metadata?: Record<string, string | number | boolean | {
7921
+ createdBySignature?: string | null | undefined;
7922
+ createdAtLocation?: string | null | undefined;
7923
+ annotation?: Record<string, string | number | boolean | {
7317
7924
  type: string;
7318
7925
  filename: string;
7319
7926
  originalFilename: string;
@@ -7350,11 +7957,17 @@ export declare const EventDocument: z.ZodObject<{
7350
7957
  option: string;
7351
7958
  filename: string;
7352
7959
  originalFilename: string;
7353
- }[]> | undefined;
7960
+ }[] | [string, string] | undefined> | undefined;
7961
+ originalActionId?: string | undefined;
7354
7962
  } | {
7355
7963
  type: "UNASSIGN";
7356
7964
  id: string;
7357
- data: Record<string, string | number | boolean | {
7965
+ status: "Rejected" | "Requested" | "Accepted";
7966
+ transactionId: string;
7967
+ createdAt: string;
7968
+ createdBy: string;
7969
+ createdByRole: string;
7970
+ declaration: Record<string, string | number | boolean | {
7358
7971
  type: string;
7359
7972
  filename: string;
7360
7973
  originalFilename: string;
@@ -7391,11 +8004,11 @@ export declare const EventDocument: z.ZodObject<{
7391
8004
  option: string;
7392
8005
  filename: string;
7393
8006
  originalFilename: string;
7394
- }[]>;
7395
- createdAt: string;
7396
- createdBy: string;
7397
- createdAtLocation: string;
7398
- metadata?: Record<string, string | number | boolean | {
8007
+ }[] | [string, string] | undefined>;
8008
+ assignedTo: null;
8009
+ createdBySignature?: string | null | undefined;
8010
+ createdAtLocation?: string | null | undefined;
8011
+ annotation?: Record<string, string | number | boolean | {
7399
8012
  type: string;
7400
8013
  filename: string;
7401
8014
  originalFilename: string;
@@ -7432,11 +8045,17 @@ export declare const EventDocument: z.ZodObject<{
7432
8045
  option: string;
7433
8046
  filename: string;
7434
8047
  originalFilename: string;
7435
- }[]> | undefined;
8048
+ }[] | [string, string] | undefined> | undefined;
8049
+ originalActionId?: string | undefined;
7436
8050
  } | {
7437
8051
  type: "REGISTER";
7438
8052
  id: string;
7439
- data: Record<string, string | number | boolean | {
8053
+ status: "Rejected" | "Requested" | "Accepted";
8054
+ transactionId: string;
8055
+ createdAt: string;
8056
+ createdBy: string;
8057
+ createdByRole: string;
8058
+ declaration: Record<string, string | number | boolean | {
7440
8059
  type: string;
7441
8060
  filename: string;
7442
8061
  originalFilename: string;
@@ -7473,15 +8092,10 @@ export declare const EventDocument: z.ZodObject<{
7473
8092
  option: string;
7474
8093
  filename: string;
7475
8094
  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 | {
8095
+ }[] | [string, string] | undefined>;
8096
+ createdBySignature?: string | null | undefined;
8097
+ createdAtLocation?: string | null | undefined;
8098
+ annotation?: Record<string, string | number | boolean | {
7485
8099
  type: string;
7486
8100
  filename: string;
7487
8101
  originalFilename: string;
@@ -7518,11 +8132,18 @@ export declare const EventDocument: z.ZodObject<{
7518
8132
  option: string;
7519
8133
  filename: string;
7520
8134
  originalFilename: string;
7521
- }[]> | undefined;
8135
+ }[] | [string, string] | undefined> | undefined;
8136
+ originalActionId?: string | undefined;
8137
+ registrationNumber?: string | undefined;
7522
8138
  } | {
7523
8139
  type: "DECLARE";
7524
8140
  id: string;
7525
- data: Record<string, string | number | boolean | {
8141
+ status: "Rejected" | "Requested" | "Accepted";
8142
+ transactionId: string;
8143
+ createdAt: string;
8144
+ createdBy: string;
8145
+ createdByRole: string;
8146
+ declaration: Record<string, string | number | boolean | {
7526
8147
  type: string;
7527
8148
  filename: string;
7528
8149
  originalFilename: string;
@@ -7559,11 +8180,10 @@ export declare const EventDocument: z.ZodObject<{
7559
8180
  option: string;
7560
8181
  filename: string;
7561
8182
  originalFilename: string;
7562
- }[]>;
7563
- createdAt: string;
7564
- createdBy: string;
7565
- createdAtLocation: string;
7566
- metadata?: Record<string, string | number | boolean | {
8183
+ }[] | [string, string] | undefined>;
8184
+ createdBySignature?: string | null | undefined;
8185
+ createdAtLocation?: string | null | undefined;
8186
+ annotation?: Record<string, string | number | boolean | {
7567
8187
  type: string;
7568
8188
  filename: string;
7569
8189
  originalFilename: string;
@@ -7600,11 +8220,17 @@ export declare const EventDocument: z.ZodObject<{
7600
8220
  option: string;
7601
8221
  filename: string;
7602
8222
  originalFilename: string;
7603
- }[]> | undefined;
8223
+ }[] | [string, string] | undefined> | undefined;
8224
+ originalActionId?: string | undefined;
7604
8225
  } | {
7605
8226
  type: "VALIDATE";
7606
8227
  id: string;
7607
- data: Record<string, string | number | boolean | {
8228
+ status: "Rejected" | "Requested" | "Accepted";
8229
+ transactionId: string;
8230
+ createdAt: string;
8231
+ createdBy: string;
8232
+ createdByRole: string;
8233
+ declaration: Record<string, string | number | boolean | {
7608
8234
  type: string;
7609
8235
  filename: string;
7610
8236
  originalFilename: string;
@@ -7641,11 +8267,10 @@ export declare const EventDocument: z.ZodObject<{
7641
8267
  option: string;
7642
8268
  filename: string;
7643
8269
  originalFilename: string;
7644
- }[]>;
7645
- createdAt: string;
7646
- createdBy: string;
7647
- createdAtLocation: string;
7648
- metadata?: Record<string, string | number | boolean | {
8270
+ }[] | [string, string] | undefined>;
8271
+ createdBySignature?: string | null | undefined;
8272
+ createdAtLocation?: string | null | undefined;
8273
+ annotation?: Record<string, string | number | boolean | {
7649
8274
  type: string;
7650
8275
  filename: string;
7651
8276
  originalFilename: string;
@@ -7682,11 +8307,21 @@ export declare const EventDocument: z.ZodObject<{
7682
8307
  option: string;
7683
8308
  filename: string;
7684
8309
  originalFilename: string;
7685
- }[]> | undefined;
8310
+ }[] | [string, string] | undefined> | undefined;
8311
+ originalActionId?: string | undefined;
7686
8312
  } | {
7687
8313
  type: "REJECT";
7688
8314
  id: string;
7689
- data: Record<string, string | number | boolean | {
8315
+ status: "Rejected" | "Requested" | "Accepted";
8316
+ reason: {
8317
+ message: string;
8318
+ isDuplicate?: boolean | undefined;
8319
+ };
8320
+ transactionId: string;
8321
+ createdAt: string;
8322
+ createdBy: string;
8323
+ createdByRole: string;
8324
+ declaration: Record<string, string | number | boolean | {
7690
8325
  type: string;
7691
8326
  filename: string;
7692
8327
  originalFilename: string;
@@ -7723,11 +8358,10 @@ export declare const EventDocument: z.ZodObject<{
7723
8358
  option: string;
7724
8359
  filename: string;
7725
8360
  originalFilename: string;
7726
- }[]>;
7727
- createdAt: string;
7728
- createdBy: string;
7729
- createdAtLocation: string;
7730
- metadata?: Record<string, string | number | boolean | {
8361
+ }[] | [string, string] | undefined>;
8362
+ createdBySignature?: string | null | undefined;
8363
+ createdAtLocation?: string | null | undefined;
8364
+ annotation?: Record<string, string | number | boolean | {
7731
8365
  type: string;
7732
8366
  filename: string;
7733
8367
  originalFilename: string;
@@ -7764,11 +8398,17 @@ export declare const EventDocument: z.ZodObject<{
7764
8398
  option: string;
7765
8399
  filename: string;
7766
8400
  originalFilename: string;
7767
- }[]> | undefined;
8401
+ }[] | [string, string] | undefined> | undefined;
8402
+ originalActionId?: string | undefined;
7768
8403
  } | {
7769
8404
  type: "MARKED_AS_DUPLICATE";
7770
8405
  id: string;
7771
- data: Record<string, string | number | boolean | {
8406
+ status: "Rejected" | "Requested" | "Accepted";
8407
+ transactionId: string;
8408
+ createdAt: string;
8409
+ createdBy: string;
8410
+ createdByRole: string;
8411
+ declaration: Record<string, string | number | boolean | {
7772
8412
  type: string;
7773
8413
  filename: string;
7774
8414
  originalFilename: string;
@@ -7805,11 +8445,10 @@ export declare const EventDocument: z.ZodObject<{
7805
8445
  option: string;
7806
8446
  filename: string;
7807
8447
  originalFilename: string;
7808
- }[]>;
7809
- createdAt: string;
7810
- createdBy: string;
7811
- createdAtLocation: string;
7812
- metadata?: Record<string, string | number | boolean | {
8448
+ }[] | [string, string] | undefined>;
8449
+ createdBySignature?: string | null | undefined;
8450
+ createdAtLocation?: string | null | undefined;
8451
+ annotation?: Record<string, string | number | boolean | {
7813
8452
  type: string;
7814
8453
  filename: string;
7815
8454
  originalFilename: string;
@@ -7846,11 +8485,21 @@ export declare const EventDocument: z.ZodObject<{
7846
8485
  option: string;
7847
8486
  filename: string;
7848
8487
  originalFilename: string;
7849
- }[]> | undefined;
8488
+ }[] | [string, string] | undefined> | undefined;
8489
+ originalActionId?: string | undefined;
7850
8490
  } | {
7851
8491
  type: "ARCHIVE";
7852
8492
  id: string;
7853
- data: Record<string, string | number | boolean | {
8493
+ status: "Rejected" | "Requested" | "Accepted";
8494
+ reason: {
8495
+ message: string;
8496
+ isDuplicate?: boolean | undefined;
8497
+ };
8498
+ transactionId: string;
8499
+ createdAt: string;
8500
+ createdBy: string;
8501
+ createdByRole: string;
8502
+ declaration: Record<string, string | number | boolean | {
7854
8503
  type: string;
7855
8504
  filename: string;
7856
8505
  originalFilename: string;
@@ -7887,11 +8536,10 @@ export declare const EventDocument: z.ZodObject<{
7887
8536
  option: string;
7888
8537
  filename: string;
7889
8538
  originalFilename: string;
7890
- }[]>;
7891
- createdAt: string;
7892
- createdBy: string;
7893
- createdAtLocation: string;
7894
- metadata?: Record<string, string | number | boolean | {
8539
+ }[] | [string, string] | undefined>;
8540
+ createdBySignature?: string | null | undefined;
8541
+ createdAtLocation?: string | null | undefined;
8542
+ annotation?: Record<string, string | number | boolean | {
7895
8543
  type: string;
7896
8544
  filename: string;
7897
8545
  originalFilename: string;
@@ -7928,11 +8576,17 @@ export declare const EventDocument: z.ZodObject<{
7928
8576
  option: string;
7929
8577
  filename: string;
7930
8578
  originalFilename: string;
7931
- }[]> | undefined;
8579
+ }[] | [string, string] | undefined> | undefined;
8580
+ originalActionId?: string | undefined;
7932
8581
  } | {
7933
8582
  type: "CREATE";
7934
8583
  id: string;
7935
- data: Record<string, string | number | boolean | {
8584
+ status: "Rejected" | "Requested" | "Accepted";
8585
+ transactionId: string;
8586
+ createdAt: string;
8587
+ createdBy: string;
8588
+ createdByRole: string;
8589
+ declaration: Record<string, string | number | boolean | {
7936
8590
  type: string;
7937
8591
  filename: string;
7938
8592
  originalFilename: string;
@@ -7969,11 +8623,10 @@ export declare const EventDocument: z.ZodObject<{
7969
8623
  option: string;
7970
8624
  filename: string;
7971
8625
  originalFilename: string;
7972
- }[]>;
7973
- createdAt: string;
7974
- createdBy: string;
7975
- createdAtLocation: string;
7976
- metadata?: Record<string, string | number | boolean | {
8626
+ }[] | [string, string] | undefined>;
8627
+ createdBySignature?: string | null | undefined;
8628
+ createdAtLocation?: string | null | undefined;
8629
+ annotation?: Record<string, string | number | boolean | {
7977
8630
  type: string;
7978
8631
  filename: string;
7979
8632
  originalFilename: string;
@@ -8010,11 +8663,17 @@ export declare const EventDocument: z.ZodObject<{
8010
8663
  option: string;
8011
8664
  filename: string;
8012
8665
  originalFilename: string;
8013
- }[]> | undefined;
8666
+ }[] | [string, string] | undefined> | undefined;
8667
+ originalActionId?: string | undefined;
8014
8668
  } | {
8015
8669
  type: "NOTIFY";
8016
8670
  id: string;
8017
- data: Record<string, string | number | boolean | {
8671
+ status: "Rejected" | "Requested" | "Accepted";
8672
+ transactionId: string;
8673
+ createdAt: string;
8674
+ createdBy: string;
8675
+ createdByRole: string;
8676
+ declaration: Record<string, string | number | boolean | {
8018
8677
  type: string;
8019
8678
  filename: string;
8020
8679
  originalFilename: string;
@@ -8051,11 +8710,10 @@ export declare const EventDocument: z.ZodObject<{
8051
8710
  option: string;
8052
8711
  filename: string;
8053
8712
  originalFilename: string;
8054
- }[]>;
8055
- createdAt: string;
8056
- createdBy: string;
8057
- createdAtLocation: string;
8058
- metadata?: Record<string, string | number | boolean | {
8713
+ }[] | [string, string] | undefined>;
8714
+ createdBySignature?: string | null | undefined;
8715
+ createdAtLocation?: string | null | undefined;
8716
+ annotation?: Record<string, string | number | boolean | {
8059
8717
  type: string;
8060
8718
  filename: string;
8061
8719
  originalFilename: string;
@@ -8092,11 +8750,17 @@ export declare const EventDocument: z.ZodObject<{
8092
8750
  option: string;
8093
8751
  filename: string;
8094
8752
  originalFilename: string;
8095
- }[]> | undefined;
8753
+ }[] | [string, string] | undefined> | undefined;
8754
+ originalActionId?: string | undefined;
8096
8755
  } | {
8097
8756
  type: "PRINT_CERTIFICATE";
8098
8757
  id: string;
8099
- data: Record<string, string | number | boolean | {
8758
+ status: "Rejected" | "Requested" | "Accepted";
8759
+ transactionId: string;
8760
+ createdAt: string;
8761
+ createdBy: string;
8762
+ createdByRole: string;
8763
+ declaration: Record<string, string | number | boolean | {
8100
8764
  type: string;
8101
8765
  filename: string;
8102
8766
  originalFilename: string;
@@ -8133,11 +8797,10 @@ export declare const EventDocument: z.ZodObject<{
8133
8797
  option: string;
8134
8798
  filename: string;
8135
8799
  originalFilename: string;
8136
- }[]>;
8137
- createdAt: string;
8138
- createdBy: string;
8139
- createdAtLocation: string;
8140
- metadata?: Record<string, string | number | boolean | {
8800
+ }[] | [string, string] | undefined>;
8801
+ createdBySignature?: string | null | undefined;
8802
+ createdAtLocation?: string | null | undefined;
8803
+ annotation?: Record<string, string | number | boolean | {
8141
8804
  type: string;
8142
8805
  filename: string;
8143
8806
  originalFilename: string;
@@ -8174,11 +8837,17 @@ export declare const EventDocument: z.ZodObject<{
8174
8837
  option: string;
8175
8838
  filename: string;
8176
8839
  originalFilename: string;
8177
- }[]> | undefined;
8840
+ }[] | [string, string] | undefined> | undefined;
8841
+ originalActionId?: string | undefined;
8178
8842
  } | {
8179
8843
  type: "REQUEST_CORRECTION";
8180
8844
  id: string;
8181
- data: Record<string, string | number | boolean | {
8845
+ status: "Rejected" | "Requested" | "Accepted";
8846
+ transactionId: string;
8847
+ createdAt: string;
8848
+ createdBy: string;
8849
+ createdByRole: string;
8850
+ declaration: Record<string, string | number | boolean | {
8182
8851
  type: string;
8183
8852
  filename: string;
8184
8853
  originalFilename: string;
@@ -8215,11 +8884,10 @@ export declare const EventDocument: z.ZodObject<{
8215
8884
  option: string;
8216
8885
  filename: string;
8217
8886
  originalFilename: string;
8218
- }[]>;
8219
- createdAt: string;
8220
- createdBy: string;
8221
- createdAtLocation: string;
8222
- metadata?: Record<string, string | number | boolean | {
8887
+ }[] | [string, string] | undefined>;
8888
+ createdBySignature?: string | null | undefined;
8889
+ createdAtLocation?: string | null | undefined;
8890
+ annotation?: Record<string, string | number | boolean | {
8223
8891
  type: string;
8224
8892
  filename: string;
8225
8893
  originalFilename: string;
@@ -8256,11 +8924,17 @@ export declare const EventDocument: z.ZodObject<{
8256
8924
  option: string;
8257
8925
  filename: string;
8258
8926
  originalFilename: string;
8259
- }[]> | undefined;
8927
+ }[] | [string, string] | undefined> | undefined;
8928
+ originalActionId?: string | undefined;
8260
8929
  } | {
8261
8930
  type: "APPROVE_CORRECTION";
8262
8931
  id: string;
8263
- data: Record<string, string | number | boolean | {
8932
+ status: "Rejected" | "Requested" | "Accepted";
8933
+ transactionId: string;
8934
+ createdAt: string;
8935
+ createdBy: string;
8936
+ createdByRole: string;
8937
+ declaration: Record<string, string | number | boolean | {
8264
8938
  type: string;
8265
8939
  filename: string;
8266
8940
  originalFilename: string;
@@ -8297,12 +8971,11 @@ export declare const EventDocument: z.ZodObject<{
8297
8971
  option: string;
8298
8972
  filename: string;
8299
8973
  originalFilename: string;
8300
- }[]>;
8301
- createdAt: string;
8302
- createdBy: string;
8303
- createdAtLocation: string;
8974
+ }[] | [string, string] | undefined>;
8304
8975
  requestId: string;
8305
- metadata?: Record<string, string | number | boolean | {
8976
+ createdBySignature?: string | null | undefined;
8977
+ createdAtLocation?: string | null | undefined;
8978
+ annotation?: Record<string, string | number | boolean | {
8306
8979
  type: string;
8307
8980
  filename: string;
8308
8981
  originalFilename: string;
@@ -8339,11 +9012,17 @@ export declare const EventDocument: z.ZodObject<{
8339
9012
  option: string;
8340
9013
  filename: string;
8341
9014
  originalFilename: string;
8342
- }[]> | undefined;
9015
+ }[] | [string, string] | undefined> | undefined;
9016
+ originalActionId?: string | undefined;
8343
9017
  } | {
8344
9018
  type: "REJECT_CORRECTION";
8345
9019
  id: string;
8346
- data: Record<string, string | number | boolean | {
9020
+ status: "Rejected" | "Requested" | "Accepted";
9021
+ transactionId: string;
9022
+ createdAt: string;
9023
+ createdBy: string;
9024
+ createdByRole: string;
9025
+ declaration: Record<string, string | number | boolean | {
8347
9026
  type: string;
8348
9027
  filename: string;
8349
9028
  originalFilename: string;
@@ -8380,12 +9059,11 @@ export declare const EventDocument: z.ZodObject<{
8380
9059
  option: string;
8381
9060
  filename: string;
8382
9061
  originalFilename: string;
8383
- }[]>;
8384
- createdAt: string;
8385
- createdBy: string;
8386
- createdAtLocation: string;
9062
+ }[] | [string, string] | undefined>;
8387
9063
  requestId: string;
8388
- metadata?: Record<string, string | number | boolean | {
9064
+ createdBySignature?: string | null | undefined;
9065
+ createdAtLocation?: string | null | undefined;
9066
+ annotation?: Record<string, string | number | boolean | {
8389
9067
  type: string;
8390
9068
  filename: string;
8391
9069
  originalFilename: string;
@@ -8422,11 +9100,17 @@ export declare const EventDocument: z.ZodObject<{
8422
9100
  option: string;
8423
9101
  filename: string;
8424
9102
  originalFilename: string;
8425
- }[]> | undefined;
9103
+ }[] | [string, string] | undefined> | undefined;
9104
+ originalActionId?: string | undefined;
8426
9105
  } | {
8427
- type: "CUSTOM";
9106
+ type: "READ";
8428
9107
  id: string;
8429
- data: Record<string, string | number | boolean | {
9108
+ status: "Rejected" | "Requested" | "Accepted";
9109
+ transactionId: string;
9110
+ createdAt: string;
9111
+ createdBy: string;
9112
+ createdByRole: string;
9113
+ declaration: Record<string, string | number | boolean | {
8430
9114
  type: string;
8431
9115
  filename: string;
8432
9116
  originalFilename: string;
@@ -8463,11 +9147,10 @@ export declare const EventDocument: z.ZodObject<{
8463
9147
  option: string;
8464
9148
  filename: string;
8465
9149
  originalFilename: string;
8466
- }[]>;
8467
- createdAt: string;
8468
- createdBy: string;
8469
- createdAtLocation: string;
8470
- metadata?: Record<string, string | number | boolean | {
9150
+ }[] | [string, string] | undefined>;
9151
+ createdBySignature?: string | null | undefined;
9152
+ createdAtLocation?: string | null | undefined;
9153
+ annotation?: Record<string, string | number | boolean | {
8471
9154
  type: string;
8472
9155
  filename: string;
8473
9156
  originalFilename: string;
@@ -8504,8 +9187,21 @@ export declare const EventDocument: z.ZodObject<{
8504
9187
  option: string;
8505
9188
  filename: string;
8506
9189
  originalFilename: string;
8507
- }[]> | undefined;
9190
+ }[] | [string, string] | undefined> | undefined;
9191
+ originalActionId?: string | undefined;
9192
+ } | {
9193
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
9194
+ id: string;
9195
+ status: "Rejected";
9196
+ transactionId: string;
9197
+ createdAt: string;
9198
+ createdBy: string;
9199
+ createdByRole: string;
9200
+ createdBySignature?: string | null | undefined;
9201
+ createdAtLocation?: string | null | undefined;
9202
+ originalActionId?: string | undefined;
8508
9203
  })[];
9204
+ trackingId: string;
8509
9205
  }>;
8510
9206
  export type EventDocument = z.infer<typeof EventDocument>;
8511
9207
  //# sourceMappingURL=EventDocument.d.ts.map