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.33 kB
import type { UseQueryResult } from "@tanstack/react-query"; import type { FetchFunctionParams, QueryHookOptions } from "../../types"; import { type TollTripVersionInput } from "./shared/tollTripVersion.input"; import { type TollTripVersion } from "./shared/tollTripVersion.output"; /** * Metadata for the fetchTollTripVersion endpoint */ export declare const tollTripVersionMeta: { functionName: string; endpoint: string; inputSchema: import("zod").ZodObject<{}, import("zod/v4/core").$strip>; outputSchema: import("zod").ZodObject<{ TimeStamp: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<Date, string>>; Version: import("zod").ZodInt; }, import("zod/v4/core").$strip>; sampleParams: {}; endpointDescription: string; }; /** * Fetch function for retrieving current version and timestamp for toll trip data */ export declare const fetchTollTripVersion: (params?: FetchFunctionParams<TollTripVersionInput>) => Promise<TollTripVersion>; /** * React Query hook for retrieving current version and timestamp for toll trip data */ export declare const useTollTripVersion: (params?: FetchFunctionParams<TollTripVersionInput>, options?: QueryHookOptions<TollTripVersion>) => UseQueryResult<TollTripVersion, Error>; //# sourceMappingURL=tollTripVersion.d.ts.map