@itutoring/itutoring_application_js_api 1.14.1 → 1.14.2

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.
@@ -16,6 +16,16 @@ class Inventory
16
16
  static #GET_AVAILABLE_ITEMS = "GetAvailableItems";
17
17
  static #SALE_COUPON_EXISTS = "SaleCouponExists";
18
18
  static #SEARCH = "Search";
19
+ static #GET_ITEM = "GetItem";
20
+
21
+ static async getItem(id)
22
+ {
23
+ var item = await APIController.Get(this.#MODULE, this.#GET_ITEM, {
24
+ 'id': id,
25
+ });
26
+
27
+ return item;
28
+ }
19
29
 
20
30
  static async saleCouponExists(code)
21
31
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",