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.5 kB
'use strict';var chunkSDEP44OM_js=require('./chunk-SDEP44OM.js');var r=chunkSDEP44OM_js.a.object({Description:chunkSDEP44OM_js.a.string().nullable().describe("Human-readable description of the roadway location, such as interchange names or cross streets."),Direction:chunkSDEP44OM_js.a.string().nullable().describe("Traffic direction designation: N, S, B, NB, or SB, indicating which side of the highway is affected."),Latitude:chunkSDEP44OM_js.a.number().describe("Latitude of the roadway location in decimal degrees."),Longitude:chunkSDEP44OM_js.a.number().describe("Longitude of the roadway location in decimal degrees."),MilePost:chunkSDEP44OM_js.a.number().describe("Milepost marker along the highway corridor, with 0 indicating route terminus."),RoadName:chunkSDEP44OM_js.a.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 i=()=>chunkSDEP44OM_js.a.string().refine(t=>n(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}),n=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 a=new Date(t);return !Number.isNaN(a.getTime())}return true};exports.a=r;exports.b=i;//# sourceMappingURL=chunk-HGKRSNIZ.js.map //# sourceMappingURL=chunk-HGKRSNIZ.js.map