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 14.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","init_tollRates_input","__esmMin","init_zod","z","tollTripBaseSchema","tollTripRateBaseSchema","init_tollTripBaseSchema","init_shared","zDotnetDate","tollRateSchema","init_tollRates_output","tollTripInfoInputSchema","init_tollTripInfo_input","tollTripInfoSchema","init_tollTripInfo_output","tollTripRatesInputSchema","tripRatesByDateInputSchema","tripRatesByVersionInputSchema","init_tollTripRates_input","tripRateSchema","tollTripsRatesSchema","init_tollTripRates_output","tollTripVersionInputSchema","init_tollTripVersion_input","tollTripVersionSchema","init_tollTripVersion_output"],"mappings":"sJAAA,IAOaA,CAAAA,CAPbC,EAAAC,GAAAA,CAAA,IAAA,CAAAC,MAOaH,CAAAA,CAAuBI,GAAAA,CACjC,OAAO,EAAE,EACT,QAAA,CACC,4EACF,KCXF,IAQaC,CAAAA,CAkDAC,EA1DbC,CAAAA,CAAAL,GAAAA,CAAA,KAAAM,GAAAA,EAAAA,CACAL,GAAAA,EAAAA,CAOaE,EAAqBD,GAAAA,CAC/B,MAAA,CAAO,CACN,WAAA,CAAaA,GAAAA,CACV,QAAO,CACP,QAAA,CAAS,gDAAgD,CAAA,CAC5D,eAAA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,CAAAA,CApBbC,EAAApB,GAAAA,CAAA,IAAA,CAAAM,MACAL,GAAAA,EAAAA,CACAI,CAAAA,EAAAA,CAOaa,EAAiBd,CAAAA,CAAuB,QAAA,CACnD,+FACF,CAAA,CASae,CAAAA,CAAuBjB,IACjC,MAAA,CAAO,CACN,YAAaK,GAAAA,EAAY,CAAE,SACzB,sDACF,CAAA,CACA,MAAOL,GAAAA,CACJ,KAAA,CAAMgB,CAAc,CAAA,CACpB,QAAA,GACA,QAAA,CACC,0FACF,EACF,OAAA,CAAShB,GAAAA,CACN,GAAA,EAAI,CACJ,QAAA,CACC,gFACF,CACJ,CAAC,CAAA,CACA,SACC,oGACF,EAAA,CAAA,MChCWmB,CAAAA,CAPbC,CAAAA,CAAAtB,IAAA,IAAA,CAAAC,GAAAA,EAAAA,CAOaoB,EAA6BnB,GAAAA,CACvC,MAAA,CAAO,EAAE,CAAA,CACT,SACC,uFACF,EAAA,CAAA,ECXF,IAQaqB,CAAAA,CARbC,CAAAA,CAAAxB,GAAAA,CAAA,KAAAM,GAAAA,EAAAA,CACAL,GAAAA,EAAAA,CAOasB,EAAwBrB,GAAAA,CAClC,MAAA,CAAO,CACN,SAAA,CAAWK,GAAAA,GAAc,QAAA,CACvB,wDACF,EACA,OAAA,CAASL,GAAAA,CACN,KAAI,CACJ,QAAA,CACC,sFACF,CACJ,CAAC,CAAA,CACA,QAAA,CACC,sFACF,EAAA,CAAA","file":"chunk-HH2BAY36.mjs","sourcesContent":["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"]}