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.75 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","init_cvRestrictionData_input","__esmMin","init_zod","z","cvRestrictionSchema","init_cvRestrictionData_output","init_shared","roadwayLocationSchema","commercialVehicleRestrictionsWithIdInputSchema","init_cvRestrictionDataWithId_input","cvRestrictionWithIdSchema","init_cvRestrictionDataWithId_output"],"mappings":"+IAAA,IAEaA,CAAAA,CAFbC,CAAAA,CAAAC,GAAAA,CAAA,IAAA,CAAAC,IAEaH,CAAAA,CAA2CI,GAAAA,CACrD,MAAA,CAAO,EAAE,CAAA,CACT,QAAA,CACC,gFACF,EAAA,CAAA,MCHWC,CAAAA,CAHbC,CAAAA,CAAAJ,GAAAA,CAAA,IAAA,CAAAK,GAAAA,EAAAA,CACAJ,CAAAA,EAAAA,CAEaE,CAAAA,CAAsBD,GAAAA,CAChC,OAAO,CACN,SAAA,CAAWA,GAAAA,CACR,MAAA,GACA,QAAA,EAAS,CACT,QAAA,CACC,gEACF,EACF,UAAA,CAAYA,GAAAA,CACT,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CAAS,qDAAqD,EACjE,YAAA,CAAcA,GAAAA,CACX,MAAA,EAAO,CACP,UAAS,CACT,QAAA,CACC,oEACF,CAAA,CACF,WAAYA,GAAAA,CACT,MAAA,EAAO,CACP,QAAA,GACA,QAAA,CAAS,wDAAwD,CAAA,CACpE,aAAA,CAAeA,IAAE,IAAA,EAAK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B,MAAA,EAAO,CACP,UAAS,CACT,QAAA,CAAS,4CAA4C,CAAA,CACxD,yBAA0BA,GAAAA,CACvB,MAAA,EAAO,CACP,QAAA,GACA,QAAA,CAAS,2CAA2C,CAAA,CACvD,SAAA,CAAWA,IACR,MAAA,EAAO,CACP,QAAA,EAAS,CACT,SACC,kEACF,CAAA,CACF,oBAAA,CAAsBI,GAAAA,CACnB,UAAS,CACT,QAAA,CAAS,sDAAsD,CAAA,CAClE,MAAOJ,GAAAA,CACJ,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CACC,iEACF,CAAA,CACF,aAAcA,GAAAA,CACX,MAAA,EAAO,CACP,QAAA,GACA,QAAA,CAAS,uDAAuD,CAAA,CACnE,SAAA,CAAWA,IACR,MAAA,EAAO,CACP,QAAA,EAAS,CACT,SACC,gEACF,CAAA,CACF,WAAA,CAAaA,GAAAA,CACV,QAAO,CACP,QAAA,EAAS,CACT,QAAA,CAAS,8CAA8C,CAC5D,CAAC,CAAA,CACA,QAAA,CACC,6NACF,EAAA,CAAA,ECxIF,IAEaK,CAAAA,CAFbC,CAAAA,CAAAR,GAAAA,CAAA,IAAA,CAAAC,CAAAA,EAAAA,CAEaM,CAAAA,CAAiDL,IAC3D,MAAA,CAAO,EAAE,CAAA,CACT,SACC,wGACF,EAAA,CAAA,ECNF,IAGaO,CAAAA,CAHbC,EAAAV,GAAAA,CAAA,IAAA,CAAAC,CAAAA,EAAAA,CACAG,CAAAA,EAAAA,CAEaK,EAA4BN,CAAAA,CACtC,MAAA,CAAO,CACN,QAAA,CAAUD,IACP,MAAA,EAAO,CACP,QAAA,EAAS,CACT,SACC,sHACF,CACJ,CAAC,CAAA,CACA,SACC,4QACF,EAAA,CAAA","file":"chunk-LCSGVHHN.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 } 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: z.date().describe(\n \"UTC datetime when the commercial vehicle restriction becomes effective.\"\n ),\n DateExpires: z.date().describe(\n \"UTC datetime when the commercial vehicle restriction expires.\"\n ),\n DatePosted: z.date().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"]}