@tmlmobilidade/go-types-gtfs-rt 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/alert/alert-cause.d.ts +10 -0
- package/dist/alert/alert-cause.js +18 -0
- package/dist/alert/alert-effect.d.ts +10 -0
- package/dist/alert/alert-effect.js +17 -0
- package/dist/alert/alert.d.ts +347 -0
- package/dist/alert/alert.js +24 -0
- package/dist/alert/entity-selector.d.ts +68 -0
- package/dist/alert/entity-selector.js +12 -0
- package/dist/alert/index.d.ts +10 -0
- package/dist/alert/index.js +10 -0
- package/dist/alert/localized-image.d.ts +15 -0
- package/dist/alert/localized-image.js +8 -0
- package/dist/alert/severity-level.d.ts +4 -0
- package/dist/alert/severity-level.js +10 -0
- package/dist/alert/time-range.d.ts +12 -0
- package/dist/alert/time-range.js +7 -0
- package/dist/alert/translated-image.d.ts +29 -0
- package/dist/alert/translated-image.js +7 -0
- package/dist/alert/translated-string.d.ts +24 -0
- package/dist/alert/translated-string.js +7 -0
- package/dist/alert/translation.d.ts +12 -0
- package/dist/alert/translation.js +7 -0
- package/dist/feed/feed-entity.d.ts +1065 -0
- package/dist/feed/feed-entity.js +15 -0
- package/dist/feed/feed-header.d.ts +18 -0
- package/dist/feed/feed-header.js +9 -0
- package/dist/feed/feed-message.d.ts +1405 -0
- package/dist/feed/feed-message.js +9 -0
- package/dist/feed/index.d.ts +3 -0
- package/dist/feed/index.js +3 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/shape/index.d.ts +1 -0
- package/dist/shape/index.js +1 -0
- package/dist/shared/drop-off-pickup-type.d.ts +4 -0
- package/dist/shared/drop-off-pickup-type.js +10 -0
- package/dist/shared/index.d.ts +4 -0
- package/dist/shared/index.js +4 -0
- package/dist/shared/occupancy-status.d.ts +4 -0
- package/dist/shared/occupancy-status.js +15 -0
- package/dist/shared/schedule-relationship.d.ts +4 -0
- package/dist/shared/schedule-relationship.js +14 -0
- package/dist/shared/trip-descriptor.d.ts +29 -0
- package/dist/shared/trip-descriptor.js +14 -0
- package/dist/shared/vehicle-descriptor.d.ts +18 -0
- package/dist/shared/vehicle-descriptor.js +10 -0
- package/dist/shared/wheelchair-accessible.d.ts +4 -0
- package/dist/shared/wheelchair-accessible.js +10 -0
- package/dist/stop/index.d.ts +1 -0
- package/dist/stop/index.js +1 -0
- package/dist/trip-modifications/index.d.ts +1 -0
- package/dist/trip-modifications/index.js +1 -0
- package/dist/trip-update/index.d.ts +3 -0
- package/dist/trip-update/index.js +3 -0
- package/dist/trip-update/stop-time-event.d.ts +12 -0
- package/dist/trip-update/stop-time-event.js +9 -0
- package/dist/trip-update/stop-time-properties.d.ts +18 -0
- package/dist/trip-update/stop-time-properties.js +10 -0
- package/dist/trip-update/stop-time-update.d.ts +82 -0
- package/dist/trip-update/stop-time-update.js +16 -0
- package/dist/trip-update/trip-properties.d.ts +24 -0
- package/dist/trip-update/trip-properties.js +12 -0
- package/dist/trip-update/trip-update.d.ts +245 -0
- package/dist/trip-update/trip-update.js +15 -0
- package/dist/vehicle-position/carriage-details.d.ts +21 -0
- package/dist/vehicle-position/carriage-details.js +11 -0
- package/dist/vehicle-position/congestion-level.d.ts +4 -0
- package/dist/vehicle-position/congestion-level.js +11 -0
- package/dist/vehicle-position/index.d.ts +5 -0
- package/dist/vehicle-position/index.js +5 -0
- package/dist/vehicle-position/position.d.ts +21 -0
- package/dist/vehicle-position/position.js +10 -0
- package/dist/vehicle-position/vehicle-position.d.ts +168 -0
- package/dist/vehicle-position/vehicle-position.js +23 -0
- package/dist/vehicle-position/vehicle-stop-status.d.ts +4 -0
- package/dist/vehicle-position/vehicle-stop-status.js +9 -0
- package/package.json +51 -0
|
@@ -0,0 +1,9 @@
|
|
|
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/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './alert/index.js';
|
|
2
|
+
export * from './feed/index.js';
|
|
3
|
+
export * from './shape/index.js';
|
|
4
|
+
export * from './shared/index.js';
|
|
5
|
+
export * from './stop/index.js';
|
|
6
|
+
export * from './trip-modifications/index.js';
|
|
7
|
+
export * from './trip-update/index.js';
|
|
8
|
+
export * from './vehicle-position/index.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './alert/index.js';
|
|
2
|
+
export * from './feed/index.js';
|
|
3
|
+
export * from './shape/index.js';
|
|
4
|
+
export * from './shared/index.js';
|
|
5
|
+
export * from './stop/index.js';
|
|
6
|
+
export * from './trip-modifications/index.js';
|
|
7
|
+
export * from './trip-update/index.js';
|
|
8
|
+
export * from './vehicle-position/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GtfsRtDropOffPickupTypeValues: readonly ["REGULAR", "NONE", "PHONE_AGENCY", "COORDINATE_WITH_DRIVER"];
|
|
3
|
+
export declare const GtfsRtDropOffPickupTypeSchema: z.ZodEnum<["REGULAR", "NONE", "PHONE_AGENCY", "COORDINATE_WITH_DRIVER"]>;
|
|
4
|
+
export type GtfsRtDropOffPickupType = z.infer<typeof GtfsRtDropOffPickupTypeSchema>;
|
|
@@ -0,0 +1,4 @@
|
|
|
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>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GtfsRtScheduleRelationshipValues: readonly ["SCHEDULED", "CANCELED", "REPLACEMENT", "DUPLICATED", "NEW", "DELETED"];
|
|
3
|
+
export declare const GtfsRtScheduleRelationshipSchema: z.ZodEnum<["SCHEDULED", "CANCELED", "REPLACEMENT", "DUPLICATED", "NEW", "DELETED"]>;
|
|
4
|
+
export type GtfsRtScheduleRelationship = z.infer<typeof GtfsRtScheduleRelationshipSchema>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/* * */
|
|
4
|
+
export const GtfsRtScheduleRelationshipValues = [
|
|
5
|
+
'SCHEDULED',
|
|
6
|
+
'CANCELED',
|
|
7
|
+
'REPLACEMENT',
|
|
8
|
+
'DUPLICATED',
|
|
9
|
+
'NEW',
|
|
10
|
+
'DELETED',
|
|
11
|
+
// 'ADDED', // deprecated
|
|
12
|
+
// 'UNSCHEDULED', // used in frequencies.txt
|
|
13
|
+
];
|
|
14
|
+
export const GtfsRtScheduleRelationshipSchema = z.enum(GtfsRtScheduleRelationshipValues);
|
|
@@ -0,0 +1,29 @@
|
|
|
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.ZodEnum<["SCHEDULED", "CANCELED", "REPLACEMENT", "DUPLICATED", "NEW", "DELETED"]>;
|
|
7
|
+
start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-gtfs").GtfsDate, string>;
|
|
8
|
+
start_time: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-gtfs").GtfsTime, string>>>;
|
|
9
|
+
trip_id: z.ZodString;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
route_id: string;
|
|
12
|
+
schedule_relationship: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED";
|
|
13
|
+
start_date: string & {
|
|
14
|
+
__brand: "GtfsDate";
|
|
15
|
+
};
|
|
16
|
+
trip_id: string;
|
|
17
|
+
direction_id?: any;
|
|
18
|
+
modified_trip?: any;
|
|
19
|
+
start_time?: import("@tmlmobilidade/go-types-gtfs").GtfsTime | null | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
route_id: string;
|
|
22
|
+
schedule_relationship: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED";
|
|
23
|
+
start_date: string;
|
|
24
|
+
trip_id: string;
|
|
25
|
+
direction_id?: any;
|
|
26
|
+
modified_trip?: any;
|
|
27
|
+
start_time?: string | null | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
export type GtfsRtTripDescriptor = z.infer<typeof GtfsRtTripDescriptorSchema>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { GtfsRtScheduleRelationshipSchema } from './schedule-relationship.js';
|
|
3
|
+
import { GtfsDateSchema, GtfsTimeSchema } from '@tmlmobilidade/go-types-gtfs';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
/* * */
|
|
6
|
+
export const GtfsRtTripDescriptorSchema = z.object({
|
|
7
|
+
direction_id: z.any(),
|
|
8
|
+
modified_trip: z.any(),
|
|
9
|
+
route_id: z.string(),
|
|
10
|
+
schedule_relationship: GtfsRtScheduleRelationshipSchema,
|
|
11
|
+
start_date: GtfsDateSchema,
|
|
12
|
+
start_time: GtfsTimeSchema.nullish(),
|
|
13
|
+
trip_id: z.string(),
|
|
14
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GtfsRtVehicleDescriptorSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
license_plate: z.ZodOptional<z.ZodNullable<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 | null | undefined;
|
|
11
|
+
license_plate?: string | null | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
id: string;
|
|
14
|
+
wheelchair_accessible: "NO_VALUE" | "UNKNOWN" | "WHEELCHAIR_ACCESSIBLE" | "WHEELCHAIR_INACCESSIBLE";
|
|
15
|
+
label?: string | null | undefined;
|
|
16
|
+
license_plate?: string | null | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export type GtfsRtVehicleDescriptor = z.infer<typeof GtfsRtVehicleDescriptorSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
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().nullish(),
|
|
8
|
+
license_plate: z.string().nullish(),
|
|
9
|
+
wheelchair_accessible: GtfsRtWheelchairAccessibleSchema,
|
|
10
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
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>;
|
|
@@ -0,0 +1,10 @@
|
|
|
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);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GtfsRtStopTimeEventSchema: z.ZodObject<{
|
|
3
|
+
delay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
|
+
time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
delay?: number | null | undefined;
|
|
7
|
+
time?: number | null | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
delay?: number | null | undefined;
|
|
10
|
+
time?: number | null | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export type GtfsRtStopTimeEvent = z.infer<typeof GtfsRtStopTimeEventSchema>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GtfsRtStopTimePropertiesSchema: z.ZodObject<{
|
|
3
|
+
assigned_stop_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
drop_off_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["REGULAR", "NONE", "PHONE_AGENCY", "COORDINATE_WITH_DRIVER"]>>>;
|
|
5
|
+
pickup_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["REGULAR", "NONE", "PHONE_AGENCY", "COORDINATE_WITH_DRIVER"]>>>;
|
|
6
|
+
stop_headsign: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
assigned_stop_id?: string | null | undefined;
|
|
9
|
+
drop_off_type?: "REGULAR" | "NONE" | "PHONE_AGENCY" | "COORDINATE_WITH_DRIVER" | null | undefined;
|
|
10
|
+
pickup_type?: "REGULAR" | "NONE" | "PHONE_AGENCY" | "COORDINATE_WITH_DRIVER" | null | undefined;
|
|
11
|
+
stop_headsign?: string | null | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
assigned_stop_id?: string | null | undefined;
|
|
14
|
+
drop_off_type?: "REGULAR" | "NONE" | "PHONE_AGENCY" | "COORDINATE_WITH_DRIVER" | null | undefined;
|
|
15
|
+
pickup_type?: "REGULAR" | "NONE" | "PHONE_AGENCY" | "COORDINATE_WITH_DRIVER" | null | undefined;
|
|
16
|
+
stop_headsign?: string | null | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export type GtfsRtStopTimeProperties = z.infer<typeof GtfsRtStopTimePropertiesSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { GtfsRtDropOffPickupTypeSchema } from '../shared/drop-off-pickup-type.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
/* * */
|
|
5
|
+
export const GtfsRtStopTimePropertiesSchema = z.object({
|
|
6
|
+
assigned_stop_id: z.string().nullish(),
|
|
7
|
+
drop_off_type: GtfsRtDropOffPickupTypeSchema.nullish(),
|
|
8
|
+
pickup_type: GtfsRtDropOffPickupTypeSchema.nullish(),
|
|
9
|
+
stop_headsign: z.string().nullish(),
|
|
10
|
+
});
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GtfsRtStopTimeUpdateSchema: z.ZodObject<{
|
|
3
|
+
arrival: z.ZodObject<{
|
|
4
|
+
delay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5
|
+
time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
delay?: number | null | undefined;
|
|
8
|
+
time?: number | null | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
delay?: number | null | undefined;
|
|
11
|
+
time?: number | null | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
departure: z.ZodObject<{
|
|
14
|
+
delay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
delay?: number | null | undefined;
|
|
18
|
+
time?: number | null | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
delay?: number | null | undefined;
|
|
21
|
+
time?: number | null | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
departure_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"]>>>;
|
|
24
|
+
schedule_relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["SCHEDULED", "CANCELED", "REPLACEMENT", "DUPLICATED", "NEW", "DELETED"]>>>;
|
|
25
|
+
stop_id: z.ZodString;
|
|
26
|
+
stop_sequence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
stop_time_properties: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
|
+
assigned_stop_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
drop_off_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["REGULAR", "NONE", "PHONE_AGENCY", "COORDINATE_WITH_DRIVER"]>>>;
|
|
30
|
+
pickup_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["REGULAR", "NONE", "PHONE_AGENCY", "COORDINATE_WITH_DRIVER"]>>>;
|
|
31
|
+
stop_headsign: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
assigned_stop_id?: string | null | undefined;
|
|
34
|
+
drop_off_type?: "REGULAR" | "NONE" | "PHONE_AGENCY" | "COORDINATE_WITH_DRIVER" | null | undefined;
|
|
35
|
+
pickup_type?: "REGULAR" | "NONE" | "PHONE_AGENCY" | "COORDINATE_WITH_DRIVER" | null | undefined;
|
|
36
|
+
stop_headsign?: string | null | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
assigned_stop_id?: string | null | undefined;
|
|
39
|
+
drop_off_type?: "REGULAR" | "NONE" | "PHONE_AGENCY" | "COORDINATE_WITH_DRIVER" | null | undefined;
|
|
40
|
+
pickup_type?: "REGULAR" | "NONE" | "PHONE_AGENCY" | "COORDINATE_WITH_DRIVER" | null | undefined;
|
|
41
|
+
stop_headsign?: string | null | undefined;
|
|
42
|
+
}>>>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
stop_id: string;
|
|
45
|
+
arrival: {
|
|
46
|
+
delay?: number | null | undefined;
|
|
47
|
+
time?: number | null | undefined;
|
|
48
|
+
};
|
|
49
|
+
departure: {
|
|
50
|
+
delay?: number | null | undefined;
|
|
51
|
+
time?: number | null | undefined;
|
|
52
|
+
};
|
|
53
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
54
|
+
departure_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;
|
|
55
|
+
stop_sequence?: number | null | undefined;
|
|
56
|
+
stop_time_properties?: {
|
|
57
|
+
assigned_stop_id?: string | null | undefined;
|
|
58
|
+
drop_off_type?: "REGULAR" | "NONE" | "PHONE_AGENCY" | "COORDINATE_WITH_DRIVER" | null | undefined;
|
|
59
|
+
pickup_type?: "REGULAR" | "NONE" | "PHONE_AGENCY" | "COORDINATE_WITH_DRIVER" | null | undefined;
|
|
60
|
+
stop_headsign?: string | null | undefined;
|
|
61
|
+
} | null | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
stop_id: string;
|
|
64
|
+
arrival: {
|
|
65
|
+
delay?: number | null | undefined;
|
|
66
|
+
time?: number | null | undefined;
|
|
67
|
+
};
|
|
68
|
+
departure: {
|
|
69
|
+
delay?: number | null | undefined;
|
|
70
|
+
time?: number | null | undefined;
|
|
71
|
+
};
|
|
72
|
+
schedule_relationship?: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED" | null | undefined;
|
|
73
|
+
departure_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;
|
|
74
|
+
stop_sequence?: number | null | undefined;
|
|
75
|
+
stop_time_properties?: {
|
|
76
|
+
assigned_stop_id?: string | null | undefined;
|
|
77
|
+
drop_off_type?: "REGULAR" | "NONE" | "PHONE_AGENCY" | "COORDINATE_WITH_DRIVER" | null | undefined;
|
|
78
|
+
pickup_type?: "REGULAR" | "NONE" | "PHONE_AGENCY" | "COORDINATE_WITH_DRIVER" | null | undefined;
|
|
79
|
+
stop_headsign?: string | null | undefined;
|
|
80
|
+
} | null | undefined;
|
|
81
|
+
}>;
|
|
82
|
+
export type GtfsRtStopTimeUpdate = z.infer<typeof GtfsRtStopTimeUpdateSchema>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { GtfsRtOccupancyStatusSchema } from '../shared/occupancy-status.js';
|
|
3
|
+
import { GtfsRtScheduleRelationshipSchema } from '../shared/schedule-relationship.js';
|
|
4
|
+
import { GtfsRtStopTimeEventSchema } from './stop-time-event.js';
|
|
5
|
+
import { GtfsRtStopTimePropertiesSchema } from './stop-time-properties.js';
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
/* * */
|
|
8
|
+
export const GtfsRtStopTimeUpdateSchema = z.object({
|
|
9
|
+
arrival: GtfsRtStopTimeEventSchema,
|
|
10
|
+
departure: GtfsRtStopTimeEventSchema,
|
|
11
|
+
departure_occupancy_status: GtfsRtOccupancyStatusSchema.nullish(),
|
|
12
|
+
schedule_relationship: GtfsRtScheduleRelationshipSchema.nullish(),
|
|
13
|
+
stop_id: z.string(),
|
|
14
|
+
stop_sequence: z.number().nullish(),
|
|
15
|
+
stop_time_properties: GtfsRtStopTimePropertiesSchema.nullish(),
|
|
16
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GtfsRtTripPropertiesSchema: z.ZodObject<{
|
|
3
|
+
shape_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
start_date: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-gtfs").GtfsDate, string>>>;
|
|
5
|
+
start_time: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-gtfs").GtfsTime, string>>>;
|
|
6
|
+
trip_headsign: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
trip_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
trip_short_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
start_date?: import("@tmlmobilidade/go-types-gtfs").GtfsDate | null | undefined;
|
|
11
|
+
start_time?: import("@tmlmobilidade/go-types-gtfs").GtfsTime | null | undefined;
|
|
12
|
+
trip_id?: string | null | undefined;
|
|
13
|
+
shape_id?: string | null | undefined;
|
|
14
|
+
trip_headsign?: string | null | undefined;
|
|
15
|
+
trip_short_name?: string | null | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
start_date?: string | null | undefined;
|
|
18
|
+
start_time?: string | null | undefined;
|
|
19
|
+
trip_id?: string | null | undefined;
|
|
20
|
+
shape_id?: string | null | undefined;
|
|
21
|
+
trip_headsign?: string | null | undefined;
|
|
22
|
+
trip_short_name?: string | null | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
export type GtfsRtTripProperties = z.infer<typeof GtfsRtTripPropertiesSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { GtfsDateSchema, GtfsTimeSchema } from '@tmlmobilidade/go-types-gtfs';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
/* * */
|
|
5
|
+
export const GtfsRtTripPropertiesSchema = z.object({
|
|
6
|
+
shape_id: z.string().nullish(),
|
|
7
|
+
start_date: GtfsDateSchema.nullish(),
|
|
8
|
+
start_time: GtfsTimeSchema.nullish(),
|
|
9
|
+
trip_headsign: z.string().nullish(),
|
|
10
|
+
trip_id: z.string().nullish(),
|
|
11
|
+
trip_short_name: z.string().nullish(),
|
|
12
|
+
});
|