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 12.4 kB
{"version":3,"sources":["../src/apis/wsdot-weather-readings/subSurfaceMeasurements/shared/subSurfaceMeasurements.input.ts","../src/apis/wsdot-weather-readings/subSurfaceMeasurements/shared/subSurfaceMeasurements.output.ts","../src/apis/wsdot-weather-readings/surfaceMeasurements/shared/surfaceMeasurements.input.ts","../src/apis/wsdot-weather-readings/surfaceMeasurements/shared/surfaceMeasurements.output.ts","../src/apis/wsdot-weather-readings/weatherReadings/shared/weatherReadings.input.ts","../src/apis/wsdot-weather-readings/weatherReadings/shared/weatherReadings.output.ts"],"names":["subSurfaceMeasurementsInputSchema","z","subsurfaceMeasurementSchema","surfaceMeasurementsInputSchema","surfaceMeasurementSchema","weatherReadingsInputSchema","weatherReadingSchema","zIsoDateString"],"mappings":"0EAOO,IAAMA,EAAoCC,CAAAA,CAC9C,MAAA,CAAO,EAAE,CAAA,CACT,SACC,yEACF,MCJWC,CAAAA,CAA8BD,CAAAA,CACxC,OAAO,CACN,QAAA,CAAUA,EACP,MAAA,EAAO,CACP,UAAS,CACT,QAAA,CAAS,sCAAsC,CAAA,CAClD,qBAAA,CAAuBA,EACpB,MAAA,EAAO,CACP,UAAS,CACT,QAAA,CACC,uFACF,CACJ,CAAC,EACA,QAAA,CACC,wGACF,ECfK,IAAME,CAAAA,CAAiCF,EAC3C,MAAA,CAAO,EAAE,CAAA,CACT,QAAA,CACC,sEACF,ECJK,IAAMG,EAA2BH,CAAAA,CACrC,MAAA,CAAO,CACN,QAAA,CAAUA,CAAAA,CACP,QAAO,CACP,QAAA,GACA,QAAA,CAAS,mCAAmC,EAC/C,kBAAA,CAAoBA,CAAAA,CACjB,QAAO,CACP,QAAA,GACA,QAAA,CAAS,0DAA0D,EACtE,uBAAA,CAAyBA,CAAAA,CACtB,QAAO,CACP,QAAA,GACA,QAAA,CACC,wFACF,EACF,oBAAA,CAAsBA,CAAAA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CAAA,CACA,SACC,uLACF","file":"chunk-VLWOUNWV.mjs","sourcesContent":["import { z } from \"@/shared/zod\";\n\n/**\n * GetSubSurfaceMeasurements input schema\n *\n * Input parameters for getting subsurface measurements.\n */\nexport const subSurfaceMeasurementsInputSchema = z\n .object({})\n .describe(\n \"Input parameters for listing subsurface measurements from all stations.\"\n );\n\nexport type SubSurfaceMeasurementsInput = z.infer<\n typeof subSurfaceMeasurementsInputSchema\n>;\n","import { z } from \"@/shared/zod\";\n\n/**\n * ScanwebSubSurfaceMeasurements schema\n *\n * Provides current information from weather stations. Coverage Area: Statewide.\n */\nexport const subsurfaceMeasurementSchema = z\n .object({\n SensorId: z\n .number()\n .optional()\n .describe(\"Numeric ID of the subsurface sensor.\"),\n SubSurfaceTemperature: z\n .number()\n .optional()\n .describe(\n \"Temperature from sensor embedded 12-18 inches below road pavement in degrees Celsius.\"\n ),\n })\n .describe(\n \"Subsurface sensor measurements including ground temperature from sensors embedded below road pavement.\"\n );\n\nexport type SubsurfaceMeasurement = z.infer<typeof subsurfaceMeasurementSchema>;\n","import { z } from \"@/shared/zod\";\n\n/**\n * GetSurfaceMeasurements input schema\n *\n * Input parameters for getting surface measurements.\n */\nexport const surfaceMeasurementsInputSchema = z\n .object({})\n .describe(\n \"Input parameters for listing surface measurements from all stations.\"\n );\n\nexport type SurfaceMeasurementsInput = z.infer<\n typeof surfaceMeasurementsInputSchema\n>;\n","import { z } from \"@/shared/zod\";\n\n/**\n * ScanwebSurfaceMeasurements schema\n *\n * Provides current information from weather stations. Coverage Area: Statewide.\n */\nexport const surfaceMeasurementSchema = z\n .object({\n SensorId: z\n .number()\n .optional()\n .describe(\"Numeric ID of the surface sensor.\"),\n SurfaceTemperature: z\n .number()\n .optional()\n .describe(\"Current pavement surface temperature in degrees Celsius.\"),\n RoadFreezingTemperature: z\n .number()\n .optional()\n .describe(\n \"Freezing point of moisture on pavement based on chemical treatment in degrees Celsius.\"\n ),\n RoadSurfaceCondition: z\n .number()\n .optional()\n .describe(\n \"Code indicating road surface condition: 101 = Dry, 102 = Wet, 103 = Moist, 104 = Ice, 105 = Snow, 108 = Unknown/Other.\"\n ),\n })\n .describe(\n \"Surface sensor measurements including pavement temperature, road freezing temperature, and surface condition code from sensors embedded in or mounted on road surfaces.\"\n );\n\nexport type SurfaceMeasurement = z.infer<typeof surfaceMeasurementSchema>;\n","import { z } from \"@/shared/zod\";\n\n/**\n * GetWeatherReadings input schema\n *\n * Input parameters for getting weather readings.\n */\nexport const weatherReadingsInputSchema = z\n .object({})\n .describe(\n \"Input parameters for listing comprehensive weather readings from all stations.\"\n );\n\nexport type WeatherReadingsInput = z.infer<typeof weatherReadingsInputSchema>;\n","import { zIsoDateString } from \"@/apis/shared\";\nimport { z } from \"@/shared/zod\";\n\n/**\n * WeatherReading schema\n *\n * Provides current information from weather stations. Coverage Area: Statewide.\n */\nexport const weatherReadingSchema = z\n .object({\n StationId: z\n .string()\n .describe(\"National Weather Service assigned station identifier code.\"),\n StationName: z.string().describe(\"Display name of the weather station.\"),\n Latitude: z\n .number()\n .describe(\"Latitude of the weather station in decimal degrees.\"),\n Longitude: z\n .number()\n .describe(\"Longitude of the weather station in decimal degrees.\"),\n Elevation: z\n .int()\n .describe(\"Elevation of the weather station above sea level in meters.\"),\n ReadingTime: zIsoDateString()\n .nullable()\n .describe(\n \"UTC datetime when the comprehensive weather reading was taken (ISO-8601 format).\"\n ),\n AirTemperature: z\n .number()\n .nullable()\n .describe(\"Current air temperature in degrees Celsius.\"),\n RelativeHumidty: z\n .int()\n .nullable()\n .describe(\"Relative humidity as a percentage (0-100).\"),\n AverageWindSpeed: z\n .int()\n .nullable()\n .describe(\n \"Average wind speed during evaluation cycle in kilometers per hour.\"\n ),\n AverageWindDirection: z\n .int()\n .nullable()\n .describe(\n \"Average wind direction in degrees clockwise from north (0-359).\"\n ),\n WindGust: z\n .int()\n .nullable()\n .describe(\n \"Maximum wind gust speed during evaluation cycle in kilometers per hour.\"\n ),\n Visibility: z\n .int()\n .nullable()\n .describe(\n \"Average visibility distance in meters (computed every 3 minutes).\"\n ),\n PrecipitationIntensity: z\n .int()\n .nullable()\n .describe(\n \"Precipitation intensity derived from precipitation rate (intensity units).\"\n ),\n PrecipitationType: z\n .int()\n .nullable()\n .describe(\n \"Code indicating precipitation type: 0 = none, 1 = rain, 2 = snow.\"\n ),\n PrecipitationPast1Hour: z\n .number()\n .nullable()\n .describe(\n \"Precipitation amount (liquid equivalent) for previous 1 hour in millimeters.\"\n ),\n PrecipitationPast3Hours: z\n .number()\n .nullable()\n .describe(\n \"Precipitation amount (liquid equivalent) for previous 3 hours in millimeters.\"\n ),\n PrecipitationPast6Hours: z\n .number()\n .nullable()\n .describe(\n \"Precipitation amount (liquid equivalent) for previous 6 hours in millimeters.\"\n ),\n PrecipitationPast12Hours: z\n .number()\n .nullable()\n .describe(\n \"Precipitation amount (liquid equivalent) for previous 12 hours in millimeters.\"\n ),\n PrecipitationPast24Hours: z\n .number()\n .nullable()\n .describe(\n \"Precipitation amount (liquid equivalent) for previous 24 hours in millimeters.\"\n ),\n PrecipitationAccumulation: z\n .number()\n .nullable()\n .describe(\n \"Precipitation amount (liquid equivalent) from midnight GMT to current time in millimeters.\"\n ),\n BarometricPressure: z\n .int()\n .nullable()\n .describe(\n \"Atmospheric pressure in millibars (not adjusted for elevation).\"\n ),\n SnowDepth: z\n .int()\n .nullable()\n .describe(\n \"Snow depth on representative areas excluding highway pavement in centimeters.\"\n ),\n SurfaceMeasurements: z\n .array(\n z.object({\n SensorId: z.int().describe(\"Numeric ID of the surface sensor.\"),\n SurfaceTemperature: z\n .number()\n .nullable()\n .describe(\n \"Current pavement surface temperature in degrees Celsius.\"\n ),\n RoadFreezingTemperature: z\n .number()\n .nullable()\n .describe(\n \"Freezing point of moisture on pavement based on chemical treatment in degrees Celsius.\"\n ),\n RoadSurfaceCondition: z\n .number()\n .nullable()\n .describe(\n \"Code indicating road surface condition: 101 = Dry, 102 = Wet, 103 = Moist, 104 = Ice, 105 = Snow.\"\n ),\n })\n )\n .nullable()\n .describe(\n \"Array of surface sensor measurements including pavement temperature, freezing temperature, and condition codes.\"\n ),\n SubSurfaceMeasurements: z\n .array(\n z.object({\n SensorId: z.int().describe(\"Numeric ID of the subsurface sensor.\"),\n SubSurfaceTemperature: z\n .number()\n .nullable()\n .describe(\n \"Temperature from sensor embedded 12-18 inches below road pavement in degrees Celsius.\"\n ),\n })\n )\n .nullable()\n .describe(\n \"Array of subsurface sensor measurements including ground temperature from sensors embedded below pavement.\"\n ),\n })\n .describe(\n \"Comprehensive weather reading from a WSDOT weather station, including atmospheric conditions, precipitation across multiple time periods, and surface/subsurface sensor measurements.\"\n );\n\nexport type WeatherReading = z.infer<typeof weatherReadingSchema>;\n"]}