UNPKG

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 6.97 kB
{"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","z","weatherInformationByStationIdInputSchema","searchWeatherInformationInputSchema","currentWeatherForStationsInputSchema","weatherInfoSchema","zDotnetDate"],"mappings":"wFAOO,IAAMA,CAAAA,CAAgCC,IAC1C,MAAA,CAAO,EAAE,CAAA,CACT,QAAA,CACC,6EACF,CAAA,CAWWC,CAAAA,CAA2CD,GAAAA,CACrD,OAAO,CACN,SAAA,CAAWA,IAAE,GAAA,EAAI,CAAE,SAAS,oCAAoC,CAClE,CAAC,CAAA,CACA,QAAA,CACC,yEACF,EAWWE,CAAAA,CAAsCF,GAAAA,CAChD,OAAO,CACN,SAAA,CAAWA,IAAE,GAAA,EAAI,CAAE,QAAA,CAAS,oCAAoC,CAAA,CAChE,eAAA,CAAiBA,IACd,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CACC,mEACF,EACF,aAAA,CAAeA,GAAAA,CACZ,MAAA,EAAO,CACP,QAAA,EAAS,CACT,SACC,iEACF,CACJ,CAAC,CAAA,CACA,QAAA,CACC,0FACF,CAAA,CAWWG,CAAAA,CAAuCH,GAAAA,CACjD,MAAA,CAAO,CACN,WAAA,CAAaA,IACV,MAAA,EAAO,CACP,SAAS,8CAA8C,CAC5D,CAAC,CAAA,CACA,QAAA,CACC,iFACF,ECpEK,IAAMI,CAAAA,CAAoBJ,IAC9B,MAAA,CAAO,CACN,mBAAoBA,GAAAA,CACjB,MAAA,GACA,QAAA,EAAS,CACT,QAAA,CACC,iEACF,CAAA,CACF,QAAA,CAAUA,IACP,MAAA,EAAO,CACP,QAAA,CAAS,qDAAqD,CAAA,CACjE,SAAA,CAAWA,IACR,MAAA,EAAO,CACP,QAAA,CAAS,sDAAsD,CAAA,CAClE,qBAAA,CAAuBA,IACpB,MAAA,EAAO,CACP,UAAS,CACT,QAAA,CAAS,iCAAiC,CAAA,CAC7C,WAAA,CAAaK,GAAAA,EAAY,CAAE,QAAA,CACzB,kDACF,EACA,gBAAA,CAAkBL,GAAAA,CACf,QAAO,CACP,QAAA,GACA,QAAA,CAAS,4CAA4C,CAAA,CACxD,WAAA,CAAaA,GAAAA,CAAE,MAAA,GAAS,QAAA,EAAS,CAAE,SAAS,8BAA8B,CAAA,CAC1E,UAAWA,GAAAA,CAAE,GAAA,EAAI,CAAE,QAAA,CAAS,oCAAoC,CAAA,CAChE,YAAaA,GAAAA,CACV,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CAAS,sCAAsC,CAAA,CAClD,uBAAA,CAAyBA,GAAAA,CACtB,MAAA,EAAO,CACP,QAAA,GACA,QAAA,CAAS,gDAAgD,EAC5D,UAAA,CAAYA,GAAAA,CACT,KAAI,CACJ,QAAA,EAAS,CACT,QAAA,CACC,mEACF,CAAA,CACF,cAAeA,GAAAA,CACZ,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CAAS,yDAAyD,CAAA,CACrE,qBAAA,CAAuBA,GAAAA,CACpB,MAAA,EAAO,CACP,QAAA,GACA,QAAA,CAAS,4DAA4D,EACxE,kBAAA,CAAoBA,GAAAA,CACjB,QAAO,CACP,QAAA,EAAS,CACT,QAAA,CAAS,4CAA4C,CAAA,CACxD,eAAgBA,GAAAA,CACb,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CAAS,uCAAuC,CACrD,CAAC,CAAA,CACA,QAAA,CACC,iLACF","file":"chunk-4RRRCQES.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"]}