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.81 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","highwayCamerasByRouteAndMilepostInputSchema","highwayCameraByCameraIdInputSchema","init_cameras_input","__esmMin","init_zod","z","cameraSchema","init_cameras_output","init_shared","roadwayLocationSchema"],"mappings":"0HAAA,IAEaA,CAAAA,CAMAC,EAiCAC,CAAAA,CAzCbC,CAAAA,CAAAC,EAAA,IAAA,CAAAC,CAAAA,EAAAA,CAEaL,CAAAA,CAA4BM,GAAAA,CACtC,MAAA,CAAO,EAAE,CAAA,CACT,QAAA,CAAS,6DAA6D,CAAA,CAI5DL,CAAAA,CAA8CK,IACxD,MAAA,CAAO,CACN,UAAA,CAAYA,GAAAA,CACT,MAAA,EAAO,CACP,UAAS,CACT,QAAA,CACC,qEACF,CAAA,CACF,MAAA,CAAQA,IACL,MAAA,EAAO,CACP,QAAA,EAAS,CACT,QAAA,CACC,+DACF,EACF,gBAAA,CAAkBA,GAAAA,CACf,QAAO,CACP,QAAA,GACA,QAAA,EAAS,CACT,QAAA,CAAS,uDAAuD,CAAA,CACnE,cAAA,CAAgBA,IACb,MAAA,EAAO,CACP,UAAS,CACT,QAAA,GACA,QAAA,CAAS,qDAAqD,CACnE,CAAC,CAAA,CACA,QAAA,CACC,6EACF,CAAA,CAMWJ,CAAAA,CAAqCI,IAC/C,MAAA,CAAO,CACN,SAAUA,GAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,CAAS,2BAA2B,CAC3D,CAAC,CAAA,CACA,QAAA,CAAS,0DAA0D,EAAA,CAAA,EC7CtE,IAGaC,EAHbC,CAAAA,CAAAJ,CAAAA,CAAA,IAAA,CAAAK,CAAAA,EAAAA,CACAJ,CAAAA,EAAAA,CAEaE,CAAAA,CAAeD,IACzB,MAAA,CAAO,CACN,SAAUA,GAAAA,CAAE,MAAA,GAAS,QAAA,CAAS,2BAA2B,CAAA,CACzD,cAAA,CAAgBI,CAAAA,CACb,QAAA,GACA,QAAA,CACC,kFACF,EACF,WAAA,CAAaJ,GAAAA,CACV,QAAO,CACP,QAAA,EAAS,CACT,QAAA,CAAS,8CAA8C,CAAA,CAC1D,YAAaA,GAAAA,CACV,MAAA,GACA,QAAA,EAAS,CACT,SACC,gEACF,CAAA,CACF,eAAA,CAAiBA,GAAAA,CACd,MAAA,EAAO,CACP,SAAS,6DAA6D,CAAA,CACzE,iBAAkBA,GAAAA,CACf,MAAA,GACA,QAAA,CAAS,8DAA8D,CAAA,CAC1E,WAAA,CAAaA,GAAAA,CAAE,MAAA,GAAS,QAAA,CAAS,mCAAmC,EACpE,QAAA,CAAUA,GAAAA,CACP,QAAO,CACP,QAAA,EAAS,CACT,QAAA,CAAS,sDAAsD,CAAA,CAClE,WAAYA,GAAAA,CAAE,MAAA,GAAS,QAAA,CAAS,kCAAkC,EAClE,QAAA,CAAUA,GAAAA,CACP,OAAA,EAAQ,CACR,QAAA,CACC,4EACF,EACF,QAAA,CAAUA,GAAAA,CACP,QAAO,CACP,QAAA,GACA,QAAA,CAAS,gDAAgD,CAAA,CAC5D,MAAA,CAAQA,GAAAA,CACL,MAAA,GACA,QAAA,EAAS,CACT,SAAS,yCAAyC,CAAA,CACrD,UAAWA,GAAAA,CACR,MAAA,EAAO,CACP,QAAA,CACC,iFACF,CAAA,CACF,MAAOA,GAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS,CAAE,QAAA,CAAS,6BAA6B,CACrE,CAAC,CAAA,CACA,QAAA,CACC,0GACF,EAAA,CAAA","file":"chunk-XPJZCTJA.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"]}