@longvansoftware/storefront-js-client 3.7.2 → 3.7.4

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.
@@ -128,6 +128,23 @@ exports.GET_PRODUCT_BY_ID_QUERY = (0, graphql_tag_1.gql) `
128
128
  image
129
129
  imageIcon
130
130
  }
131
+ attributeDTOS {
132
+ id
133
+ key
134
+ extendFromSource
135
+ value {
136
+ name
137
+ value
138
+ }
139
+ metadata {
140
+ type
141
+ dataFrom
142
+ description
143
+ requiredData
144
+ otherItem
145
+ fill
146
+ }
147
+ }
131
148
  productAttributes {
132
149
  attributeName
133
150
  attributeValue
@@ -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.restApiCallWithToken(endpoint, method);
302
+ return response;
303
+ }
304
+ catch (error) {
305
+ throw error;
306
+ }
307
+ });
308
+ }
296
309
  }
297
310
  exports.PortalService = PortalService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "3.7.2",
3
+ "version": "3.7.4",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [