@tmlmobilidade/types 20260627.1155.27 → 20260627.1247.24
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/vehicle-events/raw/ccfl/v1.d.ts +16 -16
- package/dist/vehicle-events/raw/ccfl/v1.js +1 -1
- package/dist/vehicle-events/raw/cp/v1.d.ts +16 -16
- package/dist/vehicle-events/raw/cp/v1.js +2 -2
- package/dist/vehicle-events/raw/crtm-aisa/v1.d.ts +36 -36
- package/dist/vehicle-events/raw/crtm-aisa/v1.js +5 -5
- package/dist/vehicle-events/raw/crtm-laveloz/v1.d.ts +36 -36
- package/dist/vehicle-events/raw/crtm-laveloz/v1.js +5 -5
- package/dist/vehicle-events/raw/mobi/v1.d.ts +43 -27
- package/dist/vehicle-events/raw/mobi/v1.js +5 -4
- package/dist/vehicle-events/raw/raw-vehicle-event.d.ts +98 -89
- package/dist/vehicle-events/raw/tcb/v1.d.ts +18 -18
- package/dist/vehicle-events/raw/tcb/v1.js +3 -3
- package/dist/vehicle-events/raw/ttsl/v1.d.ts +16 -16
- package/dist/vehicle-events/raw/ttsl/v1.js +1 -1
- package/package.json +2 -1
|
@@ -46,18 +46,18 @@ export declare const RawVehicleEventCcflV1PayloadSchema: z.ZodObject<{
|
|
|
46
46
|
}>;
|
|
47
47
|
vehicle: z.ZodObject<{
|
|
48
48
|
id: z.ZodString;
|
|
49
|
-
license_plate: z.ZodString
|
|
49
|
+
license_plate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
51
|
id: string;
|
|
52
|
-
license_plate
|
|
52
|
+
license_plate?: string | null | undefined;
|
|
53
53
|
}, {
|
|
54
54
|
id: string;
|
|
55
|
-
license_plate
|
|
55
|
+
license_plate?: string | null | undefined;
|
|
56
56
|
}>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
vehicle: {
|
|
59
59
|
id: string;
|
|
60
|
-
license_plate
|
|
60
|
+
license_plate?: string | null | undefined;
|
|
61
61
|
};
|
|
62
62
|
position: {
|
|
63
63
|
latitude: number;
|
|
@@ -75,7 +75,7 @@ export declare const RawVehicleEventCcflV1PayloadSchema: z.ZodObject<{
|
|
|
75
75
|
}, {
|
|
76
76
|
vehicle: {
|
|
77
77
|
id: string;
|
|
78
|
-
license_plate
|
|
78
|
+
license_plate?: string | null | undefined;
|
|
79
79
|
};
|
|
80
80
|
position: {
|
|
81
81
|
latitude: number;
|
|
@@ -95,7 +95,7 @@ export declare const RawVehicleEventCcflV1PayloadSchema: z.ZodObject<{
|
|
|
95
95
|
vehicle: {
|
|
96
96
|
vehicle: {
|
|
97
97
|
id: string;
|
|
98
|
-
license_plate
|
|
98
|
+
license_plate?: string | null | undefined;
|
|
99
99
|
};
|
|
100
100
|
position: {
|
|
101
101
|
latitude: number;
|
|
@@ -121,7 +121,7 @@ export declare const RawVehicleEventCcflV1PayloadSchema: z.ZodObject<{
|
|
|
121
121
|
vehicle: {
|
|
122
122
|
vehicle: {
|
|
123
123
|
id: string;
|
|
124
|
-
license_plate
|
|
124
|
+
license_plate?: string | null | undefined;
|
|
125
125
|
};
|
|
126
126
|
position: {
|
|
127
127
|
latitude: number;
|
|
@@ -199,18 +199,18 @@ export declare const RawVehicleEventCcflV1Schema: z.ZodObject<{
|
|
|
199
199
|
}>;
|
|
200
200
|
vehicle: z.ZodObject<{
|
|
201
201
|
id: z.ZodString;
|
|
202
|
-
license_plate: z.ZodString
|
|
202
|
+
license_plate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
203
203
|
}, "strip", z.ZodTypeAny, {
|
|
204
204
|
id: string;
|
|
205
|
-
license_plate
|
|
205
|
+
license_plate?: string | null | undefined;
|
|
206
206
|
}, {
|
|
207
207
|
id: string;
|
|
208
|
-
license_plate
|
|
208
|
+
license_plate?: string | null | undefined;
|
|
209
209
|
}>;
|
|
210
210
|
}, "strip", z.ZodTypeAny, {
|
|
211
211
|
vehicle: {
|
|
212
212
|
id: string;
|
|
213
|
-
license_plate
|
|
213
|
+
license_plate?: string | null | undefined;
|
|
214
214
|
};
|
|
215
215
|
position: {
|
|
216
216
|
latitude: number;
|
|
@@ -228,7 +228,7 @@ export declare const RawVehicleEventCcflV1Schema: z.ZodObject<{
|
|
|
228
228
|
}, {
|
|
229
229
|
vehicle: {
|
|
230
230
|
id: string;
|
|
231
|
-
license_plate
|
|
231
|
+
license_plate?: string | null | undefined;
|
|
232
232
|
};
|
|
233
233
|
position: {
|
|
234
234
|
latitude: number;
|
|
@@ -248,7 +248,7 @@ export declare const RawVehicleEventCcflV1Schema: z.ZodObject<{
|
|
|
248
248
|
vehicle: {
|
|
249
249
|
vehicle: {
|
|
250
250
|
id: string;
|
|
251
|
-
license_plate
|
|
251
|
+
license_plate?: string | null | undefined;
|
|
252
252
|
};
|
|
253
253
|
position: {
|
|
254
254
|
latitude: number;
|
|
@@ -274,7 +274,7 @@ export declare const RawVehicleEventCcflV1Schema: z.ZodObject<{
|
|
|
274
274
|
vehicle: {
|
|
275
275
|
vehicle: {
|
|
276
276
|
id: string;
|
|
277
|
-
license_plate
|
|
277
|
+
license_plate?: string | null | undefined;
|
|
278
278
|
};
|
|
279
279
|
position: {
|
|
280
280
|
latitude: number;
|
|
@@ -308,7 +308,7 @@ export declare const RawVehicleEventCcflV1Schema: z.ZodObject<{
|
|
|
308
308
|
vehicle: {
|
|
309
309
|
vehicle: {
|
|
310
310
|
id: string;
|
|
311
|
-
license_plate
|
|
311
|
+
license_plate?: string | null | undefined;
|
|
312
312
|
};
|
|
313
313
|
position: {
|
|
314
314
|
latitude: number;
|
|
@@ -344,7 +344,7 @@ export declare const RawVehicleEventCcflV1Schema: z.ZodObject<{
|
|
|
344
344
|
vehicle: {
|
|
345
345
|
vehicle: {
|
|
346
346
|
id: string;
|
|
347
|
-
license_plate
|
|
347
|
+
license_plate?: string | null | undefined;
|
|
348
348
|
};
|
|
349
349
|
position: {
|
|
350
350
|
latitude: number;
|
|
@@ -34,14 +34,14 @@ export declare const RawVehicleEventCpV1PayloadSchema: z.ZodObject<{
|
|
|
34
34
|
}>;
|
|
35
35
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
36
|
trip: z.ZodObject<{
|
|
37
|
-
schedule_relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["SCHEDULED", "
|
|
37
|
+
schedule_relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["SCHEDULED", "CANCELED", "REPLACEMENT", "DUPLICATED", "NEW", "DELETED"]>>>;
|
|
38
38
|
trip_id: z.ZodString;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
40
|
trip_id: string;
|
|
41
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
41
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
trip_id: string;
|
|
44
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
44
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
45
45
|
}>;
|
|
46
46
|
vehicle: z.ZodObject<{
|
|
47
47
|
id: z.ZodString;
|
|
@@ -61,7 +61,7 @@ export declare const RawVehicleEventCpV1PayloadSchema: z.ZodObject<{
|
|
|
61
61
|
};
|
|
62
62
|
trip: {
|
|
63
63
|
trip_id: string;
|
|
64
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
64
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
65
65
|
};
|
|
66
66
|
timestamp?: number | null | undefined;
|
|
67
67
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
@@ -77,7 +77,7 @@ export declare const RawVehicleEventCpV1PayloadSchema: z.ZodObject<{
|
|
|
77
77
|
};
|
|
78
78
|
trip: {
|
|
79
79
|
trip_id: string;
|
|
80
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
80
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
81
81
|
};
|
|
82
82
|
timestamp?: number | null | undefined;
|
|
83
83
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
@@ -95,7 +95,7 @@ export declare const RawVehicleEventCpV1PayloadSchema: z.ZodObject<{
|
|
|
95
95
|
};
|
|
96
96
|
trip: {
|
|
97
97
|
trip_id: string;
|
|
98
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
98
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
99
99
|
};
|
|
100
100
|
timestamp?: number | null | undefined;
|
|
101
101
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
@@ -119,7 +119,7 @@ export declare const RawVehicleEventCpV1PayloadSchema: z.ZodObject<{
|
|
|
119
119
|
};
|
|
120
120
|
trip: {
|
|
121
121
|
trip_id: string;
|
|
122
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
122
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
123
123
|
};
|
|
124
124
|
timestamp?: number | null | undefined;
|
|
125
125
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
@@ -175,14 +175,14 @@ export declare const RawVehicleEventCpV1Schema: z.ZodObject<{
|
|
|
175
175
|
}>;
|
|
176
176
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
177
177
|
trip: z.ZodObject<{
|
|
178
|
-
schedule_relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["SCHEDULED", "
|
|
178
|
+
schedule_relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["SCHEDULED", "CANCELED", "REPLACEMENT", "DUPLICATED", "NEW", "DELETED"]>>>;
|
|
179
179
|
trip_id: z.ZodString;
|
|
180
180
|
}, "strip", z.ZodTypeAny, {
|
|
181
181
|
trip_id: string;
|
|
182
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
182
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
183
183
|
}, {
|
|
184
184
|
trip_id: string;
|
|
185
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
185
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
186
186
|
}>;
|
|
187
187
|
vehicle: z.ZodObject<{
|
|
188
188
|
id: z.ZodString;
|
|
@@ -202,7 +202,7 @@ export declare const RawVehicleEventCpV1Schema: z.ZodObject<{
|
|
|
202
202
|
};
|
|
203
203
|
trip: {
|
|
204
204
|
trip_id: string;
|
|
205
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
205
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
206
206
|
};
|
|
207
207
|
timestamp?: number | null | undefined;
|
|
208
208
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
@@ -218,7 +218,7 @@ export declare const RawVehicleEventCpV1Schema: z.ZodObject<{
|
|
|
218
218
|
};
|
|
219
219
|
trip: {
|
|
220
220
|
trip_id: string;
|
|
221
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
221
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
222
222
|
};
|
|
223
223
|
timestamp?: number | null | undefined;
|
|
224
224
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
@@ -236,7 +236,7 @@ export declare const RawVehicleEventCpV1Schema: z.ZodObject<{
|
|
|
236
236
|
};
|
|
237
237
|
trip: {
|
|
238
238
|
trip_id: string;
|
|
239
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
239
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
240
240
|
};
|
|
241
241
|
timestamp?: number | null | undefined;
|
|
242
242
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
@@ -260,7 +260,7 @@ export declare const RawVehicleEventCpV1Schema: z.ZodObject<{
|
|
|
260
260
|
};
|
|
261
261
|
trip: {
|
|
262
262
|
trip_id: string;
|
|
263
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
263
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
264
264
|
};
|
|
265
265
|
timestamp?: number | null | undefined;
|
|
266
266
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
@@ -292,7 +292,7 @@ export declare const RawVehicleEventCpV1Schema: z.ZodObject<{
|
|
|
292
292
|
};
|
|
293
293
|
trip: {
|
|
294
294
|
trip_id: string;
|
|
295
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
295
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
296
296
|
};
|
|
297
297
|
timestamp?: number | null | undefined;
|
|
298
298
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
@@ -326,7 +326,7 @@ export declare const RawVehicleEventCpV1Schema: z.ZodObject<{
|
|
|
326
326
|
};
|
|
327
327
|
trip: {
|
|
328
328
|
trip_id: string;
|
|
329
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
329
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
330
330
|
};
|
|
331
331
|
timestamp?: number | null | undefined;
|
|
332
332
|
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
import { RawVehicleEventBaseSchema } from '../raw-vehicle-event-base.js';
|
|
3
|
-
import { GtfsRtOccupancyStatusSchema } from '@tmlmobilidade/go-types-gtfs-rt';
|
|
3
|
+
import { GtfsRtOccupancyStatusSchema, GtfsRtScheduleRelationshipSchema } from '@tmlmobilidade/go-types-gtfs-rt';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
/* * */
|
|
6
6
|
export const RawVehicleEventCpV1PayloadSchema = z.object({
|
|
@@ -20,7 +20,7 @@ export const RawVehicleEventCpV1PayloadSchema = z.object({
|
|
|
20
20
|
}),
|
|
21
21
|
timestamp: z.number().nullish(),
|
|
22
22
|
trip: z.object({
|
|
23
|
-
schedule_relationship:
|
|
23
|
+
schedule_relationship: GtfsRtScheduleRelationshipSchema.nullish(),
|
|
24
24
|
trip_id: z.string(),
|
|
25
25
|
}),
|
|
26
26
|
vehicle: z.object({
|
|
@@ -45,24 +45,24 @@ export declare const RawVehicleEventCrtmAisaV1PayloadSchema: z.ZodObject<{
|
|
|
45
45
|
trip: z.ZodObject<{
|
|
46
46
|
direction_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
47
47
|
route_id: z.ZodString;
|
|
48
|
-
schedule_relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["SCHEDULED", "
|
|
49
|
-
start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("
|
|
50
|
-
start_time: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
48
|
+
schedule_relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["SCHEDULED", "CANCELED", "REPLACEMENT", "DUPLICATED", "NEW", "DELETED"]>>>;
|
|
49
|
+
start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-gtfs").GtfsDate, string>>>;
|
|
50
|
+
start_time: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-gtfs").GtfsTime, string>>>;
|
|
51
51
|
trip_id: z.ZodString;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
53
|
route_id: string;
|
|
54
54
|
trip_id: string;
|
|
55
|
-
start_time?:
|
|
55
|
+
start_time?: import("@tmlmobilidade/go-types-gtfs").GtfsTime | null | undefined;
|
|
56
56
|
direction_id?: number | null | undefined;
|
|
57
|
-
start_date?: import("
|
|
58
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
57
|
+
start_date?: import("@tmlmobilidade/go-types-gtfs").GtfsDate | null | undefined;
|
|
58
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
59
59
|
}, {
|
|
60
60
|
route_id: string;
|
|
61
61
|
trip_id: string;
|
|
62
62
|
start_time?: string | null | undefined;
|
|
63
63
|
direction_id?: number | null | undefined;
|
|
64
64
|
start_date?: string | null | undefined;
|
|
65
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
65
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
vehicle: z.ZodObject<{
|
|
68
68
|
id: z.ZodString;
|
|
@@ -89,10 +89,10 @@ export declare const RawVehicleEventCrtmAisaV1PayloadSchema: z.ZodObject<{
|
|
|
89
89
|
trip: {
|
|
90
90
|
route_id: string;
|
|
91
91
|
trip_id: string;
|
|
92
|
-
start_time?:
|
|
92
|
+
start_time?: import("@tmlmobilidade/go-types-gtfs").GtfsTime | null | undefined;
|
|
93
93
|
direction_id?: number | null | undefined;
|
|
94
|
-
start_date?: import("
|
|
95
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
94
|
+
start_date?: import("@tmlmobilidade/go-types-gtfs").GtfsDate | null | undefined;
|
|
95
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
96
96
|
};
|
|
97
97
|
stop_id?: string | null | undefined;
|
|
98
98
|
timestamp?: number | null | undefined;
|
|
@@ -118,7 +118,7 @@ export declare const RawVehicleEventCrtmAisaV1PayloadSchema: z.ZodObject<{
|
|
|
118
118
|
start_time?: string | null | undefined;
|
|
119
119
|
direction_id?: number | null | undefined;
|
|
120
120
|
start_date?: string | null | undefined;
|
|
121
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
121
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
122
122
|
};
|
|
123
123
|
stop_id?: string | null | undefined;
|
|
124
124
|
timestamp?: number | null | undefined;
|
|
@@ -143,10 +143,10 @@ export declare const RawVehicleEventCrtmAisaV1PayloadSchema: z.ZodObject<{
|
|
|
143
143
|
trip: {
|
|
144
144
|
route_id: string;
|
|
145
145
|
trip_id: string;
|
|
146
|
-
start_time?:
|
|
146
|
+
start_time?: import("@tmlmobilidade/go-types-gtfs").GtfsTime | null | undefined;
|
|
147
147
|
direction_id?: number | null | undefined;
|
|
148
|
-
start_date?: import("
|
|
149
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
148
|
+
start_date?: import("@tmlmobilidade/go-types-gtfs").GtfsDate | null | undefined;
|
|
149
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
150
150
|
};
|
|
151
151
|
stop_id?: string | null | undefined;
|
|
152
152
|
timestamp?: number | null | undefined;
|
|
@@ -180,7 +180,7 @@ export declare const RawVehicleEventCrtmAisaV1PayloadSchema: z.ZodObject<{
|
|
|
180
180
|
start_time?: string | null | undefined;
|
|
181
181
|
direction_id?: number | null | undefined;
|
|
182
182
|
start_date?: string | null | undefined;
|
|
183
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
183
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
184
184
|
};
|
|
185
185
|
stop_id?: string | null | undefined;
|
|
186
186
|
timestamp?: number | null | undefined;
|
|
@@ -200,9 +200,9 @@ export type RawVehicleEventCrtmAisaV1Payload = z.infer<typeof RawVehicleEventCrt
|
|
|
200
200
|
export declare const RawVehicleEventCrtmAisaV1Schema: z.ZodObject<{
|
|
201
201
|
_id: z.ZodString;
|
|
202
202
|
agency_id: z.ZodString;
|
|
203
|
-
created_at: z.ZodEffects<z.ZodNumber, import("
|
|
203
|
+
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
204
204
|
entity_id: z.ZodString;
|
|
205
|
-
received_at: z.ZodEffects<z.ZodNumber, import("
|
|
205
|
+
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
206
206
|
} & {
|
|
207
207
|
payload: z.ZodObject<{
|
|
208
208
|
header: z.ZodObject<{
|
|
@@ -250,24 +250,24 @@ export declare const RawVehicleEventCrtmAisaV1Schema: z.ZodObject<{
|
|
|
250
250
|
trip: z.ZodObject<{
|
|
251
251
|
direction_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
252
252
|
route_id: z.ZodString;
|
|
253
|
-
schedule_relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["SCHEDULED", "
|
|
254
|
-
start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("
|
|
255
|
-
start_time: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
253
|
+
schedule_relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["SCHEDULED", "CANCELED", "REPLACEMENT", "DUPLICATED", "NEW", "DELETED"]>>>;
|
|
254
|
+
start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-gtfs").GtfsDate, string>>>;
|
|
255
|
+
start_time: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-gtfs").GtfsTime, string>>>;
|
|
256
256
|
trip_id: z.ZodString;
|
|
257
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
258
|
route_id: string;
|
|
259
259
|
trip_id: string;
|
|
260
|
-
start_time?:
|
|
260
|
+
start_time?: import("@tmlmobilidade/go-types-gtfs").GtfsTime | null | undefined;
|
|
261
261
|
direction_id?: number | null | undefined;
|
|
262
|
-
start_date?: import("
|
|
263
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
262
|
+
start_date?: import("@tmlmobilidade/go-types-gtfs").GtfsDate | null | undefined;
|
|
263
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
264
264
|
}, {
|
|
265
265
|
route_id: string;
|
|
266
266
|
trip_id: string;
|
|
267
267
|
start_time?: string | null | undefined;
|
|
268
268
|
direction_id?: number | null | undefined;
|
|
269
269
|
start_date?: string | null | undefined;
|
|
270
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
270
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
271
271
|
}>;
|
|
272
272
|
vehicle: z.ZodObject<{
|
|
273
273
|
id: z.ZodString;
|
|
@@ -294,10 +294,10 @@ export declare const RawVehicleEventCrtmAisaV1Schema: z.ZodObject<{
|
|
|
294
294
|
trip: {
|
|
295
295
|
route_id: string;
|
|
296
296
|
trip_id: string;
|
|
297
|
-
start_time?:
|
|
297
|
+
start_time?: import("@tmlmobilidade/go-types-gtfs").GtfsTime | null | undefined;
|
|
298
298
|
direction_id?: number | null | undefined;
|
|
299
|
-
start_date?: import("
|
|
300
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
299
|
+
start_date?: import("@tmlmobilidade/go-types-gtfs").GtfsDate | null | undefined;
|
|
300
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
301
301
|
};
|
|
302
302
|
stop_id?: string | null | undefined;
|
|
303
303
|
timestamp?: number | null | undefined;
|
|
@@ -323,7 +323,7 @@ export declare const RawVehicleEventCrtmAisaV1Schema: z.ZodObject<{
|
|
|
323
323
|
start_time?: string | null | undefined;
|
|
324
324
|
direction_id?: number | null | undefined;
|
|
325
325
|
start_date?: string | null | undefined;
|
|
326
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
326
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
327
327
|
};
|
|
328
328
|
stop_id?: string | null | undefined;
|
|
329
329
|
timestamp?: number | null | undefined;
|
|
@@ -348,10 +348,10 @@ export declare const RawVehicleEventCrtmAisaV1Schema: z.ZodObject<{
|
|
|
348
348
|
trip: {
|
|
349
349
|
route_id: string;
|
|
350
350
|
trip_id: string;
|
|
351
|
-
start_time?:
|
|
351
|
+
start_time?: import("@tmlmobilidade/go-types-gtfs").GtfsTime | null | undefined;
|
|
352
352
|
direction_id?: number | null | undefined;
|
|
353
|
-
start_date?: import("
|
|
354
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
353
|
+
start_date?: import("@tmlmobilidade/go-types-gtfs").GtfsDate | null | undefined;
|
|
354
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
355
355
|
};
|
|
356
356
|
stop_id?: string | null | undefined;
|
|
357
357
|
timestamp?: number | null | undefined;
|
|
@@ -385,7 +385,7 @@ export declare const RawVehicleEventCrtmAisaV1Schema: z.ZodObject<{
|
|
|
385
385
|
start_time?: string | null | undefined;
|
|
386
386
|
direction_id?: number | null | undefined;
|
|
387
387
|
start_date?: string | null | undefined;
|
|
388
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
388
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
389
389
|
};
|
|
390
390
|
stop_id?: string | null | undefined;
|
|
391
391
|
timestamp?: number | null | undefined;
|
|
@@ -424,10 +424,10 @@ export declare const RawVehicleEventCrtmAisaV1Schema: z.ZodObject<{
|
|
|
424
424
|
trip: {
|
|
425
425
|
route_id: string;
|
|
426
426
|
trip_id: string;
|
|
427
|
-
start_time?:
|
|
427
|
+
start_time?: import("@tmlmobilidade/go-types-gtfs").GtfsTime | null | undefined;
|
|
428
428
|
direction_id?: number | null | undefined;
|
|
429
|
-
start_date?: import("
|
|
430
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
429
|
+
start_date?: import("@tmlmobilidade/go-types-gtfs").GtfsDate | null | undefined;
|
|
430
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
431
431
|
};
|
|
432
432
|
stop_id?: string | null | undefined;
|
|
433
433
|
timestamp?: number | null | undefined;
|
|
@@ -471,7 +471,7 @@ export declare const RawVehicleEventCrtmAisaV1Schema: z.ZodObject<{
|
|
|
471
471
|
start_time?: string | null | undefined;
|
|
472
472
|
direction_id?: number | null | undefined;
|
|
473
473
|
start_date?: string | null | undefined;
|
|
474
|
-
schedule_relationship?: "SCHEDULED" | "
|
|
474
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
475
475
|
};
|
|
476
476
|
stop_id?: string | null | undefined;
|
|
477
477
|
timestamp?: number | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* * */
|
|
2
|
-
import { OperationalDateSchema } from '../../../index.js';
|
|
3
2
|
import { RawVehicleEventBaseSchema } from '../raw-vehicle-event-base.js';
|
|
4
|
-
import {
|
|
3
|
+
import { GtfsDateSchema, GtfsTimeSchema } from '@tmlmobilidade/go-types-gtfs';
|
|
4
|
+
import { GtfsRtCongestionLevelSchema, GtfsRtOccupancyStatusSchema, GtfsRtScheduleRelationshipSchema } from '@tmlmobilidade/go-types-gtfs-rt';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
/* * */
|
|
7
7
|
export const RawVehicleEventCrtmAisaV1PayloadSchema = z.object({
|
|
@@ -28,9 +28,9 @@ export const RawVehicleEventCrtmAisaV1PayloadSchema = z.object({
|
|
|
28
28
|
trip: z.object({
|
|
29
29
|
direction_id: z.number().nullish(),
|
|
30
30
|
route_id: z.string(),
|
|
31
|
-
schedule_relationship:
|
|
32
|
-
start_date:
|
|
33
|
-
start_time:
|
|
31
|
+
schedule_relationship: GtfsRtScheduleRelationshipSchema.nullish(),
|
|
32
|
+
start_date: GtfsDateSchema.nullish(),
|
|
33
|
+
start_time: GtfsTimeSchema.nullish(),
|
|
34
34
|
trip_id: z.string(),
|
|
35
35
|
}),
|
|
36
36
|
vehicle: z.object({
|