@infrab4a/connect-angular 5.5.0-beta.0 → 5.5.0-beta.2

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.
@@ -1568,12 +1568,12 @@ class CategorySearchStrategy {
1568
1568
  distinct: ['brand'],
1569
1569
  },
1570
1570
  };
1571
- return productCatalog.productRepository.findCatalog(repoParams, null, optionsCache);
1571
+ return productCatalog.productCatalogRepository.findCatalog(repoParams, null, optionsCache);
1572
1572
  }
1573
1573
  async getProductIds(category, filters, optionsCache) {
1574
1574
  const productCatalog = this.repositoryService.getProductCatalog();
1575
1575
  const filterHelper = this.helpersService.getFilterHelper();
1576
- return productCatalog.productRepository
1576
+ return productCatalog.productCatalogRepository
1577
1577
  .findCatalog({
1578
1578
  fields: ['id'],
1579
1579
  filters: {
@@ -1589,7 +1589,7 @@ class CategorySearchStrategy {
1589
1589
  const filterHelper = this.helpersService.getFilterHelper();
1590
1590
  const sortHelper = this.helpersService.getSortHelper();
1591
1591
  const mostRelevantProductsIds = [...new Set(mostRelevants.concat(productIds))];
1592
- const totalResult = await productCatalog.productRepository.findCatalog({
1592
+ const totalResult = await productCatalog.productCatalogRepository.findCatalog({
1593
1593
  fields,
1594
1594
  filters: {
1595
1595
  id: { operator: Where.IN, value: mostRelevantProductsIds },
@@ -1657,7 +1657,7 @@ class ProfileSearchStrategy {
1657
1657
  distinct: ['brand'],
1658
1658
  },
1659
1659
  };
1660
- return productCatalog.productRepository.findCatalog(repoParams, mainGender || (shop === Shops.MENSMARKET ? 'male' : 'female'), optionsCache);
1660
+ return productCatalog.productCatalogRepository.findCatalog(repoParams, mainGender || (shop === Shops.MENSMARKET ? 'male' : 'female'), optionsCache);
1661
1661
  }
1662
1662
  }
1663
1663
  ProfileSearchStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProfileSearchStrategy, deps: [{ token: CatalogRepositoryService }, { token: CatalogHelpersService }], target: i0.ɵɵFactoryTarget.Injectable });
@@ -1700,7 +1700,7 @@ class TermSearchStrategy {
1700
1700
  const { productIds, filters, shop, mainGender } = params;
1701
1701
  const productCatalog = this.repositoryService.getProductCatalog();
1702
1702
  const filterHelper = this.helpersService.getFilterHelper();
1703
- const totalResult = await productCatalog.productRepository.findCatalog({
1703
+ const totalResult = await productCatalog.productCatalogRepository.findCatalog({
1704
1704
  fields: ['id', 'stock', 'gender'],
1705
1705
  filters: {
1706
1706
  id: { operator: Where.IN, value: productIds },
@@ -1725,7 +1725,7 @@ class TermSearchStrategy {
1725
1725
  const { productIds, filters, limits, shop, mainGender, fields } = params;
1726
1726
  const productCatalog = this.repositoryService.getProductCatalog();
1727
1727
  const filterHelper = this.helpersService.getFilterHelper();
1728
- return productCatalog.productRepository.findCatalog({
1728
+ return productCatalog.productCatalogRepository.findCatalog({
1729
1729
  fields,
1730
1730
  filters: {
1731
1731
  id: { operator: Where.IN, value: productIds },
@@ -1755,7 +1755,7 @@ class TermSearchStrategy {
1755
1755
  async getDetailedProducts(orderedId, totalResult, fieldsHelper) {
1756
1756
  const productCatalog = this.repositoryService.getProductCatalog();
1757
1757
  const fields = fieldsHelper.getStandardFields();
1758
- const productResult = await productCatalog.productRepository.findCatalog({
1758
+ const productResult = await productCatalog.productCatalogRepository.findCatalog({
1759
1759
  filters: {
1760
1760
  id: { operator: Where.IN, value: orderedId },
1761
1761
  },
@@ -1843,7 +1843,7 @@ class CategoryService {
1843
1843
  this.shop = shop;
1844
1844
  }
1845
1845
  async fetchBrands(category, options, optionsCache) {
1846
- const brands = await this.productCatalog.productRepository
1846
+ const brands = await this.productCatalog.productCatalogRepository
1847
1847
  .findCatalog({
1848
1848
  filters: await this.productCatalog.categoryStructureAdapter.buildProductFilterByCategory(category),
1849
1849
  fields: ['brand'],
@@ -1872,8 +1872,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1872
1872
  }] }]; } });
1873
1873
 
1874
1874
  class ProductCatalogFacade {
1875
- constructor(productRepository, categoryStructureAdapter) {
1876
- this.productRepository = productRepository;
1875
+ constructor(productCatalogRepository, categoryStructureAdapter) {
1876
+ this.productCatalogRepository = productCatalogRepository;
1877
1877
  this.categoryStructureAdapter = categoryStructureAdapter;
1878
1878
  }
1879
1879
  }
@@ -1942,7 +1942,7 @@ class BrandManagerHelper {
1942
1942
  return '';
1943
1943
  }
1944
1944
  async fetchBrandsOnly(options) {
1945
- return this.productCatalog.productRepository
1945
+ return this.productCatalog.productCatalogRepository
1946
1946
  .findCatalog({
1947
1947
  fields: ['id'],
1948
1948
  filters: {