@tmlmobilidade/types 20260627.17.1 → 20260627.41.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alerts/cause.d.ts +1 -1
- package/dist/alerts/effect.d.ts +1 -1
- package/dist/gtfs/feed-info.d.ts +2 -2
- package/dist/gtfs-tml/feed-info.d.ts +2 -2
- package/dist/gtfs-validation/gtfs-validation.d.ts +12 -12
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/locations/queries.d.ts +4 -4
- package/dist/offer/pattern.d.ts +72 -72
- package/dist/offer/route-path-type.d.ts +2 -2
- package/dist/offer/route.d.ts +6 -6
- package/dist/offer/rules.d.ts +18 -18
- package/dist/offer/typology.d.ts +7 -7
- package/dist/offer/vkm.d.ts +15 -15
- package/dist/operation/lines/operational-line.d.ts +4 -4
- package/dist/operation/stops/operational-stop.d.ts +4 -4
- package/dist/organization.d.ts +5 -5
- package/dist/plans/plan-app-status.d.ts +2 -2
- package/dist/plans/plan.d.ts +94 -94
- package/dist/vehicle/vehicle.d.ts +5 -5
- package/dist/vehicle-events/raw/ccfl/v1.d.ts +54 -54
- package/dist/vehicle-events/raw/ccfl/v1.js +1 -1
- package/dist/vehicle-events/raw/cmet/v1-core.d.ts +88 -88
- package/dist/vehicle-events/raw/cmet/v1-log.d.ts +88 -88
- package/dist/vehicle-events/raw/cp/v1.d.ts +64 -64
- package/dist/vehicle-events/raw/cp/v1.js +1 -1
- package/dist/vehicle-events/raw/crtm-aisa/v1.d.ts +112 -112
- package/dist/vehicle-events/raw/crtm-aisa/v1.js +1 -2
- package/dist/vehicle-events/raw/crtm-laveloz/v1.d.ts +112 -112
- package/dist/vehicle-events/raw/crtm-laveloz/v1.js +1 -1
- package/dist/vehicle-events/raw/fertagus/v1.d.ts +64 -64
- package/dist/vehicle-events/raw/ml/v1.d.ts +54 -54
- package/dist/vehicle-events/raw/mobi/v1.d.ts +84 -84
- package/dist/vehicle-events/raw/mobi/v1.js +1 -1
- package/dist/vehicle-events/raw/raw-vehicle-event-base.d.ts +2 -2
- package/dist/vehicle-events/raw/raw-vehicle-event.d.ts +530 -530
- package/dist/vehicle-events/raw/tcb/v1.d.ts +84 -84
- package/dist/vehicle-events/raw/tcb/v1.js +1 -1
- package/dist/vehicle-events/raw/ttsl/v1.d.ts +54 -54
- package/dist/vehicle-events/raw/ttsl/v1.js +1 -1
- package/dist/vehicle-events/simplified/simplified-vehicle-event.d.ts +7 -7
- package/package.json +2 -1
- package/dist/gtfs-rt/alert.d.ts +0 -347
- package/dist/gtfs-rt/alert.js +0 -24
- package/dist/gtfs-rt/carriage-details.d.ts +0 -21
- package/dist/gtfs-rt/carriage-details.js +0 -11
- package/dist/gtfs-rt/cause.d.ts +0 -10
- package/dist/gtfs-rt/cause.js +0 -18
- package/dist/gtfs-rt/congestion-level.d.ts +0 -4
- package/dist/gtfs-rt/congestion-level.js +0 -11
- package/dist/gtfs-rt/effect.d.ts +0 -10
- package/dist/gtfs-rt/effect.js +0 -17
- package/dist/gtfs-rt/entity-selector.d.ts +0 -68
- package/dist/gtfs-rt/entity-selector.js +0 -12
- package/dist/gtfs-rt/feed-entity.d.ts +0 -729
- package/dist/gtfs-rt/feed-entity.js +0 -11
- package/dist/gtfs-rt/feed-header.d.ts +0 -18
- package/dist/gtfs-rt/feed-header.js +0 -9
- package/dist/gtfs-rt/feed-message.d.ts +0 -975
- package/dist/gtfs-rt/feed-message.js +0 -9
- package/dist/gtfs-rt/index.d.ts +0 -22
- package/dist/gtfs-rt/index.js +0 -22
- package/dist/gtfs-rt/localized-image.d.ts +0 -15
- package/dist/gtfs-rt/localized-image.js +0 -8
- package/dist/gtfs-rt/occupancy-status.d.ts +0 -4
- package/dist/gtfs-rt/occupancy-status.js +0 -15
- package/dist/gtfs-rt/position.d.ts +0 -21
- package/dist/gtfs-rt/position.js +0 -10
- package/dist/gtfs-rt/severity-level.d.ts +0 -4
- package/dist/gtfs-rt/severity-level.js +0 -10
- package/dist/gtfs-rt/time-range.d.ts +0 -12
- package/dist/gtfs-rt/time-range.js +0 -7
- package/dist/gtfs-rt/translated-image.d.ts +0 -29
- package/dist/gtfs-rt/translated-image.js +0 -7
- package/dist/gtfs-rt/translated-string.d.ts +0 -24
- package/dist/gtfs-rt/translated-string.js +0 -7
- package/dist/gtfs-rt/translation.d.ts +0 -12
- package/dist/gtfs-rt/translation.js +0 -7
- package/dist/gtfs-rt/trip-descriptor.d.ts +0 -29
- package/dist/gtfs-rt/trip-descriptor.js +0 -13
- package/dist/gtfs-rt/vehicle-descriptor.d.ts +0 -18
- package/dist/gtfs-rt/vehicle-descriptor.js +0 -10
- package/dist/gtfs-rt/vehicle-position.d.ts +0 -168
- package/dist/gtfs-rt/vehicle-position.js +0 -23
- package/dist/gtfs-rt/vehicle-stop-status.d.ts +0 -4
- package/dist/gtfs-rt/vehicle-stop-status.js +0 -9
- package/dist/gtfs-rt/wheelchair-accessible.d.ts +0 -4
- package/dist/gtfs-rt/wheelchair-accessible.js +0 -10
- package/dist/hub/api/alerts/alert.d.ts +0 -82
- package/dist/hub/api/alerts/alert.js +0 -20
- package/dist/hub/api/alerts/index.d.ts +0 -1
- package/dist/hub/api/alerts/index.js +0 -1
- package/dist/hub/api/index.d.ts +0 -7
- package/dist/hub/api/index.js +0 -7
- package/dist/hub/api/network/index.d.ts +0 -7
- package/dist/hub/api/network/index.js +0 -7
- package/dist/hub/api/network/line.d.ts +0 -66
- package/dist/hub/api/network/line.js +0 -24
- package/dist/hub/api/network/pattern.d.ts +0 -184
- package/dist/hub/api/network/pattern.js +0 -32
- package/dist/hub/api/network/route.d.ts +0 -66
- package/dist/hub/api/network/route.js +0 -24
- package/dist/hub/api/network/scheduled-arrival.d.ts +0 -21
- package/dist/hub/api/network/scheduled-arrival.js +0 -9
- package/dist/hub/api/network/stop.d.ts +0 -97
- package/dist/hub/api/network/stop.js +0 -29
- package/dist/hub/api/network/trip.d.ts +0 -49
- package/dist/hub/api/network/trip.js +0 -11
- package/dist/hub/api/network/waypoint.d.ts +0 -27
- package/dist/hub/api/network/waypoint.js +0 -11
- package/dist/hub/api/patterns.d.ts +0 -16
- package/dist/hub/api/patterns.js +0 -3
- package/dist/hub/api/plans/index.d.ts +0 -1
- package/dist/hub/api/plans/index.js +0 -1
- package/dist/hub/api/plans/plan.d.ts +0 -138
- package/dist/hub/api/plans/plan.js +0 -18
- package/dist/hub/api/realtime/index.d.ts +0 -1
- package/dist/hub/api/realtime/index.js +0 -1
- package/dist/hub/api/realtime/vehicle-position.d.ts +0 -66
- package/dist/hub/api/realtime/vehicle-position.js +0 -31
- package/dist/hub/api/realtime-eta-gtfs.d.ts +0 -41
- package/dist/hub/api/realtime-eta-gtfs.js +0 -2
- package/dist/hub/api/shapes.d.ts +0 -148
- package/dist/hub/api/shapes.js +0 -26
- package/dist/hub/api/timetables.d.ts +0 -36
- package/dist/hub/api/timetables.js +0 -2
- package/dist/hub/gtfs/index.d.ts +0 -1
- package/dist/hub/gtfs/index.js +0 -1
- package/dist/hub/gtfs/stops.d.ts +0 -66
- package/dist/hub/gtfs/stops.js +0 -24
- package/dist/hub/index.d.ts +0 -2
- package/dist/hub/index.js +0 -2
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/* * */
|
|
2
|
-
import { GtfsRtFeedEntitySchema } from './feed-entity.js';
|
|
3
|
-
import { GtfsRtFeedHeaderSchema } from './feed-header.js';
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
/* * */
|
|
6
|
-
export const GtfsRtFeedMessageSchema = z.object({
|
|
7
|
-
entity: z.array(GtfsRtFeedEntitySchema),
|
|
8
|
-
header: GtfsRtFeedHeaderSchema,
|
|
9
|
-
});
|
package/dist/gtfs-rt/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export * from './alert.js';
|
|
2
|
-
export * from './carriage-details.js';
|
|
3
|
-
export * from './cause.js';
|
|
4
|
-
export * from './congestion-level.js';
|
|
5
|
-
export * from './effect.js';
|
|
6
|
-
export * from './entity-selector.js';
|
|
7
|
-
export * from './feed-entity.js';
|
|
8
|
-
export * from './feed-header.js';
|
|
9
|
-
export * from './feed-message.js';
|
|
10
|
-
export * from './localized-image.js';
|
|
11
|
-
export * from './occupancy-status.js';
|
|
12
|
-
export * from './position.js';
|
|
13
|
-
export * from './severity-level.js';
|
|
14
|
-
export * from './time-range.js';
|
|
15
|
-
export * from './translated-image.js';
|
|
16
|
-
export * from './translated-string.js';
|
|
17
|
-
export * from './translation.js';
|
|
18
|
-
export * from './trip-descriptor.js';
|
|
19
|
-
export * from './vehicle-descriptor.js';
|
|
20
|
-
export * from './vehicle-position.js';
|
|
21
|
-
export * from './vehicle-stop-status.js';
|
|
22
|
-
export * from './wheelchair-accessible.js';
|
package/dist/gtfs-rt/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export * from './alert.js';
|
|
2
|
-
export * from './carriage-details.js';
|
|
3
|
-
export * from './cause.js';
|
|
4
|
-
export * from './congestion-level.js';
|
|
5
|
-
export * from './effect.js';
|
|
6
|
-
export * from './entity-selector.js';
|
|
7
|
-
export * from './feed-entity.js';
|
|
8
|
-
export * from './feed-header.js';
|
|
9
|
-
export * from './feed-message.js';
|
|
10
|
-
export * from './localized-image.js';
|
|
11
|
-
export * from './occupancy-status.js';
|
|
12
|
-
export * from './position.js';
|
|
13
|
-
export * from './severity-level.js';
|
|
14
|
-
export * from './time-range.js';
|
|
15
|
-
export * from './translated-image.js';
|
|
16
|
-
export * from './translated-string.js';
|
|
17
|
-
export * from './translation.js';
|
|
18
|
-
export * from './trip-descriptor.js';
|
|
19
|
-
export * from './vehicle-descriptor.js';
|
|
20
|
-
export * from './vehicle-position.js';
|
|
21
|
-
export * from './vehicle-stop-status.js';
|
|
22
|
-
export * from './wheelchair-accessible.js';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const GtfsRtLocalizedImageSchema: z.ZodObject<{
|
|
3
|
-
language: z.ZodString;
|
|
4
|
-
media_type: z.ZodString;
|
|
5
|
-
url: z.ZodString;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
url: string;
|
|
8
|
-
language: string;
|
|
9
|
-
media_type: string;
|
|
10
|
-
}, {
|
|
11
|
-
url: string;
|
|
12
|
-
language: string;
|
|
13
|
-
media_type: string;
|
|
14
|
-
}>;
|
|
15
|
-
export type GtfsRtLocalizedImage = z.infer<typeof GtfsRtLocalizedImageSchema>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const GtfsRtOccupancyStatusValues: readonly ["EMPTY", "MANY_SEATS_AVAILABLE", "FEW_SEATS_AVAILABLE", "STANDING_ROOM_ONLY", "CRUSHED_STANDING_ROOM_ONLY", "FULL", "NOT_ACCEPTING_PASSENGERS", "NO_DATA_AVAILABLE", "NOT_BOARDABLE"];
|
|
3
|
-
export declare const GtfsRtOccupancyStatusSchema: 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"]>;
|
|
4
|
-
export type GtfsRtOccupancyStatus = z.infer<typeof GtfsRtOccupancyStatusSchema>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/* * */
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
/* * */
|
|
4
|
-
export const GtfsRtOccupancyStatusValues = [
|
|
5
|
-
'EMPTY',
|
|
6
|
-
'MANY_SEATS_AVAILABLE',
|
|
7
|
-
'FEW_SEATS_AVAILABLE',
|
|
8
|
-
'STANDING_ROOM_ONLY',
|
|
9
|
-
'CRUSHED_STANDING_ROOM_ONLY',
|
|
10
|
-
'FULL',
|
|
11
|
-
'NOT_ACCEPTING_PASSENGERS',
|
|
12
|
-
'NO_DATA_AVAILABLE',
|
|
13
|
-
'NOT_BOARDABLE',
|
|
14
|
-
];
|
|
15
|
-
export const GtfsRtOccupancyStatusSchema = z.enum(GtfsRtOccupancyStatusValues);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const GtfsRtPositionSchema: z.ZodObject<{
|
|
3
|
-
bearing: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
|
-
latitude: z.ZodNumber;
|
|
5
|
-
longitude: z.ZodNumber;
|
|
6
|
-
odometer: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
|
-
speed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
latitude: number;
|
|
10
|
-
longitude: number;
|
|
11
|
-
bearing?: number | null | undefined;
|
|
12
|
-
odometer?: number | null | undefined;
|
|
13
|
-
speed?: number | null | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
latitude: number;
|
|
16
|
-
longitude: number;
|
|
17
|
-
bearing?: number | null | undefined;
|
|
18
|
-
odometer?: number | null | undefined;
|
|
19
|
-
speed?: number | null | undefined;
|
|
20
|
-
}>;
|
|
21
|
-
export type GtfsRtPosition = z.infer<typeof GtfsRtPositionSchema>;
|
package/dist/gtfs-rt/position.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
|
-
export declare const GtfsRtSeverityLevelValues: readonly ["UNKNOWN_SEVERITY", "INFO", "WARNING", "SEVERE"];
|
|
3
|
-
export declare const GtfsRtSeverityLevelSchema: z.ZodEnum<["UNKNOWN_SEVERITY", "INFO", "WARNING", "SEVERE"]>;
|
|
4
|
-
export type GtfsRtSeverityLevel = z.infer<typeof GtfsRtSeverityLevelSchema>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const GtfsRtTimeRangeSchema: z.ZodObject<{
|
|
3
|
-
end: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
|
-
start: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
end?: number | null | undefined;
|
|
7
|
-
start?: number | null | undefined;
|
|
8
|
-
}, {
|
|
9
|
-
end?: number | null | undefined;
|
|
10
|
-
start?: number | null | undefined;
|
|
11
|
-
}>;
|
|
12
|
-
export type GtfsRtTimeRange = z.infer<typeof GtfsRtTimeRangeSchema>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const GtfsRtTranslatedImageSchema: z.ZodObject<{
|
|
3
|
-
localized_image: z.ZodArray<z.ZodObject<{
|
|
4
|
-
language: z.ZodString;
|
|
5
|
-
media_type: z.ZodString;
|
|
6
|
-
url: z.ZodString;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
url: string;
|
|
9
|
-
language: string;
|
|
10
|
-
media_type: string;
|
|
11
|
-
}, {
|
|
12
|
-
url: string;
|
|
13
|
-
language: string;
|
|
14
|
-
media_type: string;
|
|
15
|
-
}>, "many">;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
localized_image: {
|
|
18
|
-
url: string;
|
|
19
|
-
language: string;
|
|
20
|
-
media_type: string;
|
|
21
|
-
}[];
|
|
22
|
-
}, {
|
|
23
|
-
localized_image: {
|
|
24
|
-
url: string;
|
|
25
|
-
language: string;
|
|
26
|
-
media_type: string;
|
|
27
|
-
}[];
|
|
28
|
-
}>;
|
|
29
|
-
export type GtfsRtTranslatedImage = z.infer<typeof GtfsRtTranslatedImageSchema>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const GtfsRtTranslatedStringSchema: z.ZodObject<{
|
|
3
|
-
translation: z.ZodArray<z.ZodObject<{
|
|
4
|
-
language: z.ZodString;
|
|
5
|
-
text: z.ZodString;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
language: string;
|
|
8
|
-
text: string;
|
|
9
|
-
}, {
|
|
10
|
-
language: string;
|
|
11
|
-
text: string;
|
|
12
|
-
}>, "many">;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
translation: {
|
|
15
|
-
language: string;
|
|
16
|
-
text: string;
|
|
17
|
-
}[];
|
|
18
|
-
}, {
|
|
19
|
-
translation: {
|
|
20
|
-
language: string;
|
|
21
|
-
text: string;
|
|
22
|
-
}[];
|
|
23
|
-
}>;
|
|
24
|
-
export type GtfsRtTranslatedString = z.infer<typeof GtfsRtTranslatedStringSchema>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const GtfsRtTranslationSchema: z.ZodObject<{
|
|
3
|
-
language: z.ZodString;
|
|
4
|
-
text: z.ZodString;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
language: string;
|
|
7
|
-
text: string;
|
|
8
|
-
}, {
|
|
9
|
-
language: string;
|
|
10
|
-
text: string;
|
|
11
|
-
}>;
|
|
12
|
-
export type GtfsRtTranslation = z.infer<typeof GtfsRtTranslationSchema>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const GtfsRtTripDescriptorSchema: z.ZodObject<{
|
|
3
|
-
direction_id: z.ZodAny;
|
|
4
|
-
modified_trip: z.ZodAny;
|
|
5
|
-
route_id: z.ZodString;
|
|
6
|
-
schedule_relationship: z.ZodAny;
|
|
7
|
-
start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
8
|
-
start_time: z.ZodAny;
|
|
9
|
-
trip_id: z.ZodString;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
route_id: string;
|
|
12
|
-
trip_id: string;
|
|
13
|
-
start_date: string & {
|
|
14
|
-
__brand: "OperationalDate";
|
|
15
|
-
};
|
|
16
|
-
start_time?: any;
|
|
17
|
-
direction_id?: any;
|
|
18
|
-
modified_trip?: any;
|
|
19
|
-
schedule_relationship?: any;
|
|
20
|
-
}, {
|
|
21
|
-
route_id: string;
|
|
22
|
-
trip_id: string;
|
|
23
|
-
start_date: string;
|
|
24
|
-
start_time?: any;
|
|
25
|
-
direction_id?: any;
|
|
26
|
-
modified_trip?: any;
|
|
27
|
-
schedule_relationship?: any;
|
|
28
|
-
}>;
|
|
29
|
-
export type GtfsRtTripDescriptor = z.infer<typeof GtfsRtTripDescriptorSchema>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* * */
|
|
2
|
-
import { OperationalDateSchema } from '@tmlmobilidade/go-types-shared';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
/* * */
|
|
5
|
-
export const GtfsRtTripDescriptorSchema = z.object({
|
|
6
|
-
direction_id: z.any(),
|
|
7
|
-
modified_trip: z.any(),
|
|
8
|
-
route_id: z.string(),
|
|
9
|
-
schedule_relationship: z.any(),
|
|
10
|
-
start_date: OperationalDateSchema,
|
|
11
|
-
start_time: z.any(),
|
|
12
|
-
trip_id: z.string(),
|
|
13
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const GtfsRtVehicleDescriptorSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
label: z.ZodString;
|
|
5
|
-
license_plate: z.ZodString;
|
|
6
|
-
wheelchair_accessible: z.ZodEnum<["NO_VALUE", "UNKNOWN", "WHEELCHAIR_ACCESSIBLE", "WHEELCHAIR_INACCESSIBLE"]>;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
id: string;
|
|
9
|
-
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
10
|
-
label: string;
|
|
11
|
-
license_plate: string;
|
|
12
|
-
}, {
|
|
13
|
-
id: string;
|
|
14
|
-
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
15
|
-
label: string;
|
|
16
|
-
license_plate: string;
|
|
17
|
-
}>;
|
|
18
|
-
export type GtfsRtVehicleDescriptor = z.infer<typeof GtfsRtVehicleDescriptorSchema>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* * */
|
|
2
|
-
import { GtfsRtWheelchairAccessibleSchema } from './wheelchair-accessible.js';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
/* * */
|
|
5
|
-
export const GtfsRtVehicleDescriptorSchema = z.object({
|
|
6
|
-
id: z.string(),
|
|
7
|
-
label: z.string(),
|
|
8
|
-
license_plate: z.string(),
|
|
9
|
-
wheelchair_accessible: GtfsRtWheelchairAccessibleSchema,
|
|
10
|
-
});
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const GtfsRtVehiclePositionSchema: z.ZodObject<{
|
|
3
|
-
congestion_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNKNOWN_CONGESTION_LEVEL", "RUNNING_SMOOTHLY", "STOP_AND_GO", "CONGESTION", "SEVERE_CONGESTION"]>>>;
|
|
4
|
-
current_status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["INCOMING_AT", "STOPPED_AT", "IN_TRANSIT_TO"]>>>;
|
|
5
|
-
current_stop_sequence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
-
multi_carriage_details: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
7
|
-
carriage_sequence: z.ZodNumber;
|
|
8
|
-
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
-
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
-
occupancy_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
-
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"]>>>;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
carriage_sequence: number;
|
|
14
|
-
id?: string | null | undefined;
|
|
15
|
-
label?: string | null | undefined;
|
|
16
|
-
occupancy_percentage?: number | null | undefined;
|
|
17
|
-
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;
|
|
18
|
-
}, {
|
|
19
|
-
carriage_sequence: number;
|
|
20
|
-
id?: string | null | undefined;
|
|
21
|
-
label?: string | null | undefined;
|
|
22
|
-
occupancy_percentage?: number | null | undefined;
|
|
23
|
-
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;
|
|
24
|
-
}>, "many">>>;
|
|
25
|
-
occupancy_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
-
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"]>>>;
|
|
27
|
-
position: z.ZodObject<{
|
|
28
|
-
bearing: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
-
latitude: z.ZodNumber;
|
|
30
|
-
longitude: z.ZodNumber;
|
|
31
|
-
odometer: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
-
speed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
-
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
latitude: number;
|
|
35
|
-
longitude: number;
|
|
36
|
-
bearing?: number | null | undefined;
|
|
37
|
-
odometer?: number | null | undefined;
|
|
38
|
-
speed?: number | null | undefined;
|
|
39
|
-
}, {
|
|
40
|
-
latitude: number;
|
|
41
|
-
longitude: number;
|
|
42
|
-
bearing?: number | null | undefined;
|
|
43
|
-
odometer?: number | null | undefined;
|
|
44
|
-
speed?: number | null | undefined;
|
|
45
|
-
}>;
|
|
46
|
-
stop_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
-
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
48
|
-
trip: z.ZodObject<{
|
|
49
|
-
direction_id: z.ZodAny;
|
|
50
|
-
modified_trip: z.ZodAny;
|
|
51
|
-
route_id: z.ZodString;
|
|
52
|
-
schedule_relationship: z.ZodAny;
|
|
53
|
-
start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
54
|
-
start_time: z.ZodAny;
|
|
55
|
-
trip_id: z.ZodString;
|
|
56
|
-
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
route_id: string;
|
|
58
|
-
trip_id: string;
|
|
59
|
-
start_date: string & {
|
|
60
|
-
__brand: "OperationalDate";
|
|
61
|
-
};
|
|
62
|
-
start_time?: any;
|
|
63
|
-
direction_id?: any;
|
|
64
|
-
modified_trip?: any;
|
|
65
|
-
schedule_relationship?: any;
|
|
66
|
-
}, {
|
|
67
|
-
route_id: string;
|
|
68
|
-
trip_id: string;
|
|
69
|
-
start_date: string;
|
|
70
|
-
start_time?: any;
|
|
71
|
-
direction_id?: any;
|
|
72
|
-
modified_trip?: any;
|
|
73
|
-
schedule_relationship?: any;
|
|
74
|
-
}>;
|
|
75
|
-
vehicle: z.ZodObject<{
|
|
76
|
-
id: z.ZodString;
|
|
77
|
-
label: z.ZodString;
|
|
78
|
-
license_plate: z.ZodString;
|
|
79
|
-
wheelchair_accessible: z.ZodEnum<["NO_VALUE", "UNKNOWN", "WHEELCHAIR_ACCESSIBLE", "WHEELCHAIR_INACCESSIBLE"]>;
|
|
80
|
-
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
id: string;
|
|
82
|
-
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
83
|
-
label: string;
|
|
84
|
-
license_plate: string;
|
|
85
|
-
}, {
|
|
86
|
-
id: string;
|
|
87
|
-
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
88
|
-
label: string;
|
|
89
|
-
license_plate: string;
|
|
90
|
-
}>;
|
|
91
|
-
}, "strip", z.ZodTypeAny, {
|
|
92
|
-
vehicle: {
|
|
93
|
-
id: string;
|
|
94
|
-
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
95
|
-
label: string;
|
|
96
|
-
license_plate: string;
|
|
97
|
-
};
|
|
98
|
-
trip: {
|
|
99
|
-
route_id: string;
|
|
100
|
-
trip_id: string;
|
|
101
|
-
start_date: string & {
|
|
102
|
-
__brand: "OperationalDate";
|
|
103
|
-
};
|
|
104
|
-
start_time?: any;
|
|
105
|
-
direction_id?: any;
|
|
106
|
-
modified_trip?: any;
|
|
107
|
-
schedule_relationship?: any;
|
|
108
|
-
};
|
|
109
|
-
position: {
|
|
110
|
-
latitude: number;
|
|
111
|
-
longitude: number;
|
|
112
|
-
bearing?: number | null | undefined;
|
|
113
|
-
odometer?: number | null | undefined;
|
|
114
|
-
speed?: number | null | undefined;
|
|
115
|
-
};
|
|
116
|
-
stop_id?: string | null | undefined;
|
|
117
|
-
occupancy_percentage?: number | null | undefined;
|
|
118
|
-
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;
|
|
119
|
-
congestion_level?: "UNKNOWN_CONGESTION_LEVEL" | "RUNNING_SMOOTHLY" | "STOP_AND_GO" | "CONGESTION" | "SEVERE_CONGESTION" | null | undefined;
|
|
120
|
-
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
121
|
-
current_stop_sequence?: number | null | undefined;
|
|
122
|
-
multi_carriage_details?: {
|
|
123
|
-
carriage_sequence: number;
|
|
124
|
-
id?: string | null | undefined;
|
|
125
|
-
label?: string | null | undefined;
|
|
126
|
-
occupancy_percentage?: number | null | undefined;
|
|
127
|
-
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;
|
|
128
|
-
}[] | null | undefined;
|
|
129
|
-
timestamp?: number | null | undefined;
|
|
130
|
-
}, {
|
|
131
|
-
vehicle: {
|
|
132
|
-
id: string;
|
|
133
|
-
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
134
|
-
label: string;
|
|
135
|
-
license_plate: string;
|
|
136
|
-
};
|
|
137
|
-
trip: {
|
|
138
|
-
route_id: string;
|
|
139
|
-
trip_id: string;
|
|
140
|
-
start_date: string;
|
|
141
|
-
start_time?: any;
|
|
142
|
-
direction_id?: any;
|
|
143
|
-
modified_trip?: any;
|
|
144
|
-
schedule_relationship?: any;
|
|
145
|
-
};
|
|
146
|
-
position: {
|
|
147
|
-
latitude: number;
|
|
148
|
-
longitude: number;
|
|
149
|
-
bearing?: number | null | undefined;
|
|
150
|
-
odometer?: number | null | undefined;
|
|
151
|
-
speed?: number | null | undefined;
|
|
152
|
-
};
|
|
153
|
-
stop_id?: string | null | undefined;
|
|
154
|
-
occupancy_percentage?: number | null | undefined;
|
|
155
|
-
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;
|
|
156
|
-
congestion_level?: "UNKNOWN_CONGESTION_LEVEL" | "RUNNING_SMOOTHLY" | "STOP_AND_GO" | "CONGESTION" | "SEVERE_CONGESTION" | null | undefined;
|
|
157
|
-
current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
|
|
158
|
-
current_stop_sequence?: number | null | undefined;
|
|
159
|
-
multi_carriage_details?: {
|
|
160
|
-
carriage_sequence: number;
|
|
161
|
-
id?: string | null | undefined;
|
|
162
|
-
label?: string | null | undefined;
|
|
163
|
-
occupancy_percentage?: number | null | undefined;
|
|
164
|
-
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;
|
|
165
|
-
}[] | null | undefined;
|
|
166
|
-
timestamp?: number | null | undefined;
|
|
167
|
-
}>;
|
|
168
|
-
export type GtfsRtVehiclePosition = z.infer<typeof GtfsRtVehiclePositionSchema>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/* * */
|
|
2
|
-
import { GtfsRtCarriageDetailsSchema } from './carriage-details.js';
|
|
3
|
-
import { GtfsRtCongestionLevelSchema } from './congestion-level.js';
|
|
4
|
-
import { GtfsRtOccupancyStatusSchema } from './occupancy-status.js';
|
|
5
|
-
import { GtfsRtPositionSchema } from './position.js';
|
|
6
|
-
import { GtfsRtTripDescriptorSchema } from './trip-descriptor.js';
|
|
7
|
-
import { GtfsRtVehicleDescriptorSchema } from './vehicle-descriptor.js';
|
|
8
|
-
import { GtfsRtVehicleStopStatusSchema } from './vehicle-stop-status.js';
|
|
9
|
-
import { z } from 'zod';
|
|
10
|
-
/* * */
|
|
11
|
-
export const GtfsRtVehiclePositionSchema = z.object({
|
|
12
|
-
congestion_level: GtfsRtCongestionLevelSchema.nullish(),
|
|
13
|
-
current_status: GtfsRtVehicleStopStatusSchema.nullish(),
|
|
14
|
-
current_stop_sequence: z.number().nullish(),
|
|
15
|
-
multi_carriage_details: GtfsRtCarriageDetailsSchema.array().nullish(),
|
|
16
|
-
occupancy_percentage: z.number().nullish(),
|
|
17
|
-
occupancy_status: GtfsRtOccupancyStatusSchema.nullish(),
|
|
18
|
-
position: GtfsRtPositionSchema,
|
|
19
|
-
stop_id: z.string().nullish(),
|
|
20
|
-
timestamp: z.number().nullish(),
|
|
21
|
-
trip: GtfsRtTripDescriptorSchema,
|
|
22
|
-
vehicle: GtfsRtVehicleDescriptorSchema,
|
|
23
|
-
});
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const GtfsRtVehicleStopStatusValues: readonly ["INCOMING_AT", "STOPPED_AT", "IN_TRANSIT_TO"];
|
|
3
|
-
export declare const GtfsRtVehicleStopStatusSchema: z.ZodEnum<["INCOMING_AT", "STOPPED_AT", "IN_TRANSIT_TO"]>;
|
|
4
|
-
export type GtfsRtVehicleStopStatus = z.infer<typeof GtfsRtVehicleStopStatusSchema>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const GtfsRtWheelchairAccessibleValues: readonly ["NO_VALUE", "UNKNOWN", "WHEELCHAIR_ACCESSIBLE", "WHEELCHAIR_INACCESSIBLE"];
|
|
3
|
-
export declare const GtfsRtWheelchairAccessibleSchema: z.ZodEnum<["NO_VALUE", "UNKNOWN", "WHEELCHAIR_ACCESSIBLE", "WHEELCHAIR_INACCESSIBLE"]>;
|
|
4
|
-
export type GtfsRtWheelchairAccessible = z.infer<typeof GtfsRtWheelchairAccessibleSchema>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* * */
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
/* * */
|
|
4
|
-
export const GtfsRtWheelchairAccessibleValues = [
|
|
5
|
-
'NO_VALUE',
|
|
6
|
-
'UNKNOWN',
|
|
7
|
-
'WHEELCHAIR_ACCESSIBLE',
|
|
8
|
-
'WHEELCHAIR_INACCESSIBLE',
|
|
9
|
-
];
|
|
10
|
-
export const GtfsRtWheelchairAccessibleSchema = z.enum(GtfsRtWheelchairAccessibleValues);
|