@infrab4a/connect 3.7.1-beta.0 → 3.7.1-beta.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.
@@ -3997,7 +3997,7 @@
3997
3997
  });
3998
3998
  });
3999
3999
  };
4000
- CategoryHasuraGraphQLRepository.prototype.getCategoriesForHome = function (categoryIds, limit) {
4000
+ CategoryHasuraGraphQLRepository.prototype.getCategoriesForHome = function (categoryIds, limit, gender) {
4001
4001
  if (limit === void 0) { limit = 4; }
4002
4002
  return __awaiter(this, void 0, void 0, function () {
4003
4003
  var categoriesFirestore, categoriesHasura, categories, _c, _d, _e, _f, _g, _h, _j, _k, homeSections;
@@ -4048,7 +4048,7 @@
4048
4048
  _c = {
4049
4049
  category: category
4050
4050
  };
4051
- return [4 /*yield*/, this.mountCategory(category, { limit: limit, hasStock: true })];
4051
+ return [4 /*yield*/, this.mountCategory(category, { limit: limit, hasStock: true, gender: gender })];
4052
4052
  case 1: return [2 /*return*/, (_c.products = _d.sent(),
4053
4053
  _c)];
4054
4054
  }
@@ -4071,7 +4071,7 @@
4071
4071
  if (!((_a = category === null || category === void 0 ? void 0 : category.products) === null || _a === void 0 ? void 0 : _a.length))
4072
4072
  return [2 /*return*/, []];
4073
4073
  products = [];
4074
- return [4 /*yield*/, this.productRepository.find(Object.assign(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: [
4074
+ return [4 /*yield*/, this.productRepository.find(Object.assign(Object.assign({ filters: Object.assign(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 } } } : {})), ((options === null || options === void 0 ? void 0 : options.gender) ? { tags: { operator: exports.Where.IN, value: [options === null || options === void 0 ? void 0 : options.gender] } } : {})), fields: [
4075
4075
  'id',
4076
4076
  'name',
4077
4077
  'slug',
@@ -4095,6 +4095,7 @@
4095
4095
  'tags',
4096
4096
  'type',
4097
4097
  'shoppingCount',
4098
+ 'gender',
4098
4099
  ] }, ((options === null || options === void 0 ? void 0 : options.limit) ? { limits: { limit: options === null || options === void 0 ? void 0 : options.limit } } : {})), { options: { enableCount: false } }))];
4099
4100
  case 1:
4100
4101
  productsData = (_c.sent()).data;