@infrab4a/connect 4.9.13-beta.0 → 4.9.13-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/index.cjs.js
CHANGED
|
@@ -4772,7 +4772,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4772
4772
|
}
|
|
4773
4773
|
async create(params) {
|
|
4774
4774
|
const { metadata } = params, data = tslib.__rest(params, ["metadata"]);
|
|
4775
|
-
return super.create(Object.assign(Object.assign({}, data), { isWishlist: false, metadata: metadata || { shop: null, description: null, title: null } }));
|
|
4775
|
+
return super.create(Object.assign(Object.assign({}, data), { isWishlist: false, metadata: metadata || [{ shop: null, description: null, title: null }] }));
|
|
4776
4776
|
}
|
|
4777
4777
|
async get(identifiers) {
|
|
4778
4778
|
var _a;
|
|
@@ -6014,7 +6014,7 @@ class WishlistHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
6014
6014
|
async create(params) {
|
|
6015
6015
|
var _a;
|
|
6016
6016
|
const { metadata } = params, data = tslib.__rest(params, ["metadata"]);
|
|
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 } }));
|
|
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 }] }));
|
|
6018
6018
|
}
|
|
6019
6019
|
async get(identifiers) {
|
|
6020
6020
|
const data = await super.get(identifiers);
|
package/index.esm.js
CHANGED
|
@@ -4766,7 +4766,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4766
4766
|
}
|
|
4767
4767
|
async create(params) {
|
|
4768
4768
|
const { metadata } = params, data = __rest(params, ["metadata"]);
|
|
4769
|
-
return super.create(Object.assign(Object.assign({}, data), { isWishlist: false, metadata: metadata || { shop: null, description: null, title: null } }));
|
|
4769
|
+
return super.create(Object.assign(Object.assign({}, data), { isWishlist: false, metadata: metadata || [{ shop: null, description: null, title: null }] }));
|
|
4770
4770
|
}
|
|
4771
4771
|
async get(identifiers) {
|
|
4772
4772
|
var _a;
|
|
@@ -6008,7 +6008,7 @@ class WishlistHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
6008
6008
|
async create(params) {
|
|
6009
6009
|
var _a;
|
|
6010
6010
|
const { metadata } = params, data = __rest(params, ["metadata"]);
|
|
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 } }));
|
|
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 }] }));
|
|
6012
6012
|
}
|
|
6013
6013
|
async get(identifiers) {
|
|
6014
6014
|
const data = await super.get(identifiers);
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@ export declare class CategoryBase<ChildCategory extends ModelBaseStructure<Child
|
|
|
20
20
|
shop?: Shops;
|
|
21
21
|
shops?: string[];
|
|
22
22
|
published: boolean;
|
|
23
|
-
metadata: CategoryMetadata;
|
|
23
|
+
metadata: CategoryMetadata[];
|
|
24
24
|
isCollection?: boolean;
|
|
25
25
|
isWishlist?: boolean;
|
|
26
26
|
reference?: string;
|