@longvansoftware/storefront-js-client 4.0.9 → 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.
|
@@ -24,5 +24,5 @@ export declare class PortalService extends Service {
|
|
|
24
24
|
getClass(studentId?: string): Promise<any>;
|
|
25
25
|
getMenus(menuId: string): Promise<any>;
|
|
26
26
|
getBooking(query?: Record<string, any>): Promise<any>;
|
|
27
|
-
bookingSchedule(data: Record<string, any>): Promise<
|
|
27
|
+
bookingSchedule(data: Record<string, any>): Promise<any>;
|
|
28
28
|
}
|
|
@@ -336,6 +336,7 @@ class PortalService extends serviceSDK_1.Service {
|
|
|
336
336
|
const endpoint = `/dynamic-collection/public/v2/schedule/actionBooking`;
|
|
337
337
|
try {
|
|
338
338
|
const response = yield this.restApiCallWithNoToken(endpoint, method, data);
|
|
339
|
+
return response;
|
|
339
340
|
}
|
|
340
341
|
catch (error) {
|
|
341
342
|
throw error;
|
|
@@ -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;
|