@infrab4a/connect-angular 4.1.0-beta.9 → 4.1.1-beta.0

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.
@@ -1487,6 +1487,8 @@ class CatalogService {
1487
1487
  return { rate: 'desc' };
1488
1488
  if (sort === 'news')
1489
1489
  return { createdAt: 'desc' };
1490
+ if (sort === 'biggest-discount')
1491
+ return { subscriberDiscountPercentage: 'desc' };
1490
1492
  };
1491
1493
  this.buildLimitQuery = (options) => {
1492
1494
  const limit = options?.perPage || 20;
@@ -1847,6 +1849,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1847
1849
  }] }, { type: CouponService }]; } });
1848
1850
 
1849
1851
  class HomeShopService {
1852
+ get homeId() {
1853
+ if (this.defaultShop === Shops.GLAMSHOP)
1854
+ return 'glamshop';
1855
+ if (this.defaultShop === Shops.MENSMARKET)
1856
+ return 'mens_market';
1857
+ return null;
1858
+ }
1850
1859
  constructor(categoryRepository, homeRepository, productRepository, defaultShop) {
1851
1860
  this.categoryRepository = categoryRepository;
1852
1861
  this.homeRepository = homeRepository;
@@ -1872,13 +1881,6 @@ class HomeShopService {
1872
1881
  ]))) || [],
1873
1882
  });
1874
1883
  }
1875
- get homeId() {
1876
- if (this.defaultShop === Shops.GLAMSHOP)
1877
- return 'glamshop';
1878
- if (this.defaultShop === Shops.MENSMARKET)
1879
- return 'mens_market';
1880
- return null;
1881
- }
1882
1884
  getHomeData() {
1883
1885
  return this.getHomeConfiguration().pipe(map((home) => (home?.data?.expiresAt > new Date() ? home : null)), concatMap((home) => home
1884
1886
  ? of(home)