ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
162 lines (146 loc) • 7.35 kB
TypeScript
import { z } from 'zod';
/**
* @fileoverview Input schemas for WSF Fares API FareLineItems endpoints
*
* These schemas define the input parameters for WSF Fares API FareLineItems endpoints.
* Note: AccessCode is handled separately and is not included in these schemas.
*/
declare const fareLineItemsBasicInputSchema: z.ZodObject<{
TripDate: z.ZodString;
DepartingTerminalID: z.ZodNumber;
ArrivingTerminalID: z.ZodNumber;
RoundTrip: z.ZodBoolean;
}, z.core.$strip>;
type FareLineItemsBasicInput = z.infer<typeof fareLineItemsBasicInputSchema>;
declare const fareLineItemsByTripDateAndTerminalsInputSchema: z.ZodObject<{
TripDate: z.ZodString;
DepartingTerminalID: z.ZodNumber;
ArrivingTerminalID: z.ZodNumber;
RoundTrip: z.ZodBoolean;
}, z.core.$strip>;
type FareLineItemsByTripDateAndTerminalsInput = z.infer<typeof fareLineItemsByTripDateAndTerminalsInputSchema>;
declare const fareLineItemsVerboseInputSchema: z.ZodObject<{
TripDate: z.ZodString;
}, z.core.$strip>;
type FareLineItemsVerboseInput = z.infer<typeof fareLineItemsVerboseInputSchema>;
/**
* @fileoverview Output schemas for WSF Fares API FareLineItems endpoints
*
* These schemas define the response structures for WSF Fares API FareLineItems endpoints.
*/
declare const lineItemSchema: z.ZodObject<{
FareLineItemID: z.ZodNumber;
FareLineItem: z.ZodNullable<z.ZodString>;
Category: z.ZodNullable<z.ZodString>;
DirectionIndependent: z.ZodBoolean;
Amount: z.ZodNumber;
}, z.core.$strip>;
type LineItem = z.infer<typeof lineItemSchema>;
declare const lineItemXrefSchema: z.ZodObject<{
TerminalComboIndex: z.ZodNumber;
LineItemIndex: z.ZodNumber;
RoundTripLineItemIndex: z.ZodNumber;
}, z.core.$strip>;
type LineItemXref = z.infer<typeof lineItemXrefSchema>;
declare const lineItemVerboseSchema: z.ZodObject<{
TerminalComboVerbose: z.ZodOptional<z.ZodArray<z.ZodObject<{
DepartingTerminalID: z.ZodNumber;
DepartingDescription: z.ZodNullable<z.ZodString>;
ArrivingTerminalID: z.ZodNumber;
ArrivingDescription: z.ZodNullable<z.ZodString>;
CollectionDescription: z.ZodNullable<z.ZodString>;
}, z.core.$strip>>>;
LineItemLookup: z.ZodOptional<z.ZodArray<z.ZodObject<{
TerminalComboIndex: z.ZodNumber;
LineItemIndex: z.ZodNumber;
RoundTripLineItemIndex: z.ZodNumber;
}, z.core.$strip>>>;
LineItems: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
FareLineItemID: z.ZodNumber;
FareLineItem: z.ZodNullable<z.ZodString>;
Category: z.ZodNullable<z.ZodString>;
DirectionIndependent: z.ZodBoolean;
Amount: z.ZodNumber;
}, z.core.$strip>>>>;
RoundTripLineItems: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
FareLineItemID: z.ZodNumber;
FareLineItem: z.ZodNullable<z.ZodString>;
Category: z.ZodNullable<z.ZodString>;
DirectionIndependent: z.ZodBoolean;
Amount: z.ZodNumber;
}, z.core.$strip>>>>;
}, z.core.$strip>;
type LineItemVerbose = z.infer<typeof lineItemVerboseSchema>;
/**
* @fileoverview Input schemas for WSF Fares API FareTotals endpoint
*
* These schemas define the input parameters for WSF Fares API FareTotals endpoint.
* Note: AccessCode is handled separately and is not included in these schemas.
*/
declare const fareTotalsByTripDateAndRouteInputSchema: z.ZodObject<{
TripDate: z.ZodString;
DepartingTerminalID: z.ZodNumber;
ArrivingTerminalID: z.ZodNumber;
RoundTrip: z.ZodBoolean;
FareLineItemID: z.ZodString;
Quantity: z.ZodString;
}, z.core.$strip>;
type FareTotalsByTripDateAndRouteInput = z.infer<typeof fareTotalsByTripDateAndRouteInputSchema>;
/**
* @fileoverview Output schemas for WSF Fares API FareTotals endpoint
*
* These schemas define the response structures for WSF Fares API FareTotals endpoint.
*/
declare const fareTotalTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
type FareTotalType = z.infer<typeof fareTotalTypeSchema>;
declare const fareTotalSchema: z.ZodObject<{
TotalType: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
Description: z.ZodNullable<z.ZodString>;
BriefDescription: z.ZodNullable<z.ZodString>;
Amount: z.ZodNumber;
}, z.core.$strip>;
type FareTotal = z.infer<typeof fareTotalSchema>;
/**
* @fileoverview Input schemas for WSF Fares API TerminalCombo endpoints
*
* These schemas define the input parameters for WSF Fares API TerminalCombo endpoints.
* Note: AccessCode is handled separately and is not included in these schemas.
*/
declare const terminalComboInputSchema: z.ZodObject<{
TripDate: z.ZodString;
DepartingTerminalID: z.ZodNumber;
ArrivingTerminalID: z.ZodNumber;
}, z.core.$strip>;
type TerminalComboInput = z.infer<typeof terminalComboInputSchema>;
declare const terminalComboFaresVerboseInputSchema: z.ZodObject<{
TripDate: z.ZodString;
}, z.core.$strip>;
type TerminalComboFaresVerboseInput = z.infer<typeof terminalComboFaresVerboseInputSchema>;
/**
* @fileoverview Output schemas for WSF Fares API TerminalCombo endpoints
*
* These schemas define the response structures for WSF Fares API TerminalCombo endpoints.
*/
declare const terminalComboFaresSchema: z.ZodObject<{
DepartingDescription: z.ZodNullable<z.ZodString>;
ArrivingDescription: z.ZodNullable<z.ZodString>;
CollectionDescription: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
type TerminalComboFares = z.infer<typeof terminalComboFaresSchema>;
declare const terminalComboFaresVerboseSchema: z.ZodObject<{
DepartingTerminalID: z.ZodNumber;
DepartingDescription: z.ZodNullable<z.ZodString>;
ArrivingTerminalID: z.ZodNumber;
ArrivingDescription: z.ZodNullable<z.ZodString>;
CollectionDescription: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
type TerminalComboFaresVerbose = z.infer<typeof terminalComboFaresVerboseSchema>;
/**
* @fileoverview Input schemas for WSF Fares API ValidDateRange endpoint
*
* These schemas define the input parameters for WSF Fares API ValidDateRange endpoint.
* Note: AccessCode is handled separately and is not included in these schemas.
*/
declare const faresValidDateRangeInputSchema: z.ZodObject<{}, z.core.$strip>;
type FaresValidDateRangeInput = z.infer<typeof faresValidDateRangeInputSchema>;
export { type FareLineItemsBasicInput as F, type LineItem as L, type TerminalComboInput as T, fareLineItemsByTripDateAndTerminalsInputSchema as a, type FareLineItemsByTripDateAndTerminalsInput as b, fareLineItemsVerboseInputSchema as c, type FareLineItemsVerboseInput as d, lineItemXrefSchema as e, fareLineItemsBasicInputSchema as f, type LineItemXref as g, lineItemVerboseSchema as h, type LineItemVerbose as i, fareTotalsByTripDateAndRouteInputSchema as j, type FareTotalsByTripDateAndRouteInput as k, lineItemSchema as l, fareTotalTypeSchema as m, type FareTotalType as n, fareTotalSchema as o, type FareTotal as p, terminalComboFaresVerboseInputSchema as q, type TerminalComboFaresVerboseInput as r, terminalComboFaresSchema as s, terminalComboInputSchema as t, type TerminalComboFares as u, terminalComboFaresVerboseSchema as v, type TerminalComboFaresVerbose as w, faresValidDateRangeInputSchema as x, type FaresValidDateRangeInput as y };