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.29 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,j as j$1,i as i$1,q as q$1,s as s$1,r as r$1,p,k as k$1}from'./chunk-MHKZ74VH.mjs';import {a as a$2}from'./chunk-N63MJY3V.mjs';import {j,i}from'./chunk-F55G67O2.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 F={};b$1(F,{tollRatesGroup:()=>K});var K,k=a(()=>{B();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:[T]};});var T,W,lt,mt,B=a(()=>{j();r();b$2();d$1();T={functionName:"fetchTollRates",endpoint:"/getTollRatesAsJson",inputSchema:a$1,outputSchema:c.array(),sampleParams:{},endpointDescription:"List current toll rates for all HOV toll lanes statewide."},W=i({api:e,endpoint:T,getEndpointGroup:()=>(k(),c$1(F)).tollRatesGroup}),{fetch:lt,hook:mt}=W;});var w={};b$1(w,{tollTripInfoGroup:()=>X});var X,x=a(()=>{v();X={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,Y,Rt,ht,v=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."},Y=i({api:e,endpoint:f,getEndpointGroup:()=>(x(),c$1(w)).tollTripInfoGroup}),{fetch:Rt,hook:ht}=Y;});var d,Z,St,Dt,q=a(()=>{j();a$2();r();l$1();o();d={functionName:"fetchTripRatesByDate",endpoint:"/getTripRatesByDateAsJson?FromDate={FromDate}&ToDate={ToDate}",inputSchema:j$1,outputSchema:n.array(),sampleParams:{FromDate:d$2.yesterday(),ToDate:d$2.today()},endpointDescription:"Get historical toll rates for a specified date range."},Z=i({api:e,endpoint:d,getEndpointGroup:()=>(l(),c$1(s)).tollTripRatesGroup}),{fetch:St,hook:Dt}=Z;});var y,_,wt,xt,H=a(()=>{j();r();l$1();o();y={functionName:"fetchTripRatesByVersion",endpoint:"/getTripRatesByVersionAsJson?Version={Version}",inputSchema:k$1,outputSchema:n,sampleParams:{Version:352417},endpointDescription:"Get toll rates for a specific version number."},_=i({api:e,endpoint:y,getEndpointGroup:()=>(l(),c$1(s)).tollTripRatesGroup}),{fetch:wt,hook:xt}=_;});var s={};b$1(s,{tollTripRatesGroup:()=>$});var $,l=a(()=>{C();q();H();$={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:[R,d,y]};});var R,tt,Ot,Qt,C=a(()=>{j();r();l$1();o();R={functionName:"fetchTollTripRates",endpoint:"/getTollTripRatesAsJson",inputSchema:i$1,outputSchema:n,sampleParams:{},endpointDescription:"Get current toll rates for all trips."},tt=i({api:e,endpoint:R,getEndpointGroup:()=>(l(),c$1(s)).tollTripRatesGroup}),{fetch:Ot,hook:Qt}=tt;});var b={};b$1(b,{tollTripVersionGroup:()=>et});var et,J=a(()=>{N();et={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:[h]};});var h,ot,Yt,Zt,N=a(()=>{j();r();q$1();s$1();h={functionName:"fetchTollTripVersion",endpoint:"/getTollTripVersionAsJson",inputSchema:p,outputSchema:r$1,sampleParams:{},endpointDescription:"Get current version and timestamp for toll trip data."},ot=i({api:e,endpoint:h,getEndpointGroup:()=>(J(),c$1(b)).tollTripVersionGroup}),{fetch:Yt,hook:Zt}=ot;}); export{et as A,J as B,e as a,r as b,lt as c,mt as d,B as e,K as f,k as g,Rt as h,ht as i,v as j,X as k,x as l,Ot as m,Qt as n,C as o,St as p,Dt as q,q as r,wt as s,xt as t,H as u,$ as v,l as w,Yt as x,Zt as y,N as z};//# sourceMappingURL=chunk-NHHOSIRD.mjs.map //# sourceMappingURL=chunk-NHHOSIRD.mjs.map