@infrab4a/connect 3.13.3-beta.1 → 3.13.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 +38 -1
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/domain/catalog/models/category.d.ts +2 -1
- package/domain/catalog/repositories/category.repository.d.ts +1 -0
- package/esm2015/domain/catalog/models/category.js +1 -1
- package/esm2015/domain/catalog/repositories/category.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +4 -1
- package/esm2015/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.js +28 -2
- package/fesm2015/infrab4a-connect.js +30 -1
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +1 -0
- package/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts +1 -0
- package/package.json +2 -2
|
@@ -2799,6 +2799,9 @@
|
|
|
2799
2799
|
});
|
|
2800
2800
|
});
|
|
2801
2801
|
};
|
|
2802
|
+
CategoryFirestoreRepository.prototype.getCategoryByShop = function (shop) {
|
|
2803
|
+
return;
|
|
2804
|
+
};
|
|
2802
2805
|
return CategoryFirestoreRepository;
|
|
2803
2806
|
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2804
2807
|
|
|
@@ -4031,6 +4034,7 @@
|
|
|
4031
4034
|
'image',
|
|
4032
4035
|
'published',
|
|
4033
4036
|
'shop',
|
|
4037
|
+
{ shops: { columnName: 'shops', type: HasuraGraphQLColumnType.Jsonb } },
|
|
4034
4038
|
'slug',
|
|
4035
4039
|
{ brandCategory: { columnName: 'brand_category' } },
|
|
4036
4040
|
{ brandCategoryBanner: { columnName: 'brand_banner' } },
|
|
@@ -4193,7 +4197,16 @@
|
|
|
4193
4197
|
case 0:
|
|
4194
4198
|
if (!slug)
|
|
4195
4199
|
return [2 /*return*/];
|
|
4196
|
-
return [4 /*yield*/, this.find({
|
|
4200
|
+
return [4 /*yield*/, this.find({
|
|
4201
|
+
filters: {
|
|
4202
|
+
slug: slug,
|
|
4203
|
+
shops: { operator: exports.Where.IN, value: [shop] },
|
|
4204
|
+
published: { operator: exports.Where.EQUALS, value: true },
|
|
4205
|
+
},
|
|
4206
|
+
options: {
|
|
4207
|
+
enableCount: false,
|
|
4208
|
+
},
|
|
4209
|
+
})];
|
|
4197
4210
|
case 1:
|
|
4198
4211
|
data = (_c.sent()).data;
|
|
4199
4212
|
if (!data.length)
|
|
@@ -4205,6 +4218,30 @@
|
|
|
4205
4218
|
});
|
|
4206
4219
|
});
|
|
4207
4220
|
};
|
|
4221
|
+
CategoryHasuraGraphQLRepository.prototype.getCategoryByShop = function (shop) {
|
|
4222
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4223
|
+
var data;
|
|
4224
|
+
return __generator(this, function (_c) {
|
|
4225
|
+
switch (_c.label) {
|
|
4226
|
+
case 0:
|
|
4227
|
+
if (!shop)
|
|
4228
|
+
return [2 /*return*/];
|
|
4229
|
+
return [4 /*yield*/, this.find({
|
|
4230
|
+
filters: {
|
|
4231
|
+
shops: { operator: exports.Where.IN, value: [shop] },
|
|
4232
|
+
published: { operator: exports.Where.EQUALS, value: true },
|
|
4233
|
+
},
|
|
4234
|
+
options: {
|
|
4235
|
+
enableCount: false,
|
|
4236
|
+
},
|
|
4237
|
+
})];
|
|
4238
|
+
case 1:
|
|
4239
|
+
data = (_c.sent()).data;
|
|
4240
|
+
return [2 /*return*/, data];
|
|
4241
|
+
}
|
|
4242
|
+
});
|
|
4243
|
+
});
|
|
4244
|
+
};
|
|
4208
4245
|
CategoryHasuraGraphQLRepository.prototype.getCategoriesForHome = function (categoryIds, limit, gender) {
|
|
4209
4246
|
if (limit === void 0) { limit = 4; }
|
|
4210
4247
|
return __awaiter(this, void 0, void 0, function () {
|