UNPKG

@tmlmobilidade/types

Version:
44 lines (43 loc) 1.72 kB
import { z } from 'zod'; export declare const CalendarEventSchema: z.ZodObject<{ color: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; display: z.ZodOptional<z.ZodEnum<["cell", "strip", "dot"]>>; endDate: z.ZodOptional<z.ZodString>; icon: z.ZodOptional<z.ZodAny>; id: z.ZodString; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; startDate: z.ZodString; title: z.ZodString; type: z.ZodOptional<z.ZodEnum<["annotation", "period", "holiday", "event", "rule-impact"]>>; }, "strip", z.ZodTypeAny, { title: string; id: string; startDate: string; type?: "annotation" | "period" | "holiday" | "event" | "rule-impact" | undefined; description?: string | undefined; metadata?: Record<string, unknown> | undefined; color?: string | undefined; display?: "strip" | "cell" | "dot" | undefined; endDate?: string | undefined; icon?: any; }, { title: string; id: string; startDate: string; type?: "annotation" | "period" | "holiday" | "event" | "rule-impact" | undefined; description?: string | undefined; metadata?: Record<string, unknown> | undefined; color?: string | undefined; display?: "strip" | "cell" | "dot" | undefined; endDate?: string | undefined; icon?: any; }>; export declare const CalendarEventTypeEnum: z.ZodOptional<z.ZodEnum<["annotation", "period", "holiday", "event", "rule-impact"]>>; export type CalendarEventType = NonNullable<z.infer<typeof CalendarEventTypeEnum>>; export interface CalendarEventMetadata { [key: string]: unknown; agency_ids?: string; agency_names?: string; } export type CalendarEvent = z.infer<typeof CalendarEventSchema>;