{"version":3,"sources":["../src/apis/wsdot-weather-stations/apiMeta.ts","../src/apis/wsdot-weather-stations/weatherStations/shared/weatherStations.endpoints.ts","../src/apis/wsdot-weather-stations/weatherStations/weatherStations.ts"],"names":["wsdotWeatherStationsApiMeta","init_apiMeta","__esmMin","weatherStations_endpoints_exports","__export","weatherStationsGroup","init_weatherStations_endpoints","init_weatherStations","weatherStationsMeta","weatherStationsFactory","fetchWeatherStations","useWeatherStations","init_factories","init_weatherStations_input","init_weatherStations_output","weatherStationsInputSchema","weatherStationSchema","createFetchAndHook"],"mappings":"gJAAA,IAKaA,CAAAA,CALbC,EAAAC,CAAAA,CAAA,IAAA,CAKaF,EAAuC,CAClD,IAAA,CAAM,yBACN,OAAA,CACE,0EACJ,KCTA,IAAAG,CAAAA,CAAA,GAAAC,CAAAA,CAAAD,CAAAA,CAAA,0BAAAE,CAAAA,CAAAA,CAAAA,CAAA,IAMaA,CAAAA,CANbC,CAAAA,CAAAJ,CAAAA,CAAA,IAAA,CACAK,IAKaF,CAAAA,CAA0C,CACrD,KAAM,kBAAA,CACN,aAAA,CAAe,WACf,aAAA,CAAe,CACb,QACE,iHAAA,CACF,WAAA,CACE,kIACF,QAAA,CAAU,CACR,kEACA,kEAAA,CACA,kDACF,EACA,eAAA,CAAiB,OACnB,CAAA,CACA,SAAA,CAAW,CAACG,CAAmB,CACjC,EAAA,CAAA,ECtBA,IAeaA,EAaPC,CAAAA,CAagBC,CAAAA,CAA4BC,EAzClDJ,CAAAA,CAAAL,CAAAA,CAAA,KACAU,CAAAA,EAAAA,CACAX,CAAAA,EAAAA,CACAY,MAIAC,CAAAA,EAAAA,CAQaN,CAAAA,CAAsB,CACjC,YAAA,CAAc,sBAAA,CACd,SAAU,2BAAA,CACV,WAAA,CAAaO,GAAAA,CACb,YAAA,CAAcC,CAAAA,CAAqB,KAAA,GACnC,YAAA,CAAc,GACd,mBAAA,CACE,2DACJ,EAKMP,CAAAA,CAAyBQ,CAAAA,CAG7B,CACA,GAAA,CAAKjB,CAAAA,CACL,QAAA,CAAUQ,EACV,gBAAA,CAAkB,IAChB,aAA8C,oBAClD,CAAC,EAKY,CAAE,KAAA,CAAOE,CAAAA,CAAsB,IAAA,CAAMC,CAAAA,CAAAA,CAChDF,EAAAA,CAAAA","file":"chunk-EP2FVOXW.mjs","sourcesContent":["import type { ApiMeta } from \"@/apis/types\";\n\n/**\n * API metadata for WSDOT Weather Stations API\n */\nexport const wsdotWeatherStationsApiMeta: ApiMeta = {\n  name: \"wsdot-weather-stations\",\n  baseUrl:\n    \"https://wsdot.wa.gov/traffic/api/WeatherStations/WeatherStationsREST.svc\",\n};\n","import type { EndpointGroupMeta } from \"@/apis/types\";\nimport { weatherStationsMeta } from \"../weatherStations\";\n\n/**\n * Endpoint group metadata for weather stations endpoints\n */\nexport const weatherStationsGroup: EndpointGroupMeta = {\n  name: \"weather-stations\",\n  cacheStrategy: \"FREQUENT\",\n  documentation: {\n    summary:\n      \"Weather station metadata and location information for WSDOT Road Weather Information System stations statewide.\",\n    description:\n      \"Station identifiers, names, and location coordinates for weather stations that collect atmospheric and pavement condition data.\",\n    useCases: [\n      \"Discover weather stations by location for weather data queries.\",\n      \"Identify station identifiers and names for weather data lookups.\",\n      \"Support location-based weather station searches.\",\n    ],\n    updateFrequency: \"daily\",\n  },\n  endpoints: [weatherStationsMeta],\n};\n","import type { EndpointMetaWithSchema } from \"@/apis/types\";\nimport { createFetchAndHook } from \"@/shared/factories\";\nimport { wsdotWeatherStationsApiMeta } from \"../apiMeta\";\nimport {\n  type WeatherStationsInput,\n  weatherStationsInputSchema,\n} from \"./shared/weatherStations.input\";\nimport {\n  type WeatherStation,\n  weatherStationSchema,\n} from \"./shared/weatherStations.output\";\n\n/**\n * Metadata for the fetchWeatherStations endpoint\n */\nexport const weatherStationsMeta = {\n  functionName: \"fetchWeatherStations\",\n  endpoint: \"/GetCurrentStationsAsJson\",\n  inputSchema: weatherStationsInputSchema,\n  outputSchema: weatherStationSchema.array(),\n  sampleParams: {},\n  endpointDescription:\n    \"List weather station metadata for all stations statewide.\",\n} satisfies EndpointMetaWithSchema<WeatherStationsInput, WeatherStation[]>;\n\n/**\n * Factory result for weather stations\n */\nconst weatherStationsFactory = createFetchAndHook<\n  WeatherStationsInput,\n  WeatherStation[]\n>({\n  api: wsdotWeatherStationsApiMeta,\n  endpoint: weatherStationsMeta,\n  getEndpointGroup: () =>\n    require(\"./shared/weatherStations.endpoints\").weatherStationsGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving weather station metadata for all stations statewide\n */\nexport const { fetch: fetchWeatherStations, hook: useWeatherStations } =\n  weatherStationsFactory;\n"]}