@tmlmobilidade/types 20260627.17.1 → 20260627.41.35
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.
- package/dist/alerts/cause.d.ts +1 -1
- package/dist/alerts/effect.d.ts +1 -1
- package/dist/gtfs/feed-info.d.ts +2 -2
- package/dist/gtfs-tml/feed-info.d.ts +2 -2
- package/dist/gtfs-validation/gtfs-validation.d.ts +12 -12
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/locations/queries.d.ts +4 -4
- package/dist/offer/pattern.d.ts +72 -72
- package/dist/offer/route-path-type.d.ts +2 -2
- package/dist/offer/route.d.ts +6 -6
- package/dist/offer/rules.d.ts +18 -18
- package/dist/offer/typology.d.ts +7 -7
- package/dist/offer/vkm.d.ts +15 -15
- package/dist/operation/lines/operational-line.d.ts +4 -4
- package/dist/operation/stops/operational-stop.d.ts +4 -4
- package/dist/organization.d.ts +5 -5
- package/dist/plans/plan-app-status.d.ts +2 -2
- package/dist/plans/plan.d.ts +94 -94
- package/dist/vehicle/vehicle.d.ts +5 -5
- package/dist/vehicle-events/raw/ccfl/v1.d.ts +54 -54
- package/dist/vehicle-events/raw/ccfl/v1.js +1 -1
- package/dist/vehicle-events/raw/cmet/v1-core.d.ts +88 -88
- package/dist/vehicle-events/raw/cmet/v1-log.d.ts +88 -88
- package/dist/vehicle-events/raw/cp/v1.d.ts +64 -64
- package/dist/vehicle-events/raw/cp/v1.js +1 -1
- package/dist/vehicle-events/raw/crtm-aisa/v1.d.ts +112 -112
- package/dist/vehicle-events/raw/crtm-aisa/v1.js +1 -2
- package/dist/vehicle-events/raw/crtm-laveloz/v1.d.ts +112 -112
- package/dist/vehicle-events/raw/crtm-laveloz/v1.js +1 -1
- package/dist/vehicle-events/raw/fertagus/v1.d.ts +64 -64
- package/dist/vehicle-events/raw/ml/v1.d.ts +54 -54
- package/dist/vehicle-events/raw/mobi/v1.d.ts +84 -84
- package/dist/vehicle-events/raw/mobi/v1.js +1 -1
- package/dist/vehicle-events/raw/raw-vehicle-event-base.d.ts +2 -2
- package/dist/vehicle-events/raw/raw-vehicle-event.d.ts +530 -530
- package/dist/vehicle-events/raw/tcb/v1.d.ts +84 -84
- package/dist/vehicle-events/raw/tcb/v1.js +1 -1
- package/dist/vehicle-events/raw/ttsl/v1.d.ts +54 -54
- package/dist/vehicle-events/raw/ttsl/v1.js +1 -1
- package/dist/vehicle-events/simplified/simplified-vehicle-event.d.ts +7 -7
- package/package.json +2 -1
- package/dist/gtfs-rt/alert.d.ts +0 -347
- package/dist/gtfs-rt/alert.js +0 -24
- package/dist/gtfs-rt/carriage-details.d.ts +0 -21
- package/dist/gtfs-rt/carriage-details.js +0 -11
- package/dist/gtfs-rt/cause.d.ts +0 -10
- package/dist/gtfs-rt/cause.js +0 -18
- package/dist/gtfs-rt/congestion-level.d.ts +0 -4
- package/dist/gtfs-rt/congestion-level.js +0 -11
- package/dist/gtfs-rt/effect.d.ts +0 -10
- package/dist/gtfs-rt/effect.js +0 -17
- package/dist/gtfs-rt/entity-selector.d.ts +0 -68
- package/dist/gtfs-rt/entity-selector.js +0 -12
- package/dist/gtfs-rt/feed-entity.d.ts +0 -729
- package/dist/gtfs-rt/feed-entity.js +0 -11
- package/dist/gtfs-rt/feed-header.d.ts +0 -18
- package/dist/gtfs-rt/feed-header.js +0 -9
- package/dist/gtfs-rt/feed-message.d.ts +0 -975
- package/dist/gtfs-rt/feed-message.js +0 -9
- package/dist/gtfs-rt/index.d.ts +0 -22
- package/dist/gtfs-rt/index.js +0 -22
- package/dist/gtfs-rt/localized-image.d.ts +0 -15
- package/dist/gtfs-rt/localized-image.js +0 -8
- package/dist/gtfs-rt/occupancy-status.d.ts +0 -4
- package/dist/gtfs-rt/occupancy-status.js +0 -15
- package/dist/gtfs-rt/position.d.ts +0 -21
- package/dist/gtfs-rt/position.js +0 -10
- package/dist/gtfs-rt/severity-level.d.ts +0 -4
- package/dist/gtfs-rt/severity-level.js +0 -10
- package/dist/gtfs-rt/time-range.d.ts +0 -12
- package/dist/gtfs-rt/time-range.js +0 -7
- package/dist/gtfs-rt/translated-image.d.ts +0 -29
- package/dist/gtfs-rt/translated-image.js +0 -7
- package/dist/gtfs-rt/translated-string.d.ts +0 -24
- package/dist/gtfs-rt/translated-string.js +0 -7
- package/dist/gtfs-rt/translation.d.ts +0 -12
- package/dist/gtfs-rt/translation.js +0 -7
- package/dist/gtfs-rt/trip-descriptor.d.ts +0 -29
- package/dist/gtfs-rt/trip-descriptor.js +0 -13
- package/dist/gtfs-rt/vehicle-descriptor.d.ts +0 -18
- package/dist/gtfs-rt/vehicle-descriptor.js +0 -10
- package/dist/gtfs-rt/vehicle-position.d.ts +0 -168
- package/dist/gtfs-rt/vehicle-position.js +0 -23
- package/dist/gtfs-rt/vehicle-stop-status.d.ts +0 -4
- package/dist/gtfs-rt/vehicle-stop-status.js +0 -9
- package/dist/gtfs-rt/wheelchair-accessible.d.ts +0 -4
- package/dist/gtfs-rt/wheelchair-accessible.js +0 -10
- package/dist/hub/api/alerts/alert.d.ts +0 -82
- package/dist/hub/api/alerts/alert.js +0 -20
- package/dist/hub/api/alerts/index.d.ts +0 -1
- package/dist/hub/api/alerts/index.js +0 -1
- package/dist/hub/api/index.d.ts +0 -7
- package/dist/hub/api/index.js +0 -7
- package/dist/hub/api/network/index.d.ts +0 -7
- package/dist/hub/api/network/index.js +0 -7
- package/dist/hub/api/network/line.d.ts +0 -66
- package/dist/hub/api/network/line.js +0 -24
- package/dist/hub/api/network/pattern.d.ts +0 -184
- package/dist/hub/api/network/pattern.js +0 -32
- package/dist/hub/api/network/route.d.ts +0 -66
- package/dist/hub/api/network/route.js +0 -24
- package/dist/hub/api/network/scheduled-arrival.d.ts +0 -21
- package/dist/hub/api/network/scheduled-arrival.js +0 -9
- package/dist/hub/api/network/stop.d.ts +0 -97
- package/dist/hub/api/network/stop.js +0 -29
- package/dist/hub/api/network/trip.d.ts +0 -49
- package/dist/hub/api/network/trip.js +0 -11
- package/dist/hub/api/network/waypoint.d.ts +0 -27
- package/dist/hub/api/network/waypoint.js +0 -11
- package/dist/hub/api/patterns.d.ts +0 -16
- package/dist/hub/api/patterns.js +0 -3
- package/dist/hub/api/plans/index.d.ts +0 -1
- package/dist/hub/api/plans/index.js +0 -1
- package/dist/hub/api/plans/plan.d.ts +0 -138
- package/dist/hub/api/plans/plan.js +0 -18
- package/dist/hub/api/realtime/index.d.ts +0 -1
- package/dist/hub/api/realtime/index.js +0 -1
- package/dist/hub/api/realtime/vehicle-position.d.ts +0 -66
- package/dist/hub/api/realtime/vehicle-position.js +0 -31
- package/dist/hub/api/realtime-eta-gtfs.d.ts +0 -41
- package/dist/hub/api/realtime-eta-gtfs.js +0 -2
- package/dist/hub/api/shapes.d.ts +0 -148
- package/dist/hub/api/shapes.js +0 -26
- package/dist/hub/api/timetables.d.ts +0 -36
- package/dist/hub/api/timetables.js +0 -2
- package/dist/hub/gtfs/index.d.ts +0 -1
- package/dist/hub/gtfs/index.js +0 -1
- package/dist/hub/gtfs/stops.d.ts +0 -66
- package/dist/hub/gtfs/stops.js +0 -24
- package/dist/hub/index.d.ts +0 -2
- package/dist/hub/index.js +0 -2
|
@@ -68,6 +68,12 @@ export declare const RawVehicleEventTcbV1PayloadSchema: z.ZodObject<{
|
|
|
68
68
|
vehicle: {
|
|
69
69
|
id: string;
|
|
70
70
|
};
|
|
71
|
+
position: {
|
|
72
|
+
latitude: number;
|
|
73
|
+
longitude: number;
|
|
74
|
+
bearing?: number | null | undefined;
|
|
75
|
+
speed?: number | null | undefined;
|
|
76
|
+
};
|
|
71
77
|
trip: {
|
|
72
78
|
route_id: string;
|
|
73
79
|
trip_id: string;
|
|
@@ -75,21 +81,21 @@ export declare const RawVehicleEventTcbV1PayloadSchema: z.ZodObject<{
|
|
|
75
81
|
direction_id?: number | null | undefined;
|
|
76
82
|
start_date?: import("../../../index.js").OperationalDate | null | undefined;
|
|
77
83
|
};
|
|
78
|
-
position: {
|
|
79
|
-
latitude: number;
|
|
80
|
-
longitude: number;
|
|
81
|
-
bearing?: number | null | undefined;
|
|
82
|
-
speed?: number | null | undefined;
|
|
83
|
-
};
|
|
84
84
|
stop_id?: string | null | undefined;
|
|
85
|
-
|
|
85
|
+
timestamp?: number | null | undefined;
|
|
86
86
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
87
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
87
88
|
current_stop_sequence?: number | null | undefined;
|
|
88
|
-
timestamp?: number | null | undefined;
|
|
89
89
|
}, {
|
|
90
90
|
vehicle: {
|
|
91
91
|
id: string;
|
|
92
92
|
};
|
|
93
|
+
position: {
|
|
94
|
+
latitude: number;
|
|
95
|
+
longitude: number;
|
|
96
|
+
bearing?: number | null | undefined;
|
|
97
|
+
speed?: number | null | undefined;
|
|
98
|
+
};
|
|
93
99
|
trip: {
|
|
94
100
|
route_id: string;
|
|
95
101
|
trip_id: string;
|
|
@@ -97,23 +103,23 @@ export declare const RawVehicleEventTcbV1PayloadSchema: z.ZodObject<{
|
|
|
97
103
|
direction_id?: number | null | undefined;
|
|
98
104
|
start_date?: string | null | undefined;
|
|
99
105
|
};
|
|
100
|
-
position: {
|
|
101
|
-
latitude: number;
|
|
102
|
-
longitude: number;
|
|
103
|
-
bearing?: number | null | undefined;
|
|
104
|
-
speed?: number | null | undefined;
|
|
105
|
-
};
|
|
106
106
|
stop_id?: string | null | undefined;
|
|
107
|
-
|
|
107
|
+
timestamp?: number | null | undefined;
|
|
108
108
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
109
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
109
110
|
current_stop_sequence?: number | null | undefined;
|
|
110
|
-
timestamp?: number | null | undefined;
|
|
111
111
|
}>;
|
|
112
112
|
}, "strip", z.ZodTypeAny, {
|
|
113
113
|
vehicle: {
|
|
114
114
|
vehicle: {
|
|
115
115
|
id: string;
|
|
116
116
|
};
|
|
117
|
+
position: {
|
|
118
|
+
latitude: number;
|
|
119
|
+
longitude: number;
|
|
120
|
+
bearing?: number | null | undefined;
|
|
121
|
+
speed?: number | null | undefined;
|
|
122
|
+
};
|
|
117
123
|
trip: {
|
|
118
124
|
route_id: string;
|
|
119
125
|
trip_id: string;
|
|
@@ -121,17 +127,11 @@ export declare const RawVehicleEventTcbV1PayloadSchema: z.ZodObject<{
|
|
|
121
127
|
direction_id?: number | null | undefined;
|
|
122
128
|
start_date?: import("../../../index.js").OperationalDate | null | undefined;
|
|
123
129
|
};
|
|
124
|
-
position: {
|
|
125
|
-
latitude: number;
|
|
126
|
-
longitude: number;
|
|
127
|
-
bearing?: number | null | undefined;
|
|
128
|
-
speed?: number | null | undefined;
|
|
129
|
-
};
|
|
130
130
|
stop_id?: string | null | undefined;
|
|
131
|
-
|
|
131
|
+
timestamp?: number | null | undefined;
|
|
132
132
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
133
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
133
134
|
current_stop_sequence?: number | null | undefined;
|
|
134
|
-
timestamp?: number | null | undefined;
|
|
135
135
|
};
|
|
136
136
|
header: {
|
|
137
137
|
timestamp: number;
|
|
@@ -144,6 +144,12 @@ export declare const RawVehicleEventTcbV1PayloadSchema: z.ZodObject<{
|
|
|
144
144
|
vehicle: {
|
|
145
145
|
id: string;
|
|
146
146
|
};
|
|
147
|
+
position: {
|
|
148
|
+
latitude: number;
|
|
149
|
+
longitude: number;
|
|
150
|
+
bearing?: number | null | undefined;
|
|
151
|
+
speed?: number | null | undefined;
|
|
152
|
+
};
|
|
147
153
|
trip: {
|
|
148
154
|
route_id: string;
|
|
149
155
|
trip_id: string;
|
|
@@ -151,17 +157,11 @@ export declare const RawVehicleEventTcbV1PayloadSchema: z.ZodObject<{
|
|
|
151
157
|
direction_id?: number | null | undefined;
|
|
152
158
|
start_date?: string | null | undefined;
|
|
153
159
|
};
|
|
154
|
-
position: {
|
|
155
|
-
latitude: number;
|
|
156
|
-
longitude: number;
|
|
157
|
-
bearing?: number | null | undefined;
|
|
158
|
-
speed?: number | null | undefined;
|
|
159
|
-
};
|
|
160
160
|
stop_id?: string | null | undefined;
|
|
161
|
-
|
|
161
|
+
timestamp?: number | null | undefined;
|
|
162
162
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
163
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
163
164
|
current_stop_sequence?: number | null | undefined;
|
|
164
|
-
timestamp?: number | null | undefined;
|
|
165
165
|
};
|
|
166
166
|
header: {
|
|
167
167
|
timestamp: number;
|
|
@@ -247,6 +247,12 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
|
|
|
247
247
|
vehicle: {
|
|
248
248
|
id: string;
|
|
249
249
|
};
|
|
250
|
+
position: {
|
|
251
|
+
latitude: number;
|
|
252
|
+
longitude: number;
|
|
253
|
+
bearing?: number | null | undefined;
|
|
254
|
+
speed?: number | null | undefined;
|
|
255
|
+
};
|
|
250
256
|
trip: {
|
|
251
257
|
route_id: string;
|
|
252
258
|
trip_id: string;
|
|
@@ -254,21 +260,21 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
|
|
|
254
260
|
direction_id?: number | null | undefined;
|
|
255
261
|
start_date?: import("../../../index.js").OperationalDate | null | undefined;
|
|
256
262
|
};
|
|
257
|
-
position: {
|
|
258
|
-
latitude: number;
|
|
259
|
-
longitude: number;
|
|
260
|
-
bearing?: number | null | undefined;
|
|
261
|
-
speed?: number | null | undefined;
|
|
262
|
-
};
|
|
263
263
|
stop_id?: string | null | undefined;
|
|
264
|
-
|
|
264
|
+
timestamp?: number | null | undefined;
|
|
265
265
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
266
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
266
267
|
current_stop_sequence?: number | null | undefined;
|
|
267
|
-
timestamp?: number | null | undefined;
|
|
268
268
|
}, {
|
|
269
269
|
vehicle: {
|
|
270
270
|
id: string;
|
|
271
271
|
};
|
|
272
|
+
position: {
|
|
273
|
+
latitude: number;
|
|
274
|
+
longitude: number;
|
|
275
|
+
bearing?: number | null | undefined;
|
|
276
|
+
speed?: number | null | undefined;
|
|
277
|
+
};
|
|
272
278
|
trip: {
|
|
273
279
|
route_id: string;
|
|
274
280
|
trip_id: string;
|
|
@@ -276,23 +282,23 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
|
|
|
276
282
|
direction_id?: number | null | undefined;
|
|
277
283
|
start_date?: string | null | undefined;
|
|
278
284
|
};
|
|
279
|
-
position: {
|
|
280
|
-
latitude: number;
|
|
281
|
-
longitude: number;
|
|
282
|
-
bearing?: number | null | undefined;
|
|
283
|
-
speed?: number | null | undefined;
|
|
284
|
-
};
|
|
285
285
|
stop_id?: string | null | undefined;
|
|
286
|
-
|
|
286
|
+
timestamp?: number | null | undefined;
|
|
287
287
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
288
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
288
289
|
current_stop_sequence?: number | null | undefined;
|
|
289
|
-
timestamp?: number | null | undefined;
|
|
290
290
|
}>;
|
|
291
291
|
}, "strip", z.ZodTypeAny, {
|
|
292
292
|
vehicle: {
|
|
293
293
|
vehicle: {
|
|
294
294
|
id: string;
|
|
295
295
|
};
|
|
296
|
+
position: {
|
|
297
|
+
latitude: number;
|
|
298
|
+
longitude: number;
|
|
299
|
+
bearing?: number | null | undefined;
|
|
300
|
+
speed?: number | null | undefined;
|
|
301
|
+
};
|
|
296
302
|
trip: {
|
|
297
303
|
route_id: string;
|
|
298
304
|
trip_id: string;
|
|
@@ -300,17 +306,11 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
|
|
|
300
306
|
direction_id?: number | null | undefined;
|
|
301
307
|
start_date?: import("../../../index.js").OperationalDate | null | undefined;
|
|
302
308
|
};
|
|
303
|
-
position: {
|
|
304
|
-
latitude: number;
|
|
305
|
-
longitude: number;
|
|
306
|
-
bearing?: number | null | undefined;
|
|
307
|
-
speed?: number | null | undefined;
|
|
308
|
-
};
|
|
309
309
|
stop_id?: string | null | undefined;
|
|
310
|
-
|
|
310
|
+
timestamp?: number | null | undefined;
|
|
311
311
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
312
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
312
313
|
current_stop_sequence?: number | null | undefined;
|
|
313
|
-
timestamp?: number | null | undefined;
|
|
314
314
|
};
|
|
315
315
|
header: {
|
|
316
316
|
timestamp: number;
|
|
@@ -323,6 +323,12 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
|
|
|
323
323
|
vehicle: {
|
|
324
324
|
id: string;
|
|
325
325
|
};
|
|
326
|
+
position: {
|
|
327
|
+
latitude: number;
|
|
328
|
+
longitude: number;
|
|
329
|
+
bearing?: number | null | undefined;
|
|
330
|
+
speed?: number | null | undefined;
|
|
331
|
+
};
|
|
326
332
|
trip: {
|
|
327
333
|
route_id: string;
|
|
328
334
|
trip_id: string;
|
|
@@ -330,17 +336,11 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
|
|
|
330
336
|
direction_id?: number | null | undefined;
|
|
331
337
|
start_date?: string | null | undefined;
|
|
332
338
|
};
|
|
333
|
-
position: {
|
|
334
|
-
latitude: number;
|
|
335
|
-
longitude: number;
|
|
336
|
-
bearing?: number | null | undefined;
|
|
337
|
-
speed?: number | null | undefined;
|
|
338
|
-
};
|
|
339
339
|
stop_id?: string | null | undefined;
|
|
340
|
-
|
|
340
|
+
timestamp?: number | null | undefined;
|
|
341
341
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
342
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
342
343
|
current_stop_sequence?: number | null | undefined;
|
|
343
|
-
timestamp?: number | null | undefined;
|
|
344
344
|
};
|
|
345
345
|
header: {
|
|
346
346
|
timestamp: number;
|
|
@@ -356,14 +356,17 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
|
|
|
356
356
|
__brand: "UnixTimestamp";
|
|
357
357
|
};
|
|
358
358
|
agency_id: string;
|
|
359
|
-
received_at: number & {
|
|
360
|
-
__brand: "UnixTimestamp";
|
|
361
|
-
};
|
|
362
359
|
payload: {
|
|
363
360
|
vehicle: {
|
|
364
361
|
vehicle: {
|
|
365
362
|
id: string;
|
|
366
363
|
};
|
|
364
|
+
position: {
|
|
365
|
+
latitude: number;
|
|
366
|
+
longitude: number;
|
|
367
|
+
bearing?: number | null | undefined;
|
|
368
|
+
speed?: number | null | undefined;
|
|
369
|
+
};
|
|
367
370
|
trip: {
|
|
368
371
|
route_id: string;
|
|
369
372
|
trip_id: string;
|
|
@@ -371,17 +374,11 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
|
|
|
371
374
|
direction_id?: number | null | undefined;
|
|
372
375
|
start_date?: import("../../../index.js").OperationalDate | null | undefined;
|
|
373
376
|
};
|
|
374
|
-
position: {
|
|
375
|
-
latitude: number;
|
|
376
|
-
longitude: number;
|
|
377
|
-
bearing?: number | null | undefined;
|
|
378
|
-
speed?: number | null | undefined;
|
|
379
|
-
};
|
|
380
377
|
stop_id?: string | null | undefined;
|
|
381
|
-
|
|
378
|
+
timestamp?: number | null | undefined;
|
|
382
379
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
380
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
383
381
|
current_stop_sequence?: number | null | undefined;
|
|
384
|
-
timestamp?: number | null | undefined;
|
|
385
382
|
};
|
|
386
383
|
header: {
|
|
387
384
|
timestamp: number;
|
|
@@ -391,17 +388,25 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
|
|
|
391
388
|
};
|
|
392
389
|
};
|
|
393
390
|
entity_id: string;
|
|
391
|
+
received_at: number & {
|
|
392
|
+
__brand: "UnixTimestamp";
|
|
393
|
+
};
|
|
394
394
|
version: "tcb-v1";
|
|
395
395
|
}, {
|
|
396
396
|
_id: string;
|
|
397
397
|
created_at: number;
|
|
398
398
|
agency_id: string;
|
|
399
|
-
received_at: number;
|
|
400
399
|
payload: {
|
|
401
400
|
vehicle: {
|
|
402
401
|
vehicle: {
|
|
403
402
|
id: string;
|
|
404
403
|
};
|
|
404
|
+
position: {
|
|
405
|
+
latitude: number;
|
|
406
|
+
longitude: number;
|
|
407
|
+
bearing?: number | null | undefined;
|
|
408
|
+
speed?: number | null | undefined;
|
|
409
|
+
};
|
|
405
410
|
trip: {
|
|
406
411
|
route_id: string;
|
|
407
412
|
trip_id: string;
|
|
@@ -409,17 +414,11 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
|
|
|
409
414
|
direction_id?: number | null | undefined;
|
|
410
415
|
start_date?: string | null | undefined;
|
|
411
416
|
};
|
|
412
|
-
position: {
|
|
413
|
-
latitude: number;
|
|
414
|
-
longitude: number;
|
|
415
|
-
bearing?: number | null | undefined;
|
|
416
|
-
speed?: number | null | undefined;
|
|
417
|
-
};
|
|
418
417
|
stop_id?: string | null | undefined;
|
|
419
|
-
|
|
418
|
+
timestamp?: number | null | undefined;
|
|
420
419
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
420
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
421
421
|
current_stop_sequence?: number | null | undefined;
|
|
422
|
-
timestamp?: number | null | undefined;
|
|
423
422
|
};
|
|
424
423
|
header: {
|
|
425
424
|
timestamp: number;
|
|
@@ -429,6 +428,7 @@ export declare const RawVehicleEventTcbV1Schema: z.ZodObject<{
|
|
|
429
428
|
};
|
|
430
429
|
};
|
|
431
430
|
entity_id: string;
|
|
431
|
+
received_at: number;
|
|
432
432
|
version: "tcb-v1";
|
|
433
433
|
}>;
|
|
434
434
|
export type RawVehicleEventTcbV1 = z.infer<typeof RawVehicleEventTcbV1Schema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* * */
|
|
2
|
-
import { GtfsRtOccupancyStatusSchema } from '../../../gtfs-rt/occupancy-status.js';
|
|
3
2
|
import { OperationalDateSchema } from '../../../index.js';
|
|
4
3
|
import { RawVehicleEventBaseSchema } from '../raw-vehicle-event-base.js';
|
|
4
|
+
import { GtfsRtOccupancyStatusSchema } from '@tmlmobilidade/go-types-gtfs-rt';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
/* * */
|
|
7
7
|
export const RawVehicleEventTcbV1PayloadSchema = z.object({
|
|
@@ -59,37 +59,37 @@ export declare const RawVehicleEventTtslV1PayloadSchema: z.ZodObject<{
|
|
|
59
59
|
id: string;
|
|
60
60
|
label: string;
|
|
61
61
|
};
|
|
62
|
-
trip: {
|
|
63
|
-
trip_id: string;
|
|
64
|
-
};
|
|
65
62
|
position: {
|
|
66
63
|
latitude: number;
|
|
67
64
|
longitude: number;
|
|
68
65
|
bearing?: number | null | undefined;
|
|
69
66
|
speed?: number | null | undefined;
|
|
70
67
|
};
|
|
68
|
+
trip: {
|
|
69
|
+
trip_id: string;
|
|
70
|
+
};
|
|
71
71
|
stop_id?: string | null | undefined;
|
|
72
|
-
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
73
|
-
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
74
72
|
timestamp?: number | null | undefined;
|
|
73
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
74
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
75
75
|
}, {
|
|
76
76
|
vehicle: {
|
|
77
77
|
id: string;
|
|
78
78
|
label: string;
|
|
79
79
|
};
|
|
80
|
-
trip: {
|
|
81
|
-
trip_id: string;
|
|
82
|
-
};
|
|
83
80
|
position: {
|
|
84
81
|
latitude: number;
|
|
85
82
|
longitude: number;
|
|
86
83
|
bearing?: number | null | undefined;
|
|
87
84
|
speed?: number | null | undefined;
|
|
88
85
|
};
|
|
86
|
+
trip: {
|
|
87
|
+
trip_id: string;
|
|
88
|
+
};
|
|
89
89
|
stop_id?: string | null | undefined;
|
|
90
|
-
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
91
|
-
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
92
90
|
timestamp?: number | null | undefined;
|
|
91
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
92
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
93
93
|
}>;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
95
|
vehicle: {
|
|
@@ -97,19 +97,19 @@ export declare const RawVehicleEventTtslV1PayloadSchema: z.ZodObject<{
|
|
|
97
97
|
id: string;
|
|
98
98
|
label: string;
|
|
99
99
|
};
|
|
100
|
-
trip: {
|
|
101
|
-
trip_id: string;
|
|
102
|
-
};
|
|
103
100
|
position: {
|
|
104
101
|
latitude: number;
|
|
105
102
|
longitude: number;
|
|
106
103
|
bearing?: number | null | undefined;
|
|
107
104
|
speed?: number | null | undefined;
|
|
108
105
|
};
|
|
106
|
+
trip: {
|
|
107
|
+
trip_id: string;
|
|
108
|
+
};
|
|
109
109
|
stop_id?: string | null | undefined;
|
|
110
|
-
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
111
|
-
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
112
110
|
timestamp?: number | null | undefined;
|
|
111
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
112
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
113
113
|
};
|
|
114
114
|
header: {
|
|
115
115
|
timestamp: number;
|
|
@@ -123,19 +123,19 @@ export declare const RawVehicleEventTtslV1PayloadSchema: z.ZodObject<{
|
|
|
123
123
|
id: string;
|
|
124
124
|
label: string;
|
|
125
125
|
};
|
|
126
|
-
trip: {
|
|
127
|
-
trip_id: string;
|
|
128
|
-
};
|
|
129
126
|
position: {
|
|
130
127
|
latitude: number;
|
|
131
128
|
longitude: number;
|
|
132
129
|
bearing?: number | null | undefined;
|
|
133
130
|
speed?: number | null | undefined;
|
|
134
131
|
};
|
|
132
|
+
trip: {
|
|
133
|
+
trip_id: string;
|
|
134
|
+
};
|
|
135
135
|
stop_id?: string | null | undefined;
|
|
136
|
-
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
137
|
-
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
138
136
|
timestamp?: number | null | undefined;
|
|
137
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
138
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
139
139
|
};
|
|
140
140
|
header: {
|
|
141
141
|
timestamp: number;
|
|
@@ -212,37 +212,37 @@ export declare const RawVehicleEventTtslV1Schema: z.ZodObject<{
|
|
|
212
212
|
id: string;
|
|
213
213
|
label: string;
|
|
214
214
|
};
|
|
215
|
-
trip: {
|
|
216
|
-
trip_id: string;
|
|
217
|
-
};
|
|
218
215
|
position: {
|
|
219
216
|
latitude: number;
|
|
220
217
|
longitude: number;
|
|
221
218
|
bearing?: number | null | undefined;
|
|
222
219
|
speed?: number | null | undefined;
|
|
223
220
|
};
|
|
221
|
+
trip: {
|
|
222
|
+
trip_id: string;
|
|
223
|
+
};
|
|
224
224
|
stop_id?: string | null | undefined;
|
|
225
|
-
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
226
|
-
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
227
225
|
timestamp?: number | null | undefined;
|
|
226
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
227
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
228
228
|
}, {
|
|
229
229
|
vehicle: {
|
|
230
230
|
id: string;
|
|
231
231
|
label: string;
|
|
232
232
|
};
|
|
233
|
-
trip: {
|
|
234
|
-
trip_id: string;
|
|
235
|
-
};
|
|
236
233
|
position: {
|
|
237
234
|
latitude: number;
|
|
238
235
|
longitude: number;
|
|
239
236
|
bearing?: number | null | undefined;
|
|
240
237
|
speed?: number | null | undefined;
|
|
241
238
|
};
|
|
239
|
+
trip: {
|
|
240
|
+
trip_id: string;
|
|
241
|
+
};
|
|
242
242
|
stop_id?: string | null | undefined;
|
|
243
|
-
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
244
|
-
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
245
243
|
timestamp?: number | null | undefined;
|
|
244
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
245
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
246
246
|
}>;
|
|
247
247
|
}, "strip", z.ZodTypeAny, {
|
|
248
248
|
vehicle: {
|
|
@@ -250,19 +250,19 @@ export declare const RawVehicleEventTtslV1Schema: z.ZodObject<{
|
|
|
250
250
|
id: string;
|
|
251
251
|
label: string;
|
|
252
252
|
};
|
|
253
|
-
trip: {
|
|
254
|
-
trip_id: string;
|
|
255
|
-
};
|
|
256
253
|
position: {
|
|
257
254
|
latitude: number;
|
|
258
255
|
longitude: number;
|
|
259
256
|
bearing?: number | null | undefined;
|
|
260
257
|
speed?: number | null | undefined;
|
|
261
258
|
};
|
|
259
|
+
trip: {
|
|
260
|
+
trip_id: string;
|
|
261
|
+
};
|
|
262
262
|
stop_id?: string | null | undefined;
|
|
263
|
-
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
264
|
-
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
265
263
|
timestamp?: number | null | undefined;
|
|
264
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
265
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
266
266
|
};
|
|
267
267
|
header: {
|
|
268
268
|
timestamp: number;
|
|
@@ -276,19 +276,19 @@ export declare const RawVehicleEventTtslV1Schema: z.ZodObject<{
|
|
|
276
276
|
id: string;
|
|
277
277
|
label: string;
|
|
278
278
|
};
|
|
279
|
-
trip: {
|
|
280
|
-
trip_id: string;
|
|
281
|
-
};
|
|
282
279
|
position: {
|
|
283
280
|
latitude: number;
|
|
284
281
|
longitude: number;
|
|
285
282
|
bearing?: number | null | undefined;
|
|
286
283
|
speed?: number | null | undefined;
|
|
287
284
|
};
|
|
285
|
+
trip: {
|
|
286
|
+
trip_id: string;
|
|
287
|
+
};
|
|
288
288
|
stop_id?: string | null | undefined;
|
|
289
|
-
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
290
|
-
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
291
289
|
timestamp?: number | null | undefined;
|
|
290
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
291
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
292
292
|
};
|
|
293
293
|
header: {
|
|
294
294
|
timestamp: number;
|
|
@@ -304,28 +304,25 @@ export declare const RawVehicleEventTtslV1Schema: z.ZodObject<{
|
|
|
304
304
|
__brand: "UnixTimestamp";
|
|
305
305
|
};
|
|
306
306
|
agency_id: string;
|
|
307
|
-
received_at: number & {
|
|
308
|
-
__brand: "UnixTimestamp";
|
|
309
|
-
};
|
|
310
307
|
payload: {
|
|
311
308
|
vehicle: {
|
|
312
309
|
vehicle: {
|
|
313
310
|
id: string;
|
|
314
311
|
label: string;
|
|
315
312
|
};
|
|
316
|
-
trip: {
|
|
317
|
-
trip_id: string;
|
|
318
|
-
};
|
|
319
313
|
position: {
|
|
320
314
|
latitude: number;
|
|
321
315
|
longitude: number;
|
|
322
316
|
bearing?: number | null | undefined;
|
|
323
317
|
speed?: number | null | undefined;
|
|
324
318
|
};
|
|
319
|
+
trip: {
|
|
320
|
+
trip_id: string;
|
|
321
|
+
};
|
|
325
322
|
stop_id?: string | null | undefined;
|
|
326
|
-
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
327
|
-
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
328
323
|
timestamp?: number | null | undefined;
|
|
324
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
325
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
329
326
|
};
|
|
330
327
|
header: {
|
|
331
328
|
timestamp: number;
|
|
@@ -335,31 +332,33 @@ export declare const RawVehicleEventTtslV1Schema: z.ZodObject<{
|
|
|
335
332
|
};
|
|
336
333
|
};
|
|
337
334
|
entity_id: string;
|
|
335
|
+
received_at: number & {
|
|
336
|
+
__brand: "UnixTimestamp";
|
|
337
|
+
};
|
|
338
338
|
version: "ttsl-v1";
|
|
339
339
|
}, {
|
|
340
340
|
_id: string;
|
|
341
341
|
created_at: number;
|
|
342
342
|
agency_id: string;
|
|
343
|
-
received_at: number;
|
|
344
343
|
payload: {
|
|
345
344
|
vehicle: {
|
|
346
345
|
vehicle: {
|
|
347
346
|
id: string;
|
|
348
347
|
label: string;
|
|
349
348
|
};
|
|
350
|
-
trip: {
|
|
351
|
-
trip_id: string;
|
|
352
|
-
};
|
|
353
349
|
position: {
|
|
354
350
|
latitude: number;
|
|
355
351
|
longitude: number;
|
|
356
352
|
bearing?: number | null | undefined;
|
|
357
353
|
speed?: number | null | undefined;
|
|
358
354
|
};
|
|
355
|
+
trip: {
|
|
356
|
+
trip_id: string;
|
|
357
|
+
};
|
|
359
358
|
stop_id?: string | null | undefined;
|
|
360
|
-
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
361
|
-
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
362
359
|
timestamp?: number | null | undefined;
|
|
360
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
361
|
+
occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
|
|
363
362
|
};
|
|
364
363
|
header: {
|
|
365
364
|
timestamp: number;
|
|
@@ -369,6 +368,7 @@ export declare const RawVehicleEventTtslV1Schema: z.ZodObject<{
|
|
|
369
368
|
};
|
|
370
369
|
};
|
|
371
370
|
entity_id: string;
|
|
371
|
+
received_at: number;
|
|
372
372
|
version: "ttsl-v1";
|
|
373
373
|
}>;
|
|
374
374
|
export type RawVehicleEventTtslV1 = z.infer<typeof RawVehicleEventTtslV1Schema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* * */
|
|
2
|
-
import { GtfsRtOccupancyStatusSchema } from '../../../gtfs-rt/occupancy-status.js';
|
|
3
2
|
import { RawVehicleEventBaseSchema } from '../raw-vehicle-event-base.js';
|
|
3
|
+
import { GtfsRtOccupancyStatusSchema } from '@tmlmobilidade/go-types-gtfs-rt';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
/* * */
|
|
6
6
|
export const RawVehicleEventTtslV1PayloadSchema = z.object({
|