@infrab4a/connect 2.0.8 → 2.0.9-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.
- package/bundles/infrab4a-connect.umd.js +14 -3
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/esm2015/domain/catalog/repositories/product.repository.js +1 -1
- package/esm2015/domain/shop-settings/models/home.js +1 -1
- package/esm2015/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.js +14 -3
- package/esm2015/infra/hasura-graphql/types/hasura-graphql-fields.type.js +1 -1
- package/fesm2015/infrab4a-connect.js +13 -2
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/infra/hasura-graphql/types/hasura-graphql-fields.type.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4046,6 +4046,13 @@
|
|
|
4046
4046
|
],
|
|
4047
4047
|
},
|
|
4048
4048
|
},
|
|
4049
|
+
{
|
|
4050
|
+
reviews: {
|
|
4051
|
+
columnName: 'reviews',
|
|
4052
|
+
foreignKeyColumn: { productId: 'id' },
|
|
4053
|
+
fields: _this.reviewsFields,
|
|
4054
|
+
},
|
|
4055
|
+
},
|
|
4049
4056
|
]);
|
|
4050
4057
|
return _this;
|
|
4051
4058
|
}
|
|
@@ -4138,10 +4145,14 @@
|
|
|
4138
4145
|
find: { get: function () { return _super_1.prototype.find; } }
|
|
4139
4146
|
});
|
|
4140
4147
|
return __awaiter(this, void 0, void 0, function () {
|
|
4141
|
-
var _a, filters, options;
|
|
4148
|
+
var _a, filters, fields, options, bindFields;
|
|
4142
4149
|
return __generator(this, function (_c) {
|
|
4143
|
-
_a = params || {}, filters = _a.filters, options = __rest(_a, ["filters"]);
|
|
4144
|
-
|
|
4150
|
+
_a = params || {}, filters = _a.filters, fields = _a.fields, options = __rest(_a, ["filters", "fields"]);
|
|
4151
|
+
bindFields = fields ||
|
|
4152
|
+
this.fields
|
|
4153
|
+
.map(function (field) { return (typeof field === 'string' ? field : Object.keys(field).shift()); })
|
|
4154
|
+
.filter(function (field) { return field !== 'reviews'; });
|
|
4155
|
+
return [2 /*return*/, _super.find.call(this, Object.assign(Object.assign({}, options), { filters: Object.assign(Object.assign({}, filters), { productId: { operator: exports.Where.ISNULL } }), fields: bindFields }))];
|
|
4145
4156
|
});
|
|
4146
4157
|
});
|
|
4147
4158
|
};
|