@infrab4a/connect-angular 4.1.0 → 4.1.1
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.
- package/angular-firestore.module.d.ts +1 -1
- package/angular-hasura-graphql.module.d.ts +1 -1
- package/esm2020/services/home-shop.service.mjs +8 -8
- package/fesm2015/infrab4a-connect-angular.mjs +7 -7
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +7 -7
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +3 -2
- package/services/cart.service.d.ts +1 -1
- package/services/catalog/catalog.service.d.ts +5 -5
- package/services/catalog/types/product-sort.type.d.ts +1 -1
- package/services/home-shop.service.d.ts +1 -1
- package/services/types/required-checkout-data.type.d.ts +1 -1
- package/services/types/required-checkout-subscription-data.type.d.ts +1 -1
- package/types/firebase-app-config.type.d.ts +1 -1
|
@@ -1851,6 +1851,13 @@ class UtilHelper {
|
|
|
1851
1851
|
}
|
|
1852
1852
|
|
|
1853
1853
|
class HomeShopService {
|
|
1854
|
+
get homeId() {
|
|
1855
|
+
if (this.defaultShop === Shops.GLAMSHOP)
|
|
1856
|
+
return 'glamshop';
|
|
1857
|
+
if (this.defaultShop === Shops.MENSMARKET)
|
|
1858
|
+
return 'mens_market';
|
|
1859
|
+
return null;
|
|
1860
|
+
}
|
|
1854
1861
|
constructor(categoryRepository, homeRepository, productRepository, defaultShop) {
|
|
1855
1862
|
this.categoryRepository = categoryRepository;
|
|
1856
1863
|
this.homeRepository = homeRepository;
|
|
@@ -1876,13 +1883,6 @@ class HomeShopService {
|
|
|
1876
1883
|
]))) || [],
|
|
1877
1884
|
});
|
|
1878
1885
|
}
|
|
1879
|
-
get homeId() {
|
|
1880
|
-
if (this.defaultShop === Shops.GLAMSHOP)
|
|
1881
|
-
return 'glamshop';
|
|
1882
|
-
if (this.defaultShop === Shops.MENSMARKET)
|
|
1883
|
-
return 'mens_market';
|
|
1884
|
-
return null;
|
|
1885
|
-
}
|
|
1886
1886
|
getHomeData() {
|
|
1887
1887
|
return this.getHomeConfiguration().pipe(map((home) => (home?.data?.expiresAt > new Date() ? home : null)), concatMap((home) => home
|
|
1888
1888
|
? of(home)
|