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 • 8.48 kB
JavaScript
import {h as h$1,o,l as l$1,f,n,g as g$1,e,q,t,s,p,w,k,j as j$1,v,i as i$1,u,y as y$1,x}from'./chunk-YKDOUGHG.mjs';import {c as c$1,f as f$1,e as e$1,b as b$3,a as a$3,h as h$2,g as g$2}from'./chunk-G4SB3XZB.mjs';import {a as a$1}from'./chunk-N63MJY3V.mjs';import {j,b as b$1,i,a as a$2}from'./chunk-DOBO2Q4R.mjs';import {d as d$1}from'./chunk-C3URDYFJ.mjs';import {a,c,b as b$2}from'./chunk-XEHBQAFR.mjs';var y,me,ce,Ge,qe,J=a(()=>{j();a$1();b$1();h$1();o();y={functionName:"fetchFareLineItemsByTripDateAndTerminals",endpoint:"/fareLineItems/{TripDate}/{DepartingTerminalID}/{ArrivingTerminalID}/{RoundTrip}",inputSchema:f,outputSchema:l$1.array(),sampleParams:{TripDate:d$1.tomorrow(),DepartingTerminalID:3,ArrivingTerminalID:7,RoundTrip:false},endpointDescription:"List all fare line items for a specific terminal combination and trip type."},{fetch:me,useHook:ce}=i({api:a$2,endpoint:y,getCacheStrategy:()=>(d(),c(l)).fareLineItemsGroup.cacheStrategy}),Ge=me,qe=ce;});var F,le,de,ze,Je,K=a(()=>{j();a$1();b$1();h$1();o();F={functionName:"fetchFareLineItemsVerbose",endpoint:"/fareLineItemsVerbose/{TripDate}",inputSchema:g$1,outputSchema:n,sampleParams:{TripDate:d$1.today()},endpointDescription:"Get all fare line items for all terminal combinations on a trip date."},{fetch:le,useHook:de}=i({api:a$2,endpoint:F,getCacheStrategy:()=>(d(),c(l)).fareLineItemsGroup.cacheStrategy}),ze=le,Je=de;});var l={};b$2(l,{fareLineItemsGroup:()=>ue});var ue,d=a(()=>{O();J();K();ue={name:"fare-line-items",cacheStrategy:"STATIC",documentation:{summary:"Individual fare components for WSF routes by passenger and vehicle types.",description:"Fare line items represent pricing components for different passenger categories, vehicle types, and route combinations. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.",useCases:["Display fare options for different passenger and vehicle types.","Calculate journey costs based on route and demographics.","Build fare selection interfaces for ticket purchasing."],updateFrequency:"daily"},endpoints:[h,F,y]};});var h,fe,ye,at,rt,O=a(()=>{j();a$1();b$1();h$1();o();h={functionName:"fetchFareLineItemsBasic",endpoint:"/fareLineItemsBasic/{TripDate}/{DepartingTerminalID}/{ArrivingTerminalID}/{RoundTrip}",inputSchema:e,outputSchema:l$1.array(),sampleParams:{TripDate:d$1.tomorrow(),DepartingTerminalID:1,ArrivingTerminalID:10,RoundTrip:false},endpointDescription:"List popular fare line items for a terminal combination."},{fetch:fe,useHook:ye}=i({api:a$2,endpoint:h,getCacheStrategy:()=>(d(),c(l)).fareLineItemsGroup.cacheStrategy}),at=fe,rt=ye;});var Y={};b$2(Y,{fareTotalsGroup:()=>Fe});var Fe,Z=a(()=>{X();Fe={name:"fare-totals",cacheStrategy:"STATIC",documentation:{summary:"Calculated fare totals for WSF journeys by selected line items and quantities.",description:"Fare totals combine individual fare line items with quantities to provide complete pricing breakdowns including departing, return, direction-independent, and grand totals. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.",useCases:["Calculate complete journey costs for ticket pricing.","Display fare breakdowns by leg and total amount.","Process payment amounts for ferry trips."],updateFrequency:"daily"},endpoints:[T]};});var T,he,Te,lt,dt,X=a(()=>{j();a$1();b$1();q();t();T={functionName:"fetchFareTotalsByTripDateAndRoute",endpoint:"/fareTotals/{TripDate}/{DepartingTerminalID}/{ArrivingTerminalID}/{RoundTrip}/{FareLineItemID}/{Quantity}",inputSchema:p,outputSchema:s.array(),sampleParams:{TripDate:d$1.today(),DepartingTerminalID:1,ArrivingTerminalID:10,RoundTrip:false,FareLineItemID:"1,2",Quantity:"3,1"},endpointDescription:"Calculate fare totals for a terminal combination with selected line items and quantities."},{fetch:he,useHook:Te}=i({api:a$2,endpoint:T,getCacheStrategy:()=>(Z(),c(Y)).fareTotalsGroup.cacheStrategy}),lt=he,dt=Te;});var I,Ie,De,It,Dt,_=a(()=>{j();a$1();b$1();w();k();I={functionName:"fetchTerminalComboFaresVerbose",endpoint:"/terminalComboVerbose/{TripDate}",inputSchema:v,outputSchema:j$1.array(),sampleParams:{TripDate:d$1.tomorrow()},endpointDescription:"Get fare collection descriptions for all terminal combinations on a trip date."},{fetch:Ie,useHook:De}=i({api:a$2,endpoint:I,getCacheStrategy:()=>(b(),c(D)).terminalComboGroup.cacheStrategy}),It=Ie,Dt=De;});var D={};b$2(D,{terminalComboGroup:()=>be});var be,b=a(()=>{$();_();be={name:"terminal-combo",cacheStrategy:"STATIC",documentation:{summary:"Valid terminal pairings with fare collection procedures for WSF routes.",description:"Terminal combinations define which terminals are connected and describe where and how fares are collected for each route. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.",useCases:["Determine route availability between terminal pairs.","Understand fare collection procedures for specific routes.","Build journey planning interfaces with fare collection details."],updateFrequency:"daily"},endpoints:[g,I]};});var g,ge,Le,Ht,kt,$=a(()=>{j();a$1();b$1();w();k();g={functionName:"fetchTerminalComboFares",endpoint:"/terminalCombo/{TripDate}/{DepartingTerminalID}/{ArrivingTerminalID}",inputSchema:u,outputSchema:i$1,sampleParams:{TripDate:d$1.tomorrow(),DepartingTerminalID:1,ArrivingTerminalID:10},endpointDescription:"Get fare collection description for a specific terminal combination and trip date."},{fetch:ge,useHook:Le}=i({api:a$2,endpoint:g,getCacheStrategy:()=>(b(),c(D)).terminalComboGroup.cacheStrategy}),Ht=ge,kt=Le;});var L,Se,Me,Gt,qt,ee=a(()=>{c$1();f$1();j();a$1();b$1();L={functionName:"fetchTerminalMatesFares",endpoint:"/terminalMates/{TripDate}/{TerminalID}",inputSchema:b$3,outputSchema:e$1,sampleParams:{TripDate:d$1.tomorrow(),TerminalID:1},endpointDescription:"List arriving terminals for a given departing terminal and trip date."},{fetch:Se,useHook:Me}=i({api:a$2,endpoint:L,getCacheStrategy:()=>(M(),c(S)).terminalsGroup.cacheStrategy}),Gt=Se,qt=Me;});var S={};b$2(S,{terminalsGroup:()=>Ce});var Ce,M=a(()=>{te();ee();Ce={name:"terminals",cacheStrategy:"STATIC",documentation:{summary:"WSF terminal facilities serving as departure and arrival points for ferry routes.",description:"Terminals represent port facilities with unique identifiers and names. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.",useCases:["Display terminal options for trip planning interfaces.","Determine valid terminal pairs for route selection.","Build terminal lookup and navigation features."],updateFrequency:"daily"},endpoints:[C,L]};});var C,Ae,Ve,Kt,Ot,te=a(()=>{c$1();f$1();j();a$1();b$1();C={functionName:"fetchTerminalFares",endpoint:"/terminals/{TripDate}",inputSchema:a$3,outputSchema:e$1,sampleParams:{TripDate:d$1.tomorrow()},endpointDescription:"List valid departing terminals for a trip date."},{fetch:Ae,useHook:Ve}=i({api:a$2,endpoint:C,getCacheStrategy:()=>(M(),c(S)).terminalsGroup.cacheStrategy}),Kt=Ae,Ot=Ve;});var re={};b$2(re,{validDateRangeGroup:()=>He});var He,oe=a(()=>{ae();He={name:"valid-date-range",cacheStrategy:"STATIC",documentation:{summary:"Validity period for published WSF fare data.",description:"Returns the start and end dates between which fare information is accurate and available for all ferry routes. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.",useCases:["Determine valid trip dates for fare queries.","Validate trip date inputs before calling other endpoints.","Display available date ranges in booking interfaces."],updateFrequency:"daily"},endpoints:[A]};});var A,ke,Be,ta,aa,ae=a(()=>{h$2();j();b$1();y$1();A={functionName:"fetchFaresValidDateRange",endpoint:"/validdaterange",inputSchema:x,outputSchema:g$2,sampleParams:{},endpointDescription:"Get the validity date range for published fares data."},{fetch:ke,useHook:Be}=i({api:a$2,endpoint:A,getCacheStrategy:()=>(oe(),c(re)).validDateRangeGroup.cacheStrategy}),ta=ke,aa=Be;});export{te as A,Gt as B,qt as C,ee as D,Ce as E,M as F,ta as G,aa as H,ae as I,He as J,oe as K,at as a,rt as b,O as c,Ge as d,qe as e,J as f,ze as g,Je as h,K as i,ue as j,d as k,lt as l,dt as m,X as n,Fe as o,Z as p,Ht as q,kt as r,$ as s,It as t,Dt as u,_ as v,be as w,b as x,Kt as y,Ot as z};//# sourceMappingURL=chunk-PRGSUSTL.mjs.map
//# sourceMappingURL=chunk-PRGSUSTL.mjs.map