Constructor for ToyotaClient.
Private defaultAxios client
Private orchestratorAxios client
Returns a list of all of vehicles.
Optional region: string = "NATIONAL"Either a region name or 5 digit zip code. Defaults to "NATIONAL". Of type Region.
Optional language: "EN" | "ES" = "EN"2 character language code. Defaults to "EN" (English). Of type Language.
Optional transformer: ((arg, ctx) => TransformedType | Promise<TransformedType>)Uses Zod's transform method
Optional categories?: null | (undefined | null | { Optional exteriorOptional seriesReturns a list of dealerships near a specified zip code.
5 digit zip code (i.e. 12345)
Optional transformer: ((arg, ctx) => TransformedType | Promise<TransformedType>)Uses Zod's transform method
Optional code?: null | numberOptional dealers?: null | { Optional generalOptional numOptional searchOptional searchOptional success?: null | booleanOptional totalReturns details of a specific vehicle.
Also refered to as seriesId (i.e. prius, corolla, tacoma, etc.)
4 digit year (i.e. 2024)
Optional region: string = "NATIONAL"Either a region name or 5 digit zip code. Defaults to "NATIONAL".
Optional language: "EN" | "ES" = "EN"2 character language code. Defaults to "EN" (English)
Optional transformer: ((arg, ctx) => TransformedType | Promise<TransformedType>)Uses Zod's transform method
Optional categories?: null | (undefined | null | { Optional exteriorOptional seriesReturns a specific grade of a vehicle.
Also refered to as seriesId (i.e. prius, corolla, tacoma, etc.)
4 digit year (i.e. 2024)
The name of the vehicle's grade (i.e. TRD Sport)
Optional region: string = "NATIONAL"Either a region name or 5 digit zip code. Defaults to "NATIONAL".
Optional language: "EN" | "ES" = "EN"2 character language code. Defaults to "EN" (English)
Optional transformer: ((arg, ctx) => TransformedType | Promise<TransformedType>)Uses Zod's transform method
Optional accessories?: null | { Optional categories?: null | (undefined | null | { Optional configOptional defaultOptional dph?: null | numberOptional exteriorOptional grade?: null | { Optional interiorOptional mileage?: null | { Optional msrp?: null | { Optional packages?: null | { Optional seating?: null | stringOptional seriesOptional seriesOptional trim?: null | { Optional warranties?: null | { Optional wheels?: null | { Optional year?: null | numberPrivate makePerforms requests to the API and transforms outputs (if desired).
Optional transformer: ((arg, ctx) => TransformedType | Promise<TransformedType>)Uses Zod's transform method
Toyota (unofficial) API client.