@itutoring/itutoring_application_js_api 1.4.9 → 1.4.11

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/apiController.js CHANGED
@@ -143,6 +143,8 @@ class APIController
143
143
 
144
144
  }
145
145
 
146
+ var args = APIController.GetArgsFromArray(data);
147
+
146
148
  var request = new XMLHttpRequest();
147
149
  request.open("POST", APIController.REST_URL() + module + "/" + method, true);
148
150
 
@@ -186,7 +188,7 @@ class APIController
186
188
  else
187
189
  {
188
190
  request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
189
- request.send(data);
191
+ request.send(args);
190
192
  }
191
193
  });
192
194
  }
@@ -94,39 +94,43 @@ class TeacherProfileModule
94
94
  });
95
95
  }
96
96
 
97
- static async addTimeInterval(day, from, to)
97
+ static async addTimeInterval(day, from, to, id)
98
98
  {
99
99
  await APIController.Post(this.#MODULE, this.#ADD_TIME_INTERVAL, {
100
100
  'day': day,
101
101
  'from': from,
102
102
  'to': to,
103
+ 'id': id,
103
104
  });
104
105
  }
105
106
 
106
- static async removeTimeInterval(day, from, to)
107
+ static async removeTimeInterval(day, from, to, id)
107
108
  {
108
109
  await APIController.Post(this.#MODULE, this.#REMOVE_TIME_INTERVAL, {
109
110
  'day': day,
110
111
  'from': from,
111
112
  'to': to,
113
+ 'id': id,
112
114
  });
113
115
  }
114
116
 
115
- static async addUnavailableTimeInterval(date, from, to)
117
+ static async addUnavailableTimeInterval(date, from, to, id)
116
118
  {
117
119
  await APIController.Post(this.#MODULE, this.#ADD_UNAVAILABLE_TIME_INTERVAL, {
118
120
  'day': date,
119
121
  'from': from,
120
122
  'to': to,
123
+ 'id': id,
121
124
  });
122
125
  }
123
126
 
124
- static async removeUnavailableTimeInterval(date, from, to)
127
+ static async removeUnavailableTimeInterval(date, from, to, id)
125
128
  {
126
129
  await APIController.Post(this.#MODULE, this.#REMOVE_UNAVAILABLE_TIME_INTERVAL, {
127
130
  'day': date,
128
131
  'from': from,
129
132
  'to': to,
133
+ 'id': id,
130
134
  });
131
135
  }
132
136
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.4.9",
3
+ "version": "1.4.11",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",