@longvansoftware/storefront-js-client 3.5.1 → 3.5.2
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.
|
@@ -64,6 +64,6 @@ export declare class ProductService extends Service {
|
|
|
64
64
|
updateProductSKU(productId: string, sku: string, updatedBy: string): Promise<any>;
|
|
65
65
|
updateProductVAT(productId: string, vat: number, updatedBy: string): Promise<any>;
|
|
66
66
|
createGroup(name: string, createdBy: string): Promise<any>;
|
|
67
|
-
createCategory(name: string): Promise<any>;
|
|
67
|
+
createCategory(name: string, createdBy: string): Promise<any>;
|
|
68
68
|
createBrand(brandName: string, createBy: string): Promise<any>;
|
|
69
69
|
}
|
|
@@ -630,12 +630,13 @@ class ProductService extends serviceSDK_1.Service {
|
|
|
630
630
|
}
|
|
631
631
|
});
|
|
632
632
|
}
|
|
633
|
-
createCategory(name) {
|
|
633
|
+
createCategory(name, createdBy) {
|
|
634
634
|
return __awaiter(this, void 0, void 0, function* () {
|
|
635
635
|
const mutation = mutations_1.CREATE_CATEGORY;
|
|
636
636
|
const variables = {
|
|
637
637
|
partnerId: this.orgId,
|
|
638
638
|
name,
|
|
639
|
+
createdBy,
|
|
639
640
|
};
|
|
640
641
|
try {
|
|
641
642
|
const response = yield this.graphqlMutation(mutation, variables);
|