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 • 5.84 kB
Source Map (JSON)
{"version":3,"sources":["../src/apis/wsf-vessels/cacheFlushDate/cacheFlushDateVessels.ts","../src/apis/wsf-vessels/core.ts"],"names":["init_factories","init_cacheFlushDate_endpoints","fetchCacheFlushDateVessels","createFetchFunction","p","t","a","cacheFlushDateVesselsGroup","cacheFlushDateVesselsMeta","useCacheFlushDateVessels","createHook","init_cacheFlushDate_input","init_cacheFlushDate_output","init_vesselAccommodations_input","init_vesselAccommodations_output","init_vesselAccommodations","init_vesselAccommodationsByVesselId","init_vesselBasics_input","init_vesselBasics_output","init_vesselBasics","init_vesselBasicsByVesselId","init_vesselHistories_input","init_vesselHistories_output","init_vesselHistories","init_vesselHistoriesByVesselNameAndDateRange","init_vesselLocations_input","init_vesselLocations_output","init_vesselLocations","init_vesselLocationsByVesselId","init_vesselStats_input","init_vesselStats_output","init_vesselStats","init_vesselStatsByVesselId","init_vesselVerbose_input","init_vesselVerbose_output","init_vesselsVerbose","init_vesselsVerboseById"],"mappings":"kNAEAA,CAAAA,EAAAA,CACAC,IAUO,IAAMC,CAAAA,CAEwBC,EACnC,IAAM,CAAAC,EAAA,EAAA,CAAAC,CAAA,CAAAC,EAAA,CAAA,EAAkB,cACxBC,CAAAA,CACAC,CACF,EAKaC,CAAAA,CAGsCC,CAAAA,CACjD,IAAM,CAAAN,EAAA,EAAA,CAAAC,CAAA,CAAAC,EAAA,CAAA,EAAkB,aAAA,CACxBC,EACAC,CACF,EClBAG,IACAC,GAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CAEAC,EAAAA,EAAAA,CACAC,KACAC,GAAAA,EAAAA,CACAC,GAAAA,EAAAA,CAEAC,KACAC,EAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,IAEAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,IACAC,CAAAA,EAAAA,CAEAC,EAAAA,EAAAA,CACAC,KACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CAEAC,KACAC,EAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,IAEAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA","file":"chunk-34GOKEMI.mjs","sourcesContent":["import type { UseQueryResult } from \"@tanstack/react-query\";\nimport type { FetchFunctionParams, QueryHookOptions } from \"@/apis/types\";\nimport { createFetchFunction, createHook } from \"@/shared/factories\";\nimport {\n cacheFlushDateVesselsGroup,\n cacheFlushDateVesselsMeta,\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 vessel data\n */\nexport const fetchCacheFlushDateVessels: (\n params?: FetchFunctionParams<CacheFlushDateInput>\n) => Promise<CacheFlushDateOutput> = createFetchFunction(\n () => require(\"../api\").wsfVesselsApi,\n cacheFlushDateVesselsGroup,\n cacheFlushDateVesselsMeta\n);\n\n/**\n * React Query hook for retrieving cache invalidation timestamp for static vessel data\n */\nexport const useCacheFlushDateVessels: (\n params?: FetchFunctionParams<CacheFlushDateInput>,\n options?: QueryHookOptions<CacheFlushDateOutput>\n) => UseQueryResult<CacheFlushDateOutput, Error> = createHook(\n () => require(\"../api\").wsfVesselsApi,\n cacheFlushDateVesselsGroup,\n cacheFlushDateVesselsMeta\n);\n\n// Re-export with API-specific names for backward compatibility\nexport type CacheFlushDateVesselsInput = CacheFlushDateInput;\nexport type CacheFlushDateVessels = CacheFlushDateOutput;\n","/**\n * @fileoverview wsf-vessels 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// Cache Flush Date\nexport type {\n CacheFlushDateInput as CacheFlushDateVesselsInput,\n CacheFlushDateOutput as CacheFlushDateVessels,\n} from \"@/apis/shared/cacheFlushDate\";\nexport { fetchCacheFlushDateVessels } from \"./cacheFlushDate/cacheFlushDateVessels\";\nexport * from \"./cacheFlushDate/shared/cacheFlushDate.input\";\nexport * from \"./cacheFlushDate/shared/cacheFlushDate.output\";\nexport * from \"./vesselAccommodations/shared/vesselAccommodations.input\";\nexport * from \"./vesselAccommodations/shared/vesselAccommodations.output\";\n// Vessel Accommodations\nexport { fetchVesselAccommodations } from \"./vesselAccommodations/vesselAccommodations\";\nexport { fetchVesselAccommodationsByVesselId } from \"./vesselAccommodations/vesselAccommodationsByVesselId\";\nexport * from \"./vesselBasics/shared/vesselBasics.input\";\nexport * from \"./vesselBasics/shared/vesselBasics.output\";\n// Vessel Basics\nexport { fetchVesselBasics } from \"./vesselBasics/vesselBasics\";\nexport { fetchVesselBasicsByVesselId } from \"./vesselBasics/vesselBasicsByVesselId\";\nexport * from \"./vesselHistories/shared/vesselHistories.input\";\nexport * from \"./vesselHistories/shared/vesselHistories.output\";\n// Vessel Histories\nexport { fetchVesselHistories } from \"./vesselHistories/vesselHistories\";\nexport { fetchVesselHistoriesByVesselNameAndDateRange } from \"./vesselHistories/vesselHistoriesByVesselNameAndDateRange\";\nexport * from \"./vesselLocations/shared/vesselLocations.input\";\nexport * from \"./vesselLocations/shared/vesselLocations.output\";\n// Vessel Locations\nexport { fetchVesselLocations } from \"./vesselLocations/vesselLocations\";\nexport { fetchVesselLocationsByVesselId } from \"./vesselLocations/vesselLocationsByVesselId\";\nexport * from \"./vesselStats/shared/vesselStats.input\";\nexport * from \"./vesselStats/shared/vesselStats.output\";\n// Vessel Stats\nexport { fetchVesselStats } from \"./vesselStats/vesselStats\";\nexport { fetchVesselStatsByVesselId } from \"./vesselStats/vesselStatsByVesselId\";\nexport * from \"./vesselVerbose/shared/vesselVerbose.input\";\nexport * from \"./vesselVerbose/shared/vesselVerbose.output\";\n// Vessel Verbose\nexport { fetchVesselsVerbose } from \"./vesselVerbose/vesselsVerbose\";\nexport { fetchVesselsVerboseByVesselId } from \"./vesselVerbose/vesselsVerboseById\";\n"]}