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.97 kB
Source Map (JSON)
{"version":3,"sources":["../src/apis/wsf-vessels/cacheFlushDate/cacheFlushDateVessels.ts","../src/apis/wsf-vessels/core.ts"],"names":["init_factories","init_apiMeta","init_cacheFlushDate_endpoints","fetch","useHook","createFetchAndHook","wsfVesselsApiMeta","cacheFlushDateVesselsMeta","o","r","l","fetchCacheFlushDateVessels","useCacheFlushDateVessels","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":"+QAAAA,CAAAA,EAAAA,CAKAC,CAAAA,EAAAA,CACAC,IAOA,IAAM,CAAE,MAAAC,CAAAA,CAAO,OAAA,CAAAC,CAAQ,CAAA,CAAIC,CAAAA,CAGzB,CACA,IAAKC,CAAAA,CACL,QAAA,CAAUC,CAAAA,CACV,gBAAA,CAAkB,IAEhB,CAAAC,CAAA,EAAA,CAAAC,CAAA,CAAAC,GAAA,CAAA,EAA6C,2BAC1C,aACP,CAAC,CAAA,CAKYC,CAAAA,CAGTR,CAAAA,CAKSS,CAAAA,CAGTR,EC1BJS,GAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,IACAC,GAAAA,EAAAA,CAEAC,GAAAA,EAAAA,CACAC,MACAC,GAAAA,EAAAA,CACAC,CAAAA,EAAAA,CAEAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,GAAAA,EAAAA,CACAC,CAAAA,EAAAA,CAEAC,MACAC,GAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CAEAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,IAEAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CAEAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA","file":"chunk-T266BOKE.mjs","sourcesContent":["import {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} from \"@/shared/factories\";\nimport { wsfVesselsApiMeta } from \"../apiMeta\";\nimport { cacheFlushDateVesselsMeta } 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 */\nconst { fetch, useHook } = createFetchAndHook<\n CacheFlushDateInput,\n CacheFlushDateOutput\n>({\n api: wsfVesselsApiMeta,\n endpoint: cacheFlushDateVesselsMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/cacheFlushDate.endpoints\").cacheFlushDateVesselsGroup\n .cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving cache invalidation timestamp for static vessel data\n */\nexport const fetchCacheFlushDateVessels: FetchFactory<\n CacheFlushDateInput,\n CacheFlushDateOutput\n> = fetch;\n\n/**\n * React Query hook for retrieving cache invalidation timestamp for static vessel data\n */\nexport const useCacheFlushDateVessels: HookFactory<\n CacheFlushDateInput,\n CacheFlushDateOutput\n> = useHook;\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"]}