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.49 kB
{"version":3,"sources":["../src/apis/wsdot-highway-cameras/cameras/shared/cameras.input.ts","../src/apis/wsdot-highway-cameras/cameras/shared/cameras.output.ts"],"names":["highwayCamerasInputSchema","z","highwayCamerasByRouteAndMilepostInputSchema","highwayCameraByCameraIdInputSchema","cameraSchema","roadwayLocationSchema"],"mappings":"iFAEO,IAAMA,CAAAA,CAA4BC,EACtC,MAAA,CAAO,EAAE,CAAA,CACT,QAAA,CAAS,6DAA6D,CAAA,CAI5DC,CAAAA,CAA8CD,EACxD,MAAA,CAAO,CACN,WAAYA,CAAAA,CACT,MAAA,GACA,QAAA,EAAS,CACT,SACC,qEACF,CAAA,CACF,OAAQA,CAAAA,CACL,MAAA,GACA,QAAA,EAAS,CACT,SACC,+DACF,CAAA,CACF,iBAAkBA,CAAAA,CACf,MAAA,GACA,QAAA,EAAS,CACT,UAAS,CACT,QAAA,CAAS,uDAAuD,CAAA,CACnE,cAAA,CAAgBA,CAAAA,CACb,MAAA,EAAO,CACP,QAAA,GACA,QAAA,EAAS,CACT,SAAS,qDAAqD,CACnE,CAAC,CAAA,CACA,QAAA,CACC,6EACF,CAAA,CAMWE,CAAAA,CAAqCF,EAC/C,MAAA,CAAO,CACN,SAAUA,CAAAA,CAAE,MAAA,GAAS,QAAA,CAAS,2BAA2B,CAC3D,CAAC,CAAA,CACA,SAAS,0DAA0D,MC1CzDG,CAAAA,CAAeH,CAAAA,CACzB,OAAO,CACN,QAAA,CAAUA,EAAE,MAAA,EAAO,CAAE,SAAS,2BAA2B,CAAA,CACzD,eAAgBI,GAAAA,CACb,QAAA,GACA,QAAA,CACC,kFACF,CAAA,CACF,WAAA,CAAaJ,CAAAA,CACV,MAAA,GACA,QAAA,EAAS,CACT,SAAS,8CAA8C,CAAA,CAC1D,YAAaA,CAAAA,CACV,MAAA,GACA,QAAA,EAAS,CACT,SACC,gEACF,CAAA,CACF,gBAAiBA,CAAAA,CACd,MAAA,GACA,QAAA,CAAS,6DAA6D,EACzE,gBAAA,CAAkBA,CAAAA,CACf,QAAO,CACP,QAAA,CAAS,8DAA8D,CAAA,CAC1E,WAAA,CAAaA,EAAE,MAAA,EAAO,CAAE,SAAS,mCAAmC,CAAA,CACpE,SAAUA,CAAAA,CACP,MAAA,GACA,QAAA,EAAS,CACT,SAAS,sDAAsD,CAAA,CAClE,UAAA,CAAYA,CAAAA,CAAE,MAAA,EAAO,CAAE,SAAS,kCAAkC,CAAA,CAClE,SAAUA,CAAAA,CACP,OAAA,GACA,QAAA,CACC,4EACF,EACF,QAAA,CAAUA,CAAAA,CACP,QAAO,CACP,QAAA,GACA,QAAA,CAAS,gDAAgD,EAC5D,MAAA,CAAQA,CAAAA,CACL,QAAO,CACP,QAAA,GACA,QAAA,CAAS,yCAAyC,EACrD,SAAA,CAAWA,CAAAA,CACR,QAAO,CACP,QAAA,CACC,iFACF,CAAA,CACF,KAAA,CAAOA,EAAE,MAAA,EAAO,CAAE,UAAS,CAAE,QAAA,CAAS,6BAA6B,CACrE,CAAC,CAAA,CACA,QAAA,CACC,0GACF","file":"chunk-GZ2X6YSB.mjs","sourcesContent":["import { z } from \"@/shared/zod\";\n\nexport const highwayCamerasInputSchema = z\n .object({})\n .describe(\"Input parameters for listing all highway cameras statewide.\");\n\nexport type HighwayCamerasInput = z.infer<typeof highwayCamerasInputSchema>;\n\nexport const highwayCamerasByRouteAndMilepostInputSchema = z\n .object({\n StateRoute: z\n .string()\n .optional()\n .describe(\n \"State route identifier for filtering cameras (e.g., 'I-5', 'I-90').\"\n ),\n Region: z\n .string()\n .optional()\n .describe(\n \"WSDOT region code for filtering cameras by geographic region.\"\n ),\n StartingMilepost: z\n .number()\n .nullable()\n .optional()\n .describe(\"Starting milepost value for milepost range filtering.\"),\n EndingMilepost: z\n .number()\n .nullable()\n .optional()\n .describe(\"Ending milepost value for milepost range filtering.\"),\n })\n .describe(\n \"Input parameters for searching cameras by route, region, or milepost range.\"\n );\n\nexport type HighwayCamerasByRouteAndMilepostInput = z.infer<\n typeof highwayCamerasByRouteAndMilepostInputSchema\n>;\n\nexport const highwayCameraByCameraIdInputSchema = z\n .object({\n CameraID: z.number().describe(\"Numeric ID of the camera.\"),\n })\n .describe(\"Input parameters for retrieving a specific camera by ID.\");\n\nexport type HighwayCameraByCameraIdInput = z.infer<\n typeof highwayCameraByCameraIdInputSchema\n>;\n","import { roadwayLocationSchema } from \"@/apis/shared\";\nimport { z } from \"@/shared/zod\";\n\nexport const cameraSchema = z\n .object({\n CameraID: z.number().describe(\"Numeric ID of the camera.\"),\n CameraLocation: roadwayLocationSchema\n .nullable()\n .describe(\n \"Roadway location information for camera placement, including route and milepost.\"\n ),\n CameraOwner: z\n .string()\n .nullable()\n .describe(\"Organization or agency that owns the camera.\"),\n Description: z\n .string()\n .nullable()\n .describe(\n \"Short descriptive text about the camera's purpose or location.\"\n ),\n DisplayLatitude: z\n .number()\n .describe(\"Latitude of the camera display position in decimal degrees.\"),\n DisplayLongitude: z\n .number()\n .describe(\"Longitude of the camera display position in decimal degrees.\"),\n ImageHeight: z.number().describe(\"Pixel height of the camera image.\"),\n ImageURL: z\n .string()\n .nullable()\n .describe(\"URL where the camera image is stored and accessible.\"),\n ImageWidth: z.number().describe(\"Pixel width of the camera image.\"),\n IsActive: z\n .boolean()\n .describe(\n \"True if the camera is currently active and being updated; otherwise false.\"\n ),\n OwnerURL: z\n .string()\n .nullable()\n .describe(\"Website URL for the camera owner organization.\"),\n Region: z\n .string()\n .nullable()\n .describe(\"WSDOT region code that owns the camera.\"),\n SortOrder: z\n .number()\n .describe(\n \"Display sort order; lower values appear first when sorting cameras by location.\"\n ),\n Title: z.string().nullable().describe(\"Display name of the camera.\"),\n })\n .describe(\n \"Highway camera information including location data, image URLs, status, ownership, and display metadata.\"\n );\n\nexport type Camera = z.infer<typeof cameraSchema>;\n\n// Export types from shared\nexport type { RoadwayLocation } from \"@/apis/shared\";\n"]}