Toyota (unofficial) API client.

Constructors

Properties

defaultClient: AxiosInstance

Axios client

orchestratorClient: AxiosInstance

Axios client

Methods

  • Returns a list of all of vehicles.

    Type Parameters

    • TransformedType = {
          data: {
              getSeries: {
                  categories?: null | (undefined | null | {
                      id: string;
                      value: string;
                  })[];
                  exteriorColors?: null | (undefined | null | {
                      code?: null | string;
                      colorFamilies?: null | {
                          hexCode?: (...) | (...) | (...);
                          name?: (...) | (...) | (...);
                      }[];
                      hexCode?: null | string[];
                      id?: null | string;
                      images?: null | {
                          alias?: (...) | (...) | (...);
                          disclaimer?: (...) | (...) | (...);
                          isHero?: (...) | (...) | (...);
                          url?: (...) | (...) | (...);
                      }[];
                      isExtraCostColor?: null | boolean;
                      msrp?: null | {
                          disclaimer?: null | string;
                          value?: null | string;
                      };
                      title?: null | string;
                  })[];
                  seriesData?: null | {
                      id?: null | string;
                      name?: null | string;
                      shortName?: null | string;
                      yearSpecificData?: null | (undefined | null | {
                          categories?: (...) | (...) | (...);
                          currentVersion?: (...) | (...) | (...);
                          date?: (...) | (...) | (...);
                          fuelType?: (...) | (...) | (...);
                          grades?: (...) | (...) | (...);
                          images?: (...) | (...) | (...);
                          mileage?: (...) | (...) | (...) | (...);
                          seating?: (...) | (...) | (...);
                          startingMsrp?: (...) | (...) | (...);
                          status?: (...) | (...) | (...);
                          trims?: (...) | (...) | (...);
                          year?: (...) | (...) | (...);
                      })[];
                  }[];
              };
          };
      }

    Parameters

    • 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

        • (arg, ctx): TransformedType | Promise<TransformedType>
        • Parameters

          • arg: {
                data: {
                    getSeries: {
                        categories?: null | (undefined | null | {
                            id: string;
                            value: string;
                        })[];
                        exteriorColors?: null | (undefined | null | {
                            code?: null | string;
                            colorFamilies?: null | (...)[];
                            hexCode?: null | (...)[];
                            id?: null | string;
                            images?: null | (...)[];
                            isExtraCostColor?: null | boolean;
                            msrp?: null | {
                                disclaimer?: ...;
                                value?: ...;
                            };
                            title?: null | string;
                        })[];
                        seriesData?: null | {
                            id?: null | string;
                            name?: null | string;
                            shortName?: null | string;
                            yearSpecificData?: null | ((...) | (...) | (...))[];
                        }[];
                    };
                };
            }
            • data: {
                  getSeries: {
                      categories?: null | (undefined | null | {
                          id: string;
                          value: string;
                      })[];
                      exteriorColors?: null | (undefined | null | {
                          code?: null | string;
                          colorFamilies?: null | (...)[];
                          hexCode?: null | (...)[];
                          id?: null | string;
                          images?: null | (...)[];
                          isExtraCostColor?: null | boolean;
                          msrp?: null | {
                              disclaimer?: ...;
                              value?: ...;
                          };
                          title?: null | string;
                      })[];
                      seriesData?: null | {
                          id?: null | string;
                          name?: null | string;
                          shortName?: null | string;
                          yearSpecificData?: null | ((...) | (...) | (...))[];
                      }[];
                  };
              }
              • getSeries: {
                    categories?: null | (undefined | null | {
                        id: string;
                        value: string;
                    })[];
                    exteriorColors?: null | (undefined | null | {
                        code?: null | string;
                        colorFamilies?: null | (...)[];
                        hexCode?: null | (...)[];
                        id?: null | string;
                        images?: null | (...)[];
                        isExtraCostColor?: null | boolean;
                        msrp?: null | {
                            disclaimer?: ...;
                            value?: ...;
                        };
                        title?: null | string;
                    })[];
                    seriesData?: null | {
                        id?: null | string;
                        name?: null | string;
                        shortName?: null | string;
                        yearSpecificData?: null | ((...) | (...) | (...))[];
                    }[];
                }
                • Optional categories?: null | (undefined | null | {
                      id: string;
                      value: string;
                  })[]
                • Optional exteriorColors?: null | (undefined | null | {
                      code?: null | string;
                      colorFamilies?: null | (...)[];
                      hexCode?: null | (...)[];
                      id?: null | string;
                      images?: null | (...)[];
                      isExtraCostColor?: null | boolean;
                      msrp?: null | {
                          disclaimer?: ...;
                          value?: ...;
                      };
                      title?: null | string;
                  })[]
                • Optional seriesData?: null | {
                      id?: null | string;
                      name?: null | string;
                      shortName?: null | string;
                      yearSpecificData?: null | ((...) | (...) | (...))[];
                  }[]
          • ctx: RefinementCtx

          Returns TransformedType | Promise<TransformedType>

    Returns Promise<{
        data: {
            getSeries: {
                categories?: null | (undefined | null | {
                    id: string;
                    value: string;
                })[];
                exteriorColors?: null | (undefined | null | {
                    code?: null | string;
                    colorFamilies?: null | (...)[];
                    hexCode?: null | (...)[];
                    id?: null | string;
                    images?: null | (...)[];
                    isExtraCostColor?: null | boolean;
                    msrp?: null | {
                        disclaimer?: ...;
                        value?: ...;
                    };
                    title?: null | string;
                })[];
                seriesData?: null | {
                    id?: null | string;
                    name?: null | string;
                    shortName?: null | string;
                    yearSpecificData?: null | ((...) | (...) | (...))[];
                }[];
            };
        };
    } | TransformedType>

  • Returns a list of dealerships near a specified zip code.

    Type Parameters

    • TransformedType = {
          code?: null | number;
          dealers?: null | {
              address1?: null | string;
              city?: null | string;
              code?: null | string;
              dealerAttributes?: null | string[];
              dealerId?: null | string;
              distance?: null | number;
              email?: null | string;
              encodedDashedCity?: null | string;
              encodedDashedName?: null | string;
              fax?: null | string;
              fmp?: null | boolean;
              fmpt1?: null | boolean;
              general?: null | {
                  hours?: null | string[][];
                  phone?: null | string;
                  url?: null | string;
              };
              hoursParts?: null | string;
              hoursSales?: null | string;
              lat?: null | number;
              latitude?: null | number;
              long?: null | number;
              longitude?: null | number;
              miraiSales?: null | boolean;
              name?: null | string;
              parts?: null | {
                  hours?: null | string[][];
                  phone?: null | string;
                  url?: null | string;
              };
              phone?: null | string;
              phoneNumberParts?: null | string;
              phoneNumberService?: null | string;
              pma?: null | boolean;
              region?: null | {
                  regionCode?: null | number;
                  success?: null | boolean;
              };
              regionId?: null | string;
              sales?: null | {
                  hours?: null | string[][];
                  phone?: null | string;
                  url?: null | string;
              };
              service?: null | {
                  hours?: null | string[][];
                  phone?: null | string;
                  url?: null | string;
              };
              serviceCenterOnly?: null | boolean;
              services?: null | string[];
              state?: null | string;
              tda?: null | {
                  code?: null | string;
                  name?: null | string;
              };
              tdaId?: null | string;
              url?: null | string;
              zip?: null | string;
          }[];
          generalMessage?: null | string;
          numDealer?: null | number;
          searchStrategy?: null | string;
          searchZipCode?: null | string;
          success?: null | boolean;
          totalDealer?: null | number;
      }

    Parameters

    • zipCode: number

      5 digit zip code (i.e. 12345)

    • Optional transformer: ((arg, ctx) => TransformedType | Promise<TransformedType>)

      Uses Zod's transform method

        • (arg, ctx): TransformedType | Promise<TransformedType>
        • Parameters

          • arg: {
                code?: null | number;
                dealers?: null | {
                    address1?: null | string;
                    city?: null | string;
                    code?: null | string;
                    dealerAttributes?: null | string[];
                    dealerId?: null | string;
                    distance?: null | number;
                    email?: null | string;
                    encodedDashedCity?: null | string;
                    encodedDashedName?: null | string;
                    fax?: null | string;
                    fmp?: null | boolean;
                    fmpt1?: null | boolean;
                    general?: null | {
                        hours?: null | (...)[][];
                        phone?: null | string;
                        url?: null | string;
                    };
                    hoursParts?: null | string;
                    hoursSales?: null | string;
                    lat?: null | number;
                    latitude?: null | number;
                    long?: null | number;
                    longitude?: null | number;
                    miraiSales?: null | boolean;
                    name?: null | string;
                    parts?: null | {
                        hours?: null | (...)[][];
                        phone?: null | string;
                        url?: null | string;
                    };
                    phone?: null | string;
                    phoneNumberParts?: null | string;
                    phoneNumberService?: null | string;
                    pma?: null | boolean;
                    region?: null | {
                        regionCode?: null | number;
                        success?: null | boolean;
                    };
                    regionId?: null | string;
                    sales?: null | {
                        hours?: null | (...)[][];
                        phone?: null | string;
                        url?: null | string;
                    };
                    service?: null | {
                        hours?: null | (...)[][];
                        phone?: null | string;
                        url?: null | string;
                    };
                    serviceCenterOnly?: null | boolean;
                    services?: null | string[];
                    state?: null | string;
                    tda?: null | {
                        code?: null | string;
                        name?: null | string;
                    };
                    tdaId?: null | string;
                    url?: null | string;
                    zip?: null | string;
                }[];
                generalMessage?: null | string;
                numDealer?: null | number;
                searchStrategy?: null | string;
                searchZipCode?: null | string;
                success?: null | boolean;
                totalDealer?: null | number;
            }
            • Optional code?: null | number
            • Optional dealers?: null | {
                  address1?: null | string;
                  city?: null | string;
                  code?: null | string;
                  dealerAttributes?: null | string[];
                  dealerId?: null | string;
                  distance?: null | number;
                  email?: null | string;
                  encodedDashedCity?: null | string;
                  encodedDashedName?: null | string;
                  fax?: null | string;
                  fmp?: null | boolean;
                  fmpt1?: null | boolean;
                  general?: null | {
                      hours?: null | (...)[][];
                      phone?: null | string;
                      url?: null | string;
                  };
                  hoursParts?: null | string;
                  hoursSales?: null | string;
                  lat?: null | number;
                  latitude?: null | number;
                  long?: null | number;
                  longitude?: null | number;
                  miraiSales?: null | boolean;
                  name?: null | string;
                  parts?: null | {
                      hours?: null | (...)[][];
                      phone?: null | string;
                      url?: null | string;
                  };
                  phone?: null | string;
                  phoneNumberParts?: null | string;
                  phoneNumberService?: null | string;
                  pma?: null | boolean;
                  region?: null | {
                      regionCode?: null | number;
                      success?: null | boolean;
                  };
                  regionId?: null | string;
                  sales?: null | {
                      hours?: null | (...)[][];
                      phone?: null | string;
                      url?: null | string;
                  };
                  service?: null | {
                      hours?: null | (...)[][];
                      phone?: null | string;
                      url?: null | string;
                  };
                  serviceCenterOnly?: null | boolean;
                  services?: null | string[];
                  state?: null | string;
                  tda?: null | {
                      code?: null | string;
                      name?: null | string;
                  };
                  tdaId?: null | string;
                  url?: null | string;
                  zip?: null | string;
              }[]
            • Optional generalMessage?: null | string
            • Optional numDealer?: null | number
            • Optional searchStrategy?: null | string
            • Optional searchZipCode?: null | string
            • Optional success?: null | boolean
            • Optional totalDealer?: null | number
          • ctx: RefinementCtx

          Returns TransformedType | Promise<TransformedType>

    Returns Promise<{
        code?: null | number;
        dealers?: null | {
            address1?: null | string;
            city?: null | string;
            code?: null | string;
            dealerAttributes?: null | string[];
            dealerId?: null | string;
            distance?: null | number;
            email?: null | string;
            encodedDashedCity?: null | string;
            encodedDashedName?: null | string;
            fax?: null | string;
            fmp?: null | boolean;
            fmpt1?: null | boolean;
            general?: null | {
                hours?: null | (...)[][];
                phone?: null | string;
                url?: null | string;
            };
            hoursParts?: null | string;
            hoursSales?: null | string;
            lat?: null | number;
            latitude?: null | number;
            long?: null | number;
            longitude?: null | number;
            miraiSales?: null | boolean;
            name?: null | string;
            parts?: null | {
                hours?: null | (...)[][];
                phone?: null | string;
                url?: null | string;
            };
            phone?: null | string;
            phoneNumberParts?: null | string;
            phoneNumberService?: null | string;
            pma?: null | boolean;
            region?: null | {
                regionCode?: null | number;
                success?: null | boolean;
            };
            regionId?: null | string;
            sales?: null | {
                hours?: null | (...)[][];
                phone?: null | string;
                url?: null | string;
            };
            service?: null | {
                hours?: null | (...)[][];
                phone?: null | string;
                url?: null | string;
            };
            serviceCenterOnly?: null | boolean;
            services?: null | string[];
            state?: null | string;
            tda?: null | {
                code?: null | string;
                name?: null | string;
            };
            tdaId?: null | string;
            url?: null | string;
            zip?: null | string;
        }[];
        generalMessage?: null | string;
        numDealer?: null | number;
        searchStrategy?: null | string;
        searchZipCode?: null | string;
        success?: null | boolean;
        totalDealer?: null | number;
    } | TransformedType>

  • Returns details of a specific vehicle.

    Type Parameters

    • TransformedType = {
          data: {
              getSeries: {
                  categories?: null | (undefined | null | {
                      id: string;
                      value: string;
                  })[];
                  exteriorColors?: null | (undefined | null | {
                      code?: null | string;
                      colorFamilies?: null | {
                          hexCode?: (...) | (...) | (...);
                          name?: (...) | (...) | (...);
                      }[];
                      hexCode?: null | string[];
                      id?: null | string;
                      images?: null | {
                          alias?: (...) | (...) | (...);
                          disclaimer?: (...) | (...) | (...);
                          isHero?: (...) | (...) | (...);
                          url?: (...) | (...) | (...);
                      }[];
                      isExtraCostColor?: null | boolean;
                      msrp?: null | {
                          disclaimer?: null | string;
                          value?: null | string;
                      };
                      title?: null | string;
                  })[];
                  seriesData?: null | {
                      id?: null | string;
                      name?: null | string;
                      shortName?: null | string;
                      yearSpecificData?: null | (undefined | null | {
                          categories?: (...) | (...) | (...);
                          currentVersion?: (...) | (...) | (...);
                          date?: (...) | (...) | (...);
                          fuelType?: (...) | (...) | (...);
                          grades?: (...) | (...) | (...);
                          images?: (...) | (...) | (...);
                          mileage?: (...) | (...) | (...) | (...);
                          seating?: (...) | (...) | (...);
                          startingMsrp?: (...) | (...) | (...);
                          status?: (...) | (...) | (...);
                          trims?: (...) | (...) | (...);
                          year?: (...) | (...) | (...);
                      })[];
                  }[];
              };
          };
      }

    Parameters

    • modelCode: string

      Also refered to as seriesId (i.e. prius, corolla, tacoma, etc.)

    • year: number

      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

        • (arg, ctx): TransformedType | Promise<TransformedType>
        • Parameters

          • arg: {
                data: {
                    getSeries: {
                        categories?: null | (undefined | null | {
                            id: string;
                            value: string;
                        })[];
                        exteriorColors?: null | (undefined | null | {
                            code?: null | string;
                            colorFamilies?: null | (...)[];
                            hexCode?: null | (...)[];
                            id?: null | string;
                            images?: null | (...)[];
                            isExtraCostColor?: null | boolean;
                            msrp?: null | {
                                disclaimer?: ...;
                                value?: ...;
                            };
                            title?: null | string;
                        })[];
                        seriesData?: null | {
                            id?: null | string;
                            name?: null | string;
                            shortName?: null | string;
                            yearSpecificData?: null | ((...) | (...) | (...))[];
                        }[];
                    };
                };
            }
            • data: {
                  getSeries: {
                      categories?: null | (undefined | null | {
                          id: string;
                          value: string;
                      })[];
                      exteriorColors?: null | (undefined | null | {
                          code?: null | string;
                          colorFamilies?: null | (...)[];
                          hexCode?: null | (...)[];
                          id?: null | string;
                          images?: null | (...)[];
                          isExtraCostColor?: null | boolean;
                          msrp?: null | {
                              disclaimer?: ...;
                              value?: ...;
                          };
                          title?: null | string;
                      })[];
                      seriesData?: null | {
                          id?: null | string;
                          name?: null | string;
                          shortName?: null | string;
                          yearSpecificData?: null | ((...) | (...) | (...))[];
                      }[];
                  };
              }
              • getSeries: {
                    categories?: null | (undefined | null | {
                        id: string;
                        value: string;
                    })[];
                    exteriorColors?: null | (undefined | null | {
                        code?: null | string;
                        colorFamilies?: null | (...)[];
                        hexCode?: null | (...)[];
                        id?: null | string;
                        images?: null | (...)[];
                        isExtraCostColor?: null | boolean;
                        msrp?: null | {
                            disclaimer?: ...;
                            value?: ...;
                        };
                        title?: null | string;
                    })[];
                    seriesData?: null | {
                        id?: null | string;
                        name?: null | string;
                        shortName?: null | string;
                        yearSpecificData?: null | ((...) | (...) | (...))[];
                    }[];
                }
                • Optional categories?: null | (undefined | null | {
                      id: string;
                      value: string;
                  })[]
                • Optional exteriorColors?: null | (undefined | null | {
                      code?: null | string;
                      colorFamilies?: null | (...)[];
                      hexCode?: null | (...)[];
                      id?: null | string;
                      images?: null | (...)[];
                      isExtraCostColor?: null | boolean;
                      msrp?: null | {
                          disclaimer?: ...;
                          value?: ...;
                      };
                      title?: null | string;
                  })[]
                • Optional seriesData?: null | {
                      id?: null | string;
                      name?: null | string;
                      shortName?: null | string;
                      yearSpecificData?: null | ((...) | (...) | (...))[];
                  }[]
          • ctx: RefinementCtx

          Returns TransformedType | Promise<TransformedType>

    Returns Promise<{
        data: {
            getSeries: {
                categories?: null | (undefined | null | {
                    id: string;
                    value: string;
                })[];
                exteriorColors?: null | (undefined | null | {
                    code?: null | string;
                    colorFamilies?: null | (...)[];
                    hexCode?: null | (...)[];
                    id?: null | string;
                    images?: null | (...)[];
                    isExtraCostColor?: null | boolean;
                    msrp?: null | {
                        disclaimer?: ...;
                        value?: ...;
                    };
                    title?: null | string;
                })[];
                seriesData?: null | {
                    id?: null | string;
                    name?: null | string;
                    shortName?: null | string;
                    yearSpecificData?: null | ((...) | (...) | (...))[];
                }[];
            };
        };
    } | TransformedType>

  • Returns a specific grade of a vehicle.

    Type Parameters

    • TransformedType = {
          data: {
              getConfigByGrade: {
                  accessories?: null | {
                      code?: null | string;
                      compatibilityWithCurrentConfig?: null | {
                          availableWithTrims?: null | string[];
                          isCompatible?: null | boolean;
                          requiredItems?: null | {
                              itemCode?: ...;
                              itemType?: ...;
                          }[];
                      };
                      description?: null | string;
                      disclaimer?: null | string;
                      id?: null | string;
                      images?: null | {
                          alias?: null | (...)[];
                          disclaimer?: null | string;
                          isHero?: null | boolean;
                          url?: null | string;
                      }[];
                      includedAccessoryIds?: null | string[];
                      installPoint?: null | string;
                      title?: null | string;
                      type?: null | string;
                      warranty?: null | string;
                  }[];
                  categories?: null | (undefined | null | {
                      id: string;
                      value: string;
                  })[];
                  configImages?: null | {
                      background?: null | {
                          alias?: null | string[];
                          disclaimer?: null | string;
                          isHero?: null | boolean;
                          url?: null | string;
                      }[];
                      exterior?: null | {
                          alias?: null | string[];
                          disclaimer?: null | string;
                          isHero?: null | boolean;
                          url?: null | string;
                      }[];
                      interior?: null | {
                          alias?: null | string[];
                          disclaimer?: null | string;
                          isHero?: null | boolean;
                          url?: null | string;
                      }[];
                  };
                  defaultConfig?: null | {
                      accessoryIds?: null | {
                          code?: null | string;
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: null | (...)[];
                              isCompatible?: null | boolean;
                              requiredItems?: null | (...)[];
                          };
                          description?: null | string;
                          disclaimer?: null | string;
                          id?: null | string;
                          images?: null | {
                              alias?: (...) | (...) | (...);
                              disclaimer?: (...) | (...) | (...);
                              isHero?: (...) | (...) | (...) | (...);
                              url?: (...) | (...) | (...);
                          }[];
                          includedAccessoryIds?: null | string[];
                          installPoint?: null | string;
                          title?: null | string;
                          type?: null | string;
                          warranty?: null | string;
                      };
                      exteriorColorId?: null | string;
                      interiorColorId?: null | string;
                      packageIds?: null | {
                          id?: null | string;
                          msrp?: null | {
                              disclaimer?: (...) | (...) | (...);
                              value?: (...) | (...) | (...);
                          };
                      }[];
                      trimId?: null | string;
                      wheelsId?: null | string;
                  };
                  dph?: null | number;
                  exteriorColors?: null | (undefined | null | {
                      code?: null | string;
                      colorFamilies?: null | {
                          hexCode?: (...) | (...) | (...);
                          name?: (...) | (...) | (...);
                      }[];
                      hexCode?: null | string[];
                      id?: null | string;
                      images?: null | {
                          alias?: (...) | (...) | (...);
                          disclaimer?: (...) | (...) | (...);
                          isHero?: (...) | (...) | (...);
                          url?: (...) | (...) | (...);
                      }[];
                      isExtraCostColor?: null | boolean;
                      msrp?: null | {
                          disclaimer?: null | string;
                          value?: null | string;
                      };
                      title?: null | string;
                  })[];
                  grade?: null | {
                      asPriceShown?: null | {
                          disclaimer?: null | string;
                          value?: null | string;
                      };
                      baseMsrp?: null | {
                          disclaimer?: null | string;
                          value?: null | string;
                      };
                      exteriorColorIds?: null | string[];
                      gradeName?: null | string;
                      hasSeatingOptions?: null | boolean;
                      image?: null | {
                          alias?: null | string[];
                          disclaimer?: null | string;
                          isHero?: null | boolean;
                          url?: null | string;
                      };
                      interiorColorIds?: null | string[];
                      mileage?: null | {
                          category?: null | string;
                          city?: null | number;
                          combined?: null | number;
                          highway?: null | number;
                          isAvailable?: null | boolean;
                          mpge?: null | number;
                          range?: null | number;
                      };
                      trims?: null | {
                          accessoryIds?: null | {
                              code?: ...;
                              compatibilityWithCurrentConfig?: ...;
                              description?: ...;
                              disclaimer?: ...;
                              id?: ...;
                              images?: ...;
                              includedAccessoryIds?: ...;
                              installPoint?: ...;
                              title?: ...;
                              type?: ...;
                              warranty?: ...;
                          }[];
                          cabBed?: null | {
                              bedDepth?: (...) | (...) | (...);
                              bedLength?: (...) | (...) | (...);
                              bedWidth?: (...) | (...) | (...);
                              betweenWheelWell?: (...) | (...) | (...);
                              cabDetails?: (...) | (...) | (...);
                              code?: (...) | (...) | (...);
                              compatibilityWithCurrentConfig?: (...) | (...) | (...);
                              description?: (...) | (...) | (...);
                              id?: (...) | (...) | (...);
                              label?: (...) | (...) | (...);
                              overallHeight?: (...) | (...) | (...);
                              overallLength?: (...) | (...) | (...);
                              overallWidth?: (...) | (...) | (...);
                          };
                          code?: null | string;
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: (...) | (...) | (...);
                              isCompatible?: (...) | (...) | (...) | (...);
                              requiredItems?: (...) | (...) | (...);
                          };
                          defaultColorId?: null | string;
                          description?: null | string;
                          drive?: null | {
                              compatibilityWithCurrentConfig?: (...) | (...) | (...);
                              description?: (...) | (...) | (...);
                              disclaimer?: (...) | (...) | (...);
                              icon?: (...) | (...) | (...);
                              value?: (...) | (...) | (...);
                          };
                          engine?: null | {
                              compatibilityWithCurrentConfig?: (...) | (...) | (...);
                              description?: (...) | (...) | (...);
                              disclaimer?: (...) | (...) | (...);
                              icon?: (...) | (...) | (...);
                              value?: (...) | (...) | (...);
                          };
                          exteriorColorIds?: null | string[];
                          fuelType?: null | string;
                          horsepower?: null | {
                              compatibilityWithCurrentConfig?: (...) | (...) | (...);
                              description?: (...) | (...) | (...);
                              disclaimer?: (...) | (...) | (...);
                              icon?: (...) | (...) | (...);
                              value?: (...) | (...) | (...);
                          };
                          images?: null | {
                              alias?: ...;
                              disclaimer?: ...;
                              isHero?: ...;
                              url?: ...;
                          }[];
                          interiorColorIds?: null | string[];
                          isDefaultTrim?: null | boolean;
                          mileage?: null | {
                              category?: (...) | (...) | (...);
                              city?: (...) | (...) | (...);
                              combined?: (...) | (...) | (...);
                              highway?: (...) | (...) | (...);
                              isAvailable?: (...) | (...) | (...) | (...);
                              mpge?: (...) | (...) | (...);
                              range?: (...) | (...) | (...);
                          };
                          msrp?: null | {
                              disclaimer?: (...) | (...) | (...);
                              value?: (...) | (...) | (...);
                          };
                          packageIds?: null | {
                              id?: ...;
                              msrp?: ...;
                          }[];
                          powertrain?: null | {
                              compatibilityWithCurrentConfig?: (...) | (...) | (...);
                              drive?: (...) | (...) | (...);
                              engine?: (...) | (...) | (...);
                              horsepower?: (...) | (...) | (...);
                              transmission?: (...) | (...) | (...);
                          };
                          seating?: null | {
                              compatibilityWithCurrentConfig?: (...) | (...) | (...);
                              description?: (...) | (...) | (...);
                              disclaimer?: (...) | (...) | (...);
                              icon?: (...) | (...) | (...);
                              value?: (...) | (...) | (...);
                          };
                          shortDescription?: null | string;
                          title?: null | string;
                          transmission?: null | {
                              compatibilityWithCurrentConfig?: (...) | (...) | (...);
                              description?: (...) | (...) | (...);
                              disclaimer?: (...) | (...) | (...);
                              icon?: (...) | (...) | (...);
                              value?: (...) | (...) | (...);
                          };
                          warrantyIds?: null | string[];
                          wheelCodes?: null | string[];
                      }[];
                  };
                  interiorColors?: null | (undefined | null | {
                      code?: null | string;
                      colorFamilies?: null | {
                          hexCode?: (...) | (...) | (...);
                          name?: (...) | (...) | (...);
                      }[];
                      hexCode?: null | string[];
                      id?: null | string;
                      images?: null | {
                          alias?: (...) | (...) | (...);
                          disclaimer?: (...) | (...) | (...);
                          isHero?: (...) | (...) | (...);
                          url?: (...) | (...) | (...);
                      }[];
                      isExtraCostColor?: null | boolean;
                      msrp?: null | {
                          disclaimer?: null | string;
                          value?: null | string;
                      };
                      title?: null | string;
                  })[];
                  mileage?: null | {
                      category?: null | string;
                      city?: null | number;
                      combined?: null | number;
                      highway?: null | number;
                      isAvailable?: null | boolean;
                      mpge?: null | number;
                      range?: null | number;
                  };
                  msrp?: null | {
                      disclaimer?: null | string;
                      value?: null | string;
                  };
                  packages?: null | {
                      availability?: null | string;
                      category?: null | {
                          id: string;
                          value: string;
                      };
                      code?: null | string;
                      compatibilityWithCurrentConfig?: null | {
                          availableWithTrims?: null | string[];
                          isCompatible?: null | boolean;
                          requiredItems?: null | {
                              itemCode?: ...;
                              itemType?: ...;
                          }[];
                      };
                      description?: null | string;
                      id?: null | string;
                      image?: null | {
                          alias?: null | (...)[];
                          disclaimer?: null | string;
                          isHero?: null | boolean;
                          url?: null | string;
                      }[];
                      installPoint?: null | string;
                      packageFeatures?: null | {
                          category?: null | string;
                          disclaimer?: null | string;
                          subCategories?: null | (...)[];
                          title?: null | string;
                      }[];
                      subCategories?: null | (undefined | null | {
                          id: string;
                          value: string;
                      })[];
                      title?: null | string;
                      type?: null | string;
                  }[];
                  seating?: null | string;
                  seriesId?: null | string;
                  seriesName?: null | string;
                  trim?: null | {
                      accessoryIds?: null | {
                          code?: null | string;
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: (...) | (...) | (...);
                              isCompatible?: (...) | (...) | (...) | (...);
                              requiredItems?: (...) | (...) | (...);
                          };
                          description?: null | string;
                          disclaimer?: null | string;
                          id?: null | string;
                          images?: null | {
                              alias?: ...;
                              disclaimer?: ...;
                              isHero?: ...;
                              url?: ...;
                          }[];
                          includedAccessoryIds?: null | string[];
                          installPoint?: null | string;
                          title?: null | string;
                          type?: null | string;
                          warranty?: null | string;
                      }[];
                      cabBed?: null | {
                          bedDepth?: null | string;
                          bedLength?: null | string;
                          bedWidth?: null | string;
                          betweenWheelWell?: null | string;
                          cabDetails?: null | string;
                          code?: null | string;
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: null | (...)[];
                              isCompatible?: null | boolean;
                              requiredItems?: null | (...)[];
                          };
                          description?: null | string;
                          id?: null | string;
                          label?: null | string;
                          overallHeight?: null | string;
                          overallLength?: null | string;
                          overallWidth?: null | string;
                      };
                      code?: null | string;
                      compatibilityWithCurrentConfig?: null | {
                          availableWithTrims?: null | string[];
                          isCompatible?: null | boolean;
                          requiredItems?: null | {
                              itemCode?: (...) | (...) | (...);
                              itemType?: (...) | (...) | (...);
                          }[];
                      };
                      defaultColorId?: null | string;
                      description?: null | string;
                      drive?: null | {
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: null | (...)[];
                              isCompatible?: null | boolean;
                              requiredItems?: null | (...)[];
                          };
                          description?: null | string;
                          disclaimer?: null | string;
                          icon?: null | string;
                          value?: null | string;
                      };
                      engine?: null | {
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: null | (...)[];
                              isCompatible?: null | boolean;
                              requiredItems?: null | (...)[];
                          };
                          description?: null | string;
                          disclaimer?: null | string;
                          icon?: null | string;
                          value?: null | string;
                      };
                      exteriorColorIds?: null | string[];
                      fuelType?: null | string;
                      horsepower?: null | {
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: null | (...)[];
                              isCompatible?: null | boolean;
                              requiredItems?: null | (...)[];
                          };
                          description?: null | string;
                          disclaimer?: null | string;
                          icon?: null | string;
                          value?: null | string;
                      };
                      images?: null | {
                          alias?: null | string[];
                          disclaimer?: null | string;
                          isHero?: null | boolean;
                          url?: null | string;
                      }[];
                      interiorColorIds?: null | string[];
                      isDefaultTrim?: null | boolean;
                      mileage?: null | {
                          category?: null | string;
                          city?: null | number;
                          combined?: null | number;
                          highway?: null | number;
                          isAvailable?: null | boolean;
                          mpge?: null | number;
                          range?: null | number;
                      };
                      msrp?: null | {
                          disclaimer?: null | string;
                          value?: null | string;
                      };
                      packageIds?: null | {
                          id?: null | string;
                          msrp?: null | {
                              disclaimer?: (...) | (...) | (...);
                              value?: (...) | (...) | (...);
                          };
                      }[];
                      powertrain?: null | {
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: null | (...)[];
                              isCompatible?: null | boolean;
                              requiredItems?: null | (...)[];
                          };
                          drive?: null | {
                              compatibilityWithCurrentConfig?: null | {
                                  availableWithTrims?: ...;
                                  isCompatible?: ...;
                                  requiredItems?: ...;
                              };
                              description?: null | string;
                              disclaimer?: null | string;
                              icon?: null | string;
                              value?: null | string;
                          };
                          engine?: null | {
                              compatibilityWithCurrentConfig?: null | {
                                  availableWithTrims?: ...;
                                  isCompatible?: ...;
                                  requiredItems?: ...;
                              };
                              description?: null | string;
                              disclaimer?: null | string;
                              icon?: null | string;
                              value?: null | string;
                          };
                          horsepower?: null | {
                              compatibilityWithCurrentConfig?: null | {
                                  availableWithTrims?: ...;
                                  isCompatible?: ...;
                                  requiredItems?: ...;
                              };
                              description?: null | string;
                              disclaimer?: null | string;
                              icon?: null | string;
                              value?: null | string;
                          };
                          transmission?: null | {
                              compatibilityWithCurrentConfig?: null | {
                                  availableWithTrims?: ...;
                                  isCompatible?: ...;
                                  requiredItems?: ...;
                              };
                              description?: null | string;
                              disclaimer?: null | string;
                              icon?: null | string;
                              value?: null | string;
                          };
                      };
                      seating?: null | {
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: null | (...)[];
                              isCompatible?: null | boolean;
                              requiredItems?: null | (...)[];
                          };
                          description?: null | string;
                          disclaimer?: null | string;
                          icon?: null | string;
                          value?: null | string;
                      };
                      shortDescription?: null | string;
                      title?: null | string;
                      transmission?: null | {
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: null | (...)[];
                              isCompatible?: null | boolean;
                              requiredItems?: null | (...)[];
                          };
                          description?: null | string;
                          disclaimer?: null | string;
                          icon?: null | string;
                          value?: null | string;
                      };
                      warrantyIds?: null | string[];
                      wheelCodes?: null | string[];
                  };
                  warranties?: null | {
                      category?: null | string;
                      description?: null | string;
                      id?: null | string;
                      name?: null | string;
                      value?: null | string;
                  }[];
                  wheels?: null | {
                      code?: null | string;
                      compatibiltyWithCurrentConfig?: null | {
                          availableWithTrims?: null | string[];
                          isCompatible?: null | boolean;
                          requiredItems?: null | {
                              itemCode?: ...;
                              itemType?: ...;
                          }[];
                      };
                      image?: null | {
                          alias?: null | string[];
                          disclaimer?: null | string;
                          isHero?: null | boolean;
                          url?: null | string;
                      };
                      title?: null | string;
                      type?: null | "STANDARD" | "OPTION" | "PACKAGE";
                  }[];
                  year?: null | number;
              };
          };
      }

    Parameters

    • modelCode: string

      Also refered to as seriesId (i.e. prius, corolla, tacoma, etc.)

    • year: number

      4 digit year (i.e. 2024)

    • gradeName: string

      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

        • (arg, ctx): TransformedType | Promise<TransformedType>
        • Parameters

          • arg: {
                data: {
                    getConfigByGrade: {
                        accessories?: null | {
                            code?: null | string;
                            compatibilityWithCurrentConfig?: null | {
                                availableWithTrims?: (...) | (...) | (...);
                                isCompatible?: (...) | (...) | (...) | (...);
                                requiredItems?: (...) | (...) | (...);
                            };
                            description?: null | string;
                            disclaimer?: null | string;
                            id?: null | string;
                            images?: null | {
                                alias?: ...;
                                disclaimer?: ...;
                                isHero?: ...;
                                url?: ...;
                            }[];
                            includedAccessoryIds?: null | string[];
                            installPoint?: null | string;
                            title?: null | string;
                            type?: null | string;
                            warranty?: null | string;
                        }[];
                        categories?: null | (undefined | null | {
                            id: string;
                            value: string;
                        })[];
                        configImages?: null | {
                            background?: null | {
                                alias?: (...) | (...) | (...);
                                disclaimer?: (...) | (...) | (...);
                                isHero?: (...) | (...) | (...) | (...);
                                url?: (...) | (...) | (...);
                            }[];
                            exterior?: null | {
                                alias?: (...) | (...) | (...);
                                disclaimer?: (...) | (...) | (...);
                                isHero?: (...) | (...) | (...) | (...);
                                url?: (...) | (...) | (...);
                            }[];
                            interior?: null | {
                                alias?: (...) | (...) | (...);
                                disclaimer?: (...) | (...) | (...);
                                isHero?: (...) | (...) | (...) | (...);
                                url?: (...) | (...) | (...);
                            }[];
                        };
                        defaultConfig?: null | {
                            accessoryIds?: null | {
                                code?: null | string;
                                compatibilityWithCurrentConfig?: null | {
                                    availableWithTrims?: ...;
                                    isCompatible?: ...;
                                    requiredItems?: ...;
                                };
                                description?: null | string;
                                disclaimer?: null | string;
                                id?: null | string;
                                images?: null | (...)[];
                                includedAccessoryIds?: null | (...)[];
                                installPoint?: null | string;
                                title?: null | string;
                                type?: null | string;
                                warranty?: null | string;
                            };
                            exteriorColorId?: null | string;
                            interiorColorId?: null | string;
                            packageIds?: null | {
                                id?: (...) | (...) | (...);
                                msrp?: (...) | (...) | (...);
                            }[];
                            trimId?: null | string;
                            wheelsId?: null | string;
                        };
                        dph?: null | number;
                        exteriorColors?: null | (undefined | null | {
                            code?: null | string;
                            colorFamilies?: null | (...)[];
                            hexCode?: null | (...)[];
                            id?: null | string;
                            images?: null | (...)[];
                            isExtraCostColor?: null | boolean;
                            msrp?: null | {
                                disclaimer?: ...;
                                value?: ...;
                            };
                            title?: null | string;
                        })[];
                        grade?: null | {
                            asPriceShown?: null | {
                                disclaimer?: null | string;
                                value?: null | string;
                            };
                            baseMsrp?: null | {
                                disclaimer?: null | string;
                                value?: null | string;
                            };
                            exteriorColorIds?: null | string[];
                            gradeName?: null | string;
                            hasSeatingOptions?: null | boolean;
                            image?: null | {
                                alias?: null | (...)[];
                                disclaimer?: null | string;
                                isHero?: null | boolean;
                                url?: null | string;
                            };
                            interiorColorIds?: null | string[];
                            mileage?: null | {
                                category?: null | string;
                                city?: null | number;
                                combined?: null | number;
                                highway?: null | number;
                                isAvailable?: null | boolean;
                                mpge?: null | number;
                                range?: null | number;
                            };
                            trims?: null | {
                                accessoryIds?: (...) | (...) | (...);
                                cabBed?: (...) | (...) | (...);
                                code?: (...) | (...) | (...);
                                compatibilityWithCurrentConfig?: (...) | (...) | (...);
                                defaultColorId?: (...) | (...) | (...);
                                description?: (...) | (...) | (...);
                                drive?: (...) | (...) | (...);
                                engine?: (...) | (...) | (...);
                                exteriorColorIds?: (...) | (...) | (...);
                                fuelType?: (...) | (...) | (...);
                                horsepower?: (...) | (...) | (...);
                                images?: (...) | (...) | (...);
                                interiorColorIds?: (...) | (...) | (...);
                                isDefaultTrim?: (...) | (...) | (...) | (...);
                                mileage?: (...) | (...) | (...);
                                msrp?: (...) | (...) | (...);
                                packageIds?: (...) | (...) | (...);
                                powertrain?: (...) | (...) | (...);
                                seating?: (...) | (...) | (...);
                                shortDescription?: (...) | (...) | (...);
                                title?: (...) | (...) | (...);
                                transmission?: (...) | (...) | (...);
                                warrantyIds?: (...) | (...) | (...);
                                wheelCodes?: (...) | (...) | (...);
                            }[];
                        };
                        interiorColors?: null | (undefined | null | {
                            code?: null | string;
                            colorFamilies?: null | (...)[];
                            hexCode?: null | (...)[];
                            id?: null | string;
                            images?: null | (...)[];
                            isExtraCostColor?: null | boolean;
                            msrp?: null | {
                                disclaimer?: ...;
                                value?: ...;
                            };
                            title?: null | string;
                        })[];
                        mileage?: null | {
                            category?: null | string;
                            city?: null | number;
                            combined?: null | number;
                            highway?: null | number;
                            isAvailable?: null | boolean;
                            mpge?: null | number;
                            range?: null | number;
                        };
                        msrp?: null | {
                            disclaimer?: null | string;
                            value?: null | string;
                        };
                        packages?: null | {
                            availability?: null | string;
                            category?: null | {
                                id: string;
                                value: string;
                            };
                            code?: null | string;
                            compatibilityWithCurrentConfig?: null | {
                                availableWithTrims?: (...) | (...) | (...);
                                isCompatible?: (...) | (...) | (...) | (...);
                                requiredItems?: (...) | (...) | (...);
                            };
                            description?: null | string;
                            id?: null | string;
                            image?: null | {
                                alias?: ...;
                                disclaimer?: ...;
                                isHero?: ...;
                                url?: ...;
                            }[];
                            installPoint?: null | string;
                            packageFeatures?: null | {
                                category?: ...;
                                disclaimer?: ...;
                                subCategories?: ...;
                                title?: ...;
                            }[];
                            subCategories?: null | ((...) | (...) | (...))[];
                            title?: null | string;
                            type?: null | string;
                        }[];
                        seating?: null | string;
                        seriesId?: null | string;
                        seriesName?: null | string;
                        trim?: null | {
                            accessoryIds?: null | {
                                code?: (...) | (...) | (...);
                                compatibilityWithCurrentConfig?: (...) | (...) | (...);
                                description?: (...) | (...) | (...);
                                disclaimer?: (...) | (...) | (...);
                                id?: (...) | (...) | (...);
                                images?: (...) | (...) | (...);
                                includedAccessoryIds?: (...) | (...) | (...);
                                installPoint?: (...) | (...) | (...);
                                title?: (...) | (...) | (...);
                                type?: (...) | (...) | (...);
                                warranty?: (...) | (...) | (...);
                            }[];
                            cabBed?: null | {
                                bedDepth?: null | string;
                                bedLength?: null | string;
                                bedWidth?: null | string;
                                betweenWheelWell?: null | string;
                                cabDetails?: null | string;
                                code?: null | string;
                                compatibilityWithCurrentConfig?: null | {
                                    availableWithTrims?: ...;
                                    isCompatible?: ...;
                                    requiredItems?: ...;
                                };
                                description?: null | string;
                                id?: null | string;
                                label?: null | string;
                                overallHeight?: null | string;
                                overallLength?: null | string;
                                overallWidth?: null | string;
                            };
                            code?: null | string;
                            compatibilityWithCurrentConfig?: null | {
                                availableWithTrims?: null | (...)[];
                                isCompatible?: null | boolean;
                                requiredItems?: null | (...)[];
                            };
                            defaultColorId?: null | string;
                            description?: null | string;
                            drive?: null | {
                                compatibilityWithCurrentConfig?: null | {
                                    availableWithTrims?: ...;
                                    isCompatible?: ...;
                                    requiredItems?: ...;
                                };
                                description?: null | string;
                                disclaimer?: null | string;
                                icon?: null | string;
                                value?: null | string;
                            };
                            engine?: null | {
                                compatibilityWithCurrentConfig?: null | {
                                    availableWithTrims?: ...;
                                    isCompatible?: ...;
                                    requiredItems?: ...;
                                };
                                description?: null | string;
                                disclaimer?: null | string;
                                icon?: null | string;
                                value?: null | string;
                            };
                            exteriorColorIds?: null | string[];
                            fuelType?: null | string;
                            horsepower?: null | {
                                compatibilityWithCurrentConfig?: null | {
                                    availableWithTrims?: ...;
                                    isCompatible?: ...;
                                    requiredItems?: ...;
                                };
                                description?: null | string;
                                disclaimer?: null | string;
                                icon?: null | string;
                                value?: null | string;
                            };
                            images?: null | {
                                alias?: (...) | (...) | (...);
                                disclaimer?: (...) | (...) | (...);
                                isHero?: (...) | (...) | (...) | (...);
                                url?: (...) | (...) | (...);
                            }[];
                            interiorColorIds?: null | string[];
                            isDefaultTrim?: null | boolean;
                            mileage?: null | {
                                category?: null | string;
                                city?: null | number;
                                combined?: null | number;
                                highway?: null | number;
                                isAvailable?: null | boolean;
                                mpge?: null | number;
                                range?: null | number;
                            };
                            msrp?: null | {
                                disclaimer?: null | string;
                                value?: null | string;
                            };
                            packageIds?: null | {
                                id?: (...) | (...) | (...);
                                msrp?: (...) | (...) | (...);
                            }[];
                            powertrain?: null | {
                                compatibilityWithCurrentConfig?: null | {
                                    availableWithTrims?: ...;
                                    isCompatible?: ...;
                                    requiredItems?: ...;
                                };
                                drive?: null | {
                                    compatibilityWithCurrentConfig?: ...;
                                    description?: ...;
                                    disclaimer?: ...;
                                    icon?: ...;
                                    value?: ...;
                                };
                                engine?: null | {
                                    compatibilityWithCurrentConfig?: ...;
                                    description?: ...;
                                    disclaimer?: ...;
                                    icon?: ...;
                                    value?: ...;
                                };
                                horsepower?: null | {
                                    compatibilityWithCurrentConfig?: ...;
                                    description?: ...;
                                    disclaimer?: ...;
                                    icon?: ...;
                                    value?: ...;
                                };
                                transmission?: null | {
                                    compatibilityWithCurrentConfig?: ...;
                                    description?: ...;
                                    disclaimer?: ...;
                                    icon?: ...;
                                    value?: ...;
                                };
                            };
                            seating?: null | {
                                compatibilityWithCurrentConfig?: null | {
                                    availableWithTrims?: ...;
                                    isCompatible?: ...;
                                    requiredItems?: ...;
                                };
                                description?: null | string;
                                disclaimer?: null | string;
                                icon?: null | string;
                                value?: null | string;
                            };
                            shortDescription?: null | string;
                            title?: null | string;
                            transmission?: null | {
                                compatibilityWithCurrentConfig?: null | {
                                    availableWithTrims?: ...;
                                    isCompatible?: ...;
                                    requiredItems?: ...;
                                };
                                description?: null | string;
                                disclaimer?: null | string;
                                icon?: null | string;
                                value?: null | string;
                            };
                            warrantyIds?: null | string[];
                            wheelCodes?: null | string[];
                        };
                        warranties?: null | {
                            category?: null | string;
                            description?: null | string;
                            id?: null | string;
                            name?: null | string;
                            value?: null | string;
                        }[];
                        wheels?: null | {
                            code?: null | string;
                            compatibiltyWithCurrentConfig?: null | {
                                availableWithTrims?: (...) | (...) | (...);
                                isCompatible?: (...) | (...) | (...) | (...);
                                requiredItems?: (...) | (...) | (...);
                            };
                            image?: null | {
                                alias?: (...) | (...) | (...);
                                disclaimer?: (...) | (...) | (...);
                                isHero?: (...) | (...) | (...) | (...);
                                url?: (...) | (...) | (...);
                            };
                            title?: null | string;
                            type?: null | "STANDARD" | "OPTION" | "PACKAGE";
                        }[];
                        year?: null | number;
                    };
                };
            }
            • data: {
                  getConfigByGrade: {
                      accessories?: null | {
                          code?: null | string;
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: (...) | (...) | (...);
                              isCompatible?: (...) | (...) | (...) | (...);
                              requiredItems?: (...) | (...) | (...);
                          };
                          description?: null | string;
                          disclaimer?: null | string;
                          id?: null | string;
                          images?: null | {
                              alias?: ...;
                              disclaimer?: ...;
                              isHero?: ...;
                              url?: ...;
                          }[];
                          includedAccessoryIds?: null | string[];
                          installPoint?: null | string;
                          title?: null | string;
                          type?: null | string;
                          warranty?: null | string;
                      }[];
                      categories?: null | (undefined | null | {
                          id: string;
                          value: string;
                      })[];
                      configImages?: null | {
                          background?: null | {
                              alias?: (...) | (...) | (...);
                              disclaimer?: (...) | (...) | (...);
                              isHero?: (...) | (...) | (...) | (...);
                              url?: (...) | (...) | (...);
                          }[];
                          exterior?: null | {
                              alias?: (...) | (...) | (...);
                              disclaimer?: (...) | (...) | (...);
                              isHero?: (...) | (...) | (...) | (...);
                              url?: (...) | (...) | (...);
                          }[];
                          interior?: null | {
                              alias?: (...) | (...) | (...);
                              disclaimer?: (...) | (...) | (...);
                              isHero?: (...) | (...) | (...) | (...);
                              url?: (...) | (...) | (...);
                          }[];
                      };
                      defaultConfig?: null | {
                          accessoryIds?: null | {
                              code?: null | string;
                              compatibilityWithCurrentConfig?: null | {
                                  availableWithTrims?: ...;
                                  isCompatible?: ...;
                                  requiredItems?: ...;
                              };
                              description?: null | string;
                              disclaimer?: null | string;
                              id?: null | string;
                              images?: null | (...)[];
                              includedAccessoryIds?: null | (...)[];
                              installPoint?: null | string;
                              title?: null | string;
                              type?: null | string;
                              warranty?: null | string;
                          };
                          exteriorColorId?: null | string;
                          interiorColorId?: null | string;
                          packageIds?: null | {
                              id?: (...) | (...) | (...);
                              msrp?: (...) | (...) | (...);
                          }[];
                          trimId?: null | string;
                          wheelsId?: null | string;
                      };
                      dph?: null | number;
                      exteriorColors?: null | (undefined | null | {
                          code?: null | string;
                          colorFamilies?: null | (...)[];
                          hexCode?: null | (...)[];
                          id?: null | string;
                          images?: null | (...)[];
                          isExtraCostColor?: null | boolean;
                          msrp?: null | {
                              disclaimer?: ...;
                              value?: ...;
                          };
                          title?: null | string;
                      })[];
                      grade?: null | {
                          asPriceShown?: null | {
                              disclaimer?: null | string;
                              value?: null | string;
                          };
                          baseMsrp?: null | {
                              disclaimer?: null | string;
                              value?: null | string;
                          };
                          exteriorColorIds?: null | string[];
                          gradeName?: null | string;
                          hasSeatingOptions?: null | boolean;
                          image?: null | {
                              alias?: null | (...)[];
                              disclaimer?: null | string;
                              isHero?: null | boolean;
                              url?: null | string;
                          };
                          interiorColorIds?: null | string[];
                          mileage?: null | {
                              category?: null | string;
                              city?: null | number;
                              combined?: null | number;
                              highway?: null | number;
                              isAvailable?: null | boolean;
                              mpge?: null | number;
                              range?: null | number;
                          };
                          trims?: null | {
                              accessoryIds?: (...) | (...) | (...);
                              cabBed?: (...) | (...) | (...);
                              code?: (...) | (...) | (...);
                              compatibilityWithCurrentConfig?: (...) | (...) | (...);
                              defaultColorId?: (...) | (...) | (...);
                              description?: (...) | (...) | (...);
                              drive?: (...) | (...) | (...);
                              engine?: (...) | (...) | (...);
                              exteriorColorIds?: (...) | (...) | (...);
                              fuelType?: (...) | (...) | (...);
                              horsepower?: (...) | (...) | (...);
                              images?: (...) | (...) | (...);
                              interiorColorIds?: (...) | (...) | (...);
                              isDefaultTrim?: (...) | (...) | (...) | (...);
                              mileage?: (...) | (...) | (...);
                              msrp?: (...) | (...) | (...);
                              packageIds?: (...) | (...) | (...);
                              powertrain?: (...) | (...) | (...);
                              seating?: (...) | (...) | (...);
                              shortDescription?: (...) | (...) | (...);
                              title?: (...) | (...) | (...);
                              transmission?: (...) | (...) | (...);
                              warrantyIds?: (...) | (...) | (...);
                              wheelCodes?: (...) | (...) | (...);
                          }[];
                      };
                      interiorColors?: null | (undefined | null | {
                          code?: null | string;
                          colorFamilies?: null | (...)[];
                          hexCode?: null | (...)[];
                          id?: null | string;
                          images?: null | (...)[];
                          isExtraCostColor?: null | boolean;
                          msrp?: null | {
                              disclaimer?: ...;
                              value?: ...;
                          };
                          title?: null | string;
                      })[];
                      mileage?: null | {
                          category?: null | string;
                          city?: null | number;
                          combined?: null | number;
                          highway?: null | number;
                          isAvailable?: null | boolean;
                          mpge?: null | number;
                          range?: null | number;
                      };
                      msrp?: null | {
                          disclaimer?: null | string;
                          value?: null | string;
                      };
                      packages?: null | {
                          availability?: null | string;
                          category?: null | {
                              id: string;
                              value: string;
                          };
                          code?: null | string;
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: (...) | (...) | (...);
                              isCompatible?: (...) | (...) | (...) | (...);
                              requiredItems?: (...) | (...) | (...);
                          };
                          description?: null | string;
                          id?: null | string;
                          image?: null | {
                              alias?: ...;
                              disclaimer?: ...;
                              isHero?: ...;
                              url?: ...;
                          }[];
                          installPoint?: null | string;
                          packageFeatures?: null | {
                              category?: ...;
                              disclaimer?: ...;
                              subCategories?: ...;
                              title?: ...;
                          }[];
                          subCategories?: null | ((...) | (...) | (...))[];
                          title?: null | string;
                          type?: null | string;
                      }[];
                      seating?: null | string;
                      seriesId?: null | string;
                      seriesName?: null | string;
                      trim?: null | {
                          accessoryIds?: null | {
                              code?: (...) | (...) | (...);
                              compatibilityWithCurrentConfig?: (...) | (...) | (...);
                              description?: (...) | (...) | (...);
                              disclaimer?: (...) | (...) | (...);
                              id?: (...) | (...) | (...);
                              images?: (...) | (...) | (...);
                              includedAccessoryIds?: (...) | (...) | (...);
                              installPoint?: (...) | (...) | (...);
                              title?: (...) | (...) | (...);
                              type?: (...) | (...) | (...);
                              warranty?: (...) | (...) | (...);
                          }[];
                          cabBed?: null | {
                              bedDepth?: null | string;
                              bedLength?: null | string;
                              bedWidth?: null | string;
                              betweenWheelWell?: null | string;
                              cabDetails?: null | string;
                              code?: null | string;
                              compatibilityWithCurrentConfig?: null | {
                                  availableWithTrims?: ...;
                                  isCompatible?: ...;
                                  requiredItems?: ...;
                              };
                              description?: null | string;
                              id?: null | string;
                              label?: null | string;
                              overallHeight?: null | string;
                              overallLength?: null | string;
                              overallWidth?: null | string;
                          };
                          code?: null | string;
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: null | (...)[];
                              isCompatible?: null | boolean;
                              requiredItems?: null | (...)[];
                          };
                          defaultColorId?: null | string;
                          description?: null | string;
                          drive?: null | {
                              compatibilityWithCurrentConfig?: null | {
                                  availableWithTrims?: ...;
                                  isCompatible?: ...;
                                  requiredItems?: ...;
                              };
                              description?: null | string;
                              disclaimer?: null | string;
                              icon?: null | string;
                              value?: null | string;
                          };
                          engine?: null | {
                              compatibilityWithCurrentConfig?: null | {
                                  availableWithTrims?: ...;
                                  isCompatible?: ...;
                                  requiredItems?: ...;
                              };
                              description?: null | string;
                              disclaimer?: null | string;
                              icon?: null | string;
                              value?: null | string;
                          };
                          exteriorColorIds?: null | string[];
                          fuelType?: null | string;
                          horsepower?: null | {
                              compatibilityWithCurrentConfig?: null | {
                                  availableWithTrims?: ...;
                                  isCompatible?: ...;
                                  requiredItems?: ...;
                              };
                              description?: null | string;
                              disclaimer?: null | string;
                              icon?: null | string;
                              value?: null | string;
                          };
                          images?: null | {
                              alias?: (...) | (...) | (...);
                              disclaimer?: (...) | (...) | (...);
                              isHero?: (...) | (...) | (...) | (...);
                              url?: (...) | (...) | (...);
                          }[];
                          interiorColorIds?: null | string[];
                          isDefaultTrim?: null | boolean;
                          mileage?: null | {
                              category?: null | string;
                              city?: null | number;
                              combined?: null | number;
                              highway?: null | number;
                              isAvailable?: null | boolean;
                              mpge?: null | number;
                              range?: null | number;
                          };
                          msrp?: null | {
                              disclaimer?: null | string;
                              value?: null | string;
                          };
                          packageIds?: null | {
                              id?: (...) | (...) | (...);
                              msrp?: (...) | (...) | (...);
                          }[];
                          powertrain?: null | {
                              compatibilityWithCurrentConfig?: null | {
                                  availableWithTrims?: ...;
                                  isCompatible?: ...;
                                  requiredItems?: ...;
                              };
                              drive?: null | {
                                  compatibilityWithCurrentConfig?: ...;
                                  description?: ...;
                                  disclaimer?: ...;
                                  icon?: ...;
                                  value?: ...;
                              };
                              engine?: null | {
                                  compatibilityWithCurrentConfig?: ...;
                                  description?: ...;
                                  disclaimer?: ...;
                                  icon?: ...;
                                  value?: ...;
                              };
                              horsepower?: null | {
                                  compatibilityWithCurrentConfig?: ...;
                                  description?: ...;
                                  disclaimer?: ...;
                                  icon?: ...;
                                  value?: ...;
                              };
                              transmission?: null | {
                                  compatibilityWithCurrentConfig?: ...;
                                  description?: ...;
                                  disclaimer?: ...;
                                  icon?: ...;
                                  value?: ...;
                              };
                          };
                          seating?: null | {
                              compatibilityWithCurrentConfig?: null | {
                                  availableWithTrims?: ...;
                                  isCompatible?: ...;
                                  requiredItems?: ...;
                              };
                              description?: null | string;
                              disclaimer?: null | string;
                              icon?: null | string;
                              value?: null | string;
                          };
                          shortDescription?: null | string;
                          title?: null | string;
                          transmission?: null | {
                              compatibilityWithCurrentConfig?: null | {
                                  availableWithTrims?: ...;
                                  isCompatible?: ...;
                                  requiredItems?: ...;
                              };
                              description?: null | string;
                              disclaimer?: null | string;
                              icon?: null | string;
                              value?: null | string;
                          };
                          warrantyIds?: null | string[];
                          wheelCodes?: null | string[];
                      };
                      warranties?: null | {
                          category?: null | string;
                          description?: null | string;
                          id?: null | string;
                          name?: null | string;
                          value?: null | string;
                      }[];
                      wheels?: null | {
                          code?: null | string;
                          compatibiltyWithCurrentConfig?: null | {
                              availableWithTrims?: (...) | (...) | (...);
                              isCompatible?: (...) | (...) | (...) | (...);
                              requiredItems?: (...) | (...) | (...);
                          };
                          image?: null | {
                              alias?: (...) | (...) | (...);
                              disclaimer?: (...) | (...) | (...);
                              isHero?: (...) | (...) | (...) | (...);
                              url?: (...) | (...) | (...);
                          };
                          title?: null | string;
                          type?: null | "STANDARD" | "OPTION" | "PACKAGE";
                      }[];
                      year?: null | number;
                  };
              }
              • getConfigByGrade: {
                    accessories?: null | {
                        code?: null | string;
                        compatibilityWithCurrentConfig?: null | {
                            availableWithTrims?: (...) | (...) | (...);
                            isCompatible?: (...) | (...) | (...) | (...);
                            requiredItems?: (...) | (...) | (...);
                        };
                        description?: null | string;
                        disclaimer?: null | string;
                        id?: null | string;
                        images?: null | {
                            alias?: ...;
                            disclaimer?: ...;
                            isHero?: ...;
                            url?: ...;
                        }[];
                        includedAccessoryIds?: null | string[];
                        installPoint?: null | string;
                        title?: null | string;
                        type?: null | string;
                        warranty?: null | string;
                    }[];
                    categories?: null | (undefined | null | {
                        id: string;
                        value: string;
                    })[];
                    configImages?: null | {
                        background?: null | {
                            alias?: (...) | (...) | (...);
                            disclaimer?: (...) | (...) | (...);
                            isHero?: (...) | (...) | (...) | (...);
                            url?: (...) | (...) | (...);
                        }[];
                        exterior?: null | {
                            alias?: (...) | (...) | (...);
                            disclaimer?: (...) | (...) | (...);
                            isHero?: (...) | (...) | (...) | (...);
                            url?: (...) | (...) | (...);
                        }[];
                        interior?: null | {
                            alias?: (...) | (...) | (...);
                            disclaimer?: (...) | (...) | (...);
                            isHero?: (...) | (...) | (...) | (...);
                            url?: (...) | (...) | (...);
                        }[];
                    };
                    defaultConfig?: null | {
                        accessoryIds?: null | {
                            code?: null | string;
                            compatibilityWithCurrentConfig?: null | {
                                availableWithTrims?: ...;
                                isCompatible?: ...;
                                requiredItems?: ...;
                            };
                            description?: null | string;
                            disclaimer?: null | string;
                            id?: null | string;
                            images?: null | (...)[];
                            includedAccessoryIds?: null | (...)[];
                            installPoint?: null | string;
                            title?: null | string;
                            type?: null | string;
                            warranty?: null | string;
                        };
                        exteriorColorId?: null | string;
                        interiorColorId?: null | string;
                        packageIds?: null | {
                            id?: (...) | (...) | (...);
                            msrp?: (...) | (...) | (...);
                        }[];
                        trimId?: null | string;
                        wheelsId?: null | string;
                    };
                    dph?: null | number;
                    exteriorColors?: null | (undefined | null | {
                        code?: null | string;
                        colorFamilies?: null | (...)[];
                        hexCode?: null | (...)[];
                        id?: null | string;
                        images?: null | (...)[];
                        isExtraCostColor?: null | boolean;
                        msrp?: null | {
                            disclaimer?: ...;
                            value?: ...;
                        };
                        title?: null | string;
                    })[];
                    grade?: null | {
                        asPriceShown?: null | {
                            disclaimer?: null | string;
                            value?: null | string;
                        };
                        baseMsrp?: null | {
                            disclaimer?: null | string;
                            value?: null | string;
                        };
                        exteriorColorIds?: null | string[];
                        gradeName?: null | string;
                        hasSeatingOptions?: null | boolean;
                        image?: null | {
                            alias?: null | (...)[];
                            disclaimer?: null | string;
                            isHero?: null | boolean;
                            url?: null | string;
                        };
                        interiorColorIds?: null | string[];
                        mileage?: null | {
                            category?: null | string;
                            city?: null | number;
                            combined?: null | number;
                            highway?: null | number;
                            isAvailable?: null | boolean;
                            mpge?: null | number;
                            range?: null | number;
                        };
                        trims?: null | {
                            accessoryIds?: (...) | (...) | (...);
                            cabBed?: (...) | (...) | (...);
                            code?: (...) | (...) | (...);
                            compatibilityWithCurrentConfig?: (...) | (...) | (...);
                            defaultColorId?: (...) | (...) | (...);
                            description?: (...) | (...) | (...);
                            drive?: (...) | (...) | (...);
                            engine?: (...) | (...) | (...);
                            exteriorColorIds?: (...) | (...) | (...);
                            fuelType?: (...) | (...) | (...);
                            horsepower?: (...) | (...) | (...);
                            images?: (...) | (...) | (...);
                            interiorColorIds?: (...) | (...) | (...);
                            isDefaultTrim?: (...) | (...) | (...) | (...);
                            mileage?: (...) | (...) | (...);
                            msrp?: (...) | (...) | (...);
                            packageIds?: (...) | (...) | (...);
                            powertrain?: (...) | (...) | (...);
                            seating?: (...) | (...) | (...);
                            shortDescription?: (...) | (...) | (...);
                            title?: (...) | (...) | (...);
                            transmission?: (...) | (...) | (...);
                            warrantyIds?: (...) | (...) | (...);
                            wheelCodes?: (...) | (...) | (...);
                        }[];
                    };
                    interiorColors?: null | (undefined | null | {
                        code?: null | string;
                        colorFamilies?: null | (...)[];
                        hexCode?: null | (...)[];
                        id?: null | string;
                        images?: null | (...)[];
                        isExtraCostColor?: null | boolean;
                        msrp?: null | {
                            disclaimer?: ...;
                            value?: ...;
                        };
                        title?: null | string;
                    })[];
                    mileage?: null | {
                        category?: null | string;
                        city?: null | number;
                        combined?: null | number;
                        highway?: null | number;
                        isAvailable?: null | boolean;
                        mpge?: null | number;
                        range?: null | number;
                    };
                    msrp?: null | {
                        disclaimer?: null | string;
                        value?: null | string;
                    };
                    packages?: null | {
                        availability?: null | string;
                        category?: null | {
                            id: string;
                            value: string;
                        };
                        code?: null | string;
                        compatibilityWithCurrentConfig?: null | {
                            availableWithTrims?: (...) | (...) | (...);
                            isCompatible?: (...) | (...) | (...) | (...);
                            requiredItems?: (...) | (...) | (...);
                        };
                        description?: null | string;
                        id?: null | string;
                        image?: null | {
                            alias?: ...;
                            disclaimer?: ...;
                            isHero?: ...;
                            url?: ...;
                        }[];
                        installPoint?: null | string;
                        packageFeatures?: null | {
                            category?: ...;
                            disclaimer?: ...;
                            subCategories?: ...;
                            title?: ...;
                        }[];
                        subCategories?: null | ((...) | (...) | (...))[];
                        title?: null | string;
                        type?: null | string;
                    }[];
                    seating?: null | string;
                    seriesId?: null | string;
                    seriesName?: null | string;
                    trim?: null | {
                        accessoryIds?: null | {
                            code?: (...) | (...) | (...);
                            compatibilityWithCurrentConfig?: (...) | (...) | (...);
                            description?: (...) | (...) | (...);
                            disclaimer?: (...) | (...) | (...);
                            id?: (...) | (...) | (...);
                            images?: (...) | (...) | (...);
                            includedAccessoryIds?: (...) | (...) | (...);
                            installPoint?: (...) | (...) | (...);
                            title?: (...) | (...) | (...);
                            type?: (...) | (...) | (...);
                            warranty?: (...) | (...) | (...);
                        }[];
                        cabBed?: null | {
                            bedDepth?: null | string;
                            bedLength?: null | string;
                            bedWidth?: null | string;
                            betweenWheelWell?: null | string;
                            cabDetails?: null | string;
                            code?: null | string;
                            compatibilityWithCurrentConfig?: null | {
                                availableWithTrims?: ...;
                                isCompatible?: ...;
                                requiredItems?: ...;
                            };
                            description?: null | string;
                            id?: null | string;
                            label?: null | string;
                            overallHeight?: null | string;
                            overallLength?: null | string;
                            overallWidth?: null | string;
                        };
                        code?: null | string;
                        compatibilityWithCurrentConfig?: null | {
                            availableWithTrims?: null | (...)[];
                            isCompatible?: null | boolean;
                            requiredItems?: null | (...)[];
                        };
                        defaultColorId?: null | string;
                        description?: null | string;
                        drive?: null | {
                            compatibilityWithCurrentConfig?: null | {
                                availableWithTrims?: ...;
                                isCompatible?: ...;
                                requiredItems?: ...;
                            };
                            description?: null | string;
                            disclaimer?: null | string;
                            icon?: null | string;
                            value?: null | string;
                        };
                        engine?: null | {
                            compatibilityWithCurrentConfig?: null | {
                                availableWithTrims?: ...;
                                isCompatible?: ...;
                                requiredItems?: ...;
                            };
                            description?: null | string;
                            disclaimer?: null | string;
                            icon?: null | string;
                            value?: null | string;
                        };
                        exteriorColorIds?: null | string[];
                        fuelType?: null | string;
                        horsepower?: null | {
                            compatibilityWithCurrentConfig?: null | {
                                availableWithTrims?: ...;
                                isCompatible?: ...;
                                requiredItems?: ...;
                            };
                            description?: null | string;
                            disclaimer?: null | string;
                            icon?: null | string;
                            value?: null | string;
                        };
                        images?: null | {
                            alias?: (...) | (...) | (...);
                            disclaimer?: (...) | (...) | (...);
                            isHero?: (...) | (...) | (...) | (...);
                            url?: (...) | (...) | (...);
                        }[];
                        interiorColorIds?: null | string[];
                        isDefaultTrim?: null | boolean;
                        mileage?: null | {
                            category?: null | string;
                            city?: null | number;
                            combined?: null | number;
                            highway?: null | number;
                            isAvailable?: null | boolean;
                            mpge?: null | number;
                            range?: null | number;
                        };
                        msrp?: null | {
                            disclaimer?: null | string;
                            value?: null | string;
                        };
                        packageIds?: null | {
                            id?: (...) | (...) | (...);
                            msrp?: (...) | (...) | (...);
                        }[];
                        powertrain?: null | {
                            compatibilityWithCurrentConfig?: null | {
                                availableWithTrims?: ...;
                                isCompatible?: ...;
                                requiredItems?: ...;
                            };
                            drive?: null | {
                                compatibilityWithCurrentConfig?: ...;
                                description?: ...;
                                disclaimer?: ...;
                                icon?: ...;
                                value?: ...;
                            };
                            engine?: null | {
                                compatibilityWithCurrentConfig?: ...;
                                description?: ...;
                                disclaimer?: ...;
                                icon?: ...;
                                value?: ...;
                            };
                            horsepower?: null | {
                                compatibilityWithCurrentConfig?: ...;
                                description?: ...;
                                disclaimer?: ...;
                                icon?: ...;
                                value?: ...;
                            };
                            transmission?: null | {
                                compatibilityWithCurrentConfig?: ...;
                                description?: ...;
                                disclaimer?: ...;
                                icon?: ...;
                                value?: ...;
                            };
                        };
                        seating?: null | {
                            compatibilityWithCurrentConfig?: null | {
                                availableWithTrims?: ...;
                                isCompatible?: ...;
                                requiredItems?: ...;
                            };
                            description?: null | string;
                            disclaimer?: null | string;
                            icon?: null | string;
                            value?: null | string;
                        };
                        shortDescription?: null | string;
                        title?: null | string;
                        transmission?: null | {
                            compatibilityWithCurrentConfig?: null | {
                                availableWithTrims?: ...;
                                isCompatible?: ...;
                                requiredItems?: ...;
                            };
                            description?: null | string;
                            disclaimer?: null | string;
                            icon?: null | string;
                            value?: null | string;
                        };
                        warrantyIds?: null | string[];
                        wheelCodes?: null | string[];
                    };
                    warranties?: null | {
                        category?: null | string;
                        description?: null | string;
                        id?: null | string;
                        name?: null | string;
                        value?: null | string;
                    }[];
                    wheels?: null | {
                        code?: null | string;
                        compatibiltyWithCurrentConfig?: null | {
                            availableWithTrims?: (...) | (...) | (...);
                            isCompatible?: (...) | (...) | (...) | (...);
                            requiredItems?: (...) | (...) | (...);
                        };
                        image?: null | {
                            alias?: (...) | (...) | (...);
                            disclaimer?: (...) | (...) | (...);
                            isHero?: (...) | (...) | (...) | (...);
                            url?: (...) | (...) | (...);
                        };
                        title?: null | string;
                        type?: null | "STANDARD" | "OPTION" | "PACKAGE";
                    }[];
                    year?: null | number;
                }
                • Optional accessories?: null | {
                      code?: null | string;
                      compatibilityWithCurrentConfig?: null | {
                          availableWithTrims?: (...) | (...) | (...);
                          isCompatible?: (...) | (...) | (...) | (...);
                          requiredItems?: (...) | (...) | (...);
                      };
                      description?: null | string;
                      disclaimer?: null | string;
                      id?: null | string;
                      images?: null | {
                          alias?: ...;
                          disclaimer?: ...;
                          isHero?: ...;
                          url?: ...;
                      }[];
                      includedAccessoryIds?: null | string[];
                      installPoint?: null | string;
                      title?: null | string;
                      type?: null | string;
                      warranty?: null | string;
                  }[]
                • Optional categories?: null | (undefined | null | {
                      id: string;
                      value: string;
                  })[]
                • Optional configImages?: null | {
                      background?: null | {
                          alias?: (...) | (...) | (...);
                          disclaimer?: (...) | (...) | (...);
                          isHero?: (...) | (...) | (...) | (...);
                          url?: (...) | (...) | (...);
                      }[];
                      exterior?: null | {
                          alias?: (...) | (...) | (...);
                          disclaimer?: (...) | (...) | (...);
                          isHero?: (...) | (...) | (...) | (...);
                          url?: (...) | (...) | (...);
                      }[];
                      interior?: null | {
                          alias?: (...) | (...) | (...);
                          disclaimer?: (...) | (...) | (...);
                          isHero?: (...) | (...) | (...) | (...);
                          url?: (...) | (...) | (...);
                      }[];
                  }
                • Optional defaultConfig?: null | {
                      accessoryIds?: null | {
                          code?: null | string;
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: ...;
                              isCompatible?: ...;
                              requiredItems?: ...;
                          };
                          description?: null | string;
                          disclaimer?: null | string;
                          id?: null | string;
                          images?: null | (...)[];
                          includedAccessoryIds?: null | (...)[];
                          installPoint?: null | string;
                          title?: null | string;
                          type?: null | string;
                          warranty?: null | string;
                      };
                      exteriorColorId?: null | string;
                      interiorColorId?: null | string;
                      packageIds?: null | {
                          id?: (...) | (...) | (...);
                          msrp?: (...) | (...) | (...);
                      }[];
                      trimId?: null | string;
                      wheelsId?: null | string;
                  }
                • Optional dph?: null | number
                • Optional exteriorColors?: null | (undefined | null | {
                      code?: null | string;
                      colorFamilies?: null | (...)[];
                      hexCode?: null | (...)[];
                      id?: null | string;
                      images?: null | (...)[];
                      isExtraCostColor?: null | boolean;
                      msrp?: null | {
                          disclaimer?: ...;
                          value?: ...;
                      };
                      title?: null | string;
                  })[]
                • Optional grade?: null | {
                      asPriceShown?: null | {
                          disclaimer?: null | string;
                          value?: null | string;
                      };
                      baseMsrp?: null | {
                          disclaimer?: null | string;
                          value?: null | string;
                      };
                      exteriorColorIds?: null | string[];
                      gradeName?: null | string;
                      hasSeatingOptions?: null | boolean;
                      image?: null | {
                          alias?: null | (...)[];
                          disclaimer?: null | string;
                          isHero?: null | boolean;
                          url?: null | string;
                      };
                      interiorColorIds?: null | string[];
                      mileage?: null | {
                          category?: null | string;
                          city?: null | number;
                          combined?: null | number;
                          highway?: null | number;
                          isAvailable?: null | boolean;
                          mpge?: null | number;
                          range?: null | number;
                      };
                      trims?: null | {
                          accessoryIds?: (...) | (...) | (...);
                          cabBed?: (...) | (...) | (...);
                          code?: (...) | (...) | (...);
                          compatibilityWithCurrentConfig?: (...) | (...) | (...);
                          defaultColorId?: (...) | (...) | (...);
                          description?: (...) | (...) | (...);
                          drive?: (...) | (...) | (...);
                          engine?: (...) | (...) | (...);
                          exteriorColorIds?: (...) | (...) | (...);
                          fuelType?: (...) | (...) | (...);
                          horsepower?: (...) | (...) | (...);
                          images?: (...) | (...) | (...);
                          interiorColorIds?: (...) | (...) | (...);
                          isDefaultTrim?: (...) | (...) | (...) | (...);
                          mileage?: (...) | (...) | (...);
                          msrp?: (...) | (...) | (...);
                          packageIds?: (...) | (...) | (...);
                          powertrain?: (...) | (...) | (...);
                          seating?: (...) | (...) | (...);
                          shortDescription?: (...) | (...) | (...);
                          title?: (...) | (...) | (...);
                          transmission?: (...) | (...) | (...);
                          warrantyIds?: (...) | (...) | (...);
                          wheelCodes?: (...) | (...) | (...);
                      }[];
                  }
                • Optional interiorColors?: null | (undefined | null | {
                      code?: null | string;
                      colorFamilies?: null | (...)[];
                      hexCode?: null | (...)[];
                      id?: null | string;
                      images?: null | (...)[];
                      isExtraCostColor?: null | boolean;
                      msrp?: null | {
                          disclaimer?: ...;
                          value?: ...;
                      };
                      title?: null | string;
                  })[]
                • Optional mileage?: null | {
                      category?: null | string;
                      city?: null | number;
                      combined?: null | number;
                      highway?: null | number;
                      isAvailable?: null | boolean;
                      mpge?: null | number;
                      range?: null | number;
                  }
                • Optional msrp?: null | {
                      disclaimer?: null | string;
                      value?: null | string;
                  }
                • Optional packages?: null | {
                      availability?: null | string;
                      category?: null | {
                          id: string;
                          value: string;
                      };
                      code?: null | string;
                      compatibilityWithCurrentConfig?: null | {
                          availableWithTrims?: (...) | (...) | (...);
                          isCompatible?: (...) | (...) | (...) | (...);
                          requiredItems?: (...) | (...) | (...);
                      };
                      description?: null | string;
                      id?: null | string;
                      image?: null | {
                          alias?: ...;
                          disclaimer?: ...;
                          isHero?: ...;
                          url?: ...;
                      }[];
                      installPoint?: null | string;
                      packageFeatures?: null | {
                          category?: ...;
                          disclaimer?: ...;
                          subCategories?: ...;
                          title?: ...;
                      }[];
                      subCategories?: null | ((...) | (...) | (...))[];
                      title?: null | string;
                      type?: null | string;
                  }[]
                • Optional seating?: null | string
                • Optional seriesId?: null | string
                • Optional seriesName?: null | string
                • Optional trim?: null | {
                      accessoryIds?: null | {
                          code?: (...) | (...) | (...);
                          compatibilityWithCurrentConfig?: (...) | (...) | (...);
                          description?: (...) | (...) | (...);
                          disclaimer?: (...) | (...) | (...);
                          id?: (...) | (...) | (...);
                          images?: (...) | (...) | (...);
                          includedAccessoryIds?: (...) | (...) | (...);
                          installPoint?: (...) | (...) | (...);
                          title?: (...) | (...) | (...);
                          type?: (...) | (...) | (...);
                          warranty?: (...) | (...) | (...);
                      }[];
                      cabBed?: null | {
                          bedDepth?: null | string;
                          bedLength?: null | string;
                          bedWidth?: null | string;
                          betweenWheelWell?: null | string;
                          cabDetails?: null | string;
                          code?: null | string;
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: ...;
                              isCompatible?: ...;
                              requiredItems?: ...;
                          };
                          description?: null | string;
                          id?: null | string;
                          label?: null | string;
                          overallHeight?: null | string;
                          overallLength?: null | string;
                          overallWidth?: null | string;
                      };
                      code?: null | string;
                      compatibilityWithCurrentConfig?: null | {
                          availableWithTrims?: null | (...)[];
                          isCompatible?: null | boolean;
                          requiredItems?: null | (...)[];
                      };
                      defaultColorId?: null | string;
                      description?: null | string;
                      drive?: null | {
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: ...;
                              isCompatible?: ...;
                              requiredItems?: ...;
                          };
                          description?: null | string;
                          disclaimer?: null | string;
                          icon?: null | string;
                          value?: null | string;
                      };
                      engine?: null | {
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: ...;
                              isCompatible?: ...;
                              requiredItems?: ...;
                          };
                          description?: null | string;
                          disclaimer?: null | string;
                          icon?: null | string;
                          value?: null | string;
                      };
                      exteriorColorIds?: null | string[];
                      fuelType?: null | string;
                      horsepower?: null | {
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: ...;
                              isCompatible?: ...;
                              requiredItems?: ...;
                          };
                          description?: null | string;
                          disclaimer?: null | string;
                          icon?: null | string;
                          value?: null | string;
                      };
                      images?: null | {
                          alias?: (...) | (...) | (...);
                          disclaimer?: (...) | (...) | (...);
                          isHero?: (...) | (...) | (...) | (...);
                          url?: (...) | (...) | (...);
                      }[];
                      interiorColorIds?: null | string[];
                      isDefaultTrim?: null | boolean;
                      mileage?: null | {
                          category?: null | string;
                          city?: null | number;
                          combined?: null | number;
                          highway?: null | number;
                          isAvailable?: null | boolean;
                          mpge?: null | number;
                          range?: null | number;
                      };
                      msrp?: null | {
                          disclaimer?: null | string;
                          value?: null | string;
                      };
                      packageIds?: null | {
                          id?: (...) | (...) | (...);
                          msrp?: (...) | (...) | (...);
                      }[];
                      powertrain?: null | {
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: ...;
                              isCompatible?: ...;
                              requiredItems?: ...;
                          };
                          drive?: null | {
                              compatibilityWithCurrentConfig?: ...;
                              description?: ...;
                              disclaimer?: ...;
                              icon?: ...;
                              value?: ...;
                          };
                          engine?: null | {
                              compatibilityWithCurrentConfig?: ...;
                              description?: ...;
                              disclaimer?: ...;
                              icon?: ...;
                              value?: ...;
                          };
                          horsepower?: null | {
                              compatibilityWithCurrentConfig?: ...;
                              description?: ...;
                              disclaimer?: ...;
                              icon?: ...;
                              value?: ...;
                          };
                          transmission?: null | {
                              compatibilityWithCurrentConfig?: ...;
                              description?: ...;
                              disclaimer?: ...;
                              icon?: ...;
                              value?: ...;
                          };
                      };
                      seating?: null | {
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: ...;
                              isCompatible?: ...;
                              requiredItems?: ...;
                          };
                          description?: null | string;
                          disclaimer?: null | string;
                          icon?: null | string;
                          value?: null | string;
                      };
                      shortDescription?: null | string;
                      title?: null | string;
                      transmission?: null | {
                          compatibilityWithCurrentConfig?: null | {
                              availableWithTrims?: ...;
                              isCompatible?: ...;
                              requiredItems?: ...;
                          };
                          description?: null | string;
                          disclaimer?: null | string;
                          icon?: null | string;
                          value?: null | string;
                      };
                      warrantyIds?: null | string[];
                      wheelCodes?: null | string[];
                  }
                • Optional warranties?: null | {
                      category?: null | string;
                      description?: null | string;
                      id?: null | string;
                      name?: null | string;
                      value?: null | string;
                  }[]
                • Optional wheels?: null | {
                      code?: null | string;
                      compatibiltyWithCurrentConfig?: null | {
                          availableWithTrims?: (...) | (...) | (...);
                          isCompatible?: (...) | (...) | (...) | (...);
                          requiredItems?: (...) | (...) | (...);
                      };
                      image?: null | {
                          alias?: (...) | (...) | (...);
                          disclaimer?: (...) | (...) | (...);
                          isHero?: (...) | (...) | (...) | (...);
                          url?: (...) | (...) | (...);
                      };
                      title?: null | string;
                      type?: null | "STANDARD" | "OPTION" | "PACKAGE";
                  }[]
                • Optional year?: null | number
          • ctx: RefinementCtx

          Returns TransformedType | Promise<TransformedType>

    Returns Promise<{
        data: {
            getConfigByGrade: {
                accessories?: null | {
                    code?: null | string;
                    compatibilityWithCurrentConfig?: null | {
                        availableWithTrims?: (...) | (...) | (...);
                        isCompatible?: (...) | (...) | (...) | (...);
                        requiredItems?: (...) | (...) | (...);
                    };
                    description?: null | string;
                    disclaimer?: null | string;
                    id?: null | string;
                    images?: null | {
                        alias?: ...;
                        disclaimer?: ...;
                        isHero?: ...;
                        url?: ...;
                    }[];
                    includedAccessoryIds?: null | string[];
                    installPoint?: null | string;
                    title?: null | string;
                    type?: null | string;
                    warranty?: null | string;
                }[];
                categories?: null | (undefined | null | {
                    id: string;
                    value: string;
                })[];
                configImages?: null | {
                    background?: null | {
                        alias?: (...) | (...) | (...);
                        disclaimer?: (...) | (...) | (...);
                        isHero?: (...) | (...) | (...) | (...);
                        url?: (...) | (...) | (...);
                    }[];
                    exterior?: null | {
                        alias?: (...) | (...) | (...);
                        disclaimer?: (...) | (...) | (...);
                        isHero?: (...) | (...) | (...) | (...);
                        url?: (...) | (...) | (...);
                    }[];
                    interior?: null | {
                        alias?: (...) | (...) | (...);
                        disclaimer?: (...) | (...) | (...);
                        isHero?: (...) | (...) | (...) | (...);
                        url?: (...) | (...) | (...);
                    }[];
                };
                defaultConfig?: null | {
                    accessoryIds?: null | {
                        code?: null | string;
                        compatibilityWithCurrentConfig?: null | {
                            availableWithTrims?: ...;
                            isCompatible?: ...;
                            requiredItems?: ...;
                        };
                        description?: null | string;
                        disclaimer?: null | string;
                        id?: null | string;
                        images?: null | (...)[];
                        includedAccessoryIds?: null | (...)[];
                        installPoint?: null | string;
                        title?: null | string;
                        type?: null | string;
                        warranty?: null | string;
                    };
                    exteriorColorId?: null | string;
                    interiorColorId?: null | string;
                    packageIds?: null | {
                        id?: (...) | (...) | (...);
                        msrp?: (...) | (...) | (...);
                    }[];
                    trimId?: null | string;
                    wheelsId?: null | string;
                };
                dph?: null | number;
                exteriorColors?: null | (undefined | null | {
                    code?: null | string;
                    colorFamilies?: null | (...)[];
                    hexCode?: null | (...)[];
                    id?: null | string;
                    images?: null | (...)[];
                    isExtraCostColor?: null | boolean;
                    msrp?: null | {
                        disclaimer?: ...;
                        value?: ...;
                    };
                    title?: null | string;
                })[];
                grade?: null | {
                    asPriceShown?: null | {
                        disclaimer?: null | string;
                        value?: null | string;
                    };
                    baseMsrp?: null | {
                        disclaimer?: null | string;
                        value?: null | string;
                    };
                    exteriorColorIds?: null | string[];
                    gradeName?: null | string;
                    hasSeatingOptions?: null | boolean;
                    image?: null | {
                        alias?: null | (...)[];
                        disclaimer?: null | string;
                        isHero?: null | boolean;
                        url?: null | string;
                    };
                    interiorColorIds?: null | string[];
                    mileage?: null | {
                        category?: null | string;
                        city?: null | number;
                        combined?: null | number;
                        highway?: null | number;
                        isAvailable?: null | boolean;
                        mpge?: null | number;
                        range?: null | number;
                    };
                    trims?: null | {
                        accessoryIds?: (...) | (...) | (...);
                        cabBed?: (...) | (...) | (...);
                        code?: (...) | (...) | (...);
                        compatibilityWithCurrentConfig?: (...) | (...) | (...);
                        defaultColorId?: (...) | (...) | (...);
                        description?: (...) | (...) | (...);
                        drive?: (...) | (...) | (...);
                        engine?: (...) | (...) | (...);
                        exteriorColorIds?: (...) | (...) | (...);
                        fuelType?: (...) | (...) | (...);
                        horsepower?: (...) | (...) | (...);
                        images?: (...) | (...) | (...);
                        interiorColorIds?: (...) | (...) | (...);
                        isDefaultTrim?: (...) | (...) | (...) | (...);
                        mileage?: (...) | (...) | (...);
                        msrp?: (...) | (...) | (...);
                        packageIds?: (...) | (...) | (...);
                        powertrain?: (...) | (...) | (...);
                        seating?: (...) | (...) | (...);
                        shortDescription?: (...) | (...) | (...);
                        title?: (...) | (...) | (...);
                        transmission?: (...) | (...) | (...);
                        warrantyIds?: (...) | (...) | (...);
                        wheelCodes?: (...) | (...) | (...);
                    }[];
                };
                interiorColors?: null | (undefined | null | {
                    code?: null | string;
                    colorFamilies?: null | (...)[];
                    hexCode?: null | (...)[];
                    id?: null | string;
                    images?: null | (...)[];
                    isExtraCostColor?: null | boolean;
                    msrp?: null | {
                        disclaimer?: ...;
                        value?: ...;
                    };
                    title?: null | string;
                })[];
                mileage?: null | {
                    category?: null | string;
                    city?: null | number;
                    combined?: null | number;
                    highway?: null | number;
                    isAvailable?: null | boolean;
                    mpge?: null | number;
                    range?: null | number;
                };
                msrp?: null | {
                    disclaimer?: null | string;
                    value?: null | string;
                };
                packages?: null | {
                    availability?: null | string;
                    category?: null | {
                        id: string;
                        value: string;
                    };
                    code?: null | string;
                    compatibilityWithCurrentConfig?: null | {
                        availableWithTrims?: (...) | (...) | (...);
                        isCompatible?: (...) | (...) | (...) | (...);
                        requiredItems?: (...) | (...) | (...);
                    };
                    description?: null | string;
                    id?: null | string;
                    image?: null | {
                        alias?: ...;
                        disclaimer?: ...;
                        isHero?: ...;
                        url?: ...;
                    }[];
                    installPoint?: null | string;
                    packageFeatures?: null | {
                        category?: ...;
                        disclaimer?: ...;
                        subCategories?: ...;
                        title?: ...;
                    }[];
                    subCategories?: null | ((...) | (...) | (...))[];
                    title?: null | string;
                    type?: null | string;
                }[];
                seating?: null | string;
                seriesId?: null | string;
                seriesName?: null | string;
                trim?: null | {
                    accessoryIds?: null | {
                        code?: (...) | (...) | (...);
                        compatibilityWithCurrentConfig?: (...) | (...) | (...);
                        description?: (...) | (...) | (...);
                        disclaimer?: (...) | (...) | (...);
                        id?: (...) | (...) | (...);
                        images?: (...) | (...) | (...);
                        includedAccessoryIds?: (...) | (...) | (...);
                        installPoint?: (...) | (...) | (...);
                        title?: (...) | (...) | (...);
                        type?: (...) | (...) | (...);
                        warranty?: (...) | (...) | (...);
                    }[];
                    cabBed?: null | {
                        bedDepth?: null | string;
                        bedLength?: null | string;
                        bedWidth?: null | string;
                        betweenWheelWell?: null | string;
                        cabDetails?: null | string;
                        code?: null | string;
                        compatibilityWithCurrentConfig?: null | {
                            availableWithTrims?: ...;
                            isCompatible?: ...;
                            requiredItems?: ...;
                        };
                        description?: null | string;
                        id?: null | string;
                        label?: null | string;
                        overallHeight?: null | string;
                        overallLength?: null | string;
                        overallWidth?: null | string;
                    };
                    code?: null | string;
                    compatibilityWithCurrentConfig?: null | {
                        availableWithTrims?: null | (...)[];
                        isCompatible?: null | boolean;
                        requiredItems?: null | (...)[];
                    };
                    defaultColorId?: null | string;
                    description?: null | string;
                    drive?: null | {
                        compatibilityWithCurrentConfig?: null | {
                            availableWithTrims?: ...;
                            isCompatible?: ...;
                            requiredItems?: ...;
                        };
                        description?: null | string;
                        disclaimer?: null | string;
                        icon?: null | string;
                        value?: null | string;
                    };
                    engine?: null | {
                        compatibilityWithCurrentConfig?: null | {
                            availableWithTrims?: ...;
                            isCompatible?: ...;
                            requiredItems?: ...;
                        };
                        description?: null | string;
                        disclaimer?: null | string;
                        icon?: null | string;
                        value?: null | string;
                    };
                    exteriorColorIds?: null | string[];
                    fuelType?: null | string;
                    horsepower?: null | {
                        compatibilityWithCurrentConfig?: null | {
                            availableWithTrims?: ...;
                            isCompatible?: ...;
                            requiredItems?: ...;
                        };
                        description?: null | string;
                        disclaimer?: null | string;
                        icon?: null | string;
                        value?: null | string;
                    };
                    images?: null | {
                        alias?: (...) | (...) | (...);
                        disclaimer?: (...) | (...) | (...);
                        isHero?: (...) | (...) | (...) | (...);
                        url?: (...) | (...) | (...);
                    }[];
                    interiorColorIds?: null | string[];
                    isDefaultTrim?: null | boolean;
                    mileage?: null | {
                        category?: null | string;
                        city?: null | number;
                        combined?: null | number;
                        highway?: null | number;
                        isAvailable?: null | boolean;
                        mpge?: null | number;
                        range?: null | number;
                    };
                    msrp?: null | {
                        disclaimer?: null | string;
                        value?: null | string;
                    };
                    packageIds?: null | {
                        id?: (...) | (...) | (...);
                        msrp?: (...) | (...) | (...);
                    }[];
                    powertrain?: null | {
                        compatibilityWithCurrentConfig?: null | {
                            availableWithTrims?: ...;
                            isCompatible?: ...;
                            requiredItems?: ...;
                        };
                        drive?: null | {
                            compatibilityWithCurrentConfig?: ...;
                            description?: ...;
                            disclaimer?: ...;
                            icon?: ...;
                            value?: ...;
                        };
                        engine?: null | {
                            compatibilityWithCurrentConfig?: ...;
                            description?: ...;
                            disclaimer?: ...;
                            icon?: ...;
                            value?: ...;
                        };
                        horsepower?: null | {
                            compatibilityWithCurrentConfig?: ...;
                            description?: ...;
                            disclaimer?: ...;
                            icon?: ...;
                            value?: ...;
                        };
                        transmission?: null | {
                            compatibilityWithCurrentConfig?: ...;
                            description?: ...;
                            disclaimer?: ...;
                            icon?: ...;
                            value?: ...;
                        };
                    };
                    seating?: null | {
                        compatibilityWithCurrentConfig?: null | {
                            availableWithTrims?: ...;
                            isCompatible?: ...;
                            requiredItems?: ...;
                        };
                        description?: null | string;
                        disclaimer?: null | string;
                        icon?: null | string;
                        value?: null | string;
                    };
                    shortDescription?: null | string;
                    title?: null | string;
                    transmission?: null | {
                        compatibilityWithCurrentConfig?: null | {
                            availableWithTrims?: ...;
                            isCompatible?: ...;
                            requiredItems?: ...;
                        };
                        description?: null | string;
                        disclaimer?: null | string;
                        icon?: null | string;
                        value?: null | string;
                    };
                    warrantyIds?: null | string[];
                    wheelCodes?: null | string[];
                };
                warranties?: null | {
                    category?: null | string;
                    description?: null | string;
                    id?: null | string;
                    name?: null | string;
                    value?: null | string;
                }[];
                wheels?: null | {
                    code?: null | string;
                    compatibiltyWithCurrentConfig?: null | {
                        availableWithTrims?: (...) | (...) | (...);
                        isCompatible?: (...) | (...) | (...) | (...);
                        requiredItems?: (...) | (...) | (...);
                    };
                    image?: null | {
                        alias?: (...) | (...) | (...);
                        disclaimer?: (...) | (...) | (...);
                        isHero?: (...) | (...) | (...) | (...);
                        url?: (...) | (...) | (...);
                    };
                    title?: null | string;
                    type?: null | "STANDARD" | "OPTION" | "PACKAGE";
                }[];
                year?: null | number;
            };
        };
    } | TransformedType>