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 5.44 kB
import {b as b$2,d as d$1,c,a as a$1,f as f$1,h as h$1,g,e as e$1,l as l$1,o,n as n$1,j as j$1,i as i$1,q as q$1,s,r as r$1,p,k}from'./chunk-MHKZ74VH.mjs';import {a as a$2}from'./chunk-N63MJY3V.mjs';import {j,i}from'./chunk-DOBO2Q4R.mjs';import {d as d$2}from'./chunk-C3URDYFJ.mjs';import {a,b as b$1,c as c$1}from'./chunk-XEHBQAFR.mjs';var e,r=a(()=>{e={name:"wsdot-toll-rates",baseUrl:"https://www.wsdot.wa.gov/traffic/api/tollrates/tollratesrest.svc"};});var B={};b$1(B,{tollRatesGroup:()=>K});var K,x=a(()=>{D();K={name:"toll-rates",cacheStrategy:"FREQUENT",documentation:{summary:"Current toll rates for high occupancy vehicle (HOV) toll lanes statewide.",description:"Real-time toll pricing data including trip locations, current toll amounts, route associations, and update timestamps for congestion management.",useCases:["Calculate travel costs for HOV toll lane usage.","Display current toll amounts in navigation apps.","Make informed routing decisions based on toll pricing."],updateFrequency:"5m"},endpoints:[u]};});var u,W,X,yt,dt,D=a(()=>{j();r();b$2();d$1();u={functionName:"fetchTollRates",endpoint:"/getTollRatesAsJson",inputSchema:a$1,outputSchema:c.array(),sampleParams:{},endpointDescription:"List current toll rates for all HOV toll lanes statewide."},{fetch:W,useHook:X}=i({api:e,endpoint:u,getCacheStrategy:()=>(x(),c$1(B)).tollRatesGroup.cacheStrategy}),yt=W,dt=X;});var G={};b$1(G,{tollTripInfoGroup:()=>Y});var Y,v=a(()=>{A();Y={name:"toll-trip-info",cacheStrategy:"FREQUENT",documentation:{summary:"Trip route information for HOV toll lanes including locations, mileposts, and geometry.",description:"Reference data for toll trip routes including start and end locations, coordinates, mileposts, travel direction, and optional geometry data for mapping.",useCases:["Display toll trip routes on maps.","Look up trip information by location or route.","Build trip selection interfaces for toll rate queries."],updateFrequency:"daily"},endpoints:[f]};});var f,Z,_,St,Vt,A=a(()=>{j();r();f$1();h$1();f={functionName:"fetchTollTripInfo",endpoint:"/getTollTripInfoAsJson",inputSchema:e$1,outputSchema:g.array(),sampleParams:{},endpointDescription:"List trip information for all toll trips statewide."},{fetch:Z,useHook:_}=i({api:e,endpoint:f,getCacheStrategy:()=>(v(),c$1(G)).tollTripInfoGroup.cacheStrategy}),St=Z,Vt=_;});var y,$,tt,At,Gt,w=a(()=>{j();a$2();r();l$1();o();y={functionName:"fetchTripRatesByDate",endpoint:"/getTripRatesByDateAsJson?FromDate={FromDate}&ToDate={ToDate}",inputSchema:j$1,outputSchema:n$1.array(),sampleParams:{FromDate:d$2.yesterday(),ToDate:d$2.today()},endpointDescription:"Get historical toll rates for a specified date range."},{fetch:$,useHook:tt}=i({api:e,endpoint:y,getCacheStrategy:()=>(l(),c$1(n)).tollTripRatesGroup.cacheStrategy}),At=$,Gt=tt;});var d,et,ot,bt,Jt,C=a(()=>{j();r();l$1();o();d={functionName:"fetchTripRatesByVersion",endpoint:"/getTripRatesByVersionAsJson?Version={Version}",inputSchema:k,outputSchema:n$1,sampleParams:{Version:352417},endpointDescription:"Get toll rates for a specific version number."},{fetch:et,useHook:ot}=i({api:e,endpoint:d,getCacheStrategy:()=>(l(),c$1(n)).tollTripRatesGroup.cacheStrategy}),bt=et,Jt=ot;});var n={};b$1(n,{tollTripRatesGroup:()=>rt});var rt,l=a(()=>{q();w();C();rt={name:"toll-trip-rates",cacheStrategy:"FREQUENT",documentation:{summary:"Comprehensive toll rate data for all trips including pricing, messages, and version tracking.",description:"Container for toll trip rates supporting current data, historical date ranges, and version-specific queries. Includes pricing details, informational messages, and version tracking for transportation planning.",useCases:["Retrieve current toll rates for all trips.","Analyze historical toll pricing trends.","Access version-specific rate data for change tracking."],updateFrequency:"5m"},endpoints:[h,y,d]};});var h,at,it,Wt,Xt,q=a(()=>{j();r();l$1();o();h={functionName:"fetchTollTripRates",endpoint:"/getTollTripRatesAsJson",inputSchema:i$1,outputSchema:n$1,sampleParams:{},endpointDescription:"Get current toll rates for all trips."},{fetch:at,useHook:it}=i({api:e,endpoint:h,getCacheStrategy:()=>(l(),c$1(n)).tollTripRatesGroup.cacheStrategy}),Wt=at,Xt=it;});var b={};b$1(b,{tollTripVersionGroup:()=>pt});var pt,J=a(()=>{N();pt={name:"toll-trip-version",cacheStrategy:"FREQUENT",documentation:{summary:"Version and timestamp information for toll trip data.",description:"Current version number and timestamp for toll trip rates data, enabling cache management and data freshness tracking.",useCases:["Check data freshness before fetching toll rates.","Determine when to invalidate cached toll rate data.","Track version changes for toll trip rates."],updateFrequency:"5m"},endpoints:[R]};});var R,st,nt,oe,re,N=a(()=>{j();r();q$1();s();R={functionName:"fetchTollTripVersion",endpoint:"/getTollTripVersionAsJson",inputSchema:p,outputSchema:r$1,sampleParams:{},endpointDescription:"Get current version and timestamp for toll trip data."},{fetch:st,useHook:nt}=i({api:e,endpoint:R,getCacheStrategy:()=>(J(),c$1(b)).tollTripVersionGroup.cacheStrategy}),oe=st,re=nt;}); export{pt as A,J as B,e as a,r as b,yt as c,dt as d,D as e,K as f,x as g,St as h,Vt as i,A as j,Y as k,v as l,Wt as m,Xt as n,q as o,At as p,Gt as q,w as r,bt as s,Jt as t,C as u,rt as v,l as w,oe as x,re as y,N as z};//# sourceMappingURL=chunk-5X2HOFYV.mjs.map //# sourceMappingURL=chunk-5X2HOFYV.mjs.map