UNPKG

ws-dottie

Version:

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

27 lines 1.43 kB
import type { UseQueryResult } from "@tanstack/react-query"; import type { ValidDateRange } from "../../shared/validDateRange.output"; import type { FetchFunctionParams, QueryHookOptions } from "../../types"; import { type ScheduleValidDateRangeInput } from "./shared/validDateRange.input"; /** * Metadata for the fetchScheduleValidDateRange endpoint */ export declare const scheduleValidDateRangeMeta: { functionName: string; endpoint: string; inputSchema: import("zod").ZodObject<{}, import("zod/v4/core").$strip>; outputSchema: import("zod").ZodObject<{ DateFrom: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<Date, string>>; DateThru: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<Date, string>>; }, import("zod/v4/core").$strip>; sampleParams: {}; endpointDescription: string; }; /** * Fetch function for retrieving the valid date range for schedule data */ export declare const fetchScheduleValidDateRange: (params?: FetchFunctionParams<ScheduleValidDateRangeInput>) => Promise<ValidDateRange>; /** * React Query hook for retrieving the valid date range for schedule data */ export declare const useScheduleValidDateRange: (params?: FetchFunctionParams<ScheduleValidDateRangeInput>, options?: QueryHookOptions<ValidDateRange>) => UseQueryResult<ValidDateRange, Error>; //# sourceMappingURL=scheduleValidDateRange.d.ts.map