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.81 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_apiMeta","init_cacheFlushDate_endpoints","fetch","useHook","createFetchAndHook","wsfFaresApiMeta","cacheFlushDateFaresMeta","r","o","c","fetchCacheFlushDateFares","useCacheFlushDateFares","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":"gVAOAA,CAAAA,EAAAA,CAIAC,CAAAA,EAAAA,CAMAC,IAMAC,CAAAA,EAAAA,CCnBAC,CAAAA,EAAAA,CAKAC,MACAC,CAAAA,EAAAA,CAKA,IAAM,CAAE,KAAA,CAAAC,CAAAA,CAAO,QAAAC,CAAQ,CAAA,CAAIC,EAGzB,CACA,GAAA,CAAKC,IACL,QAAA,CAAUC,CAAAA,CACV,iBAAkB,IAEhB,CAAAC,CAAA,EAAA,CAAAC,GAAA,CAAAC,GAAA,CAAA,EAA6C,yBAC1C,aACP,CAAC,EAKYC,CAAAA,CAGTR,CAAAA,CAKSS,EAGTR,EDbJS,GAAAA,EAAAA,CACAC,MACAC,GAAAA,EAAAA,CACAC,GAAAA,EAAAA,CACAC,IACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,IACAC,CAAAA,EAAAA,CACAC,GAAAA,EAAAA,CACAC,IACAC,CAAAA,EAAAA,CACAC,GAAAA,EAAAA,CACAC,IACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA","file":"chunk-BFWLZR5L.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 {\n CacheFlushDateInput,\n CacheFlushDateOutput,\n} from \"@/apis/shared/cacheFlushDate\";\nimport {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} from \"@/shared/factories\";\nimport { wsfFaresApiMeta } from \"../apiMeta\";\nimport { cacheFlushDateFaresMeta } from \"./shared/cacheFlushDate.endpoints\";\n\n/**\n * Fetch function for retrieving cache flush timestamp for static fares data\n */\nconst { fetch, useHook } = createFetchAndHook<\n CacheFlushDateInput,\n CacheFlushDateOutput\n>({\n api: wsfFaresApiMeta,\n endpoint: cacheFlushDateFaresMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/cacheFlushDate.endpoints\").cacheFlushDateFaresGroup\n .cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving cache flush timestamp for static fares data\n */\nexport const fetchCacheFlushDateFares: FetchFactory<\n CacheFlushDateInput,\n CacheFlushDateOutput\n> = fetch;\n\n/**\n * React Query hook for retrieving cache flush timestamp for static fares data\n */\nexport const useCacheFlushDateFares: HookFactory<\n CacheFlushDateInput,\n CacheFlushDateOutput\n> = useHook;\n"]}