{"version":3,"sources":["../src/apis/wsdot-weather-readings/apiMeta.ts","../src/apis/wsdot-weather-readings/subSurfaceMeasurements/shared/subSurfaceMeasurements.endpoints.ts","../src/apis/wsdot-weather-readings/subSurfaceMeasurements/subSurfaceMeasurements.ts","../src/apis/wsdot-weather-readings/surfaceMeasurements/shared/surfaceMeasurements.endpoints.ts","../src/apis/wsdot-weather-readings/surfaceMeasurements/surfaceMeasurements.ts","../src/apis/wsdot-weather-readings/weatherReadings/shared/weatherReadings.endpoints.ts","../src/apis/wsdot-weather-readings/weatherReadings/weatherReadings.ts"],"names":["wsdotWeatherReadingsApiMeta","init_apiMeta","__esmMin","subSurfaceMeasurements_endpoints_exports","__export","subSurfaceMeasurementsGroup","init_subSurfaceMeasurements_endpoints","init_subSurfaceMeasurements","subSurfaceMeasurementsMeta","fetch","useHook","fetchSubSurfaceMeasurements","useSubSurfaceMeasurements","init_factories","init_subSurfaceMeasurements_input","init_subSurfaceMeasurements_output","subSurfaceMeasurementsInputSchema","subsurfaceMeasurementSchema","createFetchAndHook","surfaceMeasurements_endpoints_exports","surfaceMeasurementsGroup","init_surfaceMeasurements_endpoints","init_surfaceMeasurements","surfaceMeasurementsMeta","fetchSurfaceMeasurements","useSurfaceMeasurements","init_surfaceMeasurements_input","init_surfaceMeasurements_output","surfaceMeasurementsInputSchema","surfaceMeasurementSchema","n","weatherReadings_endpoints_exports","weatherReadingsGroup","init_weatherReadings_endpoints","init_weatherReadings","weatherReadingsMeta","fetchWeatherReadings","useWeatherReadings","init_weatherReadings_input","init_weatherReadings_output","weatherReadingsInputSchema","weatherReadingSchema"],"mappings":"iNAAA,IAKaA,CAAAA,CALbC,CAAAA,CAAAC,GAAAA,CAAA,IAAA,CAKaF,EAAuC,CAClD,IAAA,CAAM,wBAAA,CACN,OAAA,CAAS,0CACX,EAAA,CAAA,ECRA,IAAAG,CAAAA,CAAA,GAAAC,GAAAA,CAAAD,CAAAA,CAAA,CAAA,2BAAA,CAAA,IAAAE,CAAAA,C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SAAU,CACR,kEAAA,CACA,2EAAA,CACA,0EACF,CAAA,CACA,eAAA,CAAiB,IACnB,CAAA,CACA,UAAW,CAACG,CAAmB,CACjC,EAAA,CAAA,ECtBA,IAmBaA,CAAAA,CAaL1B,CAAAA,CAAOC,CAAAA,CAeF0B,GAQAC,EAAAA,CAvDbH,CAAAA,CAAAhC,GAAAA,CAAA,IAAA,CACAW,CAAAA,EAAAA,CAKAZ,CAAAA,EAAAA,CACAqC,GAAAA,EAAAA,CAIAC,GAAAA,EAAAA,CAQaJ,EAAsB,CACjC,YAAA,CAAc,sBAAA,CACd,QAAA,CAAU,UAAA,CACV,WAAA,CAAaK,GAAAA,CACb,YAAA,CAAcC,EAAqB,KAAA,EAAM,CACzC,YAAA,CAAc,EAAC,CACf,mBAAA,CACE,gEACJ,CAAA,CAKM,CAAE,KAAA,CAAAhC,CAAAA,CAAO,OAAA,CAAAC,CAAAA,CAAAA,CAAYQ,GAAAA,CAGzB,CACA,GAAA,CAAKlB,CAAAA,CACL,SAAUmC,CAAAA,CACV,gBAAA,CAAkB,IAEhB,CAAA,CAAA,EAAA,CAAAL,GAAA,CAAA,CAAA,CAAA,EAA8C,qBAC3C,aACP,CAAC,CAAA,CAKYM,EAAAA,CAGT3B,EAKS4B,EAAAA,CAGT3B,EAAAA,CAAAA","file":"chunk-VB6HTOAL.mjs","sourcesContent":["import type { ApiMeta } from \"@/apis/types\";\n\n/**\n * API metadata for WSDOT Weather Readings API\n */\nexport const wsdotWeatherReadingsApiMeta: ApiMeta = {\n  name: \"wsdot-weather-readings\",\n  baseUrl: \"https://www.wsdot.wa.gov/traffic/api/api\",\n};\n","import type { EndpointGroupMeta } from \"@/apis/types\";\nimport { subSurfaceMeasurementsMeta } from \"../subSurfaceMeasurements\";\n\n/**\n * Endpoint group metadata for sub-surface measurements endpoints\n */\nexport const subSurfaceMeasurementsGroup: EndpointGroupMeta = {\n  name: \"sub-surface-measurements\",\n  cacheStrategy: \"FREQUENT\",\n  documentation: {\n    summary:\n      \"Subsurface temperature measurements from sensors embedded below road pavement.\",\n    description:\n      \"Ground temperature data from sensors embedded 12-18 inches below road pavement surfaces for monitoring ground temperature conditions.\",\n    useCases: [\n      \"Monitor ground temperature conditions for winter maintenance operations.\",\n      \"Predict road surface conditions based on subsurface temperature trends.\",\n      \"Assess travel safety by understanding ground temperature patterns.\",\n    ],\n    updateFrequency: \"5m\",\n  },\n  endpoints: [subSurfaceMeasurementsMeta],\n};\n","import type { EndpointMeta } from \"@/apis/types\";\nimport {\n  createFetchAndHook,\n  type FetchFactory,\n  type HookFactory,\n} from \"@/shared/factories\";\nimport { wsdotWeatherReadingsApiMeta } from \"../apiMeta\";\nimport {\n  type SubSurfaceMeasurementsInput,\n  subSurfaceMeasurementsInputSchema,\n} from \"./shared/subSurfaceMeasurements.input\";\nimport {\n  type SubsurfaceMeasurement,\n  subsurfaceMeasurementSchema,\n} from \"./shared/subSurfaceMeasurements.output\";\n\n/**\n * Metadata for the fetchSubSurfaceMeasurements endpoint\n */\nexport const subSurfaceMeasurementsMeta = {\n  functionName: \"fetchSubSurfaceMeasurements\",\n  endpoint: \"/Scanweb/SubSurfaceMeasurements\",\n  inputSchema: subSurfaceMeasurementsInputSchema,\n  outputSchema: subsurfaceMeasurementSchema.array(),\n  sampleParams: {},\n  endpointDescription:\n    \"List subsurface measurements from all weather stations statewide.\",\n} satisfies EndpointMeta<SubSurfaceMeasurementsInput, SubsurfaceMeasurement[]>;\n\n/**\n * Fetch function for retrieving subsurface measurements from all weather stations statewide\n */\nconst { fetch, useHook } = createFetchAndHook<\n  SubSurfaceMeasurementsInput,\n  SubsurfaceMeasurement[]\n>({\n  api: wsdotWeatherReadingsApiMeta,\n  endpoint: subSurfaceMeasurementsMeta,\n  getCacheStrategy: () =>\n    // eslint-disable-next-line @typescript-eslint/no-var-requires\n    require(\"./shared/subSurfaceMeasurements.endpoints\")\n      .subSurfaceMeasurementsGroup.cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving subsurface measurements from all weather stations statewide\n */\nexport const fetchSubSurfaceMeasurements: FetchFactory<\n  SubSurfaceMeasurementsInput,\n  SubsurfaceMeasurement[]\n> = fetch;\n\n/**\n * React Query hook for retrieving subsurface measurements from all weather stations statewide\n */\nexport const useSubSurfaceMeasurements: HookFactory<\n  SubSurfaceMeasurementsInput,\n  SubsurfaceMeasurement[]\n> = useHook;\n","import type { EndpointGroupMeta } from \"@/apis/types\";\nimport { surfaceMeasurementsMeta } from \"../surfaceMeasurements\";\n\n/**\n * Endpoint group metadata for surface measurements endpoints\n */\nexport const surfaceMeasurementsGroup: EndpointGroupMeta = {\n  name: \"surface-measurements\",\n  cacheStrategy: \"FREQUENT\",\n  documentation: {\n    summary:\n      \"Surface sensor measurements from WSDOT weather stations statewide.\",\n    description:\n      \"Pavement surface temperature, road freezing temperature, and road surface condition codes from sensors embedded in or mounted on road surfaces.\",\n    useCases: [\n      \"Monitor road surface conditions for winter maintenance operations.\",\n      \"Assess pavement temperature and freezing risk.\",\n      \"Evaluate travel safety based on surface condition codes.\",\n    ],\n    updateFrequency: \"5m\",\n  },\n  endpoints: [surfaceMeasurementsMeta],\n};\n","import type { EndpointMeta } from \"@/apis/types\";\nimport {\n  createFetchAndHook,\n  type FetchFactory,\n  type HookFactory,\n} from \"@/shared/factories\";\nimport { wsdotWeatherReadingsApiMeta } from \"../apiMeta\";\nimport {\n  type SurfaceMeasurementsInput,\n  surfaceMeasurementsInputSchema,\n} from \"./shared/surfaceMeasurements.input\";\nimport {\n  type SurfaceMeasurement,\n  surfaceMeasurementSchema,\n} from \"./shared/surfaceMeasurements.output\";\n\n/**\n * Metadata for the fetchSurfaceMeasurements endpoint\n */\nexport const surfaceMeasurementsMeta = {\n  functionName: \"fetchSurfaceMeasurements\",\n  endpoint: \"/Scanweb/SurfaceMeasurements\",\n  inputSchema: surfaceMeasurementsInputSchema,\n  outputSchema: surfaceMeasurementSchema.array(),\n  sampleParams: {},\n  endpointDescription: \"List surface measurements from all weather stations.\",\n} satisfies EndpointMeta<SurfaceMeasurementsInput, SurfaceMeasurement[]>;\n\n/**\n * Fetch function for retrieving surface measurements from all weather stations\n */\nconst { fetch, useHook } = createFetchAndHook<\n  SurfaceMeasurementsInput,\n  SurfaceMeasurement[]\n>({\n  api: wsdotWeatherReadingsApiMeta,\n  endpoint: surfaceMeasurementsMeta,\n  getCacheStrategy: () =>\n    // eslint-disable-next-line @typescript-eslint/no-var-requires\n    require(\"./shared/surfaceMeasurements.endpoints\")\n      .surfaceMeasurementsGroup.cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving surface measurements from all weather stations\n */\nexport const fetchSurfaceMeasurements: FetchFactory<\n  SurfaceMeasurementsInput,\n  SurfaceMeasurement[]\n> = fetch;\n\n/**\n * React Query hook for retrieving surface measurements from all weather stations\n */\nexport const useSurfaceMeasurements: HookFactory<\n  SurfaceMeasurementsInput,\n  SurfaceMeasurement[]\n> = useHook;\n","import type { EndpointGroupMeta } from \"@/apis/types\";\nimport { weatherReadingsMeta } from \"../weatherReadings\";\n\n/**\n * Endpoint group metadata for weather readings endpoints\n */\nexport const weatherReadingsGroup: EndpointGroupMeta = {\n  name: \"weather-readings\",\n  cacheStrategy: \"FREQUENT\",\n  documentation: {\n    summary:\n      \"Comprehensive weather readings from all WSDOT weather stations statewide.\",\n    description:\n      \"Complete weather data including air temperature, humidity, wind conditions, visibility, precipitation across multiple time periods, barometric pressure, snow depth, and surface/subsurface sensor measurements.\",\n    useCases: [\n      \"Access complete weather station data for comprehensive analysis.\",\n      \"Monitor atmospheric and surface conditions for transportation operations.\",\n      \"Track precipitation across multiple time periods (1h, 3h, 6h, 12h, 24h).\",\n    ],\n    updateFrequency: \"5m\",\n  },\n  endpoints: [weatherReadingsMeta],\n};\n","import type { EndpointMeta } from \"@/apis/types\";\nimport {\n  createFetchAndHook,\n  type FetchFactory,\n  type HookFactory,\n} from \"@/shared/factories\";\nimport { wsdotWeatherReadingsApiMeta } from \"../apiMeta\";\nimport {\n  type WeatherReadingsInput,\n  weatherReadingsInputSchema,\n} from \"./shared/weatherReadings.input\";\nimport {\n  type WeatherReading,\n  weatherReadingSchema,\n} from \"./shared/weatherReadings.output\";\n\n/**\n * Metadata for the fetchWeatherReadings endpoint\n */\nexport const weatherReadingsMeta = {\n  functionName: \"fetchWeatherReadings\",\n  endpoint: \"/Scanweb\",\n  inputSchema: weatherReadingsInputSchema,\n  outputSchema: weatherReadingSchema.array(),\n  sampleParams: {},\n  endpointDescription:\n    \"List comprehensive weather readings from all weather stations.\",\n} satisfies EndpointMeta<WeatherReadingsInput, WeatherReading[]>;\n\n/**\n * Fetch function for retrieving comprehensive weather readings from all weather stations\n */\nconst { fetch, useHook } = createFetchAndHook<\n  WeatherReadingsInput,\n  WeatherReading[]\n>({\n  api: wsdotWeatherReadingsApiMeta,\n  endpoint: weatherReadingsMeta,\n  getCacheStrategy: () =>\n    // eslint-disable-next-line @typescript-eslint/no-var-requires\n    require(\"./shared/weatherReadings.endpoints\").weatherReadingsGroup\n      .cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving comprehensive weather readings from all weather stations\n */\nexport const fetchWeatherReadings: FetchFactory<\n  WeatherReadingsInput,\n  WeatherReading[]\n> = fetch;\n\n/**\n * React Query hook for retrieving comprehensive weather readings from all weather stations\n */\nexport const useWeatherReadings: HookFactory<\n  WeatherReadingsInput,\n  WeatherReading[]\n> = useHook;\n"]}