UNPKG

ws-dottie

Version:

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

255 lines (243 loc) 9.18 kB
export { a as CacheFlushDateFares, C as CacheFlushDateFaresInput } from '../../cacheFlushDate-BK9e1T2n.js'; export { c as Terminal, d as TerminalList, T as TerminalMatesInput, a as TerminalsInput, V as ValidDateRange, e as terminalListSchema, t as terminalMatesInputSchema, f as terminalSchema, b as terminalsInputSchema, v as validDateRangeSchema } from '../../validDateRange.output-BosEyUNp.js'; export { F as FareLineItemsBasicInput, b as FareLineItemsByTripDateAndTerminalsInput, d as FareLineItemsVerboseInput, p as FareTotal, n as FareTotalType, k as FareTotalsByTripDateAndRouteInput, y as FaresValidDateRangeInput, L as LineItem, i as LineItemVerbose, g as LineItemXref, u as TerminalComboFares, w as TerminalComboFaresVerbose, r as TerminalComboFaresVerboseInput, T as TerminalComboInput, f as fareLineItemsBasicInputSchema, a as fareLineItemsByTripDateAndTerminalsInputSchema, c as fareLineItemsVerboseInputSchema, o as fareTotalSchema, m as fareTotalTypeSchema, j as fareTotalsByTripDateAndRouteInputSchema, x as faresValidDateRangeInputSchema, l as lineItemSchema, h as lineItemVerboseSchema, e as lineItemXrefSchema, s as terminalComboFaresSchema, q as terminalComboFaresVerboseInputSchema, v as terminalComboFaresVerboseSchema, t as terminalComboInputSchema } from '../../validDateRange.input-mH7DTsDz.js'; import { H as HookFactory, F as FetchFactory } from '../../types-D3jt2o5t.js'; import 'zod'; import '@tanstack/react-query'; /** * Fetch function and React Query hook for retrieving cache flush timestamp for static fares data */ declare const fetchCacheFlushDateFares: FetchFactory<{}, Date | undefined>; declare const useCacheFlushDateFares: HookFactory<{}, Date | undefined>; /** * Fetch function and React Query hook for retrieving popular fare line items for a terminal combination */ declare const fetchFareLineItemsBasic: FetchFactory<{ TripDate: string; DepartingTerminalID: number; ArrivingTerminalID: number; RoundTrip: boolean; }, { FareLineItemID: number; FareLineItem: string | null; Category: string | null; DirectionIndependent: boolean; Amount: number; }[]>; declare const useFareLineItemsBasic: HookFactory<{ TripDate: string; DepartingTerminalID: number; ArrivingTerminalID: number; RoundTrip: boolean; }, { FareLineItemID: number; FareLineItem: string | null; Category: string | null; DirectionIndependent: boolean; Amount: number; }[]>; /** * Fetch function and React Query hook for retrieving all fare line items for a specific terminal combination and trip type */ declare const fetchFareLineItemsByTripDateAndTerminals: FetchFactory<{ TripDate: string; DepartingTerminalID: number; ArrivingTerminalID: number; RoundTrip: boolean; }, { FareLineItemID: number; FareLineItem: string | null; Category: string | null; DirectionIndependent: boolean; Amount: number; }[]>; declare const useFareLineItemsByTripDateAndTerminals: HookFactory<{ TripDate: string; DepartingTerminalID: number; ArrivingTerminalID: number; RoundTrip: boolean; }, { FareLineItemID: number; FareLineItem: string | null; Category: string | null; DirectionIndependent: boolean; Amount: number; }[]>; /** * Fetch function and React Query hook for retrieving all fare line items for all terminal combinations on a trip date */ declare const fetchFareLineItemsVerbose: FetchFactory<{ TripDate: string; }, { TerminalComboVerbose?: { DepartingTerminalID: number; ArrivingTerminalID: number; DepartingDescription: string | null; ArrivingDescription: string | null; CollectionDescription: string | null; }[] | undefined; LineItemLookup?: { TerminalComboIndex: number; LineItemIndex: number; RoundTripLineItemIndex: number; }[] | undefined; LineItems?: { FareLineItemID: number; FareLineItem: string | null; Category: string | null; DirectionIndependent: boolean; Amount: number; }[][] | undefined; RoundTripLineItems?: { FareLineItemID: number; FareLineItem: string | null; Category: string | null; DirectionIndependent: boolean; Amount: number; }[][] | undefined; }>; declare const useFareLineItemsVerbose: HookFactory<{ TripDate: string; }, { TerminalComboVerbose?: { DepartingTerminalID: number; ArrivingTerminalID: number; DepartingDescription: string | null; ArrivingDescription: string | null; CollectionDescription: string | null; }[] | undefined; LineItemLookup?: { TerminalComboIndex: number; LineItemIndex: number; RoundTripLineItemIndex: number; }[] | undefined; LineItems?: { FareLineItemID: number; FareLineItem: string | null; Category: string | null; DirectionIndependent: boolean; Amount: number; }[][] | undefined; RoundTripLineItems?: { FareLineItemID: number; FareLineItem: string | null; Category: string | null; DirectionIndependent: boolean; Amount: number; }[][] | undefined; }>; /** * Fetch function and React Query hook for calculating fare totals for a terminal combination with selected line items and quantities */ declare const fetchFareTotalsByTripDateAndRoute: FetchFactory<{ TripDate: string; DepartingTerminalID: number; ArrivingTerminalID: number; RoundTrip: boolean; FareLineItemID: string; Quantity: string; }, { Description: string | null; Amount: number; TotalType: 2 | 1 | 3 | 4; BriefDescription: string | null; }[]>; declare const useFareTotalsByTripDateAndRoute: HookFactory<{ TripDate: string; DepartingTerminalID: number; ArrivingTerminalID: number; RoundTrip: boolean; FareLineItemID: string; Quantity: string; }, { Description: string | null; Amount: number; TotalType: 2 | 1 | 3 | 4; BriefDescription: string | null; }[]>; /** * Fetch function and React Query hook for retrieving fare collection description for a specific terminal combination and trip date */ declare const fetchTerminalComboFares: FetchFactory<{ TripDate: string; DepartingTerminalID: number; ArrivingTerminalID: number; }, { DepartingDescription: string | null; ArrivingDescription: string | null; CollectionDescription: string | null; }>; declare const useTerminalComboFares: HookFactory<{ TripDate: string; DepartingTerminalID: number; ArrivingTerminalID: number; }, { DepartingDescription: string | null; ArrivingDescription: string | null; CollectionDescription: string | null; }>; /** * Fetch function and React Query hook for retrieving fare collection descriptions for all terminal combinations on a trip date */ declare const fetchTerminalComboFaresVerbose: FetchFactory<{ TripDate: string; }, { DepartingTerminalID: number; ArrivingTerminalID: number; DepartingDescription: string | null; ArrivingDescription: string | null; CollectionDescription: string | null; }[]>; declare const useTerminalComboFaresVerbose: HookFactory<{ TripDate: string; }, { DepartingTerminalID: number; ArrivingTerminalID: number; DepartingDescription: string | null; ArrivingDescription: string | null; CollectionDescription: string | null; }[]>; /** * Fetch function and React Query hook for retrieving valid departing terminals for a trip date */ declare const fetchTerminalFares: FetchFactory<{ TripDate: string; }, { Description: string; TerminalID: number; }[]>; declare const useTerminalFares: HookFactory<{ TripDate: string; }, { Description: string; TerminalID: number; }[]>; /** * Fetch function and React Query hook for retrieving arriving terminals for a given departing terminal and trip date */ declare const fetchTerminalMatesFares: FetchFactory<{ TripDate: string; TerminalID: number; }, { Description: string; TerminalID: number; }[]>; declare const useTerminalMatesFares: HookFactory<{ TripDate: string; TerminalID: number; }, { Description: string; TerminalID: number; }[]>; /** * Fetch function and React Query hook for retrieving the validity date range for published fares data */ declare const fetchFaresValidDateRange: FetchFactory<{}, { DateFrom: Date; DateThru: Date; }>; declare const useFaresValidDateRange: HookFactory<{}, { DateFrom: Date; DateThru: Date; }>; export { useFareLineItemsBasic as a, useFareLineItemsByTripDateAndTerminals as b, useFareLineItemsVerbose as c, useFareTotalsByTripDateAndRoute as d, useTerminalComboFares as e, useTerminalComboFaresVerbose as f, fetchCacheFlushDateFares, fetchFareLineItemsBasic, fetchFareLineItemsByTripDateAndTerminals, fetchFareLineItemsVerbose, fetchFareTotalsByTripDateAndRoute, fetchFaresValidDateRange, fetchTerminalComboFares, fetchTerminalComboFaresVerbose, fetchTerminalFares, fetchTerminalMatesFares, useTerminalFares as g, useTerminalMatesFares as h, useFaresValidDateRange as i, useCacheFlushDateFares as u };