@itutoring/itutoring_application_js_api 1.1.32 → 1.1.34
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 +2 -0
- package/index.js +2 -0
- package/modules/CustomerEduPortal.js +8 -0
- package/modules/EventManager.js +19 -0
- package/package.json +1 -1
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,
|
|
@@ -22,6 +22,7 @@ class CustomerEduPortal
|
|
|
22
22
|
static #SET_DATE_AND_TIME = "SetDateAndTime";
|
|
23
23
|
static #SET_DAY = "SetDay";
|
|
24
24
|
static #SET_RECURSIVITY = "SetRecursivity";
|
|
25
|
+
static #DELETE_EVENT = "DeleteEvent";
|
|
25
26
|
|
|
26
27
|
static async GetAllEvents()
|
|
27
28
|
{
|
|
@@ -212,6 +213,13 @@ class CustomerEduPortal
|
|
|
212
213
|
eventObj.CreateFromJSON(JSON.parse(event));
|
|
213
214
|
return eventObj;
|
|
214
215
|
}
|
|
216
|
+
|
|
217
|
+
static async DeleteEvent(eventId)
|
|
218
|
+
{
|
|
219
|
+
await APIController.Post(this.#MODULE, this.#DELETE_EVENT, {
|
|
220
|
+
'eventId': eventId,
|
|
221
|
+
});
|
|
222
|
+
}
|
|
215
223
|
}
|
|
216
224
|
|
|
217
225
|
export default CustomerEduPortal;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import APIController from "../apiController";
|
|
2
|
+
|
|
3
|
+
class EventManager
|
|
4
|
+
{
|
|
5
|
+
static #MODULE = "EventManager"
|
|
6
|
+
|
|
7
|
+
static #EVENT_EXISTS = "EventExists";
|
|
8
|
+
|
|
9
|
+
static async EventExists(eventId)
|
|
10
|
+
{
|
|
11
|
+
var exists = await APIController.Get(this.#MODULE, this.#EVENT_EXISTS, {
|
|
12
|
+
"eventId": eventId,
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
return APIController.IntToBool(exists);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default EventManager;
|