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.46 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","cacheFlushDateFaresFactory","createFetchAndHook","wsfFaresApiMeta","cacheFlushDateFaresMeta","a","o","h","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,MAMAC,CAAAA,EAAAA,CAMAC,CAAAA,EAAAA,CCnBAC,IACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,KAKMC,CAAAA,CAA6BC,CAAAA,CAGjC,CACA,GAAA,CAAKC,IACL,QAAA,CAAUC,CAAAA,CACV,iBAAkB,IAChB,CAAAC,CAAA,EAAA,CAAAC,GAAA,CAAAC,GAAA,CAAA,EAA6C,wBACjD,CAAC,CAAA,CAKY,CAAE,KAAA,CAAOC,EAA0B,IAAA,CAAMC,CAAuB,EAC3ER,EDGFS,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-N5NEFOVC.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 { createFetchAndHook } from \"@/shared/factories\";\nimport { wsfFaresApiMeta } from \"../apiMeta\";\nimport { cacheFlushDateFaresMeta } from \"./shared/cacheFlushDate.endpoints\";\n\n/**\n * Factory result for cache flush date fares\n */\nconst cacheFlushDateFaresFactory = createFetchAndHook<\n CacheFlushDateInput,\n CacheFlushDateOutput\n>({\n api: wsfFaresApiMeta,\n endpoint: cacheFlushDateFaresMeta,\n getEndpointGroup: () =>\n require(\"./shared/cacheFlushDate.endpoints\").cacheFlushDateFaresGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving cache flush timestamp for static fares data\n */\nexport const { fetch: fetchCacheFlushDateFares, hook: useCacheFlushDateFares } =\n cacheFlushDateFaresFactory;\n"]}