UNPKG

ws-dottie

Version:

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

100 lines 4.46 kB
/** * @fileoverview WSF Schedule API Output Schemas for Time Adjustments * * This module provides Zod schemas for validating responses from the WSF * Schedule API time adjustment operations. */ import { z } from "../../../../shared/zod"; /** * Schema for TimeAdjustment - represents time adjustment information */ export declare const timeAdjustmentSchema: z.ZodObject<{ ScheduleID: z.ZodNumber; SchedRouteID: z.ZodNumber; RouteID: z.ZodNumber; RouteDescription: z.ZodNullable<z.ZodString>; RouteSortSeq: z.ZodNumber; SailingID: z.ZodNumber; SailingDescription: z.ZodNullable<z.ZodString>; ActiveSailingDateRange: z.ZodNullable<z.ZodObject<{ DateFrom: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>; DateThru: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>; EventID: z.ZodNullable<z.ZodNumber>; EventDescription: z.ZodNullable<z.ZodString>; }, z.core.$strip>>; SailingDir: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>; JourneyID: z.ZodNumber; VesselID: z.ZodNumber; VesselName: z.ZodNullable<z.ZodString>; VesselHandicapAccessible: z.ZodBoolean; VesselPositionNum: z.ZodNumber; JourneyTerminalID: z.ZodNumber; TerminalID: z.ZodNumber; TerminalDescription: z.ZodString; TerminalBriefDescription: z.ZodString; TimeToAdj: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>; AdjDateFrom: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>; AdjDateThru: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>; TidalAdj: z.ZodBoolean; EventID: z.ZodNullable<z.ZodNumber>; EventDescription: z.ZodNullable<z.ZodString>; DepArrIndicator: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>; AdjType: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>; Annotations: z.ZodArray<z.ZodObject<{ AnnotationID: z.ZodNumber; AnnotationText: z.ZodNullable<z.ZodString>; AnnotationIVRText: z.ZodNullable<z.ZodString>; AdjustedCrossingTime: z.ZodNullable<z.ZodNumber>; AnnotationImg: z.ZodNullable<z.ZodString>; TypeDescription: z.ZodNullable<z.ZodString>; SortSeq: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; export type TimeAdjustment = z.infer<typeof timeAdjustmentSchema>; /** * Time Adjustments List Schema - represents an list of time adjustments */ export declare const timeAdjustmentsListSchema: z.ZodArray<z.ZodObject<{ ScheduleID: z.ZodNumber; SchedRouteID: z.ZodNumber; RouteID: z.ZodNumber; RouteDescription: z.ZodNullable<z.ZodString>; RouteSortSeq: z.ZodNumber; SailingID: z.ZodNumber; SailingDescription: z.ZodNullable<z.ZodString>; ActiveSailingDateRange: z.ZodNullable<z.ZodObject<{ DateFrom: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>; DateThru: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>; EventID: z.ZodNullable<z.ZodNumber>; EventDescription: z.ZodNullable<z.ZodString>; }, z.core.$strip>>; SailingDir: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>; JourneyID: z.ZodNumber; VesselID: z.ZodNumber; VesselName: z.ZodNullable<z.ZodString>; VesselHandicapAccessible: z.ZodBoolean; VesselPositionNum: z.ZodNumber; JourneyTerminalID: z.ZodNumber; TerminalID: z.ZodNumber; TerminalDescription: z.ZodString; TerminalBriefDescription: z.ZodString; TimeToAdj: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>; AdjDateFrom: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>; AdjDateThru: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>; TidalAdj: z.ZodBoolean; EventID: z.ZodNullable<z.ZodNumber>; EventDescription: z.ZodNullable<z.ZodString>; DepArrIndicator: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>; AdjType: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>; Annotations: z.ZodArray<z.ZodObject<{ AnnotationID: z.ZodNumber; AnnotationText: z.ZodNullable<z.ZodString>; AnnotationIVRText: z.ZodNullable<z.ZodString>; AdjustedCrossingTime: z.ZodNullable<z.ZodNumber>; AnnotationImg: z.ZodNullable<z.ZodString>; TypeDescription: z.ZodNullable<z.ZodString>; SortSeq: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; export type TimeAdjustmentList = z.infer<typeof timeAdjustmentsListSchema>; //# sourceMappingURL=timeAdjustments.output.d.ts.map