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 13.6 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","init_subSurfaceMeasurements_input","__esmMin","init_zod","z","subsurfaceMeasurementSchema","init_subSurfaceMeasurements_output","surfaceMeasurementsInputSchema","init_surfaceMeasurements_input","surfaceMeasurementSchema","init_surfaceMeasurements_output","weatherReadingsInputSchema","init_weatherReadings_input","weatherReadingSchema","init_weatherReadings_output","init_shared","zIsoDateString"],"mappings":"+IAAA,IAOaA,CAAAA,CAPbC,EAAAC,GAAAA,CAAA,IAAA,CAAAC,IAOaH,CAAAA,CAAoCI,GAAAA,CAC9C,MAAA,CAAO,EAAE,CAAA,CACT,SACC,yEACF,EAAA,CAAA,ECXF,IAOaC,CAAAA,CAPbC,CAAAA,CAAAJ,GAAAA,CAAA,KAAAC,CAAAA,EAAAA,CAOaE,CAAAA,CAA8BD,GAAAA,CACxC,MAAA,CAAO,CACN,QAAA,CAAUA,IACP,MAAA,EAAO,CACP,UAAS,CACT,QAAA,CAAS,sCAAsC,CAAA,CAClD,qBAAA,CAAuBA,GAAAA,CACpB,MAAA,EAAO,CACP,QAAA,GACA,QAAA,CACC,uFACF,CACJ,CAAC,CAAA,CACA,QAAA,CACC,wGACF,EAAA,CAAA,ECtBF,IAOaG,CAAAA,CAPbC,CAAAA,CAAAN,GAAAA,CAAA,IAAA,CAAAC,IAOaI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AAA,CAA2BA,GAAAA,CACxB,QAAO,CACP,QAAA,EAAS,CACT,QAAA,CACC,4FACF,CAAA,CACF,mBAAoBA,GAAAA,CACjB,MAAA,GACA,GAAA,EAAI,CACJ,UAAS,CACT,QAAA,CACC,iEACF,CAAA,CACF,SAAA,CAAWA,GAAAA,CACR,QAAO,CACP,GAAA,EAAI,CACJ,QAAA,EAAS,CACT,QAAA,CACC,+EACF,CAAA,CACF,mBAAA,CAAqBA,GAAAA,CAClB,KAAA,CACCA,GAAAA,CAAE,MAAA,CAAO,CACP,QAAA,CAAUA,GAAAA,CAAE,QAAO,CAAE,GAAA,GAAM,QAAA,CAAS,mCAAmC,CAAA,CACvE,kBAAA,CAAoBA,GAAAA,CACjB,MAAA,GACA,QAAA,EAAS,CACT,QAAA,CACC,0DACF,CAAA,CACF,uBAAA,CAAyBA,IACtB,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CACC,wFACF,EACF,oBAAA,CAAsBA,GAAAA,CACnB,QAAO,CACP,QAAA,GACA,QAAA,CACC,mGACF,CACJ,CAAC,CACH,CAAA,CACC,UAAS,CACT,QAAA,CACC,iHACF,CAAA,CACF,sBAAA,CAAwBA,GAAAA,CACrB,MACCA,GAAAA,CAAE,MAAA,CAAO,CACP,QAAA,CAAUA,GAAAA,CAAE,MAAA,GAAS,GAAA,EAAI,CAAE,QAAA,CAAS,sCAAsC,CAAA,CAC1E,qBAAA,CAAuBA,IACpB,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CACC,uFACF,CACJ,CAAC,CACH,CAAA,CACC,QAAA,EAAS,CACT,QAAA,CACC,4GACF,CACJ,CAAC,CAAA,CACA,QAAA,CACC,uLACF,EAAA,CAAA","file":"chunk-DPIFHCXE.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 .number()\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 .number()\n .int()\n .nullable()\n .describe(\"Relative humidity as a percentage (0-100).\"),\n AverageWindSpeed: z\n .number()\n .int()\n .nullable()\n .describe(\n \"Average wind speed during evaluation cycle in kilometers per hour.\"\n ),\n AverageWindDirection: z\n .number()\n .int()\n .nullable()\n .describe(\n \"Average wind direction in degrees clockwise from north (0-359).\"\n ),\n WindGust: z\n .number()\n .int()\n .nullable()\n .describe(\n \"Maximum wind gust speed during evaluation cycle in kilometers per hour.\"\n ),\n Visibility: z\n .number()\n .int()\n .nullable()\n .describe(\n \"Average visibility distance in meters (computed every 3 minutes).\"\n ),\n PrecipitationIntensity: z\n .number()\n .int()\n .nullable()\n .describe(\n \"Precipitation intensity derived from precipitation rate (intensity units).\"\n ),\n PrecipitationType: z\n .number()\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 .number()\n .int()\n .nullable()\n .describe(\n \"Atmospheric pressure in millibars (not adjusted for elevation).\"\n ),\n SnowDepth: z\n .number()\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.number().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.number().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"]}