UNPKG

ws-dottie

Version:

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

36 lines 1.76 kB
import type { UseQueryResult } from "@tanstack/react-query"; import type { FetchFunctionParams, QueryHookOptions } from "../../types"; import { type TerminalComboInput } from "./shared/terminalCombo.input"; import { type TerminalComboFares } from "./shared/terminalCombo.output"; /** * Metadata for the fetchTerminalComboFares endpoint */ export declare const terminalComboFaresMeta: { functionName: string; endpoint: string; inputSchema: import("zod").ZodObject<{ TripDate: import("zod").ZodString; DepartingTerminalID: import("zod").ZodNumber; ArrivingTerminalID: import("zod").ZodNumber; }, import("zod/v4/core").$strip>; outputSchema: import("zod").ZodObject<{ DepartingDescription: import("zod").ZodNullable<import("zod").ZodString>; ArrivingDescription: import("zod").ZodNullable<import("zod").ZodString>; CollectionDescription: import("zod").ZodNullable<import("zod").ZodString>; }, import("zod/v4/core").$strip>; sampleParams: { TripDate: string; DepartingTerminalID: number; ArrivingTerminalID: number; }; endpointDescription: string; }; /** * Fetch function for retrieving fare collection description for a specific terminal combination and trip date */ export declare const fetchTerminalComboFares: (params?: FetchFunctionParams<TerminalComboInput>) => Promise<TerminalComboFares>; /** * React Query hook for retrieving fare collection description for a specific terminal combination and trip date */ export declare const useTerminalComboFares: (params?: FetchFunctionParams<TerminalComboInput>, options?: QueryHookOptions<TerminalComboFares>) => UseQueryResult<TerminalComboFares, Error>; //# sourceMappingURL=terminalComboFares.d.ts.map