ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
1,059 lines (1,050 loc) • 35.1 kB
TypeScript
export { Alert, AlertByIdInput, AlertsByMapAreaInput, AlertsByRegionIDInput, AlertsInput, Area, EventCategoriesInput, MapAreasInput, SearchAlertsInput, alertByIdInputSchema, alertSchema, alertsByMapAreaInputSchema, alertsByRegionIDInputSchema, alertsInputSchema, areaSchema, eventCategoriesInputSchema, mapAreasInputSchema, searchAlertsInputSchema } from './schemas.js';
import * as zod from 'zod';
import { z } from 'zod';
import { H as HookFactory, F as FetchFactory } from '../../types-D3jt2o5t.js';
import '@tanstack/react-query';
/**
* Metadata for the fetchMapAreas endpoint
*/
declare const mapAreasMeta: {
functionName: string;
endpoint: string;
inputSchema: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
outputSchema: zod.ZodArray<zod.ZodObject<{
MapArea: zod.ZodNullable<zod.ZodString>;
MapAreaDescription: zod.ZodNullable<zod.ZodString>;
}, "strip", zod.ZodTypeAny, {
MapArea: string | null;
MapAreaDescription: string | null;
}, {
MapArea: string | null;
MapAreaDescription: string | null;
}>, "many">;
sampleParams: {};
endpointDescription: string;
};
/**
* Fetch function and React Query hook for retrieving all available geographic map areas for filtering alerts
*/
declare const fetchMapAreas: FetchFactory<{}, {
MapArea: string | null;
MapAreaDescription: string | null;
}[]>;
declare const useMapAreas: HookFactory<{}, {
MapArea: string | null;
MapAreaDescription: string | null;
}[]>;
/**
* Metadata for the fetchEventCategories endpoint
*/
declare const eventCategoriesMeta: {
functionName: string;
endpoint: string;
inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
outputSchema: z.ZodArray<z.ZodString, "many">;
sampleParams: {};
endpointDescription: string;
};
/**
* Fetch function and React Query hook for retrieving all available event category names for filtering alerts
*/
declare const fetchEventCategories: FetchFactory<{}, string[]>;
declare const useEventCategories: HookFactory<{}, string[]>;
/**
* Metadata for the fetchAlertById endpoint
*/
declare const alertByIdMeta: {
functionName: string;
endpoint: string;
inputSchema: zod.ZodObject<{
AlertID: zod.ZodNumber;
}, "strip", zod.ZodTypeAny, {
AlertID: number;
}, {
AlertID: number;
}>;
outputSchema: zod.ZodObject<{
AlertID: zod.ZodNumber;
County: zod.ZodNullable<zod.ZodString>;
EndRoadwayLocation: zod.ZodNullable<zod.ZodObject<{
Description: zod.ZodNullable<zod.ZodString>;
Direction: zod.ZodNullable<zod.ZodString>;
Latitude: zod.ZodNumber;
Longitude: zod.ZodNumber;
MilePost: zod.ZodNumber;
RoadName: zod.ZodNullable<zod.ZodString>;
}, "strip", zod.ZodTypeAny, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}>>;
EndTime: zod.ZodNullable<zod.ZodDate>;
EventCategory: zod.ZodNullable<zod.ZodString>;
EventStatus: zod.ZodNullable<zod.ZodString>;
ExtendedDescription: zod.ZodNullable<zod.ZodString>;
HeadlineDescription: zod.ZodNullable<zod.ZodString>;
LastUpdatedTime: zod.ZodNullable<zod.ZodDate>;
Priority: zod.ZodNullable<zod.ZodString>;
Region: zod.ZodNullable<zod.ZodString>;
StartRoadwayLocation: zod.ZodNullable<zod.ZodObject<{
Description: zod.ZodNullable<zod.ZodString>;
Direction: zod.ZodNullable<zod.ZodString>;
Latitude: zod.ZodNumber;
Longitude: zod.ZodNumber;
MilePost: zod.ZodNumber;
RoadName: zod.ZodNullable<zod.ZodString>;
}, "strip", zod.ZodTypeAny, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}>>;
StartTime: zod.ZodNullable<zod.ZodDate>;
}, "strip", zod.ZodTypeAny, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}>;
sampleParams: {
AlertID: number;
};
endpointDescription: string;
};
/**
* Fetch function and React Query hook for retrieving highway alert details for a specific alert ID
*/
declare const fetchAlertById: FetchFactory<{
AlertID: number;
}, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}>;
declare const useAlertById: HookFactory<{
AlertID: number;
}, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}>;
/**
* Metadata for the fetchAlerts endpoint
*/
declare const alertsMeta: {
functionName: string;
endpoint: string;
inputSchema: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
outputSchema: zod.ZodArray<zod.ZodObject<{
AlertID: zod.ZodNumber;
County: zod.ZodNullable<zod.ZodString>;
EndRoadwayLocation: zod.ZodNullable<zod.ZodObject<{
Description: zod.ZodNullable<zod.ZodString>;
Direction: zod.ZodNullable<zod.ZodString>;
Latitude: zod.ZodNumber;
Longitude: zod.ZodNumber;
MilePost: zod.ZodNumber;
RoadName: zod.ZodNullable<zod.ZodString>;
}, "strip", zod.ZodTypeAny, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}>>;
EndTime: zod.ZodNullable<zod.ZodDate>;
EventCategory: zod.ZodNullable<zod.ZodString>;
EventStatus: zod.ZodNullable<zod.ZodString>;
ExtendedDescription: zod.ZodNullable<zod.ZodString>;
HeadlineDescription: zod.ZodNullable<zod.ZodString>;
LastUpdatedTime: zod.ZodNullable<zod.ZodDate>;
Priority: zod.ZodNullable<zod.ZodString>;
Region: zod.ZodNullable<zod.ZodString>;
StartRoadwayLocation: zod.ZodNullable<zod.ZodObject<{
Description: zod.ZodNullable<zod.ZodString>;
Direction: zod.ZodNullable<zod.ZodString>;
Latitude: zod.ZodNumber;
Longitude: zod.ZodNumber;
MilePost: zod.ZodNumber;
RoadName: zod.ZodNullable<zod.ZodString>;
}, "strip", zod.ZodTypeAny, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}>>;
StartTime: zod.ZodNullable<zod.ZodDate>;
}, "strip", zod.ZodTypeAny, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}>, "many">;
sampleParams: {};
endpointDescription: string;
};
/**
* Fetch function and React Query hook for retrieving all current highway alerts statewide
*/
declare const fetchAlerts: FetchFactory<{}, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}[]>;
declare const useAlerts: HookFactory<{}, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}[]>;
/**
* Metadata for the fetchAlertsByMapArea endpoint
*/
declare const alertsByMapAreaMeta: {
functionName: string;
endpoint: string;
inputSchema: zod.ZodObject<{
MapArea: zod.ZodString;
}, "strip", zod.ZodTypeAny, {
MapArea: string;
}, {
MapArea: string;
}>;
outputSchema: zod.ZodArray<zod.ZodObject<{
AlertID: zod.ZodNumber;
County: zod.ZodNullable<zod.ZodString>;
EndRoadwayLocation: zod.ZodNullable<zod.ZodObject<{
Description: zod.ZodNullable<zod.ZodString>;
Direction: zod.ZodNullable<zod.ZodString>;
Latitude: zod.ZodNumber;
Longitude: zod.ZodNumber;
MilePost: zod.ZodNumber;
RoadName: zod.ZodNullable<zod.ZodString>;
}, "strip", zod.ZodTypeAny, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}>>;
EndTime: zod.ZodNullable<zod.ZodDate>;
EventCategory: zod.ZodNullable<zod.ZodString>;
EventStatus: zod.ZodNullable<zod.ZodString>;
ExtendedDescription: zod.ZodNullable<zod.ZodString>;
HeadlineDescription: zod.ZodNullable<zod.ZodString>;
LastUpdatedTime: zod.ZodNullable<zod.ZodDate>;
Priority: zod.ZodNullable<zod.ZodString>;
Region: zod.ZodNullable<zod.ZodString>;
StartRoadwayLocation: zod.ZodNullable<zod.ZodObject<{
Description: zod.ZodNullable<zod.ZodString>;
Direction: zod.ZodNullable<zod.ZodString>;
Latitude: zod.ZodNumber;
Longitude: zod.ZodNumber;
MilePost: zod.ZodNumber;
RoadName: zod.ZodNullable<zod.ZodString>;
}, "strip", zod.ZodTypeAny, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}>>;
StartTime: zod.ZodNullable<zod.ZodDate>;
}, "strip", zod.ZodTypeAny, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}>, "many">;
sampleParams: {
MapArea: string;
};
endpointDescription: string;
};
/**
* Fetch function and React Query hook for retrieving highway alerts filtered by map area code
*/
declare const fetchAlertsByMapArea: FetchFactory<{
MapArea: string;
}, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}[]>;
declare const useAlertsByMapArea: HookFactory<{
MapArea: string;
}, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}[]>;
/**
* Metadata for the fetchAlertsByRegionId endpoint
*/
declare const alertsByRegionIdMeta: {
functionName: string;
endpoint: string;
inputSchema: zod.ZodObject<{
RegionID: zod.ZodNumber;
}, "strip", zod.ZodTypeAny, {
RegionID: number;
}, {
RegionID: number;
}>;
outputSchema: zod.ZodArray<zod.ZodObject<{
AlertID: zod.ZodNumber;
County: zod.ZodNullable<zod.ZodString>;
EndRoadwayLocation: zod.ZodNullable<zod.ZodObject<{
Description: zod.ZodNullable<zod.ZodString>;
Direction: zod.ZodNullable<zod.ZodString>;
Latitude: zod.ZodNumber;
Longitude: zod.ZodNumber;
MilePost: zod.ZodNumber;
RoadName: zod.ZodNullable<zod.ZodString>;
}, "strip", zod.ZodTypeAny, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}>>;
EndTime: zod.ZodNullable<zod.ZodDate>;
EventCategory: zod.ZodNullable<zod.ZodString>;
EventStatus: zod.ZodNullable<zod.ZodString>;
ExtendedDescription: zod.ZodNullable<zod.ZodString>;
HeadlineDescription: zod.ZodNullable<zod.ZodString>;
LastUpdatedTime: zod.ZodNullable<zod.ZodDate>;
Priority: zod.ZodNullable<zod.ZodString>;
Region: zod.ZodNullable<zod.ZodString>;
StartRoadwayLocation: zod.ZodNullable<zod.ZodObject<{
Description: zod.ZodNullable<zod.ZodString>;
Direction: zod.ZodNullable<zod.ZodString>;
Latitude: zod.ZodNumber;
Longitude: zod.ZodNumber;
MilePost: zod.ZodNumber;
RoadName: zod.ZodNullable<zod.ZodString>;
}, "strip", zod.ZodTypeAny, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}>>;
StartTime: zod.ZodNullable<zod.ZodDate>;
}, "strip", zod.ZodTypeAny, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}>, "many">;
sampleParams: {
RegionID: number;
};
endpointDescription: string;
};
/**
* Fetch function and React Query hook for retrieving highway alerts filtered by WSDOT region ID
*/
declare const fetchAlertsByRegionId: FetchFactory<{
RegionID: number;
}, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}[]>;
declare const useAlertsByRegionId: HookFactory<{
RegionID: number;
}, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}[]>;
/**
* Metadata for the searchAlerts endpoint
*/
declare const searchAlertsMeta: {
functionName: string;
endpoint: string;
inputSchema: zod.ZodObject<{
StateRoute: zod.ZodOptional<zod.ZodString>;
Region: zod.ZodOptional<zod.ZodNumber>;
SearchTimeStart: zod.ZodOptional<zod.ZodString>;
SearchTimeEnd: zod.ZodOptional<zod.ZodString>;
StartingMilepost: zod.ZodOptional<zod.ZodNumber>;
EndingMilepost: zod.ZodOptional<zod.ZodNumber>;
}, "strip", zod.ZodTypeAny, {
StateRoute?: string | undefined;
Region?: number | undefined;
SearchTimeStart?: string | undefined;
SearchTimeEnd?: string | undefined;
StartingMilepost?: number | undefined;
EndingMilepost?: number | undefined;
}, {
StateRoute?: string | undefined;
Region?: number | undefined;
SearchTimeStart?: string | undefined;
SearchTimeEnd?: string | undefined;
StartingMilepost?: number | undefined;
EndingMilepost?: number | undefined;
}>;
outputSchema: zod.ZodArray<zod.ZodObject<{
AlertID: zod.ZodNumber;
County: zod.ZodNullable<zod.ZodString>;
EndRoadwayLocation: zod.ZodNullable<zod.ZodObject<{
Description: zod.ZodNullable<zod.ZodString>;
Direction: zod.ZodNullable<zod.ZodString>;
Latitude: zod.ZodNumber;
Longitude: zod.ZodNumber;
MilePost: zod.ZodNumber;
RoadName: zod.ZodNullable<zod.ZodString>;
}, "strip", zod.ZodTypeAny, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}>>;
EndTime: zod.ZodNullable<zod.ZodDate>;
EventCategory: zod.ZodNullable<zod.ZodString>;
EventStatus: zod.ZodNullable<zod.ZodString>;
ExtendedDescription: zod.ZodNullable<zod.ZodString>;
HeadlineDescription: zod.ZodNullable<zod.ZodString>;
LastUpdatedTime: zod.ZodNullable<zod.ZodDate>;
Priority: zod.ZodNullable<zod.ZodString>;
Region: zod.ZodNullable<zod.ZodString>;
StartRoadwayLocation: zod.ZodNullable<zod.ZodObject<{
Description: zod.ZodNullable<zod.ZodString>;
Direction: zod.ZodNullable<zod.ZodString>;
Latitude: zod.ZodNumber;
Longitude: zod.ZodNumber;
MilePost: zod.ZodNumber;
RoadName: zod.ZodNullable<zod.ZodString>;
}, "strip", zod.ZodTypeAny, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}>>;
StartTime: zod.ZodNullable<zod.ZodDate>;
}, "strip", zod.ZodTypeAny, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}>, "many">;
sampleParams: {
StateRoute: string;
StartingMilepost: number;
EndingMilepost: number;
SearchTimeStart: string;
SearchTimeEnd: string;
};
endpointDescription: string;
};
/**
* Fetch function and React Query hook for searching highway alerts by route, region, time range, and milepost
*/
declare const searchAlerts: FetchFactory<{
StateRoute?: string | undefined;
Region?: number | undefined;
SearchTimeStart?: string | undefined;
SearchTimeEnd?: string | undefined;
StartingMilepost?: number | undefined;
EndingMilepost?: number | undefined;
}, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}[]>;
declare const useSearchAlerts: HookFactory<{
StateRoute?: string | undefined;
Region?: number | undefined;
SearchTimeStart?: string | undefined;
SearchTimeEnd?: string | undefined;
StartingMilepost?: number | undefined;
EndingMilepost?: number | undefined;
}, {
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
AlertID: number;
Region: string | null;
County: string | null;
EndTime: Date | null;
EventCategory: string | null;
EventStatus: string | null;
ExtendedDescription: string | null;
HeadlineDescription: string | null;
LastUpdatedTime: Date | null;
Priority: string | null;
StartTime: Date | null;
}[]>;
export { alertByIdMeta, alertsByMapAreaMeta, alertsByRegionIdMeta, alertsMeta, eventCategoriesMeta, fetchAlertById, fetchAlerts, fetchAlertsByMapArea, fetchAlertsByRegionId, fetchEventCategories, fetchMapAreas, mapAreasMeta, searchAlerts, searchAlertsMeta, useAlertById, useAlerts, useAlertsByMapArea, useAlertsByRegionId, useEventCategories, useMapAreas, useSearchAlerts };