@infrab4a/connect 4.9.12-beta.0 → 4.9.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.
package/index.cjs.js
CHANGED
|
@@ -4689,6 +4689,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4689
4689
|
'name',
|
|
4690
4690
|
'description',
|
|
4691
4691
|
'image',
|
|
4692
|
+
{ images: { columnName: 'images', type: HasuraGraphQLColumnType.Jsonb } },
|
|
4692
4693
|
'published',
|
|
4693
4694
|
'shop',
|
|
4694
4695
|
{ shops: { columnName: 'shops', type: HasuraGraphQLColumnType.Jsonb } },
|
|
@@ -4744,7 +4745,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4744
4745
|
{
|
|
4745
4746
|
metadata: {
|
|
4746
4747
|
columnName: 'metadata',
|
|
4747
|
-
fields: ['title', 'description'],
|
|
4748
|
+
fields: ['shop', 'title', 'description'],
|
|
4748
4749
|
bindPersistData: (value) => ({
|
|
4749
4750
|
metadata: { data: value },
|
|
4750
4751
|
}),
|
|
@@ -4771,7 +4772,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4771
4772
|
}
|
|
4772
4773
|
async create(params) {
|
|
4773
4774
|
const { metadata } = params, data = tslib.__rest(params, ["metadata"]);
|
|
4774
|
-
return super.create(Object.assign(Object.assign({}, data), { isWishlist: false, metadata: metadata || { description: null, title: null } }));
|
|
4775
|
+
return super.create(Object.assign(Object.assign({}, data), { isWishlist: false, metadata: metadata || { shop: null, description: null, title: null } }));
|
|
4775
4776
|
}
|
|
4776
4777
|
async get(identifiers) {
|
|
4777
4778
|
var _a;
|
|
@@ -6011,8 +6012,9 @@ class WishlistHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
6011
6012
|
this.categoryFilterRepository = categoryFilterRepository;
|
|
6012
6013
|
}
|
|
6013
6014
|
async create(params) {
|
|
6015
|
+
var _a;
|
|
6014
6016
|
const { metadata } = params, data = tslib.__rest(params, ["metadata"]);
|
|
6015
|
-
return super.create(Object.assign(Object.assign({}, data), { isWishlist: true, isCollection: true, brandCategory: false, metadata: metadata || { description: data.description, title: data.name } }));
|
|
6017
|
+
return super.create(Object.assign(Object.assign({}, data), { isWishlist: true, isCollection: true, brandCategory: false, metadata: metadata || { shop: (_a = data.shop) !== null && _a !== void 0 ? _a : null, description: data.description, title: data.name } }));
|
|
6016
6018
|
}
|
|
6017
6019
|
async get(identifiers) {
|
|
6018
6020
|
const data = await super.get(identifiers);
|
package/index.esm.js
CHANGED
|
@@ -4683,6 +4683,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4683
4683
|
'name',
|
|
4684
4684
|
'description',
|
|
4685
4685
|
'image',
|
|
4686
|
+
{ images: { columnName: 'images', type: HasuraGraphQLColumnType.Jsonb } },
|
|
4686
4687
|
'published',
|
|
4687
4688
|
'shop',
|
|
4688
4689
|
{ shops: { columnName: 'shops', type: HasuraGraphQLColumnType.Jsonb } },
|
|
@@ -4738,7 +4739,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4738
4739
|
{
|
|
4739
4740
|
metadata: {
|
|
4740
4741
|
columnName: 'metadata',
|
|
4741
|
-
fields: ['title', 'description'],
|
|
4742
|
+
fields: ['shop', 'title', 'description'],
|
|
4742
4743
|
bindPersistData: (value) => ({
|
|
4743
4744
|
metadata: { data: value },
|
|
4744
4745
|
}),
|
|
@@ -4765,7 +4766,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4765
4766
|
}
|
|
4766
4767
|
async create(params) {
|
|
4767
4768
|
const { metadata } = params, data = __rest(params, ["metadata"]);
|
|
4768
|
-
return super.create(Object.assign(Object.assign({}, data), { isWishlist: false, metadata: metadata || { description: null, title: null } }));
|
|
4769
|
+
return super.create(Object.assign(Object.assign({}, data), { isWishlist: false, metadata: metadata || { shop: null, description: null, title: null } }));
|
|
4769
4770
|
}
|
|
4770
4771
|
async get(identifiers) {
|
|
4771
4772
|
var _a;
|
|
@@ -6005,8 +6006,9 @@ class WishlistHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
6005
6006
|
this.categoryFilterRepository = categoryFilterRepository;
|
|
6006
6007
|
}
|
|
6007
6008
|
async create(params) {
|
|
6009
|
+
var _a;
|
|
6008
6010
|
const { metadata } = params, data = __rest(params, ["metadata"]);
|
|
6009
|
-
return super.create(Object.assign(Object.assign({}, data), { isWishlist: true, isCollection: true, brandCategory: false, metadata: metadata || { description: data.description, title: data.name } }));
|
|
6011
|
+
return super.create(Object.assign(Object.assign({}, data), { isWishlist: true, isCollection: true, brandCategory: false, metadata: metadata || { shop: (_a = data.shop) !== null && _a !== void 0 ? _a : null, description: data.description, title: data.name } }));
|
|
6010
6012
|
}
|
|
6011
6013
|
async get(identifiers) {
|
|
6012
6014
|
const data = await super.get(identifiers);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infrab4a/connect",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.13-beta.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org"
|
|
6
6
|
},
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"class-transformer": "^0.5.1",
|
|
14
14
|
"date-fns": "^2.28.0",
|
|
15
15
|
"debug": "^4.3.4",
|
|
16
|
-
"firebase": "^
|
|
16
|
+
"firebase": "^10.12.0",
|
|
17
17
|
"gql-query-builder": "3.7.0",
|
|
18
18
|
"lodash": "^4.17.21",
|
|
19
19
|
"reflect-metadata": "^0.1.13",
|