ws-dottie
Version:
Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration
341 lines (335 loc) • 11.7 kB
text/typescript
import { z } from 'zod';
export { R as RoadwayLocation } from '../../roadwayLocationSchema-ByZokQ0d.mjs';
declare const commercialVehicleRestrictionsInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
type CommercialVehicleRestrictionsInput = z.infer<typeof commercialVehicleRestrictionsInputSchema>;
declare const cvRestrictionSchema: z.ZodObject<{
BLMaxAxle: z.ZodNullable<z.ZodNumber>;
BridgeName: z.ZodNullable<z.ZodString>;
BridgeNumber: z.ZodNullable<z.ZodString>;
CL8MaxAxle: z.ZodNullable<z.ZodNumber>;
DateEffective: z.ZodDate;
DateExpires: z.ZodDate;
DatePosted: z.ZodDate;
EndRoadwayLocation: z.ZodNullable<z.ZodObject<{
Description: z.ZodNullable<z.ZodString>;
Direction: z.ZodNullable<z.ZodString>;
Latitude: z.ZodNumber;
Longitude: z.ZodNumber;
MilePost: z.ZodNumber;
RoadName: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}>>;
IsDetourAvailable: z.ZodBoolean;
IsExceptionsAllowed: z.ZodBoolean;
IsPermanentRestriction: z.ZodBoolean;
IsWarning: z.ZodBoolean;
Latitude: z.ZodNumber;
LocationDescription: z.ZodNullable<z.ZodString>;
LocationName: z.ZodNullable<z.ZodString>;
Longitude: z.ZodNumber;
MaximumGrossVehicleWeightInPounds: z.ZodNullable<z.ZodNumber>;
RestrictionComment: z.ZodNullable<z.ZodString>;
RestrictionHeightInInches: z.ZodNullable<z.ZodNumber>;
RestrictionLengthInInches: z.ZodNullable<z.ZodNumber>;
RestrictionType: z.ZodNumber;
RestrictionWeightInPounds: z.ZodNullable<z.ZodNumber>;
RestrictionWidthInInches: z.ZodNullable<z.ZodNumber>;
SAMaxAxle: z.ZodNullable<z.ZodNumber>;
StartRoadwayLocation: z.ZodNullable<z.ZodObject<{
Description: z.ZodNullable<z.ZodString>;
Direction: z.ZodNullable<z.ZodString>;
Latitude: z.ZodNumber;
Longitude: z.ZodNumber;
MilePost: z.ZodNumber;
RoadName: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}>>;
State: z.ZodNullable<z.ZodString>;
StateRouteID: z.ZodNullable<z.ZodString>;
TDMaxAxle: z.ZodNullable<z.ZodNumber>;
VehicleType: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
Latitude: number;
Longitude: number;
BridgeNumber: string | null;
StateRouteID: string | null;
BLMaxAxle: number | null;
BridgeName: string | null;
CL8MaxAxle: number | null;
DateEffective: Date;
DateExpires: Date;
DatePosted: Date;
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
IsDetourAvailable: boolean;
IsExceptionsAllowed: boolean;
IsPermanentRestriction: boolean;
IsWarning: boolean;
LocationDescription: string | null;
LocationName: string | null;
MaximumGrossVehicleWeightInPounds: number | null;
RestrictionComment: string | null;
RestrictionHeightInInches: number | null;
RestrictionLengthInInches: number | null;
RestrictionType: number;
RestrictionWeightInPounds: number | null;
RestrictionWidthInInches: number | null;
SAMaxAxle: number | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
State: string | null;
TDMaxAxle: number | null;
VehicleType: string | null;
}, {
Latitude: number;
Longitude: number;
BridgeNumber: string | null;
StateRouteID: string | null;
BLMaxAxle: number | null;
BridgeName: string | null;
CL8MaxAxle: number | null;
DateEffective: Date;
DateExpires: Date;
DatePosted: Date;
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
IsDetourAvailable: boolean;
IsExceptionsAllowed: boolean;
IsPermanentRestriction: boolean;
IsWarning: boolean;
LocationDescription: string | null;
LocationName: string | null;
MaximumGrossVehicleWeightInPounds: number | null;
RestrictionComment: string | null;
RestrictionHeightInInches: number | null;
RestrictionLengthInInches: number | null;
RestrictionType: number;
RestrictionWeightInPounds: number | null;
RestrictionWidthInInches: number | null;
SAMaxAxle: number | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
State: string | null;
TDMaxAxle: number | null;
VehicleType: string | null;
}>;
type CVRestriction = z.infer<typeof cvRestrictionSchema>;
declare const commercialVehicleRestrictionsWithIdInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
type CommercialVehicleRestrictionsWithIdInput = z.infer<typeof commercialVehicleRestrictionsWithIdInputSchema>;
declare const cvRestrictionWithIdSchema: z.ZodObject<{
BLMaxAxle: z.ZodNullable<z.ZodNumber>;
BridgeName: z.ZodNullable<z.ZodString>;
BridgeNumber: z.ZodNullable<z.ZodString>;
CL8MaxAxle: z.ZodNullable<z.ZodNumber>;
DateEffective: z.ZodDate;
DateExpires: z.ZodDate;
DatePosted: z.ZodDate;
EndRoadwayLocation: z.ZodNullable<z.ZodObject<{
Description: z.ZodNullable<z.ZodString>;
Direction: z.ZodNullable<z.ZodString>;
Latitude: z.ZodNumber;
Longitude: z.ZodNumber;
MilePost: z.ZodNumber;
RoadName: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}>>;
IsDetourAvailable: z.ZodBoolean;
IsExceptionsAllowed: z.ZodBoolean;
IsPermanentRestriction: z.ZodBoolean;
IsWarning: z.ZodBoolean;
Latitude: z.ZodNumber;
LocationDescription: z.ZodNullable<z.ZodString>;
LocationName: z.ZodNullable<z.ZodString>;
Longitude: z.ZodNumber;
MaximumGrossVehicleWeightInPounds: z.ZodNullable<z.ZodNumber>;
RestrictionComment: z.ZodNullable<z.ZodString>;
RestrictionHeightInInches: z.ZodNullable<z.ZodNumber>;
RestrictionLengthInInches: z.ZodNullable<z.ZodNumber>;
RestrictionType: z.ZodNumber;
RestrictionWeightInPounds: z.ZodNullable<z.ZodNumber>;
RestrictionWidthInInches: z.ZodNullable<z.ZodNumber>;
SAMaxAxle: z.ZodNullable<z.ZodNumber>;
StartRoadwayLocation: z.ZodNullable<z.ZodObject<{
Description: z.ZodNullable<z.ZodString>;
Direction: z.ZodNullable<z.ZodString>;
Latitude: z.ZodNumber;
Longitude: z.ZodNumber;
MilePost: z.ZodNumber;
RoadName: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}, {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
}>>;
State: z.ZodNullable<z.ZodString>;
StateRouteID: z.ZodNullable<z.ZodString>;
TDMaxAxle: z.ZodNullable<z.ZodNumber>;
VehicleType: z.ZodNullable<z.ZodString>;
} & {
UniqueID: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
Latitude: number;
Longitude: number;
BridgeNumber: string | null;
StateRouteID: string | null;
BLMaxAxle: number | null;
BridgeName: string | null;
CL8MaxAxle: number | null;
DateEffective: Date;
DateExpires: Date;
DatePosted: Date;
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
IsDetourAvailable: boolean;
IsExceptionsAllowed: boolean;
IsPermanentRestriction: boolean;
IsWarning: boolean;
LocationDescription: string | null;
LocationName: string | null;
MaximumGrossVehicleWeightInPounds: number | null;
RestrictionComment: string | null;
RestrictionHeightInInches: number | null;
RestrictionLengthInInches: number | null;
RestrictionType: number;
RestrictionWeightInPounds: number | null;
RestrictionWidthInInches: number | null;
SAMaxAxle: number | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
State: string | null;
TDMaxAxle: number | null;
VehicleType: string | null;
UniqueID: string | null;
}, {
Latitude: number;
Longitude: number;
BridgeNumber: string | null;
StateRouteID: string | null;
BLMaxAxle: number | null;
BridgeName: string | null;
CL8MaxAxle: number | null;
DateEffective: Date;
DateExpires: Date;
DatePosted: Date;
EndRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
IsDetourAvailable: boolean;
IsExceptionsAllowed: boolean;
IsPermanentRestriction: boolean;
IsWarning: boolean;
LocationDescription: string | null;
LocationName: string | null;
MaximumGrossVehicleWeightInPounds: number | null;
RestrictionComment: string | null;
RestrictionHeightInInches: number | null;
RestrictionLengthInInches: number | null;
RestrictionType: number;
RestrictionWeightInPounds: number | null;
RestrictionWidthInInches: number | null;
SAMaxAxle: number | null;
StartRoadwayLocation: {
Description: string | null;
Direction: string | null;
Latitude: number;
Longitude: number;
MilePost: number;
RoadName: string | null;
} | null;
State: string | null;
TDMaxAxle: number | null;
VehicleType: string | null;
UniqueID: string | null;
}>;
type CVRestrictionWithId = z.infer<typeof cvRestrictionWithIdSchema>;
export { type CVRestriction, type CVRestrictionWithId, type CommercialVehicleRestrictionsInput, type CommercialVehicleRestrictionsWithIdInput, commercialVehicleRestrictionsInputSchema, commercialVehicleRestrictionsWithIdInputSchema, cvRestrictionSchema, cvRestrictionWithIdSchema };