@itutoring/itutoring_application_js_api 1.1.45 → 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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.1.45",
3
+ "version": "1.1.46",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",