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 • 8.91 kB
Source Map (JSON)
{"version":3,"sources":["../src/apis/wsf-schedule/core.ts","../src/apis/wsf-schedule/cacheFlushDate/cacheFlushDateSchedule.ts"],"names":["init_terminals_input","init_terminals_output","init_validDateRange_output","init_activeSeasons","init_activeSeasons_input","init_activeSeasons_output","init_factories","init_cacheFlushDate_endpoints","fetchCacheFlushDateSchedule","createFetchFunction","h","r","p","cacheFlushDateScheduleGroup","cacheFlushDateScheduleMeta","useCacheFlushDateSchedule","createHook","init_routeDetailsByTripDate","init_routeDetailsByTripDateAndRouteId","init_routeDetailsByTripDateAndTerminals","init_routesByTripDate","init_routesByTripDateAndTerminals","init_routes_input","init_routes_output","init_allSailingsBySchedRouteID","init_sailingsByRouteID","init_sailings_input","init_sailings_output","init_scheduleAlerts","init_scheduleAlerts_input","init_scheduleAlerts_output","init_scheduledRoutes","init_scheduledRoutesById","init_scheduledRoutes_input","init_scheduledRoutes_output","init_scheduleByTripDateAndDepartingTerminalIdAndTerminalIds","init_scheduleByTripDateAndRouteId","init_schedules_input","init_schedules_output","init_scheduleTodayByRoute","init_scheduleTodayByTerminals","init_scheduleToday_input","init_scheduleToday_output","init_routesHavingServiceDisruptionsByTripDate","init_terminalMatesSchedule","init_terminals","init_terminalsAndMates","init_terminalsAndMatesByRoute","init_timeAdjustments_input","init_timeAdjustments_output","init_timeAdjustments","init_timeAdjustmentsByRoute","init_timeAdjustmentsBySchedRoute","init_scheduleValidDateRange","init_validDateRange_input"],"mappings":"+TAYAA,CAAAA,EAAAA,CAMAC,CAAAA,EAAAA,CAMAC,CAAAA,EAAAA,CAKAC,EAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CCzBAC,CAAAA,EAAAA,CAIAC,GAAAA,EAAAA,CAQO,IAAMC,EAAAA,CAEwBC,GAAAA,CACnC,IAAM,CAAAC,EAAA,EAAA,CAAAC,GAAA,CAAAC,EAAA,CAAA,EAAkB,cAAA,CACxBC,CAAAA,CACAC,GACF,CAAA,CAKaC,EAAAA,CAGsCC,CAAAA,CACjD,IAAM,CAAAN,EAAA,EAAA,CAAAC,GAAA,CAAAC,EAAA,CAAA,EAAkB,cAAA,CACxBC,CAAAA,CACAC,GACF,EDFAG,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,KAEAC,GAAAA,EAAAA,CACAC,CAAAA,EAAAA,CAEAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CAEAC,EAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CAEAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,EAAAA,EAAAA,CAEAC,EAAAA,EAAAA,CACAC,CAAAA,EAAAA,CACAC,EAAAA,EAAAA,CAEAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CAEAC,EAAAA,EAAAA,CAGAC,EAAAA,EAAAA,CACA5C,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CAEA4C,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CAEAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA,CACAC,KAEAC,EAAAA,EAAAA,CACAC,EAAAA,EAAAA","file":"chunk-KMN6UBAH.mjs","sourcesContent":["/**\n * @fileoverview wsf-schedule 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 CacheFlushDateScheduleInput,\n CacheFlushDateOutput as CacheFlushDateSchedules,\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\";\n// Active Seasons\nexport { fetchActiveSeasons } from \"./activeSeasons/activeSeasons\";\nexport * from \"./activeSeasons/shared/activeSeasons.input\";\nexport * from \"./activeSeasons/shared/activeSeasons.output\";\nexport { fetchCacheFlushDateSchedule } from \"./cacheFlushDate/cacheFlushDateSchedule\";\n// Route Details (re-exports types from routes, exports functions)\nexport { fetchRouteDetailsByTripDate } from \"./routeDetails/routeDetailsByTripDate\";\nexport { fetchRouteDetailsByTripDateAndRouteId } from \"./routeDetails/routeDetailsByTripDateAndRouteId\";\nexport { fetchRouteDetailsByTripDateAndTerminals } from \"./routeDetails/routeDetailsByTripDateAndTerminals\";\nexport { fetchRoutesByTripDate } from \"./routes/routesByTripDate\";\nexport { fetchRoutesByTripDateAndTerminals } from \"./routes/routesByTripDateAndTerminals\";\n// Routes (Route Details re-exports these types, so export routes first)\nexport * from \"./routes/shared/routes.input\";\nexport * from \"./routes/shared/routes.output\";\n// Sailings\nexport { fetchAllSailingsBySchedRouteID } from \"./sailings/allSailingsBySchedRouteID\";\nexport { fetchSailingsByRouteID } from \"./sailings/sailingsByRouteID\";\nexport * from \"./sailings/shared/sailings.input\";\nexport * from \"./sailings/shared/sailings.output\";\n// Schedule Alerts\nexport { fetchScheduleAlerts } from \"./scheduleAlerts/scheduleAlerts\";\nexport * from \"./scheduleAlerts/shared/scheduleAlerts.input\";\nexport * from \"./scheduleAlerts/shared/scheduleAlerts.output\";\n// Scheduled Routes\nexport { fetchScheduledRoutes } from \"./scheduledRoutes/scheduledRoutes\";\nexport { fetchScheduledRoutesById } from \"./scheduledRoutes/scheduledRoutesById\";\nexport * from \"./scheduledRoutes/shared/scheduledRoutes.input\";\nexport * from \"./scheduledRoutes/shared/scheduledRoutes.output\";\nexport { fetchScheduleByTripDateAndDepartingTerminalIdAndTerminalIds } from \"./schedules/scheduleByTripDateAndDepartingTerminalIdAndTerminalIds\";\n// Schedules\nexport { fetchScheduleByTripDateAndRouteId } from \"./schedules/scheduleByTripDateAndRouteId\";\nexport * from \"./schedules/shared/schedules.input\";\nexport * from \"./schedules/shared/schedules.output\";\n// Schedule Today\nexport { fetchScheduleTodayByRoute } from \"./scheduleToday/scheduleTodayByRoute\";\nexport { fetchScheduleTodayByTerminals } from \"./scheduleToday/scheduleTodayByTerminals\";\nexport * from \"./scheduleToday/shared/scheduleToday.input\";\nexport * from \"./scheduleToday/shared/scheduleToday.output\";\n// Service Disruptions\nexport { fetchRoutesHavingServiceDisruptionsByTripDate } from \"./serviceDisruptions/routesHavingServiceDisruptionsByTripDate\";\n// Note: Service Disruptions input/output types are re-exported from routes, so they're already exported above\n// Terminal Mates\nexport { fetchTerminalMatesSchedule } from \"./terminalMates/terminalMatesSchedule\";\nexport * from \"./terminals/shared/terminals.input\";\nexport * from \"./terminals/shared/terminals.output\";\n// Terminals\nexport { fetchTerminals } from \"./terminals/terminals\";\nexport { fetchTerminalsAndMates } from \"./terminals/terminalsAndMates\";\nexport { fetchTerminalsAndMatesByRoute } from \"./terminals/terminalsAndMatesByRoute\";\nexport * from \"./timeAdjustments/shared/timeAdjustments.input\";\nexport * from \"./timeAdjustments/shared/timeAdjustments.output\";\n// Time Adjustments\nexport { fetchTimeAdjustments } from \"./timeAdjustments/timeAdjustments\";\nexport { fetchTimeAdjustmentsByRoute } from \"./timeAdjustments/timeAdjustmentsByRoute\";\nexport { fetchTimeAdjustmentsBySchedRoute } from \"./timeAdjustments/timeAdjustmentsBySchedRoute\";\n// Valid Date Range\nexport { fetchScheduleValidDateRange } from \"./validDateRange/scheduleValidDateRange\";\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 cacheFlushDateScheduleGroup,\n cacheFlushDateScheduleMeta,\n} from \"./shared/cacheFlushDate.endpoints\";\n\n/**\n * Fetch function for retrieving timestamp of when static wsf-schedule data was last updated\n */\nexport const fetchCacheFlushDateSchedule: (\n params?: FetchFunctionParams<CacheFlushDateInput>\n) => Promise<CacheFlushDateOutput> = createFetchFunction(\n () => require(\"../api\").wsfScheduleApi,\n cacheFlushDateScheduleGroup,\n cacheFlushDateScheduleMeta\n);\n\n/**\n * React Query hook for retrieving timestamp of when static wsf-schedule data was last updated\n */\nexport const useCacheFlushDateSchedule: (\n params?: FetchFunctionParams<CacheFlushDateInput>,\n options?: QueryHookOptions<CacheFlushDateOutput>\n) => UseQueryResult<CacheFlushDateOutput, Error> = createHook(\n () => require(\"../api\").wsfScheduleApi,\n cacheFlushDateScheduleGroup,\n cacheFlushDateScheduleMeta\n);\n\n// Re-export with API-specific names for backward compatibility\nexport type CacheFlushDateScheduleInput = CacheFlushDateInput;\nexport type CacheFlushDateSchedules = CacheFlushDateOutput;\n"]}