@itutoring/itutoring_application_js_api 1.1.33 → 1.1.35

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.
package/index.d.ts CHANGED
@@ -20,6 +20,7 @@ import TeacherProfiles from "./modules/TeacherProfiles";
20
20
  import WebinarSystem from "./modules/WebinarsSystem";
21
21
  import GoogleReviews from "./modules/GoogleReviews";
22
22
  import CustomerEduPortal from "./modules/CustomerEduPortal";
23
+ import EventManager from "./modules/EventManager";
23
24
 
24
25
  import Course from "./objects/Course";
25
26
  import CourseReservation from "./objects/CourseReservation";
@@ -60,6 +61,7 @@ export
60
61
  WebinarSystem,
61
62
  GoogleReviews,
62
63
  CustomerEduPortal,
64
+ EventManager,
63
65
 
64
66
  Course,
65
67
  CourseReservation,
package/index.js CHANGED
@@ -18,6 +18,7 @@ import TeacherProfiles from "./modules/TeacherProfiles";
18
18
  import WebinarSystem from "./modules/WebinarsSystem";
19
19
  import GoogleReviews from "./modules/GoogleReviews";
20
20
  import CustomerEduPortal from "./modules/CustomerEduPortal";
21
+ import EventManager from "./modules/EventManager";
21
22
 
22
23
  import Course from "./objects/Course";
23
24
  import CourseReservation from "./objects/CourseReservation";
@@ -58,6 +59,7 @@ export
58
59
  WebinarSystem,
59
60
  GoogleReviews,
60
61
  CustomerEduPortal,
62
+ EventManager,
61
63
 
62
64
  Course,
63
65
  CourseReservation,
@@ -0,0 +1,29 @@
1
+ import APIController from "../apiController";
2
+
3
+ class EventManager
4
+ {
5
+ static #MODULE = "EventManager"
6
+
7
+ static #EVENT_EXISTS = "EventExists";
8
+ static #ROOM_EXISTS = "RoomExists";
9
+
10
+ static async EventExists(eventId)
11
+ {
12
+ var exists = await APIController.Get(this.#MODULE, this.#EVENT_EXISTS, {
13
+ "eventId": eventId,
14
+ });
15
+
16
+ return APIController.IntToBool(exists);
17
+ }
18
+
19
+ static async RoomExists(roomId)
20
+ {
21
+ var exists = await APIController.Get(this.#MODULE, this.#ROOM_EXISTS, {
22
+ 'roomId': roomId;
23
+ });
24
+
25
+ return APIController.IntToBool(exists);
26
+ }
27
+ }
28
+
29
+ export default EventManager;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.1.33",
3
+ "version": "1.1.35",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",