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 13.6 kB
{"version":3,"sources":["../src/apis/wsdot-toll-rates/tollRates/shared/tollRates.input.ts","../src/apis/wsdot-toll-rates/shared/tollTripBaseSchema.ts","../src/apis/wsdot-toll-rates/tollRates/shared/tollRates.output.ts","../src/apis/wsdot-toll-rates/tollTripInfo/shared/tollTripInfo.input.ts","../src/apis/wsdot-toll-rates/tollTripInfo/shared/tollTripInfo.output.ts","../src/apis/wsdot-toll-rates/tollTripRates/shared/tollTripRates.input.ts","../src/apis/wsdot-toll-rates/tollTripRates/shared/tollTripRates.output.ts","../src/apis/wsdot-toll-rates/tollTripVersion/shared/tollTripVersion.input.ts","../src/apis/wsdot-toll-rates/tollTripVersion/shared/tollTripVersion.output.ts"],"names":["tollRatesInputSchema","z","tollTripBaseSchema","tollTripRateBaseSchema","zDotnetDate","tollRateSchema","tollTripInfoInputSchema","tollTripInfoSchema","tollTripRatesInputSchema","tripRatesByDateInputSchema","tripRatesByVersionInputSchema","tripRateSchema","tollTripsRatesSchema","tollTripVersionInputSchema","tollTripVersionSchema"],"mappings":"0EAOO,IAAMA,EAAuBC,CAAAA,CACjC,MAAA,CAAO,EAAE,EACT,QAAA,CACC,4EACF,ECHK,IAAMC,EAAqBD,CAAAA,CAC/B,MAAA,CAAO,CACN,WAAA,CAAaA,CAAAA,CACV,QAAO,CACP,QAAA,CAAS,gDAAgD,CAAA,CAC5D,gBAAiBA,CAAAA,CACd,MAAA,EAAO,CACP,QAAA,GACA,QAAA,CAAS,8DAA8D,CAAA,CAC1E,YAAA,CAAcA,EACX,MAAA,EAAO,CACP,SAAS,iDAAiD,CAAA,CAC7D,YAAaA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,CAAS,qCAAqC,CAAA,CACtE,aAAA,CAAeA,CAAAA,CACZ,MAAA,GACA,QAAA,CAAS,kDAAkD,CAAA,CAC9D,iBAAA,CAAmBA,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esContent":["import { z } from \"@/shared/zod\";\n\n/**\n * Input schema for GetTollRates endpoint (void input - only AccessCode)\n *\n * Provides current toll rates for high occupancy lanes. Coverage Area: Statewide.\n */\nexport const tollRatesInputSchema = z\n .object({})\n .describe(\n \"Input parameters for retrieving current toll rates for all HOV toll lanes.\"\n );\n\nexport type TollRatesInput = z.infer<typeof tollRatesInputSchema>;\n","import { zDotnetDate } from \"@/apis/shared\";\nimport { z } from \"@/shared/zod\";\n\n/**\n * Schema for common toll trip information fields\n *\n * Contains common fields for toll trip information including location data and trip details\n */\nexport const tollTripBaseSchema = z\n .object({\n EndLatitude: z\n .number()\n .describe(\"Latitude of trip end point in decimal degrees.\"),\n EndLocationName: z\n .string()\n .nullable()\n .describe(\"Display name of trip end location (e.g., 'SR 516', 'SR 18').\"),\n EndLongitude: z\n .number()\n .describe(\"Longitude of trip end point in decimal degrees.\"),\n EndMilepost: z.number().describe(\"Milepost marker for trip end point.\"),\n StartLatitude: z\n .number()\n .describe(\"Latitude of trip start point in decimal degrees.\"),\n StartLocationName: z\n .string()\n .nullable()\n .describe(\n \"Display name of trip start location (e.g., 'I-405', 'S 180th St').\"\n ),\n StartLongitude: z\n .number()\n .describe(\"Longitude of trip start point in decimal degrees.\"),\n StartMilepost: z.number().describe(\"Milepost marker for trip start point.\"),\n TravelDirection: z\n .string()\n .nullable()\n .describe(\n \"Direction of travel code (e.g., 'S' for southbound, 'N' for northbound).\"\n ),\n TripName: z\n .string()\n .nullable()\n .describe(\n \"Unique identifier for toll trip route (e.g., 'Tmptp02565', '099tp03268').\"\n ),\n })\n .describe(\n \"Common toll trip information including start and end locations, coordinates, and trip identification.\"\n );\n\nexport type TollTripBase = z.infer<typeof tollTripBaseSchema>;\n\n/**\n * Schema for common toll trip rate information fields\n *\n * Contains common fields for toll trip rates\n */\nexport const tollTripRateBaseSchema = z\n .object({\n Message: z\n .string()\n .nullable()\n .describe(\n \"Toll rate message or display text (e.g., 'FREE', '$4.95'). Empty string when unavailable.\"\n ),\n MessageUpdateTime: zDotnetDate().describe(\n \"UTC datetime when toll rate message was last updated.\"\n ),\n Toll: z.number().describe(\"Toll amount for trip in dollars.\"),\n TripName: z\n .string()\n .nullable()\n .describe(\n \"Unique identifier for toll trip route (e.g., '405tp02752', '520tp00422', '099tp03060').\"\n ),\n })\n .describe(\n \"Common toll trip rate information including toll amount, message, and update timestamp.\"\n );\n\nexport type TollTripRateBase = z.infer<typeof tollTripRateBaseSchema>;\n","import { zDotnetDate } from \"@/apis/shared\";\nimport { z } from \"@/shared/zod\";\nimport { tollTripBaseSchema } from \"../../shared/tollTripBaseSchema\";\n\n/**\n * Schema for toll rate information for HOV toll lanes\n *\n * Provides current toll rates for high occupancy lanes. Coverage Area: Statewide.\n */\nexport const tollRateSchema = tollTripBaseSchema\n .extend({\n CurrentToll: z\n .int()\n .describe(\n \"Current toll amount in cents. May be negative when toll is unavailable. May not match sign display due to timing differences.\"\n ),\n CurrentMessage: z\n .string()\n .nullable()\n .describe(\n \"Message displayed on toll sign instead of toll amount. Null when toll amount is displayed, empty string when no message is shown.\"\n ),\n StateRoute: z\n .string()\n .nullable()\n .describe(\n \"State route identifier where toll applies (e.g., '099' for SR-99, '405' for I-405).\"\n ),\n TimeUpdated: zDotnetDate().describe(\n \"UTC datetime when toll rate was last updated.\"\n ),\n })\n .describe(\n \"Current toll rate information for a single HOV toll lane trip, including pricing and location data.\"\n );\n\nexport type TollRate = z.infer<typeof tollRateSchema>;\n","import { z } from \"@/shared/zod\";\n\n/**\n * Input schema for GetTollTripInfo endpoint (void input - only AccessCode)\n *\n * Provides current toll rates for high occupancy lanes. Coverage Area: Statewide.\n */\nexport const tollTripInfoInputSchema = z\n .object({})\n .describe(\n \"Input parameters for retrieving trip information for all toll trips.\"\n );\n\nexport type TollTripInfoInput = z.infer<typeof tollTripInfoInputSchema>;\n","import { zDotnetDate } from \"@/apis/shared\";\nimport { z } from \"@/shared/zod\";\nimport { tollTripBaseSchema } from \"../../shared/tollTripBaseSchema\";\n\n/**\n * Schema for toll trip information\n *\n * Provides current toll rates for high occupancy lanes. Coverage Area: Statewide.\n */\nexport const tollTripInfoSchema = tollTripBaseSchema\n .extend({\n Geometry: z\n .string()\n .nullable()\n .describe(\n \"Encoded route geometry data for mapping. Empty string or null when geometry is unavailable.\"\n ),\n ModifiedDate: zDotnetDate().describe(\n \"UTC datetime when trip route information was last modified.\"\n ),\n })\n .describe(\n \"Trip route information for a single toll trip, including locations, coordinates, and optional geometry.\"\n );\n\nexport type TollTripInfo = z.infer<typeof tollTripInfoSchema>;\n","import { z } from \"@/shared/zod\";\n\n/**\n * Input schema for GetTollTripRates endpoint (void input - only AccessCode)\n *\n * Provides current toll rates for high occupancy lanes. Coverage Area: Statewide.\n */\nexport const tollTripRatesInputSchema = z\n .object({})\n .describe(\n \"Input parameters for retrieving current toll rates for all trips.\"\n );\n\nexport type TollTripRatesInput = z.infer<typeof tollTripRatesInputSchema>;\n\n/**\n * Input schema for GetTripRatesByDate endpoint\n *\n * Provides current toll rates for high occupancy lanes. Coverage Area: Statewide.\n */\nexport const tripRatesByDateInputSchema = z\n .object({\n FromDate: z\n .string()\n .describe(\"Start date for historical query in YYYY-MM-DD format.\"),\n ToDate: z\n .string()\n .describe(\"End date for historical query in YYYY-MM-DD format.\"),\n })\n .describe(\n \"Input parameters for retrieving historical toll rates within a date range.\"\n );\n\nexport type TripRatesByDateInput = z.infer<typeof tripRatesByDateInputSchema>;\n\n/**\n * Input schema for GetTripRatesByVersion endpoint\n *\n * Provides current toll rates for high occupancy lanes. Coverage Area: Statewide.\n */\nexport const tripRatesByVersionInputSchema = z\n .object({\n Version: z\n .number()\n .int()\n .describe(\"Version number for toll trip rates data.\"),\n })\n .describe(\n \"Input parameters for retrieving toll rates for a specific version number.\"\n );\n\nexport type TripRatesByVersionInput = z.infer<\n typeof tripRatesByVersionInputSchema\n>;\n","import { zDotnetDate } from \"@/apis/shared\";\nimport { z } from \"@/shared/zod\";\nimport { tollTripRateBaseSchema } from \"../../shared/tollTripBaseSchema\";\n\n/**\n * Schema for trip rate information\n *\n * Provides current toll rates for high occupancy lanes. Coverage Area: Statewide.\n */\nexport const tripRateSchema = tollTripRateBaseSchema.describe(\n \"Toll rate information for a single trip including toll amount, message, and update timestamp.\"\n);\n\nexport type TripRate = z.infer<typeof tripRateSchema>;\n\n/**\n * Schema for toll trips container\n *\n * Provides current toll rates for high occupancy lanes. Coverage Area: Statewide.\n */\nexport const tollTripsRatesSchema = z\n .object({\n LastUpdated: zDotnetDate().describe(\n \"UTC datetime when toll trip rates were last updated.\"\n ),\n Trips: z\n .array(tripRateSchema)\n .nullable()\n .describe(\n \"Array of trip rate information for all toll trips. Null when trip rates are unavailable.\"\n ),\n Version: z\n .int()\n .describe(\n \"Version number of toll trips data. Increments when trip rates data is updated.\"\n ),\n })\n .describe(\n \"Container for toll trip rates including update timestamp, array of trip rates, and version number.\"\n );\n\nexport type TollTripsRates = z.infer<typeof tollTripsRatesSchema>;\n","import { z } from \"@/shared/zod\";\n\n/**\n * Input schema for GetTollTripVersion endpoint (void input - only AccessCode)\n *\n * Provides current toll rates for high occupancy lanes. Coverage Area: Statewide.\n */\nexport const tollTripVersionInputSchema = z\n .object({})\n .describe(\n \"Input parameters for retrieving current version information for toll trip rates data.\"\n );\n\nexport type TollTripVersionInput = z.infer<typeof tollTripVersionInputSchema>;\n","import { zDotnetDate } from \"@/apis/shared\";\nimport { z } from \"@/shared/zod\";\n\n/**\n * Schema for toll trip version information\n *\n * Provides current toll rates for high occupancy lanes. Coverage Area: Statewide.\n */\nexport const tollTripVersionSchema = z\n .object({\n TimeStamp: zDotnetDate().describe(\n \"UTC datetime when version was created or last updated.\"\n ),\n Version: z\n .int()\n .describe(\n \"Version number for toll trip rates data. Increments when trip rates data is updated.\"\n ),\n })\n .describe(\n \"Version information for toll trip rates data including version number and timestamp.\"\n );\n\nexport type TollTripVersion = z.infer<typeof tollTripVersionSchema>;\n"]}