@longvansoftware/storefront-js-client 3.7.3 → 3.7.5
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.
|
@@ -22,4 +22,5 @@ export declare class PortalService extends Service {
|
|
|
22
22
|
getContent(type: string, relativeId: string): Promise<any>;
|
|
23
23
|
getCalendarStudent(studentId?: string, classId?: string, startDate?: number, endDate?: number): Promise<any>;
|
|
24
24
|
getClass(studentId?: string): Promise<any>;
|
|
25
|
+
getMenus(menuId: string): Promise<any>;
|
|
25
26
|
}
|
|
@@ -293,5 +293,18 @@ class PortalService extends serviceSDK_1.Service {
|
|
|
293
293
|
}
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
|
+
getMenus(menuId) {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
+
const endpoint = `/content/public/menu/${menuId}`;
|
|
299
|
+
const method = "GET";
|
|
300
|
+
try {
|
|
301
|
+
const response = yield this.restApiCallWithNoHeader(endpoint, method);
|
|
302
|
+
return response;
|
|
303
|
+
}
|
|
304
|
+
catch (error) {
|
|
305
|
+
throw error;
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
}
|
|
296
309
|
}
|
|
297
310
|
exports.PortalService = PortalService;
|