@tmlmobilidade/types
Version:
74 lines (73 loc) • 3.3 kB
TypeScript
import { z } from 'zod';
export declare const GtfsTMLRouteSchema: z.ZodObject<{
agency_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
continuous_drop_off: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>>;
continuous_pickup: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>>;
route_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
route_desc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
route_id: z.ZodString;
route_long_name: z.ZodString;
route_short_name: z.ZodString;
route_sort_order: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
route_text_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
route_type: z.ZodEnum<["0", "1", "2", "3", "4", "5", "6", "7", "11", "12"]>;
route_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
} & {
circular: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
line_id: z.ZodNumber;
line_long_name: z.ZodString;
line_short_name: z.ZodString;
line_type: z.ZodNumber;
path_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["1", "2", "3"]>>>;
route_destination: z.ZodOptional<z.ZodString>;
route_origin: z.ZodOptional<z.ZodString>;
route_remarks: z.ZodOptional<z.ZodNullable<z.ZodString>>;
school: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
line_id: number;
route_id: string;
route_long_name: string;
route_short_name: string;
route_type: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "11" | "12";
line_long_name: string;
line_short_name: string;
line_type: number;
agency_id?: string | null | undefined;
school?: number | null | undefined;
continuous_drop_off?: 0 | 1 | 2 | 3 | null | undefined;
continuous_pickup?: 0 | 1 | 2 | 3 | null | undefined;
route_color?: string | null | undefined;
route_desc?: string | null | undefined;
route_sort_order?: number | null | undefined;
route_text_color?: string | null | undefined;
route_url?: string | null | undefined;
circular?: number | null | undefined;
path_type?: "1" | "2" | "3" | null | undefined;
route_destination?: string | undefined;
route_origin?: string | undefined;
route_remarks?: string | null | undefined;
}, {
line_id: number;
route_id: string;
route_long_name: string;
route_short_name: string;
route_type: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "11" | "12";
line_long_name: string;
line_short_name: string;
line_type: number;
agency_id?: string | null | undefined;
school?: number | null | undefined;
continuous_drop_off?: 0 | 1 | 2 | 3 | null | undefined;
continuous_pickup?: 0 | 1 | 2 | 3 | null | undefined;
route_color?: string | null | undefined;
route_desc?: string | null | undefined;
route_sort_order?: number | null | undefined;
route_text_color?: string | null | undefined;
route_url?: string | null | undefined;
circular?: number | null | undefined;
path_type?: "1" | "2" | "3" | null | undefined;
route_destination?: string | undefined;
route_origin?: string | undefined;
route_remarks?: string | null | undefined;
}>;
export type GtfsTMLRoute = z.infer<typeof GtfsTMLRouteSchema>;