ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
1 lines • 7.31 kB
Source Map (JSON)
{"version":3,"sources":["../src/apis/wsdot-weather-information/weatherInfo/shared/weatherInfo.input.ts","../src/apis/wsdot-weather-information/weatherInfo/shared/weatherInfo.output.ts"],"names":["weatherInformationInputSchema","weatherInformationByStationIdInputSchema","searchWeatherInformationInputSchema","currentWeatherForStationsInputSchema","init_weatherInfo_input","__esmMin","init_zod","z","weatherInfoSchema","init_weatherInfo_output","init_shared","zDotnetDate"],"mappings":"wIAAA,IAOaA,CAAAA,CAeAC,CAAAA,CAiBAC,CAAAA,CA6BAC,CAAAA,CApEbC,CAAAA,CAAAC,IAAA,IAAA,CAAAC,CAAAA,EAAAA,CAOaN,CAAAA,CAAgCO,GAAAA,CAC1C,MAAA,CAAO,EAAE,CAAA,CACT,QAAA,CACC,6EACF,CAAA,CAWWN,CAAAA,CAA2CM,GAAAA,CACrD,OAAO,CACN,SAAA,CAAWA,GAAAA,CAAE,GAAA,EAAI,CAAE,QAAA,CAAS,oCAAoC,CAClE,CAAC,CAAA,CACA,QAAA,CACC,yEACF,CAAA,CAWWL,EAAsCK,GAAAA,CAChD,MAAA,CAAO,CACN,SAAA,CAAWA,GAAAA,CAAE,GAAA,GAAM,QAAA,CAAS,oCAAoC,CAAA,CAChE,eAAA,CAAiBA,GAAAA,CACd,MAAA,GACA,QAAA,EAAS,CACT,QAAA,CACC,mEACF,CAAA,CACF,aAAA,CAAeA,IACZ,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CACC,iEACF,CACJ,CAAC,CAAA,CACA,QAAA,CACC,0FACF,CAAA,CAWWJ,CAAAA,CAAuCI,IACjD,MAAA,CAAO,CACN,WAAA,CAAaA,GAAAA,CACV,MAAA,EAAO,CACP,SAAS,8CAA8C,CAC5D,CAAC,CAAA,CACA,QAAA,CACC,iFACF,KC5EF,IAQaC,CAAAA,CARbC,CAAAA,CAAAJ,GAA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C,EACxD,cAAA,CAAgBA,GAAAA,CACb,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CAAS,uCAAuC,CACrD,CAAC,CAAA,CACA,QAAA,CACC,iLACF,EAAA,CAAA","file":"chunk-MLLC4GYU.mjs","sourcesContent":["import { z } from \"@/shared/zod\";\n\n/**\n * GetWeatherInformation input schema\n *\n * Input parameters for getting current weather information. Provides current information from weather stations. Coverage Area: Statewide.\n */\nexport const weatherInformationInputSchema = z\n .object({})\n .describe(\n \"Input parameters for listing current weather information from all stations.\"\n );\n\nexport type WeatherInformationInput = z.infer<\n typeof weatherInformationInputSchema\n>;\n\n/**\n * GetWeatherInformationByStationId input schema\n *\n * Input parameters for getting current weather information by station ID. Provides current information from weather stations. Coverage Area: Statewide.\n */\nexport const weatherInformationByStationIdInputSchema = z\n .object({\n StationID: z.int().describe(\"Numeric ID of the weather station.\"),\n })\n .describe(\n \"Input parameters for getting current weather information by station ID.\"\n );\n\nexport type WeatherInformationByStationIdInput = z.infer<\n typeof weatherInformationByStationIdInputSchema\n>;\n\n/**\n * SearchWeatherInformation input schema\n *\n * Input parameters for searching weather information by station ID and time range.\n */\nexport const searchWeatherInformationInputSchema = z\n .object({\n StationID: z.int().describe(\"Numeric ID of the weather station.\"),\n SearchStartTime: z\n .string()\n .datetime()\n .describe(\n \"UTC datetime when the search time range begins (ISO-8601 format).\"\n ),\n SearchEndTime: z\n .string()\n .datetime()\n .describe(\n \"UTC datetime when the search time range ends (ISO-8601 format).\"\n ),\n })\n .describe(\n \"Input parameters for searching historical weather information by station and time range.\"\n );\n\nexport type SearchWeatherInformationInput = z.infer<\n typeof searchWeatherInformationInputSchema\n>;\n\n/**\n * GetCurrentWeatherForStations input schema\n *\n * Input parameters for getting current weather information for multiple stations.\n */\nexport const currentWeatherForStationsInputSchema = z\n .object({\n StationList: z\n .string()\n .describe(\"Comma-separated list of weather station IDs.\"),\n })\n .describe(\n \"Input parameters for getting current weather information for multiple stations.\"\n );\n\nexport type CurrentWeatherForStationsInput = z.infer<\n typeof currentWeatherForStationsInputSchema\n>;\n","import { zDotnetDate } from \"@/apis/shared\";\nimport { z } from \"@/shared/zod\";\n\n/**\n * WeatherInfo schema\n *\n * Current information from a weather station.\n */\nexport const weatherInfoSchema = z\n .object({\n BarometricPressure: z\n .number()\n .nullable()\n .describe(\n \"Atmospheric pressure in millibars (not adjusted for elevation).\"\n ),\n Latitude: z\n .number()\n .describe(\"Latitude of the weather station in decimal degrees.\"),\n Longitude: z\n .number()\n .describe(\"Longitude of the weather station in decimal degrees.\"),\n PrecipitationInInches: z\n .number()\n .nullable()\n .describe(\"Precipitation amount in inches.\"),\n ReadingTime: zDotnetDate().describe(\n \"UTC datetime when the weather reading was taken.\"\n ),\n RelativeHumidity: z\n .number()\n .nullable()\n .describe(\"Relative humidity as a percentage (0-100).\"),\n SkyCoverage: z.string().nullable().describe(\"Sky coverage condition code.\"),\n StationID: z.int().describe(\"Numeric ID of the weather station.\"),\n StationName: z\n .string()\n .nullable()\n .describe(\"Display name of the weather station.\"),\n TemperatureInFahrenheit: z\n .number()\n .nullable()\n .describe(\"Current air temperature in degrees Fahrenheit.\"),\n Visibility: z\n .int()\n .nullable()\n .describe(\n \"Average visibility distance in meters (computed every 3 minutes).\"\n ),\n WindDirection: z\n .number()\n .nullable()\n .describe(\"Wind direction in degrees clockwise from north (0-359).\"),\n WindDirectionCardinal: z\n .string()\n .nullable()\n .describe(\"Wind direction in cardinal format (e.g., 'N', 'S', 'WSW').\"),\n WindGustSpeedInMPH: z\n .number()\n .nullable()\n .describe(\"Maximum wind gust speed in miles per hour.\"),\n WindSpeedInMPH: z\n .number()\n .nullable()\n .describe(\"Average wind speed in miles per hour.\"),\n })\n .describe(\n \"Current atmospheric conditions from a WSDOT Road Weather Information System station, including temperature, humidity, wind, visibility, barometric pressure, and precipitation.\"\n );\n\nexport type WeatherInfo = z.infer<typeof weatherInfoSchema>;\n"]}