UNPKG

@tmlmobilidade/types

Version:
17 lines (16 loc) 608 B
import { z } from 'zod'; export declare const DayPeriodsValues: readonly ["PPM", "CD", "PPT", "N", "M"]; export declare const DayPeriodSchema: z.ZodEnum<["PPM", "CD", "PPT", "N", "M"]>; export type DayPeriod = z.infer<typeof DayPeriodSchema>; export interface DayPeriodTimeRange { end: string; start: string; } export declare const DAY_PERIOD_TIME_RANGES: Record<DayPeriod, DayPeriodTimeRange>; export type DayPeriodLabels = Record<DayPeriod, { long: string; long_with_time: string; short: string; short_with_time: string; }>; export declare const DAY_PERIOD_LABELS: DayPeriodLabels;