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.66 kB
JavaScript
import {b as b$2,d,c,a as a$2,f,h,g as g$1,e,j as j$1,l as l$1,k,i as i$2}from'./chunk-CPWPQSAH.mjs';import {j,i as i$1}from'./chunk-DOBO2Q4R.mjs';import {a as a$1,b as b$1,c as c$1}from'./chunk-XEHBQAFR.mjs';var a,r=a$1(()=>{a={name:"wsdot-weather-readings",baseUrl:"https://www.wsdot.wa.gov/traffic/api/api"};});var y={};b$1(y,{subSurfaceMeasurementsGroup:()=>A});var A,g=a$1(()=>{M();A={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,J,K,M=a$1(()=>{j();r();b$2();d();u={functionName:"fetchSubSurfaceMeasurements",endpoint:"/Scanweb/SubSurfaceMeasurements",inputSchema:a$2,outputSchema:c.array(),sampleParams:{},endpointDescription:"List subsurface measurements from all weather stations statewide."},{fetch:H,useHook:C}=i$1({api:a,endpoint:u,getCacheStrategy:()=>(g(),c$1(y)).subSurfaceMeasurementsGroup.cacheStrategy}),J=H,K=C;});var w={};b$1(w,{surfaceMeasurementsGroup:()=>q});var q,F=a$1(()=>{b();q={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,ee,te,b=a$1(()=>{j();r();f();h();i={functionName:"fetchSurfaceMeasurements",endpoint:"/Scanweb/SurfaceMeasurements",inputSchema:e,outputSchema:g$1.array(),sampleParams:{},endpointDescription:"List surface measurements from all weather stations."},{fetch:N,useHook:T}=i$1({api:a,endpoint:i,getCacheStrategy:()=>(F(),c$1(w)).surfaceMeasurementsGroup.cacheStrategy}),ee=N,te=T;});var R={};b$1(R,{weatherReadingsGroup:()=>D});var D,E=a$1(()=>{l();D={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,ie,pe,l=a$1(()=>{j();r();j$1();l$1();p={functionName:"fetchWeatherReadings",endpoint:"/Scanweb",inputSchema:i$2,outputSchema:k.array(),sampleParams:{},endpointDescription:"List comprehensive weather readings from all weather stations."},{fetch:P,useHook:U}=i$1({api:a,endpoint:p,getCacheStrategy:()=>(E(),c$1(R)).weatherReadingsGroup.cacheStrategy}),ie=P,pe=U;});
export{a,r as b,J as c,K as d,M as e,A as f,g,ee as h,te as i,b as j,q as k,F as l,ie as m,pe as n,l as o,D as p,E as q};//# sourceMappingURL=chunk-VB6HTOAL.mjs.map
//# sourceMappingURL=chunk-VB6HTOAL.mjs.map