UNPKG

@tmlmobilidade/types

Version:
15 lines (14 loc) 746 B
import { z } from 'zod'; /** * Represents the type of path for a GTFS route. * This type is used to indicate whether the path is a base path, a partial path, * or a variant path. It is used in the GTFS-TML (Transporte Metropolitano de Lisboa) standard * to differentiate between different types of paths for a route. */ export declare const RoutePathTypeValues: readonly ["base", "partial", "variant"]; export declare const RoutePathTypeSchema: z.ZodEnum<["base", "partial", "variant"]>; export type RoutePathType = z.infer<typeof RoutePathTypeSchema>; export declare const pathTypeMapper: { fromGtfs: (value: "1" | "2" | "3") => "partial" | "base" | "variant"; toGtfs: (value: "partial" | "base" | "variant") => "1" | "2" | "3"; };