import { ProductInterface } from '../model/interfaces/Interfaces'; import { Categorization } from '../model/interfaces/Interfaces'; export declare class CategorizationController { private _categorizationCriteriaRepository; private _vendorCategoryRepository; private _categoryRepository; private _vendorRepository; private _attrCategoriesRepository; private _storeRepository; /** * Function to do the classification of a product * @param productInformation * @param vendorSlug * @param storeCode * @return Promise */ doCategorization(productInformation: ProductInterface, vendorSlug: string, storeCode: string): Promise; /** * Function to get the product attr by the classification criteria to get classify * @param productInformation * @param categorizationCriteria * @return Record * @private */ private static _getProductDataByCriteria; /** * Function to bind the product data with the store data for classify * @param productAttrCriteria * @param vendorCategory * @return Promise * @private */ private _bind; /** * Function to get the category attribute, this function review all de category tree attributes and makes a single * category attributes set to send to Magento, checking for all the parent's attributes. * @param categoryTree * @param storeId * @private */ private _getAttrCategory; /** * Function to check if the attribute already exist on the category attributes list * @param categoryAttrTmp * @param allAttributes * @return boolean * @private */ private _alreadyExistAttr; }