ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
3 lines • 2.59 kB
JavaScript
;var chunkJLQPUZOD_js=require('./chunk-JLQPUZOD.js'),chunkS4JRINPU_js=require('./chunk-S4JRINPU.js'),chunkXD2OIZAB_js=require('./chunk-XD2OIZAB.js');exports.a=void 0;var u,n=chunkXD2OIZAB_js.a(()=>{chunkS4JRINPU_js.e();chunkJLQPUZOD_js.b();exports.a=()=>chunkJLQPUZOD_js.a.string().refine(e=>u(e),{message:"Invalid date format. Expected .NET /Date(timestamp)/ format"}).transform(e=>{let o=chunkS4JRINPU_js.a(e.replace(/\\\//g,"/"));if(!o)throw new Error(`Failed to parse .NET date: ${e}`);return o}),u=e=>e.length>=19&&(e.startsWith("/Date(")||e.startsWith("\\/Date("))&&(e.endsWith(")/")||e.endsWith(")\\/"));});exports.b=void 0;exports.c=void 0;var c=chunkXD2OIZAB_js.a(()=>{chunkJLQPUZOD_js.b();n();exports.b=chunkJLQPUZOD_js.a.object({}).describe("Input parameters for cache flush date endpoint."),exports.c=exports.a().optional().describe("UTC datetime when static endpoint data was last updated, or undefined if no update has occurred.");});exports.e=void 0;var d=chunkXD2OIZAB_js.a(()=>{chunkJLQPUZOD_js.b();exports.e=chunkJLQPUZOD_js.a.object({Description:chunkJLQPUZOD_js.a.string().nullable().describe("Human-readable description of the roadway location, such as interchange names or cross streets."),Direction:chunkJLQPUZOD_js.a.string().nullable().describe("Traffic direction designation: N, S, B, NB, or SB, indicating which side of the highway is affected."),Latitude:chunkJLQPUZOD_js.a.number().describe("Latitude of the roadway location in decimal degrees."),Longitude:chunkJLQPUZOD_js.a.number().describe("Longitude of the roadway location in decimal degrees."),MilePost:chunkJLQPUZOD_js.a.number().describe("Milepost marker along the highway corridor, with 0 indicating route terminus."),RoadName:chunkJLQPUZOD_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.");});exports.f=void 0;var w,h=chunkXD2OIZAB_js.a(()=>{chunkJLQPUZOD_js.b();exports.f=()=>chunkJLQPUZOD_js.a.string().refine(e=>w(e),{message:"Invalid date format. Expected ISO date string format"}).transform(e=>{let o=new Date(e);if(Number.isNaN(o.getTime()))throw new Error(`Failed to parse ISO date: ${e}`);return o}),w=e=>{if(!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2})?$/.test(e)){let m=new Date(e);return !Number.isNaN(m.getTime())}return true};});var b=chunkXD2OIZAB_js.a(()=>{c();d();n();h();});
exports.d=c;exports.g=b;//# sourceMappingURL=chunk-JWXOVUZ3.js.map
//# sourceMappingURL=chunk-JWXOVUZ3.js.map