@itutoring/itutoring_application_js_api 1.1.44 → 1.1.46
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/modules/LessonManager.js
CHANGED
|
@@ -15,9 +15,11 @@ class LessonManager
|
|
|
15
15
|
static #UPDATE_EVENT = "UpdateEvent";
|
|
16
16
|
static #CREATE_EVENT = "CreateEvent";
|
|
17
17
|
|
|
18
|
-
static async GetAllEvents()
|
|
18
|
+
static async GetAllEvents(filters)
|
|
19
19
|
{
|
|
20
|
-
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
|
+
});
|
|
21
23
|
|
|
22
24
|
var eventObjs = [];
|
|
23
25
|
var eventsJson = JSON.parse(events)
|
|
@@ -12,6 +12,8 @@ class SubjectManager
|
|
|
12
12
|
// All method names
|
|
13
13
|
static #GET_ALL_AVAILABLE_SUBJECTS = "GetAllAvailableSubjects";
|
|
14
14
|
static #GET_ALL_AVAILABLE_COURSES = "GetAllAvailableCourses";
|
|
15
|
+
static #GET_ALL_AVAILABLE_PLACES = "GetAllAvailablePlaces";
|
|
16
|
+
static #GET_ALL_AVAILABLE_CLASSES = "GetAllAvailableClasses";
|
|
15
17
|
|
|
16
18
|
// Cache keys
|
|
17
19
|
static #SUBJECTS_CACHE_KEY = "json_subjects_c_k";
|
|
@@ -107,6 +109,22 @@ class SubjectManager
|
|
|
107
109
|
|
|
108
110
|
return availableCourses;
|
|
109
111
|
}
|
|
112
|
+
|
|
113
|
+
static async GetAllAvailablePlaces()
|
|
114
|
+
{
|
|
115
|
+
var data = await APIController.Get(this.#MODULE, this.#GET_ALL_AVAILABLE_PLACES);
|
|
116
|
+
|
|
117
|
+
var arr = JSON.parse(data);
|
|
118
|
+
|
|
119
|
+
return arr;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
static async GetAllAvailableClasses()
|
|
123
|
+
{
|
|
124
|
+
var data = await APIController.Get(this.#MODULE, this.#GET_ALL_AVAILABLE_CLASSES);
|
|
125
|
+
var arr = JSON.parse(data);
|
|
126
|
+
return arr;
|
|
127
|
+
}
|
|
110
128
|
}
|
|
111
129
|
|
|
112
130
|
export default SubjectManager;
|