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