UNPKG

ws-dottie

Version:

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

16 lines 774 B
import { z } from "zod"; import { zWsdotDate } from "@/shared/tanstack"; /** * Shared schema for WSDOT API valid date range responses. * * This schema is used by both WSF Fares and WSF Schedule APIs to represent * the date range for which data is currently published and available. * A valid API Access Code from the WSDOT Traveler API must be passed as part of the URL string. */ export const validDateRangeSchema = z.object({ /** Information is available from this date onward. */ DateFrom: zWsdotDate().describe("Information is available from this date onward."), /** Information is not available after this date. */ DateThru: zWsdotDate().describe("Information is not available after this date."), }); //# sourceMappingURL=validDateRange.zod.js.map