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.78 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","travelTimesInputSchema","init_travelTimeRoutes_input","__esmMin","init_zod","z","travelTimeRouteSchema","init_travelTimeRoutes_output","init_shared","roadwayLocationSchema","zDotnetDate"],"mappings":"2LAAA,IAcaA,CAAAA,CAeAC,CAAAA,CA7BbC,CAAAA,CAAAC,CAAAA,CAAA,IAAA,CAOAC,MAOaJ,CAAAA,CAA4BK,GAAAA,CACtC,MAAA,CAAO,CACN,YAAA,CAAcA,GAAAA,CAAE,QAAO,CAAE,QAAA,CAAS,sCAAsC,CAC1E,CAAC,CAAA,CACA,SACC,8EACF,CAAA,CASWJ,CAAAA,CAAyBI,GAAAA,CACnC,MAAA,CAAO,EAAE,CAAA,CACT,QAAA,CAAS,kEAAkE,EAAA,CAAA,EC/B9E,IAgBaC,CAAAA,CAhBbC,EAAAJ,CAAAA,CAAA,IAAA,CAQAK,GAAAA,EAAAA,CACAJ,GAAAA,EAAAA,CAOaE,CAAAA,CAAwBD,GAAAA,CAClC,OAAO,CACN,WAAA,CAAaA,GAAAA,CACV,MAAA,EAAO,CACP,QAAA,CACC,gFACF,CAAA,CACF,WAAA,CAAaA,GAAAA,CACV,MAAA,EAAO,CACP,QAAA,CACC,+FACF,EACF,WAAA,CAAaA,GAAAA,CACV,MAAA,EAAO,CACP,QAAA,EAAS,CACT,SAAS,sDAAsD,CAAA,CAClE,QAAA,CAAUA,GAAAA,CACP,MAAA,EAAO,CACP,SAAS,wDAAwD,CAAA,CACpE,QAAA,CAAUI,GAAAA,CACP,QAAA,EAAS,CACT,QAAA,CAAS,oDAAoD,CAAA,CAChE,IAAA,CAAMJ,GAAAA,CACH,MAAA,EAAO,CACP,QAAA,GACA,QAAA,CAAS,wCAAwC,CAAA,CACpD,UAAA,CAAYI,GAAAA,CACT,QAAA,GACA,QAAA,CAAS,sDAAsD,CAAA,CAClE,WAAA,CAAaC,GAAAA,EAAY,CAAE,SACzB,0DACF,CAAA,CACA,YAAA,CAAcL,GAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,CAAS,sCAAsC,CAC1E,CAAC,CAAA,CACA,QAAA,CACC,4IACF,EAAA,CAAA","file":"chunk-FYN6I5PQ.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"]}