UNPKG

@tmlmobilidade/types

Version:
48 lines (47 loc) 2.03 kB
import { z } from 'zod'; export declare const GtfsBikesAllowedSchema: z.ZodEnum<["0", "1", "2"]>; export type GtfsBikesAllowed = z.infer<typeof GtfsBikesAllowedSchema>; export declare const GtfsDirectionValues: readonly ["0", "1"]; export declare const GtfsDirectionSchema: z.ZodEnum<["0", "1"]>; export type GtfsDirection = z.infer<typeof GtfsDirectionSchema>; /** * Represents a trip in the GTFS (General Transit Feed Specification) format. * A trip is a sequence of one or more stops that a vehicle makes during its operation. * Each trip is associated with a specific route and service schedule. * The trip can have various attributes such as headsign, direction, and accessibility options. */ export declare const GtfsTripSchema: z.ZodObject<{ bikes_allowed: z.ZodDefault<z.ZodEnum<["0", "1", "2"]>>; block_id: z.ZodOptional<z.ZodNullable<z.ZodString>>; direction_id: z.ZodDefault<z.ZodEnum<["0", "1"]>>; route_id: z.ZodString; service_id: z.ZodString; shape_id: z.ZodString; trip_headsign: z.ZodOptional<z.ZodNullable<z.ZodString>>; trip_id: z.ZodString; trip_short_name: z.ZodOptional<z.ZodNullable<z.ZodString>>; wheelchair_accessible: z.ZodDefault<z.ZodEnum<["0", "1", "2"]>>; }, "strip", z.ZodTypeAny, { route_id: string; trip_id: string; bikes_allowed: "0" | "1" | "2"; direction_id: "0" | "1"; service_id: string; shape_id: string; wheelchair_accessible: "0" | "1" | "2"; block_id?: string | null | undefined; trip_headsign?: string | null | undefined; trip_short_name?: string | null | undefined; }, { route_id: string; trip_id: string; service_id: string; shape_id: string; bikes_allowed?: "0" | "1" | "2" | undefined; block_id?: string | null | undefined; direction_id?: "0" | "1" | undefined; trip_headsign?: string | null | undefined; trip_short_name?: string | null | undefined; wheelchair_accessible?: "0" | "1" | "2" | undefined; }>; export type GtfsTrip = z.infer<typeof GtfsTripSchema>;