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.33 kB
'use strict';var chunk6OEQ5M6G_js=require('./chunk-6OEQ5M6G.js'),chunkGWRLC6BC_js=require('./chunk-GWRLC6BC.js'),chunkXD2OIZAB_js=require('./chunk-XD2OIZAB.js');exports.a=void 0;var r=chunkXD2OIZAB_js.a(()=>{exports.a={name:"wsdot-weather-readings",baseUrl:"https://www.wsdot.wa.gov/traffic/api/api"};});var y={};chunkXD2OIZAB_js.b(y,{subSurfaceMeasurementsGroup:()=>exports.f});exports.f=void 0;var g=chunkXD2OIZAB_js.a(()=>{M();exports.f={name:"sub-surface-measurements",cacheStrategy:"FREQUENT",documentation:{summary:"Subsurface temperature measurements from sensors embedded below road pavement.",description:"Ground temperature data from sensors embedded 12-18 inches below road pavement surfaces for monitoring ground temperature conditions.",useCases:["Monitor ground temperature conditions for winter maintenance operations.","Predict road surface conditions based on subsurface temperature trends.","Assess travel safety by understanding ground temperature patterns."],updateFrequency:"5m"},endpoints:[u]};});var u,H,C;exports.c=void 0;exports.d=void 0;var M=chunkXD2OIZAB_js.a(()=>{chunkGWRLC6BC_js.j();r();chunk6OEQ5M6G_js.b();chunk6OEQ5M6G_js.d();u={functionName:"fetchSubSurfaceMeasurements",endpoint:"/Scanweb/SubSurfaceMeasurements",inputSchema:chunk6OEQ5M6G_js.a,outputSchema:chunk6OEQ5M6G_js.c.array(),sampleParams:{},endpointDescription:"List subsurface measurements from all weather stations statewide."},{fetch:H,useHook:C}=chunkGWRLC6BC_js.i({api:exports.a,endpoint:u,getCacheStrategy:()=>(g(),chunkXD2OIZAB_js.c(y)).subSurfaceMeasurementsGroup.cacheStrategy}),exports.c=H,exports.d=C;});var w={};chunkXD2OIZAB_js.b(w,{surfaceMeasurementsGroup:()=>exports.k});exports.k=void 0;var F=chunkXD2OIZAB_js.a(()=>{b();exports.k={name:"surface-measurements",cacheStrategy:"FREQUENT",documentation:{summary:"Surface sensor measurements from WSDOT weather stations statewide.",description:"Pavement surface temperature, road freezing temperature, and road surface condition codes from sensors embedded in or mounted on road surfaces.",useCases:["Monitor road surface conditions for winter maintenance operations.","Assess pavement temperature and freezing risk.","Evaluate travel safety based on surface condition codes."],updateFrequency:"5m"},endpoints:[i]};});var i,N,T;exports.h=void 0;exports.i=void 0;var b=chunkXD2OIZAB_js.a(()=>{chunkGWRLC6BC_js.j();r();chunk6OEQ5M6G_js.f();chunk6OEQ5M6G_js.h();i={functionName:"fetchSurfaceMeasurements",endpoint:"/Scanweb/SurfaceMeasurements",inputSchema:chunk6OEQ5M6G_js.e,outputSchema:chunk6OEQ5M6G_js.g.array(),sampleParams:{},endpointDescription:"List surface measurements from all weather stations."},{fetch:N,useHook:T}=chunkGWRLC6BC_js.i({api:exports.a,endpoint:i,getCacheStrategy:()=>(F(),chunkXD2OIZAB_js.c(w)).surfaceMeasurementsGroup.cacheStrategy}),exports.h=N,exports.i=T;});var R={};chunkXD2OIZAB_js.b(R,{weatherReadingsGroup:()=>exports.p});exports.p=void 0;var E=chunkXD2OIZAB_js.a(()=>{l();exports.p={name:"weather-readings",cacheStrategy:"FREQUENT",documentation:{summary:"Comprehensive weather readings from all WSDOT weather stations statewide.",description:"Complete weather data including air temperature, humidity, wind conditions, visibility, precipitation across multiple time periods, barometric pressure, snow depth, and surface/subsurface sensor measurements.",useCases:["Access complete weather station data for comprehensive analysis.","Monitor atmospheric and surface conditions for transportation operations.","Track precipitation across multiple time periods (1h, 3h, 6h, 12h, 24h)."],updateFrequency:"5m"},endpoints:[p]};});var p,P,U;exports.m=void 0;exports.n=void 0;var l=chunkXD2OIZAB_js.a(()=>{chunkGWRLC6BC_js.j();r();chunk6OEQ5M6G_js.j();chunk6OEQ5M6G_js.l();p={functionName:"fetchWeatherReadings",endpoint:"/Scanweb",inputSchema:chunk6OEQ5M6G_js.i,outputSchema:chunk6OEQ5M6G_js.k.array(),sampleParams:{},endpointDescription:"List comprehensive weather readings from all weather stations."},{fetch:P,useHook:U}=chunkGWRLC6BC_js.i({api:exports.a,endpoint:p,getCacheStrategy:()=>(E(),chunkXD2OIZAB_js.c(R)).weatherReadingsGroup.cacheStrategy}),exports.m=P,exports.n=U;}); exports.b=r;exports.e=M;exports.g=g;exports.j=b;exports.l=F;exports.o=l;exports.q=E;//# sourceMappingURL=chunk-SVW4EPO4.js.map //# sourceMappingURL=chunk-SVW4EPO4.js.map