@tmlmobilidade/types 20260615.1034.33 → 20260615.1437.21

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 (111) hide show
  1. package/dist/dates/event.d.ts +18 -18
  2. package/dist/file-exports/file-exports.d.ts +3 -3
  3. package/dist/file-exports/ride-export.d.ts +6 -6
  4. package/dist/file-exports/sams-analysis-export.d.ts +10 -10
  5. package/dist/file-exports/stop-export.d.ts +8 -8
  6. package/dist/gtfs-new/stop-times.d.ts +2 -2
  7. package/dist/gtfs-new/trips.d.ts +3 -3
  8. package/dist/gtfs-rt/alert.d.ts +10 -10
  9. package/dist/gtfs-rt/entity-selector.d.ts +6 -6
  10. package/dist/gtfs-rt/feed-entity.d.ts +20 -20
  11. package/dist/gtfs-rt/feed-message.d.ts +26 -26
  12. package/dist/gtfs-rt/trip-descriptor.d.ts +2 -2
  13. package/dist/gtfs-rt/vehicle-position.d.ts +4 -4
  14. package/dist/gtfs-tml/fares.d.ts +4 -4
  15. package/dist/gtfs-tml/stop-times.d.ts +2 -2
  16. package/dist/gtfs-tml/trips.d.ts +3 -3
  17. package/dist/hub/api/network/pattern.d.ts +2 -2
  18. package/dist/hub/api/network/route.d.ts +2 -2
  19. package/dist/hub/api/network/stop.d.ts +2 -2
  20. package/dist/hub/api/realtime/vehicle-position.d.ts +7 -7
  21. package/dist/index.d.ts +0 -1
  22. package/dist/index.js +0 -1
  23. package/dist/metrics/demand/demand_by_category.d.ts +36 -36
  24. package/dist/metrics/index.d.ts +36 -36
  25. package/dist/notification.d.ts +10 -10
  26. package/dist/offer/fare.d.ts +16 -16
  27. package/dist/offer/parameters.d.ts +8 -8
  28. package/dist/offer/pattern.d.ts +108 -108
  29. package/dist/offer/route.d.ts +6 -6
  30. package/dist/offer/rules.d.ts +42 -42
  31. package/dist/operation/hashed-lines/hashed-line.d.ts +2 -2
  32. package/dist/operation/hashed-patterns/hashed-pattern.d.ts +2 -2
  33. package/dist/operation/hashed-trips/hashed-trip.d.ts +2 -2
  34. package/dist/operation/lines/operational-line.d.ts +4 -4
  35. package/dist/operation/rides/ride-normalized.d.ts +6 -6
  36. package/dist/operation/rides/ride.d.ts +24 -24
  37. package/dist/operation/stops/operational-stop.d.ts +5 -5
  38. package/dist/sams/sam-analysis.d.ts +10 -10
  39. package/dist/sams/sam-analysis.js +1 -1
  40. package/dist/sams/sam.d.ts +60 -60
  41. package/dist/stops/flag.d.ts +1 -1
  42. package/dist/stops/stop.d.ts +12 -12
  43. package/dist/vehicle-events/raw/ccfl/v1.d.ts +2 -2
  44. package/dist/vehicle-events/raw/cmet/v1-core.d.ts +2 -2
  45. package/dist/vehicle-events/raw/cmet/v1-log.d.ts +2 -2
  46. package/dist/vehicle-events/raw/cp/v1.d.ts +2 -2
  47. package/dist/vehicle-events/raw/crtm-aisa/v1.d.ts +16 -16
  48. package/dist/vehicle-events/raw/fertagus/v1.d.ts +16 -16
  49. package/dist/vehicle-events/raw/mobi/v1.d.ts +16 -16
  50. package/dist/vehicle-events/raw/raw-vehicle-event-base.d.ts +2 -2
  51. package/dist/vehicle-events/raw/raw-vehicle-event.d.ts +50 -50
  52. package/dist/vehicle-events/raw/tcb/v1.d.ts +16 -16
  53. package/dist/vehicle-events/raw/ttsl/v1.d.ts +2 -2
  54. package/dist/vehicle-events/simplified/simplified-vehicle-event.d.ts +7 -7
  55. package/package.json +2 -1
  56. package/dist/apex/index.d.ts +0 -2
  57. package/dist/apex/index.js +0 -2
  58. package/dist/apex/raw/banking-taps/banking-tap-v40.d.ts +0 -669
  59. package/dist/apex/raw/banking-taps/banking-tap-v40.js +0 -65
  60. package/dist/apex/raw/banking-taps/index.d.ts +0 -1
  61. package/dist/apex/raw/banking-taps/index.js +0 -1
  62. package/dist/apex/raw/index.d.ts +0 -7
  63. package/dist/apex/raw/index.js +0 -7
  64. package/dist/apex/raw/inspections/index.d.ts +0 -2
  65. package/dist/apex/raw/inspections/index.js +0 -2
  66. package/dist/apex/raw/inspections/inspection-decision-v20.d.ts +0 -481
  67. package/dist/apex/raw/inspections/inspection-decision-v20.js +0 -49
  68. package/dist/apex/raw/inspections/inspection-v20.d.ts +0 -961
  69. package/dist/apex/raw/inspections/inspection-v20.js +0 -89
  70. package/dist/apex/raw/locations/index.d.ts +0 -1
  71. package/dist/apex/raw/locations/index.js +0 -1
  72. package/dist/apex/raw/locations/location-v30.d.ts +0 -645
  73. package/dist/apex/raw/locations/location-v30.js +0 -63
  74. package/dist/apex/raw/raw-apex-transaction-base.d.ts +0 -30
  75. package/dist/apex/raw/raw-apex-transaction-base.js +0 -13
  76. package/dist/apex/raw/raw-apex-transaction.d.ts +0 -3662
  77. package/dist/apex/raw/raw-apex-transaction.js +0 -21
  78. package/dist/apex/raw/sales/index.d.ts +0 -2
  79. package/dist/apex/raw/sales/index.js +0 -2
  80. package/dist/apex/raw/sales/refund-v30.d.ts +0 -769
  81. package/dist/apex/raw/sales/refund-v30.js +0 -74
  82. package/dist/apex/raw/sales/sale-v30.d.ts +0 -757
  83. package/dist/apex/raw/sales/sale-v30.js +0 -73
  84. package/dist/apex/raw/validations/index.d.ts +0 -2
  85. package/dist/apex/raw/validations/index.js +0 -2
  86. package/dist/apex/raw/validations/validation-v20.d.ts +0 -901
  87. package/dist/apex/raw/validations/validation-v20.js +0 -85
  88. package/dist/apex/raw/validations/validation-v30.d.ts +0 -901
  89. package/dist/apex/raw/validations/validation-v30.js +0 -85
  90. package/dist/apex/simplified/any-simplified-apex.d.ts +0 -8
  91. package/dist/apex/simplified/any-simplified-apex.js +0 -2
  92. package/dist/apex/simplified/apex-validation-status.d.ts +0 -145
  93. package/dist/apex/simplified/apex-validation-status.js +0 -76
  94. package/dist/apex/simplified/index.d.ts +0 -10
  95. package/dist/apex/simplified/index.js +0 -10
  96. package/dist/apex/simplified/simplified-apex-banking-taps.d.ts +0 -81
  97. package/dist/apex/simplified/simplified-apex-banking-taps.js +0 -27
  98. package/dist/apex/simplified/simplified-apex-inspection-decision.d.ts +0 -55
  99. package/dist/apex/simplified/simplified-apex-inspection-decision.js +0 -18
  100. package/dist/apex/simplified/simplified-apex-inspection.d.ts +0 -82
  101. package/dist/apex/simplified/simplified-apex-inspection.js +0 -27
  102. package/dist/apex/simplified/simplified-apex-location.d.ts +0 -112
  103. package/dist/apex/simplified/simplified-apex-location.js +0 -20
  104. package/dist/apex/simplified/simplified-apex-on-board-refund.d.ts +0 -172
  105. package/dist/apex/simplified/simplified-apex-on-board-refund.js +0 -30
  106. package/dist/apex/simplified/simplified-apex-on-board-sale.d.ts +0 -178
  107. package/dist/apex/simplified/simplified-apex-on-board-sale.js +0 -31
  108. package/dist/apex/simplified/simplified-apex-type.d.ts +0 -9
  109. package/dist/apex/simplified/simplified-apex-type.js +0 -5
  110. package/dist/apex/simplified/simplified-apex-validation.d.ts +0 -200
  111. package/dist/apex/simplified/simplified-apex-validation.js +0 -41
@@ -50,13 +50,13 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
50
50
  start_time: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>;
51
51
  trip_id: z.ZodString;
52
52
  }, "strip", z.ZodTypeAny, {
53
- trip_id: string;
54
53
  route_id: string;
54
+ trip_id: string;
55
55
  start_time?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined;
56
56
  schedule_relationship?: "SCHEDULED" | "NOT_SCHEDULED" | null | undefined;
57
57
  }, {
58
- trip_id: string;
59
58
  route_id: string;
59
+ trip_id: string;
60
60
  start_time?: string | null | undefined;
61
61
  schedule_relationship?: "SCHEDULED" | "NOT_SCHEDULED" | null | undefined;
62
62
  }>;
@@ -72,8 +72,8 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
72
72
  id: string;
73
73
  };
74
74
  trip: {
75
- trip_id: string;
76
75
  route_id: string;
76
+ trip_id: string;
77
77
  start_time?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined;
78
78
  schedule_relationship?: "SCHEDULED" | "NOT_SCHEDULED" | null | undefined;
79
79
  };
@@ -92,8 +92,8 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
92
92
  id: string;
93
93
  };
94
94
  trip: {
95
- trip_id: string;
96
95
  route_id: string;
96
+ trip_id: string;
97
97
  start_time?: string | null | undefined;
98
98
  schedule_relationship?: "SCHEDULED" | "NOT_SCHEDULED" | null | undefined;
99
99
  };
@@ -114,8 +114,8 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
114
114
  id: string;
115
115
  };
116
116
  trip: {
117
- trip_id: string;
118
117
  route_id: string;
118
+ trip_id: string;
119
119
  start_time?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined;
120
120
  schedule_relationship?: "SCHEDULED" | "NOT_SCHEDULED" | null | undefined;
121
121
  };
@@ -142,8 +142,8 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
142
142
  id: string;
143
143
  };
144
144
  trip: {
145
- trip_id: string;
146
145
  route_id: string;
146
+ trip_id: string;
147
147
  start_time?: string | null | undefined;
148
148
  schedule_relationship?: "SCHEDULED" | "NOT_SCHEDULED" | null | undefined;
149
149
  };
@@ -175,15 +175,14 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
175
175
  received_at: number & {
176
176
  __brand: "UnixTimestamp";
177
177
  };
178
- version: "mobi-v1";
179
178
  payload: {
180
179
  vehicle: {
181
180
  vehicle: {
182
181
  id: string;
183
182
  };
184
183
  trip: {
185
- trip_id: string;
186
184
  route_id: string;
185
+ trip_id: string;
187
186
  start_time?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined;
188
187
  schedule_relationship?: "SCHEDULED" | "NOT_SCHEDULED" | null | undefined;
189
188
  };
@@ -206,20 +205,20 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
206
205
  };
207
206
  };
208
207
  entity_id: string;
208
+ version: "mobi-v1";
209
209
  }, {
210
210
  _id: string;
211
211
  created_at: number;
212
212
  agency_id: string;
213
213
  received_at: number;
214
- version: "mobi-v1";
215
214
  payload: {
216
215
  vehicle: {
217
216
  vehicle: {
218
217
  id: string;
219
218
  };
220
219
  trip: {
221
- trip_id: string;
222
220
  route_id: string;
221
+ trip_id: string;
223
222
  start_time?: string | null | undefined;
224
223
  schedule_relationship?: "SCHEDULED" | "NOT_SCHEDULED" | null | undefined;
225
224
  };
@@ -242,6 +241,7 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
242
241
  };
243
242
  };
244
243
  entity_id: string;
244
+ version: "mobi-v1";
245
245
  }>, z.ZodObject<{
246
246
  _id: z.ZodString;
247
247
  agency_id: z.ZodString;
@@ -404,7 +404,6 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
404
404
  received_at: number & {
405
405
  __brand: "UnixTimestamp";
406
406
  };
407
- version: "ccfl-v1";
408
407
  payload: {
409
408
  vehicle: {
410
409
  vehicle: {
@@ -433,12 +432,12 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
433
432
  };
434
433
  };
435
434
  entity_id: string;
435
+ version: "ccfl-v1";
436
436
  }, {
437
437
  _id: string;
438
438
  created_at: number;
439
439
  agency_id: string;
440
440
  received_at: number;
441
- version: "ccfl-v1";
442
441
  payload: {
443
442
  vehicle: {
444
443
  vehicle: {
@@ -467,6 +466,7 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
467
466
  };
468
467
  };
469
468
  entity_id: string;
469
+ version: "ccfl-v1";
470
470
  }>, z.ZodObject<{
471
471
  _id: z.ZodString;
472
472
  agency_id: z.ZodString;
@@ -716,7 +716,6 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
716
716
  received_at: number & {
717
717
  __brand: "UnixTimestamp";
718
718
  };
719
- version: "cmet-v1-core";
720
719
  payload: {
721
720
  vehicle: {
722
721
  vehicle: {
@@ -758,12 +757,12 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
758
757
  };
759
758
  };
760
759
  entity_id: string;
760
+ version: "cmet-v1-core";
761
761
  }, {
762
762
  _id: string;
763
763
  created_at: number;
764
764
  agency_id: string;
765
765
  received_at: number;
766
- version: "cmet-v1-core";
767
766
  payload: {
768
767
  vehicle: {
769
768
  vehicle: {
@@ -805,6 +804,7 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
805
804
  };
806
805
  };
807
806
  entity_id: string;
807
+ version: "cmet-v1-core";
808
808
  }>, z.ZodObject<{
809
809
  _id: z.ZodString;
810
810
  agency_id: z.ZodString;
@@ -1054,7 +1054,6 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1054
1054
  received_at: number & {
1055
1055
  __brand: "UnixTimestamp";
1056
1056
  };
1057
- version: "cmet-v1-log";
1058
1057
  payload: {
1059
1058
  vehicle: {
1060
1059
  vehicle: {
@@ -1096,12 +1095,12 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1096
1095
  };
1097
1096
  };
1098
1097
  entity_id: string;
1098
+ version: "cmet-v1-log";
1099
1099
  }, {
1100
1100
  _id: string;
1101
1101
  created_at: number;
1102
1102
  agency_id: string;
1103
1103
  received_at: number;
1104
- version: "cmet-v1-log";
1105
1104
  payload: {
1106
1105
  vehicle: {
1107
1106
  vehicle: {
@@ -1143,6 +1142,7 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1143
1142
  };
1144
1143
  };
1145
1144
  entity_id: string;
1145
+ version: "cmet-v1-log";
1146
1146
  }>, z.ZodObject<{
1147
1147
  _id: z.ZodString;
1148
1148
  agency_id: z.ZodString;
@@ -1305,7 +1305,6 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1305
1305
  received_at: number & {
1306
1306
  __brand: "UnixTimestamp";
1307
1307
  };
1308
- version: "ttsl-v1";
1309
1308
  payload: {
1310
1309
  vehicle: {
1311
1310
  vehicle: {
@@ -1334,12 +1333,12 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1334
1333
  };
1335
1334
  };
1336
1335
  entity_id: string;
1336
+ version: "ttsl-v1";
1337
1337
  }, {
1338
1338
  _id: string;
1339
1339
  created_at: number;
1340
1340
  agency_id: string;
1341
1341
  received_at: number;
1342
- version: "ttsl-v1";
1343
1342
  payload: {
1344
1343
  vehicle: {
1345
1344
  vehicle: {
@@ -1368,6 +1367,7 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1368
1367
  };
1369
1368
  };
1370
1369
  entity_id: string;
1370
+ version: "ttsl-v1";
1371
1371
  }>, z.ZodObject<{
1372
1372
  _id: z.ZodString;
1373
1373
  agency_id: z.ZodString;
@@ -1518,7 +1518,6 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1518
1518
  received_at: number & {
1519
1519
  __brand: "UnixTimestamp";
1520
1520
  };
1521
- version: "cp-v1";
1522
1521
  payload: {
1523
1522
  vehicle: {
1524
1523
  vehicle: {
@@ -1545,12 +1544,12 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1545
1544
  };
1546
1545
  };
1547
1546
  entity_id: string;
1547
+ version: "cp-v1";
1548
1548
  }, {
1549
1549
  _id: string;
1550
1550
  created_at: number;
1551
1551
  agency_id: string;
1552
1552
  received_at: number;
1553
- version: "cp-v1";
1554
1553
  payload: {
1555
1554
  vehicle: {
1556
1555
  vehicle: {
@@ -1577,6 +1576,7 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1577
1576
  };
1578
1577
  };
1579
1578
  entity_id: string;
1579
+ version: "cp-v1";
1580
1580
  }>, z.ZodObject<{
1581
1581
  _id: z.ZodString;
1582
1582
  agency_id: z.ZodString;
@@ -1635,15 +1635,15 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1635
1635
  start_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1636
1636
  trip_id: z.ZodString;
1637
1637
  }, "strip", z.ZodTypeAny, {
1638
- trip_id: string;
1639
1638
  route_id: string;
1639
+ trip_id: string;
1640
1640
  start_time?: string | null | undefined;
1641
1641
  direction_id?: number | null | undefined;
1642
1642
  schedule_relationship?: "SCHEDULED" | "NOT_SCHEDULED" | "CANCELED" | "ADDED" | null | undefined;
1643
1643
  start_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined;
1644
1644
  }, {
1645
- trip_id: string;
1646
1645
  route_id: string;
1646
+ trip_id: string;
1647
1647
  start_time?: string | null | undefined;
1648
1648
  direction_id?: number | null | undefined;
1649
1649
  schedule_relationship?: "SCHEDULED" | "NOT_SCHEDULED" | "CANCELED" | "ADDED" | null | undefined;
@@ -1665,8 +1665,8 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1665
1665
  label?: string | null | undefined;
1666
1666
  };
1667
1667
  trip: {
1668
- trip_id: string;
1669
1668
  route_id: string;
1669
+ trip_id: string;
1670
1670
  start_time?: string | null | undefined;
1671
1671
  direction_id?: number | null | undefined;
1672
1672
  schedule_relationship?: "SCHEDULED" | "NOT_SCHEDULED" | "CANCELED" | "ADDED" | null | undefined;
@@ -1691,8 +1691,8 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1691
1691
  label?: string | null | undefined;
1692
1692
  };
1693
1693
  trip: {
1694
- trip_id: string;
1695
1694
  route_id: string;
1695
+ trip_id: string;
1696
1696
  start_time?: string | null | undefined;
1697
1697
  direction_id?: number | null | undefined;
1698
1698
  schedule_relationship?: "SCHEDULED" | "NOT_SCHEDULED" | "CANCELED" | "ADDED" | null | undefined;
@@ -1719,8 +1719,8 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1719
1719
  label?: string | null | undefined;
1720
1720
  };
1721
1721
  trip: {
1722
- trip_id: string;
1723
1722
  route_id: string;
1723
+ trip_id: string;
1724
1724
  start_time?: string | null | undefined;
1725
1725
  direction_id?: number | null | undefined;
1726
1726
  schedule_relationship?: "SCHEDULED" | "NOT_SCHEDULED" | "CANCELED" | "ADDED" | null | undefined;
@@ -1753,8 +1753,8 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1753
1753
  label?: string | null | undefined;
1754
1754
  };
1755
1755
  trip: {
1756
- trip_id: string;
1757
1756
  route_id: string;
1757
+ trip_id: string;
1758
1758
  start_time?: string | null | undefined;
1759
1759
  direction_id?: number | null | undefined;
1760
1760
  schedule_relationship?: "SCHEDULED" | "NOT_SCHEDULED" | "CANCELED" | "ADDED" | null | undefined;
@@ -1791,7 +1791,6 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1791
1791
  received_at: number & {
1792
1792
  __brand: "UnixTimestamp";
1793
1793
  };
1794
- version: "crtm-aisa-v1";
1795
1794
  payload: {
1796
1795
  vehicle: {
1797
1796
  vehicle: {
@@ -1799,8 +1798,8 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1799
1798
  label?: string | null | undefined;
1800
1799
  };
1801
1800
  trip: {
1802
- trip_id: string;
1803
1801
  route_id: string;
1802
+ trip_id: string;
1804
1803
  start_time?: string | null | undefined;
1805
1804
  direction_id?: number | null | undefined;
1806
1805
  schedule_relationship?: "SCHEDULED" | "NOT_SCHEDULED" | "CANCELED" | "ADDED" | null | undefined;
@@ -1828,12 +1827,12 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1828
1827
  };
1829
1828
  };
1830
1829
  entity_id: string;
1830
+ version: "crtm-aisa-v1";
1831
1831
  }, {
1832
1832
  _id: string;
1833
1833
  created_at: number;
1834
1834
  agency_id: string;
1835
1835
  received_at: number;
1836
- version: "crtm-aisa-v1";
1837
1836
  payload: {
1838
1837
  vehicle: {
1839
1838
  vehicle: {
@@ -1841,8 +1840,8 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1841
1840
  label?: string | null | undefined;
1842
1841
  };
1843
1842
  trip: {
1844
- trip_id: string;
1845
1843
  route_id: string;
1844
+ trip_id: string;
1846
1845
  start_time?: string | null | undefined;
1847
1846
  direction_id?: number | null | undefined;
1848
1847
  schedule_relationship?: "SCHEDULED" | "NOT_SCHEDULED" | "CANCELED" | "ADDED" | null | undefined;
@@ -1870,6 +1869,7 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1870
1869
  };
1871
1870
  };
1872
1871
  entity_id: string;
1872
+ version: "crtm-aisa-v1";
1873
1873
  }>, z.ZodObject<{
1874
1874
  _id: z.ZodString;
1875
1875
  agency_id: z.ZodString;
@@ -1923,14 +1923,14 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1923
1923
  start_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1924
1924
  trip_id: z.ZodString;
1925
1925
  }, "strip", z.ZodTypeAny, {
1926
- trip_id: string;
1927
1926
  route_id: string;
1927
+ trip_id: string;
1928
1928
  start_time?: string | null | undefined;
1929
1929
  direction_id?: number | null | undefined;
1930
1930
  start_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined;
1931
1931
  }, {
1932
- trip_id: string;
1933
1932
  route_id: string;
1933
+ trip_id: string;
1934
1934
  start_time?: string | null | undefined;
1935
1935
  direction_id?: number | null | undefined;
1936
1936
  start_date?: string | null | undefined;
@@ -1947,8 +1947,8 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1947
1947
  id: string;
1948
1948
  };
1949
1949
  trip: {
1950
- trip_id: string;
1951
1950
  route_id: string;
1951
+ trip_id: string;
1952
1952
  start_time?: string | null | undefined;
1953
1953
  direction_id?: number | null | undefined;
1954
1954
  start_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined;
@@ -1969,8 +1969,8 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1969
1969
  id: string;
1970
1970
  };
1971
1971
  trip: {
1972
- trip_id: string;
1973
1972
  route_id: string;
1973
+ trip_id: string;
1974
1974
  start_time?: string | null | undefined;
1975
1975
  direction_id?: number | null | undefined;
1976
1976
  start_date?: string | null | undefined;
@@ -1993,8 +1993,8 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
1993
1993
  id: string;
1994
1994
  };
1995
1995
  trip: {
1996
- trip_id: string;
1997
1996
  route_id: string;
1997
+ trip_id: string;
1998
1998
  start_time?: string | null | undefined;
1999
1999
  direction_id?: number | null | undefined;
2000
2000
  start_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined;
@@ -2023,8 +2023,8 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
2023
2023
  id: string;
2024
2024
  };
2025
2025
  trip: {
2026
- trip_id: string;
2027
2026
  route_id: string;
2027
+ trip_id: string;
2028
2028
  start_time?: string | null | undefined;
2029
2029
  direction_id?: number | null | undefined;
2030
2030
  start_date?: string | null | undefined;
@@ -2058,15 +2058,14 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
2058
2058
  received_at: number & {
2059
2059
  __brand: "UnixTimestamp";
2060
2060
  };
2061
- version: "tcb-v1";
2062
2061
  payload: {
2063
2062
  vehicle: {
2064
2063
  vehicle: {
2065
2064
  id: string;
2066
2065
  };
2067
2066
  trip: {
2068
- trip_id: string;
2069
2067
  route_id: string;
2068
+ trip_id: string;
2070
2069
  start_time?: string | null | undefined;
2071
2070
  direction_id?: number | null | undefined;
2072
2071
  start_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined;
@@ -2091,20 +2090,20 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
2091
2090
  };
2092
2091
  };
2093
2092
  entity_id: string;
2093
+ version: "tcb-v1";
2094
2094
  }, {
2095
2095
  _id: string;
2096
2096
  created_at: number;
2097
2097
  agency_id: string;
2098
2098
  received_at: number;
2099
- version: "tcb-v1";
2100
2099
  payload: {
2101
2100
  vehicle: {
2102
2101
  vehicle: {
2103
2102
  id: string;
2104
2103
  };
2105
2104
  trip: {
2106
- trip_id: string;
2107
2105
  route_id: string;
2106
+ trip_id: string;
2108
2107
  start_time?: string | null | undefined;
2109
2108
  direction_id?: number | null | undefined;
2110
2109
  start_date?: string | null | undefined;
@@ -2129,6 +2128,7 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
2129
2128
  };
2130
2129
  };
2131
2130
  entity_id: string;
2131
+ version: "tcb-v1";
2132
2132
  }>, z.ZodObject<{
2133
2133
  _id: z.ZodString;
2134
2134
  agency_id: z.ZodString;
@@ -2174,15 +2174,15 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
2174
2174
  trip_id: z.ZodString;
2175
2175
  }, "strip", z.ZodTypeAny, {
2176
2176
  line_id: string;
2177
+ route_id: string;
2177
2178
  pattern_id: string;
2178
2179
  trip_id: string;
2179
- route_id: string;
2180
2180
  schedule_relationship: "SCHEDULED";
2181
2181
  }, {
2182
2182
  line_id: string;
2183
+ route_id: string;
2183
2184
  pattern_id: string;
2184
2185
  trip_id: string;
2185
- route_id: string;
2186
2186
  schedule_relationship: "SCHEDULED";
2187
2187
  }>;
2188
2188
  vehicle: z.ZodObject<{
@@ -2198,9 +2198,9 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
2198
2198
  };
2199
2199
  trip: {
2200
2200
  line_id: string;
2201
+ route_id: string;
2201
2202
  pattern_id: string;
2202
2203
  trip_id: string;
2203
- route_id: string;
2204
2204
  schedule_relationship: "SCHEDULED";
2205
2205
  };
2206
2206
  current_status: "IN_TRANSIT_TO";
@@ -2216,9 +2216,9 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
2216
2216
  };
2217
2217
  trip: {
2218
2218
  line_id: string;
2219
+ route_id: string;
2219
2220
  pattern_id: string;
2220
2221
  trip_id: string;
2221
- route_id: string;
2222
2222
  schedule_relationship: "SCHEDULED";
2223
2223
  };
2224
2224
  current_status: "IN_TRANSIT_TO";
@@ -2236,9 +2236,9 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
2236
2236
  };
2237
2237
  trip: {
2238
2238
  line_id: string;
2239
+ route_id: string;
2239
2240
  pattern_id: string;
2240
2241
  trip_id: string;
2241
- route_id: string;
2242
2242
  schedule_relationship: "SCHEDULED";
2243
2243
  };
2244
2244
  current_status: "IN_TRANSIT_TO";
@@ -2263,9 +2263,9 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
2263
2263
  };
2264
2264
  trip: {
2265
2265
  line_id: string;
2266
+ route_id: string;
2266
2267
  pattern_id: string;
2267
2268
  trip_id: string;
2268
- route_id: string;
2269
2269
  schedule_relationship: "SCHEDULED";
2270
2270
  };
2271
2271
  current_status: "IN_TRANSIT_TO";
@@ -2292,7 +2292,6 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
2292
2292
  received_at: number & {
2293
2293
  __brand: "UnixTimestamp";
2294
2294
  };
2295
- version: "fertagus-v1";
2296
2295
  payload: {
2297
2296
  vehicle: {
2298
2297
  vehicle: {
@@ -2300,9 +2299,9 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
2300
2299
  };
2301
2300
  trip: {
2302
2301
  line_id: string;
2302
+ route_id: string;
2303
2303
  pattern_id: string;
2304
2304
  trip_id: string;
2305
- route_id: string;
2306
2305
  schedule_relationship: "SCHEDULED";
2307
2306
  };
2308
2307
  current_status: "IN_TRANSIT_TO";
@@ -2322,12 +2321,12 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
2322
2321
  };
2323
2322
  };
2324
2323
  entity_id: string;
2324
+ version: "fertagus-v1";
2325
2325
  }, {
2326
2326
  _id: string;
2327
2327
  created_at: number;
2328
2328
  agency_id: string;
2329
2329
  received_at: number;
2330
- version: "fertagus-v1";
2331
2330
  payload: {
2332
2331
  vehicle: {
2333
2332
  vehicle: {
@@ -2335,9 +2334,9 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
2335
2334
  };
2336
2335
  trip: {
2337
2336
  line_id: string;
2337
+ route_id: string;
2338
2338
  pattern_id: string;
2339
2339
  trip_id: string;
2340
- route_id: string;
2341
2340
  schedule_relationship: "SCHEDULED";
2342
2341
  };
2343
2342
  current_status: "IN_TRANSIT_TO";
@@ -2355,6 +2354,7 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
2355
2354
  };
2356
2355
  };
2357
2356
  entity_id: string;
2357
+ version: "fertagus-v1";
2358
2358
  }>]>;
2359
2359
  /**
2360
2360
  * This type represents the raw vehicle event as it is received from