@infrab4a/connect 2.0.10 → 2.0.12
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 +4 -0
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/domain/catalog/models/product.d.ts +1 -0
- package/esm2015/domain/catalog/models/product.js +1 -1
- package/esm2015/infra/elasticsearch/indexes/products-index.js +2 -1
- package/esm2015/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.js +3 -1
- package/esm2015/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.js +2 -1
- package/fesm2015/infrab4a-connect.js +4 -0
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
{
|