@itutoring/itutoring_application_js_api 1.4.6 → 1.4.7

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.
@@ -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.7",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",