UNPKG

ws-dottie

Version:

Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration

1 lines 2.17 kB
{"version":3,"sources":["../src/apis/wsf-fares/cacheFlushDate/shared/cacheFlushDate.endpoints.ts"],"names":["cacheFlushDateFaresGroup","cacheFlushDateFaresMeta","cacheFlushDateInputSchema","cacheFlushDateOutputSchema","cacheFlushDateFaresEndpoints"],"mappings":"uCAWO,IAAMA,EAA8C,CACzD,IAAA,CAAM,yBACN,aAAA,CAAe,QAAA,CACf,cAAe,CACb,OAAA,CAAS,yDAAA,CACT,WAAA,CACE,yKACF,QAAA,CAAU,CACR,kEACA,8DAAA,CACA,4DACF,EACA,eAAA,CAAiB,OACnB,CACF,CAAA,CAEaC,EAA0B,CACrC,YAAA,CAAc,2BACd,QAAA,CAAU,iBAAA,CACV,YAAaC,CAAAA,CACb,YAAA,CAAcC,EACd,YAAA,CAAc,GACd,mBAAA,CAAqB,kDACvB,EAEaC,CAAAA,CAA+B,CAC1C,eAAgBH,CAClB","file":"chunk-SYOG2WDC.mjs","sourcesContent":["import {\n type CacheFlushDateInput,\n type CacheFlushDateOutput,\n cacheFlushDateInputSchema,\n cacheFlushDateOutputSchema,\n} from \"@/apis/shared/cacheFlushDate\";\nimport type { EndpointGroupMeta, EndpointMeta } from \"@/apis/types\";\n\n/**\n * Endpoint group metadata for cache flush date fares endpoints\n */\nexport const cacheFlushDateFaresGroup: EndpointGroupMeta = {\n name: \"cache-flush-date-fares\",\n cacheStrategy: \"STATIC\",\n documentation: {\n summary: \"Cache invalidation timestamp for static WSF fares data.\",\n description:\n \"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.\",\n useCases: [\n \"Poll periodically to detect when static fares data has changed.\",\n \"Invalidate application cache when the returned date changes.\",\n \"Coordinate cache refresh across multiple static endpoints.\",\n ],\n updateFrequency: \"daily\",\n },\n};\n\nexport const cacheFlushDateFaresMeta = {\n functionName: \"fetchCacheFlushDateFares\",\n endpoint: \"/cacheflushdate\",\n inputSchema: cacheFlushDateInputSchema,\n outputSchema: cacheFlushDateOutputSchema,\n sampleParams: {},\n endpointDescription: \"Get cache flush timestamp for static fares data.\",\n} satisfies EndpointMeta<CacheFlushDateInput, CacheFlushDateOutput>;\n\nexport const cacheFlushDateFaresEndpoints = {\n cacheFlushDate: cacheFlushDateFaresMeta,\n} as const;\n"]}