ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
72 lines (68 loc) • 2.19 kB
TypeScript
import { z } from 'zod';
/**
* Schema for border crossing wait time query parameters.
*
* No parameters are required; call this endpoint to get current wait times
* for Washington border crossings into Canada.
*/
declare const borderCrossingsInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
type BorderCrossingsInput = z.infer<typeof borderCrossingsInputSchema>;
/**
* Schema for border crossing wait time data.
*
* Each record describes the latest wait time for a Washington border
* crossing into Canada.
*/
declare const borderCrossingSchema: z.ZodObject<{
BorderCrossingLocation: z.ZodNullable<z.ZodObject<{
Description: z.ZodNullable<z.ZodString>;
Direction: z.ZodNullable<z.ZodString>;
Latitude: z.ZodNumber;
Longitude: z.ZodNumber;
MilePost: z.ZodNumber;
RoadName: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}>>;
CrossingName: z.ZodNullable<z.ZodString>;
Time: z.ZodDate;
WaitTime: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
BorderCrossingLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
CrossingName: string | null;
Time: Date;
WaitTime: number;
}, {
BorderCrossingLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
CrossingName: string | null;
Time: Date;
WaitTime: number;
}>;
type BorderCrossing = z.infer<typeof borderCrossingSchema>;
export { type BorderCrossing, type BorderCrossingsInput, borderCrossingSchema, borderCrossingsInputSchema };