import "vue";
import { s as e } from "./start-CE9SawgU.js";
import "vue-i18n";
import "pinia";
import "./header-Bn1EKnBE.js";
import { B as c } from "./base-DtZhM-sH.js";
const s = `${c}PIM.`, y = {
  /** will not delete products that are not in the recycle bin */
  async deleteProductsFromRecycleBin(t) {
    return e.post(`${s}deleteProductsFromRecycleBin`, {
      ids: t
    });
  },
  /** Get HTML import paths for all value edit datatypes */
  async getAllDataTypeImports() {
    return e.post(`${s}getAllDataTypeImports`);
  },
  /** Get entity data */
  async getEntityData(t, r) {
    return e.post(`${s}getEntityData`, {
      entityId: t,
      freezeEntityIfPossible: r
    });
  },
  /** getEntityIdAndAttributeSetIdBySku */
  async getEntityIdAndAttributeSetIdBySku(t) {
    return e.post(
      `${s}getEntityIdAndAttributeSetIdBySku`,
      { sku: t }
    );
  },
  /** update the datahub values of a pim product optionally can update sku of the pim product aswell */
  async save(t) {
    return e.post(`${s}save`, t);
  },
  /** restore all products to active status */
  async getRecycleBin(t) {
    return e.post(`${s}getRecycleBin`, t);
  },
  /** returns a list of all products that are currently in the archive */
  async getArchive(t) {
    return e.post(`${s}getArchive`, t);
  },
  /** restores products from the recycle bin or archive */
  async restoreProducts(t) {
    return e.post(`${s}restoreProducts`, { ids: t });
  },
  /** In error cases the deletion of the remaining products is continued and log entries are created. products can only be fully deleted from recycle bin (deleteProductsFromRecycleBin) */
  async deleteProducts(t) {
    return e.post(`${s}deleteProducts`, { ids: t });
  },
  /** Archive products. */
  async archiveProducts(t) {
    return e.post(`${s}archiveProducts`, { ids: t });
  },
  /** Archive products. */
  async getLanguages() {
    return e.post(`${s}getLanguages`);
  },
  /** Get a list of pim Products that are not in archive and not in recycle bin */
  async listProducts(t) {
    return e.post(`${s}listProducts`, t);
  },
  /** Get available scopes */
  async getActiveScopes() {
    return e.post(`${s}getActiveScopes`);
  },
  /** Create pim product */
  async create(t) {
    return e.post(`${s}create`, t);
  },
  /** get a list of all active pim attribute sets */
  async listAvailableAttributeSets() {
    return e.post(`${s}listAvailableAttributeSets`);
  },
  /** Get column definitions of Entity by entity type class name */
  async getColumnDefinitions(t) {
    return e.post(`${s}getColumnDefinitions`, t);
  },
  /** the sku of the copied product will be autogenerated as follows: "(Copy n)" will be appendend to the sku with n being the first available number */
  async cloneProduct(t) {
    return e.post(`${s}cloneProduct`, { id: t });
  },
  /** Get all dependencies for a specific entity */
  async getDependencies(t) {
    return e.post(`${s}getDependencies`, t);
  },
  /** Get all dependencies for a specific entity */
  async rerunMappings(t, r) {
    return e.post(`${s}rerunMappings`, {
      entityId: t,
      dependencies: r
    });
  },
  /** listAttributesLanguagesAndScopes */
  async listAttributesLanguagesAndScopes(t) {
    return e.post(
      `${s}listAttributesLanguagesAndScopes`,
      { entityId: t }
    );
  },
  /** listAttributesLanguagesAndScopesBySetId */
  async listAttributesLanguagesAndScopesBySetId(t) {
    return e.post(
      `${s}listAttributesLanguagesAndScopesBySetId`,
      { dhAttributeSetId: t }
    );
  },
  /** Get entity data */
  async get(t, r) {
    return e.post(`${s}get`, {
      entityId: t,
      freezeEntityIfPossible: r
    });
  },
  /** Thaw an entity */
  async thaw(t) {
    return e.post(`${s}thaw`, { entityId: t });
  },
  /** changeAttributeSet */
  async changeAttributeSet(t, r, n) {
    return e.post(`${s}changeAttributeSet`, {
      entityId: t,
      attributeSetId: r,
      thawAfterSave: n
    });
  },
  /** getPendingMappings */
  async getPendingMappings(t) {
    return e.post(`${s}getPendingMappings`, {
      entityId: t
    });
  },
  /** getProductBySku */
  async getProductBySku(t) {
    return e.post(`${s}getProductBySku`, { sku: t });
  }
};
export {
  y as p
};
