"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.saveFavoriter = exports.getUmsConfig = exports.getTenantById = exports.getCarInfoByProductType = exports.fetchFavoriter = exports.delFavoriter = void 0;
var _utils = require("@vtx/utils");
var saveFavoriter = exports.saveFavoriter = function saveFavoriter(objectIds, type) {
  return _utils.request.post('/cloud/management/api/v101/user/favorites/saveUserFavorites', {
    data: {
      objectIds: objectIds,
      collectionType: type
    }
  });
};
var delFavoriter = exports.delFavoriter = function delFavoriter(objectIds, type) {
  return _utils.request.post('/cloud/management/api/v101/user/favorites/deleteUserFavorites', {
    data: {
      objectIds: objectIds,
      collectionType: type
    }
  });
};
var fetchFavoriter = exports.fetchFavoriter = function fetchFavoriter(objectIds, type) {
  return _utils.request.get('/cloud/management/api/v101/user/favorites/getUserFavoritesIds', {
    data: {
      objectIds: objectIds,
      collectionTypes: type
    }
  });
};
var getTenantById = exports.getTenantById = function getTenantById(id) {
  return _utils.request.get('/cloud/management/rest/np/tenant/getTenantById', {
    data: {
      parameters: JSON.stringify({
        id: id
      })
    }
  });
};
var getCarInfoByProductType = exports.getCarInfoByProductType = function getCarInfoByProductType(id) {
  return _utils.request.get('/cloud/gps-reborn/sdk/car/getCarInfoByProductType', {
    data: {
      carId: id
    }
  });
};
var getUmsConfig = exports.getUmsConfig = function getUmsConfig(componentCode) {
  return _utils.request.get('/cloud/management/api/v101/user/config/component/page', {
    data: {
      componentCode: componentCode,
      userId: (0, _utils.getVtxToken)('userId')
    }
  });
};
//# sourceMappingURL=api.js.map
