@infrab4a/connect-angular 5.4.1 → 5.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1624,7 +1624,7 @@ class ProfileSearchStrategy {
1624
1624
  const repoParams = {
1625
1625
  fields: fieldsHelper.getStandardFields(),
1626
1626
  filters: {
1627
- tags: { operator: Where.LIKE, value: profile },
1627
+ tagsProfile: { operator: Where.LIKE, value: profile },
1628
1628
  ...filterHelper.buildFilterQuery(filters || {}),
1629
1629
  },
1630
1630
  ...(sort ? { orderBy: sortHelper.buildSortQuery(sort) } : {}),
@@ -1831,6 +1831,9 @@ class CategoryService {
1831
1831
  .find({ filters: { brandCategory: true, shop: options?.shop || this.shop }, orderBy: { name: 'asc' } }, optionsCache)
1832
1832
  .then(({ data }) => data.filter((category) => brands.includes(category.conditions.brand)));
1833
1833
  }
1834
+ async getMenuBrands() {
1835
+ return this.categoryFacade.categoryRepository.getBrandsWithProducts();
1836
+ }
1834
1837
  async fetchFilterOptions(category, optionsCache) {
1835
1838
  return await this.categoryFacade.categoryFilterRepository
1836
1839
  .find({ filters: { categoryId: +category.id } }, optionsCache)
@@ -1963,7 +1966,7 @@ class CatalogFilterHelper {
1963
1966
  filterQuery.rate = { operator: Where.GTE, value: filters.rate };
1964
1967
  }
1965
1968
  if (filters.tags?.length) {
1966
- filterQuery.tags = { operator: Where.LIKE, value: filters.tags };
1969
+ filterQuery.tagsProfile = { operator: Where.LIKE, value: filters.tags };
1967
1970
  }
1968
1971
  if (filters.customOptions?.length) {
1969
1972
  filterQuery.filters = { operator: Where.LIKE, value: filters.customOptions };
@@ -2047,7 +2050,8 @@ class ProductFieldsHelper {
2047
2050
  'isKit',
2048
2051
  'sku',
2049
2052
  'rate',
2050
- 'tags',
2053
+ 'tagsProfile',
2054
+ 'tagsCollection',
2051
2055
  'type',
2052
2056
  'shoppingCount',
2053
2057
  'gender',