@itutoring/itutoring_application_js_api 1.6.50 → 1.6.52

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
@@ -97,6 +97,8 @@ class APIController
97
97
  if (this.LastCall === null || this.ConfirmationToken === null)
98
98
  return;
99
99
 
100
+ if (this.LastCall.data == null)
101
+ this.LastCall.data = {};
100
102
  this.LastCall.data['conf_token'] = this.ConfirmationToken;
101
103
  if (this.LastCall.type === "GET")
102
104
  return await this.Get(this.LastCall.module, this.LastCall.method, this.LastCall.data);
@@ -48,6 +48,19 @@ class TeacherProfileModule
48
48
  static #IS_PROFILE_COMPLETED = "IsProfileCompleted";
49
49
  static #SET_PROFILE_COMPLETE = "SetProfileCompleted";
50
50
  static #GET_AVAILABLE_MODULES = "GetAvailableModules";
51
+ static #CHECK_PROFILE ="CheckProfile";
52
+ static #IS_PROFILE_CHECKED = "IsProfileChecked";
53
+
54
+ static async isProfileChecked()
55
+ {
56
+ var data = await APIController.Get(this.#MODULE, this.#IS_PROFILE_CHECKED);
57
+ return data;
58
+ }
59
+
60
+ static async checkProfile()
61
+ {
62
+ await APIController.Post(this.#MODULE, this.#CHECK_PROFILE);
63
+ }
51
64
 
52
65
  static async getAvailableModules()
53
66
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.6.50",
3
+ "version": "1.6.52",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",