@itutoring/itutoring_application_js_api 1.4.14 → 1.4.16

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.
@@ -29,6 +29,14 @@ class TeacherProfileModule
29
29
  static #GET_TEACHER_INFO = "GetTeacherInfo";
30
30
  static #IS_TEACHING_ONSITE = "IsTeachingOnsite";
31
31
  static #SET_TEACHING_ONSITE = "SetTeachingOnsite";
32
+ static #REMOVE_UNAVAILABLE_DATE = "RemoveUnavailableDate";
33
+
34
+ static async removeUnavailableDate(date)
35
+ {
36
+ await APIController.Post(this.#MODULE, this.#REMOVE_UNAVAILABLE_DATE, {
37
+ 'date': date,
38
+ });
39
+ }
32
40
 
33
41
  static async isTeachingOnsite()
34
42
  {
@@ -152,14 +160,14 @@ class TeacherProfileModule
152
160
  static async setOnsitePlace(places)
153
161
  {
154
162
  await APIController.Post(this.#MODULE, this.#SET_ONSITE_PLACE, {
155
- 'place': places,
163
+ 'place': JSON.stringify(places),
156
164
  });
157
165
  }
158
166
 
159
167
  static async removeOnsitePlace(places)
160
168
  {
161
169
  await APIController.Post(this.#MODULE, this.#REMOVE_ONSITE_PLACE, {
162
- 'place': places,
170
+ 'place': JSON.stringify(places),
163
171
  });
164
172
  }
165
173
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.4.14",
3
+ "version": "1.4.16",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",