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.6 kB
import {b as b$2,d,c,a as a$2,f,h,g as g$1,e,j as j$2,l as l$1,k as k$1,i as i$2}from'./chunk-CPWPQSAH.mjs';import {j as j$1,i as i$1}from'./chunk-F55G67O2.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:()=>k});var k,w=a$1(()=>{S();k={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:[i]};});var i,q,O,j,S=a$1(()=>{j$1();r();b$2();d();i={functionName:"fetchSubSurfaceMeasurements",endpoint:"/Scanweb/SubSurfaceMeasurements",inputSchema:a$2,outputSchema:c.array(),sampleParams:{},endpointDescription:"List subsurface measurements from all weather stations statewide."},q=i$1({api:a,endpoint:i,getEndpointGroup:()=>(w(),c$1(y)).subSurfaceMeasurementsGroup}),{fetch:O,hook:j}=q;});var b={};b$1(b,{surfaceMeasurementsGroup:()=>N});var N,l=a$1(()=>{g();N={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:[u]};});var u,T,Z,_,g=a$1(()=>{j$1();r();f();h();u={functionName:"fetchSurfaceMeasurements",endpoint:"/Scanweb/SurfaceMeasurements",inputSchema:e,outputSchema:g$1.array(),sampleParams:{},endpointDescription:"List surface measurements from all weather stations."},T=i$1({api:a,endpoint:u,getEndpointGroup:()=>(l(),c$1(b)).surfaceMeasurementsGroup}),{fetch:Z,hook:_}=T;});var E={};b$1(E,{weatherReadingsGroup:()=>C});var C,G=a$1(()=>{R();C={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,D,ne,oe,R=a$1(()=>{j$1();r();j$2();l$1();p={functionName:"fetchWeatherReadings",endpoint:"/Scanweb",inputSchema:i$2,outputSchema:k$1.array(),sampleParams:{},endpointDescription:"List comprehensive weather readings from all weather stations."},D=i$1({api:a,endpoint:p,getEndpointGroup:()=>(G(),c$1(E)).weatherReadingsGroup}),{fetch:ne,hook:oe}=D;}); export{a,r as b,O as c,j as d,S as e,k as f,w as g,Z as h,_ as i,g as j,N as k,l,ne as m,oe as n,R as o,C as p,G as q};//# sourceMappingURL=chunk-ICSQB32M.mjs.map //# sourceMappingURL=chunk-ICSQB32M.mjs.map