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 6.72 kB
{"version":3,"sources":["../src/apis/wsf-terminals/core.ts","../src/apis/wsf-terminals/cacheFlushDate/cacheFlushDateTerminals.ts"],"names":["init_cacheFlushDate","init_factories","init_cacheFlushDate_endpoints","fetchCacheFlushDateTerminals","createFetchFunction","p","t","m","cacheFlushDateTerminalsGroup","cacheFlushDateTerminalsMeta","useCacheFlushDateTerminals","createHook","init_cacheFlushDate_input","init_cacheFlushDate_output","init_terminalBasics_input","init_terminalBasics_output","init_terminalBasics","init_terminalBasicsByTerminalId","init_terminalBulletins_input","init_terminalBulletins_output","init_terminalBulletins","init_terminalBulletinsByTerminalId","init_terminalLocations_input","init_terminalLocations_output","init_terminalLocations","init_terminalLocationsByTerminalId","init_terminalSailingSpace_input","init_terminalSailingSpace_output","init_terminalSailingSpace","init_terminalSailingSpaceByTerminalId","init_terminalTransports_input","init_terminalTransports_output","init_terminalTransports","init_terminalTransportsByTerminalId","init_terminalVerbose_input","init_terminalVerbose_output","init_terminalVerbose","init_terminalVerboseByTerminalId","init_terminalWaitTimes_input","init_terminalWaitTimes_output","init_terminalWaitTimes","init_terminalWaitTimesByTerminalId"],"mappings":"2PAQAA,CAAAA,EAAAA,CCNAC,CAAAA,EAAAA,CAIAC,IAUO,IAAMC,CAAAA,CAEwBC,EACnC,IAAM,CAAAC,EAAA,EAAA,CAAAC,CAAA,CAAAC,EAAA,CAAA,EAAkB,gBACxBC,CAAAA,CACAC,CACF,EAKaC,CAAAA,CAGsCC,CAAAA,CACjD,IAAM,CAAAN,EAAA,EAAA,CAAAC,CAAA,CAAAC,EAAA,CAAA,EAAkB,eAAA,CACxBC,EACAC,CACF,EDlBAG,CAAAA,EAAAA,CACAC,GAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,KACAC,EAAAA,EAAAA,CACAC,GAAAA,EAAAA,CACAC,IACAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,IACAC,CAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,KACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,KACAC,EAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,IACAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA","file":"chunk-NS4Z3FXW.mjs","sourcesContent":["/**\n * @fileoverview wsf-terminals API - Core fetch functions and types only\n *\n * This module provides exports for fetch functions and types only (no React hooks).\n * Use this for backend/server-side code to avoid React Query dependencies.\n */\n\n// Re-export types from shared cache flush date\nexport {\n CacheFlushDateInput as CacheFlushDateTerminalsInput,\n CacheFlushDateOutput as CacheFlushDateTerminals,\n} from \"@/apis/shared/cacheFlushDate\";\n\n// Export fetch functions from individual endpoint files\nexport { fetchCacheFlushDateTerminals } from \"./cacheFlushDate/cacheFlushDateTerminals\";\n// Export types from shared input/output files\nexport * from \"./cacheFlushDate/shared/cacheFlushDate.input\";\nexport * from \"./cacheFlushDate/shared/cacheFlushDate.output\";\nexport * from \"./terminalBasics/shared/terminalBasics.input\";\nexport * from \"./terminalBasics/shared/terminalBasics.output\";\nexport { fetchTerminalBasics } from \"./terminalBasics/terminalBasics\";\nexport { fetchTerminalBasicsByTerminalId } from \"./terminalBasics/terminalBasicsByTerminalId\";\nexport * from \"./terminalBulletins/shared/terminalBulletins.input\";\nexport * from \"./terminalBulletins/shared/terminalBulletins.output\";\nexport { fetchTerminalBulletins } from \"./terminalBulletins/terminalBulletins\";\nexport { fetchTerminalBulletinsByTerminalId } from \"./terminalBulletins/terminalBulletinsByTerminalId\";\nexport * from \"./terminalLocations/shared/terminalLocations.input\";\nexport * from \"./terminalLocations/shared/terminalLocations.output\";\nexport { fetchTerminalLocations } from \"./terminalLocations/terminalLocations\";\nexport { fetchTerminalLocationsByTerminalId } from \"./terminalLocations/terminalLocationsByTerminalId\";\nexport * from \"./terminalSailingSpace/shared/terminalSailingSpace.input\";\nexport * from \"./terminalSailingSpace/shared/terminalSailingSpace.output\";\nexport { fetchTerminalSailingSpace } from \"./terminalSailingSpace/terminalSailingSpace\";\nexport { fetchTerminalSailingSpaceByTerminalId } from \"./terminalSailingSpace/terminalSailingSpaceByTerminalId\";\nexport * from \"./terminalTransports/shared/terminalTransports.input\";\nexport * from \"./terminalTransports/shared/terminalTransports.output\";\nexport { fetchTerminalTransports } from \"./terminalTransports/terminalTransports\";\nexport { fetchTerminalTransportsByTerminalId } from \"./terminalTransports/terminalTransportsByTerminalId\";\nexport * from \"./terminalVerbose/shared/terminalVerbose.input\";\nexport * from \"./terminalVerbose/shared/terminalVerbose.output\";\nexport { fetchTerminalVerbose } from \"./terminalVerbose/terminalVerbose\";\nexport { fetchTerminalVerboseByTerminalId } from \"./terminalVerbose/terminalVerboseByTerminalId\";\nexport * from \"./terminalWaitTimes/shared/terminalWaitTimes.input\";\nexport * from \"./terminalWaitTimes/shared/terminalWaitTimes.output\";\nexport { fetchTerminalWaitTimes } from \"./terminalWaitTimes/terminalWaitTimes\";\nexport { fetchTerminalWaitTimesByTerminalId } from \"./terminalWaitTimes/terminalWaitTimesByTerminalId\";\n","import type { UseQueryResult } from \"@tanstack/react-query\";\nimport type { FetchFunctionParams, QueryHookOptions } from \"@/apis/types\";\nimport {\n createFetchFunction,\n createHook,\n} from \"@/shared/factories\";\nimport {\n cacheFlushDateTerminalsGroup,\n cacheFlushDateTerminalsMeta,\n} from \"./shared/cacheFlushDate.endpoints\";\nimport type { CacheFlushDateInput } from \"./shared/cacheFlushDate.input\";\nimport type { CacheFlushDateOutput } from \"./shared/cacheFlushDate.output\";\n\n/**\n * Fetch function for retrieving cache invalidation timestamp for static wsf-terminals data\n */\nexport const fetchCacheFlushDateTerminals: (\n params?: FetchFunctionParams<CacheFlushDateInput>\n) => Promise<CacheFlushDateOutput> = createFetchFunction(\n () => require(\"../api\").wsfTerminalsApi,\n cacheFlushDateTerminalsGroup,\n cacheFlushDateTerminalsMeta\n);\n\n/**\n * React Query hook for retrieving cache invalidation timestamp for static wsf-terminals data\n */\nexport const useCacheFlushDateTerminals: (\n params?: FetchFunctionParams<CacheFlushDateInput>,\n options?: QueryHookOptions<CacheFlushDateOutput>\n) => UseQueryResult<CacheFlushDateOutput, Error> = createHook(\n () => require(\"../api\").wsfTerminalsApi,\n cacheFlushDateTerminalsGroup,\n cacheFlushDateTerminalsMeta\n);\n\n// Re-export with API-specific names for backward compatibility\nexport type CacheFlushDateTerminalsInput = CacheFlushDateInput;\nexport type CacheFlushDateTerminals = CacheFlushDateOutput;\n"]}