UNPKG

@tmlmobilidade/types

Version:
18 lines (17 loc) 1.33 kB
import { type GtfsRtCause } from '@tmlmobilidade/go-types-gtfs-rt'; import z from 'zod'; export declare const AlertCauseValues: readonly ["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]; export declare const AlertCauseSchema: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>; /** * The Alert extended cause types. * This types represents the allowed values for the cause of a service alert * in the application, which are a subset of the standard GTFS-RT causes and * additional operational causes specific to the application's context. */ export type AlertCause = z.infer<typeof AlertCauseSchema>; /** * Mapping from AlertCause to GtfsRtCause. * This mapping is used to convert extended alert causes * to their corresponding standard GTFS-RT cause types. */ export declare const AlertCauseToGtfsRtCauseMap: Record<AlertCause, GtfsRtCause>;