@longvansoftware/storefront-js-client 3.3.6 → 3.3.7
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.
|
@@ -38,7 +38,7 @@ export declare class ProductService extends Service {
|
|
|
38
38
|
getDetailStores(): Promise<any>;
|
|
39
39
|
getDetailStoresV2(storeId: string): Promise<any>;
|
|
40
40
|
getProductImage: (productId: string) => Promise<any>;
|
|
41
|
-
getCategory(typeBuild: string, level: number): Promise<any>;
|
|
41
|
+
getCategory(typeBuild: string, level: number, storeId: string): Promise<any>;
|
|
42
42
|
getProduct(dataQuery: any): Promise<any>;
|
|
43
43
|
updateProductTitle(productId: string, title: string, updatedBy: string): Promise<any>;
|
|
44
44
|
updatePrice(productId: string, price: string, updatedBy: string): Promise<any>;
|
|
@@ -195,12 +195,12 @@ class ProductService extends serviceSDK_1.Service {
|
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
getCategory(typeBuild, level) {
|
|
198
|
+
getCategory(typeBuild, level, storeId) {
|
|
199
199
|
return __awaiter(this, void 0, void 0, function* () {
|
|
200
200
|
const query = queries_1.GET_CATEGORIES_QUERY;
|
|
201
201
|
const variables = {
|
|
202
202
|
partnerId: this.orgId,
|
|
203
|
-
storeChannel:
|
|
203
|
+
storeChannel: storeId,
|
|
204
204
|
typeBuild,
|
|
205
205
|
level,
|
|
206
206
|
};
|