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 4.8 kB
{"version":3,"sources":["../src/apis/wsf-fares/core.ts","../src/apis/wsf-fares/cacheFlushDate/cacheFlushDateFares.ts"],"names":["init_cacheFlushDate","init_terminals_input","init_terminals_output","init_validDateRange_output","init_factories","init_cacheFlushDate_endpoints","fetchCacheFlushDateFares","createFetchFunction","p","r","s","cacheFlushDateFaresGroup","cacheFlushDateFaresMeta","useCacheFlushDateFares","createHook","init_fareLineItemsBasic","init_fareLineItemsByTripDateAndTerminals","init_fareLineItemsVerbose","init_fareLineItems_input","init_fareLineItems_output","init_fareTotalsByTripDateAndRoute","init_fareTotals_input","init_fareTotals_output","init_terminalCombo_input","init_terminalCombo_output","init_terminalComboFares","init_terminalComboFaresVerbose","init_terminalFares","init_terminalMatesFares","init_faresValidDateRange","init_validDateRange_input"],"mappings":"gRAOAA,CAAAA,EAAAA,CAIAC,IAMAC,CAAAA,EAAAA,CAMAC,CAAAA,EAAAA,CCjBAC,CAAAA,EAAAA,CAIAC,GAAAA,EAAAA,KAQaC,CAAAA,CAEwBC,CAAAA,CACnC,IAAM,CAAAC,EAAA,EAAA,CAAAC,GAAA,CAAAC,EAAA,CAAA,EAAkB,YACxBC,GAAAA,CACAC,CACF,CAAA,CAKaC,CAAAA,CAGsCC,EACjD,IAAM,CAAAN,EAAA,EAAA,CAAAC,GAAA,CAAAC,EAAA,CAAA,EAAkB,WAAA,CACxBC,GAAAA,CACAC,CACF,EDRAG,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,MACAC,CAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,IACAC,CAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,KACAC,EAAAA,EAAAA,CACAC,CAAAA,EAAAA","file":"chunk-IKWTSMMH.mjs","sourcesContent":["/**\n * @fileoverview wsf-fares 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\nexport {\n CacheFlushDateInput as CacheFlushDateFaresInput,\n CacheFlushDateOutput as CacheFlushDateFares,\n} from \"@/apis/shared/cacheFlushDate\";\nexport {\n type TerminalMatesInput,\n type TerminalsInput,\n terminalMatesInputSchema,\n terminalsInputSchema,\n} from \"../shared/terminals.input\";\nexport {\n type Terminal,\n type TerminalList,\n terminalListSchema,\n terminalSchema,\n} from \"../shared/terminals.output\";\nexport {\n type ValidDateRange,\n validDateRangeSchema,\n} from \"../shared/validDateRange.output\";\nexport { fetchCacheFlushDateFares } from \"./cacheFlushDate/cacheFlushDateFares\";\nexport { fetchFareLineItemsBasic } from \"./fareLineItems/fareLineItemsBasic\";\nexport { fetchFareLineItemsByTripDateAndTerminals } from \"./fareLineItems/fareLineItemsByTripDateAndTerminals\";\nexport { fetchFareLineItemsVerbose } from \"./fareLineItems/fareLineItemsVerbose\";\nexport * from \"./fareLineItems/shared/fareLineItems.input\";\nexport * from \"./fareLineItems/shared/fareLineItems.output\";\nexport { fetchFareTotalsByTripDateAndRoute } from \"./fareTotals/fareTotalsByTripDateAndRoute\";\nexport * from \"./fareTotals/shared/fareTotals.input\";\nexport * from \"./fareTotals/shared/fareTotals.output\";\nexport * from \"./terminalCombo/shared/terminalCombo.input\";\nexport * from \"./terminalCombo/shared/terminalCombo.output\";\nexport { fetchTerminalComboFares } from \"./terminalCombo/terminalComboFares\";\nexport { fetchTerminalComboFaresVerbose } from \"./terminalCombo/terminalComboFaresVerbose\";\nexport { fetchTerminalFares } from \"./terminals/terminalFares\";\nexport { fetchTerminalMatesFares } from \"./terminals/terminalMatesFares\";\nexport { fetchFaresValidDateRange } from \"./validDateRange/faresValidDateRange\";\nexport * from \"./validDateRange/shared/validDateRange.input\";\n","import type { UseQueryResult } from \"@tanstack/react-query\";\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 () => require(\"../api\").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 () => require(\"../api\").wsfFaresApi,\n cacheFlushDateFaresGroup,\n cacheFlushDateFaresMeta\n);\n"]}