@tmlmobilidade/types 20260624.1309.39 → 20260625.1443.7
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/hub/api/shapes.d.ts +3 -0
- package/dist/hub/api/shapes.js +1 -0
- package/dist/offer/pattern.d.ts +88 -0
- package/dist/offer/pattern.js +17 -0
- package/dist/vehicle-events/raw/crtm-laveloz/index.d.ts +1 -0
- package/dist/vehicle-events/raw/crtm-laveloz/index.js +1 -0
- package/dist/vehicle-events/raw/crtm-laveloz/v1.d.ts +470 -0
- package/dist/vehicle-events/raw/crtm-laveloz/v1.js +32 -0
- package/dist/vehicle-events/raw/index.d.ts +1 -0
- package/dist/vehicle-events/raw/index.js +1 -0
- package/dist/vehicle-events/raw/raw-vehicle-event.d.ts +279 -0
- package/dist/vehicle-events/raw/raw-vehicle-event.js +2 -0
- package/package.json +1 -1
package/dist/hub/api/shapes.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export type HubShapePoint = z.infer<typeof HubShapePointSchema>;
|
|
|
51
51
|
export declare const HubShapeSchema: z.ZodObject<{
|
|
52
52
|
_id: z.ZodString;
|
|
53
53
|
agency_id: z.ZodString;
|
|
54
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
54
55
|
extension: z.ZodNumber;
|
|
55
56
|
geojson: z.ZodObject<{
|
|
56
57
|
geometry: z.ZodObject<{
|
|
@@ -114,6 +115,7 @@ export declare const HubShapeSchema: z.ZodObject<{
|
|
|
114
115
|
shape_pt_lon: number;
|
|
115
116
|
shape_pt_sequence: number;
|
|
116
117
|
}[];
|
|
118
|
+
encoded_polyline?: string | undefined;
|
|
117
119
|
}, {
|
|
118
120
|
_id: string;
|
|
119
121
|
agency_id: string;
|
|
@@ -132,6 +134,7 @@ export declare const HubShapeSchema: z.ZodObject<{
|
|
|
132
134
|
shape_pt_lon: number;
|
|
133
135
|
shape_pt_sequence: number;
|
|
134
136
|
}[];
|
|
137
|
+
encoded_polyline?: string | undefined;
|
|
135
138
|
}>;
|
|
136
139
|
/**
|
|
137
140
|
* GeoJSON feature for a hub network shape line.
|
package/dist/hub/api/shapes.js
CHANGED
|
@@ -19,6 +19,7 @@ export const HubShapePointSchema = z.object({
|
|
|
19
19
|
export const HubShapeSchema = z.object({
|
|
20
20
|
_id: z.string(),
|
|
21
21
|
agency_id: z.string(),
|
|
22
|
+
encoded_polyline: z.string().optional(),
|
|
22
23
|
extension: z.number(),
|
|
23
24
|
geojson: HubShapeGeoJsonSchema,
|
|
24
25
|
points: z.array(HubShapePointSchema),
|
package/dist/offer/pattern.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
62
62
|
type?: "via" | "through" | undefined;
|
|
63
63
|
sequence?: number | undefined;
|
|
64
64
|
}>, "many">>;
|
|
65
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
65
66
|
extension: z.ZodNumber;
|
|
66
67
|
geojson: z.ZodObject<{
|
|
67
68
|
geometry: z.ZodObject<{
|
|
@@ -94,6 +95,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
94
95
|
legs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
95
96
|
distance: z.ZodNumber;
|
|
96
97
|
duration: z.ZodNumber;
|
|
98
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
97
99
|
from_index: z.ZodNumber;
|
|
98
100
|
geojson: z.ZodObject<{
|
|
99
101
|
geometry: z.ZodObject<{
|
|
@@ -169,6 +171,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
169
171
|
duration: number;
|
|
170
172
|
from_index: number;
|
|
171
173
|
to_index: number;
|
|
174
|
+
encoded_polyline?: string | undefined;
|
|
172
175
|
}, {
|
|
173
176
|
distance: number;
|
|
174
177
|
geometry: [number, number][];
|
|
@@ -188,6 +191,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
188
191
|
duration: number;
|
|
189
192
|
from_index: number;
|
|
190
193
|
to_index: number;
|
|
194
|
+
encoded_polyline?: string | undefined;
|
|
191
195
|
}>, "many">>;
|
|
192
196
|
}, "strip", z.ZodTypeAny, {
|
|
193
197
|
extension: number;
|
|
@@ -199,6 +203,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
199
203
|
};
|
|
200
204
|
properties?: {} | undefined;
|
|
201
205
|
};
|
|
206
|
+
encoded_polyline?: string | undefined;
|
|
202
207
|
anchors?: {
|
|
203
208
|
_id: string;
|
|
204
209
|
type: "via" | "through";
|
|
@@ -227,6 +232,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
227
232
|
duration: number;
|
|
228
233
|
from_index: number;
|
|
229
234
|
to_index: number;
|
|
235
|
+
encoded_polyline?: string | undefined;
|
|
230
236
|
}[] | undefined;
|
|
231
237
|
}, {
|
|
232
238
|
extension: number;
|
|
@@ -238,6 +244,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
238
244
|
type?: string | undefined;
|
|
239
245
|
properties?: {} | undefined;
|
|
240
246
|
};
|
|
247
|
+
encoded_polyline?: string | undefined;
|
|
241
248
|
anchors?: {
|
|
242
249
|
_id: string;
|
|
243
250
|
after_stop_id: number;
|
|
@@ -266,6 +273,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
266
273
|
duration: number;
|
|
267
274
|
from_index: number;
|
|
268
275
|
to_index: number;
|
|
276
|
+
encoded_polyline?: string | undefined;
|
|
269
277
|
}[] | undefined;
|
|
270
278
|
}>;
|
|
271
279
|
export declare const PatternSchema: z.ZodObject<{
|
|
@@ -856,6 +864,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
856
864
|
type?: "via" | "through" | undefined;
|
|
857
865
|
sequence?: number | undefined;
|
|
858
866
|
}>, "many">>;
|
|
867
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
859
868
|
extension: z.ZodNumber;
|
|
860
869
|
geojson: z.ZodObject<{
|
|
861
870
|
geometry: z.ZodObject<{
|
|
@@ -888,6 +897,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
888
897
|
legs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
889
898
|
distance: z.ZodNumber;
|
|
890
899
|
duration: z.ZodNumber;
|
|
900
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
891
901
|
from_index: z.ZodNumber;
|
|
892
902
|
geojson: z.ZodObject<{
|
|
893
903
|
geometry: z.ZodObject<{
|
|
@@ -963,6 +973,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
963
973
|
duration: number;
|
|
964
974
|
from_index: number;
|
|
965
975
|
to_index: number;
|
|
976
|
+
encoded_polyline?: string | undefined;
|
|
966
977
|
}, {
|
|
967
978
|
distance: number;
|
|
968
979
|
geometry: [number, number][];
|
|
@@ -982,6 +993,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
982
993
|
duration: number;
|
|
983
994
|
from_index: number;
|
|
984
995
|
to_index: number;
|
|
996
|
+
encoded_polyline?: string | undefined;
|
|
985
997
|
}>, "many">>;
|
|
986
998
|
}, "strip", z.ZodTypeAny, {
|
|
987
999
|
extension: number;
|
|
@@ -993,6 +1005,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
993
1005
|
};
|
|
994
1006
|
properties?: {} | undefined;
|
|
995
1007
|
};
|
|
1008
|
+
encoded_polyline?: string | undefined;
|
|
996
1009
|
anchors?: {
|
|
997
1010
|
_id: string;
|
|
998
1011
|
type: "via" | "through";
|
|
@@ -1021,6 +1034,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1021
1034
|
duration: number;
|
|
1022
1035
|
from_index: number;
|
|
1023
1036
|
to_index: number;
|
|
1037
|
+
encoded_polyline?: string | undefined;
|
|
1024
1038
|
}[] | undefined;
|
|
1025
1039
|
}, {
|
|
1026
1040
|
extension: number;
|
|
@@ -1032,6 +1046,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1032
1046
|
type?: string | undefined;
|
|
1033
1047
|
properties?: {} | undefined;
|
|
1034
1048
|
};
|
|
1049
|
+
encoded_polyline?: string | undefined;
|
|
1035
1050
|
anchors?: {
|
|
1036
1051
|
_id: string;
|
|
1037
1052
|
after_stop_id: number;
|
|
@@ -1060,6 +1075,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1060
1075
|
duration: number;
|
|
1061
1076
|
from_index: number;
|
|
1062
1077
|
to_index: number;
|
|
1078
|
+
encoded_polyline?: string | undefined;
|
|
1063
1079
|
}[] | undefined;
|
|
1064
1080
|
}>>;
|
|
1065
1081
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1188,6 +1204,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1188
1204
|
};
|
|
1189
1205
|
properties?: {} | undefined;
|
|
1190
1206
|
};
|
|
1207
|
+
encoded_polyline?: string | undefined;
|
|
1191
1208
|
anchors?: {
|
|
1192
1209
|
_id: string;
|
|
1193
1210
|
type: "via" | "through";
|
|
@@ -1216,6 +1233,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1216
1233
|
duration: number;
|
|
1217
1234
|
from_index: number;
|
|
1218
1235
|
to_index: number;
|
|
1236
|
+
encoded_polyline?: string | undefined;
|
|
1219
1237
|
}[] | undefined;
|
|
1220
1238
|
} | undefined;
|
|
1221
1239
|
parameters?: ({
|
|
@@ -1274,6 +1292,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1274
1292
|
type?: string | undefined;
|
|
1275
1293
|
properties?: {} | undefined;
|
|
1276
1294
|
};
|
|
1295
|
+
encoded_polyline?: string | undefined;
|
|
1277
1296
|
anchors?: {
|
|
1278
1297
|
_id: string;
|
|
1279
1298
|
after_stop_id: number;
|
|
@@ -1302,6 +1321,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
1302
1321
|
duration: number;
|
|
1303
1322
|
from_index: number;
|
|
1304
1323
|
to_index: number;
|
|
1324
|
+
encoded_polyline?: string | undefined;
|
|
1305
1325
|
}[] | undefined;
|
|
1306
1326
|
} | undefined;
|
|
1307
1327
|
rules?: ({
|
|
@@ -1426,6 +1446,49 @@ export declare const PatternSimplifiedSchema: z.ZodObject<{
|
|
|
1426
1446
|
line_id: string;
|
|
1427
1447
|
route_id: string;
|
|
1428
1448
|
}>;
|
|
1449
|
+
export declare const PatternShapeMapItemSchema: z.ZodObject<{
|
|
1450
|
+
agency_id: z.ZodString;
|
|
1451
|
+
color: z.ZodString;
|
|
1452
|
+
destination: z.ZodString;
|
|
1453
|
+
encoded_polyline: z.ZodString;
|
|
1454
|
+
headsign: z.ZodString;
|
|
1455
|
+
line_code: z.ZodString;
|
|
1456
|
+
line_id: z.ZodString;
|
|
1457
|
+
line_name: z.ZodString;
|
|
1458
|
+
line_text_color: z.ZodString;
|
|
1459
|
+
origin: z.ZodString;
|
|
1460
|
+
pattern_code: z.ZodString;
|
|
1461
|
+
pattern_id: z.ZodString;
|
|
1462
|
+
route_id: z.ZodString;
|
|
1463
|
+
}, "strip", z.ZodTypeAny, {
|
|
1464
|
+
agency_id: string;
|
|
1465
|
+
color: string;
|
|
1466
|
+
headsign: string;
|
|
1467
|
+
line_id: string;
|
|
1468
|
+
route_id: string;
|
|
1469
|
+
pattern_id: string;
|
|
1470
|
+
encoded_polyline: string;
|
|
1471
|
+
destination: string;
|
|
1472
|
+
origin: string;
|
|
1473
|
+
line_code: string;
|
|
1474
|
+
line_name: string;
|
|
1475
|
+
line_text_color: string;
|
|
1476
|
+
pattern_code: string;
|
|
1477
|
+
}, {
|
|
1478
|
+
agency_id: string;
|
|
1479
|
+
color: string;
|
|
1480
|
+
headsign: string;
|
|
1481
|
+
line_id: string;
|
|
1482
|
+
route_id: string;
|
|
1483
|
+
pattern_id: string;
|
|
1484
|
+
encoded_polyline: string;
|
|
1485
|
+
destination: string;
|
|
1486
|
+
origin: string;
|
|
1487
|
+
line_code: string;
|
|
1488
|
+
line_name: string;
|
|
1489
|
+
line_text_color: string;
|
|
1490
|
+
pattern_code: string;
|
|
1491
|
+
}>;
|
|
1429
1492
|
export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
1430
1493
|
_id: z.ZodString;
|
|
1431
1494
|
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
@@ -2014,6 +2077,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2014
2077
|
type?: "via" | "through" | undefined;
|
|
2015
2078
|
sequence?: number | undefined;
|
|
2016
2079
|
}>, "many">>;
|
|
2080
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
2017
2081
|
extension: z.ZodNumber;
|
|
2018
2082
|
geojson: z.ZodObject<{
|
|
2019
2083
|
geometry: z.ZodObject<{
|
|
@@ -2046,6 +2110,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2046
2110
|
legs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2047
2111
|
distance: z.ZodNumber;
|
|
2048
2112
|
duration: z.ZodNumber;
|
|
2113
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
2049
2114
|
from_index: z.ZodNumber;
|
|
2050
2115
|
geojson: z.ZodObject<{
|
|
2051
2116
|
geometry: z.ZodObject<{
|
|
@@ -2121,6 +2186,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2121
2186
|
duration: number;
|
|
2122
2187
|
from_index: number;
|
|
2123
2188
|
to_index: number;
|
|
2189
|
+
encoded_polyline?: string | undefined;
|
|
2124
2190
|
}, {
|
|
2125
2191
|
distance: number;
|
|
2126
2192
|
geometry: [number, number][];
|
|
@@ -2140,6 +2206,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2140
2206
|
duration: number;
|
|
2141
2207
|
from_index: number;
|
|
2142
2208
|
to_index: number;
|
|
2209
|
+
encoded_polyline?: string | undefined;
|
|
2143
2210
|
}>, "many">>;
|
|
2144
2211
|
}, "strip", z.ZodTypeAny, {
|
|
2145
2212
|
extension: number;
|
|
@@ -2151,6 +2218,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2151
2218
|
};
|
|
2152
2219
|
properties?: {} | undefined;
|
|
2153
2220
|
};
|
|
2221
|
+
encoded_polyline?: string | undefined;
|
|
2154
2222
|
anchors?: {
|
|
2155
2223
|
_id: string;
|
|
2156
2224
|
type: "via" | "through";
|
|
@@ -2179,6 +2247,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2179
2247
|
duration: number;
|
|
2180
2248
|
from_index: number;
|
|
2181
2249
|
to_index: number;
|
|
2250
|
+
encoded_polyline?: string | undefined;
|
|
2182
2251
|
}[] | undefined;
|
|
2183
2252
|
}, {
|
|
2184
2253
|
extension: number;
|
|
@@ -2190,6 +2259,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2190
2259
|
type?: string | undefined;
|
|
2191
2260
|
properties?: {} | undefined;
|
|
2192
2261
|
};
|
|
2262
|
+
encoded_polyline?: string | undefined;
|
|
2193
2263
|
anchors?: {
|
|
2194
2264
|
_id: string;
|
|
2195
2265
|
after_stop_id: number;
|
|
@@ -2218,6 +2288,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2218
2288
|
duration: number;
|
|
2219
2289
|
from_index: number;
|
|
2220
2290
|
to_index: number;
|
|
2291
|
+
encoded_polyline?: string | undefined;
|
|
2221
2292
|
}[] | undefined;
|
|
2222
2293
|
}>>;
|
|
2223
2294
|
}, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
|
|
@@ -2339,6 +2410,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2339
2410
|
};
|
|
2340
2411
|
properties?: {} | undefined;
|
|
2341
2412
|
};
|
|
2413
|
+
encoded_polyline?: string | undefined;
|
|
2342
2414
|
anchors?: {
|
|
2343
2415
|
_id: string;
|
|
2344
2416
|
type: "via" | "through";
|
|
@@ -2367,6 +2439,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2367
2439
|
duration: number;
|
|
2368
2440
|
from_index: number;
|
|
2369
2441
|
to_index: number;
|
|
2442
|
+
encoded_polyline?: string | undefined;
|
|
2370
2443
|
}[] | undefined;
|
|
2371
2444
|
} | undefined;
|
|
2372
2445
|
parameters?: ({
|
|
@@ -2422,6 +2495,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2422
2495
|
type?: string | undefined;
|
|
2423
2496
|
properties?: {} | undefined;
|
|
2424
2497
|
};
|
|
2498
|
+
encoded_polyline?: string | undefined;
|
|
2425
2499
|
anchors?: {
|
|
2426
2500
|
_id: string;
|
|
2427
2501
|
after_stop_id: number;
|
|
@@ -2450,6 +2524,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
2450
2524
|
duration: number;
|
|
2451
2525
|
from_index: number;
|
|
2452
2526
|
to_index: number;
|
|
2527
|
+
encoded_polyline?: string | undefined;
|
|
2453
2528
|
}[] | undefined;
|
|
2454
2529
|
} | undefined;
|
|
2455
2530
|
rules?: ({
|
|
@@ -2610,6 +2685,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2610
2685
|
type?: "via" | "through" | undefined;
|
|
2611
2686
|
sequence?: number | undefined;
|
|
2612
2687
|
}>, "many">>;
|
|
2688
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
2613
2689
|
extension: z.ZodNumber;
|
|
2614
2690
|
geojson: z.ZodObject<{
|
|
2615
2691
|
geometry: z.ZodObject<{
|
|
@@ -2642,6 +2718,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2642
2718
|
legs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2643
2719
|
distance: z.ZodNumber;
|
|
2644
2720
|
duration: z.ZodNumber;
|
|
2721
|
+
encoded_polyline: z.ZodOptional<z.ZodString>;
|
|
2645
2722
|
from_index: z.ZodNumber;
|
|
2646
2723
|
geojson: z.ZodObject<{
|
|
2647
2724
|
geometry: z.ZodObject<{
|
|
@@ -2717,6 +2794,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2717
2794
|
duration: number;
|
|
2718
2795
|
from_index: number;
|
|
2719
2796
|
to_index: number;
|
|
2797
|
+
encoded_polyline?: string | undefined;
|
|
2720
2798
|
}, {
|
|
2721
2799
|
distance: number;
|
|
2722
2800
|
geometry: [number, number][];
|
|
@@ -2736,6 +2814,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2736
2814
|
duration: number;
|
|
2737
2815
|
from_index: number;
|
|
2738
2816
|
to_index: number;
|
|
2817
|
+
encoded_polyline?: string | undefined;
|
|
2739
2818
|
}>, "many">>;
|
|
2740
2819
|
}, "strip", z.ZodTypeAny, {
|
|
2741
2820
|
extension: number;
|
|
@@ -2747,6 +2826,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2747
2826
|
};
|
|
2748
2827
|
properties?: {} | undefined;
|
|
2749
2828
|
};
|
|
2829
|
+
encoded_polyline?: string | undefined;
|
|
2750
2830
|
anchors?: {
|
|
2751
2831
|
_id: string;
|
|
2752
2832
|
type: "via" | "through";
|
|
@@ -2775,6 +2855,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2775
2855
|
duration: number;
|
|
2776
2856
|
from_index: number;
|
|
2777
2857
|
to_index: number;
|
|
2858
|
+
encoded_polyline?: string | undefined;
|
|
2778
2859
|
}[] | undefined;
|
|
2779
2860
|
}, {
|
|
2780
2861
|
extension: number;
|
|
@@ -2786,6 +2867,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2786
2867
|
type?: string | undefined;
|
|
2787
2868
|
properties?: {} | undefined;
|
|
2788
2869
|
};
|
|
2870
|
+
encoded_polyline?: string | undefined;
|
|
2789
2871
|
anchors?: {
|
|
2790
2872
|
_id: string;
|
|
2791
2873
|
after_stop_id: number;
|
|
@@ -2814,6 +2896,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
2814
2896
|
duration: number;
|
|
2815
2897
|
from_index: number;
|
|
2816
2898
|
to_index: number;
|
|
2899
|
+
encoded_polyline?: string | undefined;
|
|
2817
2900
|
}[] | undefined;
|
|
2818
2901
|
}>>>;
|
|
2819
2902
|
headsign: z.ZodOptional<z.ZodString>;
|
|
@@ -3266,6 +3349,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
3266
3349
|
};
|
|
3267
3350
|
properties?: {} | undefined;
|
|
3268
3351
|
};
|
|
3352
|
+
encoded_polyline?: string | undefined;
|
|
3269
3353
|
anchors?: {
|
|
3270
3354
|
_id: string;
|
|
3271
3355
|
type: "via" | "through";
|
|
@@ -3294,6 +3378,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
3294
3378
|
duration: number;
|
|
3295
3379
|
from_index: number;
|
|
3296
3380
|
to_index: number;
|
|
3381
|
+
encoded_polyline?: string | undefined;
|
|
3297
3382
|
}[] | undefined;
|
|
3298
3383
|
} | undefined;
|
|
3299
3384
|
rules?: {
|
|
@@ -3405,6 +3490,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
3405
3490
|
type?: string | undefined;
|
|
3406
3491
|
properties?: {} | undefined;
|
|
3407
3492
|
};
|
|
3493
|
+
encoded_polyline?: string | undefined;
|
|
3408
3494
|
anchors?: {
|
|
3409
3495
|
_id: string;
|
|
3410
3496
|
after_stop_id: number;
|
|
@@ -3433,6 +3519,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
3433
3519
|
duration: number;
|
|
3434
3520
|
from_index: number;
|
|
3435
3521
|
to_index: number;
|
|
3522
|
+
encoded_polyline?: string | undefined;
|
|
3436
3523
|
}[] | undefined;
|
|
3437
3524
|
} | undefined;
|
|
3438
3525
|
rules?: {
|
|
@@ -3517,6 +3604,7 @@ export type PopulatedPattern = Omit<Pattern, 'path'> & {
|
|
|
3517
3604
|
path: PopulatedPath[];
|
|
3518
3605
|
};
|
|
3519
3606
|
export type PatternSimplified = z.infer<typeof PatternSimplifiedSchema>;
|
|
3607
|
+
export type PatternShapeMapItem = z.infer<typeof PatternShapeMapItemSchema>;
|
|
3520
3608
|
export type Path = z.infer<typeof PathSchema>;
|
|
3521
3609
|
export type PopulatedPath = Path & {
|
|
3522
3610
|
stop: null | Stop;
|
package/dist/offer/pattern.js
CHANGED
|
@@ -42,6 +42,7 @@ const ShapeAnchorSchema = z.object({
|
|
|
42
42
|
const ShapeLegSchema = z.object({
|
|
43
43
|
distance: z.number(),
|
|
44
44
|
duration: z.number(),
|
|
45
|
+
encoded_polyline: z.string().optional(),
|
|
45
46
|
from_index: z.number(),
|
|
46
47
|
geojson: z.object({
|
|
47
48
|
geometry: z.object({
|
|
@@ -61,6 +62,7 @@ const ShapeLegSchema = z.object({
|
|
|
61
62
|
});
|
|
62
63
|
export const ShapeSchema = z.object({
|
|
63
64
|
anchors: z.array(ShapeAnchorSchema).optional(),
|
|
65
|
+
encoded_polyline: z.string().optional(),
|
|
64
66
|
extension: z.number(),
|
|
65
67
|
geojson: z.object({
|
|
66
68
|
geometry: z.object({
|
|
@@ -96,6 +98,21 @@ export const PatternSimplifiedSchema = z.object({
|
|
|
96
98
|
line_id: z.string(),
|
|
97
99
|
route_id: z.string(),
|
|
98
100
|
});
|
|
101
|
+
export const PatternShapeMapItemSchema = z.object({
|
|
102
|
+
agency_id: z.string(),
|
|
103
|
+
color: z.string(),
|
|
104
|
+
destination: z.string(),
|
|
105
|
+
encoded_polyline: z.string(),
|
|
106
|
+
headsign: z.string(),
|
|
107
|
+
line_code: z.string(),
|
|
108
|
+
line_id: z.string(),
|
|
109
|
+
line_name: z.string(),
|
|
110
|
+
line_text_color: z.string(),
|
|
111
|
+
origin: z.string(),
|
|
112
|
+
pattern_code: z.string(),
|
|
113
|
+
pattern_id: z.string(),
|
|
114
|
+
route_id: z.string(),
|
|
115
|
+
});
|
|
99
116
|
/* * */
|
|
100
117
|
export const CreatePatternSchema = PatternSchema.omit({ _id: true, created_at: true, updated_at: true });
|
|
101
118
|
export const UpdatePatternSchema = CreatePatternSchema
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './v1.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './v1.js';
|
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const RawVehicleEventCrtmLaVelozV1PayloadSchema: z.ZodObject<{
|
|
3
|
+
header: z.ZodObject<{
|
|
4
|
+
feed_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
gtfs_realtime_version: z.ZodString;
|
|
6
|
+
incrementality: z.ZodLiteral<"FULL_DATASET">;
|
|
7
|
+
timestamp: z.ZodNumber;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
timestamp: number;
|
|
10
|
+
gtfs_realtime_version: string;
|
|
11
|
+
incrementality: "FULL_DATASET";
|
|
12
|
+
feed_version?: string | null | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
timestamp: number;
|
|
15
|
+
gtfs_realtime_version: string;
|
|
16
|
+
incrementality: "FULL_DATASET";
|
|
17
|
+
feed_version?: string | null | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
vehicle: z.ZodObject<{
|
|
20
|
+
current_status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["INCOMING_AT", "STOPPED_AT", "IN_TRANSIT_TO"]>>>;
|
|
21
|
+
occupancy_status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["EMPTY", "MANY_SEATS_AVAILABLE", "FEW_SEATS_AVAILABLE", "STANDING_ROOM_ONLY", "CRUSHED_STANDING_ROOM_ONLY", "FULL", "NOT_ACCEPTING_PASSENGERS", "NO_DATA_AVAILABLE", "NOT_BOARDABLE"]>>>;
|
|
22
|
+
position: z.ZodObject<{
|
|
23
|
+
bearing: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
latitude: z.ZodNumber;
|
|
25
|
+
longitude: z.ZodNumber;
|
|
26
|
+
odometer: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
speed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
latitude: number;
|
|
30
|
+
longitude: number;
|
|
31
|
+
bearing?: number | null | undefined;
|
|
32
|
+
odometer?: number | null | undefined;
|
|
33
|
+
speed?: number | null | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
latitude: number;
|
|
36
|
+
longitude: number;
|
|
37
|
+
bearing?: number | null | undefined;
|
|
38
|
+
odometer?: number | null | undefined;
|
|
39
|
+
speed?: number | null | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
stop_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
|
+
trip: z.ZodObject<{
|
|
44
|
+
route_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
schedule_relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["SCHEDULED", "ADDED", "UNSCHEDULED", "CANCELED"]>>>;
|
|
46
|
+
start_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
trip_id: z.ZodString;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
trip_id: string;
|
|
50
|
+
route_id?: string | null | undefined;
|
|
51
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
52
|
+
start_date?: string | null | undefined;
|
|
53
|
+
}, {
|
|
54
|
+
trip_id: string;
|
|
55
|
+
route_id?: string | null | undefined;
|
|
56
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
57
|
+
start_date?: string | null | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
vehicle: z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
label: z.ZodString;
|
|
62
|
+
license_plate: z.ZodString;
|
|
63
|
+
wheelchair_accessible: z.ZodEnum<["NO_VALUE", "UNKNOWN", "WHEELCHAIR_ACCESSIBLE", "WHEELCHAIR_INACCESSIBLE"]>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
id: string;
|
|
66
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
67
|
+
label: string;
|
|
68
|
+
license_plate: string;
|
|
69
|
+
}, {
|
|
70
|
+
id: string;
|
|
71
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
72
|
+
label: string;
|
|
73
|
+
license_plate: string;
|
|
74
|
+
}>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
vehicle: {
|
|
77
|
+
id: string;
|
|
78
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
79
|
+
label: string;
|
|
80
|
+
license_plate: string;
|
|
81
|
+
};
|
|
82
|
+
trip: {
|
|
83
|
+
trip_id: string;
|
|
84
|
+
route_id?: string | null | undefined;
|
|
85
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
86
|
+
start_date?: string | null | undefined;
|
|
87
|
+
};
|
|
88
|
+
position: {
|
|
89
|
+
latitude: number;
|
|
90
|
+
longitude: number;
|
|
91
|
+
bearing?: number | null | undefined;
|
|
92
|
+
odometer?: number | null | undefined;
|
|
93
|
+
speed?: number | null | undefined;
|
|
94
|
+
};
|
|
95
|
+
stop_id?: string | null | undefined;
|
|
96
|
+
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;
|
|
97
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
98
|
+
timestamp?: number | null | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
vehicle: {
|
|
101
|
+
id: string;
|
|
102
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
103
|
+
label: string;
|
|
104
|
+
license_plate: string;
|
|
105
|
+
};
|
|
106
|
+
trip: {
|
|
107
|
+
trip_id: string;
|
|
108
|
+
route_id?: string | null | undefined;
|
|
109
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
110
|
+
start_date?: string | null | undefined;
|
|
111
|
+
};
|
|
112
|
+
position: {
|
|
113
|
+
latitude: number;
|
|
114
|
+
longitude: number;
|
|
115
|
+
bearing?: number | null | undefined;
|
|
116
|
+
odometer?: number | null | undefined;
|
|
117
|
+
speed?: number | null | undefined;
|
|
118
|
+
};
|
|
119
|
+
stop_id?: string | null | undefined;
|
|
120
|
+
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;
|
|
121
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
122
|
+
timestamp?: number | null | undefined;
|
|
123
|
+
}>;
|
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
|
125
|
+
vehicle: {
|
|
126
|
+
vehicle: {
|
|
127
|
+
id: string;
|
|
128
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
129
|
+
label: string;
|
|
130
|
+
license_plate: string;
|
|
131
|
+
};
|
|
132
|
+
trip: {
|
|
133
|
+
trip_id: string;
|
|
134
|
+
route_id?: string | null | undefined;
|
|
135
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
136
|
+
start_date?: string | null | undefined;
|
|
137
|
+
};
|
|
138
|
+
position: {
|
|
139
|
+
latitude: number;
|
|
140
|
+
longitude: number;
|
|
141
|
+
bearing?: number | null | undefined;
|
|
142
|
+
odometer?: number | null | undefined;
|
|
143
|
+
speed?: number | null | undefined;
|
|
144
|
+
};
|
|
145
|
+
stop_id?: string | null | undefined;
|
|
146
|
+
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;
|
|
147
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
148
|
+
timestamp?: number | null | undefined;
|
|
149
|
+
};
|
|
150
|
+
header: {
|
|
151
|
+
timestamp: number;
|
|
152
|
+
gtfs_realtime_version: string;
|
|
153
|
+
incrementality: "FULL_DATASET";
|
|
154
|
+
feed_version?: string | null | undefined;
|
|
155
|
+
};
|
|
156
|
+
}, {
|
|
157
|
+
vehicle: {
|
|
158
|
+
vehicle: {
|
|
159
|
+
id: string;
|
|
160
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
161
|
+
label: string;
|
|
162
|
+
license_plate: string;
|
|
163
|
+
};
|
|
164
|
+
trip: {
|
|
165
|
+
trip_id: string;
|
|
166
|
+
route_id?: string | null | undefined;
|
|
167
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
168
|
+
start_date?: string | null | undefined;
|
|
169
|
+
};
|
|
170
|
+
position: {
|
|
171
|
+
latitude: number;
|
|
172
|
+
longitude: number;
|
|
173
|
+
bearing?: number | null | undefined;
|
|
174
|
+
odometer?: number | null | undefined;
|
|
175
|
+
speed?: number | null | undefined;
|
|
176
|
+
};
|
|
177
|
+
stop_id?: string | null | undefined;
|
|
178
|
+
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;
|
|
179
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
180
|
+
timestamp?: number | null | undefined;
|
|
181
|
+
};
|
|
182
|
+
header: {
|
|
183
|
+
timestamp: number;
|
|
184
|
+
gtfs_realtime_version: string;
|
|
185
|
+
incrementality: "FULL_DATASET";
|
|
186
|
+
feed_version?: string | null | undefined;
|
|
187
|
+
};
|
|
188
|
+
}>;
|
|
189
|
+
export type RawVehicleEventCrtmLaVelozV1Payload = z.infer<typeof RawVehicleEventCrtmLaVelozV1PayloadSchema>;
|
|
190
|
+
export declare const RawVehicleEventCrtmLaVelozV1Schema: z.ZodObject<{
|
|
191
|
+
_id: z.ZodString;
|
|
192
|
+
agency_id: z.ZodString;
|
|
193
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
194
|
+
entity_id: z.ZodString;
|
|
195
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
196
|
+
} & {
|
|
197
|
+
payload: z.ZodObject<{
|
|
198
|
+
header: z.ZodObject<{
|
|
199
|
+
feed_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
200
|
+
gtfs_realtime_version: z.ZodString;
|
|
201
|
+
incrementality: z.ZodLiteral<"FULL_DATASET">;
|
|
202
|
+
timestamp: z.ZodNumber;
|
|
203
|
+
}, "strip", z.ZodTypeAny, {
|
|
204
|
+
timestamp: number;
|
|
205
|
+
gtfs_realtime_version: string;
|
|
206
|
+
incrementality: "FULL_DATASET";
|
|
207
|
+
feed_version?: string | null | undefined;
|
|
208
|
+
}, {
|
|
209
|
+
timestamp: number;
|
|
210
|
+
gtfs_realtime_version: string;
|
|
211
|
+
incrementality: "FULL_DATASET";
|
|
212
|
+
feed_version?: string | null | undefined;
|
|
213
|
+
}>;
|
|
214
|
+
vehicle: z.ZodObject<{
|
|
215
|
+
current_status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["INCOMING_AT", "STOPPED_AT", "IN_TRANSIT_TO"]>>>;
|
|
216
|
+
occupancy_status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["EMPTY", "MANY_SEATS_AVAILABLE", "FEW_SEATS_AVAILABLE", "STANDING_ROOM_ONLY", "CRUSHED_STANDING_ROOM_ONLY", "FULL", "NOT_ACCEPTING_PASSENGERS", "NO_DATA_AVAILABLE", "NOT_BOARDABLE"]>>>;
|
|
217
|
+
position: z.ZodObject<{
|
|
218
|
+
bearing: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
219
|
+
latitude: z.ZodNumber;
|
|
220
|
+
longitude: z.ZodNumber;
|
|
221
|
+
odometer: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
222
|
+
speed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
223
|
+
}, "strip", z.ZodTypeAny, {
|
|
224
|
+
latitude: number;
|
|
225
|
+
longitude: number;
|
|
226
|
+
bearing?: number | null | undefined;
|
|
227
|
+
odometer?: number | null | undefined;
|
|
228
|
+
speed?: number | null | undefined;
|
|
229
|
+
}, {
|
|
230
|
+
latitude: number;
|
|
231
|
+
longitude: number;
|
|
232
|
+
bearing?: number | null | undefined;
|
|
233
|
+
odometer?: number | null | undefined;
|
|
234
|
+
speed?: number | null | undefined;
|
|
235
|
+
}>;
|
|
236
|
+
stop_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
237
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
238
|
+
trip: z.ZodObject<{
|
|
239
|
+
route_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
240
|
+
schedule_relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["SCHEDULED", "ADDED", "UNSCHEDULED", "CANCELED"]>>>;
|
|
241
|
+
start_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
+
trip_id: z.ZodString;
|
|
243
|
+
}, "strip", z.ZodTypeAny, {
|
|
244
|
+
trip_id: string;
|
|
245
|
+
route_id?: string | null | undefined;
|
|
246
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
247
|
+
start_date?: string | null | undefined;
|
|
248
|
+
}, {
|
|
249
|
+
trip_id: string;
|
|
250
|
+
route_id?: string | null | undefined;
|
|
251
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
252
|
+
start_date?: string | null | undefined;
|
|
253
|
+
}>;
|
|
254
|
+
vehicle: z.ZodObject<{
|
|
255
|
+
id: z.ZodString;
|
|
256
|
+
label: z.ZodString;
|
|
257
|
+
license_plate: z.ZodString;
|
|
258
|
+
wheelchair_accessible: z.ZodEnum<["NO_VALUE", "UNKNOWN", "WHEELCHAIR_ACCESSIBLE", "WHEELCHAIR_INACCESSIBLE"]>;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
id: string;
|
|
261
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
262
|
+
label: string;
|
|
263
|
+
license_plate: string;
|
|
264
|
+
}, {
|
|
265
|
+
id: string;
|
|
266
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
267
|
+
label: string;
|
|
268
|
+
license_plate: string;
|
|
269
|
+
}>;
|
|
270
|
+
}, "strip", z.ZodTypeAny, {
|
|
271
|
+
vehicle: {
|
|
272
|
+
id: string;
|
|
273
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
274
|
+
label: string;
|
|
275
|
+
license_plate: string;
|
|
276
|
+
};
|
|
277
|
+
trip: {
|
|
278
|
+
trip_id: string;
|
|
279
|
+
route_id?: string | null | undefined;
|
|
280
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
281
|
+
start_date?: string | null | undefined;
|
|
282
|
+
};
|
|
283
|
+
position: {
|
|
284
|
+
latitude: number;
|
|
285
|
+
longitude: number;
|
|
286
|
+
bearing?: number | null | undefined;
|
|
287
|
+
odometer?: number | null | undefined;
|
|
288
|
+
speed?: number | null | undefined;
|
|
289
|
+
};
|
|
290
|
+
stop_id?: string | 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
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
293
|
+
timestamp?: number | null | undefined;
|
|
294
|
+
}, {
|
|
295
|
+
vehicle: {
|
|
296
|
+
id: string;
|
|
297
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
298
|
+
label: string;
|
|
299
|
+
license_plate: string;
|
|
300
|
+
};
|
|
301
|
+
trip: {
|
|
302
|
+
trip_id: string;
|
|
303
|
+
route_id?: string | null | undefined;
|
|
304
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
305
|
+
start_date?: string | null | undefined;
|
|
306
|
+
};
|
|
307
|
+
position: {
|
|
308
|
+
latitude: number;
|
|
309
|
+
longitude: number;
|
|
310
|
+
bearing?: number | null | undefined;
|
|
311
|
+
odometer?: number | null | undefined;
|
|
312
|
+
speed?: number | null | undefined;
|
|
313
|
+
};
|
|
314
|
+
stop_id?: string | null | undefined;
|
|
315
|
+
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;
|
|
316
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
317
|
+
timestamp?: number | null | undefined;
|
|
318
|
+
}>;
|
|
319
|
+
}, "strip", z.ZodTypeAny, {
|
|
320
|
+
vehicle: {
|
|
321
|
+
vehicle: {
|
|
322
|
+
id: string;
|
|
323
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
324
|
+
label: string;
|
|
325
|
+
license_plate: string;
|
|
326
|
+
};
|
|
327
|
+
trip: {
|
|
328
|
+
trip_id: string;
|
|
329
|
+
route_id?: string | null | undefined;
|
|
330
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
331
|
+
start_date?: string | null | undefined;
|
|
332
|
+
};
|
|
333
|
+
position: {
|
|
334
|
+
latitude: number;
|
|
335
|
+
longitude: number;
|
|
336
|
+
bearing?: number | null | undefined;
|
|
337
|
+
odometer?: number | null | undefined;
|
|
338
|
+
speed?: number | null | undefined;
|
|
339
|
+
};
|
|
340
|
+
stop_id?: string | null | undefined;
|
|
341
|
+
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
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
343
|
+
timestamp?: number | null | undefined;
|
|
344
|
+
};
|
|
345
|
+
header: {
|
|
346
|
+
timestamp: number;
|
|
347
|
+
gtfs_realtime_version: string;
|
|
348
|
+
incrementality: "FULL_DATASET";
|
|
349
|
+
feed_version?: string | null | undefined;
|
|
350
|
+
};
|
|
351
|
+
}, {
|
|
352
|
+
vehicle: {
|
|
353
|
+
vehicle: {
|
|
354
|
+
id: string;
|
|
355
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
356
|
+
label: string;
|
|
357
|
+
license_plate: string;
|
|
358
|
+
};
|
|
359
|
+
trip: {
|
|
360
|
+
trip_id: string;
|
|
361
|
+
route_id?: string | null | undefined;
|
|
362
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
363
|
+
start_date?: string | null | undefined;
|
|
364
|
+
};
|
|
365
|
+
position: {
|
|
366
|
+
latitude: number;
|
|
367
|
+
longitude: number;
|
|
368
|
+
bearing?: number | null | undefined;
|
|
369
|
+
odometer?: number | null | undefined;
|
|
370
|
+
speed?: number | null | undefined;
|
|
371
|
+
};
|
|
372
|
+
stop_id?: string | null | undefined;
|
|
373
|
+
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;
|
|
374
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
375
|
+
timestamp?: number | null | undefined;
|
|
376
|
+
};
|
|
377
|
+
header: {
|
|
378
|
+
timestamp: number;
|
|
379
|
+
gtfs_realtime_version: string;
|
|
380
|
+
incrementality: "FULL_DATASET";
|
|
381
|
+
feed_version?: string | null | undefined;
|
|
382
|
+
};
|
|
383
|
+
}>;
|
|
384
|
+
version: z.ZodLiteral<"crtm-laveloz-v1">;
|
|
385
|
+
}, "strip", z.ZodTypeAny, {
|
|
386
|
+
_id: string;
|
|
387
|
+
created_at: number & {
|
|
388
|
+
__brand: "UnixTimestamp";
|
|
389
|
+
};
|
|
390
|
+
agency_id: string;
|
|
391
|
+
received_at: number & {
|
|
392
|
+
__brand: "UnixTimestamp";
|
|
393
|
+
};
|
|
394
|
+
payload: {
|
|
395
|
+
vehicle: {
|
|
396
|
+
vehicle: {
|
|
397
|
+
id: string;
|
|
398
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
399
|
+
label: string;
|
|
400
|
+
license_plate: string;
|
|
401
|
+
};
|
|
402
|
+
trip: {
|
|
403
|
+
trip_id: string;
|
|
404
|
+
route_id?: string | null | undefined;
|
|
405
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
406
|
+
start_date?: string | null | undefined;
|
|
407
|
+
};
|
|
408
|
+
position: {
|
|
409
|
+
latitude: number;
|
|
410
|
+
longitude: number;
|
|
411
|
+
bearing?: number | null | undefined;
|
|
412
|
+
odometer?: number | null | undefined;
|
|
413
|
+
speed?: number | null | undefined;
|
|
414
|
+
};
|
|
415
|
+
stop_id?: string | null | undefined;
|
|
416
|
+
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;
|
|
417
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
418
|
+
timestamp?: number | null | undefined;
|
|
419
|
+
};
|
|
420
|
+
header: {
|
|
421
|
+
timestamp: number;
|
|
422
|
+
gtfs_realtime_version: string;
|
|
423
|
+
incrementality: "FULL_DATASET";
|
|
424
|
+
feed_version?: string | null | undefined;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
entity_id: string;
|
|
428
|
+
version: "crtm-laveloz-v1";
|
|
429
|
+
}, {
|
|
430
|
+
_id: string;
|
|
431
|
+
created_at: number;
|
|
432
|
+
agency_id: string;
|
|
433
|
+
received_at: number;
|
|
434
|
+
payload: {
|
|
435
|
+
vehicle: {
|
|
436
|
+
vehicle: {
|
|
437
|
+
id: string;
|
|
438
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
439
|
+
label: string;
|
|
440
|
+
license_plate: string;
|
|
441
|
+
};
|
|
442
|
+
trip: {
|
|
443
|
+
trip_id: string;
|
|
444
|
+
route_id?: string | null | undefined;
|
|
445
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
446
|
+
start_date?: string | null | undefined;
|
|
447
|
+
};
|
|
448
|
+
position: {
|
|
449
|
+
latitude: number;
|
|
450
|
+
longitude: number;
|
|
451
|
+
bearing?: number | null | undefined;
|
|
452
|
+
odometer?: number | null | undefined;
|
|
453
|
+
speed?: number | null | undefined;
|
|
454
|
+
};
|
|
455
|
+
stop_id?: string | null | undefined;
|
|
456
|
+
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;
|
|
457
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
458
|
+
timestamp?: number | null | undefined;
|
|
459
|
+
};
|
|
460
|
+
header: {
|
|
461
|
+
timestamp: number;
|
|
462
|
+
gtfs_realtime_version: string;
|
|
463
|
+
incrementality: "FULL_DATASET";
|
|
464
|
+
feed_version?: string | null | undefined;
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
entity_id: string;
|
|
468
|
+
version: "crtm-laveloz-v1";
|
|
469
|
+
}>;
|
|
470
|
+
export type RawVehicleEventCrtmLaVelozV1 = z.infer<typeof RawVehicleEventCrtmLaVelozV1Schema>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { GtfsRtOccupancyStatusSchema, GtfsRtPositionSchema, GtfsRtVehicleDescriptorSchema, GtfsRtVehicleStopStatusSchema, } from '../../../gtfs-rt/index.js';
|
|
3
|
+
import { RawVehicleEventBaseSchema } from '../raw-vehicle-event-base.js';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
/* * */
|
|
6
|
+
export const RawVehicleEventCrtmLaVelozV1PayloadSchema = z.object({
|
|
7
|
+
header: z.object({
|
|
8
|
+
feed_version: z.string().nullish(),
|
|
9
|
+
gtfs_realtime_version: z.string(),
|
|
10
|
+
incrementality: z.literal('FULL_DATASET'),
|
|
11
|
+
timestamp: z.number(),
|
|
12
|
+
}),
|
|
13
|
+
vehicle: z.object({
|
|
14
|
+
current_status: GtfsRtVehicleStopStatusSchema.nullish(),
|
|
15
|
+
occupancy_status: GtfsRtOccupancyStatusSchema.nullish(),
|
|
16
|
+
position: GtfsRtPositionSchema,
|
|
17
|
+
stop_id: z.string().nullish(),
|
|
18
|
+
timestamp: z.number().nullish(),
|
|
19
|
+
trip: z.object({
|
|
20
|
+
route_id: z.string().nullish(),
|
|
21
|
+
schedule_relationship: z.enum(['SCHEDULED', 'ADDED', 'UNSCHEDULED', 'CANCELED']).nullish(),
|
|
22
|
+
start_date: z.string().nullish(),
|
|
23
|
+
trip_id: z.string(),
|
|
24
|
+
}),
|
|
25
|
+
vehicle: GtfsRtVehicleDescriptorSchema,
|
|
26
|
+
}),
|
|
27
|
+
});
|
|
28
|
+
/* * */
|
|
29
|
+
export const RawVehicleEventCrtmLaVelozV1Schema = RawVehicleEventBaseSchema.extend({
|
|
30
|
+
payload: RawVehicleEventCrtmLaVelozV1PayloadSchema,
|
|
31
|
+
version: z.literal('crtm-laveloz-v1'),
|
|
32
|
+
});
|
|
@@ -2,6 +2,7 @@ export * from './ccfl/index.js';
|
|
|
2
2
|
export * from './cmet/index.js';
|
|
3
3
|
export * from './cp/index.js';
|
|
4
4
|
export * from './crtm-aisa/index.js';
|
|
5
|
+
export * from './crtm-laveloz/index.js';
|
|
5
6
|
export * from './fertagus/index.js';
|
|
6
7
|
export * from './ml/index.js';
|
|
7
8
|
export * from './mobi/index.js';
|
|
@@ -2,6 +2,7 @@ export * from './ccfl/index.js';
|
|
|
2
2
|
export * from './cmet/index.js';
|
|
3
3
|
export * from './cp/index.js';
|
|
4
4
|
export * from './crtm-aisa/index.js';
|
|
5
|
+
export * from './crtm-laveloz/index.js';
|
|
5
6
|
export * from './fertagus/index.js';
|
|
6
7
|
export * from './ml/index.js';
|
|
7
8
|
export * from './mobi/index.js';
|
|
@@ -2074,6 +2074,285 @@ export declare const RawVehicleEventSchema: z.ZodDiscriminatedUnion<"version", [
|
|
|
2074
2074
|
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
2075
2075
|
entity_id: z.ZodString;
|
|
2076
2076
|
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
2077
|
+
} & {
|
|
2078
|
+
payload: z.ZodObject<{
|
|
2079
|
+
header: z.ZodObject<{
|
|
2080
|
+
feed_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2081
|
+
gtfs_realtime_version: z.ZodString;
|
|
2082
|
+
incrementality: z.ZodLiteral<"FULL_DATASET">;
|
|
2083
|
+
timestamp: z.ZodNumber;
|
|
2084
|
+
}, "strip", z.ZodTypeAny, {
|
|
2085
|
+
timestamp: number;
|
|
2086
|
+
gtfs_realtime_version: string;
|
|
2087
|
+
incrementality: "FULL_DATASET";
|
|
2088
|
+
feed_version?: string | null | undefined;
|
|
2089
|
+
}, {
|
|
2090
|
+
timestamp: number;
|
|
2091
|
+
gtfs_realtime_version: string;
|
|
2092
|
+
incrementality: "FULL_DATASET";
|
|
2093
|
+
feed_version?: string | null | undefined;
|
|
2094
|
+
}>;
|
|
2095
|
+
vehicle: z.ZodObject<{
|
|
2096
|
+
current_status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["INCOMING_AT", "STOPPED_AT", "IN_TRANSIT_TO"]>>>;
|
|
2097
|
+
occupancy_status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["EMPTY", "MANY_SEATS_AVAILABLE", "FEW_SEATS_AVAILABLE", "STANDING_ROOM_ONLY", "CRUSHED_STANDING_ROOM_ONLY", "FULL", "NOT_ACCEPTING_PASSENGERS", "NO_DATA_AVAILABLE", "NOT_BOARDABLE"]>>>;
|
|
2098
|
+
position: z.ZodObject<{
|
|
2099
|
+
bearing: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2100
|
+
latitude: z.ZodNumber;
|
|
2101
|
+
longitude: z.ZodNumber;
|
|
2102
|
+
odometer: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2103
|
+
speed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2104
|
+
}, "strip", z.ZodTypeAny, {
|
|
2105
|
+
latitude: number;
|
|
2106
|
+
longitude: number;
|
|
2107
|
+
bearing?: number | null | undefined;
|
|
2108
|
+
odometer?: number | null | undefined;
|
|
2109
|
+
speed?: number | null | undefined;
|
|
2110
|
+
}, {
|
|
2111
|
+
latitude: number;
|
|
2112
|
+
longitude: number;
|
|
2113
|
+
bearing?: number | null | undefined;
|
|
2114
|
+
odometer?: number | null | undefined;
|
|
2115
|
+
speed?: number | null | undefined;
|
|
2116
|
+
}>;
|
|
2117
|
+
stop_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2118
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2119
|
+
trip: z.ZodObject<{
|
|
2120
|
+
route_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2121
|
+
schedule_relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["SCHEDULED", "ADDED", "UNSCHEDULED", "CANCELED"]>>>;
|
|
2122
|
+
start_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2123
|
+
trip_id: z.ZodString;
|
|
2124
|
+
}, "strip", z.ZodTypeAny, {
|
|
2125
|
+
trip_id: string;
|
|
2126
|
+
route_id?: string | null | undefined;
|
|
2127
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
2128
|
+
start_date?: string | null | undefined;
|
|
2129
|
+
}, {
|
|
2130
|
+
trip_id: string;
|
|
2131
|
+
route_id?: string | null | undefined;
|
|
2132
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
2133
|
+
start_date?: string | null | undefined;
|
|
2134
|
+
}>;
|
|
2135
|
+
vehicle: z.ZodObject<{
|
|
2136
|
+
id: z.ZodString;
|
|
2137
|
+
label: z.ZodString;
|
|
2138
|
+
license_plate: z.ZodString;
|
|
2139
|
+
wheelchair_accessible: z.ZodEnum<["NO_VALUE", "UNKNOWN", "WHEELCHAIR_ACCESSIBLE", "WHEELCHAIR_INACCESSIBLE"]>;
|
|
2140
|
+
}, "strip", z.ZodTypeAny, {
|
|
2141
|
+
id: string;
|
|
2142
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
2143
|
+
label: string;
|
|
2144
|
+
license_plate: string;
|
|
2145
|
+
}, {
|
|
2146
|
+
id: string;
|
|
2147
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
2148
|
+
label: string;
|
|
2149
|
+
license_plate: string;
|
|
2150
|
+
}>;
|
|
2151
|
+
}, "strip", z.ZodTypeAny, {
|
|
2152
|
+
vehicle: {
|
|
2153
|
+
id: string;
|
|
2154
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
2155
|
+
label: string;
|
|
2156
|
+
license_plate: string;
|
|
2157
|
+
};
|
|
2158
|
+
trip: {
|
|
2159
|
+
trip_id: string;
|
|
2160
|
+
route_id?: string | null | undefined;
|
|
2161
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
2162
|
+
start_date?: string | null | undefined;
|
|
2163
|
+
};
|
|
2164
|
+
position: {
|
|
2165
|
+
latitude: number;
|
|
2166
|
+
longitude: number;
|
|
2167
|
+
bearing?: number | null | undefined;
|
|
2168
|
+
odometer?: number | null | undefined;
|
|
2169
|
+
speed?: number | null | undefined;
|
|
2170
|
+
};
|
|
2171
|
+
stop_id?: string | null | undefined;
|
|
2172
|
+
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;
|
|
2173
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
2174
|
+
timestamp?: number | null | undefined;
|
|
2175
|
+
}, {
|
|
2176
|
+
vehicle: {
|
|
2177
|
+
id: string;
|
|
2178
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
2179
|
+
label: string;
|
|
2180
|
+
license_plate: string;
|
|
2181
|
+
};
|
|
2182
|
+
trip: {
|
|
2183
|
+
trip_id: string;
|
|
2184
|
+
route_id?: string | null | undefined;
|
|
2185
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
2186
|
+
start_date?: string | null | undefined;
|
|
2187
|
+
};
|
|
2188
|
+
position: {
|
|
2189
|
+
latitude: number;
|
|
2190
|
+
longitude: number;
|
|
2191
|
+
bearing?: number | null | undefined;
|
|
2192
|
+
odometer?: number | null | undefined;
|
|
2193
|
+
speed?: number | null | undefined;
|
|
2194
|
+
};
|
|
2195
|
+
stop_id?: string | null | undefined;
|
|
2196
|
+
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;
|
|
2197
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
2198
|
+
timestamp?: number | null | undefined;
|
|
2199
|
+
}>;
|
|
2200
|
+
}, "strip", z.ZodTypeAny, {
|
|
2201
|
+
vehicle: {
|
|
2202
|
+
vehicle: {
|
|
2203
|
+
id: string;
|
|
2204
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
2205
|
+
label: string;
|
|
2206
|
+
license_plate: string;
|
|
2207
|
+
};
|
|
2208
|
+
trip: {
|
|
2209
|
+
trip_id: string;
|
|
2210
|
+
route_id?: string | null | undefined;
|
|
2211
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
2212
|
+
start_date?: string | null | undefined;
|
|
2213
|
+
};
|
|
2214
|
+
position: {
|
|
2215
|
+
latitude: number;
|
|
2216
|
+
longitude: number;
|
|
2217
|
+
bearing?: number | null | undefined;
|
|
2218
|
+
odometer?: number | null | undefined;
|
|
2219
|
+
speed?: number | null | undefined;
|
|
2220
|
+
};
|
|
2221
|
+
stop_id?: string | null | undefined;
|
|
2222
|
+
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;
|
|
2223
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
2224
|
+
timestamp?: number | null | undefined;
|
|
2225
|
+
};
|
|
2226
|
+
header: {
|
|
2227
|
+
timestamp: number;
|
|
2228
|
+
gtfs_realtime_version: string;
|
|
2229
|
+
incrementality: "FULL_DATASET";
|
|
2230
|
+
feed_version?: string | null | undefined;
|
|
2231
|
+
};
|
|
2232
|
+
}, {
|
|
2233
|
+
vehicle: {
|
|
2234
|
+
vehicle: {
|
|
2235
|
+
id: string;
|
|
2236
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
2237
|
+
label: string;
|
|
2238
|
+
license_plate: string;
|
|
2239
|
+
};
|
|
2240
|
+
trip: {
|
|
2241
|
+
trip_id: string;
|
|
2242
|
+
route_id?: string | null | undefined;
|
|
2243
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
2244
|
+
start_date?: string | null | undefined;
|
|
2245
|
+
};
|
|
2246
|
+
position: {
|
|
2247
|
+
latitude: number;
|
|
2248
|
+
longitude: number;
|
|
2249
|
+
bearing?: number | null | undefined;
|
|
2250
|
+
odometer?: number | null | undefined;
|
|
2251
|
+
speed?: number | null | undefined;
|
|
2252
|
+
};
|
|
2253
|
+
stop_id?: string | null | undefined;
|
|
2254
|
+
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;
|
|
2255
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
2256
|
+
timestamp?: number | null | undefined;
|
|
2257
|
+
};
|
|
2258
|
+
header: {
|
|
2259
|
+
timestamp: number;
|
|
2260
|
+
gtfs_realtime_version: string;
|
|
2261
|
+
incrementality: "FULL_DATASET";
|
|
2262
|
+
feed_version?: string | null | undefined;
|
|
2263
|
+
};
|
|
2264
|
+
}>;
|
|
2265
|
+
version: z.ZodLiteral<"crtm-laveloz-v1">;
|
|
2266
|
+
}, "strip", z.ZodTypeAny, {
|
|
2267
|
+
_id: string;
|
|
2268
|
+
created_at: number & {
|
|
2269
|
+
__brand: "UnixTimestamp";
|
|
2270
|
+
};
|
|
2271
|
+
agency_id: string;
|
|
2272
|
+
received_at: number & {
|
|
2273
|
+
__brand: "UnixTimestamp";
|
|
2274
|
+
};
|
|
2275
|
+
payload: {
|
|
2276
|
+
vehicle: {
|
|
2277
|
+
vehicle: {
|
|
2278
|
+
id: string;
|
|
2279
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
2280
|
+
label: string;
|
|
2281
|
+
license_plate: string;
|
|
2282
|
+
};
|
|
2283
|
+
trip: {
|
|
2284
|
+
trip_id: string;
|
|
2285
|
+
route_id?: string | null | undefined;
|
|
2286
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
2287
|
+
start_date?: string | null | undefined;
|
|
2288
|
+
};
|
|
2289
|
+
position: {
|
|
2290
|
+
latitude: number;
|
|
2291
|
+
longitude: number;
|
|
2292
|
+
bearing?: number | null | undefined;
|
|
2293
|
+
odometer?: number | null | undefined;
|
|
2294
|
+
speed?: number | null | undefined;
|
|
2295
|
+
};
|
|
2296
|
+
stop_id?: string | null | undefined;
|
|
2297
|
+
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;
|
|
2298
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
2299
|
+
timestamp?: number | null | undefined;
|
|
2300
|
+
};
|
|
2301
|
+
header: {
|
|
2302
|
+
timestamp: number;
|
|
2303
|
+
gtfs_realtime_version: string;
|
|
2304
|
+
incrementality: "FULL_DATASET";
|
|
2305
|
+
feed_version?: string | null | undefined;
|
|
2306
|
+
};
|
|
2307
|
+
};
|
|
2308
|
+
entity_id: string;
|
|
2309
|
+
version: "crtm-laveloz-v1";
|
|
2310
|
+
}, {
|
|
2311
|
+
_id: string;
|
|
2312
|
+
created_at: number;
|
|
2313
|
+
agency_id: string;
|
|
2314
|
+
received_at: number;
|
|
2315
|
+
payload: {
|
|
2316
|
+
vehicle: {
|
|
2317
|
+
vehicle: {
|
|
2318
|
+
id: string;
|
|
2319
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
2320
|
+
label: string;
|
|
2321
|
+
license_plate: string;
|
|
2322
|
+
};
|
|
2323
|
+
trip: {
|
|
2324
|
+
trip_id: string;
|
|
2325
|
+
route_id?: string | null | undefined;
|
|
2326
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "ADDED" | "UNSCHEDULED" | null | undefined;
|
|
2327
|
+
start_date?: string | null | undefined;
|
|
2328
|
+
};
|
|
2329
|
+
position: {
|
|
2330
|
+
latitude: number;
|
|
2331
|
+
longitude: number;
|
|
2332
|
+
bearing?: number | null | undefined;
|
|
2333
|
+
odometer?: number | null | undefined;
|
|
2334
|
+
speed?: number | null | undefined;
|
|
2335
|
+
};
|
|
2336
|
+
stop_id?: string | null | undefined;
|
|
2337
|
+
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;
|
|
2338
|
+
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
2339
|
+
timestamp?: number | null | undefined;
|
|
2340
|
+
};
|
|
2341
|
+
header: {
|
|
2342
|
+
timestamp: number;
|
|
2343
|
+
gtfs_realtime_version: string;
|
|
2344
|
+
incrementality: "FULL_DATASET";
|
|
2345
|
+
feed_version?: string | null | undefined;
|
|
2346
|
+
};
|
|
2347
|
+
};
|
|
2348
|
+
entity_id: string;
|
|
2349
|
+
version: "crtm-laveloz-v1";
|
|
2350
|
+
}>, z.ZodObject<{
|
|
2351
|
+
_id: z.ZodString;
|
|
2352
|
+
agency_id: z.ZodString;
|
|
2353
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
2354
|
+
entity_id: z.ZodString;
|
|
2355
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
2077
2356
|
} & {
|
|
2078
2357
|
payload: z.ZodObject<{
|
|
2079
2358
|
header: z.ZodObject<{
|
|
@@ -4,6 +4,7 @@ import { RawVehicleEventCmetV1CoreSchema } from './cmet/v1-core.js';
|
|
|
4
4
|
import { RawVehicleEventCmetV1LogSchema } from './cmet/v1-log.js';
|
|
5
5
|
import { RawVehicleEventCpV1Schema } from './cp/v1.js';
|
|
6
6
|
import { RawVehicleEventCrtmAisaV1Schema } from './crtm-aisa/v1.js';
|
|
7
|
+
import { RawVehicleEventCrtmLaVelozV1Schema } from './crtm-laveloz/v1.js';
|
|
7
8
|
import { RawVehicleEventFertagusV1Schema } from './fertagus/v1.js';
|
|
8
9
|
import { RawVehicleEventMlV1Schema } from './ml/v1.js';
|
|
9
10
|
import { RawVehicleEventMobiV1Schema } from './mobi/v1.js';
|
|
@@ -20,6 +21,7 @@ export const RawVehicleEventSchema = z.discriminatedUnion('version', [
|
|
|
20
21
|
RawVehicleEventTtslV1Schema,
|
|
21
22
|
RawVehicleEventCpV1Schema,
|
|
22
23
|
RawVehicleEventCrtmAisaV1Schema,
|
|
24
|
+
RawVehicleEventCrtmLaVelozV1Schema,
|
|
23
25
|
RawVehicleEventTcbV1Schema,
|
|
24
26
|
RawVehicleEventFertagusV1Schema,
|
|
25
27
|
]);
|