UNPKG

ws-dottie

Version:

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

2 lines 11.8 kB
import {d as d$1,g as g$1,a as a$3}from'./chunk-IZZORSYV.mjs';import {b as b$1,a as a$2}from'./chunk-2S6SB7GP.mjs';import {a as a$1}from'./chunk-XEHBQAFR.mjs';var u=a$1(()=>{d$1();});var f=a$1(()=>{d$1();});var k,F,h=a$1(()=>{b$1();k=a$2.object({}).strict().describe("Input parameters for retrieving vessel accommodations for all vessels."),F=a$2.object({VesselID:a$2.number().int().describe("Numeric ID of the vessel.")}).describe("Input parameters for retrieving vessel accommodations for a specific vessel.");});var v,r,a=a$1(()=>{b$1();v=a$2.object({ClassID:a$2.number().int().describe("Numeric ID of the vessel class."),ClassSubjectID:a$2.number().int().describe("Numeric ID of the WSF subject for this vessel class."),ClassName:a$2.string().nullable().describe("Display name of the vessel class."),SortSeq:a$2.number().int().nullable().describe("Display sort order; lower values appear first in lists."),DrawingImg:a$2.string().nullable().describe("URL to detailed vessel class drawing image."),SilhouetteImg:a$2.string().nullable().describe("URL to small silhouette image of vessel class."),PublicDisplayName:a$2.string().nullable().describe("Public-facing display name of the vessel class.")}).describe("Vessel class information grouping similar vessels in the fleet."),r=a$2.object({VesselID:a$2.number().int().describe("Numeric ID of the vessel."),VesselSubjectID:a$2.number().int().describe("Numeric ID of the WSF subject for this vessel."),VesselName:a$2.string().nullable().describe("Display name of the vessel."),VesselAbbrev:a$2.string().nullable().describe("Abbreviation code of the vessel."),Class:v.nullable()}).describe("Base vessel information containing common identification fields shared across all vessel endpoints.");});var o,c=a$1(()=>{b$1();a();o=r.extend({CarDeckRestroom:a$2.boolean().describe("True if ADA-accessible restroom is available on car deck; otherwise false."),CarDeckShelter:a$2.boolean().describe("True if ADA-accessible shelter is available on car deck; otherwise false."),Elevator:a$2.boolean().describe("True if elevator is available for passenger deck access; otherwise false."),ADAAccessible:a$2.boolean().describe("True if vessel meets ADA accessibility standards; otherwise false."),MainCabinGalley:a$2.boolean().describe("True if food service galley is available in main passenger cabin; otherwise false."),MainCabinRestroom:a$2.boolean().describe("True if restroom is available in main passenger cabin; otherwise false."),PublicWifi:a$2.boolean().describe("True if public WiFi is available on vessel; otherwise false."),ADAInfo:a$2.string().nullable().describe("Detailed ADA accessibility information for passengers with disabilities."),AdditionalInfo:a$2.string().nullable().describe("Additional accommodation notes not covered by standard boolean flags.")}).describe("Vessel accommodation information including amenities, accessibility features, and passenger facilities.");});var E,O,g=a$1(()=>{b$1();E=a$2.object({}).strict().describe("Input parameters for retrieving basic vessel information for all vessels."),O=a$2.object({VesselID:a$2.number().int().describe("Numeric ID of the vessel.")}).describe("Input parameters for retrieving basic vessel information for a specific vessel.");});var m,d=a$1(()=>{b$1();a();m=r.extend({Status:a$2.union([a$2.literal(1),a$2.literal(2),a$2.literal(3)]).nullable().describe("Code indicating operational status: 1 = In Service, 2 = Maintenance, 3 = Out of Service."),OwnedByWSF:a$2.boolean().describe("True if vessel is owned by WSF; otherwise false.")}).describe("Basic vessel information including identification, operational status, and ownership.");});var Q,X,y=a$1(()=>{b$1();Q=a$2.object({VesselName:a$2.string().describe("Display name of the vessel."),DateStart:a$2.string().describe("Start date for history query in YYYY-MM-DD format."),DateEnd:a$2.string().describe("End date for history query in YYYY-MM-DD format.")}).describe("Input parameters for retrieving vessel history by vessel name and date range."),X=a$2.object({}).describe("Input parameters for retrieving vessel history for all vessels.");});var ee,I=a$1(()=>{g$1();b$1();ee=a$2.object({VesselId:a$2.number().int().describe("Numeric ID of the vessel."),Vessel:a$2.string().nullable().describe("Display name of the vessel."),Departing:a$2.string().nullable().describe("Display name of the departing terminal."),Arriving:a$2.string().nullable().describe("Display name of the arriving terminal."),ScheduledDepart:a$3().nullable().describe("UTC datetime of scheduled departure from origin terminal."),ActualDepart:a$3().nullable().describe("UTC datetime of actual departure from origin terminal."),EstArrival:a$3().nullable().describe("UTC datetime of estimated arrival at destination terminal."),Date:a$3().nullable().describe("UTC datetime indicating the calendar date when this voyage occurred.")}).describe("Historical vessel voyage record including departure and arrival terminals, scheduled and actual departure times, and estimated arrival times.");});var ie,re,S=a$1(()=>{b$1();ie=a$2.object({}).strict().describe("Input parameters for retrieving real-time vessel locations for all vessels."),re=a$2.object({VesselID:a$2.number().int().describe("Numeric ID of the vessel.")}).describe("Input parameters for retrieving real-time vessel location for a specific vessel.");});var oe,D=a$1(()=>{g$1();b$1();oe=a$2.object({VesselID:a$2.number().int().describe("Numeric ID of the vessel."),VesselName:a$2.string().nullable().describe("Display name of the vessel."),Mmsi:a$2.number().int().nullable().describe("Maritime Mobile Service Identity number for AIS tracking."),DepartingTerminalID:a$2.number().int().describe("Numeric ID of the departing terminal."),DepartingTerminalName:a$2.string().nullable().describe("Display name of the departing terminal."),DepartingTerminalAbbrev:a$2.string().nullable().describe("Abbreviation code of the departing terminal."),ArrivingTerminalID:a$2.number().int().nullable().describe("Numeric ID of the arriving terminal."),ArrivingTerminalName:a$2.string().nullable().describe("Display name of the arriving terminal."),ArrivingTerminalAbbrev:a$2.string().nullable().describe("Abbreviation code of the arriving terminal."),Latitude:a$2.number().describe("Vessel GPS latitude coordinate in decimal degrees."),Longitude:a$2.number().describe("Vessel GPS longitude coordinate in decimal degrees."),Speed:a$2.number().describe("Vessel speed over ground in knots."),Heading:a$2.number().describe("Vessel heading direction in degrees clockwise from north (0-359)."),InService:a$2.boolean().describe("True if vessel is available for passenger operations; otherwise false."),AtDock:a$2.boolean().describe("True if vessel is currently docked at terminal; otherwise false."),LeftDock:a$3().nullable().describe("UTC datetime when vessel last departed from dock."),Eta:a$3().nullable().describe("UTC datetime of estimated arrival at destination terminal."),EtaBasis:a$2.string().nullable().describe("Description of ETA calculation method."),ScheduledDeparture:a$3().nullable().describe("UTC datetime of scheduled departure from origin terminal."),OpRouteAbbrev:a$2.array(a$2.string()).nullable().describe("Array of abbreviated route names currently serviced by vessel."),VesselPositionNum:a$2.number().int().nullable().describe("Vessel position number for route scheduling."),SortSeq:a$2.number().int().describe("Display sort order; lower values appear first in lists."),ManagedBy:a$2.union([a$2.literal(1),a$2.literal(2)]).describe("Code indicating management owner: 1 = WSF, 2 = KCM."),TimeStamp:a$3().describe("UTC datetime when vessel location data was last updated."),VesselWatchShutID:a$2.number().int().describe("Numeric ID indicating VesselWatch shutdown status condition."),VesselWatchShutMsg:a$2.string().nullable().describe("User-facing message for VesselWatch shutdown status."),VesselWatchShutFlag:a$2.string().nullable().describe("Code indicating whether VesselWatch shutdown conditions are active."),VesselWatchStatus:a$2.string().nullable().describe("Code indicating current operational state of VesselWatch tracking system."),VesselWatchMsg:a$2.string().nullable().describe("User-facing message about VesselWatch system status.")}).describe("Real-time vessel location data including GPS coordinates, terminal assignments, speed, heading, and ETA information.");});var de,be,V=a$1(()=>{b$1();de=a$2.object({}).strict().describe("Input parameters for retrieving vessel technical specifications for all vessels."),be=a$2.object({VesselID:a$2.number().int().describe("Numeric ID of the vessel.")}).describe("Input parameters for retrieving vessel technical specifications for a specific vessel.");});var b,p=a$1(()=>{b$1();a();b=r.extend({VesselNameDesc:a$2.string().describe("Cultural and historical context for vessel name origin."),VesselHistory:a$2.string().nullable().describe("Operational history and milestones for the vessel."),Beam:a$2.string().describe("Vessel beam width in feet and inches."),CityBuilt:a$2.string().describe("City where vessel was constructed."),SpeedInKnots:a$2.number().int().nullable().describe("Maximum operational speed in knots."),Draft:a$2.string().describe("Vessel draft depth in feet and inches."),EngineCount:a$2.number().int().nullable().describe("Total number of propulsion engines aboard vessel."),Horsepower:a$2.number().int().nullable().describe("Total engine horsepower output."),Length:a$2.string().describe("Vessel overall length in feet and inches."),MaxPassengerCount:a$2.number().int().nullable().describe("Maximum passenger capacity."),PassengerOnly:a$2.boolean().describe("True if vessel carries only passengers; otherwise false."),FastFerry:a$2.boolean().describe("True if vessel is classified as a fast ferry; otherwise false."),PropulsionInfo:a$2.string().describe("Engine propulsion type and fuel technology."),TallDeckClearance:a$2.number().int().nullable().describe("Tall deck vertical clearance height in inches."),RegDeckSpace:a$2.number().int().nullable().describe("Maximum regular deck vehicle capacity including tall deck spaces."),TallDeckSpace:a$2.number().int().nullable().describe("Tall deck vehicle capacity."),Tonnage:a$2.number().int().nullable().describe("Vessel gross tonnage."),Displacement:a$2.number().int().nullable().describe("Vessel displacement weight in long tons."),YearBuilt:a$2.number().int().nullable().describe("Vessel construction year."),YearRebuilt:a$2.number().int().nullable().describe("Vessel major rebuild year."),VesselDrawingImg:a$2.string().nullable().describe("URL to detailed vessel drawing image."),SolasCertified:a$2.boolean().describe("True if vessel meets SOLAS international safety standards; otherwise false."),MaxPassengerCountForInternational:a$2.number().int().nullable().describe("Maximum passenger capacity for international routes.")}).describe("Vessel technical specifications including dimensions, capacity, speed, propulsion, and build details.");});var ge,ye,x=a$1(()=>{b$1();ge=a$2.object({}).strict().describe("Input parameters for retrieving complete vessel information for all vessels."),ye=a$2.object({VesselID:a$2.number().int().describe("Numeric ID of the vessel.")}).describe("Input parameters for retrieving complete vessel information for a specific vessel.");});var xe,A=a$1(()=>{c();d();p();xe=m.and(o).and(b).describe("Complete vessel information combining identification, operational status, accommodations, and technical specifications in a single schema.");});export{p as A,ge as B,ye as C,x as D,xe as E,A as F,u as a,f as b,k as c,F as d,h as e,o as f,c as g,E as h,O as i,g as j,m as k,d as l,Q as m,X as n,y as o,ee as p,I as q,ie as r,re as s,S as t,oe as u,D as v,de as w,be as x,V as y,b as z};//# sourceMappingURL=chunk-VRNUPCCT.mjs.map //# sourceMappingURL=chunk-VRNUPCCT.mjs.map