@itutoring/itutoring_application_js_api 1.3.37 → 1.4.0
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 +8 -0
- package/index.d.ts +2 -0
- package/package.json +1 -1
package/apiController.js
CHANGED
|
@@ -95,6 +95,10 @@ class APIController
|
|
|
95
95
|
}
|
|
96
96
|
if (json.code == 400)
|
|
97
97
|
{
|
|
98
|
+
console.log("API Error:");
|
|
99
|
+
console.log("Error: " + json.error_message);
|
|
100
|
+
console.log("ErrorCode: " + json.error_code);
|
|
101
|
+
console.log("StackTrace: " + json.stack_trace);
|
|
98
102
|
resolve("Invalid data");
|
|
99
103
|
}
|
|
100
104
|
}
|
|
@@ -150,6 +154,10 @@ class APIController
|
|
|
150
154
|
}
|
|
151
155
|
if (json.code == 400)
|
|
152
156
|
{
|
|
157
|
+
console.log("API Error:");
|
|
158
|
+
console.log("Error: " + json.error_message);
|
|
159
|
+
console.log("ErrorCode: " + json.error_code);
|
|
160
|
+
console.log("StackTrace: " + json.stack_trace);
|
|
153
161
|
resolve("Invalid data");
|
|
154
162
|
}
|
|
155
163
|
}
|
package/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ import EventManager from "./modules/EventManager";
|
|
|
24
24
|
import iTutoringApplicationVersion from "./modules/Version";
|
|
25
25
|
import LessonManager from "./modules/LessonManager";
|
|
26
26
|
import AttendanceManager from "./modules/AttendanceManager";
|
|
27
|
+
import TeacherProfileModule from "./modules/TeacherProfileModule";
|
|
27
28
|
|
|
28
29
|
import Course from "./objects/Course";
|
|
29
30
|
import CourseReservation from "./objects/CourseReservation";
|
|
@@ -75,6 +76,7 @@ export
|
|
|
75
76
|
Authentication,
|
|
76
77
|
AttendanceManager,
|
|
77
78
|
Toolkit,
|
|
79
|
+
TeacherProfileModule,
|
|
78
80
|
|
|
79
81
|
Course,
|
|
80
82
|
CourseReservation,
|