ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
29 lines • 1.28 kB
TypeScript
/**
* @fileoverview WSDOT Traffic Flow API Output Schemas
*
* This module provides Zod schemas for validating responses from the WSDOT
* Traffic Flow API, which provides real-time traffic flow data for the entire state.
*/
import { z } from "../../../../shared/zod";
/**
* Schema for FlowData - represents a traffic flow station
*
* Provides real-time data on Traffic Flow sensors for the entire state. Data is updated every 90 seconds. Coverage Area: Statewide.
*/
export declare const flowDataSchema: z.ZodObject<{
FlowDataID: z.ZodNumber;
FlowReadingValue: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>;
FlowStationLocation: 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>>;
Region: z.ZodNullable<z.ZodString>;
StationName: z.ZodNullable<z.ZodString>;
Time: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>;
}, z.core.$strip>;
export type FlowData = z.infer<typeof flowDataSchema>;
//# sourceMappingURL=flowData.output.d.ts.map