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
TypeScript
import type { UseQueryResult } from "@tanstack/react-query";
import { type ValidDateRange } from "../../shared/validDateRange.output";
import type { FetchFunctionParams, QueryHookOptions } from "../../types";
import { type FaresValidDateRangeInput } from "./shared/validDateRange.input";
/**
* Metadata for the fetchFaresValidDateRange endpoint
*/
export declare const faresValidDateRangeMeta: {
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 validity date range for published fares data
*/
export declare const fetchFaresValidDateRange: (params?: FetchFunctionParams<FaresValidDateRangeInput>) => Promise<ValidDateRange>;
/**
* React Query hook for retrieving the validity date range for published fares data
*/
export declare const useFaresValidDateRange: (params?: FetchFunctionParams<FaresValidDateRangeInput>, options?: QueryHookOptions<ValidDateRange>) => UseQueryResult<ValidDateRange, Error>;
//# sourceMappingURL=faresValidDateRange.d.ts.map