UNPKG

ws-dottie

Version:

Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration

2 lines 1.51 kB
import {c as c$1}from'./chunk-OYWJ7UB2.mjs';import {b,a as a$1}from'./chunk-Y7ZPKVJH.mjs';import {a}from'./chunk-XEHBQAFR.mjs';var c,r=a(()=>{b();c=a$1.object({Description:a$1.string().nullable().describe("Human-readable description of the roadway location, such as interchange names or cross streets."),Direction:a$1.string().nullable().describe("Traffic direction designation: N, S, B, NB, or SB, indicating which side of the highway is affected."),Latitude:a$1.number().describe("Latitude of the roadway location in decimal degrees."),Longitude:a$1.number().describe("Longitude of the roadway location in decimal degrees."),MilePost:a$1.number().describe("Milepost marker along the highway corridor, with 0 indicating route terminus."),RoadName:a$1.string().nullable().describe("Highway or route designation code, such as '005' for I-5 or '090' for I-90.")}).describe("Roadway location information including route, milepost, coordinates, and direction.");});var u,m,n=a(()=>{b();u=()=>a$1.string().refine(t=>m(t),{message:"Invalid date format. Expected ISO date string format"}).transform(t=>{let o=new Date(t);if(Number.isNaN(o.getTime()))throw new Error(`Failed to parse ISO date: ${t}`);return o}),m=t=>{if(!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2})?$/.test(t)){let d=new Date(t);return !Number.isNaN(d.getTime())}return true};});var h=a(()=>{c$1();r();n();});export{c as a,u as b,h as c};//# sourceMappingURL=chunk-PJWJKPX4.mjs.map //# sourceMappingURL=chunk-PJWJKPX4.mjs.map