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 • 4.47 kB
Source Map (JSON)
{"version":3,"sources":["../src/apis/wsdot-travel-times/travelTimeRoutes/shared/travelTimeRoutes.input.ts","../src/apis/wsdot-travel-times/travelTimeRoutes/shared/travelTimeRoutes.output.ts"],"names":["travelTimeByIdInputSchema","z","travelTimesInputSchema","travelTimeRouteSchema","roadwayLocationSchema","zDotnetDate"],"mappings":"sHAcO,IAAMA,CAAAA,CAA4BC,EACtC,MAAA,CAAO,CACN,aAAcA,CAAAA,CAAE,MAAA,GAAS,QAAA,CAAS,sCAAsC,CAC1E,CAAC,CAAA,CACA,SACC,8EACF,CAAA,CASWC,EAAyBD,CAAAA,CACnC,MAAA,CAAO,EAAE,CAAA,CACT,QAAA,CAAS,kEAAkE,ECfvE,IAAME,EAAwBF,CAAAA,CAClC,MAAA,CAAO,CACN,WAAA,CAAaA,CAAAA,CACV,MAAA,EAAO,CACP,QAAA,CACC,gFACF,EACF,WAAA,CAAaA,CAAAA,CACV,QAAO,CACP,QAAA,CACC,+FACF,CAAA,CACF,WAAA,CAAaA,CAAAA,CACV,MAAA,EAAO,CACP,QAAA,GACA,QAAA,CAAS,sDAAsD,EAClE,QAAA,CAAUA,CAAAA,CACP,QAAO,CACP,QAAA,CAAS,wDAAwD,CAAA,CACpE,QAAA,CAAUG,GAAAA,CACP,UAAS,CACT,QAAA,CAAS,oDAAoD,CAAA,CAChE,IAAA,CAAMH,EACH,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CAAS,wCAAwC,EACpD,UAAA,CAAYG,GAAAA,CACT,UAAS,CACT,QAAA,CAAS,sDAAsD,CAAA,CAClE,WAAA,CAAaC,CAAAA,EAAY,CAAE,QAAA,CACzB,0DACF,EACA,YAAA,CAAcJ,CAAAA,CAAE,QAAO,CAAE,QAAA,CAAS,sCAAsC,CAC1E,CAAC,CAAA,CACA,QAAA,CACC,4IACF","file":"chunk-F64XD7IR.mjs","sourcesContent":["/**\n * @fileoverview WSDOT Travel Times API Input Schemas\n *\n * This module provides Zod schemas for validating input parameters for the WSDOT\n * Travel Times API endpoints.\n */\n\nimport { z } from \"@/shared/zod\";\n\n/**\n * Schema for GetTravelTimeById input parameters\n *\n * Provides current travel times for many popular travel routes around Washington State. Coverage Area: Seattle, Tacoma, and Snoqualmie Pass areas.\n */\nexport const travelTimeByIdInputSchema = z\n .object({\n TravelTimeID: z.number().describe(\"Numeric ID of the travel time route.\"),\n })\n .describe(\n \"Input parameters for retrieving travel time data for a specific route by ID.\"\n );\n\nexport type TravelTimeByIdInput = z.infer<typeof travelTimeByIdInputSchema>;\n\n/**\n * Schema for GetTravelTimes input parameters\n *\n * Provides current travel times for many popular travel routes around Washington State. Coverage Area: Seattle, Tacoma, and Snoqualmie Pass areas.\n */\nexport const travelTimesInputSchema = z\n .object({})\n .describe(\"Input parameters for retrieving travel time data for all routes.\");\n\nexport type TravelTimesInput = z.infer<typeof travelTimesInputSchema>;\n","/**\n * @fileoverview WSDOT Travel Times API Output Schemas\n *\n * This module provides Zod schemas for validating responses from the WSDOT\n * Travel Times API, which provides current travel times for covered routes\n * in Seattle, Tacoma, and Snoqualmie Pass areas.\n */\n\nimport { roadwayLocationSchema, zDotnetDate } from \"@/apis/shared\";\nimport { z } from \"@/shared/zod\";\n\n/**\n * Schema for TravelTimeRoute - represents a travel time route\n *\n * Provides current travel times for many popular travel routes around Washington State. Coverage Area: Seattle, Tacoma, and Snoqualmie Pass areas.\n */\nexport const travelTimeRouteSchema = z\n .object({\n AverageTime: z\n .number()\n .describe(\n \"Average travel time to complete the route in minutes based on historical data.\"\n ),\n CurrentTime: z\n .number()\n .describe(\n \"Current estimated travel time to complete the route in minutes based on real-time conditions.\"\n ),\n Description: z\n .string()\n .nullable()\n .describe(\"Human-readable description of the travel time route.\"),\n Distance: z\n .number()\n .describe(\"Total route distance from start to end point in miles.\"),\n EndPoint: roadwayLocationSchema\n .nullable()\n .describe(\"Roadway location where the travel time route ends.\"),\n Name: z\n .string()\n .nullable()\n .describe(\"Display name of the travel time route.\"),\n StartPoint: roadwayLocationSchema\n .nullable()\n .describe(\"Roadway location where the travel time route begins.\"),\n TimeUpdated: zDotnetDate().describe(\n \"UTC datetime when the travel time data was last updated.\"\n ),\n TravelTimeID: z.number().describe(\"Numeric ID of the travel time route.\"),\n })\n .describe(\n \"Travel time route information including current and average travel times, route distance, start/end point locations, and update timestamp.\"\n );\n\n// Export types\nexport type TravelTimeRoute = z.infer<typeof travelTimeRouteSchema>;\n"]}