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 5.33 kB
{"version":3,"sources":["../src/apis/wsdot-mountain-pass-conditions/passConditions/shared/passConditions.input.ts","../src/apis/wsdot-mountain-pass-conditions/passConditions/shared/passConditions.output.ts"],"names":["mountainPassConditionsInputSchema","mountainPassConditionByIdInputSchema","init_passConditions_input","__esmMin","init_zod","z","travelRestrictionSchema","passConditionSchema","init_passConditions_output"],"mappings":"mFAAA,IAEaA,EAQAC,CAAAA,CAVbC,CAAAA,CAAAC,EAAA,IAAA,CAAAC,CAAAA,EAAAA,CAEaJ,EAAoCK,GAAAA,CAC9C,MAAA,CAAO,EAAE,EACT,QAAA,CAAS,+DAA+D,EAM9DJ,CAAAA,CAAuCI,GAAAA,CACjD,OAAO,CACN,eAAA,CAAiBA,GAAAA,CAAE,MAAA,GAAS,GAAA,EAAI,CAAE,SAAS,kCAAkC,CAC/E,CAAC,CAAA,CACA,QAAA,CACC,2EACF,EAAA,CAAA,MCdWC,CAAAA,CAqBAC,CAAAA,CAvBbC,EAAAL,CAAAA,CAAA,IAAA,CAAAC,IAEaE,CAAAA,CAA0BD,GAAAA,CACpC,MAAA,CAAO,CACN,gBAAiBA,GAAAA,CACd,MAAA,GACA,QAAA,EAAS,CACT,SACC,wIACF,CAAA,CACF,eAAA,CAAiBA,GAAAA,CACd,QAAO,CACP,QAAA,GACA,QAAA,CACC,0HACF,CACJ,CAAC,CAAA,CACA,QAAA,CACC,yIACF,EAIWE,CAAAA,CAAsBF,GAAAA,CAChC,OAAO,CACN,cAAA,CAAgBA,IAAE,MAAA,EAAO,CAAE,KAAI,CAAE,QAAA,CAAS,kCAAkC,CAAA,CAC5E,gBAAA,CAAkBA,IACf,MAAA,EAAO,CACP,UAAS,CACT,QAAA,CAAS,oCAAoC,CAAA,CAChD,SAAUA,GAAAA,CACP,MAAA,GACA,QAAA,CAAS,mDAAmD,EAC/D,SAAA,CAAWA,GAAAA,CACR,MAAA,EAAO,CACP,SAAS,oDAAoD,CAAA,CAChE,YAAaA,GAAAA,CAAE,IAAA,GAAO,QAAA,CACpB,6DACF,CAAA,CACA,uBAAA,CAAyBA,IACtB,MAAA,EAAO,CACP,KAAI,CACJ,QAAA,GACA,QAAA,CACC,iEACF,CAAA,CACF,eAAA,CAAiBA,IACd,MAAA,EAAO,CACP,KAAI,CACJ,QAAA,GACA,QAAA,CAAS,yDAAyD,CAAA,CACrE,gBAAA,CAAkBA,IACf,MAAA,EAAO,CACP,UAAS,CACT,QAAA,CAAS,kDAAkD,CAAA,CAC9D,aAAA,CAAeA,GAAAA,CACZ,MAAA,GACA,QAAA,EAAS,CACT,SAAS,0DAA0D,CAAA,CACtE,qBAAsBA,GAAAA,CACnB,OAAA,EAAQ,CACR,QAAA,CACC,8EACF,CAAA,CACF,cAAA,CAAgBC,EACb,QAAA,EAAS,CACT,SACC,uEACF,CAAA,CACF,eAAgBA,CAAAA,CACb,QAAA,GACA,QAAA,CACC,yEACF,CACJ,CAAC,CAAA,CACA,SACC,0KACF,EAAA,CAAA","file":"chunk-N2M2TSJW.mjs","sourcesContent":["import { z } from \"@/shared/zod\";\n\nexport const mountainPassConditionsInputSchema = z\n .object({})\n .describe(\"Input parameters for retrieving all mountain pass conditions.\");\n\nexport type MountainPassConditionsInput = z.infer<\n typeof mountainPassConditionsInputSchema\n>;\n\nexport const mountainPassConditionByIdInputSchema = z\n .object({\n PassConditionID: z.number().int().describe(\"Numeric ID of the mountain pass.\"),\n })\n .describe(\n \"Input parameters for retrieving a specific mountain pass condition by ID.\"\n );\n\nexport type MountainPassConditionByIdInput = z.infer<\n typeof mountainPassConditionByIdInputSchema\n>;\n","import { z } from \"@/shared/zod\";\n\nexport const travelRestrictionSchema = z\n .object({\n RestrictionText: z\n .string()\n .nullable()\n .describe(\n \"Text description of travel restrictions for this direction, such as 'No restrictions', 'Closed for the season', or chain requirements.\"\n ),\n TravelDirection: z\n .string()\n .nullable()\n .describe(\n \"Direction of travel for which this restriction applies, such as 'Eastbound', 'Westbound', 'Northbound', or 'Southbound'.\"\n ),\n })\n .describe(\n \"Travel restriction information for a specific direction on a mountain pass, including restriction text and applicable travel direction.\"\n );\n\nexport type TravelRestriction = z.infer<typeof travelRestrictionSchema>;\n\nexport const passConditionSchema = z\n .object({\n MountainPassId: z.number().int().describe(\"Numeric ID of the mountain pass.\"),\n MountainPassName: z\n .string()\n .nullable()\n .describe(\"Display name of the mountain pass.\"),\n Latitude: z\n .number()\n .describe(\"Latitude of the mountain pass in decimal degrees.\"),\n Longitude: z\n .number()\n .describe(\"Longitude of the mountain pass in decimal degrees.\"),\n DateUpdated: z.date().describe(\n \"UTC datetime when the pass condition data was last updated.\"\n ),\n TemperatureInFahrenheit: z\n .number()\n .int()\n .nullable()\n .describe(\n \"Current temperature at the mountain pass in degrees Fahrenheit.\"\n ),\n ElevationInFeet: z\n .number()\n .int()\n .nullable()\n .describe(\"Elevation of the mountain pass above sea level in feet.\"),\n WeatherCondition: z\n .string()\n .nullable()\n .describe(\"Current weather conditions at the mountain pass.\"),\n RoadCondition: z\n .string()\n .nullable()\n .describe(\"Current roadway surface conditions at the mountain pass.\"),\n TravelAdvisoryActive: z\n .boolean()\n .describe(\n \"True if a travel advisory is currently active for the pass; otherwise false.\"\n ),\n RestrictionOne: travelRestrictionSchema\n .nullable()\n .describe(\n \"Travel restriction information for the primary direction of the pass.\"\n ),\n RestrictionTwo: travelRestrictionSchema\n .nullable()\n .describe(\n \"Travel restriction information for the secondary direction of the pass.\"\n ),\n })\n .describe(\n \"Real-time mountain pass condition information including weather, road surface conditions, temperature, elevation, travel restrictions by direction, and advisory status.\"\n );\n\nexport type PassCondition = z.infer<typeof passConditionSchema>;\n"]}