@infrab4a/connect 3.14.0-beta.1 → 3.14.0-beta.3
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 -5
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/domain/catalog/helpers/index.d.ts +1 -1
- package/domain/catalog/models/types/shop-description.type.d.ts +1 -0
- package/esm2015/domain/catalog/helpers/index.js +2 -2
- package/esm2015/domain/catalog/helpers/round-product-price.helper.js +15 -0
- package/esm2015/domain/catalog/models/types/shop-description.type.js +1 -1
- package/esm2015/domain/users/models/user.js +2 -2
- package/esm2015/infra/elasticsearch/indexes/products-index.js +8 -3
- package/esm2015/infra/hasura-graphql/models/product-hasura-graphql.js +1 -1
- package/esm2015/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.js +8 -4
- package/fesm2015/infrab4a-connect.js +14 -5
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/infra/hasura-graphql/models/product-hasura-graphql.d.ts +1 -0
- package/package.json +1 -1
- package/esm2015/domain/catalog/helpers/RoundProdutcPriceHelper.js +0 -15
- /package/domain/catalog/helpers/{RoundProdutcPriceHelper.d.ts → round-product-price.helper.d.ts} +0 -0
|
@@ -1522,7 +1522,7 @@
|
|
|
1522
1522
|
var instance = _super.toInstance.call(this, data);
|
|
1523
1523
|
if (!lodash.isNil(data.firstName))
|
|
1524
1524
|
instance.displayName = "" + data.firstName + (!lodash.isNil(data.lastName) ? " " + data.lastName : '');
|
|
1525
|
-
return;
|
|
1525
|
+
return instance;
|
|
1526
1526
|
};
|
|
1527
1527
|
User.prototype.toPlain = function () {
|
|
1528
1528
|
var plain = _super.prototype.toPlain.call(this);
|
|
@@ -2547,7 +2547,12 @@
|
|
|
2547
2547
|
})];
|
|
2548
2548
|
case 1:
|
|
2549
2549
|
search = _a.sent();
|
|
2550
|
-
search.hits = search.hits
|
|
2550
|
+
search.hits = search.hits
|
|
2551
|
+
.filter(function (e) { return e._source.name !== ''; })
|
|
2552
|
+
.map(function (hit) {
|
|
2553
|
+
RoundProductPricesHelper.roundProductPrices(hit._source);
|
|
2554
|
+
return hit;
|
|
2555
|
+
});
|
|
2551
2556
|
return [2 /*return*/, search];
|
|
2552
2557
|
}
|
|
2553
2558
|
});
|
|
@@ -5439,26 +5444,30 @@
|
|
|
5439
5444
|
whoMustUse: data.who_must_use,
|
|
5440
5445
|
howToUse: data.how_to_use,
|
|
5441
5446
|
brand: data.brand_description,
|
|
5447
|
+
ingredients: data.ingredients,
|
|
5442
5448
|
}); },
|
|
5443
5449
|
bindFindFilter: function (sentence) {
|
|
5444
5450
|
var filters = Object.values(sentence).shift();
|
|
5445
|
-
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ((filters === null || filters === void 0 ? void 0 : filters.description) && { description: filters.description })), (filters.differentials && { differentials: filters.differentials })), (filters.whoMustUse && {
|
|
5451
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ((filters === null || filters === void 0 ? void 0 : filters.description) && { description: filters.description })), (filters.differentials && { differentials: filters.differentials })), (filters.whoMustUse && {
|
|
5446
5452
|
who_must_use: filters.whoMustUse,
|
|
5447
5453
|
})), (filters.howToUse && {
|
|
5448
5454
|
how_to_use: filters.howToUse,
|
|
5449
5455
|
})), (filters.brand && {
|
|
5450
5456
|
brand_description: filters.brand,
|
|
5457
|
+
})), (filters.ingredients && {
|
|
5458
|
+
ingredients: filters.ingredients,
|
|
5451
5459
|
}));
|
|
5452
5460
|
},
|
|
5453
|
-
bindPersistData: function (descriptionData) { return (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ((descriptionData === null || descriptionData === void 0 ? void 0 : descriptionData.description) && { description: descriptionData.description })), (descriptionData.differentials && { differentials: descriptionData.differentials })), (descriptionData.whoMustUse && {
|
|
5461
|
+
bindPersistData: function (descriptionData) { return (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ((descriptionData === null || descriptionData === void 0 ? void 0 : descriptionData.description) && { description: descriptionData.description })), (descriptionData.differentials && { differentials: descriptionData.differentials })), (descriptionData.whoMustUse && {
|
|
5454
5462
|
who_must_use: descriptionData.whoMustUse,
|
|
5455
|
-
})), (descriptionData.howToUse && { how_to_use: descriptionData.howToUse })), (descriptionData.brand && { brand_description: descriptionData.brand }))); },
|
|
5463
|
+
})), (descriptionData.howToUse && { how_to_use: descriptionData.howToUse })), (descriptionData.brand && { brand_description: descriptionData.brand })), (descriptionData.ingredients && { ingredients: descriptionData.ingredients }))); },
|
|
5456
5464
|
},
|
|
5457
5465
|
},
|
|
5458
5466
|
{ differentials: { columnName: 'differentials' } },
|
|
5459
5467
|
{ whoMustUse: { columnName: 'who_must_use' } },
|
|
5460
5468
|
{ howToUse: { columnName: 'how_to_use' } },
|
|
5461
5469
|
{ brandDescription: { columnName: 'brand_description' } },
|
|
5470
|
+
{ ingredients: { columnName: 'ingredients' } },
|
|
5462
5471
|
{ hasVariants: { columnName: 'has_variants' } },
|
|
5463
5472
|
{
|
|
5464
5473
|
images: {
|