@tmlmobilidade/types 20260306.1635.15 → 20260308.1313.9
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/gtfs-rt/alert.d.ts +27 -21
- package/dist/gtfs-rt/entity-selector.d.ts +19 -15
- package/dist/gtfs-rt/feed-entity.d.ts +62 -48
- package/dist/gtfs-rt/feed-message.d.ts +78 -60
- package/dist/gtfs-rt/trip-descriptor.d.ts +11 -9
- package/dist/gtfs-rt/trip-descriptor.js +4 -3
- package/dist/gtfs-rt/vehicle-position.d.ts +19 -15
- package/package.json +1 -1
package/dist/gtfs-rt/alert.d.ts
CHANGED
|
@@ -93,27 +93,29 @@ export declare const GtfsRtAlertSchema: z.ZodObject<{
|
|
|
93
93
|
trip: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
94
94
|
direction_id: z.ZodAny;
|
|
95
95
|
modified_trip: z.ZodAny;
|
|
96
|
-
route_id: z.
|
|
96
|
+
route_id: z.ZodString;
|
|
97
97
|
schedule_relationship: z.ZodAny;
|
|
98
|
-
start_date: z.
|
|
98
|
+
start_date: z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>;
|
|
99
99
|
start_time: z.ZodAny;
|
|
100
|
-
trip_id: z.
|
|
100
|
+
trip_id: z.ZodString;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
|
-
trip_id
|
|
102
|
+
trip_id: string;
|
|
103
|
+
route_id: string;
|
|
104
|
+
start_date: string & {
|
|
105
|
+
__brand: "OperationalDate";
|
|
106
|
+
};
|
|
103
107
|
start_time?: any;
|
|
104
|
-
route_id?: any;
|
|
105
108
|
direction_id?: any;
|
|
106
109
|
modified_trip?: any;
|
|
107
110
|
schedule_relationship?: any;
|
|
108
|
-
start_date?: any;
|
|
109
111
|
}, {
|
|
110
|
-
trip_id
|
|
112
|
+
trip_id: string;
|
|
113
|
+
route_id: string;
|
|
114
|
+
start_date: string;
|
|
111
115
|
start_time?: any;
|
|
112
|
-
route_id?: any;
|
|
113
116
|
direction_id?: any;
|
|
114
117
|
modified_trip?: any;
|
|
115
118
|
schedule_relationship?: any;
|
|
116
|
-
start_date?: any;
|
|
117
119
|
}>>>;
|
|
118
120
|
}, "strip", z.ZodTypeAny, {
|
|
119
121
|
agency_id?: string | null | undefined;
|
|
@@ -122,13 +124,15 @@ export declare const GtfsRtAlertSchema: z.ZodObject<{
|
|
|
122
124
|
route_type?: number | null | undefined;
|
|
123
125
|
direction_id?: number | null | undefined;
|
|
124
126
|
trip?: {
|
|
125
|
-
trip_id
|
|
127
|
+
trip_id: string;
|
|
128
|
+
route_id: string;
|
|
129
|
+
start_date: string & {
|
|
130
|
+
__brand: "OperationalDate";
|
|
131
|
+
};
|
|
126
132
|
start_time?: any;
|
|
127
|
-
route_id?: any;
|
|
128
133
|
direction_id?: any;
|
|
129
134
|
modified_trip?: any;
|
|
130
135
|
schedule_relationship?: any;
|
|
131
|
-
start_date?: any;
|
|
132
136
|
} | null | undefined;
|
|
133
137
|
}, {
|
|
134
138
|
agency_id?: string | null | undefined;
|
|
@@ -137,13 +141,13 @@ export declare const GtfsRtAlertSchema: z.ZodObject<{
|
|
|
137
141
|
route_type?: number | null | undefined;
|
|
138
142
|
direction_id?: number | null | undefined;
|
|
139
143
|
trip?: {
|
|
140
|
-
trip_id
|
|
144
|
+
trip_id: string;
|
|
145
|
+
route_id: string;
|
|
146
|
+
start_date: string;
|
|
141
147
|
start_time?: any;
|
|
142
|
-
route_id?: any;
|
|
143
148
|
direction_id?: any;
|
|
144
149
|
modified_trip?: any;
|
|
145
150
|
schedule_relationship?: any;
|
|
146
|
-
start_date?: any;
|
|
147
151
|
} | null | undefined;
|
|
148
152
|
}>, "many">;
|
|
149
153
|
severity_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNKNOWN_SEVERITY", "INFO", "WARNING", "SEVERE"]>>>;
|
|
@@ -233,13 +237,15 @@ export declare const GtfsRtAlertSchema: z.ZodObject<{
|
|
|
233
237
|
route_type?: number | null | undefined;
|
|
234
238
|
direction_id?: number | null | undefined;
|
|
235
239
|
trip?: {
|
|
236
|
-
trip_id
|
|
240
|
+
trip_id: string;
|
|
241
|
+
route_id: string;
|
|
242
|
+
start_date: string & {
|
|
243
|
+
__brand: "OperationalDate";
|
|
244
|
+
};
|
|
237
245
|
start_time?: any;
|
|
238
|
-
route_id?: any;
|
|
239
246
|
direction_id?: any;
|
|
240
247
|
modified_trip?: any;
|
|
241
248
|
schedule_relationship?: any;
|
|
242
|
-
start_date?: any;
|
|
243
249
|
} | null | undefined;
|
|
244
250
|
}[];
|
|
245
251
|
url?: {
|
|
@@ -295,13 +301,13 @@ export declare const GtfsRtAlertSchema: z.ZodObject<{
|
|
|
295
301
|
route_type?: number | null | undefined;
|
|
296
302
|
direction_id?: number | null | undefined;
|
|
297
303
|
trip?: {
|
|
298
|
-
trip_id
|
|
304
|
+
trip_id: string;
|
|
305
|
+
route_id: string;
|
|
306
|
+
start_date: string;
|
|
299
307
|
start_time?: any;
|
|
300
|
-
route_id?: any;
|
|
301
308
|
direction_id?: any;
|
|
302
309
|
modified_trip?: any;
|
|
303
310
|
schedule_relationship?: any;
|
|
304
|
-
start_date?: any;
|
|
305
311
|
} | null | undefined;
|
|
306
312
|
}[];
|
|
307
313
|
url?: {
|
|
@@ -8,27 +8,29 @@ export declare const GtfsRtEntitySelectorSchema: z.ZodObject<{
|
|
|
8
8
|
trip: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9
9
|
direction_id: z.ZodAny;
|
|
10
10
|
modified_trip: z.ZodAny;
|
|
11
|
-
route_id: z.
|
|
11
|
+
route_id: z.ZodString;
|
|
12
12
|
schedule_relationship: z.ZodAny;
|
|
13
|
-
start_date: z.
|
|
13
|
+
start_date: z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>;
|
|
14
14
|
start_time: z.ZodAny;
|
|
15
|
-
trip_id: z.
|
|
15
|
+
trip_id: z.ZodString;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
trip_id
|
|
17
|
+
trip_id: string;
|
|
18
|
+
route_id: string;
|
|
19
|
+
start_date: string & {
|
|
20
|
+
__brand: "OperationalDate";
|
|
21
|
+
};
|
|
18
22
|
start_time?: any;
|
|
19
|
-
route_id?: any;
|
|
20
23
|
direction_id?: any;
|
|
21
24
|
modified_trip?: any;
|
|
22
25
|
schedule_relationship?: any;
|
|
23
|
-
start_date?: any;
|
|
24
26
|
}, {
|
|
25
|
-
trip_id
|
|
27
|
+
trip_id: string;
|
|
28
|
+
route_id: string;
|
|
29
|
+
start_date: string;
|
|
26
30
|
start_time?: any;
|
|
27
|
-
route_id?: any;
|
|
28
31
|
direction_id?: any;
|
|
29
32
|
modified_trip?: any;
|
|
30
33
|
schedule_relationship?: any;
|
|
31
|
-
start_date?: any;
|
|
32
34
|
}>>>;
|
|
33
35
|
}, "strip", z.ZodTypeAny, {
|
|
34
36
|
agency_id?: string | null | undefined;
|
|
@@ -37,13 +39,15 @@ export declare const GtfsRtEntitySelectorSchema: z.ZodObject<{
|
|
|
37
39
|
route_type?: number | null | undefined;
|
|
38
40
|
direction_id?: number | null | undefined;
|
|
39
41
|
trip?: {
|
|
40
|
-
trip_id
|
|
42
|
+
trip_id: string;
|
|
43
|
+
route_id: string;
|
|
44
|
+
start_date: string & {
|
|
45
|
+
__brand: "OperationalDate";
|
|
46
|
+
};
|
|
41
47
|
start_time?: any;
|
|
42
|
-
route_id?: any;
|
|
43
48
|
direction_id?: any;
|
|
44
49
|
modified_trip?: any;
|
|
45
50
|
schedule_relationship?: any;
|
|
46
|
-
start_date?: any;
|
|
47
51
|
} | null | undefined;
|
|
48
52
|
}, {
|
|
49
53
|
agency_id?: string | null | undefined;
|
|
@@ -52,13 +56,13 @@ export declare const GtfsRtEntitySelectorSchema: z.ZodObject<{
|
|
|
52
56
|
route_type?: number | null | undefined;
|
|
53
57
|
direction_id?: number | null | undefined;
|
|
54
58
|
trip?: {
|
|
55
|
-
trip_id
|
|
59
|
+
trip_id: string;
|
|
60
|
+
route_id: string;
|
|
61
|
+
start_date: string;
|
|
56
62
|
start_time?: any;
|
|
57
|
-
route_id?: any;
|
|
58
63
|
direction_id?: any;
|
|
59
64
|
modified_trip?: any;
|
|
60
65
|
schedule_relationship?: any;
|
|
61
|
-
start_date?: any;
|
|
62
66
|
} | null | undefined;
|
|
63
67
|
}>;
|
|
64
68
|
export type GtfsRtEntitySelector = z.infer<typeof GtfsRtEntitySelectorSchema>;
|
|
@@ -94,27 +94,29 @@ export declare const GtfsRtFeedEntitySchema: z.ZodObject<{
|
|
|
94
94
|
trip: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
95
95
|
direction_id: z.ZodAny;
|
|
96
96
|
modified_trip: z.ZodAny;
|
|
97
|
-
route_id: z.
|
|
97
|
+
route_id: z.ZodString;
|
|
98
98
|
schedule_relationship: z.ZodAny;
|
|
99
|
-
start_date: z.
|
|
99
|
+
start_date: z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>;
|
|
100
100
|
start_time: z.ZodAny;
|
|
101
|
-
trip_id: z.
|
|
101
|
+
trip_id: z.ZodString;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
trip_id
|
|
103
|
+
trip_id: string;
|
|
104
|
+
route_id: string;
|
|
105
|
+
start_date: string & {
|
|
106
|
+
__brand: "OperationalDate";
|
|
107
|
+
};
|
|
104
108
|
start_time?: any;
|
|
105
|
-
route_id?: any;
|
|
106
109
|
direction_id?: any;
|
|
107
110
|
modified_trip?: any;
|
|
108
111
|
schedule_relationship?: any;
|
|
109
|
-
start_date?: any;
|
|
110
112
|
}, {
|
|
111
|
-
trip_id
|
|
113
|
+
trip_id: string;
|
|
114
|
+
route_id: string;
|
|
115
|
+
start_date: string;
|
|
112
116
|
start_time?: any;
|
|
113
|
-
route_id?: any;
|
|
114
117
|
direction_id?: any;
|
|
115
118
|
modified_trip?: any;
|
|
116
119
|
schedule_relationship?: any;
|
|
117
|
-
start_date?: any;
|
|
118
120
|
}>>>;
|
|
119
121
|
}, "strip", z.ZodTypeAny, {
|
|
120
122
|
agency_id?: string | null | undefined;
|
|
@@ -123,13 +125,15 @@ export declare const GtfsRtFeedEntitySchema: z.ZodObject<{
|
|
|
123
125
|
route_type?: number | null | undefined;
|
|
124
126
|
direction_id?: number | null | undefined;
|
|
125
127
|
trip?: {
|
|
126
|
-
trip_id
|
|
128
|
+
trip_id: string;
|
|
129
|
+
route_id: string;
|
|
130
|
+
start_date: string & {
|
|
131
|
+
__brand: "OperationalDate";
|
|
132
|
+
};
|
|
127
133
|
start_time?: any;
|
|
128
|
-
route_id?: any;
|
|
129
134
|
direction_id?: any;
|
|
130
135
|
modified_trip?: any;
|
|
131
136
|
schedule_relationship?: any;
|
|
132
|
-
start_date?: any;
|
|
133
137
|
} | null | undefined;
|
|
134
138
|
}, {
|
|
135
139
|
agency_id?: string | null | undefined;
|
|
@@ -138,13 +142,13 @@ export declare const GtfsRtFeedEntitySchema: z.ZodObject<{
|
|
|
138
142
|
route_type?: number | null | undefined;
|
|
139
143
|
direction_id?: number | null | undefined;
|
|
140
144
|
trip?: {
|
|
141
|
-
trip_id
|
|
145
|
+
trip_id: string;
|
|
146
|
+
route_id: string;
|
|
147
|
+
start_date: string;
|
|
142
148
|
start_time?: any;
|
|
143
|
-
route_id?: any;
|
|
144
149
|
direction_id?: any;
|
|
145
150
|
modified_trip?: any;
|
|
146
151
|
schedule_relationship?: any;
|
|
147
|
-
start_date?: any;
|
|
148
152
|
} | null | undefined;
|
|
149
153
|
}>, "many">;
|
|
150
154
|
severity_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNKNOWN_SEVERITY", "INFO", "WARNING", "SEVERE"]>>>;
|
|
@@ -234,13 +238,15 @@ export declare const GtfsRtFeedEntitySchema: z.ZodObject<{
|
|
|
234
238
|
route_type?: number | null | undefined;
|
|
235
239
|
direction_id?: number | null | undefined;
|
|
236
240
|
trip?: {
|
|
237
|
-
trip_id
|
|
241
|
+
trip_id: string;
|
|
242
|
+
route_id: string;
|
|
243
|
+
start_date: string & {
|
|
244
|
+
__brand: "OperationalDate";
|
|
245
|
+
};
|
|
238
246
|
start_time?: any;
|
|
239
|
-
route_id?: any;
|
|
240
247
|
direction_id?: any;
|
|
241
248
|
modified_trip?: any;
|
|
242
249
|
schedule_relationship?: any;
|
|
243
|
-
start_date?: any;
|
|
244
250
|
} | null | undefined;
|
|
245
251
|
}[];
|
|
246
252
|
url?: {
|
|
@@ -296,13 +302,13 @@ export declare const GtfsRtFeedEntitySchema: z.ZodObject<{
|
|
|
296
302
|
route_type?: number | null | undefined;
|
|
297
303
|
direction_id?: number | null | undefined;
|
|
298
304
|
trip?: {
|
|
299
|
-
trip_id
|
|
305
|
+
trip_id: string;
|
|
306
|
+
route_id: string;
|
|
307
|
+
start_date: string;
|
|
300
308
|
start_time?: any;
|
|
301
|
-
route_id?: any;
|
|
302
309
|
direction_id?: any;
|
|
303
310
|
modified_trip?: any;
|
|
304
311
|
schedule_relationship?: any;
|
|
305
|
-
start_date?: any;
|
|
306
312
|
} | null | undefined;
|
|
307
313
|
}[];
|
|
308
314
|
url?: {
|
|
@@ -390,27 +396,29 @@ export declare const GtfsRtFeedEntitySchema: z.ZodObject<{
|
|
|
390
396
|
trip: z.ZodObject<{
|
|
391
397
|
direction_id: z.ZodAny;
|
|
392
398
|
modified_trip: z.ZodAny;
|
|
393
|
-
route_id: z.
|
|
399
|
+
route_id: z.ZodString;
|
|
394
400
|
schedule_relationship: z.ZodAny;
|
|
395
|
-
start_date: z.
|
|
401
|
+
start_date: z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>;
|
|
396
402
|
start_time: z.ZodAny;
|
|
397
|
-
trip_id: z.
|
|
403
|
+
trip_id: z.ZodString;
|
|
398
404
|
}, "strip", z.ZodTypeAny, {
|
|
399
|
-
trip_id
|
|
405
|
+
trip_id: string;
|
|
406
|
+
route_id: string;
|
|
407
|
+
start_date: string & {
|
|
408
|
+
__brand: "OperationalDate";
|
|
409
|
+
};
|
|
400
410
|
start_time?: any;
|
|
401
|
-
route_id?: any;
|
|
402
411
|
direction_id?: any;
|
|
403
412
|
modified_trip?: any;
|
|
404
413
|
schedule_relationship?: any;
|
|
405
|
-
start_date?: any;
|
|
406
414
|
}, {
|
|
407
|
-
trip_id
|
|
415
|
+
trip_id: string;
|
|
416
|
+
route_id: string;
|
|
417
|
+
start_date: string;
|
|
408
418
|
start_time?: any;
|
|
409
|
-
route_id?: any;
|
|
410
419
|
direction_id?: any;
|
|
411
420
|
modified_trip?: any;
|
|
412
421
|
schedule_relationship?: any;
|
|
413
|
-
start_date?: any;
|
|
414
422
|
}>;
|
|
415
423
|
vehicle: z.ZodObject<{
|
|
416
424
|
id: z.ZodString;
|
|
@@ -430,13 +438,15 @@ export declare const GtfsRtFeedEntitySchema: z.ZodObject<{
|
|
|
430
438
|
}>;
|
|
431
439
|
}, "strip", z.ZodTypeAny, {
|
|
432
440
|
trip: {
|
|
433
|
-
trip_id
|
|
441
|
+
trip_id: string;
|
|
442
|
+
route_id: string;
|
|
443
|
+
start_date: string & {
|
|
444
|
+
__brand: "OperationalDate";
|
|
445
|
+
};
|
|
434
446
|
start_time?: any;
|
|
435
|
-
route_id?: any;
|
|
436
447
|
direction_id?: any;
|
|
437
448
|
modified_trip?: any;
|
|
438
449
|
schedule_relationship?: any;
|
|
439
|
-
start_date?: any;
|
|
440
450
|
};
|
|
441
451
|
position: {
|
|
442
452
|
latitude: number;
|
|
@@ -467,13 +477,13 @@ export declare const GtfsRtFeedEntitySchema: z.ZodObject<{
|
|
|
467
477
|
timestamp?: number | null | undefined;
|
|
468
478
|
}, {
|
|
469
479
|
trip: {
|
|
470
|
-
trip_id
|
|
480
|
+
trip_id: string;
|
|
481
|
+
route_id: string;
|
|
482
|
+
start_date: string;
|
|
471
483
|
start_time?: any;
|
|
472
|
-
route_id?: any;
|
|
473
484
|
direction_id?: any;
|
|
474
485
|
modified_trip?: any;
|
|
475
486
|
schedule_relationship?: any;
|
|
476
|
-
start_date?: any;
|
|
477
487
|
};
|
|
478
488
|
position: {
|
|
479
489
|
latitude: number;
|
|
@@ -507,13 +517,15 @@ export declare const GtfsRtFeedEntitySchema: z.ZodObject<{
|
|
|
507
517
|
id: string;
|
|
508
518
|
vehicle?: {
|
|
509
519
|
trip: {
|
|
510
|
-
trip_id
|
|
520
|
+
trip_id: string;
|
|
521
|
+
route_id: string;
|
|
522
|
+
start_date: string & {
|
|
523
|
+
__brand: "OperationalDate";
|
|
524
|
+
};
|
|
511
525
|
start_time?: any;
|
|
512
|
-
route_id?: any;
|
|
513
526
|
direction_id?: any;
|
|
514
527
|
modified_trip?: any;
|
|
515
528
|
schedule_relationship?: any;
|
|
516
|
-
start_date?: any;
|
|
517
529
|
};
|
|
518
530
|
position: {
|
|
519
531
|
latitude: number;
|
|
@@ -563,13 +575,15 @@ export declare const GtfsRtFeedEntitySchema: z.ZodObject<{
|
|
|
563
575
|
route_type?: number | null | undefined;
|
|
564
576
|
direction_id?: number | null | undefined;
|
|
565
577
|
trip?: {
|
|
566
|
-
trip_id
|
|
578
|
+
trip_id: string;
|
|
579
|
+
route_id: string;
|
|
580
|
+
start_date: string & {
|
|
581
|
+
__brand: "OperationalDate";
|
|
582
|
+
};
|
|
567
583
|
start_time?: any;
|
|
568
|
-
route_id?: any;
|
|
569
584
|
direction_id?: any;
|
|
570
585
|
modified_trip?: any;
|
|
571
586
|
schedule_relationship?: any;
|
|
572
|
-
start_date?: any;
|
|
573
587
|
} | null | undefined;
|
|
574
588
|
}[];
|
|
575
589
|
url?: {
|
|
@@ -611,13 +625,13 @@ export declare const GtfsRtFeedEntitySchema: z.ZodObject<{
|
|
|
611
625
|
id: string;
|
|
612
626
|
vehicle?: {
|
|
613
627
|
trip: {
|
|
614
|
-
trip_id
|
|
628
|
+
trip_id: string;
|
|
629
|
+
route_id: string;
|
|
630
|
+
start_date: string;
|
|
615
631
|
start_time?: any;
|
|
616
|
-
route_id?: any;
|
|
617
632
|
direction_id?: any;
|
|
618
633
|
modified_trip?: any;
|
|
619
634
|
schedule_relationship?: any;
|
|
620
|
-
start_date?: any;
|
|
621
635
|
};
|
|
622
636
|
position: {
|
|
623
637
|
latitude: number;
|
|
@@ -667,13 +681,13 @@ export declare const GtfsRtFeedEntitySchema: z.ZodObject<{
|
|
|
667
681
|
route_type?: number | null | undefined;
|
|
668
682
|
direction_id?: number | null | undefined;
|
|
669
683
|
trip?: {
|
|
670
|
-
trip_id
|
|
684
|
+
trip_id: string;
|
|
685
|
+
route_id: string;
|
|
686
|
+
start_date: string;
|
|
671
687
|
start_time?: any;
|
|
672
|
-
route_id?: any;
|
|
673
688
|
direction_id?: any;
|
|
674
689
|
modified_trip?: any;
|
|
675
690
|
schedule_relationship?: any;
|
|
676
|
-
start_date?: any;
|
|
677
691
|
} | null | undefined;
|
|
678
692
|
}[];
|
|
679
693
|
url?: {
|
|
@@ -95,27 +95,29 @@ export declare const GtfsRtFeedMessageSchema: z.ZodObject<{
|
|
|
95
95
|
trip: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
96
96
|
direction_id: z.ZodAny;
|
|
97
97
|
modified_trip: z.ZodAny;
|
|
98
|
-
route_id: z.
|
|
98
|
+
route_id: z.ZodString;
|
|
99
99
|
schedule_relationship: z.ZodAny;
|
|
100
|
-
start_date: z.
|
|
100
|
+
start_date: z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>;
|
|
101
101
|
start_time: z.ZodAny;
|
|
102
|
-
trip_id: z.
|
|
102
|
+
trip_id: z.ZodString;
|
|
103
103
|
}, "strip", z.ZodTypeAny, {
|
|
104
|
-
trip_id
|
|
104
|
+
trip_id: string;
|
|
105
|
+
route_id: string;
|
|
106
|
+
start_date: string & {
|
|
107
|
+
__brand: "OperationalDate";
|
|
108
|
+
};
|
|
105
109
|
start_time?: any;
|
|
106
|
-
route_id?: any;
|
|
107
110
|
direction_id?: any;
|
|
108
111
|
modified_trip?: any;
|
|
109
112
|
schedule_relationship?: any;
|
|
110
|
-
start_date?: any;
|
|
111
113
|
}, {
|
|
112
|
-
trip_id
|
|
114
|
+
trip_id: string;
|
|
115
|
+
route_id: string;
|
|
116
|
+
start_date: string;
|
|
113
117
|
start_time?: any;
|
|
114
|
-
route_id?: any;
|
|
115
118
|
direction_id?: any;
|
|
116
119
|
modified_trip?: any;
|
|
117
120
|
schedule_relationship?: any;
|
|
118
|
-
start_date?: any;
|
|
119
121
|
}>>>;
|
|
120
122
|
}, "strip", z.ZodTypeAny, {
|
|
121
123
|
agency_id?: string | null | undefined;
|
|
@@ -124,13 +126,15 @@ export declare const GtfsRtFeedMessageSchema: z.ZodObject<{
|
|
|
124
126
|
route_type?: number | null | undefined;
|
|
125
127
|
direction_id?: number | null | undefined;
|
|
126
128
|
trip?: {
|
|
127
|
-
trip_id
|
|
129
|
+
trip_id: string;
|
|
130
|
+
route_id: string;
|
|
131
|
+
start_date: string & {
|
|
132
|
+
__brand: "OperationalDate";
|
|
133
|
+
};
|
|
128
134
|
start_time?: any;
|
|
129
|
-
route_id?: any;
|
|
130
135
|
direction_id?: any;
|
|
131
136
|
modified_trip?: any;
|
|
132
137
|
schedule_relationship?: any;
|
|
133
|
-
start_date?: any;
|
|
134
138
|
} | null | undefined;
|
|
135
139
|
}, {
|
|
136
140
|
agency_id?: string | null | undefined;
|
|
@@ -139,13 +143,13 @@ export declare const GtfsRtFeedMessageSchema: z.ZodObject<{
|
|
|
139
143
|
route_type?: number | null | undefined;
|
|
140
144
|
direction_id?: number | null | undefined;
|
|
141
145
|
trip?: {
|
|
142
|
-
trip_id
|
|
146
|
+
trip_id: string;
|
|
147
|
+
route_id: string;
|
|
148
|
+
start_date: string;
|
|
143
149
|
start_time?: any;
|
|
144
|
-
route_id?: any;
|
|
145
150
|
direction_id?: any;
|
|
146
151
|
modified_trip?: any;
|
|
147
152
|
schedule_relationship?: any;
|
|
148
|
-
start_date?: any;
|
|
149
153
|
} | null | undefined;
|
|
150
154
|
}>, "many">;
|
|
151
155
|
severity_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNKNOWN_SEVERITY", "INFO", "WARNING", "SEVERE"]>>>;
|
|
@@ -235,13 +239,15 @@ export declare const GtfsRtFeedMessageSchema: z.ZodObject<{
|
|
|
235
239
|
route_type?: number | null | undefined;
|
|
236
240
|
direction_id?: number | null | undefined;
|
|
237
241
|
trip?: {
|
|
238
|
-
trip_id
|
|
242
|
+
trip_id: string;
|
|
243
|
+
route_id: string;
|
|
244
|
+
start_date: string & {
|
|
245
|
+
__brand: "OperationalDate";
|
|
246
|
+
};
|
|
239
247
|
start_time?: any;
|
|
240
|
-
route_id?: any;
|
|
241
248
|
direction_id?: any;
|
|
242
249
|
modified_trip?: any;
|
|
243
250
|
schedule_relationship?: any;
|
|
244
|
-
start_date?: any;
|
|
245
251
|
} | null | undefined;
|
|
246
252
|
}[];
|
|
247
253
|
url?: {
|
|
@@ -297,13 +303,13 @@ export declare const GtfsRtFeedMessageSchema: z.ZodObject<{
|
|
|
297
303
|
route_type?: number | null | undefined;
|
|
298
304
|
direction_id?: number | null | undefined;
|
|
299
305
|
trip?: {
|
|
300
|
-
trip_id
|
|
306
|
+
trip_id: string;
|
|
307
|
+
route_id: string;
|
|
308
|
+
start_date: string;
|
|
301
309
|
start_time?: any;
|
|
302
|
-
route_id?: any;
|
|
303
310
|
direction_id?: any;
|
|
304
311
|
modified_trip?: any;
|
|
305
312
|
schedule_relationship?: any;
|
|
306
|
-
start_date?: any;
|
|
307
313
|
} | null | undefined;
|
|
308
314
|
}[];
|
|
309
315
|
url?: {
|
|
@@ -391,27 +397,29 @@ export declare const GtfsRtFeedMessageSchema: z.ZodObject<{
|
|
|
391
397
|
trip: z.ZodObject<{
|
|
392
398
|
direction_id: z.ZodAny;
|
|
393
399
|
modified_trip: z.ZodAny;
|
|
394
|
-
route_id: z.
|
|
400
|
+
route_id: z.ZodString;
|
|
395
401
|
schedule_relationship: z.ZodAny;
|
|
396
|
-
start_date: z.
|
|
402
|
+
start_date: z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>;
|
|
397
403
|
start_time: z.ZodAny;
|
|
398
|
-
trip_id: z.
|
|
404
|
+
trip_id: z.ZodString;
|
|
399
405
|
}, "strip", z.ZodTypeAny, {
|
|
400
|
-
trip_id
|
|
406
|
+
trip_id: string;
|
|
407
|
+
route_id: string;
|
|
408
|
+
start_date: string & {
|
|
409
|
+
__brand: "OperationalDate";
|
|
410
|
+
};
|
|
401
411
|
start_time?: any;
|
|
402
|
-
route_id?: any;
|
|
403
412
|
direction_id?: any;
|
|
404
413
|
modified_trip?: any;
|
|
405
414
|
schedule_relationship?: any;
|
|
406
|
-
start_date?: any;
|
|
407
415
|
}, {
|
|
408
|
-
trip_id
|
|
416
|
+
trip_id: string;
|
|
417
|
+
route_id: string;
|
|
418
|
+
start_date: string;
|
|
409
419
|
start_time?: any;
|
|
410
|
-
route_id?: any;
|
|
411
420
|
direction_id?: any;
|
|
412
421
|
modified_trip?: any;
|
|
413
422
|
schedule_relationship?: any;
|
|
414
|
-
start_date?: any;
|
|
415
423
|
}>;
|
|
416
424
|
vehicle: z.ZodObject<{
|
|
417
425
|
id: z.ZodString;
|
|
@@ -431,13 +439,15 @@ export declare const GtfsRtFeedMessageSchema: z.ZodObject<{
|
|
|
431
439
|
}>;
|
|
432
440
|
}, "strip", z.ZodTypeAny, {
|
|
433
441
|
trip: {
|
|
434
|
-
trip_id
|
|
442
|
+
trip_id: string;
|
|
443
|
+
route_id: string;
|
|
444
|
+
start_date: string & {
|
|
445
|
+
__brand: "OperationalDate";
|
|
446
|
+
};
|
|
435
447
|
start_time?: any;
|
|
436
|
-
route_id?: any;
|
|
437
448
|
direction_id?: any;
|
|
438
449
|
modified_trip?: any;
|
|
439
450
|
schedule_relationship?: any;
|
|
440
|
-
start_date?: any;
|
|
441
451
|
};
|
|
442
452
|
position: {
|
|
443
453
|
latitude: number;
|
|
@@ -468,13 +478,13 @@ export declare const GtfsRtFeedMessageSchema: z.ZodObject<{
|
|
|
468
478
|
timestamp?: number | null | undefined;
|
|
469
479
|
}, {
|
|
470
480
|
trip: {
|
|
471
|
-
trip_id
|
|
481
|
+
trip_id: string;
|
|
482
|
+
route_id: string;
|
|
483
|
+
start_date: string;
|
|
472
484
|
start_time?: any;
|
|
473
|
-
route_id?: any;
|
|
474
485
|
direction_id?: any;
|
|
475
486
|
modified_trip?: any;
|
|
476
487
|
schedule_relationship?: any;
|
|
477
|
-
start_date?: any;
|
|
478
488
|
};
|
|
479
489
|
position: {
|
|
480
490
|
latitude: number;
|
|
@@ -508,13 +518,15 @@ export declare const GtfsRtFeedMessageSchema: z.ZodObject<{
|
|
|
508
518
|
id: string;
|
|
509
519
|
vehicle?: {
|
|
510
520
|
trip: {
|
|
511
|
-
trip_id
|
|
521
|
+
trip_id: string;
|
|
522
|
+
route_id: string;
|
|
523
|
+
start_date: string & {
|
|
524
|
+
__brand: "OperationalDate";
|
|
525
|
+
};
|
|
512
526
|
start_time?: any;
|
|
513
|
-
route_id?: any;
|
|
514
527
|
direction_id?: any;
|
|
515
528
|
modified_trip?: any;
|
|
516
529
|
schedule_relationship?: any;
|
|
517
|
-
start_date?: any;
|
|
518
530
|
};
|
|
519
531
|
position: {
|
|
520
532
|
latitude: number;
|
|
@@ -564,13 +576,15 @@ export declare const GtfsRtFeedMessageSchema: z.ZodObject<{
|
|
|
564
576
|
route_type?: number | null | undefined;
|
|
565
577
|
direction_id?: number | null | undefined;
|
|
566
578
|
trip?: {
|
|
567
|
-
trip_id
|
|
579
|
+
trip_id: string;
|
|
580
|
+
route_id: string;
|
|
581
|
+
start_date: string & {
|
|
582
|
+
__brand: "OperationalDate";
|
|
583
|
+
};
|
|
568
584
|
start_time?: any;
|
|
569
|
-
route_id?: any;
|
|
570
585
|
direction_id?: any;
|
|
571
586
|
modified_trip?: any;
|
|
572
587
|
schedule_relationship?: any;
|
|
573
|
-
start_date?: any;
|
|
574
588
|
} | null | undefined;
|
|
575
589
|
}[];
|
|
576
590
|
url?: {
|
|
@@ -612,13 +626,13 @@ export declare const GtfsRtFeedMessageSchema: z.ZodObject<{
|
|
|
612
626
|
id: string;
|
|
613
627
|
vehicle?: {
|
|
614
628
|
trip: {
|
|
615
|
-
trip_id
|
|
629
|
+
trip_id: string;
|
|
630
|
+
route_id: string;
|
|
631
|
+
start_date: string;
|
|
616
632
|
start_time?: any;
|
|
617
|
-
route_id?: any;
|
|
618
633
|
direction_id?: any;
|
|
619
634
|
modified_trip?: any;
|
|
620
635
|
schedule_relationship?: any;
|
|
621
|
-
start_date?: any;
|
|
622
636
|
};
|
|
623
637
|
position: {
|
|
624
638
|
latitude: number;
|
|
@@ -668,13 +682,13 @@ export declare const GtfsRtFeedMessageSchema: z.ZodObject<{
|
|
|
668
682
|
route_type?: number | null | undefined;
|
|
669
683
|
direction_id?: number | null | undefined;
|
|
670
684
|
trip?: {
|
|
671
|
-
trip_id
|
|
685
|
+
trip_id: string;
|
|
686
|
+
route_id: string;
|
|
687
|
+
start_date: string;
|
|
672
688
|
start_time?: any;
|
|
673
|
-
route_id?: any;
|
|
674
689
|
direction_id?: any;
|
|
675
690
|
modified_trip?: any;
|
|
676
691
|
schedule_relationship?: any;
|
|
677
|
-
start_date?: any;
|
|
678
692
|
} | null | undefined;
|
|
679
693
|
}[];
|
|
680
694
|
url?: {
|
|
@@ -734,13 +748,15 @@ export declare const GtfsRtFeedMessageSchema: z.ZodObject<{
|
|
|
734
748
|
id: string;
|
|
735
749
|
vehicle?: {
|
|
736
750
|
trip: {
|
|
737
|
-
trip_id
|
|
751
|
+
trip_id: string;
|
|
752
|
+
route_id: string;
|
|
753
|
+
start_date: string & {
|
|
754
|
+
__brand: "OperationalDate";
|
|
755
|
+
};
|
|
738
756
|
start_time?: any;
|
|
739
|
-
route_id?: any;
|
|
740
757
|
direction_id?: any;
|
|
741
758
|
modified_trip?: any;
|
|
742
759
|
schedule_relationship?: any;
|
|
743
|
-
start_date?: any;
|
|
744
760
|
};
|
|
745
761
|
position: {
|
|
746
762
|
latitude: number;
|
|
@@ -790,13 +806,15 @@ export declare const GtfsRtFeedMessageSchema: z.ZodObject<{
|
|
|
790
806
|
route_type?: number | null | undefined;
|
|
791
807
|
direction_id?: number | null | undefined;
|
|
792
808
|
trip?: {
|
|
793
|
-
trip_id
|
|
809
|
+
trip_id: string;
|
|
810
|
+
route_id: string;
|
|
811
|
+
start_date: string & {
|
|
812
|
+
__brand: "OperationalDate";
|
|
813
|
+
};
|
|
794
814
|
start_time?: any;
|
|
795
|
-
route_id?: any;
|
|
796
815
|
direction_id?: any;
|
|
797
816
|
modified_trip?: any;
|
|
798
817
|
schedule_relationship?: any;
|
|
799
|
-
start_date?: any;
|
|
800
818
|
} | null | undefined;
|
|
801
819
|
}[];
|
|
802
820
|
url?: {
|
|
@@ -846,13 +864,13 @@ export declare const GtfsRtFeedMessageSchema: z.ZodObject<{
|
|
|
846
864
|
id: string;
|
|
847
865
|
vehicle?: {
|
|
848
866
|
trip: {
|
|
849
|
-
trip_id
|
|
867
|
+
trip_id: string;
|
|
868
|
+
route_id: string;
|
|
869
|
+
start_date: string;
|
|
850
870
|
start_time?: any;
|
|
851
|
-
route_id?: any;
|
|
852
871
|
direction_id?: any;
|
|
853
872
|
modified_trip?: any;
|
|
854
873
|
schedule_relationship?: any;
|
|
855
|
-
start_date?: any;
|
|
856
874
|
};
|
|
857
875
|
position: {
|
|
858
876
|
latitude: number;
|
|
@@ -902,13 +920,13 @@ export declare const GtfsRtFeedMessageSchema: z.ZodObject<{
|
|
|
902
920
|
route_type?: number | null | undefined;
|
|
903
921
|
direction_id?: number | null | undefined;
|
|
904
922
|
trip?: {
|
|
905
|
-
trip_id
|
|
923
|
+
trip_id: string;
|
|
924
|
+
route_id: string;
|
|
925
|
+
start_date: string;
|
|
906
926
|
start_time?: any;
|
|
907
|
-
route_id?: any;
|
|
908
927
|
direction_id?: any;
|
|
909
928
|
modified_trip?: any;
|
|
910
929
|
schedule_relationship?: any;
|
|
911
|
-
start_date?: any;
|
|
912
930
|
} | null | undefined;
|
|
913
931
|
}[];
|
|
914
932
|
url?: {
|
|
@@ -2,26 +2,28 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const GtfsRtTripDescriptorSchema: z.ZodObject<{
|
|
3
3
|
direction_id: z.ZodAny;
|
|
4
4
|
modified_trip: z.ZodAny;
|
|
5
|
-
route_id: z.
|
|
5
|
+
route_id: z.ZodString;
|
|
6
6
|
schedule_relationship: z.ZodAny;
|
|
7
|
-
start_date: z.
|
|
7
|
+
start_date: z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>;
|
|
8
8
|
start_time: z.ZodAny;
|
|
9
|
-
trip_id: z.
|
|
9
|
+
trip_id: z.ZodString;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
trip_id
|
|
11
|
+
trip_id: string;
|
|
12
|
+
route_id: string;
|
|
13
|
+
start_date: string & {
|
|
14
|
+
__brand: "OperationalDate";
|
|
15
|
+
};
|
|
12
16
|
start_time?: any;
|
|
13
|
-
route_id?: any;
|
|
14
17
|
direction_id?: any;
|
|
15
18
|
modified_trip?: any;
|
|
16
19
|
schedule_relationship?: any;
|
|
17
|
-
start_date?: any;
|
|
18
20
|
}, {
|
|
19
|
-
trip_id
|
|
21
|
+
trip_id: string;
|
|
22
|
+
route_id: string;
|
|
23
|
+
start_date: string;
|
|
20
24
|
start_time?: any;
|
|
21
|
-
route_id?: any;
|
|
22
25
|
direction_id?: any;
|
|
23
26
|
modified_trip?: any;
|
|
24
27
|
schedule_relationship?: any;
|
|
25
|
-
start_date?: any;
|
|
26
28
|
}>;
|
|
27
29
|
export type GtfsRtTripDescriptor = z.infer<typeof GtfsRtTripDescriptorSchema>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/* * */
|
|
2
|
+
import { OperationalDateSchema } from '../_common/operational-date.js';
|
|
2
3
|
import { z } from 'zod';
|
|
3
4
|
/* * */
|
|
4
5
|
export const GtfsRtTripDescriptorSchema = z.object({
|
|
5
6
|
direction_id: z.any(),
|
|
6
7
|
modified_trip: z.any(),
|
|
7
|
-
route_id: z.
|
|
8
|
+
route_id: z.string(),
|
|
8
9
|
schedule_relationship: z.any(),
|
|
9
|
-
start_date:
|
|
10
|
+
start_date: OperationalDateSchema,
|
|
10
11
|
start_time: z.any(),
|
|
11
|
-
trip_id: z.
|
|
12
|
+
trip_id: z.string(),
|
|
12
13
|
});
|
|
@@ -48,27 +48,29 @@ export declare const GtfsRtVehiclePositionSchema: z.ZodObject<{
|
|
|
48
48
|
trip: z.ZodObject<{
|
|
49
49
|
direction_id: z.ZodAny;
|
|
50
50
|
modified_trip: z.ZodAny;
|
|
51
|
-
route_id: z.
|
|
51
|
+
route_id: z.ZodString;
|
|
52
52
|
schedule_relationship: z.ZodAny;
|
|
53
|
-
start_date: z.
|
|
53
|
+
start_date: z.ZodEffects<z.ZodString, import("../index.js").OperationalDate, string>;
|
|
54
54
|
start_time: z.ZodAny;
|
|
55
|
-
trip_id: z.
|
|
55
|
+
trip_id: z.ZodString;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
trip_id
|
|
57
|
+
trip_id: string;
|
|
58
|
+
route_id: string;
|
|
59
|
+
start_date: string & {
|
|
60
|
+
__brand: "OperationalDate";
|
|
61
|
+
};
|
|
58
62
|
start_time?: any;
|
|
59
|
-
route_id?: any;
|
|
60
63
|
direction_id?: any;
|
|
61
64
|
modified_trip?: any;
|
|
62
65
|
schedule_relationship?: any;
|
|
63
|
-
start_date?: any;
|
|
64
66
|
}, {
|
|
65
|
-
trip_id
|
|
67
|
+
trip_id: string;
|
|
68
|
+
route_id: string;
|
|
69
|
+
start_date: string;
|
|
66
70
|
start_time?: any;
|
|
67
|
-
route_id?: any;
|
|
68
71
|
direction_id?: any;
|
|
69
72
|
modified_trip?: any;
|
|
70
73
|
schedule_relationship?: any;
|
|
71
|
-
start_date?: any;
|
|
72
74
|
}>;
|
|
73
75
|
vehicle: z.ZodObject<{
|
|
74
76
|
id: z.ZodString;
|
|
@@ -88,13 +90,15 @@ export declare const GtfsRtVehiclePositionSchema: z.ZodObject<{
|
|
|
88
90
|
}>;
|
|
89
91
|
}, "strip", z.ZodTypeAny, {
|
|
90
92
|
trip: {
|
|
91
|
-
trip_id
|
|
93
|
+
trip_id: string;
|
|
94
|
+
route_id: string;
|
|
95
|
+
start_date: string & {
|
|
96
|
+
__brand: "OperationalDate";
|
|
97
|
+
};
|
|
92
98
|
start_time?: any;
|
|
93
|
-
route_id?: any;
|
|
94
99
|
direction_id?: any;
|
|
95
100
|
modified_trip?: any;
|
|
96
101
|
schedule_relationship?: any;
|
|
97
|
-
start_date?: any;
|
|
98
102
|
};
|
|
99
103
|
position: {
|
|
100
104
|
latitude: number;
|
|
@@ -125,13 +129,13 @@ export declare const GtfsRtVehiclePositionSchema: z.ZodObject<{
|
|
|
125
129
|
timestamp?: number | null | undefined;
|
|
126
130
|
}, {
|
|
127
131
|
trip: {
|
|
128
|
-
trip_id
|
|
132
|
+
trip_id: string;
|
|
133
|
+
route_id: string;
|
|
134
|
+
start_date: string;
|
|
129
135
|
start_time?: any;
|
|
130
|
-
route_id?: any;
|
|
131
136
|
direction_id?: any;
|
|
132
137
|
modified_trip?: any;
|
|
133
138
|
schedule_relationship?: any;
|
|
134
|
-
start_date?: any;
|
|
135
139
|
};
|
|
136
140
|
position: {
|
|
137
141
|
latitude: number;
|