ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
40 lines • 1.61 kB
TypeScript
/**
* @fileoverview WSDOT Travel Times API Output Schemas
*
* This module provides Zod schemas for validating responses from the WSDOT
* Travel Times API, which provides current travel times for covered routes
* in Seattle, Tacoma, and Snoqualmie Pass areas.
*/
import { z } from "../../../../shared/zod";
/**
* Schema for TravelTimeRoute - represents a travel time route
*
* Provides current travel times for many popular travel routes around Washington State. Coverage Area: Seattle, Tacoma, and Snoqualmie Pass areas.
*/
export declare const travelTimeRouteSchema: z.ZodObject<{
AverageTime: z.ZodNumber;
CurrentTime: z.ZodNumber;
Description: z.ZodNullable<z.ZodString>;
Distance: z.ZodNumber;
EndPoint: 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>;
}, z.core.$strip>>;
Name: z.ZodNullable<z.ZodString>;
StartPoint: 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>;
}, z.core.$strip>>;
TimeUpdated: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>;
TravelTimeID: z.ZodNumber;
}, z.core.$strip>;
export type TravelTimeRoute = z.infer<typeof travelTimeRouteSchema>;
//# sourceMappingURL=travelTimeRoutes.output.d.ts.map