@infrab4a/connect 2.0.10 → 2.0.13-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.
@@ -1774,6 +1774,7 @@
1774
1774
  'weight',
1775
1775
  'tags',
1776
1776
  'hasVariants',
1777
+ 'type'
1777
1778
  ];
1778
1779
  return [4 /*yield*/, this.adapter.query('products/_search', Object.assign({ _source: fields, query: {
1779
1780
  bool: {
@@ -3816,6 +3817,8 @@
3816
3817
  'sku',
3817
3818
  'rate',
3818
3819
  'tags',
3820
+ 'type',
3821
+ 'shoppingCount',
3819
3822
  ] }, ((options === null || options === void 0 ? void 0 : options.limit) ? { limits: { limit: options === null || options === void 0 ? void 0 : options.limit } } : {})))];
3820
3823
  case 1:
3821
3824
  productsData = (_d.sent()).data;
@@ -3992,6 +3995,7 @@
3992
3995
  from: function (value) { return value.aggregate.avg.rate; },
3993
3996
  },
3994
3997
  },
3998
+ { shoppingCount: { columnName: 'shopping_count' } },
3995
3999
  ];
3996
4000
  _this.fields = __spreadArray(__spreadArray([], __read(commonFields)), [
3997
4001
  {
@@ -4020,7 +4024,7 @@
4020
4024
  {
4021
4025
  reviews: {
4022
4026
  columnName: 'reviews',
4023
- foreignKeyColumn: { productId: 'id' },
4027
+ foreignKeyColumn: { product_id: 'id' },
4024
4028
  fields: _this.reviewsFields,
4025
4029
  },
4026
4030
  },