@itutoring/itutoring_application_js_api 1.1.43 → 1.1.45

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.
@@ -13,10 +13,13 @@ class LessonManager
13
13
  static #GET_ALL_EVENTS = "GetAllEvents";
14
14
  static #DELETE_EVENT = "DeleteEvent";
15
15
  static #UPDATE_EVENT = "UpdateEvent";
16
+ static #CREATE_EVENT = "CreateEvent";
16
17
 
17
- static async GetAllEvents()
18
+ static async GetAllEvents(filters)
18
19
  {
19
- var events = await APIController.Get(this.#MODULE, this.#GET_ALL_EVENTS);
20
+ var events = await APIController.Get(this.#MODULE, this.#GET_ALL_EVENTS, {
21
+ "filters": JSON.stringify(filters),
22
+ });
20
23
 
21
24
  var eventObjs = [];
22
25
  var eventsJson = JSON.parse(events)
@@ -44,6 +47,14 @@ class LessonManager
44
47
  "event": eventJson,
45
48
  });
46
49
  }
50
+
51
+ /**
52
+ * Will create a new event.
53
+ */
54
+ static async CreateEvent()
55
+ {
56
+ await APIController.Post(this.#MODULE, this.#CREATE_EVENT);
57
+ }
47
58
  }
48
59
 
49
60
  export default LessonManager;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.1.43",
3
+ "version": "1.1.45",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",