@itutoring/itutoring_application_js_api 1.4.6 → 1.4.8

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.
@@ -14,11 +14,19 @@ class SubjectManager
14
14
  static #GET_ALL_AVAILABLE_COURSES = "GetAllAvailableCourses";
15
15
  static #GET_ALL_AVAILABLE_PLACES = "GetAllAvailablePlaces";
16
16
  static #GET_ALL_AVAILABLE_CLASSES = "GetAllAvailableClasses";
17
+ static #GET_ALL_AVAILABLE_LOCATIONS = "GetAllAvailableLocations";
17
18
 
18
19
  // Cache keys
19
20
  static #SUBJECTS_CACHE_KEY = "json_subjects_c_k";
20
21
  static #COURSES_CACHE_KEY = "json_courses_c_k";
21
22
 
23
+ static async getAllAvailableLocations()
24
+ {
25
+ var data = await APIController.Get(this.#MODULE, this.#GET_ALL_AVAILABLE_LOCATIONS);
26
+ var arr = JSON.parse(data);
27
+ return arr;
28
+ }
29
+
22
30
  /**
23
31
  *
24
32
  * @returns Array (Subject[id]) of all available subjects as array of Subject objects. Key is id of subject.
@@ -27,6 +27,21 @@ class TeacherProfileModule
27
27
  static #IS_PUBLIC_PROFILE_ACTIVE = "IsPublicProfileActive";
28
28
  static #GET_PROFILE_PICTURE = "GetProfilePicture";
29
29
  static #GET_TEACHER_INFO = "GetTeacherInfo";
30
+ static #IS_TEACHING_ONSITE = "IsTeachingOnsite";
31
+ static #SET_TEACHING_ONSITE = "SetTeachingOnsite";
32
+
33
+ static async isTeachingOnsite()
34
+ {
35
+ var data = await APIController.Get(this.#MODULE, this.#IS_TEACHING_ONSITE);
36
+ return data;
37
+ }
38
+
39
+ static async setTeachingOnsite(onsite)
40
+ {
41
+ await APIController.Post(this.#MODULE, this.#SET_TEACHING_ONSITE, {
42
+ 'teachingOnsite': onsite,
43
+ });
44
+ }
30
45
 
31
46
  static async getTeacherInfo()
32
47
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.4.6",
3
+ "version": "1.4.8",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",