ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
175 lines (169 loc) • 5.99 kB
TypeScript
export { CurrentWeatherForStationsInput, SearchWeatherInformationInput, WeatherInfo, WeatherInformationByStationIdInput, WeatherInformationInput, currentWeatherForStationsInputSchema, searchWeatherInformationInputSchema, weatherInfoSchema, weatherInformationByStationIdInputSchema, weatherInformationInputSchema } from './schemas.js';
import { H as HookFactory, F as FetchFactory } from '../../types-D3jt2o5t.js';
import 'zod';
import '@tanstack/react-query';
/**
* Fetch function and React Query hook for retrieving current weather information for multiple specified stations
*/
declare const fetchCurrentWeatherForStations: FetchFactory<{
StationList: string;
}, {
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;
}[]>;
declare const useCurrentWeatherForStations: HookFactory<{
StationList: string;
}, {
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;
}[]>;
/**
* Fetch function and React Query hook for retrieving historical weather information for a station within a time range
*/
declare const searchWeatherInformation: FetchFactory<{
StationID: number;
SearchStartTime: string;
SearchEndTime: string;
}, {
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;
}[]>;
declare const useSearchWeatherInformation: HookFactory<{
StationID: number;
SearchStartTime: string;
SearchEndTime: string;
}, {
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;
}[]>;
/**
* Fetch function and React Query hook for retrieving current weather information for all stations
*/
declare const fetchWeatherInformation: FetchFactory<{}, {
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;
}[]>;
declare const useWeatherInformation: HookFactory<{}, {
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;
}[]>;
/**
* Fetch function and React Query hook for retrieving current weather information for a specific station by ID
*/
declare const fetchWeatherInformationByStationId: FetchFactory<{
StationID: number;
}, {
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;
}>;
declare const useWeatherInformationByStationId: HookFactory<{
StationID: number;
}, {
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;
}>;
export { useSearchWeatherInformation as a, useWeatherInformation as b, useWeatherInformationByStationId as c, fetchCurrentWeatherForStations, fetchWeatherInformation, fetchWeatherInformationByStationId, searchWeatherInformation, useCurrentWeatherForStations as u };