UNPKG

ws-dottie

Version:

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

33 lines 1.49 kB
import type { UseQueryResult } from "@tanstack/react-query"; import type { TerminalMatesInput } from "../../shared/terminals.input"; import type { TerminalList } from "../../shared/terminals.output"; import type { FetchFunctionParams, QueryHookOptions } from "../../types"; /** * Metadata for the fetchTerminalMatesSchedule endpoint */ export declare const terminalMatesScheduleMeta: { functionName: string; endpoint: string; inputSchema: import("zod").ZodObject<{ TripDate: import("zod").ZodString; TerminalID: import("zod").ZodNumber; }, import("zod/v4/core").$strip>; outputSchema: import("zod").ZodArray<import("zod").ZodObject<{ TerminalID: import("zod").ZodNumber; Description: import("zod").ZodString; }, import("zod/v4/core").$strip>>; sampleParams: { TripDate: string; TerminalID: number; }; endpointDescription: string; }; /** * Fetch function for retrieving valid arriving terminals for a departing terminal and trip date */ export declare const fetchTerminalMatesSchedule: (params?: FetchFunctionParams<TerminalMatesInput>) => Promise<TerminalList>; /** * React Query hook for retrieving valid arriving terminals for a departing terminal and trip date */ export declare const useTerminalMatesSchedule: (params?: FetchFunctionParams<TerminalMatesInput>, options?: QueryHookOptions<TerminalList>) => UseQueryResult<TerminalList, Error>; //# sourceMappingURL=terminalMatesSchedule.d.ts.map