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

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 (30) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +6922 -14585
  3. package/dist/commons/conditionals/conditionals.d.ts +25 -3
  4. package/dist/commons/conditionals/validate.d.ts +14 -17
  5. package/dist/commons/events/ActionConfig.d.ts +1123 -2056
  6. package/dist/commons/events/ActionDocument.d.ts +7447 -347
  7. package/dist/commons/events/ActionInput.d.ts +2259 -522
  8. package/dist/commons/events/ActionType.d.ts +26 -16
  9. package/dist/commons/events/Conditional.d.ts +21 -5
  10. package/dist/commons/events/Draft.d.ts +67 -52
  11. package/dist/commons/events/EventConfig.d.ts +551 -1206
  12. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  13. package/dist/commons/events/EventDocument.d.ts +850 -454
  14. package/dist/commons/events/EventIndex.d.ts +6 -3
  15. package/dist/commons/events/EventMetadata.d.ts +3 -0
  16. package/dist/commons/events/FieldConfig.d.ts +465 -73
  17. package/dist/commons/events/FieldType.d.ts +2 -1
  18. package/dist/commons/events/FieldTypeMapping.d.ts +23 -2
  19. package/dist/commons/events/FieldValue.d.ts +6 -4
  20. package/dist/commons/events/FormConfig.d.ts +633 -48
  21. package/dist/commons/events/PageConfig.d.ts +335 -0
  22. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  23. package/dist/commons/events/defineConfig.d.ts +91 -216
  24. package/dist/commons/events/index.d.ts +2 -1
  25. package/dist/commons/events/test.utils.d.ts +70 -287
  26. package/dist/commons/events/utils.d.ts +89 -83
  27. package/dist/commons/events/utils.test.d.ts +2 -0
  28. package/dist/conditionals/index.js +161 -93
  29. package/dist/events/index.js +1264 -781
  30. package/package.json +1 -1
@@ -4,11 +4,11 @@ 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
9
  createdAt: z.ZodString;
10
10
  createdBy: z.ZodString;
11
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12
12
  filename: z.ZodString;
13
13
  originalFilename: z.ZodString;
14
14
  type: z.ZodString;
@@ -91,7 +91,7 @@ export declare const EventDocument: z.ZodObject<{
91
91
  province: string;
92
92
  urbanOrRural: "RURAL";
93
93
  village?: string | null | undefined;
94
- }>, z.ZodObject<{
94
+ }>, z.ZodUndefined, z.ZodObject<{
95
95
  country: z.ZodString;
96
96
  addressType: z.ZodLiteral<"INTERNATIONAL">;
97
97
  state: z.ZodString;
@@ -122,7 +122,7 @@ export declare const EventDocument: z.ZodObject<{
122
122
  addressLine3?: string | null | undefined;
123
123
  postcodeOrZip?: string | null | undefined;
124
124
  }>]>>;
125
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
125
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
126
126
  filename: z.ZodString;
127
127
  originalFilename: z.ZodString;
128
128
  type: z.ZodString;
@@ -205,7 +205,7 @@ export declare const EventDocument: z.ZodObject<{
205
205
  province: string;
206
206
  urbanOrRural: "RURAL";
207
207
  village?: string | null | undefined;
208
- }>, z.ZodObject<{
208
+ }>, z.ZodUndefined, z.ZodObject<{
209
209
  country: z.ZodString;
210
210
  addressType: z.ZodLiteral<"INTERNATIONAL">;
211
211
  state: z.ZodString;
@@ -237,12 +237,17 @@ export declare const EventDocument: z.ZodObject<{
237
237
  postcodeOrZip?: string | null | undefined;
238
238
  }>]>>>;
239
239
  createdAtLocation: z.ZodString;
240
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
241
+ originalActionId: z.ZodOptional<z.ZodString>;
240
242
  }, {
241
243
  type: z.ZodLiteral<"CREATE">;
242
244
  }>, "strip", z.ZodTypeAny, {
243
245
  type: "CREATE";
244
246
  id: string;
245
- data: Record<string, string | number | boolean | {
247
+ status: "Rejected" | "Requested" | "Accepted";
248
+ createdAt: string;
249
+ createdBy: string;
250
+ declaration: Record<string, string | number | boolean | {
246
251
  type: string;
247
252
  filename: string;
248
253
  originalFilename: string;
@@ -279,11 +284,9 @@ export declare const EventDocument: z.ZodObject<{
279
284
  option: string;
280
285
  filename: string;
281
286
  originalFilename: string;
282
- }[]>;
283
- createdAt: string;
284
- createdBy: string;
287
+ }[] | undefined>;
285
288
  createdAtLocation: string;
286
- metadata?: Record<string, string | number | boolean | {
289
+ annotation?: Record<string, string | number | boolean | {
287
290
  type: string;
288
291
  filename: string;
289
292
  originalFilename: string;
@@ -320,11 +323,15 @@ export declare const EventDocument: z.ZodObject<{
320
323
  option: string;
321
324
  filename: string;
322
325
  originalFilename: string;
323
- }[]> | undefined;
326
+ }[] | undefined> | undefined;
327
+ originalActionId?: string | undefined;
324
328
  }, {
325
329
  type: "CREATE";
326
330
  id: string;
327
- data: Record<string, string | number | boolean | {
331
+ status: "Rejected" | "Requested" | "Accepted";
332
+ createdAt: string;
333
+ createdBy: string;
334
+ declaration: Record<string, string | number | boolean | {
328
335
  type: string;
329
336
  filename: string;
330
337
  originalFilename: string;
@@ -361,11 +368,9 @@ export declare const EventDocument: z.ZodObject<{
361
368
  option: string;
362
369
  filename: string;
363
370
  originalFilename: string;
364
- }[]>;
365
- createdAt: string;
366
- createdBy: string;
371
+ }[] | undefined>;
367
372
  createdAtLocation: string;
368
- metadata?: Record<string, string | number | boolean | {
373
+ annotation?: Record<string, string | number | boolean | {
369
374
  type: string;
370
375
  filename: string;
371
376
  originalFilename: string;
@@ -402,12 +407,13 @@ export declare const EventDocument: z.ZodObject<{
402
407
  option: string;
403
408
  filename: string;
404
409
  originalFilename: string;
405
- }[]> | undefined;
410
+ }[] | undefined> | undefined;
411
+ originalActionId?: string | undefined;
406
412
  }>, z.ZodObject<z.objectUtil.extendShape<{
407
413
  id: z.ZodString;
408
414
  createdAt: z.ZodString;
409
415
  createdBy: z.ZodString;
410
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
416
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
411
417
  filename: z.ZodString;
412
418
  originalFilename: z.ZodString;
413
419
  type: z.ZodString;
@@ -490,7 +496,7 @@ export declare const EventDocument: z.ZodObject<{
490
496
  province: string;
491
497
  urbanOrRural: "RURAL";
492
498
  village?: string | null | undefined;
493
- }>, z.ZodObject<{
499
+ }>, z.ZodUndefined, z.ZodObject<{
494
500
  country: z.ZodString;
495
501
  addressType: z.ZodLiteral<"INTERNATIONAL">;
496
502
  state: z.ZodString;
@@ -521,7 +527,7 @@ export declare const EventDocument: z.ZodObject<{
521
527
  addressLine3?: string | null | undefined;
522
528
  postcodeOrZip?: string | null | undefined;
523
529
  }>]>>;
524
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
530
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
525
531
  filename: z.ZodString;
526
532
  originalFilename: z.ZodString;
527
533
  type: z.ZodString;
@@ -604,7 +610,7 @@ export declare const EventDocument: z.ZodObject<{
604
610
  province: string;
605
611
  urbanOrRural: "RURAL";
606
612
  village?: string | null | undefined;
607
- }>, z.ZodObject<{
613
+ }>, z.ZodUndefined, z.ZodObject<{
608
614
  country: z.ZodString;
609
615
  addressType: z.ZodLiteral<"INTERNATIONAL">;
610
616
  state: z.ZodString;
@@ -636,12 +642,17 @@ export declare const EventDocument: z.ZodObject<{
636
642
  postcodeOrZip?: string | null | undefined;
637
643
  }>]>>>;
638
644
  createdAtLocation: z.ZodString;
645
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
646
+ originalActionId: z.ZodOptional<z.ZodString>;
639
647
  }, {
640
648
  type: z.ZodLiteral<"VALIDATE">;
641
649
  }>, "strip", z.ZodTypeAny, {
642
650
  type: "VALIDATE";
643
651
  id: string;
644
- data: Record<string, string | number | boolean | {
652
+ status: "Rejected" | "Requested" | "Accepted";
653
+ createdAt: string;
654
+ createdBy: string;
655
+ declaration: Record<string, string | number | boolean | {
645
656
  type: string;
646
657
  filename: string;
647
658
  originalFilename: string;
@@ -678,11 +689,9 @@ export declare const EventDocument: z.ZodObject<{
678
689
  option: string;
679
690
  filename: string;
680
691
  originalFilename: string;
681
- }[]>;
682
- createdAt: string;
683
- createdBy: string;
692
+ }[] | undefined>;
684
693
  createdAtLocation: string;
685
- metadata?: Record<string, string | number | boolean | {
694
+ annotation?: Record<string, string | number | boolean | {
686
695
  type: string;
687
696
  filename: string;
688
697
  originalFilename: string;
@@ -719,11 +728,15 @@ export declare const EventDocument: z.ZodObject<{
719
728
  option: string;
720
729
  filename: string;
721
730
  originalFilename: string;
722
- }[]> | undefined;
731
+ }[] | undefined> | undefined;
732
+ originalActionId?: string | undefined;
723
733
  }, {
724
734
  type: "VALIDATE";
725
735
  id: string;
726
- data: Record<string, string | number | boolean | {
736
+ status: "Rejected" | "Requested" | "Accepted";
737
+ createdAt: string;
738
+ createdBy: string;
739
+ declaration: Record<string, string | number | boolean | {
727
740
  type: string;
728
741
  filename: string;
729
742
  originalFilename: string;
@@ -760,11 +773,9 @@ export declare const EventDocument: z.ZodObject<{
760
773
  option: string;
761
774
  filename: string;
762
775
  originalFilename: string;
763
- }[]>;
764
- createdAt: string;
765
- createdBy: string;
776
+ }[] | undefined>;
766
777
  createdAtLocation: string;
767
- metadata?: Record<string, string | number | boolean | {
778
+ annotation?: Record<string, string | number | boolean | {
768
779
  type: string;
769
780
  filename: string;
770
781
  originalFilename: string;
@@ -801,12 +812,13 @@ export declare const EventDocument: z.ZodObject<{
801
812
  option: string;
802
813
  filename: string;
803
814
  originalFilename: string;
804
- }[]> | undefined;
815
+ }[] | undefined> | undefined;
816
+ originalActionId?: string | undefined;
805
817
  }>, z.ZodObject<z.objectUtil.extendShape<{
806
818
  id: z.ZodString;
807
819
  createdAt: z.ZodString;
808
820
  createdBy: z.ZodString;
809
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
821
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
810
822
  filename: z.ZodString;
811
823
  originalFilename: z.ZodString;
812
824
  type: z.ZodString;
@@ -889,7 +901,7 @@ export declare const EventDocument: z.ZodObject<{
889
901
  province: string;
890
902
  urbanOrRural: "RURAL";
891
903
  village?: string | null | undefined;
892
- }>, z.ZodObject<{
904
+ }>, z.ZodUndefined, z.ZodObject<{
893
905
  country: z.ZodString;
894
906
  addressType: z.ZodLiteral<"INTERNATIONAL">;
895
907
  state: z.ZodString;
@@ -920,7 +932,7 @@ export declare const EventDocument: z.ZodObject<{
920
932
  addressLine3?: string | null | undefined;
921
933
  postcodeOrZip?: string | null | undefined;
922
934
  }>]>>;
923
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
935
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
924
936
  filename: z.ZodString;
925
937
  originalFilename: z.ZodString;
926
938
  type: z.ZodString;
@@ -1003,7 +1015,7 @@ export declare const EventDocument: z.ZodObject<{
1003
1015
  province: string;
1004
1016
  urbanOrRural: "RURAL";
1005
1017
  village?: string | null | undefined;
1006
- }>, z.ZodObject<{
1018
+ }>, z.ZodUndefined, z.ZodObject<{
1007
1019
  country: z.ZodString;
1008
1020
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1009
1021
  state: z.ZodString;
@@ -1035,12 +1047,17 @@ export declare const EventDocument: z.ZodObject<{
1035
1047
  postcodeOrZip?: string | null | undefined;
1036
1048
  }>]>>>;
1037
1049
  createdAtLocation: z.ZodString;
1050
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1051
+ originalActionId: z.ZodOptional<z.ZodString>;
1038
1052
  }, {
1039
1053
  type: z.ZodLiteral<"REJECT">;
1040
1054
  }>, "strip", z.ZodTypeAny, {
1041
1055
  type: "REJECT";
1042
1056
  id: string;
1043
- data: Record<string, string | number | boolean | {
1057
+ status: "Rejected" | "Requested" | "Accepted";
1058
+ createdAt: string;
1059
+ createdBy: string;
1060
+ declaration: Record<string, string | number | boolean | {
1044
1061
  type: string;
1045
1062
  filename: string;
1046
1063
  originalFilename: string;
@@ -1077,11 +1094,9 @@ export declare const EventDocument: z.ZodObject<{
1077
1094
  option: string;
1078
1095
  filename: string;
1079
1096
  originalFilename: string;
1080
- }[]>;
1081
- createdAt: string;
1082
- createdBy: string;
1097
+ }[] | undefined>;
1083
1098
  createdAtLocation: string;
1084
- metadata?: Record<string, string | number | boolean | {
1099
+ annotation?: Record<string, string | number | boolean | {
1085
1100
  type: string;
1086
1101
  filename: string;
1087
1102
  originalFilename: string;
@@ -1118,11 +1133,15 @@ export declare const EventDocument: z.ZodObject<{
1118
1133
  option: string;
1119
1134
  filename: string;
1120
1135
  originalFilename: string;
1121
- }[]> | undefined;
1136
+ }[] | undefined> | undefined;
1137
+ originalActionId?: string | undefined;
1122
1138
  }, {
1123
1139
  type: "REJECT";
1124
1140
  id: string;
1125
- data: Record<string, string | number | boolean | {
1141
+ status: "Rejected" | "Requested" | "Accepted";
1142
+ createdAt: string;
1143
+ createdBy: string;
1144
+ declaration: Record<string, string | number | boolean | {
1126
1145
  type: string;
1127
1146
  filename: string;
1128
1147
  originalFilename: string;
@@ -1159,11 +1178,9 @@ export declare const EventDocument: z.ZodObject<{
1159
1178
  option: string;
1160
1179
  filename: string;
1161
1180
  originalFilename: string;
1162
- }[]>;
1163
- createdAt: string;
1164
- createdBy: string;
1181
+ }[] | undefined>;
1165
1182
  createdAtLocation: string;
1166
- metadata?: Record<string, string | number | boolean | {
1183
+ annotation?: Record<string, string | number | boolean | {
1167
1184
  type: string;
1168
1185
  filename: string;
1169
1186
  originalFilename: string;
@@ -1200,12 +1217,13 @@ export declare const EventDocument: z.ZodObject<{
1200
1217
  option: string;
1201
1218
  filename: string;
1202
1219
  originalFilename: string;
1203
- }[]> | undefined;
1220
+ }[] | undefined> | undefined;
1221
+ originalActionId?: string | undefined;
1204
1222
  }>, z.ZodObject<z.objectUtil.extendShape<{
1205
1223
  id: z.ZodString;
1206
1224
  createdAt: z.ZodString;
1207
1225
  createdBy: z.ZodString;
1208
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1226
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1209
1227
  filename: z.ZodString;
1210
1228
  originalFilename: z.ZodString;
1211
1229
  type: z.ZodString;
@@ -1288,7 +1306,7 @@ export declare const EventDocument: z.ZodObject<{
1288
1306
  province: string;
1289
1307
  urbanOrRural: "RURAL";
1290
1308
  village?: string | null | undefined;
1291
- }>, z.ZodObject<{
1309
+ }>, z.ZodUndefined, z.ZodObject<{
1292
1310
  country: z.ZodString;
1293
1311
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1294
1312
  state: z.ZodString;
@@ -1319,7 +1337,7 @@ export declare const EventDocument: z.ZodObject<{
1319
1337
  addressLine3?: string | null | undefined;
1320
1338
  postcodeOrZip?: string | null | undefined;
1321
1339
  }>]>>;
1322
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1340
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1323
1341
  filename: z.ZodString;
1324
1342
  originalFilename: z.ZodString;
1325
1343
  type: z.ZodString;
@@ -1402,7 +1420,7 @@ export declare const EventDocument: z.ZodObject<{
1402
1420
  province: string;
1403
1421
  urbanOrRural: "RURAL";
1404
1422
  village?: string | null | undefined;
1405
- }>, z.ZodObject<{
1423
+ }>, z.ZodUndefined, z.ZodObject<{
1406
1424
  country: z.ZodString;
1407
1425
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1408
1426
  state: z.ZodString;
@@ -1434,12 +1452,17 @@ export declare const EventDocument: z.ZodObject<{
1434
1452
  postcodeOrZip?: string | null | undefined;
1435
1453
  }>]>>>;
1436
1454
  createdAtLocation: z.ZodString;
1455
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1456
+ originalActionId: z.ZodOptional<z.ZodString>;
1437
1457
  }, {
1438
1458
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1439
1459
  }>, "strip", z.ZodTypeAny, {
1440
1460
  type: "MARKED_AS_DUPLICATE";
1441
1461
  id: string;
1442
- data: Record<string, string | number | boolean | {
1462
+ status: "Rejected" | "Requested" | "Accepted";
1463
+ createdAt: string;
1464
+ createdBy: string;
1465
+ declaration: Record<string, string | number | boolean | {
1443
1466
  type: string;
1444
1467
  filename: string;
1445
1468
  originalFilename: string;
@@ -1476,11 +1499,9 @@ export declare const EventDocument: z.ZodObject<{
1476
1499
  option: string;
1477
1500
  filename: string;
1478
1501
  originalFilename: string;
1479
- }[]>;
1480
- createdAt: string;
1481
- createdBy: string;
1502
+ }[] | undefined>;
1482
1503
  createdAtLocation: string;
1483
- metadata?: Record<string, string | number | boolean | {
1504
+ annotation?: Record<string, string | number | boolean | {
1484
1505
  type: string;
1485
1506
  filename: string;
1486
1507
  originalFilename: string;
@@ -1517,11 +1538,15 @@ export declare const EventDocument: z.ZodObject<{
1517
1538
  option: string;
1518
1539
  filename: string;
1519
1540
  originalFilename: string;
1520
- }[]> | undefined;
1541
+ }[] | undefined> | undefined;
1542
+ originalActionId?: string | undefined;
1521
1543
  }, {
1522
1544
  type: "MARKED_AS_DUPLICATE";
1523
1545
  id: string;
1524
- data: Record<string, string | number | boolean | {
1546
+ status: "Rejected" | "Requested" | "Accepted";
1547
+ createdAt: string;
1548
+ createdBy: string;
1549
+ declaration: Record<string, string | number | boolean | {
1525
1550
  type: string;
1526
1551
  filename: string;
1527
1552
  originalFilename: string;
@@ -1558,11 +1583,9 @@ export declare const EventDocument: z.ZodObject<{
1558
1583
  option: string;
1559
1584
  filename: string;
1560
1585
  originalFilename: string;
1561
- }[]>;
1562
- createdAt: string;
1563
- createdBy: string;
1586
+ }[] | undefined>;
1564
1587
  createdAtLocation: string;
1565
- metadata?: Record<string, string | number | boolean | {
1588
+ annotation?: Record<string, string | number | boolean | {
1566
1589
  type: string;
1567
1590
  filename: string;
1568
1591
  originalFilename: string;
@@ -1599,12 +1622,13 @@ export declare const EventDocument: z.ZodObject<{
1599
1622
  option: string;
1600
1623
  filename: string;
1601
1624
  originalFilename: string;
1602
- }[]> | undefined;
1625
+ }[] | undefined> | undefined;
1626
+ originalActionId?: string | undefined;
1603
1627
  }>, z.ZodObject<z.objectUtil.extendShape<{
1604
1628
  id: z.ZodString;
1605
1629
  createdAt: z.ZodString;
1606
1630
  createdBy: z.ZodString;
1607
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1631
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1608
1632
  filename: z.ZodString;
1609
1633
  originalFilename: z.ZodString;
1610
1634
  type: z.ZodString;
@@ -1687,7 +1711,7 @@ export declare const EventDocument: z.ZodObject<{
1687
1711
  province: string;
1688
1712
  urbanOrRural: "RURAL";
1689
1713
  village?: string | null | undefined;
1690
- }>, z.ZodObject<{
1714
+ }>, z.ZodUndefined, z.ZodObject<{
1691
1715
  country: z.ZodString;
1692
1716
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1693
1717
  state: z.ZodString;
@@ -1718,7 +1742,7 @@ export declare const EventDocument: z.ZodObject<{
1718
1742
  addressLine3?: string | null | undefined;
1719
1743
  postcodeOrZip?: string | null | undefined;
1720
1744
  }>]>>;
1721
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1745
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1722
1746
  filename: z.ZodString;
1723
1747
  originalFilename: z.ZodString;
1724
1748
  type: z.ZodString;
@@ -1801,7 +1825,7 @@ export declare const EventDocument: z.ZodObject<{
1801
1825
  province: string;
1802
1826
  urbanOrRural: "RURAL";
1803
1827
  village?: string | null | undefined;
1804
- }>, z.ZodObject<{
1828
+ }>, z.ZodUndefined, z.ZodObject<{
1805
1829
  country: z.ZodString;
1806
1830
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1807
1831
  state: z.ZodString;
@@ -1833,12 +1857,17 @@ export declare const EventDocument: z.ZodObject<{
1833
1857
  postcodeOrZip?: string | null | undefined;
1834
1858
  }>]>>>;
1835
1859
  createdAtLocation: z.ZodString;
1860
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1861
+ originalActionId: z.ZodOptional<z.ZodString>;
1836
1862
  }, {
1837
1863
  type: z.ZodLiteral<"ARCHIVE">;
1838
1864
  }>, "strip", z.ZodTypeAny, {
1839
1865
  type: "ARCHIVE";
1840
1866
  id: string;
1841
- data: Record<string, string | number | boolean | {
1867
+ status: "Rejected" | "Requested" | "Accepted";
1868
+ createdAt: string;
1869
+ createdBy: string;
1870
+ declaration: Record<string, string | number | boolean | {
1842
1871
  type: string;
1843
1872
  filename: string;
1844
1873
  originalFilename: string;
@@ -1875,11 +1904,9 @@ export declare const EventDocument: z.ZodObject<{
1875
1904
  option: string;
1876
1905
  filename: string;
1877
1906
  originalFilename: string;
1878
- }[]>;
1879
- createdAt: string;
1880
- createdBy: string;
1907
+ }[] | undefined>;
1881
1908
  createdAtLocation: string;
1882
- metadata?: Record<string, string | number | boolean | {
1909
+ annotation?: Record<string, string | number | boolean | {
1883
1910
  type: string;
1884
1911
  filename: string;
1885
1912
  originalFilename: string;
@@ -1916,11 +1943,15 @@ export declare const EventDocument: z.ZodObject<{
1916
1943
  option: string;
1917
1944
  filename: string;
1918
1945
  originalFilename: string;
1919
- }[]> | undefined;
1946
+ }[] | undefined> | undefined;
1947
+ originalActionId?: string | undefined;
1920
1948
  }, {
1921
1949
  type: "ARCHIVE";
1922
1950
  id: string;
1923
- data: Record<string, string | number | boolean | {
1951
+ status: "Rejected" | "Requested" | "Accepted";
1952
+ createdAt: string;
1953
+ createdBy: string;
1954
+ declaration: Record<string, string | number | boolean | {
1924
1955
  type: string;
1925
1956
  filename: string;
1926
1957
  originalFilename: string;
@@ -1957,11 +1988,9 @@ export declare const EventDocument: z.ZodObject<{
1957
1988
  option: string;
1958
1989
  filename: string;
1959
1990
  originalFilename: string;
1960
- }[]>;
1961
- createdAt: string;
1962
- createdBy: string;
1991
+ }[] | undefined>;
1963
1992
  createdAtLocation: string;
1964
- metadata?: Record<string, string | number | boolean | {
1993
+ annotation?: Record<string, string | number | boolean | {
1965
1994
  type: string;
1966
1995
  filename: string;
1967
1996
  originalFilename: string;
@@ -1998,12 +2027,13 @@ export declare const EventDocument: z.ZodObject<{
1998
2027
  option: string;
1999
2028
  filename: string;
2000
2029
  originalFilename: string;
2001
- }[]> | undefined;
2030
+ }[] | undefined> | undefined;
2031
+ originalActionId?: string | undefined;
2002
2032
  }>, z.ZodObject<z.objectUtil.extendShape<{
2003
2033
  id: z.ZodString;
2004
2034
  createdAt: z.ZodString;
2005
2035
  createdBy: z.ZodString;
2006
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2036
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2007
2037
  filename: z.ZodString;
2008
2038
  originalFilename: z.ZodString;
2009
2039
  type: z.ZodString;
@@ -2086,7 +2116,7 @@ export declare const EventDocument: z.ZodObject<{
2086
2116
  province: string;
2087
2117
  urbanOrRural: "RURAL";
2088
2118
  village?: string | null | undefined;
2089
- }>, z.ZodObject<{
2119
+ }>, z.ZodUndefined, z.ZodObject<{
2090
2120
  country: z.ZodString;
2091
2121
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2092
2122
  state: z.ZodString;
@@ -2117,7 +2147,7 @@ export declare const EventDocument: z.ZodObject<{
2117
2147
  addressLine3?: string | null | undefined;
2118
2148
  postcodeOrZip?: string | null | undefined;
2119
2149
  }>]>>;
2120
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2150
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2121
2151
  filename: z.ZodString;
2122
2152
  originalFilename: z.ZodString;
2123
2153
  type: z.ZodString;
@@ -2200,7 +2230,7 @@ export declare const EventDocument: z.ZodObject<{
2200
2230
  province: string;
2201
2231
  urbanOrRural: "RURAL";
2202
2232
  village?: string | null | undefined;
2203
- }>, z.ZodObject<{
2233
+ }>, z.ZodUndefined, z.ZodObject<{
2204
2234
  country: z.ZodString;
2205
2235
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2206
2236
  state: z.ZodString;
@@ -2232,12 +2262,17 @@ export declare const EventDocument: z.ZodObject<{
2232
2262
  postcodeOrZip?: string | null | undefined;
2233
2263
  }>]>>>;
2234
2264
  createdAtLocation: z.ZodString;
2265
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2266
+ originalActionId: z.ZodOptional<z.ZodString>;
2235
2267
  }, {
2236
2268
  type: z.ZodLiteral<"NOTIFY">;
2237
2269
  }>, "strip", z.ZodTypeAny, {
2238
2270
  type: "NOTIFY";
2239
2271
  id: string;
2240
- data: Record<string, string | number | boolean | {
2272
+ status: "Rejected" | "Requested" | "Accepted";
2273
+ createdAt: string;
2274
+ createdBy: string;
2275
+ declaration: Record<string, string | number | boolean | {
2241
2276
  type: string;
2242
2277
  filename: string;
2243
2278
  originalFilename: string;
@@ -2274,11 +2309,9 @@ export declare const EventDocument: z.ZodObject<{
2274
2309
  option: string;
2275
2310
  filename: string;
2276
2311
  originalFilename: string;
2277
- }[]>;
2278
- createdAt: string;
2279
- createdBy: string;
2312
+ }[] | undefined>;
2280
2313
  createdAtLocation: string;
2281
- metadata?: Record<string, string | number | boolean | {
2314
+ annotation?: Record<string, string | number | boolean | {
2282
2315
  type: string;
2283
2316
  filename: string;
2284
2317
  originalFilename: string;
@@ -2315,11 +2348,15 @@ export declare const EventDocument: z.ZodObject<{
2315
2348
  option: string;
2316
2349
  filename: string;
2317
2350
  originalFilename: string;
2318
- }[]> | undefined;
2351
+ }[] | undefined> | undefined;
2352
+ originalActionId?: string | undefined;
2319
2353
  }, {
2320
2354
  type: "NOTIFY";
2321
2355
  id: string;
2322
- data: Record<string, string | number | boolean | {
2356
+ status: "Rejected" | "Requested" | "Accepted";
2357
+ createdAt: string;
2358
+ createdBy: string;
2359
+ declaration: Record<string, string | number | boolean | {
2323
2360
  type: string;
2324
2361
  filename: string;
2325
2362
  originalFilename: string;
@@ -2356,11 +2393,9 @@ export declare const EventDocument: z.ZodObject<{
2356
2393
  option: string;
2357
2394
  filename: string;
2358
2395
  originalFilename: string;
2359
- }[]>;
2360
- createdAt: string;
2361
- createdBy: string;
2396
+ }[] | undefined>;
2362
2397
  createdAtLocation: string;
2363
- metadata?: Record<string, string | number | boolean | {
2398
+ annotation?: Record<string, string | number | boolean | {
2364
2399
  type: string;
2365
2400
  filename: string;
2366
2401
  originalFilename: string;
@@ -2397,12 +2432,13 @@ export declare const EventDocument: z.ZodObject<{
2397
2432
  option: string;
2398
2433
  filename: string;
2399
2434
  originalFilename: string;
2400
- }[]> | undefined;
2435
+ }[] | undefined> | undefined;
2436
+ originalActionId?: string | undefined;
2401
2437
  }>, z.ZodObject<z.objectUtil.extendShape<{
2402
2438
  id: z.ZodString;
2403
2439
  createdAt: z.ZodString;
2404
2440
  createdBy: z.ZodString;
2405
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2441
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2406
2442
  filename: z.ZodString;
2407
2443
  originalFilename: z.ZodString;
2408
2444
  type: z.ZodString;
@@ -2485,7 +2521,7 @@ export declare const EventDocument: z.ZodObject<{
2485
2521
  province: string;
2486
2522
  urbanOrRural: "RURAL";
2487
2523
  village?: string | null | undefined;
2488
- }>, z.ZodObject<{
2524
+ }>, z.ZodUndefined, z.ZodObject<{
2489
2525
  country: z.ZodString;
2490
2526
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2491
2527
  state: z.ZodString;
@@ -2516,7 +2552,7 @@ export declare const EventDocument: z.ZodObject<{
2516
2552
  addressLine3?: string | null | undefined;
2517
2553
  postcodeOrZip?: string | null | undefined;
2518
2554
  }>]>>;
2519
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2555
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2520
2556
  filename: z.ZodString;
2521
2557
  originalFilename: z.ZodString;
2522
2558
  type: z.ZodString;
@@ -2599,7 +2635,7 @@ export declare const EventDocument: z.ZodObject<{
2599
2635
  province: string;
2600
2636
  urbanOrRural: "RURAL";
2601
2637
  village?: string | null | undefined;
2602
- }>, z.ZodObject<{
2638
+ }>, z.ZodUndefined, z.ZodObject<{
2603
2639
  country: z.ZodString;
2604
2640
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2605
2641
  state: z.ZodString;
@@ -2631,22 +2667,18 @@ export declare const EventDocument: z.ZodObject<{
2631
2667
  postcodeOrZip?: string | null | undefined;
2632
2668
  }>]>>>;
2633
2669
  createdAtLocation: z.ZodString;
2670
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2671
+ originalActionId: z.ZodOptional<z.ZodString>;
2634
2672
  }, {
2635
2673
  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
- }>;
2674
+ registrationNumber: z.ZodOptional<z.ZodString>;
2646
2675
  }>, "strip", z.ZodTypeAny, {
2647
2676
  type: "REGISTER";
2648
2677
  id: string;
2649
- data: Record<string, string | number | boolean | {
2678
+ status: "Rejected" | "Requested" | "Accepted";
2679
+ createdAt: string;
2680
+ createdBy: string;
2681
+ declaration: Record<string, string | number | boolean | {
2650
2682
  type: string;
2651
2683
  filename: string;
2652
2684
  originalFilename: string;
@@ -2683,15 +2715,9 @@ export declare const EventDocument: z.ZodObject<{
2683
2715
  option: string;
2684
2716
  filename: string;
2685
2717
  originalFilename: string;
2686
- }[]>;
2687
- createdAt: string;
2688
- createdBy: string;
2718
+ }[] | undefined>;
2689
2719
  createdAtLocation: string;
2690
- identifiers: {
2691
- trackingId: string;
2692
- registrationNumber: string;
2693
- };
2694
- metadata?: Record<string, string | number | boolean | {
2720
+ annotation?: Record<string, string | number | boolean | {
2695
2721
  type: string;
2696
2722
  filename: string;
2697
2723
  originalFilename: string;
@@ -2728,11 +2754,16 @@ export declare const EventDocument: z.ZodObject<{
2728
2754
  option: string;
2729
2755
  filename: string;
2730
2756
  originalFilename: string;
2731
- }[]> | undefined;
2757
+ }[] | undefined> | undefined;
2758
+ originalActionId?: string | undefined;
2759
+ registrationNumber?: string | undefined;
2732
2760
  }, {
2733
2761
  type: "REGISTER";
2734
2762
  id: string;
2735
- data: Record<string, string | number | boolean | {
2763
+ status: "Rejected" | "Requested" | "Accepted";
2764
+ createdAt: string;
2765
+ createdBy: string;
2766
+ declaration: Record<string, string | number | boolean | {
2736
2767
  type: string;
2737
2768
  filename: string;
2738
2769
  originalFilename: string;
@@ -2769,15 +2800,9 @@ export declare const EventDocument: z.ZodObject<{
2769
2800
  option: string;
2770
2801
  filename: string;
2771
2802
  originalFilename: string;
2772
- }[]>;
2773
- createdAt: string;
2774
- createdBy: string;
2803
+ }[] | undefined>;
2775
2804
  createdAtLocation: string;
2776
- identifiers: {
2777
- trackingId: string;
2778
- registrationNumber: string;
2779
- };
2780
- metadata?: Record<string, string | number | boolean | {
2805
+ annotation?: Record<string, string | number | boolean | {
2781
2806
  type: string;
2782
2807
  filename: string;
2783
2808
  originalFilename: string;
@@ -2814,12 +2839,14 @@ export declare const EventDocument: z.ZodObject<{
2814
2839
  option: string;
2815
2840
  filename: string;
2816
2841
  originalFilename: string;
2817
- }[]> | undefined;
2842
+ }[] | undefined> | undefined;
2843
+ originalActionId?: string | undefined;
2844
+ registrationNumber?: string | undefined;
2818
2845
  }>, z.ZodObject<z.objectUtil.extendShape<{
2819
2846
  id: z.ZodString;
2820
2847
  createdAt: z.ZodString;
2821
2848
  createdBy: z.ZodString;
2822
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2849
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2823
2850
  filename: z.ZodString;
2824
2851
  originalFilename: z.ZodString;
2825
2852
  type: z.ZodString;
@@ -2902,7 +2929,7 @@ export declare const EventDocument: z.ZodObject<{
2902
2929
  province: string;
2903
2930
  urbanOrRural: "RURAL";
2904
2931
  village?: string | null | undefined;
2905
- }>, z.ZodObject<{
2932
+ }>, z.ZodUndefined, z.ZodObject<{
2906
2933
  country: z.ZodString;
2907
2934
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2908
2935
  state: z.ZodString;
@@ -2933,7 +2960,7 @@ export declare const EventDocument: z.ZodObject<{
2933
2960
  addressLine3?: string | null | undefined;
2934
2961
  postcodeOrZip?: string | null | undefined;
2935
2962
  }>]>>;
2936
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2963
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2937
2964
  filename: z.ZodString;
2938
2965
  originalFilename: z.ZodString;
2939
2966
  type: z.ZodString;
@@ -3016,7 +3043,7 @@ export declare const EventDocument: z.ZodObject<{
3016
3043
  province: string;
3017
3044
  urbanOrRural: "RURAL";
3018
3045
  village?: string | null | undefined;
3019
- }>, z.ZodObject<{
3046
+ }>, z.ZodUndefined, z.ZodObject<{
3020
3047
  country: z.ZodString;
3021
3048
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3022
3049
  state: z.ZodString;
@@ -3048,12 +3075,17 @@ export declare const EventDocument: z.ZodObject<{
3048
3075
  postcodeOrZip?: string | null | undefined;
3049
3076
  }>]>>>;
3050
3077
  createdAtLocation: z.ZodString;
3078
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3079
+ originalActionId: z.ZodOptional<z.ZodString>;
3051
3080
  }, {
3052
3081
  type: z.ZodLiteral<"DECLARE">;
3053
3082
  }>, "strip", z.ZodTypeAny, {
3054
3083
  type: "DECLARE";
3055
3084
  id: string;
3056
- data: Record<string, string | number | boolean | {
3085
+ status: "Rejected" | "Requested" | "Accepted";
3086
+ createdAt: string;
3087
+ createdBy: string;
3088
+ declaration: Record<string, string | number | boolean | {
3057
3089
  type: string;
3058
3090
  filename: string;
3059
3091
  originalFilename: string;
@@ -3090,11 +3122,9 @@ export declare const EventDocument: z.ZodObject<{
3090
3122
  option: string;
3091
3123
  filename: string;
3092
3124
  originalFilename: string;
3093
- }[]>;
3094
- createdAt: string;
3095
- createdBy: string;
3125
+ }[] | undefined>;
3096
3126
  createdAtLocation: string;
3097
- metadata?: Record<string, string | number | boolean | {
3127
+ annotation?: Record<string, string | number | boolean | {
3098
3128
  type: string;
3099
3129
  filename: string;
3100
3130
  originalFilename: string;
@@ -3131,11 +3161,15 @@ export declare const EventDocument: z.ZodObject<{
3131
3161
  option: string;
3132
3162
  filename: string;
3133
3163
  originalFilename: string;
3134
- }[]> | undefined;
3164
+ }[] | undefined> | undefined;
3165
+ originalActionId?: string | undefined;
3135
3166
  }, {
3136
3167
  type: "DECLARE";
3137
3168
  id: string;
3138
- data: Record<string, string | number | boolean | {
3169
+ status: "Rejected" | "Requested" | "Accepted";
3170
+ createdAt: string;
3171
+ createdBy: string;
3172
+ declaration: Record<string, string | number | boolean | {
3139
3173
  type: string;
3140
3174
  filename: string;
3141
3175
  originalFilename: string;
@@ -3172,11 +3206,9 @@ export declare const EventDocument: z.ZodObject<{
3172
3206
  option: string;
3173
3207
  filename: string;
3174
3208
  originalFilename: string;
3175
- }[]>;
3176
- createdAt: string;
3177
- createdBy: string;
3209
+ }[] | undefined>;
3178
3210
  createdAtLocation: string;
3179
- metadata?: Record<string, string | number | boolean | {
3211
+ annotation?: Record<string, string | number | boolean | {
3180
3212
  type: string;
3181
3213
  filename: string;
3182
3214
  originalFilename: string;
@@ -3213,12 +3245,13 @@ export declare const EventDocument: z.ZodObject<{
3213
3245
  option: string;
3214
3246
  filename: string;
3215
3247
  originalFilename: string;
3216
- }[]> | undefined;
3248
+ }[] | undefined> | undefined;
3249
+ originalActionId?: string | undefined;
3217
3250
  }>, z.ZodObject<z.objectUtil.extendShape<{
3218
3251
  id: z.ZodString;
3219
3252
  createdAt: z.ZodString;
3220
3253
  createdBy: z.ZodString;
3221
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3254
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3222
3255
  filename: z.ZodString;
3223
3256
  originalFilename: z.ZodString;
3224
3257
  type: z.ZodString;
@@ -3301,7 +3334,7 @@ export declare const EventDocument: z.ZodObject<{
3301
3334
  province: string;
3302
3335
  urbanOrRural: "RURAL";
3303
3336
  village?: string | null | undefined;
3304
- }>, z.ZodObject<{
3337
+ }>, z.ZodUndefined, z.ZodObject<{
3305
3338
  country: z.ZodString;
3306
3339
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3307
3340
  state: z.ZodString;
@@ -3332,7 +3365,7 @@ export declare const EventDocument: z.ZodObject<{
3332
3365
  addressLine3?: string | null | undefined;
3333
3366
  postcodeOrZip?: string | null | undefined;
3334
3367
  }>]>>;
3335
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3368
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3336
3369
  filename: z.ZodString;
3337
3370
  originalFilename: z.ZodString;
3338
3371
  type: z.ZodString;
@@ -3415,7 +3448,7 @@ export declare const EventDocument: z.ZodObject<{
3415
3448
  province: string;
3416
3449
  urbanOrRural: "RURAL";
3417
3450
  village?: string | null | undefined;
3418
- }>, z.ZodObject<{
3451
+ }>, z.ZodUndefined, z.ZodObject<{
3419
3452
  country: z.ZodString;
3420
3453
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3421
3454
  state: z.ZodString;
@@ -3447,13 +3480,18 @@ export declare const EventDocument: z.ZodObject<{
3447
3480
  postcodeOrZip?: string | null | undefined;
3448
3481
  }>]>>>;
3449
3482
  createdAtLocation: z.ZodString;
3483
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3484
+ originalActionId: z.ZodOptional<z.ZodString>;
3450
3485
  }, {
3451
3486
  type: z.ZodLiteral<"ASSIGN">;
3452
3487
  assignedTo: z.ZodString;
3453
3488
  }>, "strip", z.ZodTypeAny, {
3454
3489
  type: "ASSIGN";
3455
3490
  id: string;
3456
- data: Record<string, string | number | boolean | {
3491
+ status: "Rejected" | "Requested" | "Accepted";
3492
+ createdAt: string;
3493
+ createdBy: string;
3494
+ declaration: Record<string, string | number | boolean | {
3457
3495
  type: string;
3458
3496
  filename: string;
3459
3497
  originalFilename: string;
@@ -3490,12 +3528,10 @@ export declare const EventDocument: z.ZodObject<{
3490
3528
  option: string;
3491
3529
  filename: string;
3492
3530
  originalFilename: string;
3493
- }[]>;
3494
- createdAt: string;
3495
- createdBy: string;
3531
+ }[] | undefined>;
3496
3532
  createdAtLocation: string;
3497
3533
  assignedTo: string;
3498
- metadata?: Record<string, string | number | boolean | {
3534
+ annotation?: Record<string, string | number | boolean | {
3499
3535
  type: string;
3500
3536
  filename: string;
3501
3537
  originalFilename: string;
@@ -3532,11 +3568,15 @@ export declare const EventDocument: z.ZodObject<{
3532
3568
  option: string;
3533
3569
  filename: string;
3534
3570
  originalFilename: string;
3535
- }[]> | undefined;
3571
+ }[] | undefined> | undefined;
3572
+ originalActionId?: string | undefined;
3536
3573
  }, {
3537
3574
  type: "ASSIGN";
3538
3575
  id: string;
3539
- data: Record<string, string | number | boolean | {
3576
+ status: "Rejected" | "Requested" | "Accepted";
3577
+ createdAt: string;
3578
+ createdBy: string;
3579
+ declaration: Record<string, string | number | boolean | {
3540
3580
  type: string;
3541
3581
  filename: string;
3542
3582
  originalFilename: string;
@@ -3573,12 +3613,10 @@ export declare const EventDocument: z.ZodObject<{
3573
3613
  option: string;
3574
3614
  filename: string;
3575
3615
  originalFilename: string;
3576
- }[]>;
3577
- createdAt: string;
3578
- createdBy: string;
3616
+ }[] | undefined>;
3579
3617
  createdAtLocation: string;
3580
3618
  assignedTo: string;
3581
- metadata?: Record<string, string | number | boolean | {
3619
+ annotation?: Record<string, string | number | boolean | {
3582
3620
  type: string;
3583
3621
  filename: string;
3584
3622
  originalFilename: string;
@@ -3615,12 +3653,13 @@ export declare const EventDocument: z.ZodObject<{
3615
3653
  option: string;
3616
3654
  filename: string;
3617
3655
  originalFilename: string;
3618
- }[]> | undefined;
3656
+ }[] | undefined> | undefined;
3657
+ originalActionId?: string | undefined;
3619
3658
  }>, z.ZodObject<z.objectUtil.extendShape<{
3620
3659
  id: z.ZodString;
3621
3660
  createdAt: z.ZodString;
3622
3661
  createdBy: z.ZodString;
3623
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3662
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3624
3663
  filename: z.ZodString;
3625
3664
  originalFilename: z.ZodString;
3626
3665
  type: z.ZodString;
@@ -3703,7 +3742,7 @@ export declare const EventDocument: z.ZodObject<{
3703
3742
  province: string;
3704
3743
  urbanOrRural: "RURAL";
3705
3744
  village?: string | null | undefined;
3706
- }>, z.ZodObject<{
3745
+ }>, z.ZodUndefined, z.ZodObject<{
3707
3746
  country: z.ZodString;
3708
3747
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3709
3748
  state: z.ZodString;
@@ -3734,7 +3773,7 @@ export declare const EventDocument: z.ZodObject<{
3734
3773
  addressLine3?: string | null | undefined;
3735
3774
  postcodeOrZip?: string | null | undefined;
3736
3775
  }>]>>;
3737
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3776
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3738
3777
  filename: z.ZodString;
3739
3778
  originalFilename: z.ZodString;
3740
3779
  type: z.ZodString;
@@ -3817,7 +3856,7 @@ export declare const EventDocument: z.ZodObject<{
3817
3856
  province: string;
3818
3857
  urbanOrRural: "RURAL";
3819
3858
  village?: string | null | undefined;
3820
- }>, z.ZodObject<{
3859
+ }>, z.ZodUndefined, z.ZodObject<{
3821
3860
  country: z.ZodString;
3822
3861
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3823
3862
  state: z.ZodString;
@@ -3849,12 +3888,17 @@ export declare const EventDocument: z.ZodObject<{
3849
3888
  postcodeOrZip?: string | null | undefined;
3850
3889
  }>]>>>;
3851
3890
  createdAtLocation: z.ZodString;
3891
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3892
+ originalActionId: z.ZodOptional<z.ZodString>;
3852
3893
  }, {
3853
3894
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
3854
3895
  }>, "strip", z.ZodTypeAny, {
3855
3896
  type: "REQUEST_CORRECTION";
3856
3897
  id: string;
3857
- data: Record<string, string | number | boolean | {
3898
+ status: "Rejected" | "Requested" | "Accepted";
3899
+ createdAt: string;
3900
+ createdBy: string;
3901
+ declaration: Record<string, string | number | boolean | {
3858
3902
  type: string;
3859
3903
  filename: string;
3860
3904
  originalFilename: string;
@@ -3891,11 +3935,9 @@ export declare const EventDocument: z.ZodObject<{
3891
3935
  option: string;
3892
3936
  filename: string;
3893
3937
  originalFilename: string;
3894
- }[]>;
3895
- createdAt: string;
3896
- createdBy: string;
3938
+ }[] | undefined>;
3897
3939
  createdAtLocation: string;
3898
- metadata?: Record<string, string | number | boolean | {
3940
+ annotation?: Record<string, string | number | boolean | {
3899
3941
  type: string;
3900
3942
  filename: string;
3901
3943
  originalFilename: string;
@@ -3932,11 +3974,15 @@ export declare const EventDocument: z.ZodObject<{
3932
3974
  option: string;
3933
3975
  filename: string;
3934
3976
  originalFilename: string;
3935
- }[]> | undefined;
3977
+ }[] | undefined> | undefined;
3978
+ originalActionId?: string | undefined;
3936
3979
  }, {
3937
3980
  type: "REQUEST_CORRECTION";
3938
3981
  id: string;
3939
- data: Record<string, string | number | boolean | {
3982
+ status: "Rejected" | "Requested" | "Accepted";
3983
+ createdAt: string;
3984
+ createdBy: string;
3985
+ declaration: Record<string, string | number | boolean | {
3940
3986
  type: string;
3941
3987
  filename: string;
3942
3988
  originalFilename: string;
@@ -3973,11 +4019,9 @@ export declare const EventDocument: z.ZodObject<{
3973
4019
  option: string;
3974
4020
  filename: string;
3975
4021
  originalFilename: string;
3976
- }[]>;
3977
- createdAt: string;
3978
- createdBy: string;
4022
+ }[] | undefined>;
3979
4023
  createdAtLocation: string;
3980
- metadata?: Record<string, string | number | boolean | {
4024
+ annotation?: Record<string, string | number | boolean | {
3981
4025
  type: string;
3982
4026
  filename: string;
3983
4027
  originalFilename: string;
@@ -4014,12 +4058,13 @@ export declare const EventDocument: z.ZodObject<{
4014
4058
  option: string;
4015
4059
  filename: string;
4016
4060
  originalFilename: string;
4017
- }[]> | undefined;
4061
+ }[] | undefined> | undefined;
4062
+ originalActionId?: string | undefined;
4018
4063
  }>, z.ZodObject<z.objectUtil.extendShape<{
4019
4064
  id: z.ZodString;
4020
4065
  createdAt: z.ZodString;
4021
4066
  createdBy: z.ZodString;
4022
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4067
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4023
4068
  filename: z.ZodString;
4024
4069
  originalFilename: z.ZodString;
4025
4070
  type: z.ZodString;
@@ -4102,7 +4147,7 @@ export declare const EventDocument: z.ZodObject<{
4102
4147
  province: string;
4103
4148
  urbanOrRural: "RURAL";
4104
4149
  village?: string | null | undefined;
4105
- }>, z.ZodObject<{
4150
+ }>, z.ZodUndefined, z.ZodObject<{
4106
4151
  country: z.ZodString;
4107
4152
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4108
4153
  state: z.ZodString;
@@ -4133,7 +4178,7 @@ export declare const EventDocument: z.ZodObject<{
4133
4178
  addressLine3?: string | null | undefined;
4134
4179
  postcodeOrZip?: string | null | undefined;
4135
4180
  }>]>>;
4136
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4181
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4137
4182
  filename: z.ZodString;
4138
4183
  originalFilename: z.ZodString;
4139
4184
  type: z.ZodString;
@@ -4216,7 +4261,7 @@ export declare const EventDocument: z.ZodObject<{
4216
4261
  province: string;
4217
4262
  urbanOrRural: "RURAL";
4218
4263
  village?: string | null | undefined;
4219
- }>, z.ZodObject<{
4264
+ }>, z.ZodUndefined, z.ZodObject<{
4220
4265
  country: z.ZodString;
4221
4266
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4222
4267
  state: z.ZodString;
@@ -4248,13 +4293,18 @@ export declare const EventDocument: z.ZodObject<{
4248
4293
  postcodeOrZip?: string | null | undefined;
4249
4294
  }>]>>>;
4250
4295
  createdAtLocation: z.ZodString;
4296
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4297
+ originalActionId: z.ZodOptional<z.ZodString>;
4251
4298
  }, {
4252
4299
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
4253
4300
  requestId: z.ZodString;
4254
4301
  }>, "strip", z.ZodTypeAny, {
4255
4302
  type: "APPROVE_CORRECTION";
4256
4303
  id: string;
4257
- data: Record<string, string | number | boolean | {
4304
+ status: "Rejected" | "Requested" | "Accepted";
4305
+ createdAt: string;
4306
+ createdBy: string;
4307
+ declaration: Record<string, string | number | boolean | {
4258
4308
  type: string;
4259
4309
  filename: string;
4260
4310
  originalFilename: string;
@@ -4291,12 +4341,10 @@ export declare const EventDocument: z.ZodObject<{
4291
4341
  option: string;
4292
4342
  filename: string;
4293
4343
  originalFilename: string;
4294
- }[]>;
4295
- createdAt: string;
4296
- createdBy: string;
4344
+ }[] | undefined>;
4297
4345
  createdAtLocation: string;
4298
4346
  requestId: string;
4299
- metadata?: Record<string, string | number | boolean | {
4347
+ annotation?: Record<string, string | number | boolean | {
4300
4348
  type: string;
4301
4349
  filename: string;
4302
4350
  originalFilename: string;
@@ -4333,11 +4381,15 @@ export declare const EventDocument: z.ZodObject<{
4333
4381
  option: string;
4334
4382
  filename: string;
4335
4383
  originalFilename: string;
4336
- }[]> | undefined;
4384
+ }[] | undefined> | undefined;
4385
+ originalActionId?: string | undefined;
4337
4386
  }, {
4338
4387
  type: "APPROVE_CORRECTION";
4339
4388
  id: string;
4340
- data: Record<string, string | number | boolean | {
4389
+ status: "Rejected" | "Requested" | "Accepted";
4390
+ createdAt: string;
4391
+ createdBy: string;
4392
+ declaration: Record<string, string | number | boolean | {
4341
4393
  type: string;
4342
4394
  filename: string;
4343
4395
  originalFilename: string;
@@ -4374,12 +4426,10 @@ export declare const EventDocument: z.ZodObject<{
4374
4426
  option: string;
4375
4427
  filename: string;
4376
4428
  originalFilename: string;
4377
- }[]>;
4378
- createdAt: string;
4379
- createdBy: string;
4429
+ }[] | undefined>;
4380
4430
  createdAtLocation: string;
4381
4431
  requestId: string;
4382
- metadata?: Record<string, string | number | boolean | {
4432
+ annotation?: Record<string, string | number | boolean | {
4383
4433
  type: string;
4384
4434
  filename: string;
4385
4435
  originalFilename: string;
@@ -4416,12 +4466,13 @@ export declare const EventDocument: z.ZodObject<{
4416
4466
  option: string;
4417
4467
  filename: string;
4418
4468
  originalFilename: string;
4419
- }[]> | undefined;
4469
+ }[] | undefined> | undefined;
4470
+ originalActionId?: string | undefined;
4420
4471
  }>, z.ZodObject<z.objectUtil.extendShape<{
4421
4472
  id: z.ZodString;
4422
4473
  createdAt: z.ZodString;
4423
4474
  createdBy: z.ZodString;
4424
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4475
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4425
4476
  filename: z.ZodString;
4426
4477
  originalFilename: z.ZodString;
4427
4478
  type: z.ZodString;
@@ -4504,7 +4555,7 @@ export declare const EventDocument: z.ZodObject<{
4504
4555
  province: string;
4505
4556
  urbanOrRural: "RURAL";
4506
4557
  village?: string | null | undefined;
4507
- }>, z.ZodObject<{
4558
+ }>, z.ZodUndefined, z.ZodObject<{
4508
4559
  country: z.ZodString;
4509
4560
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4510
4561
  state: z.ZodString;
@@ -4535,7 +4586,7 @@ export declare const EventDocument: z.ZodObject<{
4535
4586
  addressLine3?: string | null | undefined;
4536
4587
  postcodeOrZip?: string | null | undefined;
4537
4588
  }>]>>;
4538
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4589
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4539
4590
  filename: z.ZodString;
4540
4591
  originalFilename: z.ZodString;
4541
4592
  type: z.ZodString;
@@ -4618,7 +4669,7 @@ export declare const EventDocument: z.ZodObject<{
4618
4669
  province: string;
4619
4670
  urbanOrRural: "RURAL";
4620
4671
  village?: string | null | undefined;
4621
- }>, z.ZodObject<{
4672
+ }>, z.ZodUndefined, z.ZodObject<{
4622
4673
  country: z.ZodString;
4623
4674
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4624
4675
  state: z.ZodString;
@@ -4650,13 +4701,18 @@ export declare const EventDocument: z.ZodObject<{
4650
4701
  postcodeOrZip?: string | null | undefined;
4651
4702
  }>]>>>;
4652
4703
  createdAtLocation: z.ZodString;
4704
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4705
+ originalActionId: z.ZodOptional<z.ZodString>;
4653
4706
  }, {
4654
4707
  type: z.ZodLiteral<"REJECT_CORRECTION">;
4655
4708
  requestId: z.ZodString;
4656
4709
  }>, "strip", z.ZodTypeAny, {
4657
4710
  type: "REJECT_CORRECTION";
4658
4711
  id: string;
4659
- data: Record<string, string | number | boolean | {
4712
+ status: "Rejected" | "Requested" | "Accepted";
4713
+ createdAt: string;
4714
+ createdBy: string;
4715
+ declaration: Record<string, string | number | boolean | {
4660
4716
  type: string;
4661
4717
  filename: string;
4662
4718
  originalFilename: string;
@@ -4693,12 +4749,10 @@ export declare const EventDocument: z.ZodObject<{
4693
4749
  option: string;
4694
4750
  filename: string;
4695
4751
  originalFilename: string;
4696
- }[]>;
4697
- createdAt: string;
4698
- createdBy: string;
4752
+ }[] | undefined>;
4699
4753
  createdAtLocation: string;
4700
4754
  requestId: string;
4701
- metadata?: Record<string, string | number | boolean | {
4755
+ annotation?: Record<string, string | number | boolean | {
4702
4756
  type: string;
4703
4757
  filename: string;
4704
4758
  originalFilename: string;
@@ -4735,11 +4789,15 @@ export declare const EventDocument: z.ZodObject<{
4735
4789
  option: string;
4736
4790
  filename: string;
4737
4791
  originalFilename: string;
4738
- }[]> | undefined;
4792
+ }[] | undefined> | undefined;
4793
+ originalActionId?: string | undefined;
4739
4794
  }, {
4740
4795
  type: "REJECT_CORRECTION";
4741
4796
  id: string;
4742
- data: Record<string, string | number | boolean | {
4797
+ status: "Rejected" | "Requested" | "Accepted";
4798
+ createdAt: string;
4799
+ createdBy: string;
4800
+ declaration: Record<string, string | number | boolean | {
4743
4801
  type: string;
4744
4802
  filename: string;
4745
4803
  originalFilename: string;
@@ -4776,12 +4834,10 @@ export declare const EventDocument: z.ZodObject<{
4776
4834
  option: string;
4777
4835
  filename: string;
4778
4836
  originalFilename: string;
4779
- }[]>;
4780
- createdAt: string;
4781
- createdBy: string;
4837
+ }[] | undefined>;
4782
4838
  createdAtLocation: string;
4783
4839
  requestId: string;
4784
- metadata?: Record<string, string | number | boolean | {
4840
+ annotation?: Record<string, string | number | boolean | {
4785
4841
  type: string;
4786
4842
  filename: string;
4787
4843
  originalFilename: string;
@@ -4818,12 +4874,13 @@ export declare const EventDocument: z.ZodObject<{
4818
4874
  option: string;
4819
4875
  filename: string;
4820
4876
  originalFilename: string;
4821
- }[]> | undefined;
4877
+ }[] | undefined> | undefined;
4878
+ originalActionId?: string | undefined;
4822
4879
  }>, z.ZodObject<z.objectUtil.extendShape<{
4823
4880
  id: z.ZodString;
4824
4881
  createdAt: z.ZodString;
4825
4882
  createdBy: z.ZodString;
4826
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4883
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4827
4884
  filename: z.ZodString;
4828
4885
  originalFilename: z.ZodString;
4829
4886
  type: z.ZodString;
@@ -4906,7 +4963,7 @@ export declare const EventDocument: z.ZodObject<{
4906
4963
  province: string;
4907
4964
  urbanOrRural: "RURAL";
4908
4965
  village?: string | null | undefined;
4909
- }>, z.ZodObject<{
4966
+ }>, z.ZodUndefined, z.ZodObject<{
4910
4967
  country: z.ZodString;
4911
4968
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4912
4969
  state: z.ZodString;
@@ -4937,7 +4994,7 @@ export declare const EventDocument: z.ZodObject<{
4937
4994
  addressLine3?: string | null | undefined;
4938
4995
  postcodeOrZip?: string | null | undefined;
4939
4996
  }>]>>;
4940
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4997
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4941
4998
  filename: z.ZodString;
4942
4999
  originalFilename: z.ZodString;
4943
5000
  type: z.ZodString;
@@ -5020,7 +5077,7 @@ export declare const EventDocument: z.ZodObject<{
5020
5077
  province: string;
5021
5078
  urbanOrRural: "RURAL";
5022
5079
  village?: string | null | undefined;
5023
- }>, z.ZodObject<{
5080
+ }>, z.ZodUndefined, z.ZodObject<{
5024
5081
  country: z.ZodString;
5025
5082
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5026
5083
  state: z.ZodString;
@@ -5052,12 +5109,18 @@ export declare const EventDocument: z.ZodObject<{
5052
5109
  postcodeOrZip?: string | null | undefined;
5053
5110
  }>]>>>;
5054
5111
  createdAtLocation: z.ZodString;
5112
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5113
+ originalActionId: z.ZodOptional<z.ZodString>;
5055
5114
  }, {
5056
5115
  type: z.ZodLiteral<"UNASSIGN">;
5116
+ assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
5057
5117
  }>, "strip", z.ZodTypeAny, {
5058
5118
  type: "UNASSIGN";
5059
5119
  id: string;
5060
- data: Record<string, string | number | boolean | {
5120
+ status: "Rejected" | "Requested" | "Accepted";
5121
+ createdAt: string;
5122
+ createdBy: string;
5123
+ declaration: Record<string, string | number | boolean | {
5061
5124
  type: string;
5062
5125
  filename: string;
5063
5126
  originalFilename: string;
@@ -5094,11 +5157,10 @@ export declare const EventDocument: z.ZodObject<{
5094
5157
  option: string;
5095
5158
  filename: string;
5096
5159
  originalFilename: string;
5097
- }[]>;
5098
- createdAt: string;
5099
- createdBy: string;
5160
+ }[] | undefined>;
5100
5161
  createdAtLocation: string;
5101
- metadata?: Record<string, string | number | boolean | {
5162
+ assignedTo: null;
5163
+ annotation?: Record<string, string | number | boolean | {
5102
5164
  type: string;
5103
5165
  filename: string;
5104
5166
  originalFilename: string;
@@ -5135,11 +5197,15 @@ export declare const EventDocument: z.ZodObject<{
5135
5197
  option: string;
5136
5198
  filename: string;
5137
5199
  originalFilename: string;
5138
- }[]> | undefined;
5200
+ }[] | undefined> | undefined;
5201
+ originalActionId?: string | undefined;
5139
5202
  }, {
5140
5203
  type: "UNASSIGN";
5141
5204
  id: string;
5142
- data: Record<string, string | number | boolean | {
5205
+ status: "Rejected" | "Requested" | "Accepted";
5206
+ createdAt: string;
5207
+ createdBy: string;
5208
+ declaration: Record<string, string | number | boolean | {
5143
5209
  type: string;
5144
5210
  filename: string;
5145
5211
  originalFilename: string;
@@ -5176,11 +5242,9 @@ export declare const EventDocument: z.ZodObject<{
5176
5242
  option: string;
5177
5243
  filename: string;
5178
5244
  originalFilename: string;
5179
- }[]>;
5180
- createdAt: string;
5181
- createdBy: string;
5245
+ }[] | undefined>;
5182
5246
  createdAtLocation: string;
5183
- metadata?: Record<string, string | number | boolean | {
5247
+ annotation?: Record<string, string | number | boolean | {
5184
5248
  type: string;
5185
5249
  filename: string;
5186
5250
  originalFilename: string;
@@ -5217,12 +5281,14 @@ export declare const EventDocument: z.ZodObject<{
5217
5281
  option: string;
5218
5282
  filename: string;
5219
5283
  originalFilename: string;
5220
- }[]> | undefined;
5284
+ }[] | undefined> | undefined;
5285
+ originalActionId?: string | undefined;
5286
+ assignedTo?: null | undefined;
5221
5287
  }>, z.ZodObject<z.objectUtil.extendShape<{
5222
5288
  id: z.ZodString;
5223
5289
  createdAt: z.ZodString;
5224
5290
  createdBy: z.ZodString;
5225
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5291
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5226
5292
  filename: z.ZodString;
5227
5293
  originalFilename: z.ZodString;
5228
5294
  type: z.ZodString;
@@ -5305,7 +5371,7 @@ export declare const EventDocument: z.ZodObject<{
5305
5371
  province: string;
5306
5372
  urbanOrRural: "RURAL";
5307
5373
  village?: string | null | undefined;
5308
- }>, z.ZodObject<{
5374
+ }>, z.ZodUndefined, z.ZodObject<{
5309
5375
  country: z.ZodString;
5310
5376
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5311
5377
  state: z.ZodString;
@@ -5336,7 +5402,7 @@ export declare const EventDocument: z.ZodObject<{
5336
5402
  addressLine3?: string | null | undefined;
5337
5403
  postcodeOrZip?: string | null | undefined;
5338
5404
  }>]>>;
5339
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5405
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5340
5406
  filename: z.ZodString;
5341
5407
  originalFilename: z.ZodString;
5342
5408
  type: z.ZodString;
@@ -5419,7 +5485,7 @@ export declare const EventDocument: z.ZodObject<{
5419
5485
  province: string;
5420
5486
  urbanOrRural: "RURAL";
5421
5487
  village?: string | null | undefined;
5422
- }>, z.ZodObject<{
5488
+ }>, z.ZodUndefined, z.ZodObject<{
5423
5489
  country: z.ZodString;
5424
5490
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5425
5491
  state: z.ZodString;
@@ -5451,12 +5517,17 @@ export declare const EventDocument: z.ZodObject<{
5451
5517
  postcodeOrZip?: string | null | undefined;
5452
5518
  }>]>>>;
5453
5519
  createdAtLocation: z.ZodString;
5520
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5521
+ originalActionId: z.ZodOptional<z.ZodString>;
5454
5522
  }, {
5455
5523
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
5456
5524
  }>, "strip", z.ZodTypeAny, {
5457
5525
  type: "PRINT_CERTIFICATE";
5458
5526
  id: string;
5459
- data: Record<string, string | number | boolean | {
5527
+ status: "Rejected" | "Requested" | "Accepted";
5528
+ createdAt: string;
5529
+ createdBy: string;
5530
+ declaration: Record<string, string | number | boolean | {
5460
5531
  type: string;
5461
5532
  filename: string;
5462
5533
  originalFilename: string;
@@ -5493,11 +5564,9 @@ export declare const EventDocument: z.ZodObject<{
5493
5564
  option: string;
5494
5565
  filename: string;
5495
5566
  originalFilename: string;
5496
- }[]>;
5497
- createdAt: string;
5498
- createdBy: string;
5567
+ }[] | undefined>;
5499
5568
  createdAtLocation: string;
5500
- metadata?: Record<string, string | number | boolean | {
5569
+ annotation?: Record<string, string | number | boolean | {
5501
5570
  type: string;
5502
5571
  filename: string;
5503
5572
  originalFilename: string;
@@ -5534,11 +5603,15 @@ export declare const EventDocument: z.ZodObject<{
5534
5603
  option: string;
5535
5604
  filename: string;
5536
5605
  originalFilename: string;
5537
- }[]> | undefined;
5606
+ }[] | undefined> | undefined;
5607
+ originalActionId?: string | undefined;
5538
5608
  }, {
5539
5609
  type: "PRINT_CERTIFICATE";
5540
5610
  id: string;
5541
- data: Record<string, string | number | boolean | {
5611
+ status: "Rejected" | "Requested" | "Accepted";
5612
+ createdAt: string;
5613
+ createdBy: string;
5614
+ declaration: Record<string, string | number | boolean | {
5542
5615
  type: string;
5543
5616
  filename: string;
5544
5617
  originalFilename: string;
@@ -5575,11 +5648,9 @@ export declare const EventDocument: z.ZodObject<{
5575
5648
  option: string;
5576
5649
  filename: string;
5577
5650
  originalFilename: string;
5578
- }[]>;
5579
- createdAt: string;
5580
- createdBy: string;
5651
+ }[] | undefined>;
5581
5652
  createdAtLocation: string;
5582
- metadata?: Record<string, string | number | boolean | {
5653
+ annotation?: Record<string, string | number | boolean | {
5583
5654
  type: string;
5584
5655
  filename: string;
5585
5656
  originalFilename: string;
@@ -5616,12 +5687,13 @@ export declare const EventDocument: z.ZodObject<{
5616
5687
  option: string;
5617
5688
  filename: string;
5618
5689
  originalFilename: string;
5619
- }[]> | undefined;
5690
+ }[] | undefined> | undefined;
5691
+ originalActionId?: string | undefined;
5620
5692
  }>, z.ZodObject<z.objectUtil.extendShape<{
5621
5693
  id: z.ZodString;
5622
5694
  createdAt: z.ZodString;
5623
5695
  createdBy: z.ZodString;
5624
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5696
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5625
5697
  filename: z.ZodString;
5626
5698
  originalFilename: z.ZodString;
5627
5699
  type: z.ZodString;
@@ -5704,7 +5776,7 @@ export declare const EventDocument: z.ZodObject<{
5704
5776
  province: string;
5705
5777
  urbanOrRural: "RURAL";
5706
5778
  village?: string | null | undefined;
5707
- }>, z.ZodObject<{
5779
+ }>, z.ZodUndefined, z.ZodObject<{
5708
5780
  country: z.ZodString;
5709
5781
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5710
5782
  state: z.ZodString;
@@ -5735,7 +5807,7 @@ export declare const EventDocument: z.ZodObject<{
5735
5807
  addressLine3?: string | null | undefined;
5736
5808
  postcodeOrZip?: string | null | undefined;
5737
5809
  }>]>>;
5738
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5810
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5739
5811
  filename: z.ZodString;
5740
5812
  originalFilename: z.ZodString;
5741
5813
  type: z.ZodString;
@@ -5818,7 +5890,7 @@ export declare const EventDocument: z.ZodObject<{
5818
5890
  province: string;
5819
5891
  urbanOrRural: "RURAL";
5820
5892
  village?: string | null | undefined;
5821
- }>, z.ZodObject<{
5893
+ }>, z.ZodUndefined, z.ZodObject<{
5822
5894
  country: z.ZodString;
5823
5895
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5824
5896
  state: z.ZodString;
@@ -5850,12 +5922,17 @@ export declare const EventDocument: z.ZodObject<{
5850
5922
  postcodeOrZip?: string | null | undefined;
5851
5923
  }>]>>>;
5852
5924
  createdAtLocation: z.ZodString;
5925
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5926
+ originalActionId: z.ZodOptional<z.ZodString>;
5853
5927
  }, {
5854
- type: z.ZodLiteral<"CUSTOM">;
5928
+ type: z.ZodLiteral<"READ">;
5855
5929
  }>, "strip", z.ZodTypeAny, {
5856
- type: "CUSTOM";
5930
+ type: "READ";
5857
5931
  id: string;
5858
- data: Record<string, string | number | boolean | {
5932
+ status: "Rejected" | "Requested" | "Accepted";
5933
+ createdAt: string;
5934
+ createdBy: string;
5935
+ declaration: Record<string, string | number | boolean | {
5859
5936
  type: string;
5860
5937
  filename: string;
5861
5938
  originalFilename: string;
@@ -5892,11 +5969,9 @@ export declare const EventDocument: z.ZodObject<{
5892
5969
  option: string;
5893
5970
  filename: string;
5894
5971
  originalFilename: string;
5895
- }[]>;
5896
- createdAt: string;
5897
- createdBy: string;
5972
+ }[] | undefined>;
5898
5973
  createdAtLocation: string;
5899
- metadata?: Record<string, string | number | boolean | {
5974
+ annotation?: Record<string, string | number | boolean | {
5900
5975
  type: string;
5901
5976
  filename: string;
5902
5977
  originalFilename: string;
@@ -5933,11 +6008,15 @@ export declare const EventDocument: z.ZodObject<{
5933
6008
  option: string;
5934
6009
  filename: string;
5935
6010
  originalFilename: string;
5936
- }[]> | undefined;
6011
+ }[] | undefined> | undefined;
6012
+ originalActionId?: string | undefined;
5937
6013
  }, {
5938
- type: "CUSTOM";
6014
+ type: "READ";
5939
6015
  id: string;
5940
- data: Record<string, string | number | boolean | {
6016
+ status: "Rejected" | "Requested" | "Accepted";
6017
+ createdAt: string;
6018
+ createdBy: string;
6019
+ declaration: Record<string, string | number | boolean | {
5941
6020
  type: string;
5942
6021
  filename: string;
5943
6022
  originalFilename: string;
@@ -5974,11 +6053,9 @@ export declare const EventDocument: z.ZodObject<{
5974
6053
  option: string;
5975
6054
  filename: string;
5976
6055
  originalFilename: string;
5977
- }[]>;
5978
- createdAt: string;
5979
- createdBy: string;
6056
+ }[] | undefined>;
5980
6057
  createdAtLocation: string;
5981
- metadata?: Record<string, string | number | boolean | {
6058
+ annotation?: Record<string, string | number | boolean | {
5982
6059
  type: string;
5983
6060
  filename: string;
5984
6061
  originalFilename: string;
@@ -6015,19 +6092,272 @@ export declare const EventDocument: z.ZodObject<{
6015
6092
  option: string;
6016
6093
  filename: string;
6017
6094
  originalFilename: string;
6018
- }[]> | undefined;
6095
+ }[] | undefined> | undefined;
6096
+ originalActionId?: string | undefined;
6097
+ }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6098
+ id: z.ZodString;
6099
+ createdAt: z.ZodString;
6100
+ createdBy: z.ZodString;
6101
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6102
+ filename: z.ZodString;
6103
+ originalFilename: z.ZodString;
6104
+ type: z.ZodString;
6105
+ }, "strip", z.ZodTypeAny, {
6106
+ type: string;
6107
+ filename: string;
6108
+ originalFilename: string;
6109
+ }, {
6110
+ type: string;
6111
+ filename: string;
6112
+ originalFilename: string;
6113
+ }>, z.ZodArray<z.ZodObject<{
6114
+ filename: z.ZodString;
6115
+ originalFilename: z.ZodString;
6116
+ type: z.ZodString;
6117
+ option: z.ZodString;
6118
+ }, "strip", z.ZodTypeAny, {
6119
+ type: string;
6120
+ option: string;
6121
+ filename: string;
6122
+ originalFilename: string;
6123
+ }, {
6124
+ type: string;
6125
+ option: string;
6126
+ filename: string;
6127
+ originalFilename: string;
6128
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6129
+ country: z.ZodString;
6130
+ addressType: z.ZodLiteral<"DOMESTIC">;
6131
+ province: z.ZodString;
6132
+ district: z.ZodString;
6133
+ }, {
6134
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6135
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6136
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6137
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6138
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6139
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6140
+ }>, "strip", z.ZodTypeAny, {
6141
+ country: string;
6142
+ district: string;
6143
+ addressType: "DOMESTIC";
6144
+ province: string;
6145
+ urbanOrRural: "URBAN";
6146
+ number?: string | null | undefined;
6147
+ town?: string | null | undefined;
6148
+ residentialArea?: string | null | undefined;
6149
+ street?: string | null | undefined;
6150
+ zipCode?: string | null | undefined;
6151
+ }, {
6152
+ country: string;
6153
+ district: string;
6154
+ addressType: "DOMESTIC";
6155
+ province: string;
6156
+ urbanOrRural: "URBAN";
6157
+ number?: string | null | undefined;
6158
+ town?: string | null | undefined;
6159
+ residentialArea?: string | null | undefined;
6160
+ street?: string | null | undefined;
6161
+ zipCode?: string | null | undefined;
6162
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6163
+ country: z.ZodString;
6164
+ addressType: z.ZodLiteral<"DOMESTIC">;
6165
+ province: z.ZodString;
6166
+ district: z.ZodString;
6167
+ }, {
6168
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6169
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6170
+ }>, "strip", z.ZodTypeAny, {
6171
+ country: string;
6172
+ district: string;
6173
+ addressType: "DOMESTIC";
6174
+ province: string;
6175
+ urbanOrRural: "RURAL";
6176
+ village?: string | null | undefined;
6177
+ }, {
6178
+ country: string;
6179
+ district: string;
6180
+ addressType: "DOMESTIC";
6181
+ province: string;
6182
+ urbanOrRural: "RURAL";
6183
+ village?: string | null | undefined;
6184
+ }>, z.ZodUndefined, z.ZodObject<{
6185
+ country: z.ZodString;
6186
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6187
+ state: z.ZodString;
6188
+ district2: z.ZodString;
6189
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6190
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6191
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6192
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6193
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6194
+ }, "strip", z.ZodTypeAny, {
6195
+ country: string;
6196
+ state: string;
6197
+ addressType: "INTERNATIONAL";
6198
+ district2: string;
6199
+ cityOrTown?: string | null | undefined;
6200
+ addressLine1?: string | null | undefined;
6201
+ addressLine2?: string | null | undefined;
6202
+ addressLine3?: string | null | undefined;
6203
+ postcodeOrZip?: string | null | undefined;
6204
+ }, {
6205
+ country: string;
6206
+ state: string;
6207
+ addressType: "INTERNATIONAL";
6208
+ district2: string;
6209
+ cityOrTown?: string | null | undefined;
6210
+ addressLine1?: string | null | undefined;
6211
+ addressLine2?: string | null | undefined;
6212
+ addressLine3?: string | null | undefined;
6213
+ postcodeOrZip?: string | null | undefined;
6214
+ }>]>>;
6215
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6216
+ filename: z.ZodString;
6217
+ originalFilename: z.ZodString;
6218
+ type: z.ZodString;
6219
+ }, "strip", z.ZodTypeAny, {
6220
+ type: string;
6221
+ filename: string;
6222
+ originalFilename: string;
6223
+ }, {
6224
+ type: string;
6225
+ filename: string;
6226
+ originalFilename: string;
6227
+ }>, z.ZodArray<z.ZodObject<{
6228
+ filename: z.ZodString;
6229
+ originalFilename: z.ZodString;
6230
+ type: z.ZodString;
6231
+ option: z.ZodString;
6232
+ }, "strip", z.ZodTypeAny, {
6233
+ type: string;
6234
+ option: string;
6235
+ filename: string;
6236
+ originalFilename: string;
6237
+ }, {
6238
+ type: string;
6239
+ option: string;
6240
+ filename: string;
6241
+ originalFilename: string;
6242
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6243
+ country: z.ZodString;
6244
+ addressType: z.ZodLiteral<"DOMESTIC">;
6245
+ province: z.ZodString;
6246
+ district: z.ZodString;
6247
+ }, {
6248
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6249
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6250
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6251
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6252
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6253
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6254
+ }>, "strip", z.ZodTypeAny, {
6255
+ country: string;
6256
+ district: string;
6257
+ addressType: "DOMESTIC";
6258
+ province: string;
6259
+ urbanOrRural: "URBAN";
6260
+ number?: string | null | undefined;
6261
+ town?: string | null | undefined;
6262
+ residentialArea?: string | null | undefined;
6263
+ street?: string | null | undefined;
6264
+ zipCode?: string | null | undefined;
6265
+ }, {
6266
+ country: string;
6267
+ district: string;
6268
+ addressType: "DOMESTIC";
6269
+ province: string;
6270
+ urbanOrRural: "URBAN";
6271
+ number?: string | null | undefined;
6272
+ town?: string | null | undefined;
6273
+ residentialArea?: string | null | undefined;
6274
+ street?: string | null | undefined;
6275
+ zipCode?: string | null | undefined;
6276
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6277
+ country: z.ZodString;
6278
+ addressType: z.ZodLiteral<"DOMESTIC">;
6279
+ province: z.ZodString;
6280
+ district: z.ZodString;
6281
+ }, {
6282
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6283
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6284
+ }>, "strip", z.ZodTypeAny, {
6285
+ country: string;
6286
+ district: string;
6287
+ addressType: "DOMESTIC";
6288
+ province: string;
6289
+ urbanOrRural: "RURAL";
6290
+ village?: string | null | undefined;
6291
+ }, {
6292
+ country: string;
6293
+ district: string;
6294
+ addressType: "DOMESTIC";
6295
+ province: string;
6296
+ urbanOrRural: "RURAL";
6297
+ village?: string | null | undefined;
6298
+ }>, z.ZodUndefined, z.ZodObject<{
6299
+ country: z.ZodString;
6300
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6301
+ state: z.ZodString;
6302
+ district2: z.ZodString;
6303
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6304
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6305
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6306
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6307
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6308
+ }, "strip", z.ZodTypeAny, {
6309
+ country: string;
6310
+ state: string;
6311
+ addressType: "INTERNATIONAL";
6312
+ district2: string;
6313
+ cityOrTown?: string | null | undefined;
6314
+ addressLine1?: string | null | undefined;
6315
+ addressLine2?: string | null | undefined;
6316
+ addressLine3?: string | null | undefined;
6317
+ postcodeOrZip?: string | null | undefined;
6318
+ }, {
6319
+ country: string;
6320
+ state: string;
6321
+ addressType: "INTERNATIONAL";
6322
+ district2: string;
6323
+ cityOrTown?: string | null | undefined;
6324
+ addressLine1?: string | null | undefined;
6325
+ addressLine2?: string | null | undefined;
6326
+ addressLine3?: string | null | undefined;
6327
+ postcodeOrZip?: string | null | undefined;
6328
+ }>]>>>;
6329
+ createdAtLocation: z.ZodString;
6330
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6331
+ originalActionId: z.ZodOptional<z.ZodString>;
6332
+ }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
6333
+ type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
6334
+ status: z.ZodLiteral<"Rejected">;
6335
+ }>, "strip", z.ZodTypeAny, {
6336
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6337
+ id: string;
6338
+ status: "Rejected";
6339
+ createdAt: string;
6340
+ originalActionId?: string | undefined;
6341
+ }, {
6342
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6343
+ id: string;
6344
+ status: "Rejected";
6345
+ createdAt: string;
6346
+ originalActionId?: string | undefined;
6019
6347
  }>]>, "many">;
6020
6348
  trackingId: z.ZodString;
6021
6349
  }, "strip", z.ZodTypeAny, {
6022
6350
  type: string;
6023
6351
  id: string;
6024
6352
  createdAt: string;
6025
- trackingId: string;
6026
6353
  updatedAt: string;
6027
6354
  actions: ({
6028
6355
  type: "ASSIGN";
6029
6356
  id: string;
6030
- data: Record<string, string | number | boolean | {
6357
+ status: "Rejected" | "Requested" | "Accepted";
6358
+ createdAt: string;
6359
+ createdBy: string;
6360
+ declaration: Record<string, string | number | boolean | {
6031
6361
  type: string;
6032
6362
  filename: string;
6033
6363
  originalFilename: string;
@@ -6064,12 +6394,10 @@ export declare const EventDocument: z.ZodObject<{
6064
6394
  option: string;
6065
6395
  filename: string;
6066
6396
  originalFilename: string;
6067
- }[]>;
6068
- createdAt: string;
6069
- createdBy: string;
6397
+ }[] | undefined>;
6070
6398
  createdAtLocation: string;
6071
6399
  assignedTo: string;
6072
- metadata?: Record<string, string | number | boolean | {
6400
+ annotation?: Record<string, string | number | boolean | {
6073
6401
  type: string;
6074
6402
  filename: string;
6075
6403
  originalFilename: string;
@@ -6106,11 +6434,15 @@ export declare const EventDocument: z.ZodObject<{
6106
6434
  option: string;
6107
6435
  filename: string;
6108
6436
  originalFilename: string;
6109
- }[]> | undefined;
6437
+ }[] | undefined> | undefined;
6438
+ originalActionId?: string | undefined;
6110
6439
  } | {
6111
6440
  type: "UNASSIGN";
6112
6441
  id: string;
6113
- data: Record<string, string | number | boolean | {
6442
+ status: "Rejected" | "Requested" | "Accepted";
6443
+ createdAt: string;
6444
+ createdBy: string;
6445
+ declaration: Record<string, string | number | boolean | {
6114
6446
  type: string;
6115
6447
  filename: string;
6116
6448
  originalFilename: string;
@@ -6147,11 +6479,10 @@ export declare const EventDocument: z.ZodObject<{
6147
6479
  option: string;
6148
6480
  filename: string;
6149
6481
  originalFilename: string;
6150
- }[]>;
6151
- createdAt: string;
6152
- createdBy: string;
6482
+ }[] | undefined>;
6153
6483
  createdAtLocation: string;
6154
- metadata?: Record<string, string | number | boolean | {
6484
+ assignedTo: null;
6485
+ annotation?: Record<string, string | number | boolean | {
6155
6486
  type: string;
6156
6487
  filename: string;
6157
6488
  originalFilename: string;
@@ -6188,11 +6519,15 @@ export declare const EventDocument: z.ZodObject<{
6188
6519
  option: string;
6189
6520
  filename: string;
6190
6521
  originalFilename: string;
6191
- }[]> | undefined;
6522
+ }[] | undefined> | undefined;
6523
+ originalActionId?: string | undefined;
6192
6524
  } | {
6193
6525
  type: "REGISTER";
6194
6526
  id: string;
6195
- data: Record<string, string | number | boolean | {
6527
+ status: "Rejected" | "Requested" | "Accepted";
6528
+ createdAt: string;
6529
+ createdBy: string;
6530
+ declaration: Record<string, string | number | boolean | {
6196
6531
  type: string;
6197
6532
  filename: string;
6198
6533
  originalFilename: string;
@@ -6229,15 +6564,9 @@ export declare const EventDocument: z.ZodObject<{
6229
6564
  option: string;
6230
6565
  filename: string;
6231
6566
  originalFilename: string;
6232
- }[]>;
6233
- createdAt: string;
6234
- createdBy: string;
6567
+ }[] | undefined>;
6235
6568
  createdAtLocation: string;
6236
- identifiers: {
6237
- trackingId: string;
6238
- registrationNumber: string;
6239
- };
6240
- metadata?: Record<string, string | number | boolean | {
6569
+ annotation?: Record<string, string | number | boolean | {
6241
6570
  type: string;
6242
6571
  filename: string;
6243
6572
  originalFilename: string;
@@ -6274,11 +6603,16 @@ export declare const EventDocument: z.ZodObject<{
6274
6603
  option: string;
6275
6604
  filename: string;
6276
6605
  originalFilename: string;
6277
- }[]> | undefined;
6606
+ }[] | undefined> | undefined;
6607
+ originalActionId?: string | undefined;
6608
+ registrationNumber?: string | undefined;
6278
6609
  } | {
6279
6610
  type: "DECLARE";
6280
6611
  id: string;
6281
- data: Record<string, string | number | boolean | {
6612
+ status: "Rejected" | "Requested" | "Accepted";
6613
+ createdAt: string;
6614
+ createdBy: string;
6615
+ declaration: Record<string, string | number | boolean | {
6282
6616
  type: string;
6283
6617
  filename: string;
6284
6618
  originalFilename: string;
@@ -6315,11 +6649,9 @@ export declare const EventDocument: z.ZodObject<{
6315
6649
  option: string;
6316
6650
  filename: string;
6317
6651
  originalFilename: string;
6318
- }[]>;
6319
- createdAt: string;
6320
- createdBy: string;
6652
+ }[] | undefined>;
6321
6653
  createdAtLocation: string;
6322
- metadata?: Record<string, string | number | boolean | {
6654
+ annotation?: Record<string, string | number | boolean | {
6323
6655
  type: string;
6324
6656
  filename: string;
6325
6657
  originalFilename: string;
@@ -6356,11 +6688,15 @@ export declare const EventDocument: z.ZodObject<{
6356
6688
  option: string;
6357
6689
  filename: string;
6358
6690
  originalFilename: string;
6359
- }[]> | undefined;
6691
+ }[] | undefined> | undefined;
6692
+ originalActionId?: string | undefined;
6360
6693
  } | {
6361
6694
  type: "VALIDATE";
6362
6695
  id: string;
6363
- data: Record<string, string | number | boolean | {
6696
+ status: "Rejected" | "Requested" | "Accepted";
6697
+ createdAt: string;
6698
+ createdBy: string;
6699
+ declaration: Record<string, string | number | boolean | {
6364
6700
  type: string;
6365
6701
  filename: string;
6366
6702
  originalFilename: string;
@@ -6397,11 +6733,9 @@ export declare const EventDocument: z.ZodObject<{
6397
6733
  option: string;
6398
6734
  filename: string;
6399
6735
  originalFilename: string;
6400
- }[]>;
6401
- createdAt: string;
6402
- createdBy: string;
6736
+ }[] | undefined>;
6403
6737
  createdAtLocation: string;
6404
- metadata?: Record<string, string | number | boolean | {
6738
+ annotation?: Record<string, string | number | boolean | {
6405
6739
  type: string;
6406
6740
  filename: string;
6407
6741
  originalFilename: string;
@@ -6438,11 +6772,15 @@ export declare const EventDocument: z.ZodObject<{
6438
6772
  option: string;
6439
6773
  filename: string;
6440
6774
  originalFilename: string;
6441
- }[]> | undefined;
6775
+ }[] | undefined> | undefined;
6776
+ originalActionId?: string | undefined;
6442
6777
  } | {
6443
6778
  type: "REJECT";
6444
6779
  id: string;
6445
- data: Record<string, string | number | boolean | {
6780
+ status: "Rejected" | "Requested" | "Accepted";
6781
+ createdAt: string;
6782
+ createdBy: string;
6783
+ declaration: Record<string, string | number | boolean | {
6446
6784
  type: string;
6447
6785
  filename: string;
6448
6786
  originalFilename: string;
@@ -6479,11 +6817,9 @@ export declare const EventDocument: z.ZodObject<{
6479
6817
  option: string;
6480
6818
  filename: string;
6481
6819
  originalFilename: string;
6482
- }[]>;
6483
- createdAt: string;
6484
- createdBy: string;
6820
+ }[] | undefined>;
6485
6821
  createdAtLocation: string;
6486
- metadata?: Record<string, string | number | boolean | {
6822
+ annotation?: Record<string, string | number | boolean | {
6487
6823
  type: string;
6488
6824
  filename: string;
6489
6825
  originalFilename: string;
@@ -6520,11 +6856,15 @@ export declare const EventDocument: z.ZodObject<{
6520
6856
  option: string;
6521
6857
  filename: string;
6522
6858
  originalFilename: string;
6523
- }[]> | undefined;
6859
+ }[] | undefined> | undefined;
6860
+ originalActionId?: string | undefined;
6524
6861
  } | {
6525
6862
  type: "MARKED_AS_DUPLICATE";
6526
6863
  id: string;
6527
- data: Record<string, string | number | boolean | {
6864
+ status: "Rejected" | "Requested" | "Accepted";
6865
+ createdAt: string;
6866
+ createdBy: string;
6867
+ declaration: Record<string, string | number | boolean | {
6528
6868
  type: string;
6529
6869
  filename: string;
6530
6870
  originalFilename: string;
@@ -6561,11 +6901,9 @@ export declare const EventDocument: z.ZodObject<{
6561
6901
  option: string;
6562
6902
  filename: string;
6563
6903
  originalFilename: string;
6564
- }[]>;
6565
- createdAt: string;
6566
- createdBy: string;
6904
+ }[] | undefined>;
6567
6905
  createdAtLocation: string;
6568
- metadata?: Record<string, string | number | boolean | {
6906
+ annotation?: Record<string, string | number | boolean | {
6569
6907
  type: string;
6570
6908
  filename: string;
6571
6909
  originalFilename: string;
@@ -6602,11 +6940,15 @@ export declare const EventDocument: z.ZodObject<{
6602
6940
  option: string;
6603
6941
  filename: string;
6604
6942
  originalFilename: string;
6605
- }[]> | undefined;
6943
+ }[] | undefined> | undefined;
6944
+ originalActionId?: string | undefined;
6606
6945
  } | {
6607
6946
  type: "ARCHIVE";
6608
6947
  id: string;
6609
- data: Record<string, string | number | boolean | {
6948
+ status: "Rejected" | "Requested" | "Accepted";
6949
+ createdAt: string;
6950
+ createdBy: string;
6951
+ declaration: Record<string, string | number | boolean | {
6610
6952
  type: string;
6611
6953
  filename: string;
6612
6954
  originalFilename: string;
@@ -6643,11 +6985,9 @@ export declare const EventDocument: z.ZodObject<{
6643
6985
  option: string;
6644
6986
  filename: string;
6645
6987
  originalFilename: string;
6646
- }[]>;
6647
- createdAt: string;
6648
- createdBy: string;
6988
+ }[] | undefined>;
6649
6989
  createdAtLocation: string;
6650
- metadata?: Record<string, string | number | boolean | {
6990
+ annotation?: Record<string, string | number | boolean | {
6651
6991
  type: string;
6652
6992
  filename: string;
6653
6993
  originalFilename: string;
@@ -6684,11 +7024,15 @@ export declare const EventDocument: z.ZodObject<{
6684
7024
  option: string;
6685
7025
  filename: string;
6686
7026
  originalFilename: string;
6687
- }[]> | undefined;
7027
+ }[] | undefined> | undefined;
7028
+ originalActionId?: string | undefined;
6688
7029
  } | {
6689
7030
  type: "CREATE";
6690
7031
  id: string;
6691
- data: Record<string, string | number | boolean | {
7032
+ status: "Rejected" | "Requested" | "Accepted";
7033
+ createdAt: string;
7034
+ createdBy: string;
7035
+ declaration: Record<string, string | number | boolean | {
6692
7036
  type: string;
6693
7037
  filename: string;
6694
7038
  originalFilename: string;
@@ -6725,11 +7069,9 @@ export declare const EventDocument: z.ZodObject<{
6725
7069
  option: string;
6726
7070
  filename: string;
6727
7071
  originalFilename: string;
6728
- }[]>;
6729
- createdAt: string;
6730
- createdBy: string;
7072
+ }[] | undefined>;
6731
7073
  createdAtLocation: string;
6732
- metadata?: Record<string, string | number | boolean | {
7074
+ annotation?: Record<string, string | number | boolean | {
6733
7075
  type: string;
6734
7076
  filename: string;
6735
7077
  originalFilename: string;
@@ -6766,11 +7108,15 @@ export declare const EventDocument: z.ZodObject<{
6766
7108
  option: string;
6767
7109
  filename: string;
6768
7110
  originalFilename: string;
6769
- }[]> | undefined;
7111
+ }[] | undefined> | undefined;
7112
+ originalActionId?: string | undefined;
6770
7113
  } | {
6771
7114
  type: "NOTIFY";
6772
7115
  id: string;
6773
- data: Record<string, string | number | boolean | {
7116
+ status: "Rejected" | "Requested" | "Accepted";
7117
+ createdAt: string;
7118
+ createdBy: string;
7119
+ declaration: Record<string, string | number | boolean | {
6774
7120
  type: string;
6775
7121
  filename: string;
6776
7122
  originalFilename: string;
@@ -6807,11 +7153,9 @@ export declare const EventDocument: z.ZodObject<{
6807
7153
  option: string;
6808
7154
  filename: string;
6809
7155
  originalFilename: string;
6810
- }[]>;
6811
- createdAt: string;
6812
- createdBy: string;
7156
+ }[] | undefined>;
6813
7157
  createdAtLocation: string;
6814
- metadata?: Record<string, string | number | boolean | {
7158
+ annotation?: Record<string, string | number | boolean | {
6815
7159
  type: string;
6816
7160
  filename: string;
6817
7161
  originalFilename: string;
@@ -6848,11 +7192,15 @@ export declare const EventDocument: z.ZodObject<{
6848
7192
  option: string;
6849
7193
  filename: string;
6850
7194
  originalFilename: string;
6851
- }[]> | undefined;
7195
+ }[] | undefined> | undefined;
7196
+ originalActionId?: string | undefined;
6852
7197
  } | {
6853
7198
  type: "PRINT_CERTIFICATE";
6854
7199
  id: string;
6855
- data: Record<string, string | number | boolean | {
7200
+ status: "Rejected" | "Requested" | "Accepted";
7201
+ createdAt: string;
7202
+ createdBy: string;
7203
+ declaration: Record<string, string | number | boolean | {
6856
7204
  type: string;
6857
7205
  filename: string;
6858
7206
  originalFilename: string;
@@ -6889,11 +7237,9 @@ export declare const EventDocument: z.ZodObject<{
6889
7237
  option: string;
6890
7238
  filename: string;
6891
7239
  originalFilename: string;
6892
- }[]>;
6893
- createdAt: string;
6894
- createdBy: string;
7240
+ }[] | undefined>;
6895
7241
  createdAtLocation: string;
6896
- metadata?: Record<string, string | number | boolean | {
7242
+ annotation?: Record<string, string | number | boolean | {
6897
7243
  type: string;
6898
7244
  filename: string;
6899
7245
  originalFilename: string;
@@ -6930,11 +7276,15 @@ export declare const EventDocument: z.ZodObject<{
6930
7276
  option: string;
6931
7277
  filename: string;
6932
7278
  originalFilename: string;
6933
- }[]> | undefined;
7279
+ }[] | undefined> | undefined;
7280
+ originalActionId?: string | undefined;
6934
7281
  } | {
6935
7282
  type: "REQUEST_CORRECTION";
6936
7283
  id: string;
6937
- data: Record<string, string | number | boolean | {
7284
+ status: "Rejected" | "Requested" | "Accepted";
7285
+ createdAt: string;
7286
+ createdBy: string;
7287
+ declaration: Record<string, string | number | boolean | {
6938
7288
  type: string;
6939
7289
  filename: string;
6940
7290
  originalFilename: string;
@@ -6971,11 +7321,9 @@ export declare const EventDocument: z.ZodObject<{
6971
7321
  option: string;
6972
7322
  filename: string;
6973
7323
  originalFilename: string;
6974
- }[]>;
6975
- createdAt: string;
6976
- createdBy: string;
7324
+ }[] | undefined>;
6977
7325
  createdAtLocation: string;
6978
- metadata?: Record<string, string | number | boolean | {
7326
+ annotation?: Record<string, string | number | boolean | {
6979
7327
  type: string;
6980
7328
  filename: string;
6981
7329
  originalFilename: string;
@@ -7012,11 +7360,15 @@ export declare const EventDocument: z.ZodObject<{
7012
7360
  option: string;
7013
7361
  filename: string;
7014
7362
  originalFilename: string;
7015
- }[]> | undefined;
7363
+ }[] | undefined> | undefined;
7364
+ originalActionId?: string | undefined;
7016
7365
  } | {
7017
7366
  type: "APPROVE_CORRECTION";
7018
7367
  id: string;
7019
- data: Record<string, string | number | boolean | {
7368
+ status: "Rejected" | "Requested" | "Accepted";
7369
+ createdAt: string;
7370
+ createdBy: string;
7371
+ declaration: Record<string, string | number | boolean | {
7020
7372
  type: string;
7021
7373
  filename: string;
7022
7374
  originalFilename: string;
@@ -7053,12 +7405,10 @@ export declare const EventDocument: z.ZodObject<{
7053
7405
  option: string;
7054
7406
  filename: string;
7055
7407
  originalFilename: string;
7056
- }[]>;
7057
- createdAt: string;
7058
- createdBy: string;
7408
+ }[] | undefined>;
7059
7409
  createdAtLocation: string;
7060
7410
  requestId: string;
7061
- metadata?: Record<string, string | number | boolean | {
7411
+ annotation?: Record<string, string | number | boolean | {
7062
7412
  type: string;
7063
7413
  filename: string;
7064
7414
  originalFilename: string;
@@ -7095,11 +7445,15 @@ export declare const EventDocument: z.ZodObject<{
7095
7445
  option: string;
7096
7446
  filename: string;
7097
7447
  originalFilename: string;
7098
- }[]> | undefined;
7448
+ }[] | undefined> | undefined;
7449
+ originalActionId?: string | undefined;
7099
7450
  } | {
7100
7451
  type: "REJECT_CORRECTION";
7101
7452
  id: string;
7102
- data: Record<string, string | number | boolean | {
7453
+ status: "Rejected" | "Requested" | "Accepted";
7454
+ createdAt: string;
7455
+ createdBy: string;
7456
+ declaration: Record<string, string | number | boolean | {
7103
7457
  type: string;
7104
7458
  filename: string;
7105
7459
  originalFilename: string;
@@ -7136,12 +7490,10 @@ export declare const EventDocument: z.ZodObject<{
7136
7490
  option: string;
7137
7491
  filename: string;
7138
7492
  originalFilename: string;
7139
- }[]>;
7140
- createdAt: string;
7141
- createdBy: string;
7493
+ }[] | undefined>;
7142
7494
  createdAtLocation: string;
7143
7495
  requestId: string;
7144
- metadata?: Record<string, string | number | boolean | {
7496
+ annotation?: Record<string, string | number | boolean | {
7145
7497
  type: string;
7146
7498
  filename: string;
7147
7499
  originalFilename: string;
@@ -7178,11 +7530,15 @@ export declare const EventDocument: z.ZodObject<{
7178
7530
  option: string;
7179
7531
  filename: string;
7180
7532
  originalFilename: string;
7181
- }[]> | undefined;
7533
+ }[] | undefined> | undefined;
7534
+ originalActionId?: string | undefined;
7182
7535
  } | {
7183
- type: "CUSTOM";
7536
+ type: "READ";
7184
7537
  id: string;
7185
- data: Record<string, string | number | boolean | {
7538
+ status: "Rejected" | "Requested" | "Accepted";
7539
+ createdAt: string;
7540
+ createdBy: string;
7541
+ declaration: Record<string, string | number | boolean | {
7186
7542
  type: string;
7187
7543
  filename: string;
7188
7544
  originalFilename: string;
@@ -7219,11 +7575,9 @@ export declare const EventDocument: z.ZodObject<{
7219
7575
  option: string;
7220
7576
  filename: string;
7221
7577
  originalFilename: string;
7222
- }[]>;
7223
- createdAt: string;
7224
- createdBy: string;
7578
+ }[] | undefined>;
7225
7579
  createdAtLocation: string;
7226
- metadata?: Record<string, string | number | boolean | {
7580
+ annotation?: Record<string, string | number | boolean | {
7227
7581
  type: string;
7228
7582
  filename: string;
7229
7583
  originalFilename: string;
@@ -7260,18 +7614,28 @@ export declare const EventDocument: z.ZodObject<{
7260
7614
  option: string;
7261
7615
  filename: string;
7262
7616
  originalFilename: string;
7263
- }[]> | undefined;
7617
+ }[] | undefined> | undefined;
7618
+ originalActionId?: string | undefined;
7619
+ } | {
7620
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7621
+ id: string;
7622
+ status: "Rejected";
7623
+ createdAt: string;
7624
+ originalActionId?: string | undefined;
7264
7625
  })[];
7626
+ trackingId: string;
7265
7627
  }, {
7266
7628
  type: string;
7267
7629
  id: string;
7268
7630
  createdAt: string;
7269
- trackingId: string;
7270
7631
  updatedAt: string;
7271
7632
  actions: ({
7272
7633
  type: "ASSIGN";
7273
7634
  id: string;
7274
- data: Record<string, string | number | boolean | {
7635
+ status: "Rejected" | "Requested" | "Accepted";
7636
+ createdAt: string;
7637
+ createdBy: string;
7638
+ declaration: Record<string, string | number | boolean | {
7275
7639
  type: string;
7276
7640
  filename: string;
7277
7641
  originalFilename: string;
@@ -7308,12 +7672,10 @@ export declare const EventDocument: z.ZodObject<{
7308
7672
  option: string;
7309
7673
  filename: string;
7310
7674
  originalFilename: string;
7311
- }[]>;
7312
- createdAt: string;
7313
- createdBy: string;
7675
+ }[] | undefined>;
7314
7676
  createdAtLocation: string;
7315
7677
  assignedTo: string;
7316
- metadata?: Record<string, string | number | boolean | {
7678
+ annotation?: Record<string, string | number | boolean | {
7317
7679
  type: string;
7318
7680
  filename: string;
7319
7681
  originalFilename: string;
@@ -7350,11 +7712,15 @@ export declare const EventDocument: z.ZodObject<{
7350
7712
  option: string;
7351
7713
  filename: string;
7352
7714
  originalFilename: string;
7353
- }[]> | undefined;
7715
+ }[] | undefined> | undefined;
7716
+ originalActionId?: string | undefined;
7354
7717
  } | {
7355
7718
  type: "UNASSIGN";
7356
7719
  id: string;
7357
- data: Record<string, string | number | boolean | {
7720
+ status: "Rejected" | "Requested" | "Accepted";
7721
+ createdAt: string;
7722
+ createdBy: string;
7723
+ declaration: Record<string, string | number | boolean | {
7358
7724
  type: string;
7359
7725
  filename: string;
7360
7726
  originalFilename: string;
@@ -7391,11 +7757,9 @@ export declare const EventDocument: z.ZodObject<{
7391
7757
  option: string;
7392
7758
  filename: string;
7393
7759
  originalFilename: string;
7394
- }[]>;
7395
- createdAt: string;
7396
- createdBy: string;
7760
+ }[] | undefined>;
7397
7761
  createdAtLocation: string;
7398
- metadata?: Record<string, string | number | boolean | {
7762
+ annotation?: Record<string, string | number | boolean | {
7399
7763
  type: string;
7400
7764
  filename: string;
7401
7765
  originalFilename: string;
@@ -7432,11 +7796,16 @@ export declare const EventDocument: z.ZodObject<{
7432
7796
  option: string;
7433
7797
  filename: string;
7434
7798
  originalFilename: string;
7435
- }[]> | undefined;
7799
+ }[] | undefined> | undefined;
7800
+ originalActionId?: string | undefined;
7801
+ assignedTo?: null | undefined;
7436
7802
  } | {
7437
7803
  type: "REGISTER";
7438
7804
  id: string;
7439
- data: Record<string, string | number | boolean | {
7805
+ status: "Rejected" | "Requested" | "Accepted";
7806
+ createdAt: string;
7807
+ createdBy: string;
7808
+ declaration: Record<string, string | number | boolean | {
7440
7809
  type: string;
7441
7810
  filename: string;
7442
7811
  originalFilename: string;
@@ -7473,15 +7842,9 @@ export declare const EventDocument: z.ZodObject<{
7473
7842
  option: string;
7474
7843
  filename: string;
7475
7844
  originalFilename: string;
7476
- }[]>;
7477
- createdAt: string;
7478
- createdBy: string;
7845
+ }[] | undefined>;
7479
7846
  createdAtLocation: string;
7480
- identifiers: {
7481
- trackingId: string;
7482
- registrationNumber: string;
7483
- };
7484
- metadata?: Record<string, string | number | boolean | {
7847
+ annotation?: Record<string, string | number | boolean | {
7485
7848
  type: string;
7486
7849
  filename: string;
7487
7850
  originalFilename: string;
@@ -7518,11 +7881,16 @@ export declare const EventDocument: z.ZodObject<{
7518
7881
  option: string;
7519
7882
  filename: string;
7520
7883
  originalFilename: string;
7521
- }[]> | undefined;
7884
+ }[] | undefined> | undefined;
7885
+ originalActionId?: string | undefined;
7886
+ registrationNumber?: string | undefined;
7522
7887
  } | {
7523
7888
  type: "DECLARE";
7524
7889
  id: string;
7525
- data: Record<string, string | number | boolean | {
7890
+ status: "Rejected" | "Requested" | "Accepted";
7891
+ createdAt: string;
7892
+ createdBy: string;
7893
+ declaration: Record<string, string | number | boolean | {
7526
7894
  type: string;
7527
7895
  filename: string;
7528
7896
  originalFilename: string;
@@ -7559,11 +7927,9 @@ export declare const EventDocument: z.ZodObject<{
7559
7927
  option: string;
7560
7928
  filename: string;
7561
7929
  originalFilename: string;
7562
- }[]>;
7563
- createdAt: string;
7564
- createdBy: string;
7930
+ }[] | undefined>;
7565
7931
  createdAtLocation: string;
7566
- metadata?: Record<string, string | number | boolean | {
7932
+ annotation?: Record<string, string | number | boolean | {
7567
7933
  type: string;
7568
7934
  filename: string;
7569
7935
  originalFilename: string;
@@ -7600,11 +7966,15 @@ export declare const EventDocument: z.ZodObject<{
7600
7966
  option: string;
7601
7967
  filename: string;
7602
7968
  originalFilename: string;
7603
- }[]> | undefined;
7969
+ }[] | undefined> | undefined;
7970
+ originalActionId?: string | undefined;
7604
7971
  } | {
7605
7972
  type: "VALIDATE";
7606
7973
  id: string;
7607
- data: Record<string, string | number | boolean | {
7974
+ status: "Rejected" | "Requested" | "Accepted";
7975
+ createdAt: string;
7976
+ createdBy: string;
7977
+ declaration: Record<string, string | number | boolean | {
7608
7978
  type: string;
7609
7979
  filename: string;
7610
7980
  originalFilename: string;
@@ -7641,11 +8011,9 @@ export declare const EventDocument: z.ZodObject<{
7641
8011
  option: string;
7642
8012
  filename: string;
7643
8013
  originalFilename: string;
7644
- }[]>;
7645
- createdAt: string;
7646
- createdBy: string;
8014
+ }[] | undefined>;
7647
8015
  createdAtLocation: string;
7648
- metadata?: Record<string, string | number | boolean | {
8016
+ annotation?: Record<string, string | number | boolean | {
7649
8017
  type: string;
7650
8018
  filename: string;
7651
8019
  originalFilename: string;
@@ -7682,11 +8050,15 @@ export declare const EventDocument: z.ZodObject<{
7682
8050
  option: string;
7683
8051
  filename: string;
7684
8052
  originalFilename: string;
7685
- }[]> | undefined;
8053
+ }[] | undefined> | undefined;
8054
+ originalActionId?: string | undefined;
7686
8055
  } | {
7687
8056
  type: "REJECT";
7688
8057
  id: string;
7689
- data: Record<string, string | number | boolean | {
8058
+ status: "Rejected" | "Requested" | "Accepted";
8059
+ createdAt: string;
8060
+ createdBy: string;
8061
+ declaration: Record<string, string | number | boolean | {
7690
8062
  type: string;
7691
8063
  filename: string;
7692
8064
  originalFilename: string;
@@ -7723,11 +8095,9 @@ export declare const EventDocument: z.ZodObject<{
7723
8095
  option: string;
7724
8096
  filename: string;
7725
8097
  originalFilename: string;
7726
- }[]>;
7727
- createdAt: string;
7728
- createdBy: string;
8098
+ }[] | undefined>;
7729
8099
  createdAtLocation: string;
7730
- metadata?: Record<string, string | number | boolean | {
8100
+ annotation?: Record<string, string | number | boolean | {
7731
8101
  type: string;
7732
8102
  filename: string;
7733
8103
  originalFilename: string;
@@ -7764,11 +8134,15 @@ export declare const EventDocument: z.ZodObject<{
7764
8134
  option: string;
7765
8135
  filename: string;
7766
8136
  originalFilename: string;
7767
- }[]> | undefined;
8137
+ }[] | undefined> | undefined;
8138
+ originalActionId?: string | undefined;
7768
8139
  } | {
7769
8140
  type: "MARKED_AS_DUPLICATE";
7770
8141
  id: string;
7771
- data: Record<string, string | number | boolean | {
8142
+ status: "Rejected" | "Requested" | "Accepted";
8143
+ createdAt: string;
8144
+ createdBy: string;
8145
+ declaration: Record<string, string | number | boolean | {
7772
8146
  type: string;
7773
8147
  filename: string;
7774
8148
  originalFilename: string;
@@ -7805,11 +8179,9 @@ export declare const EventDocument: z.ZodObject<{
7805
8179
  option: string;
7806
8180
  filename: string;
7807
8181
  originalFilename: string;
7808
- }[]>;
7809
- createdAt: string;
7810
- createdBy: string;
8182
+ }[] | undefined>;
7811
8183
  createdAtLocation: string;
7812
- metadata?: Record<string, string | number | boolean | {
8184
+ annotation?: Record<string, string | number | boolean | {
7813
8185
  type: string;
7814
8186
  filename: string;
7815
8187
  originalFilename: string;
@@ -7846,11 +8218,15 @@ export declare const EventDocument: z.ZodObject<{
7846
8218
  option: string;
7847
8219
  filename: string;
7848
8220
  originalFilename: string;
7849
- }[]> | undefined;
8221
+ }[] | undefined> | undefined;
8222
+ originalActionId?: string | undefined;
7850
8223
  } | {
7851
8224
  type: "ARCHIVE";
7852
8225
  id: string;
7853
- data: Record<string, string | number | boolean | {
8226
+ status: "Rejected" | "Requested" | "Accepted";
8227
+ createdAt: string;
8228
+ createdBy: string;
8229
+ declaration: Record<string, string | number | boolean | {
7854
8230
  type: string;
7855
8231
  filename: string;
7856
8232
  originalFilename: string;
@@ -7887,11 +8263,9 @@ export declare const EventDocument: z.ZodObject<{
7887
8263
  option: string;
7888
8264
  filename: string;
7889
8265
  originalFilename: string;
7890
- }[]>;
7891
- createdAt: string;
7892
- createdBy: string;
8266
+ }[] | undefined>;
7893
8267
  createdAtLocation: string;
7894
- metadata?: Record<string, string | number | boolean | {
8268
+ annotation?: Record<string, string | number | boolean | {
7895
8269
  type: string;
7896
8270
  filename: string;
7897
8271
  originalFilename: string;
@@ -7928,11 +8302,15 @@ export declare const EventDocument: z.ZodObject<{
7928
8302
  option: string;
7929
8303
  filename: string;
7930
8304
  originalFilename: string;
7931
- }[]> | undefined;
8305
+ }[] | undefined> | undefined;
8306
+ originalActionId?: string | undefined;
7932
8307
  } | {
7933
8308
  type: "CREATE";
7934
8309
  id: string;
7935
- data: Record<string, string | number | boolean | {
8310
+ status: "Rejected" | "Requested" | "Accepted";
8311
+ createdAt: string;
8312
+ createdBy: string;
8313
+ declaration: Record<string, string | number | boolean | {
7936
8314
  type: string;
7937
8315
  filename: string;
7938
8316
  originalFilename: string;
@@ -7969,11 +8347,9 @@ export declare const EventDocument: z.ZodObject<{
7969
8347
  option: string;
7970
8348
  filename: string;
7971
8349
  originalFilename: string;
7972
- }[]>;
7973
- createdAt: string;
7974
- createdBy: string;
8350
+ }[] | undefined>;
7975
8351
  createdAtLocation: string;
7976
- metadata?: Record<string, string | number | boolean | {
8352
+ annotation?: Record<string, string | number | boolean | {
7977
8353
  type: string;
7978
8354
  filename: string;
7979
8355
  originalFilename: string;
@@ -8010,11 +8386,15 @@ export declare const EventDocument: z.ZodObject<{
8010
8386
  option: string;
8011
8387
  filename: string;
8012
8388
  originalFilename: string;
8013
- }[]> | undefined;
8389
+ }[] | undefined> | undefined;
8390
+ originalActionId?: string | undefined;
8014
8391
  } | {
8015
8392
  type: "NOTIFY";
8016
8393
  id: string;
8017
- data: Record<string, string | number | boolean | {
8394
+ status: "Rejected" | "Requested" | "Accepted";
8395
+ createdAt: string;
8396
+ createdBy: string;
8397
+ declaration: Record<string, string | number | boolean | {
8018
8398
  type: string;
8019
8399
  filename: string;
8020
8400
  originalFilename: string;
@@ -8051,11 +8431,9 @@ export declare const EventDocument: z.ZodObject<{
8051
8431
  option: string;
8052
8432
  filename: string;
8053
8433
  originalFilename: string;
8054
- }[]>;
8055
- createdAt: string;
8056
- createdBy: string;
8434
+ }[] | undefined>;
8057
8435
  createdAtLocation: string;
8058
- metadata?: Record<string, string | number | boolean | {
8436
+ annotation?: Record<string, string | number | boolean | {
8059
8437
  type: string;
8060
8438
  filename: string;
8061
8439
  originalFilename: string;
@@ -8092,11 +8470,15 @@ export declare const EventDocument: z.ZodObject<{
8092
8470
  option: string;
8093
8471
  filename: string;
8094
8472
  originalFilename: string;
8095
- }[]> | undefined;
8473
+ }[] | undefined> | undefined;
8474
+ originalActionId?: string | undefined;
8096
8475
  } | {
8097
8476
  type: "PRINT_CERTIFICATE";
8098
8477
  id: string;
8099
- data: Record<string, string | number | boolean | {
8478
+ status: "Rejected" | "Requested" | "Accepted";
8479
+ createdAt: string;
8480
+ createdBy: string;
8481
+ declaration: Record<string, string | number | boolean | {
8100
8482
  type: string;
8101
8483
  filename: string;
8102
8484
  originalFilename: string;
@@ -8133,11 +8515,9 @@ export declare const EventDocument: z.ZodObject<{
8133
8515
  option: string;
8134
8516
  filename: string;
8135
8517
  originalFilename: string;
8136
- }[]>;
8137
- createdAt: string;
8138
- createdBy: string;
8518
+ }[] | undefined>;
8139
8519
  createdAtLocation: string;
8140
- metadata?: Record<string, string | number | boolean | {
8520
+ annotation?: Record<string, string | number | boolean | {
8141
8521
  type: string;
8142
8522
  filename: string;
8143
8523
  originalFilename: string;
@@ -8174,11 +8554,15 @@ export declare const EventDocument: z.ZodObject<{
8174
8554
  option: string;
8175
8555
  filename: string;
8176
8556
  originalFilename: string;
8177
- }[]> | undefined;
8557
+ }[] | undefined> | undefined;
8558
+ originalActionId?: string | undefined;
8178
8559
  } | {
8179
8560
  type: "REQUEST_CORRECTION";
8180
8561
  id: string;
8181
- data: Record<string, string | number | boolean | {
8562
+ status: "Rejected" | "Requested" | "Accepted";
8563
+ createdAt: string;
8564
+ createdBy: string;
8565
+ declaration: Record<string, string | number | boolean | {
8182
8566
  type: string;
8183
8567
  filename: string;
8184
8568
  originalFilename: string;
@@ -8215,11 +8599,9 @@ export declare const EventDocument: z.ZodObject<{
8215
8599
  option: string;
8216
8600
  filename: string;
8217
8601
  originalFilename: string;
8218
- }[]>;
8219
- createdAt: string;
8220
- createdBy: string;
8602
+ }[] | undefined>;
8221
8603
  createdAtLocation: string;
8222
- metadata?: Record<string, string | number | boolean | {
8604
+ annotation?: Record<string, string | number | boolean | {
8223
8605
  type: string;
8224
8606
  filename: string;
8225
8607
  originalFilename: string;
@@ -8256,11 +8638,15 @@ export declare const EventDocument: z.ZodObject<{
8256
8638
  option: string;
8257
8639
  filename: string;
8258
8640
  originalFilename: string;
8259
- }[]> | undefined;
8641
+ }[] | undefined> | undefined;
8642
+ originalActionId?: string | undefined;
8260
8643
  } | {
8261
8644
  type: "APPROVE_CORRECTION";
8262
8645
  id: string;
8263
- data: Record<string, string | number | boolean | {
8646
+ status: "Rejected" | "Requested" | "Accepted";
8647
+ createdAt: string;
8648
+ createdBy: string;
8649
+ declaration: Record<string, string | number | boolean | {
8264
8650
  type: string;
8265
8651
  filename: string;
8266
8652
  originalFilename: string;
@@ -8297,12 +8683,10 @@ export declare const EventDocument: z.ZodObject<{
8297
8683
  option: string;
8298
8684
  filename: string;
8299
8685
  originalFilename: string;
8300
- }[]>;
8301
- createdAt: string;
8302
- createdBy: string;
8686
+ }[] | undefined>;
8303
8687
  createdAtLocation: string;
8304
8688
  requestId: string;
8305
- metadata?: Record<string, string | number | boolean | {
8689
+ annotation?: Record<string, string | number | boolean | {
8306
8690
  type: string;
8307
8691
  filename: string;
8308
8692
  originalFilename: string;
@@ -8339,11 +8723,15 @@ export declare const EventDocument: z.ZodObject<{
8339
8723
  option: string;
8340
8724
  filename: string;
8341
8725
  originalFilename: string;
8342
- }[]> | undefined;
8726
+ }[] | undefined> | undefined;
8727
+ originalActionId?: string | undefined;
8343
8728
  } | {
8344
8729
  type: "REJECT_CORRECTION";
8345
8730
  id: string;
8346
- data: Record<string, string | number | boolean | {
8731
+ status: "Rejected" | "Requested" | "Accepted";
8732
+ createdAt: string;
8733
+ createdBy: string;
8734
+ declaration: Record<string, string | number | boolean | {
8347
8735
  type: string;
8348
8736
  filename: string;
8349
8737
  originalFilename: string;
@@ -8380,12 +8768,10 @@ export declare const EventDocument: z.ZodObject<{
8380
8768
  option: string;
8381
8769
  filename: string;
8382
8770
  originalFilename: string;
8383
- }[]>;
8384
- createdAt: string;
8385
- createdBy: string;
8771
+ }[] | undefined>;
8386
8772
  createdAtLocation: string;
8387
8773
  requestId: string;
8388
- metadata?: Record<string, string | number | boolean | {
8774
+ annotation?: Record<string, string | number | boolean | {
8389
8775
  type: string;
8390
8776
  filename: string;
8391
8777
  originalFilename: string;
@@ -8422,11 +8808,15 @@ export declare const EventDocument: z.ZodObject<{
8422
8808
  option: string;
8423
8809
  filename: string;
8424
8810
  originalFilename: string;
8425
- }[]> | undefined;
8811
+ }[] | undefined> | undefined;
8812
+ originalActionId?: string | undefined;
8426
8813
  } | {
8427
- type: "CUSTOM";
8814
+ type: "READ";
8428
8815
  id: string;
8429
- data: Record<string, string | number | boolean | {
8816
+ status: "Rejected" | "Requested" | "Accepted";
8817
+ createdAt: string;
8818
+ createdBy: string;
8819
+ declaration: Record<string, string | number | boolean | {
8430
8820
  type: string;
8431
8821
  filename: string;
8432
8822
  originalFilename: string;
@@ -8463,11 +8853,9 @@ export declare const EventDocument: z.ZodObject<{
8463
8853
  option: string;
8464
8854
  filename: string;
8465
8855
  originalFilename: string;
8466
- }[]>;
8467
- createdAt: string;
8468
- createdBy: string;
8856
+ }[] | undefined>;
8469
8857
  createdAtLocation: string;
8470
- metadata?: Record<string, string | number | boolean | {
8858
+ annotation?: Record<string, string | number | boolean | {
8471
8859
  type: string;
8472
8860
  filename: string;
8473
8861
  originalFilename: string;
@@ -8504,8 +8892,16 @@ export declare const EventDocument: z.ZodObject<{
8504
8892
  option: string;
8505
8893
  filename: string;
8506
8894
  originalFilename: string;
8507
- }[]> | undefined;
8895
+ }[] | undefined> | undefined;
8896
+ originalActionId?: string | undefined;
8897
+ } | {
8898
+ type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
8899
+ id: string;
8900
+ status: "Rejected";
8901
+ createdAt: string;
8902
+ originalActionId?: string | undefined;
8508
8903
  })[];
8904
+ trackingId: string;
8509
8905
  }>;
8510
8906
  export type EventDocument = z.infer<typeof EventDocument>;
8511
8907
  //# sourceMappingURL=EventDocument.d.ts.map