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 7.66 kB
import {d as d$1,c as c$1,b as b$2}from'./chunk-IZZORSYV.mjs';import {b as b$1,a as a$1}from'./chunk-2S6SB7GP.mjs';import {a}from'./chunk-XEHBQAFR.mjs';var n,g,T,c=a(()=>{d$1();n={functionName:"fetchCacheFlushDateFares",endpoint:"/cacheflushdate",inputSchema:b$2,outputSchema:c$1,sampleParams:{},endpointDescription:"Get cache flush timestamp for static fares data."},g={name:"cache-flush-date-fares",cacheStrategy:"STATIC",documentation:{summary:"Cache invalidation timestamp for static WSF fares data.",description:"Returns the UTC datetime when static endpoint data for the wsf-fares API was last updated. Use this endpoint to determine when to invalidate cached fares information.",useCases:["Poll periodically to detect when static fares data has changed.","Invalidate application cache when the returned date changes.","Coordinate cache refresh across multiple static endpoints."],updateFrequency:"daily"},endpoints:[n]},T={cacheFlushDate:n};});var x,S,C,p=a(()=>{b$1();x=a$1.object({TripDate:a$1.string().describe("Trip date in YYYY-MM-DD format. Must be within valid date range."),DepartingTerminalID:a$1.number().describe("Numeric ID of the departing terminal."),ArrivingTerminalID:a$1.number().describe("Numeric ID of the arriving terminal."),RoundTrip:a$1.boolean().describe("True for round trip fares, false for one-way fares.")}).describe("Input parameters for retrieving popular fare line items for a terminal combination."),S=a$1.object({TripDate:a$1.string().describe("Trip date in YYYY-MM-DD format. Must be within valid date range."),DepartingTerminalID:a$1.number().describe("Numeric ID of the departing terminal."),ArrivingTerminalID:a$1.number().describe("Numeric ID of the arriving terminal."),RoundTrip:a$1.boolean().describe("True for round trip fares, false for one-way fares.")}).describe("Input parameters for retrieving all fare line items for a terminal combination."),C=a$1.object({TripDate:a$1.string().describe("Trip date in YYYY-MM-DD format. Must be within valid date range.")}).describe("Input parameters for retrieving fare line items for all terminal combinations.");});var L,o,s=a(()=>{b$1();L=a$1.object({DepartingDescription:a$1.string().nullable().describe("Display name of the departing terminal, or null if unavailable."),ArrivingDescription:a$1.string().nullable().describe("Display name of the arriving terminal, or null if unavailable."),CollectionDescription:a$1.string().nullable().describe("Text description of fare collection procedures for this terminal combination, or null if unavailable.")}).describe("Fare collection description for a terminal combination with terminal names and collection procedures."),o=a$1.object({DepartingTerminalID:a$1.number().describe("Numeric ID of the departing terminal."),DepartingDescription:a$1.string().nullable().describe("Display name of the departing terminal, or null if unavailable."),ArrivingTerminalID:a$1.number().describe("Numeric ID of the arriving terminal."),ArrivingDescription:a$1.string().nullable().describe("Display name of the arriving terminal, or null if unavailable."),CollectionDescription:a$1.string().nullable().describe("Text description of fare collection procedures for this terminal combination, or null if unavailable.")}).describe("Fare collection description for a terminal combination with IDs, names, and collection procedures.");});var l,d,V,f=a(()=>{b$1();s();l=a$1.object({FareLineItemID:a$1.number().describe("Numeric ID of the fare line item."),FareLineItem:a$1.string().nullable().describe("Display name of the fare line item, or null if unavailable."),Category:a$1.string().nullable().describe("Category grouping for the fare (e.g., 'Passenger', 'Vehicle'), or null if unavailable."),DirectionIndependent:a$1.boolean().describe("True if fare amount is the same regardless of departure direction, false if it varies by terminal."),Amount:a$1.number().describe("Fare cost in dollars.")}).describe("Fare line item with identifier, description, category, direction independence, and cost."),d=a$1.object({TerminalComboIndex:a$1.number().describe("Array index of terminal combination in TerminalComboVerbose array."),LineItemIndex:a$1.number().describe("Array index of one-way fare line items in LineItems array."),RoundTripLineItemIndex:a$1.number().describe("Array index of round trip fare line items in RoundTripLineItems array.")}).describe("Cross-reference mapping between terminal combinations and fare line item arrays."),V=a$1.object({TerminalComboVerbose:a$1.array(o).optional().describe("Array of terminal combination information for the trip date."),LineItemLookup:a$1.array(d).optional().describe("Array of cross-reference mappings between terminal combinations and fare line items."),LineItems:a$1.array(a$1.array(l)).optional().describe("Array of one-way fare line item arrays, one per terminal combination."),RoundTripLineItems:a$1.array(a$1.array(l)).optional().describe("Array of round trip fare line item arrays, one per terminal combination.")}).describe("Comprehensive fare line item data for all terminal combinations on a trip date.");});var N,u=a(()=>{b$1();N=a$1.object({TripDate:a$1.string().describe("Trip date in YYYY-MM-DD format. Must be within valid date range."),DepartingTerminalID:a$1.number().describe("Numeric ID of the departing terminal."),ArrivingTerminalID:a$1.number().describe("Numeric ID of the arriving terminal."),RoundTrip:a$1.boolean().describe("True for round trip totals, false for one-way totals."),FareLineItemID:a$1.string().describe("Comma-separated list of fare line item IDs (e.g., '1,2,3')."),Quantity:a$1.string().describe("Comma-separated list of quantities matching FareLineItemID order (e.g., '2,1,0'). Values must be >= 0.")}).describe("Input parameters for calculating fare totals with selected line items and quantities.");});var b,G,h=a(()=>{b$1();b=a$1.union([a$1.literal(1),a$1.literal(2),a$1.literal(3),a$1.literal(4)]).describe("Code indicating total type: 1 = Departing, 2 = Return, 3 = Either (direction independent), 4 = Grand Total."),G=a$1.object({TotalType:b.describe("Code indicating total type: 1 = Departing, 2 = Return, 3 = Either (direction independent), 4 = Grand Total."),Description:a$1.string().nullable().describe("Display name of the fare total (e.g., 'Anacortes to Friday Harbor', 'Grand Total'), or null if unavailable."),BriefDescription:a$1.string().nullable().describe("Short string representation of total type (e.g., 'Depart', 'Either', 'Total'), or null if unavailable."),Amount:a$1.number().describe("Total fare amount in dollars for this total type.")}).describe("Fare total breakdown with type, description, and amount.");});var O,X,I=a(()=>{b$1();O=a$1.object({TripDate:a$1.string().describe("Trip date in YYYY-MM-DD format. Must be within valid date range."),DepartingTerminalID:a$1.number().describe("Numeric ID of the departing terminal."),ArrivingTerminalID:a$1.number().describe("Numeric ID of the arriving terminal.")}).describe("Input parameters for retrieving fare collection description for a terminal combination."),X=a$1.object({TripDate:a$1.string().describe("Trip date in YYYY-MM-DD format. Must be within valid date range.")}).describe("Input parameters for retrieving fare collection descriptions for all terminal combinations.");});var H,D=a(()=>{b$1();H=a$1.object({}).describe("Input parameters for retrieving the validity date range for fares data.");});export{n as a,g as b,T as c,c as d,x as e,S as f,C as g,p as h,L as i,o as j,s as k,l,d as m,V as n,f as o,N as p,u as q,b as r,G as s,h as t,O as u,X as v,I as w,H as x,D as y};//# sourceMappingURL=chunk-OH2IMSNE.mjs.map //# sourceMappingURL=chunk-OH2IMSNE.mjs.map