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