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 • 1.63 kB
Source Map (JSON)
{"version":3,"sources":["../src/apis/wsf-fares/cacheFlushDate/cacheFlushDateFares.ts"],"names":["fetchCacheFlushDateFares","createFetchFunction","wsfFaresApi","cacheFlushDateFaresGroup","cacheFlushDateFaresMeta","useCacheFlushDateFares","createHook"],"mappings":"kFAmBO,IAAMA,CAAAA,CAEwBC,EAAAA,CACnCC,CAAAA,CACAC,CAAAA,CACAC,CACF,EAKaC,CAAAA,CAGsCC,EAAAA,CACjDJ,CAAAA,CACAC,CAAAA,CACAC,CACF","file":"chunk-KTB3TWU6.mjs","sourcesContent":["import type { UseQueryResult } from \"@tanstack/react-query\";\nimport { wsfFaresApi } from \"../api\";\nimport type {\n CacheFlushDateInput,\n CacheFlushDateOutput,\n} from \"@/apis/shared/cacheFlushDate\";\nimport type { FetchFunctionParams, QueryHookOptions } from \"@/apis/types\";\nimport {\n createFetchFunction,\n createHook,\n} from \"@/shared/factories\";\nimport {\n cacheFlushDateFaresGroup,\n cacheFlushDateFaresMeta,\n} from \"./shared/cacheFlushDate.endpoints\";\n\n/**\n * Fetch function for retrieving cache flush timestamp for static fares data\n */\nexport const fetchCacheFlushDateFares: (\n params?: FetchFunctionParams<CacheFlushDateInput>\n) => Promise<CacheFlushDateOutput> = createFetchFunction(\n wsfFaresApi,\n cacheFlushDateFaresGroup,\n cacheFlushDateFaresMeta\n);\n\n/**\n * React Query hook for retrieving cache flush timestamp for static fares data\n */\nexport const useCacheFlushDateFares: (\n params?: FetchFunctionParams<CacheFlushDateInput>,\n options?: QueryHookOptions<CacheFlushDateOutput>\n) => UseQueryResult<CacheFlushDateOutput, Error> = createHook(\n wsfFaresApi,\n cacheFlushDateFaresGroup,\n cacheFlushDateFaresMeta\n);\n"]}