ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
24 lines • 1.08 kB
TypeScript
import type { UseQueryResult } from "@tanstack/react-query";
import type { FetchFunctionParams, QueryHookOptions } from "../../types";
import { z } from "../../../shared/zod";
import { type EventCategoriesInput } from "./shared/eventCategories.input";
/**
* Metadata for the fetchEventCategories endpoint
*/
export declare const eventCategoriesMeta: {
functionName: string;
endpoint: string;
inputSchema: z.ZodObject<{}, z.core.$strip>;
outputSchema: z.ZodArray<z.ZodString>;
sampleParams: {};
endpointDescription: string;
};
/**
* Fetch function for retrieving all available event category names for filtering alerts
*/
export declare const fetchEventCategories: (params?: FetchFunctionParams<EventCategoriesInput>) => Promise<string[]>;
/**
* React Query hook for retrieving all available event category names for filtering alerts
*/
export declare const useEventCategories: (params?: FetchFunctionParams<EventCategoriesInput>, options?: QueryHookOptions<string[]>) => UseQueryResult<string[], Error>;
//# sourceMappingURL=eventCategories.d.ts.map