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 • 12.5 kB
JavaScript
import {e,i,f as f$2,c as c$1,l,q as q$1,n,j as j$1,t,y as y$1,v as v$1,r,B as B$1,H as H$1,E as E$1,z,K,P as P$1,M as M$1,I as I$1,S as S$1,Z,X,Q,aa,W as W$1,U as U$1,_,a as a$1,b as b$2,d,k as k$1,s,A as A$1,J,R,$}from'./chunk-K4TKRIUL.mjs';import {j,f as f$1,i as i$1,e as e$1}from'./chunk-HXWMJYCD.mjs';import {b as b$3,a as a$2}from'./chunk-OYWJ7UB2.mjs';import {a,c,b as b$1}from'./chunk-XEHBQAFR.mjs';var T,Ve,pt,lt,Ie=a(()=>{j();f$1();e();i();T={functionName:"fetchTerminalBasicsByTerminalId",endpoint:"/terminalBasics/{TerminalID}",inputSchema:d,outputSchema:f$2,sampleParams:{TerminalID:1},endpointDescription:"Get basic information for a specific terminal by ID."},Ve=i$1({api:e$1,endpoint:T,getEndpointGroup:()=>(h(),c(f)).terminalBasicsGroup}),{fetch:pt,hook:lt}=Ve;});var f={};b$1(f,{terminalBasicsGroup:()=>Pe});var Pe,h=a(()=>{Se();Ie();Pe={name:"terminal-basics",cacheStrategy:"STATIC",documentation:{summary:"Essential terminal details including identification, amenities, and regional assignments.",description:"Basic terminal information for Washington State Ferry terminals including IDs, names, abbreviations, amenities (overhead passenger loading, elevator, waiting room, food service, restrooms), and sort order. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.",useCases:["Display terminal lists with basic identification and amenities.","Plan ferry trips with accessibility and facility information.","Filter terminals by region or amenities."]},endpoints:[y,T]};});var y,Ce,It,St,Se=a(()=>{j();f$1();e();i();y={functionName:"fetchTerminalBasics",endpoint:"/terminalBasics",inputSchema:c$1,outputSchema:f$2.array(),sampleParams:{},endpointDescription:"List basic information for all terminals."},Ce=i$1({api:e$1,endpoint:y,getEndpointGroup:()=>(h(),c(f)).terminalBasicsGroup}),{fetch:It,hook:St}=Ce;});var I,qe,Dt,Et,Be=a(()=>{j();f$1();l();q$1();I={functionName:"fetchTerminalBulletinsByTerminalId",endpoint:"/terminalBulletins/{TerminalID}",inputSchema:k$1,outputSchema:n,sampleParams:{TerminalID:3},endpointDescription:"Get bulletins and alerts for a specific terminal by ID."},qe=i$1({api:e$1,endpoint:I,getEndpointGroup:()=>(B(),c(S)).terminalBulletinsGroup}),{fetch:Dt,hook:Et}=qe;});var S={};b$1(S,{terminalBulletinsGroup:()=>He});var He,B=a(()=>{ge();Be();He={name:"terminal-bulletins",cacheStrategy:"STATIC",documentation:{summary:"Service alerts and notifications for ferry terminals.",description:"Important notices and alerts associated with Washington State Ferry terminals including service updates, travel advisories, and critical announcements. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.",useCases:["Display terminal alerts and service notices in rider apps.","Show travel advisories and critical announcements.","Monitor terminal-specific and system-wide notifications."]},endpoints:[g,I]};});var g,Ne,xt,Vt,ge=a(()=>{j();f$1();l();q$1();g={functionName:"fetchTerminalBulletins",endpoint:"/terminalBulletins",inputSchema:j$1,outputSchema:n.array(),sampleParams:{},endpointDescription:"List bulletins and alerts for all terminals."},Ne=i$1({api:e$1,endpoint:g,getEndpointGroup:()=>(B(),c(S)).terminalBulletinsGroup}),{fetch:xt,hook:Vt}=Ne;});var M,Ue,Ut,Ot,Me=a(()=>{j();f$1();t();y$1();M={functionName:"fetchTerminalLocationsByTerminalId",endpoint:"/terminalLocations/{TerminalID}",inputSchema:s,outputSchema:v$1,sampleParams:{TerminalID:5},endpointDescription:"Get location information for a specific terminal by ID."},Ue=i$1({api:e$1,endpoint:M,getEndpointGroup:()=>(G(),c(b)).terminalLocationsGroup}),{fetch:Ut,hook:Ot}=Ue;});var b={};b$1(b,{terminalLocationsGroup:()=>Oe});var Oe,G=a(()=>{be();Me();Oe={name:"terminal-locations",cacheStrategy:"STATIC",documentation:{summary:"Geographical location data for ferry terminals.",description:"Location information for Washington State Ferry terminals including coordinates, addresses, map links, driving directions, and GIS zoom-level coordinates. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.",useCases:["Display terminal locations on maps and navigation systems.","Provide driving directions and address information.","Integrate with GIS mapping applications."]},endpoints:[D,M]};});var D,Re,Yt,Zt,be=a(()=>{j();f$1();t();y$1();D={functionName:"fetchTerminalLocations",endpoint:"/terminalLocations",inputSchema:r,outputSchema:v$1.array(),sampleParams:{},endpointDescription:"List location information for all terminals."},Re=i$1({api:e$1,endpoint:D,getEndpointGroup:()=>(G(),c(b)).terminalLocationsGroup}),{fetch:Yt,hook:Zt}=Re;});var E,ze,ai,ni,Ge=a(()=>{j();f$1();B$1();H$1();E={functionName:"fetchTerminalSailingSpaceByTerminalId",endpoint:"/terminalSailingSpace/{TerminalID}",inputSchema:A$1,outputSchema:E$1,sampleParams:{TerminalID:7},endpointDescription:"Get sailing space availability for a specific terminal by ID."},ze=i$1({api:e$1,endpoint:E,getEndpointGroup:()=>(w(),c(v)).terminalSailingSpaceGroup}),{fetch:ai,hook:ni}=ze;});var v={};b$1(v,{terminalSailingSpaceGroup:()=>Qe});var Qe,w=a(()=>{De();Ge();Qe={name:"terminal-sailing-space",cacheStrategy:"STATIC",documentation:{summary:"Real-time sailing space availability for upcoming departures.",description:"Terminal condition data including drive-up and reservation spaces available for select departures, vessel information, and cancellation status. Data changes frequently (potentially every 5 seconds). Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group. Do not cache results for extended periods.",useCases:["Display real-time space availability for upcoming sailings.","Show drive-up and reservation space counts with color indicators.","Monitor vessel assignments and departure cancellations."]},endpoints:[F,E]};});var F,je,di,ui,De=a(()=>{j();f$1();B$1();H$1();F={functionName:"fetchTerminalSailingSpace",endpoint:"/terminalSailingSpace",inputSchema:z,outputSchema:E$1.array(),sampleParams:{},endpointDescription:"List sailing space availability for all terminals."},je=i$1({api:e$1,endpoint:F,getEndpointGroup:()=>(w(),c(v)).terminalSailingSpaceGroup}),{fetch:di,hook:ui}=je;});var A,Je,Si,Bi,Ee=a(()=>{j();f$1();K();P$1();A={functionName:"fetchTerminalTransportsByTerminalId",endpoint:"/terminalTransports/{TerminalID}",inputSchema:J,outputSchema:M$1,sampleParams:{TerminalID:10},endpointDescription:"Get transportation information for a specific terminal by ID."},Je=i$1({api:e$1,endpoint:A,getEndpointGroup:()=>(W(),c(L)).terminalTransportsGroup}),{fetch:Si,hook:Bi}=Je;});var L={};b$1(L,{terminalTransportsGroup:()=>Ke});var Ke,W=a(()=>{ve();Ee();Ke={name:"terminal-transports",cacheStrategy:"STATIC",documentation:{summary:"Transportation options and parking information for terminals.",description:"Commuter information for Washington State Ferry terminals including parking details, vehicle-specific tips (motorcycle, truck, bike), airport information, transit links, and HOV/carpool information. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.",useCases:["Display parking information and rates for terminal planning.","Provide vehicle-specific tips for motorcycles, trucks, and bicycles.","Show transit links and airport connection information."]},endpoints:[k,A]};});var k,Xe,wi,Fi,ve=a(()=>{j();f$1();K();P$1();k={functionName:"fetchTerminalTransports",endpoint:"/terminalTransports",inputSchema:I$1,outputSchema:M$1.array(),sampleParams:{},endpointDescription:"List transportation information for all terminals."},Xe=i$1({api:e$1,endpoint:k,getEndpointGroup:()=>(W(),c(L)).terminalTransportsGroup}),{fetch:wi,hook:Fi}=Xe;});var x,Ye,Vi,Pi,we=a(()=>{j();f$1();S$1();Z();x={functionName:"fetchTerminalVerboseByTerminalId",endpoint:"/terminalVerbose/{TerminalID}",inputSchema:R,outputSchema:X,sampleParams:{TerminalID:4},endpointDescription:"Get comprehensive information for a specific terminal by ID."},Ye=i$1({api:e$1,endpoint:x,getEndpointGroup:()=>(P(),c(V)).terminalVerboseGroup}),{fetch:Vi,hook:Pi}=Ye;});var V={};b$1(V,{terminalVerboseGroup:()=>Ze});var Ze,P=a(()=>{Fe();we();Ze={name:"terminal-verbose",cacheStrategy:"STATIC",documentation:{summary:"Comprehensive terminal information combining all terminal data types.",description:"Complete terminal information combining data from terminalBasics, terminalBulletins, terminalLocations, terminalTransports, and terminalWaitTimes endpoints. Includes identification, amenities, bulletins, locations, transportation info, sailing space, wait times, and additional details. Use when you need to reduce API calls and don't mind larger payloads. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.",useCases:["Retrieve all terminal information in a single API call.","Reduce application chattiness when comprehensive data is needed.","Build integrated terminal information displays."]},endpoints:[C,x]};});var C,_e,zi,Qi,Fe=a(()=>{j();f$1();S$1();Z();C={functionName:"fetchTerminalVerbose",endpoint:"/terminalVerbose",inputSchema:Q,outputSchema:X.array(),sampleParams:{},endpointDescription:"List comprehensive information for all terminals."},_e=i$1({api:e$1,endpoint:C,getEndpointGroup:()=>(P(),c(V)).terminalVerboseGroup}),{fetch:zi,hook:Qi}=_e;});var q,$e,Zi,_i,Ae=a(()=>{j();f$1();aa();W$1();q={functionName:"fetchTerminalWaitTimesByTerminalId",endpoint:"/terminalWaitTimes/{TerminalID}",inputSchema:$,outputSchema:U$1,sampleParams:{TerminalID:11},endpointDescription:"Get wait time information for a specific terminal by ID."},$e=i$1({api:e$1,endpoint:q,getEndpointGroup:()=>(N(),c(H)).terminalWaitTimesGroup}),{fetch:Zi,hook:_i}=$e;});var H={};b$1(H,{terminalWaitTimesGroup:()=>et});var et,N=a(()=>{Le();Ae();et={name:"terminal-wait-times",cacheStrategy:"STATIC",documentation:{summary:"Wait time conditions and travel tips for vehicles and passengers.",description:"Current wait conditions and travel recommendations for both vehicles and walk-on passengers at Washington State Ferry terminals including wait time notes, IVR notes, route information, and update dates. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.",useCases:["Display wait time information and arrival recommendations.","Provide travel tips for optimal departure timing.","Show route-specific wait time conditions."]},endpoints:[U,q]};});var U,tt,oa,ma,Le=a(()=>{j();f$1();aa();W$1();U={functionName:"fetchTerminalWaitTimes",endpoint:"/terminalWaitTimes",inputSchema:_,outputSchema:U$1.array(),sampleParams:{},endpointDescription:"List wait time information for all terminals."},tt=i$1({api:e$1,endpoint:U,getEndpointGroup:()=>(N(),c(H)).terminalWaitTimesGroup}),{fetch:oa,hook:ma}=tt;});var at={};b$1(at,{cacheFlushDateTerminalsGroup:()=>it,cacheFlushDateTerminalsMeta:()=>We});var We,it,nt=a(()=>{a$1();b$2();We={functionName:"fetchCacheFlushDateTerminals",endpoint:"/cacheflushdate",inputSchema:a$2,outputSchema:b$3,sampleParams:{},endpointDescription:"Get cache flush timestamp for static terminals data."},it={name:"cache-flush-date-terminals",cacheStrategy:"STATIC",documentation:{summary:"Cache invalidation timestamp for static wsf-terminals data.",description:"Timestamp indicating when static endpoint data for the wsf-terminals API was last updated. Use this endpoint to determine when to invalidate cached terminal information. When the returned date changes, refresh your cached data. Polled automatically by ws-dottie useQuery hooks.",useCases:["Detect when static terminal data has changed and invalidate caches.","Poll periodically to refresh cached terminal information.","Coordinate cache invalidation across multiple terminal endpoints."]},endpoints:[We]};});export{ma as $,Oe as A,G as B,di as C,ui as D,De as E,ai as F,ni as G,Ge as H,Qe as I,w as J,wi as K,Fi as L,ve as M,Si as N,Bi as O,Ee as P,Ke as Q,W as R,zi as S,Qi as T,Fe as U,Vi as V,Pi as W,we as X,Ze as Y,P as Z,oa as _,We as a,Le as aa,it as b,Zi as ba,at as c,_i as ca,nt as d,Ae as da,It as e,et as ea,St as f,N as fa,Se as g,pt as h,lt as i,Ie as j,Pe as k,h as l,xt as m,Vt as n,ge as o,Dt as p,Et as q,Be as r,He as s,B as t,Yt as u,Zt as v,be as w,Ut as x,Ot as y,Me as z};//# sourceMappingURL=chunk-ATYRKWMM.mjs.map
//# sourceMappingURL=chunk-ATYRKWMM.mjs.map