UNPKG

ws-dottie

Version:

Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration

113 lines (109 loc) 4.09 kB
import { z } from 'zod'; /** * GetWeatherInformation input schema * * Input parameters for getting current weather information. Provides current information from weather stations. Coverage Area: Statewide. */ declare const weatherInformationInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; type WeatherInformationInput = z.infer<typeof weatherInformationInputSchema>; /** * GetWeatherInformationByStationId input schema * * Input parameters for getting current weather information by station ID. Provides current information from weather stations. Coverage Area: Statewide. */ declare const weatherInformationByStationIdInputSchema: z.ZodObject<{ StationID: z.ZodNumber; }, "strip", z.ZodTypeAny, { StationID: number; }, { StationID: number; }>; type WeatherInformationByStationIdInput = z.infer<typeof weatherInformationByStationIdInputSchema>; /** * SearchWeatherInformation input schema * * Input parameters for searching weather information by station ID and time range. */ declare const searchWeatherInformationInputSchema: z.ZodObject<{ StationID: z.ZodNumber; SearchStartTime: z.ZodString; SearchEndTime: z.ZodString; }, "strip", z.ZodTypeAny, { StationID: number; SearchStartTime: string; SearchEndTime: string; }, { StationID: number; SearchStartTime: string; SearchEndTime: string; }>; type SearchWeatherInformationInput = z.infer<typeof searchWeatherInformationInputSchema>; /** * GetCurrentWeatherForStations input schema * * Input parameters for getting current weather information for multiple stations. */ declare const currentWeatherForStationsInputSchema: z.ZodObject<{ StationList: z.ZodString; }, "strip", z.ZodTypeAny, { StationList: string; }, { StationList: string; }>; type CurrentWeatherForStationsInput = z.infer<typeof currentWeatherForStationsInputSchema>; /** * WeatherInfo schema * * Current information from a weather station. */ declare const weatherInfoSchema: z.ZodObject<{ BarometricPressure: z.ZodNullable<z.ZodNumber>; Latitude: z.ZodNumber; Longitude: z.ZodNumber; PrecipitationInInches: z.ZodNullable<z.ZodNumber>; ReadingTime: z.ZodDate; RelativeHumidity: z.ZodNullable<z.ZodNumber>; SkyCoverage: z.ZodNullable<z.ZodString>; StationID: z.ZodNumber; StationName: z.ZodNullable<z.ZodString>; TemperatureInFahrenheit: z.ZodNullable<z.ZodNumber>; Visibility: z.ZodNullable<z.ZodNumber>; WindDirection: z.ZodNullable<z.ZodNumber>; WindDirectionCardinal: z.ZodNullable<z.ZodString>; WindGustSpeedInMPH: z.ZodNullable<z.ZodNumber>; WindSpeedInMPH: z.ZodNullable<z.ZodNumber>; }, "strip", z.ZodTypeAny, { Latitude: number; Longitude: number; TemperatureInFahrenheit: number | null; StationName: string | null; StationID: number; BarometricPressure: number | null; PrecipitationInInches: number | null; ReadingTime: Date; RelativeHumidity: number | null; SkyCoverage: string | null; Visibility: number | null; WindDirection: number | null; WindDirectionCardinal: string | null; WindGustSpeedInMPH: number | null; WindSpeedInMPH: number | null; }, { Latitude: number; Longitude: number; TemperatureInFahrenheit: number | null; StationName: string | null; StationID: number; BarometricPressure: number | null; PrecipitationInInches: number | null; ReadingTime: Date; RelativeHumidity: number | null; SkyCoverage: string | null; Visibility: number | null; WindDirection: number | null; WindDirectionCardinal: string | null; WindGustSpeedInMPH: number | null; WindSpeedInMPH: number | null; }>; type WeatherInfo = z.infer<typeof weatherInfoSchema>; export { type CurrentWeatherForStationsInput, type SearchWeatherInformationInput, type WeatherInfo, type WeatherInformationByStationIdInput, type WeatherInformationInput, currentWeatherForStationsInputSchema, searchWeatherInformationInputSchema, weatherInfoSchema, weatherInformationByStationIdInputSchema, weatherInformationInputSchema };