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 3.24 kB
import {e,g as g$1,f as f$1,c,a as a$3,d as d$1,b as b$2}from'./chunk-7JGUVQJJ.mjs';import {a as a$2}from'./chunk-N63MJY3V.mjs';import {j,i as i$1}from'./chunk-DOBO2Q4R.mjs';import {d}from'./chunk-C3URDYFJ.mjs';import {a as a$1,c as c$1,b as b$1}from'./chunk-XEHBQAFR.mjs';var o,a=a$1(()=>{o={name:"wsdot-weather-information",baseUrl:"https://wsdot.wa.gov/traffic/api/WeatherInformation/WeatherInformationREST.svc"};});var f,l,A,R,O,w=a$1(()=>{j();a$2();a();e();g$1();f={functionName:"searchWeatherInformation",endpoint:"/SearchWeatherInformationAsJson?StationID={StationID}&SearchStartTime={SearchStartTime}&SearchEndTime={SearchEndTime}",inputSchema:c,outputSchema:f$1.array(),sampleParams:{StationID:1980,SearchStartTime:new Date(`${d.yesterday()}T00:00:00Z`).toISOString(),SearchEndTime:new Date(`${d.today()}T23:59:59Z`).toISOString()},endpointDescription:"Search historical weather information for a station within a time range."},{fetch:l,useHook:A}=i$1({api:o,endpoint:f,getCacheStrategy:()=>(i(),c$1(n)).weatherInfoGroup.cacheStrategy}),R=l,O=A;});var I,D,E,z,K,M=a$1(()=>{j();a();e();g$1();I={functionName:"fetchWeatherInformation",endpoint:"/GetCurrentWeatherInformationAsJson",inputSchema:a$3,outputSchema:f$1.array(),sampleParams:{},endpointDescription:"List current weather information for all stations."},{fetch:D,useHook:E}=i$1({api:o,endpoint:I,getCacheStrategy:()=>(i(),c$1(n)).weatherInfoGroup.cacheStrategy}),z=D,K=E;});var u,x,B,et,ot,g=a$1(()=>{j();a();e();g$1();u={functionName:"fetchWeatherInformationByStationId",endpoint:"/GetCurrentWeatherInformationByStationIDAsJson?StationID={StationID}",inputSchema:b$2,outputSchema:f$1,sampleParams:{StationID:1909},endpointDescription:"Get current weather information for a specific station by ID."},{fetch:x,useHook:B}=i$1({api:o,endpoint:u,getCacheStrategy:()=>(i(),c$1(n)).weatherInfoGroup.cacheStrategy}),et=x,ot=B;});var n={};b$1(n,{weatherInfoGroup:()=>G});var G,i=a$1(()=>{C();w();M();g();G={name:"weather-info",cacheStrategy:"FREQUENT",documentation:{summary:"Current atmospheric conditions from WSDOT Road Weather Information System stations.",description:"Real-time temperature, humidity, wind conditions, visibility, barometric pressure, and precipitation data for transportation operations.",useCases:["Assess road weather conditions for transportation management.","Monitor atmospheric data for traveler safety decisions.","Display current weather conditions at specific stations.","Query historical weather data by station and time range."],updateFrequency:"5m"},endpoints:[I,u,S,f]};});var S,T,b,ft,It,C=a$1(()=>{j();a();e();g$1();S={functionName:"fetchCurrentWeatherForStations",endpoint:"/GetCurrentWeatherForStationsAsJson?StationList={StationList}",inputSchema:d$1,outputSchema:f$1.array(),sampleParams:{StationList:"1909,1966,1970"},endpointDescription:"Get current weather information for multiple specified stations."},{fetch:T,useHook:b}=i$1({api:o,endpoint:S,getCacheStrategy:()=>(i(),c$1(n)).weatherInfoGroup.cacheStrategy}),ft=T,It=b;}); export{o as a,a as b,ft as c,It as d,C as e,R as f,O as g,w as h,z as i,K as j,M as k,et as l,ot as m,g as n,G as o,i as p};//# sourceMappingURL=chunk-QDQVU3AW.mjs.map //# sourceMappingURL=chunk-QDQVU3AW.mjs.map