UNPKG

@tmlmobilidade/types

Version:
13 lines (12 loc) 968 B
import { z } from 'zod'; export declare const TransportTypeValues: readonly ["aerial_lift", "bus", "cable_tram", "ferry", "funicular", "monorail", "rail", "subway", "tram", "trolleybus"]; export declare const TransportTypeSchema: z.ZodEnum<["aerial_lift", "bus", "cable_tram", "ferry", "funicular", "monorail", "rail", "subway", "tram", "trolleybus"]>; export type TransportType = z.infer<typeof TransportTypeSchema>; export declare const transportTypeMapper: { fromGtfs: (value: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "11" | "12") => "ferry" | "subway" | "aerial_lift" | "bus" | "cable_tram" | "funicular" | "monorail" | "rail" | "tram" | "trolleybus"; toGtfs: (value: "ferry" | "subway" | "aerial_lift" | "bus" | "cable_tram" | "funicular" | "monorail" | "rail" | "tram" | "trolleybus") => "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "11" | "12"; }; export declare const transportTypeOptions: { label: string; value: TransportType; }[];