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.95 kB
'use strict';var chunk7QJXCWWA_js=require('./chunk-7QJXCWWA.js'),chunkRGC4OYVR_js=require('./chunk-RGC4OYVR.js'),chunkW5S5H7R7_js=require('./chunk-W5S5H7R7.js'),chunkEAVYUQDY_js=require('./chunk-EAVYUQDY.js'),chunkXD2OIZAB_js=require('./chunk-XD2OIZAB.js');exports.a=void 0;var a=chunkXD2OIZAB_js.a(()=>{exports.a={name:"wsdot-weather-information",baseUrl:"https://wsdot.wa.gov/traffic/api/WeatherInformation/WeatherInformationREST.svc"};});var c,G;exports.f=void 0;exports.g=void 0;var M=chunkXD2OIZAB_js.a(()=>{chunkW5S5H7R7_js.j();chunkRGC4OYVR_js.a();a();chunk7QJXCWWA_js.e();chunk7QJXCWWA_js.g();c={functionName:"searchWeatherInformation",endpoint:"/SearchWeatherInformationAsJson?StationID={StationID}&SearchStartTime={SearchStartTime}&SearchEndTime={SearchEndTime}",inputSchema:chunk7QJXCWWA_js.c,outputSchema:chunk7QJXCWWA_js.f.array(),sampleParams:{StationID:1980,SearchStartTime:new Date(`${chunkEAVYUQDY_js.d.yesterday()}T00:00:00Z`).toISOString(),SearchEndTime:new Date(`${chunkEAVYUQDY_js.d.today()}T23:59:59Z`).toISOString()},endpointDescription:"Search historical weather information for a station within a time range."},G=chunkW5S5H7R7_js.i({api:exports.a,endpoint:c,getEndpointGroup:()=>(i(),chunkXD2OIZAB_js.c(n)).weatherInfoGroup}),{fetch:exports.f,hook:exports.g}=G;});var I,g;exports.i=void 0;exports.j=void 0;var F=chunkXD2OIZAB_js.a(()=>{chunkW5S5H7R7_js.j();a();chunk7QJXCWWA_js.e();chunk7QJXCWWA_js.g();I={functionName:"fetchWeatherInformation",endpoint:"/GetCurrentWeatherInformationAsJson",inputSchema:chunk7QJXCWWA_js.a,outputSchema:chunk7QJXCWWA_js.f.array(),sampleParams:{},endpointDescription:"List current weather information for all stations."},g=chunkW5S5H7R7_js.i({api:exports.a,endpoint:I,getEndpointGroup:()=>(i(),chunkXD2OIZAB_js.c(n)).weatherInfoGroup}),{fetch:exports.i,hook:exports.j}=g;});var u,B;exports.l=void 0;exports.m=void 0;var E=chunkXD2OIZAB_js.a(()=>{chunkW5S5H7R7_js.j();a();chunk7QJXCWWA_js.e();chunk7QJXCWWA_js.g();u={functionName:"fetchWeatherInformationByStationId",endpoint:"/GetCurrentWeatherInformationByStationIDAsJson?StationID={StationID}",inputSchema:chunk7QJXCWWA_js.b,outputSchema:chunk7QJXCWWA_js.f,sampleParams:{StationID:1909},endpointDescription:"Get current weather information for a specific station by ID."},B=chunkW5S5H7R7_js.i({api:exports.a,endpoint:u,getEndpointGroup:()=>(i(),chunkXD2OIZAB_js.c(n)).weatherInfoGroup}),{fetch:exports.l,hook:exports.m}=B;});var n={};chunkXD2OIZAB_js.b(n,{weatherInfoGroup:()=>exports.o});exports.o=void 0;var i=chunkXD2OIZAB_js.a(()=>{l();M();F();E();exports.o={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;exports.c=void 0;exports.d=void 0;var l=chunkXD2OIZAB_js.a(()=>{chunkW5S5H7R7_js.j();a();chunk7QJXCWWA_js.e();chunk7QJXCWWA_js.g();d={functionName:"fetchCurrentWeatherForStations",endpoint:"/GetCurrentWeatherForStationsAsJson?StationList={StationList}",inputSchema:chunk7QJXCWWA_js.d,outputSchema:chunk7QJXCWWA_js.f.array(),sampleParams:{StationList:"1909,1966,1970"},endpointDescription:"Get current weather information for multiple specified stations."},T=chunkW5S5H7R7_js.i({api:exports.a,endpoint:d,getEndpointGroup:()=>(i(),chunkXD2OIZAB_js.c(n)).weatherInfoGroup}),{fetch:exports.c,hook:exports.d}=T;}); exports.b=a;exports.e=l;exports.h=M;exports.k=F;exports.n=E;exports.p=i;//# sourceMappingURL=chunk-DHT7JH67.js.map //# sourceMappingURL=chunk-DHT7JH67.js.map