UNPKG

@tmlmobilidade/types

Version:
47 lines (46 loc) 1.64 kB
import { z } from 'zod'; export declare const GtfsTMLTripSchema: 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"]>>; } & { calendar_desc: z.ZodString; pattern_id: z.ZodString; pattern_short_name: z.ZodString; }, "strip", z.ZodTypeAny, { route_id: string; pattern_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"; calendar_desc: string; pattern_short_name: string; block_id?: string | null | undefined; trip_headsign?: string | null | undefined; trip_short_name?: string | null | undefined; }, { route_id: string; pattern_id: string; trip_id: string; service_id: string; shape_id: string; calendar_desc: string; pattern_short_name: 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 GtfsTMLTrip = z.infer<typeof GtfsTMLTripSchema>;