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 • 22.1 kB
Source Map (JSON)
{"version":3,"sources":["../src/apis/wsdot-toll-rates/apiMeta.ts","../src/apis/wsdot-toll-rates/tollRates/shared/tollRates.endpoints.ts","../src/apis/wsdot-toll-rates/tollRates/tollRates.ts","../src/apis/wsdot-toll-rates/tollTripInfo/shared/tollTripInfo.endpoints.ts","../src/apis/wsdot-toll-rates/tollTripInfo/tollTripInfo.ts","../src/apis/wsdot-toll-rates/tollTripRates/tripRatesByDate.ts","../src/apis/wsdot-toll-rates/tollTripRates/tripRatesByVersion.ts","../src/apis/wsdot-toll-rates/tollTripRates/shared/tollTripRates.endpoints.ts","../src/apis/wsdot-toll-rates/tollTripRates/tollTripRates.ts","../src/apis/wsdot-toll-rates/tollTripVersion/shared/tollTripVersion.endpoints.ts","../src/apis/wsdot-toll-rates/tollTripVersion/tollTripVersion.ts"],"names":["wsdotTollRatesApiMeta","init_apiMeta","__esmMin","tollRates_endpoints_exports","__export","tollRatesGroup","init_tollRates_endpoints","init_tollRates","tollRatesMeta","fetch","useHook","fetchTollRates","useTollRates","init_factories","init_tollRates_input","init_tollRates_output","tollRatesInputSchema","tollRateSchema","createFetchAndHook","a","tollTripInfo_endpoints_exports","tollTripInfoGroup","init_tollTripInfo_endpoints","init_tollTripInfo","tollTripInfoMeta","fetchTollTripInfo","useTollTripInfo","init_tollTripInfo_input","init_tollTripInfo_output","tollTripInfoInputSchema","tollTripInfoSchema","tripRatesByDateMeta","fetchTripRatesByDate","useTripRatesByDate","init_tripRatesByDate","init_utils","init_tollTripRates_input","init_tollTripRates_output","tripRatesByDateInputSchema","tollTripsRatesSchema","datesHelper","tripRatesByVersionMeta","fetchTripRatesByVersion","useTripRatesByVersion","init_tripRatesByVersion","tripRatesByVersionInputSchema","tollTripRates_endpoints_exports","tollTripRatesGroup","init_tollTripRates_endpoints","init_tollTripRates","tollTripRatesMeta","fetchTollTripRates","useTollTripRates","tollTripRatesInputSchema","tollTripVersion_endpoints_exports","tollTripVersionGroup","init_tollTripVersion_endpoints","init_tollTripVersion","tollTripVersionMeta","fetchTollTripVersion","useTollTripVersion","init_tollTripVersion_input","init_tollTripVersion_output","tollTripVersionInputSchema","tollTripVersionSchema"],"mappings":"iVAAA,IAKaA,CAAAA,CALbC,CAAAA,CAAAC,CAAAA,CAAA,IAAA,CAKaF,CAAAA,CAAiC,CAC5C,IAAA,CAAM,kBAAA,CACN,OAAA,CAAS,kEACX,EAAA,CAAA,ECRA,IAAAG,CAAAA,CAAA,EAAA,CAAAC,GAAAA,CAAAD,CAAAA,CAAA,CAAA,cAAA,CAAA,IAAAE,CAAAA,CAAAA,CAAAA,CAAA,IAMaA,CAAAA,CANbC,CAAAA,CAAAJ,CAAAA,CAAA,IAAA,CACAK,CAAAA,EAAAA,CAKaF,CAAAA,CAAoC,CAC/C,IAAA,CAAM,YAAA,CACN,aAAA,CAAe,WACf,aAAA,CAAe,CACb,OAAA,CACE,2EAAA,CACF,WAAA,CACE,kJAAA,CACF,QAAA,CAAU,CACR,iDAAA,CACA,kDAAA,CACA,wDACF,CAAA,CACA,eAAA,CAAiB,IACnB,CAAA,CACA,SAAA,CAAW,CAACG,CAAa,CAC3B,EAAA,CAAA,ECtBA,IAgBaA,CAAAA,CAaLC,CAAAA,CAAOC,CAAAA,CAWFC,EAAAA,CAKAC,EAAAA,CA7CbL,CAAAA,CAAAL,CAAAA,CAAA,IAAA,CACAW,CAAAA,EAAAA,CAKAZ,IACAa,GAAAA,EAAAA,CAIAC,GAAAA,EAAAA,CAKaP,CAAAA,CAAgB,CAC3B,YAAA,CAAc,gBAAA,CACd,QAAA,CAAU,qBAAA,CACV,WAAA,CAAaQ,GAAAA,CACb,YAAA,CAAcC,CAAAA,CAAe,KAAA,EAAM,CACnC,YAAA,CAAc,EAAC,CACf,mBAAA,CACE,2DACJ,CAAA,CAKM,CAAE,KAAA,CAAAR,CAAAA,CAAO,OAAA,CA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AAA,EAAAA,CAQaJ,CAAAA,CAAsB,CACjC,YAAA,CAAc,sBAAA,CACd,QAAA,CAAU,2BAAA,CACV,WAAA,CAAaK,EACb,YAAA,CAAcC,GAAAA,CACd,YAAA,CAAc,EAAC,CACf,mBAAA,CAAqB,uDACvB,CAAA,CAKM,CAAE,KAAA,CAAAvD,EAAAA,CAAO,OAAA,CAAAC,EAAAA,CAAAA,CAAYQ,CAAAA,CAGzB,CACA,GAAA,CAAKlB,CAAAA,CACL,QAAA,CAAU0D,CAAAA,CACV,gBAAA,CAAkB,IAEhB,CAAA,CAAA,EAAA,CAAAvC,GAAA,CAAA,CAAA,CAAA,EAA8C,oBAAA,CAC3C,aACP,CAAC,CAAA,CAKYwC,EAAAA,CAGTlD,EAAAA,CAKSmD,EAAAA,CAGTlD,GAAAA,CAAAA","file":"chunk-5X2HOFYV.mjs","sourcesContent":["import type { ApiMeta } from \"@/apis/types\";\n\n/**\n * API metadata for WSDOT Toll Rates API\n */\nexport const wsdotTollRatesApiMeta: ApiMeta = {\n name: \"wsdot-toll-rates\",\n baseUrl: \"https://www.wsdot.wa.gov/traffic/api/tollrates/tollratesrest.svc\",\n};\n","import type { EndpointGroupMeta } from \"@/apis/types\";\nimport { tollRatesMeta } from \"../tollRates\";\n\n/**\n * Endpoint group metadata for toll rates endpoints\n */\nexport const tollRatesGroup: EndpointGroupMeta = {\n name: \"toll-rates\",\n cacheStrategy: \"FREQUENT\",\n documentation: {\n summary:\n \"Current toll rates for high occupancy vehicle (HOV) toll lanes statewide.\",\n description:\n \"Real-time toll pricing data including trip locations, current toll amounts, route associations, and update timestamps for congestion management.\",\n useCases: [\n \"Calculate travel costs for HOV toll lane usage.\",\n \"Display current toll amounts in navigation apps.\",\n \"Make informed routing decisions based on toll pricing.\",\n ],\n updateFrequency: \"5m\",\n },\n endpoints: [tollRatesMeta],\n};\n","import type { EndpointMeta } from \"@/apis/types\";\nimport {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} from \"@/shared/factories\";\nimport { wsdotTollRatesApiMeta } from \"../apiMeta\";\nimport {\n type TollRatesInput,\n tollRatesInputSchema,\n} from \"./shared/tollRates.input\";\nimport { type TollRate, tollRateSchema } from \"./shared/tollRates.output\";\n\n/**\n * Metadata for the fetchTollRates endpoint\n */\nexport const tollRatesMeta = {\n functionName: \"fetchTollRates\",\n endpoint: \"/getTollRatesAsJson\",\n inputSchema: tollRatesInputSchema,\n outputSchema: tollRateSchema.array(),\n sampleParams: {},\n endpointDescription:\n \"List current toll rates for all HOV toll lanes statewide.\",\n} satisfies EndpointMeta<TollRatesInput, TollRate[]>;\n\n/**\n * Fetch function for retrieving current toll rates for all HOV toll lanes statewide\n */\nconst { fetch, useHook } = createFetchAndHook<TollRatesInput, TollRate[]>({\n api: wsdotTollRatesApiMeta,\n endpoint: tollRatesMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/tollRates.endpoints\").tollRatesGroup.cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving current toll rates for all HOV toll lanes statewide\n */\nexport const fetchTollRates: FetchFactory<TollRatesInput, TollRate[]> = fetch;\n\n/**\n * React Query hook for retrieving current toll rates for all HOV toll lanes statewide\n */\nexport const useTollRates: HookFactory<TollRatesInput, TollRate[]> = useHook;\n","import type { EndpointGroupMeta } from \"@/apis/types\";\nimport { tollTripInfoMeta } from \"../tollTripInfo\";\n\n/**\n * Endpoint group metadata for toll trip info endpoints\n */\nexport const tollTripInfoGroup: EndpointGroupMeta = {\n name: \"toll-trip-info\",\n cacheStrategy: \"FREQUENT\",\n documentation: {\n summary:\n \"Trip route information for HOV toll lanes including locations, mileposts, and geometry.\",\n description:\n \"Reference data for toll trip routes including start and end locations, coordinates, mileposts, travel direction, and optional geometry data for mapping.\",\n useCases: [\n \"Display toll trip routes on maps.\",\n \"Look up trip information by location or route.\",\n \"Build trip selection interfaces for toll rate queries.\",\n ],\n updateFrequency: \"daily\",\n },\n endpoints: [tollTripInfoMeta],\n};\n","import type { EndpointMeta } from \"@/apis/types\";\nimport {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} from \"@/shared/factories\";\nimport { wsdotTollRatesApiMeta } from \"../apiMeta\";\nimport {\n type TollTripInfoInput,\n tollTripInfoInputSchema,\n} from \"./shared/tollTripInfo.input\";\nimport {\n type TollTripInfo,\n tollTripInfoSchema,\n} from \"./shared/tollTripInfo.output\";\n\n/**\n * Metadata for the fetchTollTripInfo endpoint\n */\nexport const tollTripInfoMeta = {\n functionName: \"fetchTollTripInfo\",\n endpoint: \"/getTollTripInfoAsJson\",\n inputSchema: tollTripInfoInputSchema,\n outputSchema: tollTripInfoSchema.array(),\n sampleParams: {},\n endpointDescription: \"List trip information for all toll trips statewide.\",\n} satisfies EndpointMeta<TollTripInfoInput, TollTripInfo[]>;\n\n/**\n * Fetch function for retrieving trip information for all toll trips statewide\n */\nconst { fetch, useHook } = createFetchAndHook<\n TollTripInfoInput,\n TollTripInfo[]\n>({\n api: wsdotTollRatesApiMeta,\n endpoint: tollTripInfoMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/tollTripInfo.endpoints\").tollTripInfoGroup.cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving trip information for all toll trips statewide\n */\nexport const fetchTollTripInfo: FetchFactory<\n TollTripInfoInput,\n TollTripInfo[]\n> = fetch;\n\n/**\n * React Query hook for retrieving trip information for all toll trips statewide\n */\nexport const useTollTripInfo: HookFactory<TollTripInfoInput, TollTripInfo[]> =\n useHook;\n","import type { EndpointMeta } from \"@/apis/types\";\nimport {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} from \"@/shared/factories\";\nimport { datesHelper } from \"@/shared/utils\";\nimport { wsdotTollRatesApiMeta } from \"../apiMeta\";\nimport {\n type TripRatesByDateInput,\n tripRatesByDateInputSchema,\n} from \"./shared/tollTripRates.input\";\nimport {\n type TollTripsRates,\n tollTripsRatesSchema,\n} from \"./shared/tollTripRates.output\";\n\n/**\n * Metadata for the fetchTripRatesByDate endpoint\n */\nexport const tripRatesByDateMeta = {\n functionName: \"fetchTripRatesByDate\",\n endpoint: \"/getTripRatesByDateAsJson?FromDate={FromDate}&ToDate={ToDate}\",\n inputSchema: tripRatesByDateInputSchema,\n outputSchema: tollTripsRatesSchema.array(),\n sampleParams: {\n FromDate: datesHelper.yesterday(),\n ToDate: datesHelper.today(),\n },\n endpointDescription: \"Get historical toll rates for a specified date range.\",\n} satisfies EndpointMeta<TripRatesByDateInput, TollTripsRates[]>;\n\n/**\n * Fetch function for retrieving historical toll rates for a specified date range\n */\nconst { fetch, useHook } = createFetchAndHook<\n TripRatesByDateInput,\n TollTripsRates[]\n>({\n api: wsdotTollRatesApiMeta,\n endpoint: tripRatesByDateMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/tollTripRates.endpoints\").tollTripRatesGroup\n .cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving historical toll rates for a specified date range\n */\nexport const fetchTripRatesByDate: FetchFactory<\n TripRatesByDateInput,\n TollTripsRates[]\n> = fetch;\n\n/**\n * React Query hook for retrieving historical toll rates for a specified date range\n */\nexport const useTripRatesByDate: HookFactory<\n TripRatesByDateInput,\n TollTripsRates[]\n> = useHook;\n","import type { EndpointMeta } from \"@/apis/types\";\nimport {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} from \"@/shared/factories\";\nimport { wsdotTollRatesApiMeta } from \"../apiMeta\";\nimport {\n type TripRatesByVersionInput,\n tripRatesByVersionInputSchema,\n} from \"./shared/tollTripRates.input\";\nimport {\n type TollTripsRates,\n tollTripsRatesSchema,\n} from \"./shared/tollTripRates.output\";\n\n/**\n * Metadata for the fetchTripRatesByVersion endpoint\n */\nexport const tripRatesByVersionMeta = {\n functionName: \"fetchTripRatesByVersion\",\n endpoint: \"/getTripRatesByVersionAsJson?Version={Version}\",\n inputSchema: tripRatesByVersionInputSchema,\n outputSchema: tollTripsRatesSchema,\n sampleParams: { Version: 352417 },\n endpointDescription: \"Get toll rates for a specific version number.\",\n} satisfies EndpointMeta<TripRatesByVersionInput, TollTripsRates>;\n\n/**\n * Fetch function for retrieving toll rates for a specific version number\n */\nconst { fetch, useHook } = createFetchAndHook<\n TripRatesByVersionInput,\n TollTripsRates\n>({\n api: wsdotTollRatesApiMeta,\n endpoint: tripRatesByVersionMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/tollTripRates.endpoints\").tollTripRatesGroup\n .cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving toll rates for a specific version number\n */\nexport const fetchTripRatesByVersion: FetchFactory<\n TripRatesByVersionInput,\n TollTripsRates\n> = fetch;\n\n/**\n * React Query hook for retrieving toll rates for a specific version number\n */\nexport const useTripRatesByVersion: HookFactory<\n TripRatesByVersionInput,\n TollTripsRates\n> = useHook;\n","import type { EndpointGroupMeta } from \"@/apis/types\";\nimport { tollTripRatesMeta } from \"../tollTripRates\";\nimport { tripRatesByDateMeta } from \"../tripRatesByDate\";\nimport { tripRatesByVersionMeta } from \"../tripRatesByVersion\";\n\n/**\n * Endpoint group metadata for toll trip rates endpoints\n */\nexport const tollTripRatesGroup: EndpointGroupMeta = {\n name: \"toll-trip-rates\",\n cacheStrategy: \"FREQUENT\",\n documentation: {\n summary:\n \"Comprehensive toll rate data for all trips including pricing, messages, and version tracking.\",\n description:\n \"Container for toll trip rates supporting current data, historical date ranges, and version-specific queries. Includes pricing details, informational messages, and version tracking for transportation planning.\",\n useCases: [\n \"Retrieve current toll rates for all trips.\",\n \"Analyze historical toll pricing trends.\",\n \"Access version-specific rate data for change tracking.\",\n ],\n updateFrequency: \"5m\",\n },\n endpoints: [tollTripRatesMeta, tripRatesByDateMeta, tripRatesByVersionMeta],\n};\n","import type { EndpointMeta } from \"@/apis/types\";\nimport {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} from \"@/shared/factories\";\nimport { wsdotTollRatesApiMeta } from \"../apiMeta\";\nimport {\n type TollTripRatesInput,\n tollTripRatesInputSchema,\n} from \"./shared/tollTripRates.input\";\nimport {\n type TollTripsRates,\n tollTripsRatesSchema,\n} from \"./shared/tollTripRates.output\";\n\n/**\n * Metadata for the fetchTollTripRates endpoint\n */\nexport const tollTripRatesMeta = {\n functionName: \"fetchTollTripRates\",\n endpoint: \"/getTollTripRatesAsJson\",\n inputSchema: tollTripRatesInputSchema,\n outputSchema: tollTripsRatesSchema,\n sampleParams: {},\n endpointDescription: \"Get current toll rates for all trips.\",\n} satisfies EndpointMeta<TollTripRatesInput, TollTripsRates>;\n\n/**\n * Fetch function for retrieving current toll rates for all trips\n */\nconst { fetch, useHook } = createFetchAndHook<\n TollTripRatesInput,\n TollTripsRates\n>({\n api: wsdotTollRatesApiMeta,\n endpoint: tollTripRatesMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/tollTripRates.endpoints\").tollTripRatesGroup\n .cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving current toll rates for all trips\n */\nexport const fetchTollTripRates: FetchFactory<\n TollTripRatesInput,\n TollTripsRates\n> = fetch;\n\n/**\n * React Query hook for retrieving current toll rates for all trips\n */\nexport const useTollTripRates: HookFactory<TollTripRatesInput, TollTripsRates> =\n useHook;\n","import type { EndpointGroupMeta } from \"@/apis/types\";\nimport { tollTripVersionMeta } from \"../tollTripVersion\";\n\n/**\n * Endpoint group metadata for toll trip version endpoints\n */\nexport const tollTripVersionGroup: EndpointGroupMeta = {\n name: \"toll-trip-version\",\n cacheStrategy: \"FREQUENT\",\n documentation: {\n summary: \"Version and timestamp information for toll trip data.\",\n description:\n \"Current version number and timestamp for toll trip rates data, enabling cache management and data freshness tracking.\",\n useCases: [\n \"Check data freshness before fetching toll rates.\",\n \"Determine when to invalidate cached toll rate data.\",\n \"Track version changes for toll trip rates.\",\n ],\n updateFrequency: \"5m\",\n },\n endpoints: [tollTripVersionMeta],\n};\n","import type { EndpointMeta } from \"@/apis/types\";\nimport {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} from \"@/shared/factories\";\nimport { wsdotTollRatesApiMeta } from \"../apiMeta\";\nimport {\n type TollTripVersionInput,\n tollTripVersionInputSchema,\n} from \"./shared/tollTripVersion.input\";\nimport {\n type TollTripVersion,\n tollTripVersionSchema,\n} from \"./shared/tollTripVersion.output\";\n\n/**\n * Metadata for the fetchTollTripVersion endpoint\n */\nexport const tollTripVersionMeta = {\n functionName: \"fetchTollTripVersion\",\n endpoint: \"/getTollTripVersionAsJson\",\n inputSchema: tollTripVersionInputSchema,\n outputSchema: tollTripVersionSchema,\n sampleParams: {},\n endpointDescription: \"Get current version and timestamp for toll trip data.\",\n} satisfies EndpointMeta<TollTripVersionInput, TollTripVersion>;\n\n/**\n * Fetch function for retrieving current version and timestamp for toll trip data\n */\nconst { fetch, useHook } = createFetchAndHook<\n TollTripVersionInput,\n TollTripVersion\n>({\n api: wsdotTollRatesApiMeta,\n endpoint: tollTripVersionMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/tollTripVersion.endpoints\").tollTripVersionGroup\n .cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving current version and timestamp for toll trip data\n */\nexport const fetchTollTripVersion: FetchFactory<\n TollTripVersionInput,\n TollTripVersion\n> = fetch;\n\n/**\n * React Query hook for retrieving current version and timestamp for toll trip data\n */\nexport const useTollTripVersion: HookFactory<\n TollTripVersionInput,\n TollTripVersion\n> = useHook;\n"]}