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 • 11.2 kB
Source Map (JSON)
{"version":3,"sources":["../src/apis/wsdot-highway-alerts/alertAreas/shared/alertAreas.input.ts","../src/apis/wsdot-highway-alerts/alertAreas/shared/alertAreas.output.ts","../src/apis/wsdot-highway-alerts/eventCategories/shared/eventCategories.input.ts","../src/apis/wsdot-highway-alerts/highwayAlerts/shared/highwayAlerts.input.ts","../src/apis/wsdot-highway-alerts/highwayAlerts/shared/highwayAlerts.output.ts"],"names":["mapAreasInputSchema","init_alertAreas_input","__esmMin","init_zod","z","areaSchema","init_alertAreas_output","eventCategoriesInputSchema","init_eventCategories_input","alertsInputSchema","alertByIdInputSchema","searchAlertsInputSchema","alertsByMapAreaInputSchema","alertsByRegionIDInputSchema","init_highwayAlerts_input","alertSchema","init_highwayAlerts_output","init_shared","roadwayLocationSchema","zDotnetDate"],"mappings":"oLAAA,IAOaA,CAAAA,CAPbC,CAAAA,CAAAC,CAAAA,CAAA,IAAA,CAAAC,IAOaH,CAAAA,CAAsBI,GAAAA,CAChC,MAAA,CAAO,EAAE,CAAA,CACT,QAAA,CACC,gFACF,EAAA,CAAA,MCJWC,CAAAA,CAPbC,CAAAA,CAAAJ,CAAAA,CAAA,IAAA,CAAAC,IAOaE,CAAAA,CAAaD,GAAAA,CACvB,MAAA,CAAO,CACN,QAASA,GAAAA,CACN,MAAA,EAAO,CACP,QAAA,GACA,QAAA,CACC,8EACF,CAAA,CACF,kBAAA,CAAoBA,IACjB,MAAA,EAAO,CACP,QAAA,EAAS,CACT,SAAS,yDAAyD,CACvE,CAAC,CAAA,CACA,SACC,mGACF,EAAA,CAAA,ECtBF,IAOaG,CAAAA,CAPbC,EAAAN,CAAAA,CAAA,IAAA,CAAAC,CAAAA,EAAAA,CAOaI,CAAAA,CAA6BH,IACvC,MAAA,CAAO,EAAE,CAAA,CACT,SACC,8EACF,EAAA,CAAA,ECXF,IAOaK,CAA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A,CAAAd,CAAAA,CAAA,IAAA,CAAAe,GAAAA,EAAAA,CACAd,IAOaY,CAAAA,CAAcX,GAAAA,CACxB,MAAA,CAAO,CACN,QAASA,GAAAA,CAAE,GAAA,EAAI,CAAE,QAAA,CAAS,kCAAkC,CAAA,CAC5D,MAAA,CAAQA,GAAAA,CACL,MAAA,GACA,QAAA,EAAS,CACT,QAAA,CACC,0EACF,EACF,kBAAA,CAAoBc,GAAAA,CACjB,QAAA,EAAS,CACT,SACC,6GACF,CAAA,CACF,OAAA,CAASC,GAAAA,GACN,QAAA,EAAS,CACT,QAAA,CACC,qHACF,EACF,aAAA,CAAef,GAAAA,CACZ,MAAA,EAAO,CACP,UAAS,CACT,QAAA,CACC,yFACF,CAAA,CACF,YAAaA,GAAAA,CACV,MAAA,EAAO,CACP,QAAA,GACA,QAAA,CACC,yGACF,CAAA,CACF,mBAAA,CAAqBA,IAClB,MAAA,EAAO,CACP,QAAA,EAAS,CACT,SACC,oGACF,CAAA,CACF,mBAAA,CAAqBA,GAAAA,CAClB,QAAO,CACP,QAAA,EAAS,CACT,QAAA,CACC,+EACF,CAAA,CACF,eAAA,CAAiBe,GAAAA,EAAY,CAC1B,UAAS,CACT,QAAA,CAAS,2DAA2D,CAAA,CACvE,SAAUf,GAAAA,CACP,MAAA,EAAO,CACP,QAAA,GACA,QAAA,CACC,gKACF,CAAA,CACF,MAAA,CAAQA,IACL,MAAA,EAAO,CACP,QAAA,EAAS,CACT,SACC,mLACF,CAAA,CACF,oBAAA,CAAsBc,GAAAA,CACnB,UAAS,CACT,QAAA,CACC,iHACF,CAAA,CACF,UAAWC,GAAAA,EAAY,CACpB,QAAA,EAAS,CACT,SAAS,sDAAsD,CACpE,CAAC,CAAA,CACA,SACC,qJACF,EAAA,CAAA","file":"chunk-LKIRU3C2.mjs","sourcesContent":["import { z } from \"@/shared/zod\";\n\n/**\n * Input schema for AlertAreas endpoint\n *\n * Return list of areas and associated IDs\n */\nexport const mapAreasInputSchema = z\n .object({})\n .describe(\n \"Input for retrieving all available map areas with area codes and descriptions.\"\n );\n\nexport type MapAreasInput = z.infer<typeof mapAreasInputSchema>;\n","import { z } from \"@/shared/zod\";\n\n/**\n * Schema for Area - represents a map area\n *\n * Return list of areas and associated IDs\n */\nexport const areaSchema = z\n .object({\n MapArea: z\n .string()\n .nullable()\n .describe(\n \"Map area identifier code for geographic filtering, or null when unavailable.\"\n ),\n MapAreaDescription: z\n .string()\n .nullable()\n .describe(\"Display name of the map area, or null when unavailable.\"),\n })\n .describe(\n \"Geographic map area with identifier code and display name for filtering highway alerts by region.\"\n );\n\nexport type Area = z.infer<typeof areaSchema>;\n","import { z } from \"@/shared/zod\";\n\n/**\n * Input schema for EventCategories endpoint\n *\n * Selects an array of valid categories to use with SearchAlerts\n */\nexport const eventCategoriesInputSchema = z\n .object({})\n .describe(\n \"Input for retrieving all available event category names for alert filtering.\"\n );\n\nexport type EventCategoriesInput = z.infer<typeof eventCategoriesInputSchema>;\n","import { z } from \"@/shared/zod\";\n\n/**\n * Input schema for HighwayAlerts endpoint\n *\n * Retrieves an array of currently active incidents\n */\nexport const alertsInputSchema = z\n .object({})\n .describe(\n \"Input for retrieving all currently active highway alerts statewide.\"\n );\n\nexport type AlertsInput = z.infer<typeof alertsInputSchema>;\n\n/**\n * Input schema for HighwayAlert endpoint\n *\n * Retrieves a specific incident\n */\nexport const alertByIdInputSchema = z\n .object({\n AlertID: z.number().describe(\"Numeric ID of the highway alert.\"),\n })\n .describe(\"Input for retrieving a specific highway alert by ID.\");\n\nexport type AlertByIdInput = z.infer<typeof alertByIdInputSchema>;\n\n/**\n * Input schema for HighwayAlertsSearch endpoint\n *\n * Retrieves an array of incidents that match certain criteria\n */\nexport const searchAlertsInputSchema = z\n .object({\n StateRoute: z\n .string()\n .optional()\n .describe(\n \"State route identifier as three-digit number, or undefined to include all routes.\"\n ),\n Region: z\n .int()\n .optional()\n .describe(\n \"WSDOT region identifier code: 7 = Eastern, 8 = North Central, 9 = Northwest, 10 = Olympic, 11 = South Central, 12 = Southwest, or undefined to include all regions.\"\n ),\n SearchTimeStart: z\n .string()\n .optional()\n .describe(\n \"UTC datetime when the search time range begins, in ISO format, or undefined for no start limit.\"\n ),\n SearchTimeEnd: z\n .string()\n .optional()\n .describe(\n \"UTC datetime when the search time range ends, in ISO format, or undefined for no end limit.\"\n ),\n StartingMilepost: z\n .number()\n .optional()\n .describe(\n \"Starting milepost value for range filtering, or undefined for no start limit.\"\n ),\n EndingMilepost: z\n .number()\n .optional()\n .describe(\n \"Ending milepost value for range filtering, or undefined for no end limit.\"\n ),\n })\n .describe(\n \"Input for searching highway alerts by route, region, time range, and milepost range.\"\n );\n\nexport type SearchAlertsInput = z.infer<typeof searchAlertsInputSchema>;\n\n/**\n * Input schema for HighwayAlertsByMapArea endpoint\n *\n * Return alerts for a specific area\n */\nexport const alertsByMapAreaInputSchema = z\n .object({\n MapArea: z\n .string()\n .describe(\"Map area identifier code for geographic filtering.\"),\n })\n .describe(\"Input for retrieving highway alerts filtered by map area code.\");\n\nexport type AlertsByMapAreaInput = z.infer<typeof alertsByMapAreaInputSchema>;\n\n/**\n * Input schema for HighwayAlertsByRegionID endpoint\n *\n * Return alerts for a specific region\n */\nexport const alertsByRegionIDInputSchema = z\n .object({\n RegionID: z\n .number()\n .describe(\n \"WSDOT region identifier code: 7 = Eastern, 8 = North Central, 9 = Northwest, 10 = Olympic, 11 = South Central, 12 = Southwest.\"\n ),\n })\n .describe(\"Input for retrieving highway alerts filtered by WSDOT region ID.\");\n\nexport type AlertsByRegionIDInput = z.infer<typeof alertsByRegionIDInputSchema>;\n","import { roadwayLocationSchema, zDotnetDate } from \"@/apis/shared\";\nimport { z } from \"@/shared/zod\";\n\n/**\n * Schema for Alert - represents a Highway Alert\n *\n * A Highway Alert.\n */\nexport const alertSchema = z\n .object({\n AlertID: z.int().describe(\"Numeric ID of the highway alert.\"),\n County: z\n .string()\n .nullable()\n .describe(\n \"County name for countywide alerts, or null when alert is route-specific.\"\n ),\n EndRoadwayLocation: roadwayLocationSchema\n .nullable()\n .describe(\n \"Roadway location where the alert ends, or null when alert is point-specific or end location is unavailable.\"\n ),\n EndTime: zDotnetDate()\n .nullable()\n .describe(\n \"UTC datetime when the alert impact is estimated to end, or null when end time is not estimated or alert is ongoing.\"\n ),\n EventCategory: z\n .string()\n .nullable()\n .describe(\n \"Category classification for the alert event type, or null when category is unavailable.\"\n ),\n EventStatus: z\n .string()\n .nullable()\n .describe(\n \"Code indicating alert status: 'Open' = active, 'Closed' = resolved, or null when status is unavailable.\"\n ),\n ExtendedDescription: z\n .string()\n .nullable()\n .describe(\n \"Additional detailed information about the alert, or null when extended description is unavailable.\"\n ),\n HeadlineDescription: z\n .string()\n .nullable()\n .describe(\n \"Primary description of the alert issue, or null when headline is unavailable.\"\n ),\n LastUpdatedTime: zDotnetDate()\n .nullable()\n .describe(\"UTC datetime when the alert was last modified or updated.\"),\n Priority: z\n .string()\n .nullable()\n .describe(\n \"Code indicating traffic impact priority: 'Highest' = severe, 'High' = significant, 'Medium' = moderate, 'Low' = minimal, or null when priority is unavailable.\"\n ),\n Region: z\n .string()\n .nullable()\n .describe(\n \"Code indicating WSDOT region: 'EA' = Eastern, 'NC' = North Central, 'NW' = Northwest, 'OL' = Olympic, 'SC' = South Central, 'SW' = Southwest, or null when region is unavailable.\"\n ),\n StartRoadwayLocation: roadwayLocationSchema\n .nullable()\n .describe(\n \"Roadway location where the alert begins, or null when alert is point-specific or start location is unavailable.\"\n ),\n StartTime: zDotnetDate()\n .nullable()\n .describe(\"UTC datetime when the alert impact on traffic began.\"),\n })\n .describe(\n \"Highway alert with identification, event category, priority, location data, timestamps, and descriptions for traffic incidents and road conditions.\"\n );\n\nexport type Alert = z.infer<typeof alertSchema>;\n"]}