UNPKG

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 1.43 kB
import {b as b$1,d as d$1,c,a as a$2}from'./chunk-UNRRHV3Q.mjs';import {j,i as i$1}from'./chunk-S7QEFA3B.mjs';import {a as a$1,b,c as c$1}from'./chunk-XEHBQAFR.mjs';var n,i=a$1(()=>{n={name:"wsdot-border-crossings",baseUrl:"https://wsdot.wa.gov/Traffic/api/BorderCrossings/BorderCrossingsREST.svc"};});var p={};b(p,{borderCrossingDataGroup:()=>h});var h,d=a$1(()=>{a();h={name:"border-crossing-data",cacheStrategy:"FREQUENT",documentation:{summary:"Current wait times for Washington border crossings into Canada by crossing and lane type.",description:"Snapshot wait-time data for I-5, SR-543, SR-539, and SR-9 crossings, covering general, Nexus, and truck lanes.",useCases:["Plan trips into Canada based on current border wait times.","Compare wait times across crossings and lane types.","Show live wait-time information in traveler or operations dashboards."],updateFrequency:"1m"},endpoints:[o]};});var o,f,M,E,a=a$1(()=>{j();i();b$1();d$1();o={functionName:"fetchBorderCrossings",endpoint:"/GetBorderCrossingsAsJson",inputSchema:a$2,outputSchema:c.array(),sampleParams:{},endpointDescription:"List current wait times for all Washington border crossings into Canada."},f=i$1({api:n,endpoint:o,getEndpointGroup:()=>(d(),c$1(p)).borderCrossingDataGroup}),{fetch:M,hook:E}=f;}); export{n as a,i as b,o as c,M as d,E as e,a as f,h as g,d as h};//# sourceMappingURL=chunk-GLZ7PKM6.mjs.map //# sourceMappingURL=chunk-GLZ7PKM6.mjs.map