@infrab4a/connect 3.2.6-beta.0 → 3.2.6-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.
- package/bundles/infrab4a-connect.umd.js +14 -19
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/esm2015/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.js +4 -6
- package/fesm2015/infrab4a-connect.js +2 -4
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/package.json +1 -1
|
@@ -3849,23 +3849,20 @@
|
|
|
3849
3849
|
case 3:
|
|
3850
3850
|
_f.apply(_e, [_g.sent()]);
|
|
3851
3851
|
_g.label = 4;
|
|
3852
|
-
case 4:
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
}
|
|
3867
|
-
});
|
|
3868
|
-
}); }))];
|
|
3852
|
+
case 4: return [4 /*yield*/, Promise.all(categories.map(function (category) { return __awaiter(_this, void 0, void 0, function () {
|
|
3853
|
+
var _c;
|
|
3854
|
+
return __generator(this, function (_d) {
|
|
3855
|
+
switch (_d.label) {
|
|
3856
|
+
case 0:
|
|
3857
|
+
_c = {
|
|
3858
|
+
category: category
|
|
3859
|
+
};
|
|
3860
|
+
return [4 /*yield*/, this.mountCategory(category, { limit: limit, hasStock: true })];
|
|
3861
|
+
case 1: return [2 /*return*/, (_c.products = _d.sent(),
|
|
3862
|
+
_c)];
|
|
3863
|
+
}
|
|
3864
|
+
});
|
|
3865
|
+
}); }))];
|
|
3869
3866
|
case 5:
|
|
3870
3867
|
homeSections = _g.sent();
|
|
3871
3868
|
return [2 /*return*/, homeSections];
|
|
@@ -3879,8 +3876,6 @@
|
|
|
3879
3876
|
return __generator(this, function (_c) {
|
|
3880
3877
|
switch (_c.label) {
|
|
3881
3878
|
case 0:
|
|
3882
|
-
if (!category.products)
|
|
3883
|
-
throw new RequiredArgumentError(['Category products is empty']);
|
|
3884
3879
|
products = [];
|
|
3885
3880
|
return [4 /*yield*/, this.productRepository.find(Object.assign({ filters: Object.assign({ id: { operator: exports.Where.IN, value: category.products }, published: true }, ((options === null || options === void 0 ? void 0 : options.hasStock) ? { stock: { quantity: { operator: exports.Where.GT, value: 0 } } } : {})), fields: [
|
|
3886
3881
|
'id',
|