ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
54 lines • 2.15 kB
TypeScript
/**
* @fileoverview WSF Schedule API Output Schemas for Schedule Alerts
*
* This module provides Zod schemas for validating responses from the WSF
* Schedule API schedule alert operations.
*/
import { z } from "../../../../shared/zod";
/**
* Schema for AlertDetail - represents detailed alert information
*/
export declare const alertDetailSchema: z.ZodObject<{
BulletinID: z.ZodNumber;
BulletinFlag: z.ZodBoolean;
BulletinText: z.ZodNullable<z.ZodString>;
CommunicationFlag: z.ZodBoolean;
CommunicationText: z.ZodNullable<z.ZodString>;
RouteAlertFlag: z.ZodBoolean;
RouteAlertText: z.ZodNullable<z.ZodString>;
HomepageAlertText: z.ZodNullable<z.ZodString>;
PublishDate: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>>;
DisruptionDescription: z.ZodNullable<z.ZodString>;
AllRoutesFlag: z.ZodBoolean;
SortSeq: z.ZodNumber;
AlertTypeID: z.ZodNumber;
AlertType: z.ZodString;
AlertFullTitle: z.ZodString;
AffectedRouteIDs: z.ZodArray<z.ZodNumber>;
IVRText: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export type AlertDetail = z.infer<typeof alertDetailSchema>;
/**
* Alert Details List Schema - represents an list of detailed alerts
*/
export declare const alertDetailsListSchema: z.ZodArray<z.ZodObject<{
BulletinID: z.ZodNumber;
BulletinFlag: z.ZodBoolean;
BulletinText: z.ZodNullable<z.ZodString>;
CommunicationFlag: z.ZodBoolean;
CommunicationText: z.ZodNullable<z.ZodString>;
RouteAlertFlag: z.ZodBoolean;
RouteAlertText: z.ZodNullable<z.ZodString>;
HomepageAlertText: z.ZodNullable<z.ZodString>;
PublishDate: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>>;
DisruptionDescription: z.ZodNullable<z.ZodString>;
AllRoutesFlag: z.ZodBoolean;
SortSeq: z.ZodNumber;
AlertTypeID: z.ZodNumber;
AlertType: z.ZodString;
AlertFullTitle: z.ZodString;
AffectedRouteIDs: z.ZodArray<z.ZodNumber>;
IVRText: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>;
export type AlertDetailList = z.infer<typeof alertDetailsListSchema>;
//# sourceMappingURL=scheduleAlerts.output.d.ts.map