@tmlmobilidade/types
Version:
18 lines (17 loc) • 1.16 kB
TypeScript
import { type GtfsRtEffect } from '@tmlmobilidade/go-types-gtfs-rt';
import z from 'zod';
export declare const AlertEffectValues: readonly ["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"];
export declare const AlertEffectSchema: z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>;
/**
* The Alert extended effect types.
* This types represents the allowed values for the effect of a service alert
* in the application, which are a subset of the standard GTFS-RT effects and
* additional operational effects specific to the application's context.
*/
export type AlertEffect = z.infer<typeof AlertEffectSchema>;
/**
* Mapping from AlertEffect to GtfsRtEffect.
* This mapping is used to convert extended alert effects
* to their corresponding standard GTFS-RT effect types.
*/
export declare const AlertEffectToGtfsRtEffectMap: Record<AlertEffect, GtfsRtEffect>;