@longvansoftware/storefront-js-client 4.1.0 → 4.1.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.
|
@@ -37,6 +37,7 @@ export declare class ProductService extends Service {
|
|
|
37
37
|
getStores(type: string): Promise<any>;
|
|
38
38
|
getDetailStores(): Promise<any>;
|
|
39
39
|
getDetailStoresV2(storeId: string): Promise<any>;
|
|
40
|
+
getDetailStoresV3(partnerId: string, storeId: string): Promise<any>;
|
|
40
41
|
getProductImage: (productId: string) => Promise<any>;
|
|
41
42
|
getCategory(typeBuild: string, level: number, storeId: string): Promise<any>;
|
|
42
43
|
getProduct(dataQuery: any): Promise<any>;
|
|
@@ -195,6 +195,22 @@ class ProductService extends serviceSDK_1.Service {
|
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
+
getDetailStoresV3(partnerId, storeId) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
const query = queries_1.GET_DETAIL_STORES;
|
|
201
|
+
const variables = {
|
|
202
|
+
partnerId,
|
|
203
|
+
storeId,
|
|
204
|
+
};
|
|
205
|
+
try {
|
|
206
|
+
const response = yield this.graphqlQuery(query, variables);
|
|
207
|
+
return response.getDetailStores;
|
|
208
|
+
}
|
|
209
|
+
catch (error) {
|
|
210
|
+
throw error;
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
}
|
|
198
214
|
getCategory(typeBuild, level, storeId) {
|
|
199
215
|
return __awaiter(this, void 0, void 0, function* () {
|
|
200
216
|
const query = queries_1.GET_CATEGORIES_QUERY;
|