ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
43 lines • 1.73 kB
TypeScript
import { z } from "zod";
/**
* FlowData schema
*
* A data structure that represents a Flow Station.
*/
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>]>;
FlowStationLocation: z.ZodNullable<z.ZodObject<{
Description: z.ZodNullable<z.ZodString>;
RoadName: z.ZodNullable<z.ZodString>;
Direction: z.ZodNullable<z.ZodString>;
MilePost: z.ZodNumber;
Latitude: z.ZodNumber;
Longitude: z.ZodNumber;
}, 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>;
/** FlowData type */
export type FlowData = z.infer<typeof flowDataSchema>;
/**
* Array of traffic flow data.
*/
export declare const trafficFlowsSchema: z.ZodArray<z.ZodObject<{
FlowDataID: z.ZodNumber;
FlowReadingValue: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
FlowStationLocation: z.ZodNullable<z.ZodObject<{
Description: z.ZodNullable<z.ZodString>;
RoadName: z.ZodNullable<z.ZodString>;
Direction: z.ZodNullable<z.ZodString>;
MilePost: z.ZodNumber;
Latitude: z.ZodNumber;
Longitude: z.ZodNumber;
}, 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 TrafficFlows = z.infer<typeof trafficFlowsSchema>;
//# sourceMappingURL=flowData.zod.d.ts.map