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 • 19.7 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","tollRatesFactory","fetchTollRates","useTollRates","init_factories","init_tollRates_input","init_tollRates_output","tollRatesInputSchema","tollRateSchema","createFetchAndHook","i","tollTripInfo_endpoints_exports","tollTripInfoGroup","init_tollTripInfo_endpoints","init_tollTripInfo","tollTripInfoMeta","tollTripInfoFactory","fetchTollTripInfo","useTollTripInfo","init_tollTripInfo_input","init_tollTripInfo_output","tollTripInfoInputSchema","tollTripInfoSchema","tripRatesByDateMeta","tripRatesByDateFactory","fetchTripRatesByDate","useTripRatesByDate","init_tripRatesByDate","init_utils","init_tollTripRates_input","init_tollTripRates_output","tripRatesByDateInputSchema","tollTripsRatesSchema","datesHelper","tripRatesByVersionMeta","tripRatesByVersionFactory","fetchTripRatesByVersion","useTripRatesByVersion","init_tripRatesByVersion","tripRatesByVersionInputSchema","tollTripRates_endpoints_exports","tollTripRatesGroup","init_tollTripRates_endpoints","init_tollTripRates","tollTripRatesMeta","tollTripRatesFactory","fetchTollTripRates","useTollTripRates","tollTripRatesInputSchema","tollTripVersion_endpoints_exports","tollTripVersionGroup","init_tollTripVersion_endpoints","init_tollTripVersion","tollTripVersionMeta","tollTripVersionFactory","fetchTollTripVersion","useTollTripVersion","init_tollTripVersion_input","init_tollTripVersion_output","tollTripVersionInputSchema","tollTripVersionSchema"],"mappings":"wVAAA,IAKaA,CAAAA,CALbC,CAAAA,CAAAC,CAAAA,CAAA,IAAA,CAKaF,CAAAA,CAAiC,CAC5C,IAAA,CAAM,kBAAA,CACN,OAAA,CAAS,kEACX,EAAA,CAAA,ECRA,IAAAG,EAAA,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,aACN,aAAA,CAAe,UAAA,CACf,aAAA,CAAe,CACb,OAAA,CACE,2EAAA,CACF,WAAA,CACE,kJAAA,CACF,QAAA,CAAU,CACR,iDAAA,CACA,kDAAA,CACA,wDACF,CAAA,CACA,gBAAiB,IACnB,CAAA,CACA,SAAA,CAAW,CAACG,CAAa,CAC3B,EAAA,CAAA,ECtBA,IAYaA,CAAAA,CAaPC,CAAAA,CAUgBC,EAAAA,CAAsBC,EAAAA,CAnC5CJ,CAAAA,CAAAL,CAAAA,CAAA,KACAU,CAAAA,EAAAA,CACAX,CAAAA,EAAAA,CACAY,GAAAA,EAAAA,CAIAC,GAAAA,EAAAA,CAKaN,CAAAA,CAAgB,CAC3B,aAAc,gBAAA,CACd,QAAA,CAAU,qBAAA,CACV,WAAA,CAAaO,GAAAA,CACb,YAAA,CAAcC,EAAe,KAAA,EAAM,CACnC,YAAA,CAAc,EAAC,CACf,mBAAA,CACE,2DACJ,CAAA,CAKMP,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AA,CAAsB,IAAA,CAAMC,EAAAA,CAAAA,CAChDF,GAAAA,CAAAA","file":"chunk-NHHOSIRD.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 { createFetchAndHook } 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 * Factory result for toll rates\n */\nconst tollRatesFactory = createFetchAndHook<TollRatesInput, TollRate[]>({\n api: wsdotTollRatesApiMeta,\n endpoint: tollRatesMeta,\n getEndpointGroup: () =>\n require(\"./shared/tollRates.endpoints\").tollRatesGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving current toll rates for all HOV toll lanes statewide\n */\nexport const { fetch: fetchTollRates, hook: useTollRates } = tollRatesFactory;\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 { createFetchAndHook } 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 * Factory result for toll trip info\n */\nconst tollTripInfoFactory = createFetchAndHook<\n TollTripInfoInput,\n TollTripInfo[]\n>({\n api: wsdotTollRatesApiMeta,\n endpoint: tollTripInfoMeta,\n getEndpointGroup: () =>\n require(\"./shared/tollTripInfo.endpoints\").tollTripInfoGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving trip information for all toll trips statewide\n */\nexport const { fetch: fetchTollTripInfo, hook: useTollTripInfo } =\n tollTripInfoFactory;\n","import type { EndpointMeta } from \"@/apis/types\";\nimport { createFetchAndHook } 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 * Factory result for trip rates by date\n */\nconst tripRatesByDateFactory = createFetchAndHook<\n TripRatesByDateInput,\n TollTripsRates[]\n>({\n api: wsdotTollRatesApiMeta,\n endpoint: tripRatesByDateMeta,\n getEndpointGroup: () =>\n require(\"./shared/tollTripRates.endpoints\").tollTripRatesGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving historical toll rates for a specified date range\n */\nexport const { fetch: fetchTripRatesByDate, hook: useTripRatesByDate } =\n tripRatesByDateFactory;\n","import type { EndpointMeta } from \"@/apis/types\";\nimport { createFetchAndHook } 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 * Factory result for trip rates by version\n */\nconst tripRatesByVersionFactory = createFetchAndHook<\n TripRatesByVersionInput,\n TollTripsRates\n>({\n api: wsdotTollRatesApiMeta,\n endpoint: tripRatesByVersionMeta,\n getEndpointGroup: () =>\n require(\"./shared/tollTripRates.endpoints\").tollTripRatesGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving toll rates for a specific version number\n */\nexport const { fetch: fetchTripRatesByVersion, hook: useTripRatesByVersion } =\n tripRatesByVersionFactory;\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 { createFetchAndHook } 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 * Factory result for toll trip rates\n */\nconst tollTripRatesFactory = createFetchAndHook<\n TollTripRatesInput,\n TollTripsRates\n>({\n api: wsdotTollRatesApiMeta,\n endpoint: tollTripRatesMeta,\n getEndpointGroup: () =>\n require(\"./shared/tollTripRates.endpoints\").tollTripRatesGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving current toll rates for all trips\n */\nexport const { fetch: fetchTollTripRates, hook: useTollTripRates } =\n tollTripRatesFactory;\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 { createFetchAndHook } 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 * Factory result for toll trip version\n */\nconst tollTripVersionFactory = createFetchAndHook<\n TollTripVersionInput,\n TollTripVersion\n>({\n api: wsdotTollRatesApiMeta,\n endpoint: tollTripVersionMeta,\n getEndpointGroup: () =>\n require(\"./shared/tollTripVersion.endpoints\").tollTripVersionGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving current version and timestamp for toll trip data\n */\nexport const { fetch: fetchTollTripVersion, hook: useTollTripVersion } =\n tollTripVersionFactory;\n"]}