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 • 10 kB
JavaScript
import {e,g as g$1,f as f$1,c as c$1,j as j$1,l,k as k$1,h as h$2,o,q,p,m,n,t,v as v$1,u as u$1,r,y as y$1,A as A$1,z,w as w$1,D as D$1,F as F$1,E as E$1,B as B$1,a as a$1,b as b$2,d as d$1,i as i$1,s,x as x$1,C as C$1}from'./chunk-EJZZUPVA.mjs';import {j,h as h$1,i,g as g$2}from'./chunk-A5WPP2I5.mjs';import {d,c as c$2}from'./chunk-FKVJZJHV.mjs';import {a,c,b as b$1}from'./chunk-XEHBQAFR.mjs';var u,ge,Xe,Ye,ce=a(()=>{j();h$1();e();g$1();u={functionName:"fetchVesselAccommodationsByVesselId",endpoint:"/vesselAccommodations/{VesselID}",inputSchema:d$1,outputSchema:f$1,sampleParams:{VesselID:65},endpointDescription:"Get amenities and accessibility features for a specific vessel."},ge=i({api:g$2,endpoint:u,getEndpointGroup:()=>(h(),c(f)).vesselAccommodationsGroup}),{fetch:Xe,hook:Ye}=ge;});var f={};b$1(f,{vesselAccommodationsGroup:()=>De});var De,h=a(()=>{le();ce();De={name:"vessel-accommodations",cacheStrategy:"STATIC",documentation:{summary:"Passenger amenities and accessibility features for WSF vessels.",description:"Amenity and accessibility information including ADA compliance, restrooms, food service, elevators, and connectivity. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.",useCases:["Display vessel amenities in passenger information systems.","Plan accessible travel for passengers with disabilities.","Compare vessel features for trip planning."]},endpoints:[V,u]};});var V,Ee,as,is,le=a(()=>{j();h$1();e();g$1();V={functionName:"fetchVesselAccommodations",endpoint:"/vesselAccommodations",inputSchema:c$1,outputSchema:f$1.array(),sampleParams:{},endpointDescription:"List amenities and accessibility features for all vessels."},Ee=i({api:g$2,endpoint:V,getEndpointGroup:()=>(h(),c(f)).vesselAccommodationsGroup}),{fetch:as,hook:is}=Ee;});var y,be,ms,ds,me=a(()=>{j();h$1();j$1();l();y={functionName:"fetchVesselBasicsByVesselId",endpoint:"/vesselBasics/{VesselID}",inputSchema:i$1,outputSchema:k$1,sampleParams:{VesselID:74},endpointDescription:"Get basic information for a specific vessel by ID."},be=i({api:g$2,endpoint:y,getEndpointGroup:()=>(I(),c(v)).vesselBasicsGroup}),{fetch:ms,hook:ds}=be;});var v={};b$1(v,{vesselBasicsGroup:()=>Ge});var Ge,I=a(()=>{de();me();Ge={name:"vessel-basics",cacheStrategy:"STATIC",documentation:{summary:"Essential vessel identification and operational status.",description:"Basic vessel information including names, IDs, classifications, and operational status. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.",useCases:["Display vessel lists and status in passenger information systems.","Track fleet operational status and availability.","Provide foundation data for vessel selection."]},endpoints:[S,y]};});var S,He,Ss,Bs,de=a(()=>{j();h$1();j$1();l();S={functionName:"fetchVesselBasics",endpoint:"/vesselBasics",inputSchema:h$2,outputSchema:k$1.array(),sampleParams:{},endpointDescription:"List basic information for all vessels in the fleet."},He=i({api:g$2,endpoint:S,getEndpointGroup:()=>(I(),c(v)).vesselBasicsGroup}),{fetch:Ss,hook:Bs}=He;});var B,Fe,bs,Gs,ue=a(()=>{j();h$1();o();q();B={functionName:"fetchVesselHistoriesByVesselNameAndDateRange",endpoint:"/vesselHistory/{VesselName}/{DateStart}/{DateEnd}",inputSchema:m,outputSchema:p.array(),sampleParams:{VesselName:"Tacoma",DateStart:"2025-09-01",DateEnd:"2025-10-01"},endpointDescription:"Get historical sailing records for a vessel within a date range."},Fe=i({api:g$2,endpoint:B,getEndpointGroup:()=>(M(),c(A)).vesselHistoriesGroup}),{fetch:bs,hook:Gs}=Fe;});var A={};b$1(A,{vesselHistoriesGroup:()=>Le});var Le,M=a(()=>{fe();ue();Le={name:"vessel-histories",cacheStrategy:"STATIC",documentation:{summary:"Historical sailing records for WSF vessels.",description:"Historical voyage data including departure and arrival terminals, scheduled and actual departure times, and estimated arrival times. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.",useCases:["Analyze on-time performance and voyage patterns.","Track historical vessel movements and routes.","Generate reports on operational history."]},endpoints:[g,B]};});var g,xe,Cs,Ns,fe=a(()=>{j();h$1();o();q();g={functionName:"fetchVesselHistories",endpoint:"/vesselHistory",inputSchema:n,outputSchema:p.array(),sampleParams:{},endpointDescription:"List historical sailing records for all vessels."},xe=i({api:g$2,endpoint:g,getEndpointGroup:()=>(M(),c(A)).vesselHistoriesGroup}),{fetch:Cs,hook:Ns}=xe;});var D,we,Os,zs,he=a(()=>{j();h$1();t();v$1();D={functionName:"fetchVesselLocationsByVesselId",endpoint:"/vesselLocations/{VesselID}",inputSchema:s,outputSchema:u$1,sampleParams:{VesselID:18},endpointDescription:"Get current location and status for a specific vessel by ID."},we=i({api:g$2,endpoint:D,getEndpointGroup:()=>(b(),c(E)).vesselLocationsGroup}),{fetch:Os,hook:zs}=we;});var E={};b$1(E,{vesselLocationsGroup:()=>Pe});var Pe,b=a(()=>{Ve();he();Pe={name:"vessel-locations",cacheStrategy:"REALTIME",documentation:{summary:"Real-time vessel positions and status for WSF fleet.",description:"Current GPS coordinates, speed, heading, terminal assignments, and ETAs. This endpoint is real-time; cacheFlushDate is not used for cache invalidation.",useCases:["Show live vessel positions and ETAs in rider apps.","Monitor fleet operations in internal dashboards.","Calculate arrival times and voyage progress."],updateFrequency:"5s"},endpoints:[G,D]};});var G,ke,_s,$s,Ve=a(()=>{j();h$1();t();v$1();G={functionName:"fetchVesselLocations",endpoint:"/vesselLocations",inputSchema:r,outputSchema:u$1.array(),sampleParams:{},endpointDescription:"List current locations and status for all active vessels."},ke=i({api:g$2,endpoint:G,getEndpointGroup:()=>(b(),c(E)).vesselLocationsGroup}),{fetch:_s,hook:$s}=ke;});var H,Ce,it,nt,ye=a(()=>{j();h$1();y$1();A$1();H={functionName:"fetchVesselStatsByVesselId",endpoint:"/vesselStats/{VesselID}",inputSchema:x$1,outputSchema:z,sampleParams:{VesselID:32},endpointDescription:"Get technical specifications for a specific vessel by ID."},Ce=i({api:g$2,endpoint:H,getEndpointGroup:()=>(L(),c(F)).vesselStatsGroup}),{fetch:it,hook:nt}=Ce;});var F={};b$1(F,{vesselStatsGroup:()=>Ne});var Ne,L=a(()=>{ve();ye();Ne={name:"vessel-stats",cacheStrategy:"STATIC",documentation:{summary:"Technical specifications and capacity data for WSF vessels.",description:"Physical dimensions, engine details, passenger and vehicle capacity, and construction information. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.",useCases:["Compare vessel capabilities and specifications.","Plan capacity and route assignments.","Support maintenance and technical reference."]},endpoints:[x,H]};});var x,Te,ft,ht,ve=a(()=>{j();h$1();y$1();A$1();x={functionName:"fetchVesselStats",endpoint:"/vesselStats",inputSchema:w$1,outputSchema:z.array(),sampleParams:{},endpointDescription:"List technical specifications for all vessels."},Te=i({api:g$2,endpoint:x,getEndpointGroup:()=>(L(),c(F)).vesselStatsGroup}),{fetch:ft,hook:ht}=Te;});var w,qe,Bt,At,Ie=a(()=>{j();h$1();D$1();F$1();w={functionName:"fetchVesselsVerboseByVesselId",endpoint:"/vesselVerbose/{VesselID}",inputSchema:C$1,outputSchema:E$1,sampleParams:{VesselID:68},endpointDescription:"Get complete vessel information for a specific vessel by ID."},qe=i({api:g$2,endpoint:w,getEndpointGroup:()=>(k(),c(P)).vesselVerboseGroup}),{fetch:Bt,hook:At}=qe;});var P={};b$1(P,{vesselVerboseGroup:()=>Re});var Re,k=a(()=>{Se();Ie();Re={name:"vessel-verbose",cacheStrategy:"STATIC",documentation:{summary:"Complete vessel information combining basics, stats, and accommodations.",description:"Comprehensive vessel profiles combining identification, operational status, technical specifications, and amenities in a single response. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.",useCases:["Display complete vessel profiles in passenger information systems.","Reduce API calls by fetching all vessel data at once.","Support comprehensive vessel comparison and selection."]},endpoints:[C,w]};});var C,Ue,Ft,Lt,Se=a(()=>{j();h$1();D$1();F$1();C={functionName:"fetchVesselsVerbose",endpoint:"/vesselVerbose",inputSchema:B$1,outputSchema:E$1.array(),sampleParams:{},endpointDescription:"List complete vessel information for all vessels."},Ue=i({api:g$2,endpoint:C,getEndpointGroup:()=>(k(),c(P)).vesselVerboseGroup}),{fetch:Ft,hook:Lt}=Ue;});var Oe={};b$1(Oe,{cacheFlushDateVesselsGroup:()=>We,cacheFlushDateVesselsMeta:()=>Be});var Be,We,ze=a(()=>{a$1();b$2();Be={functionName:"fetchCacheFlushDateVessels",endpoint:"/cacheflushdate",inputSchema:c$2,outputSchema:d,sampleParams:{},endpointDescription:"Get cache flush timestamp for static wsf-vessels data."},We={name:"cache-flush-date-vessels",cacheStrategy:"STATIC",documentation:{summary:"Cache invalidation timestamp for static wsf-vessels data.",description:"Timestamp indicating when any static endpoint data for the wsf-vessels API was last updated. Use this endpoint to determine when to invalidate cached vessel information. When the returned date changes, refresh cached data from static endpoints.",useCases:["Poll periodically to detect when static vessel data has changed.","Invalidate application cache when timestamp changes.","Coordinate cache refresh across multiple static endpoints."]},endpoints:[Be]};});export{Le as A,M as B,_s as C,$s as D,Ve as E,Os as F,zs as G,he as H,Pe as I,b as J,ft as K,ht as L,ve as M,it as N,nt as O,ye as P,Ne as Q,L as R,Ft as S,Lt as T,Se as U,Bt as V,At as W,Ie as X,Re as Y,k as Z,Be as a,We as b,Oe as c,ze as d,as as e,is as f,le as g,Xe as h,Ye as i,ce as j,De as k,h as l,Ss as m,Bs as n,de as o,ms as p,ds as q,me as r,Ge as s,I as t,Cs as u,Ns as v,fe as w,bs as x,Gs as y,ue as z};//# sourceMappingURL=chunk-KIIDOLVO.mjs.map
//# sourceMappingURL=chunk-KIIDOLVO.mjs.map