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.14 kB
import {e,g as g$1,f,c as c$1,a as a$3,d as d$2,b as b$1}from'./chunk-7JGUVQJJ.mjs';import {a as a$2}from'./chunk-N63MJY3V.mjs';import {j,i as i$1}from'./chunk-A5WPP2I5.mjs';import {d as d$1}from'./chunk-C3URDYFJ.mjs';import {a as a$1,c as c$2,b}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 c,G,v,J,M=a$1(()=>{j();a$2();a();e();g$1();c={functionName:"searchWeatherInformation",endpoint:"/SearchWeatherInformationAsJson?StationID={StationID}&SearchStartTime={SearchStartTime}&SearchEndTime={SearchEndTime}",inputSchema:c$1,outputSchema:f.array(),sampleParams:{StationID:1980,SearchStartTime:new Date(`${d$1.yesterday()}T00:00:00Z`).toISOString(),SearchEndTime:new Date(`${d$1.today()}T23:59:59Z`).toISOString()},endpointDescription:"Search historical weather information for a station within a time range."},G=i$1({api:o,endpoint:c,getEndpointGroup:()=>(i(),c$2(n)).weatherInfoGroup}),{fetch:v,hook:J}=G;});var I,g,U,Z,F=a$1(()=>{j();a();e();g$1();I={functionName:"fetchWeatherInformation",endpoint:"/GetCurrentWeatherInformationAsJson",inputSchema:a$3,outputSchema:f.array(),sampleParams:{},endpointDescription:"List current weather information for all stations."},g=i$1({api:o,endpoint:I,getEndpointGroup:()=>(i(),c$2(n)).weatherInfoGroup}),{fetch:U,hook:Z}=g;});var u,B,X,Y,E=a$1(()=>{j();a();e();g$1();u={functionName:"fetchWeatherInformationByStationId",endpoint:"/GetCurrentWeatherInformationByStationIDAsJson?StationID={StationID}",inputSchema:b$1,outputSchema:f,sampleParams:{StationID:1909},endpointDescription:"Get current weather information for a specific station by ID."},B=i$1({api:o,endpoint:u,getEndpointGroup:()=>(i(),c$2(n)).weatherInfoGroup}),{fetch:X,hook:Y}=B;});var n={};b(n,{weatherInfoGroup:()=>C});var C,i=a$1(()=>{l();M();F();E();C={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,d,c]};});var d,T,mt,ht,l=a$1(()=>{j();a();e();g$1();d={functionName:"fetchCurrentWeatherForStations",endpoint:"/GetCurrentWeatherForStationsAsJson?StationList={StationList}",inputSchema:d$2,outputSchema:f.array(),sampleParams:{StationList:"1909,1966,1970"},endpointDescription:"Get current weather information for multiple specified stations."},T=i$1({api:o,endpoint:d,getEndpointGroup:()=>(i(),c$2(n)).weatherInfoGroup}),{fetch:mt,hook:ht}=T;}); export{o as a,a as b,mt as c,ht as d,l as e,v as f,J as g,M as h,U as i,Z as j,F as k,X as l,Y as m,E as n,C as o,i as p};//# sourceMappingURL=chunk-WAEYM2FS.mjs.map //# sourceMappingURL=chunk-WAEYM2FS.mjs.map