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.42 kB
{"version":3,"sources":["../src/apis/wsdot-commercial-vehicle-restrictions/cvRestrictionData/shared/cvRestrictionData.input.ts","../src/apis/wsdot-commercial-vehicle-restrictions/cvRestrictionData/shared/cvRestrictionData.output.ts","../src/apis/wsdot-commercial-vehicle-restrictions/cvRestrictionDataWithId/shared/cvRestrictionDataWithId.input.ts","../src/apis/wsdot-commercial-vehicle-restrictions/cvRestrictionDataWithId/shared/cvRestrictionDataWithId.output.ts"],"names":["commercialVehicleRestrictionsInputSchema","z","cvRestrictionSchema","zDotnetDate","roadwayLocationSchema","commercialVehicleRestrictionsWithIdInputSchema","cvRestrictionWithIdSchema"],"mappings":"sHAEO,IAAMA,CAAAA,CAA2CC,CAAAA,CACrD,MAAA,CAAO,EAAE,CAAA,CACT,QAAA,CACC,gFACF,ECHK,IAAMC,CAAAA,CAAsBD,CAAAA,CAChC,OAAO,CACN,SAAA,CAAWA,CAAAA,CACR,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CACC,gEACF,CAAA,CACF,UAAA,CAAYA,CAAAA,CACT,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CAAS,qDAAqD,CAAA,CACjE,YAAA,CAAcA,CAAAA,CACX,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CACC,oEACF,CAAA,CACF,UAAA,CAAYA,CAAAA,CACT,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CAAS,wDAAwD,CAAA,CACpE,aAAA,CAAeE,CAAAA,EAAY,CAAE,QAAA,CAC3B,yEACF,CAAA,CACA,WAAA,CAAaA,GAAY,CAAE,QAAA,CACzB,+DACF,CAAA,CACA,UAAA,CAAYA,CAAAA,EAAY,CAAE,QAAA,CACxB,wEACF,CAAA,CACA,kBAAA,CAAoBC,GAAAA,CACjB,QAAA,EAAS,CACT,QAAA,CAAS,oDAAoD,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A,GACA,QAAA,EAAS,CACT,QAAA,CACC,kEACF,CAAA,CACF,oBAAA,CAAsBG,GAAAA,CACnB,QAAA,GACA,QAAA,CAAS,sDAAsD,CAAA,CAClE,KAAA,CAAOH,CAAAA,CACJ,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CACC,iEACF,CAAA,CACF,YAAA,CAAcA,CAAAA,CACX,MAAA,EAAO,CACP,UAAS,CACT,QAAA,CAAS,uDAAuD,CAAA,CACnE,SAAA,CAAWA,CAAAA,CACR,MAAA,EAAO,CACP,UAAS,CACT,QAAA,CACC,gEACF,CAAA,CACF,WAAA,CAAaA,CAAAA,CACV,MAAA,EAAO,CACP,UAAS,CACT,QAAA,CAAS,8CAA8C,CAC5D,CAAC,CAAA,CACA,QAAA,CACC,6NACF,ECtIK,IAAMI,CAAAA,CAAiDJ,CAAAA,CAC3D,MAAA,CAAO,EAAE,CAAA,CACT,QAAA,CACC,wGACF,ECHK,IAAMK,CAAAA,CAA4BJ,CAAAA,CACtC,MAAA,CAAO,CACN,QAAA,CAAUD,CAAAA,CACP,QAAO,CACP,QAAA,EAAS,CACT,QAAA,CACC,sHACF,CACJ,CAAC,CAAA,CACA,SACC,4QACF","file":"chunk-GTMPMYQQ.mjs","sourcesContent":["import { z } from \"@/shared/zod\";\n\nexport const commercialVehicleRestrictionsInputSchema = z\n .object({})\n .describe(\n \"Input parameters for retrieving all commercial vehicle restrictions statewide.\"\n );\n\nexport type CommercialVehicleRestrictionsInput = z.infer<\n typeof commercialVehicleRestrictionsInputSchema\n>;\n","import { roadwayLocationSchema, zDotnetDate } from \"@/apis/shared\";\nimport { z } from \"@/shared/zod\";\n\nexport const cvRestrictionSchema = z\n .object({\n BLMaxAxle: z\n .number()\n .nullable()\n .describe(\n \"Maximum axle weight for Bridge Legal classification in pounds.\"\n ),\n BridgeName: z\n .string()\n .nullable()\n .describe(\"Name of the bridge associated with the restriction.\"),\n BridgeNumber: z\n .string()\n .nullable()\n .describe(\n \"WSDOT bridge identifier in format 'route/bridge' (e.g., '10/142').\"\n ),\n CL8MaxAxle: z\n .number()\n .nullable()\n .describe(\"Maximum axle weight for CL-8 classification in pounds.\"),\n DateEffective: zDotnetDate().describe(\n \"UTC datetime when the commercial vehicle restriction becomes effective.\"\n ),\n DateExpires: zDotnetDate().describe(\n \"UTC datetime when the commercial vehicle restriction expires.\"\n ),\n DatePosted: zDotnetDate().describe(\n \"UTC datetime when the commercial vehicle restriction was first posted.\"\n ),\n EndRoadwayLocation: roadwayLocationSchema\n .nullable()\n .describe(\"End location of the restriction along the roadway.\"),\n IsDetourAvailable: z\n .boolean()\n .describe(\n \"True if a detour route is available around the restriction; otherwise false.\"\n ),\n IsExceptionsAllowed: z\n .boolean()\n .describe(\n \"True if exceptions are permitted for the restriction; otherwise false.\"\n ),\n IsPermanentRestriction: z\n .boolean()\n .describe(\n \"True if the restriction is permanent; otherwise false (temporary).\"\n ),\n IsWarning: z\n .boolean()\n .describe(\n \"True if the restriction is a warning rather than an enforceable limit; otherwise false.\"\n ),\n Latitude: z\n .number()\n .describe(\n \"GPS latitude coordinate for the restriction location in decimal degrees.\"\n ),\n LocationDescription: z\n .string()\n .nullable()\n .describe(\"Human-readable description of the restriction location.\"),\n LocationName: z\n .string()\n .nullable()\n .describe(\"Name of the location where the restriction applies.\"),\n Longitude: z\n .number()\n .describe(\n \"GPS longitude coordinate for the restriction location in decimal degrees.\"\n ),\n MaximumGrossVehicleWeightInPounds: z\n .number()\n .nullable()\n .describe(\"Maximum gross vehicle weight limit in pounds.\"),\n RestrictionComment: z\n .string()\n .nullable()\n .describe(\"Additional details and comments about the restriction.\"),\n RestrictionHeightInInches: z\n .number()\n .nullable()\n .describe(\"Maximum load height restriction in inches.\"),\n RestrictionLengthInInches: z\n .number()\n .nullable()\n .describe(\"Maximum load length restriction in inches.\"),\n RestrictionType: z\n .number()\n .describe(\n \"Code indicating restriction type: 0 = BridgeRestriction, 1 = RoadRestriction.\"\n ),\n RestrictionWeightInPounds: z\n .number()\n .nullable()\n .describe(\"Maximum load weight restriction in pounds.\"),\n RestrictionWidthInInches: z\n .number()\n .nullable()\n .describe(\"Maximum load width restriction in inches.\"),\n SAMaxAxle: z\n .number()\n .nullable()\n .describe(\n \"Maximum axle weight for Semi-Automatic classification in pounds.\"\n ),\n StartRoadwayLocation: roadwayLocationSchema\n .nullable()\n .describe(\"Start location of the restriction along the roadway.\"),\n State: z\n .string()\n .nullable()\n .describe(\n \"State code where the commercial vehicle restriction is located.\"\n ),\n StateRouteID: z\n .string()\n .nullable()\n .describe(\"State route identifier where the restriction applies.\"),\n TDMaxAxle: z\n .number()\n .nullable()\n .describe(\n \"Maximum axle weight for Tandem Drive classification in pounds.\"\n ),\n VehicleType: z\n .string()\n .nullable()\n .describe(\"Type of vehicle affected by the restriction.\"),\n })\n .describe(\n \"Commercial vehicle restriction information including weight limits by classification, height/width/length restrictions, location data, effective dates, and restriction type for bridge and roadway restrictions statewide.\"\n );\n\nexport type CVRestriction = z.infer<typeof cvRestrictionSchema>;\n\n// Re-export shared types\nexport type { RoadwayLocation } from \"@/apis/shared\";\n","import { z } from \"@/shared/zod\";\n\nexport const commercialVehicleRestrictionsWithIdInputSchema = z\n .object({})\n .describe(\n \"Input parameters for retrieving all commercial vehicle restrictions with unique identifiers statewide.\"\n );\n\nexport type CommercialVehicleRestrictionsWithIdInput = z.infer<\n typeof commercialVehicleRestrictionsWithIdInputSchema\n>;\n","import { z } from \"@/shared/zod\";\nimport { cvRestrictionSchema } from \"../../cvRestrictionData/shared/cvRestrictionData.output\";\n\nexport const cvRestrictionWithIdSchema = cvRestrictionSchema\n .extend({\n UniqueID: z\n .string()\n .nullable()\n .describe(\n \"Unique identifier for the commercial vehicle restriction in format 'Type-State-Route-Sequence' (e.g., 'B-WA-010-1').\"\n ),\n })\n .describe(\n \"Commercial vehicle restriction information with unique identifier, including weight limits by classification, height/width/length restrictions, location data, effective dates, restriction type, and unique restriction ID for bridge and roadway restrictions statewide.\"\n );\n\nexport type CVRestrictionWithId = z.infer<typeof cvRestrictionWithIdSchema>;\n"]}