UNPKG

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 9.22 kB
{"version":3,"sources":["../src/apis/wsdot-commercial-vehicle-restrictions/apiMeta.ts","../src/apis/wsdot-commercial-vehicle-restrictions/cvRestrictionData/shared/cvRestrictionData.endpoints.ts","../src/apis/wsdot-commercial-vehicle-restrictions/cvRestrictionData/commercialVehicleRestrictions.ts","../src/apis/wsdot-commercial-vehicle-restrictions/cvRestrictionDataWithId/shared/cvRestrictionDataWithId.endpoints.ts","../src/apis/wsdot-commercial-vehicle-restrictions/cvRestrictionDataWithId/commercialVehicleRestrictionsWithId.ts"],"names":["wsdotCommercialVehicleRestrictionsApiMeta","init_apiMeta","__esmMin","cvRestrictionData_endpoints_exports","__export","cvRestrictionDataGroup","init_cvRestrictionData_endpoints","init_commercialVehicleRestrictions","commercialVehicleRestrictionsMeta","commercialVehicleRestrictionsFactory","fetchCommercialVehicleRestrictions","useCommercialVehicleRestrictions","init_factories","init_cvRestrictionData_input","init_cvRestrictionData_output","commercialVehicleRestrictionsInputSchema","cvRestrictionSchema","createFetchAndHook","cvRestrictionDataWithId_endpoints_exports","cvRestrictionDataWithIdGroup","init_cvRestrictionDataWithId_endpoints","init_commercialVehicleRestrictionsWithId","commercialVehicleRestrictionsWithIdMeta","commercialVehicleRestrictionsWithIdFactory","fetchCommercialVehicleRestrictionsWithId","useCommercialVehicleRestrictionsWithId","init_cvRestrictionDataWithId_input","init_cvRestrictionDataWithId_output","commercialVehicleRestrictionsWithIdInputSchema","cvRestrictionWithIdSchema","n"],"mappings":"oLAAA,IAKaA,EALbC,CAAAA,CAAAC,CAAAA,CAAA,KAKaF,CAAAA,CAAqD,CAChE,KAAM,uCAAA,CACN,OAAA,CACE,4EACJ,EAAA,CAAA,ECTA,IAAAG,EAAA,EAAA,CAAAC,CAAAA,CAAAD,EAAA,CAAA,sBAAA,CAAA,IAAAE,CAAAA,CAAAA,CAAAA,KAMaA,CAAA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CRJ,CAAAA,CAAAnB,CAAAA,CAAA,KACAU,CAAAA,EAAAA,CACAX,CAAAA,EAAAA,CACAyB,MAIAC,CAAAA,EAAAA,CAQaL,CAAAA,CAA0C,CACrD,YAAA,CAAc,0CAAA,CACd,SAAU,+CAAA,CACV,WAAA,CAAaM,IACb,YAAA,CAAcC,CAAAA,CAA0B,OAAM,CAC9C,YAAA,CAAc,EAAC,CACf,mBAAA,CACE,iGACJ,CAAA,CAQMN,CAAAA,CAA6CN,EAGjD,CACA,GAAA,CAAKjB,EACL,QAAA,CAAUsB,CAAAA,CACV,iBAAkB,IAChB,CAAA,CAAA,EAAA,CAAAQ,GAAA,CAAA,CAAA,CAAA,EACG,4BACP,CAAC,CAAA,CAKY,CACX,KAAA,CAAON,CAAAA,CACP,KAAMC,CAAAA,CAAAA,CACJF,EAAAA,CAAAA","file":"chunk-MZCHWHML.mjs","sourcesContent":["import type { ApiMeta } from \"@/apis/types\";\n\n/**\n * API metadata for WSDOT Commercial Vehicle Restrictions API\n */\nexport const wsdotCommercialVehicleRestrictionsApiMeta: ApiMeta = {\n name: \"wsdot-commercial-vehicle-restrictions\",\n baseUrl:\n \"https://www.wsdot.wa.gov/traffic/api/cvrestrictions/cvrestrictionsrest.svc\",\n};\n","import type { EndpointGroupMeta } from \"@/apis/types\";\nimport { commercialVehicleRestrictionsMeta } from \"../commercialVehicleRestrictions\";\n\n/**\n * Endpoint group metadata for commercial vehicle restriction data endpoints\n */\nexport const cvRestrictionDataGroup: EndpointGroupMeta = {\n name: \"cv-restriction-data\",\n cacheStrategy: \"STATIC\",\n documentation: {\n summary: \"Commercial vehicle restrictions for Washington State highways.\",\n description:\n \"Weight limits, height clearances, axle restrictions, and location details for bridge and road restrictions statewide.\",\n useCases: [\n \"Check vehicle restrictions for commercial route planning.\",\n \"Determine route feasibility and permit requirements.\",\n \"Identify weight and height limitations for trucking operations.\",\n ],\n updateFrequency: \"daily\",\n },\n endpoints: [commercialVehicleRestrictionsMeta],\n};\n","import type { EndpointMeta } from \"@/apis/types\";\nimport { createFetchAndHook } from \"@/shared/factories\";\nimport { wsdotCommercialVehicleRestrictionsApiMeta } from \"../apiMeta\";\nimport {\n type CommercialVehicleRestrictionsInput,\n commercialVehicleRestrictionsInputSchema,\n} from \"./shared/cvRestrictionData.input\";\nimport {\n type CVRestriction,\n cvRestrictionSchema,\n} from \"./shared/cvRestrictionData.output\";\n\n/**\n * Metadata for the fetchCommercialVehicleRestrictions endpoint\n */\nexport const commercialVehicleRestrictionsMeta = {\n functionName: \"fetchCommercialVehicleRestrictions\",\n endpoint: \"/getCommercialVehicleRestrictionsAsJson\",\n inputSchema: commercialVehicleRestrictionsInputSchema,\n outputSchema: cvRestrictionSchema.array(),\n sampleParams: {},\n endpointDescription:\n \"List commercial vehicle restrictions for all Washington State highways.\",\n} satisfies EndpointMeta<CommercialVehicleRestrictionsInput, CVRestriction[]>;\n\n/**\n * Factory result for commercial vehicle restrictions\n */\nconst commercialVehicleRestrictionsFactory = createFetchAndHook<\n CommercialVehicleRestrictionsInput,\n CVRestriction[]\n>({\n api: wsdotCommercialVehicleRestrictionsApiMeta,\n endpoint: commercialVehicleRestrictionsMeta,\n getEndpointGroup: () =>\n require(\"./shared/cvRestrictionData.endpoints\").cvRestrictionDataGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving commercial vehicle restrictions for all Washington State highways\n */\nexport const {\n fetch: fetchCommercialVehicleRestrictions,\n hook: useCommercialVehicleRestrictions,\n} = commercialVehicleRestrictionsFactory;\n","import type { EndpointGroupMeta } from \"@/apis/types\";\nimport { commercialVehicleRestrictionsWithIdMeta } from \"../commercialVehicleRestrictionsWithId\";\n\n/**\n * Endpoint group metadata for commercial vehicle restriction data with ID endpoints\n */\nexport const cvRestrictionDataWithIdGroup: EndpointGroupMeta = {\n name: \"cv-restriction-data-with-id\",\n cacheStrategy: \"STATIC\",\n documentation: {\n summary:\n \"Commercial vehicle restrictions with unique identifiers for Washington State highways.\",\n description:\n \"Weight limits, height clearances, axle restrictions, and location details with unique tracking IDs for bridge and road restrictions statewide.\",\n useCases: [\n \"Track specific restrictions using unique identifiers.\",\n \"Monitor restriction changes over time.\",\n \"Manage permit requirements with ID-based lookups.\",\n ],\n updateFrequency: \"daily\",\n },\n endpoints: [commercialVehicleRestrictionsWithIdMeta],\n};\n","import type { EndpointMeta } from \"@/apis/types\";\nimport { createFetchAndHook } from \"@/shared/factories\";\nimport { wsdotCommercialVehicleRestrictionsApiMeta } from \"../apiMeta\";\nimport {\n type CommercialVehicleRestrictionsWithIdInput,\n commercialVehicleRestrictionsWithIdInputSchema,\n} from \"./shared/cvRestrictionDataWithId.input\";\nimport {\n type CVRestrictionWithId,\n cvRestrictionWithIdSchema,\n} from \"./shared/cvRestrictionDataWithId.output\";\n\n/**\n * Metadata for the fetchCommercialVehicleRestrictionsWithId endpoint\n */\nexport const commercialVehicleRestrictionsWithIdMeta = {\n functionName: \"fetchCommercialVehicleRestrictionsWithId\",\n endpoint: \"/getCommercialVehicleRestrictionsWithIdAsJson\",\n inputSchema: commercialVehicleRestrictionsWithIdInputSchema,\n outputSchema: cvRestrictionWithIdSchema.array(),\n sampleParams: {},\n endpointDescription:\n \"List commercial vehicle restrictions with unique identifiers for all Washington State highways.\",\n} satisfies EndpointMeta<\n CommercialVehicleRestrictionsWithIdInput,\n CVRestrictionWithId[]\n>;\n\n/**\n * Factory result for commercial vehicle restrictions with ID\n */\nconst commercialVehicleRestrictionsWithIdFactory = createFetchAndHook<\n CommercialVehicleRestrictionsWithIdInput,\n CVRestrictionWithId[]\n>({\n api: wsdotCommercialVehicleRestrictionsApiMeta,\n endpoint: commercialVehicleRestrictionsWithIdMeta,\n getEndpointGroup: () =>\n require(\"./shared/cvRestrictionDataWithId.endpoints\")\n .cvRestrictionDataWithIdGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving commercial vehicle restrictions with unique identifiers for all Washington State highways\n */\nexport const {\n fetch: fetchCommercialVehicleRestrictionsWithId,\n hook: useCommercialVehicleRestrictionsWithId,\n} = commercialVehicleRestrictionsWithIdFactory;\n"]}