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.71 kB
import {c,b as b$2,a as a$1}from'./chunk-OYWJ7UB2.mjs';import {b as b$3,a as a$2}from'./chunk-Y7ZPKVJH.mjs';import {b as b$1,a}from'./chunk-XEHBQAFR.mjs';var d={};b$1(d,{cacheFlushDateFaresGroup:()=>p,cacheFlushDateFaresMeta:()=>n});var n,p,f=a(()=>{c();n={functionName:"fetchCacheFlushDateFares",endpoint:"/cacheflushdate",inputSchema:a$1,outputSchema:b$2,sampleParams:{},endpointDescription:"Get cache flush timestamp for static fares data."},p={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]};});var x,S,C,b=a(()=>{b$3();x=a$2.object({TripDate:a$2.string().describe("Trip date in YYYY-MM-DD format. Must be within valid date range."),DepartingTerminalID:a$2.number().describe("Numeric ID of the departing terminal."),ArrivingTerminalID:a$2.number().describe("Numeric ID of the arriving terminal."),RoundTrip:a$2.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$2.object({TripDate:a$2.string().describe("Trip date in YYYY-MM-DD format. Must be within valid date range."),DepartingTerminalID:a$2.number().describe("Numeric ID of the departing terminal."),ArrivingTerminalID:a$2.number().describe("Numeric ID of the arriving terminal."),RoundTrip:a$2.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$2.object({TripDate:a$2.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$3();L=a$2.object({DepartingDescription:a$2.string().nullable().describe("Display name of the departing terminal, or null if unavailable."),ArrivingDescription:a$2.string().nullable().describe("Display name of the arriving terminal, or null if unavailable."),CollectionDescription:a$2.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$2.object({DepartingTerminalID:a$2.number().describe("Numeric ID of the departing terminal."),DepartingDescription:a$2.string().nullable().describe("Display name of the departing terminal, or null if unavailable."),ArrivingTerminalID:a$2.number().describe("Numeric ID of the arriving terminal."),ArrivingDescription:a$2.string().nullable().describe("Display name of the arriving terminal, or null if unavailable."),CollectionDescription:a$2.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,u,V,h=a(()=>{b$3();s();l=a$2.object({FareLineItemID:a$2.number().describe("Numeric ID of the fare line item."),FareLineItem:a$2.string().nullable().describe("Display name of the fare line item, or null if unavailable."),Category:a$2.string().nullable().describe("Category grouping for the fare (e.g., 'Passenger', 'Vehicle'), or null if unavailable."),DirectionIndependent:a$2.boolean().describe("True if fare amount is the same regardless of departure direction, false if it varies by terminal."),Amount:a$2.number().describe("Fare cost in dollars.")}).describe("Fare line item with identifier, description, category, direction independence, and cost."),u=a$2.object({TerminalComboIndex:a$2.number().describe("Array index of terminal combination in TerminalComboVerbose array."),LineItemIndex:a$2.number().describe("Array index of one-way fare line items in LineItems array."),RoundTripLineItemIndex:a$2.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$2.object({TerminalComboVerbose:a$2.array(o).optional().describe("Array of terminal combination information for the trip date."),LineItemLookup:a$2.array(u).optional().describe("Array of cross-reference mappings between terminal combinations and fare line items."),LineItems:a$2.array(a$2.array(l)).optional().describe("Array of one-way fare line item arrays, one per terminal combination."),RoundTripLineItems:a$2.array(a$2.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,I=a(()=>{b$3();N=a$2.object({TripDate:a$2.string().describe("Trip date in YYYY-MM-DD format. Must be within valid date range."),DepartingTerminalID:a$2.number().describe("Numeric ID of the departing terminal."),ArrivingTerminalID:a$2.number().describe("Numeric ID of the arriving terminal."),RoundTrip:a$2.boolean().describe("True for round trip totals, false for one-way totals."),FareLineItemID:a$2.string().describe("Comma-separated list of fare line item IDs (e.g., '1,2,3')."),Quantity:a$2.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 y,G,D=a(()=>{b$3();y=a$2.union([a$2.literal(1),a$2.literal(2),a$2.literal(3),a$2.literal(4)]).describe("Code indicating total type: 1 = Departing, 2 = Return, 3 = Either (direction independent), 4 = Grand Total."),G=a$2.object({TotalType:y.describe("Code indicating total type: 1 = Departing, 2 = Return, 3 = Either (direction independent), 4 = Grand Total."),Description:a$2.string().nullable().describe("Display name of the fare total (e.g., 'Anacortes to Friday Harbor', 'Grand Total'), or null if unavailable."),BriefDescription:a$2.string().nullable().describe("Short string representation of total type (e.g., 'Depart', 'Either', 'Total'), or null if unavailable."),Amount:a$2.number().describe("Total fare amount in dollars for this total type.")}).describe("Fare total breakdown with type, description, and amount.");});var O,X,g=a(()=>{b$3();O=a$2.object({TripDate:a$2.string().describe("Trip date in YYYY-MM-DD format. Must be within valid date range."),DepartingTerminalID:a$2.number().describe("Numeric ID of the departing terminal."),ArrivingTerminalID:a$2.number().describe("Numeric ID of the arriving terminal.")}).describe("Input parameters for retrieving fare collection description for a terminal combination."),X=a$2.object({TripDate:a$2.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,T=a(()=>{b$3();H=a$2.object({}).describe("Input parameters for retrieving the validity date range for fares data.");});export{n as a,p as b,d as c,f as d,x as e,S as f,C as g,b as h,L as i,o as j,s as k,l,u as m,V as n,h as o,N as p,I as q,y as r,G as s,D as t,O as u,X as v,g as w,H as x,T as y};//# sourceMappingURL=chunk-IM37ZGVR.mjs.map //# sourceMappingURL=chunk-IM37ZGVR.mjs.map