ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
63 lines • 2.55 kB
TypeScript
/**
* @fileoverview WSF Terminals API Output Schemas
*
* This module provides Zod schemas for validating output data from the WSF
* Terminals API endpoints.
*/
import { z } from "../../../../shared/zod";
/**
* WaitTime schema
*
* Contains wait time information.
*/
export declare const waitTimeSchema: z.ZodObject<{
RouteID: z.ZodNullable<z.ZodNumber>;
RouteName: z.ZodNullable<z.ZodString>;
WaitTimeNotes: z.ZodNullable<z.ZodString>;
WaitTimeLastUpdated: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>>;
WaitTimeIVRNotes: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export type WaitTime = z.infer<typeof waitTimeSchema>;
/**
* TerminalWaitTime schema
*
* This operation retrieves tips and wait time conditions for both vehicles and walk-on passengers. A TerminalID, or unique terminal identifier, may be optionally passed to retrieve a specific terminal.
*/
export declare const terminalWaitTimeSchema: z.ZodObject<{
TerminalID: z.ZodNumber;
TerminalSubjectID: z.ZodNumber;
RegionID: z.ZodNumber;
TerminalName: z.ZodNullable<z.ZodString>;
TerminalAbbrev: z.ZodNullable<z.ZodString>;
SortSeq: z.ZodNumber;
WaitTimes: z.ZodNullable<z.ZodArray<z.ZodObject<{
RouteID: z.ZodNullable<z.ZodNumber>;
RouteName: z.ZodNullable<z.ZodString>;
WaitTimeNotes: z.ZodNullable<z.ZodString>;
WaitTimeLastUpdated: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>>;
WaitTimeIVRNotes: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>>;
}, z.core.$strip>;
export type TerminalWaitTime = z.infer<typeof terminalWaitTimeSchema>;
/**
* GetAllTerminalWaitTimes schema
*
* Returns all terminal wait times.
*/
export declare const getAllTerminalWaitTimesSchema: z.ZodArray<z.ZodObject<{
TerminalID: z.ZodNumber;
TerminalSubjectID: z.ZodNumber;
RegionID: z.ZodNumber;
TerminalName: z.ZodNullable<z.ZodString>;
TerminalAbbrev: z.ZodNullable<z.ZodString>;
SortSeq: z.ZodNumber;
WaitTimes: z.ZodNullable<z.ZodArray<z.ZodObject<{
RouteID: z.ZodNullable<z.ZodNumber>;
RouteName: z.ZodNullable<z.ZodString>;
WaitTimeNotes: z.ZodNullable<z.ZodString>;
WaitTimeLastUpdated: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>>;
WaitTimeIVRNotes: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>>;
}, z.core.$strip>>;
export type GetAllTerminalWaitTimes = z.infer<typeof getAllTerminalWaitTimesSchema>;
//# sourceMappingURL=terminalWaitTimes.output.d.ts.map