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 4.04 kB
'use strict';var chunk7QJXCWWA_js=require('./chunk-7QJXCWWA.js'),chunkRGC4OYVR_js=require('./chunk-RGC4OYVR.js'),chunkGWRLC6BC_js=require('./chunk-GWRLC6BC.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 f,l,A;exports.f=void 0;exports.g=void 0;var w=chunkXD2OIZAB_js.a(()=>{chunkGWRLC6BC_js.j();chunkRGC4OYVR_js.a();a();chunk7QJXCWWA_js.e();chunk7QJXCWWA_js.g();f={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."},{fetch:l,useHook:A}=chunkGWRLC6BC_js.i({api:exports.a,endpoint:f,getCacheStrategy:()=>(i(),chunkXD2OIZAB_js.c(n)).weatherInfoGroup.cacheStrategy}),exports.f=l,exports.g=A;});var I,D,E;exports.i=void 0;exports.j=void 0;var M=chunkXD2OIZAB_js.a(()=>{chunkGWRLC6BC_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."},{fetch:D,useHook:E}=chunkGWRLC6BC_js.i({api:exports.a,endpoint:I,getCacheStrategy:()=>(i(),chunkXD2OIZAB_js.c(n)).weatherInfoGroup.cacheStrategy}),exports.i=D,exports.j=E;});var u,x,B;exports.l=void 0;exports.m=void 0;var g=chunkXD2OIZAB_js.a(()=>{chunkGWRLC6BC_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."},{fetch:x,useHook:B}=chunkGWRLC6BC_js.i({api:exports.a,endpoint:u,getCacheStrategy:()=>(i(),chunkXD2OIZAB_js.c(n)).weatherInfoGroup.cacheStrategy}),exports.l=x,exports.m=B;});var n={};chunkXD2OIZAB_js.b(n,{weatherInfoGroup:()=>exports.o});exports.o=void 0;var i=chunkXD2OIZAB_js.a(()=>{C();w();M();g();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,S,f]};});var S,T,b;exports.c=void 0;exports.d=void 0;var C=chunkXD2OIZAB_js.a(()=>{chunkGWRLC6BC_js.j();a();chunk7QJXCWWA_js.e();chunk7QJXCWWA_js.g();S={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."},{fetch:T,useHook:b}=chunkGWRLC6BC_js.i({api:exports.a,endpoint:S,getCacheStrategy:()=>(i(),chunkXD2OIZAB_js.c(n)).weatherInfoGroup.cacheStrategy}),exports.c=T,exports.d=b;}); exports.b=a;exports.e=C;exports.h=w;exports.k=M;exports.n=g;exports.p=i;//# sourceMappingURL=chunk-4PE3MB4N.js.map //# sourceMappingURL=chunk-4PE3MB4N.js.map