@itutoring/itutoring_application_js_api 1.6.56 → 1.7.1

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/index.d.ts CHANGED
@@ -34,6 +34,8 @@ import LessonManager from "./modules/LessonManager";
34
34
  import AttendanceManager from "./modules/AttendanceManager";
35
35
  import TeacherProfileModule from "./modules/TeacherProfileModule";
36
36
  import LectorDatabase from "./modules/LectorDatabase";
37
+ import LectorsCalendar from "./modules/LectorsCalendar";
38
+ import AiAssist from "./modules/AiAssist";
37
39
 
38
40
  import Course from "./objects/Course";
39
41
  import CourseReservation from "./objects/CourseReservation";
@@ -95,6 +97,8 @@ export
95
97
  Reviews,
96
98
  FAQ,
97
99
  Inventory,
100
+ LectorsCalendar,
101
+ AiAssist,
98
102
 
99
103
  Course,
100
104
  CourseReservation,
package/index.js CHANGED
@@ -31,6 +31,8 @@ import iTutoringApplicationVersion from "./modules/Version";
31
31
  import LessonManager from "./modules/LessonManager";
32
32
  import AttendanceManager from "./modules/AttendanceManager";
33
33
  import LectorDatabase from "./modules/LectorDatabase";
34
+ import LectorsCalendar from "./modules/LectorsCalendar";
35
+ import AiAssist from "./modules/AiAssist";
34
36
 
35
37
  import Course from "./objects/Course";
36
38
  import CourseReservation from "./objects/CourseReservation";
@@ -93,6 +95,8 @@ export
93
95
  Reviews,
94
96
  FAQ,
95
97
  Inventory,
98
+ LectorsCalendar,
99
+ AiAssist,
96
100
 
97
101
  Course,
98
102
  CourseReservation,
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
10
+ import APIController from "../apiController";
11
+
12
+ class AiAssist
13
+ {
14
+ static #MODULE = 'AiAssist';
15
+
16
+ static #FIX_LECTURE_REPORT = 'FixLectureReport';
17
+
18
+ static async fixLectureReport(topic, report, review, homework, lessonId)
19
+ {
20
+ var data = await APIController.Post(this.#MODULE, this.#FIX_LECTURE_REPORT, {
21
+ 'topic': topic,
22
+ 'report': report,
23
+ 'review': review,
24
+ 'homework': homework,
25
+ });
26
+
27
+ return data;
28
+ }
29
+ }
30
+
31
+ export default AiAssist;
@@ -0,0 +1,68 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
10
+ import APIController from "../apiController";
11
+
12
+ class LectorsCalendar
13
+ {
14
+ static #MODULE = 'LectorsCalendar';
15
+
16
+ static #GET_CALENDAR = 'GetCalendar';
17
+ static #GET_LECTORS_FOR_TIME = 'GetLectorsForTime';
18
+
19
+ /**
20
+ *
21
+ * @param {*} lectorIds
22
+ * @param {*} day
23
+ * @param {*} month
24
+ * @param {*} year
25
+ * @param {*} length
26
+ * @param {*} lesson - minutes60 or minutes45
27
+ * @returns
28
+ */
29
+ static async getCalendar(lectorIds, day, month, year, length, lesson)
30
+ {
31
+ var data = await APIController.Get(this.#MODULE, this.#GET_CALENDAR, {
32
+ 'lectorIds': lectorIds,
33
+ 'day': day,
34
+ 'month': month,
35
+ 'year': year,
36
+ 'length': length,
37
+ 'lesson': lesson,
38
+ });
39
+
40
+ return data;
41
+ }
42
+
43
+ /**
44
+ *
45
+ * @param {*} lectorIds
46
+ * @param {*} day
47
+ * @param {*} month
48
+ * @param {*} year
49
+ * @param {*} time
50
+ * @param {*} lesson - minutes60 or minutes45
51
+ * @returns
52
+ */
53
+ static async getLectorsForTime(lectorIds, day, month, year, time, lesson)
54
+ {
55
+ var data = await APIController.Get(this.#MODULE, this.#GET_LECTORS_FOR_TIME, {
56
+ 'lectorIds': lectorIds,
57
+ 'day': day,
58
+ 'month': month,
59
+ 'year': year,
60
+ 'time': time,
61
+ 'lesson': lesson,
62
+ });
63
+
64
+ return data;
65
+ }
66
+ }
67
+
68
+ export default LectorsCalendar;
package/modules/Models.js CHANGED
@@ -48,6 +48,38 @@ class Models
48
48
  static #GET_LECTOR = 'GetLector';
49
49
  static #DELETE_LECTOR = 'DeleteLector';
50
50
  static #GET_LECTOR_CALENDAR = 'GetLectorCalendar';
51
+ static #GET_LECTORS_FOR_INQUIRY = 'GetLectorsForInquiry';
52
+ static #GENERATE_LECTURE_REPORT = 'GenerateLectureReport';
53
+ static #GET_LECTURE_REPORT = 'GetLectureReport';
54
+
55
+ static async getLectureReport(id)
56
+ {
57
+ var data = await APIController.Get(this.#MODULE, this.#GET_LECTURE_REPORT, {
58
+ 'id': lectureId,
59
+ });
60
+ return data;
61
+ }
62
+
63
+ static async generateLectureReport(lectureId, topic, report, review, hw)
64
+ {
65
+ return await APIController.Post(this.#MODULE, this.#GENERATE_LECTURE_REPORT, {
66
+ 'lectureId': lectureId,
67
+ 'topic': topic,
68
+ 'report': report,
69
+ 'review': review,
70
+ 'hw': hw,
71
+ });
72
+ }
73
+
74
+ static async getLectorsForInquiry(inquiryId)
75
+ {
76
+ var data = await APIController.Get(this.#MODULE, this.#GET_LECTORS_FOR_INQUIRY, {
77
+ 'inquiryId': inquiryId,
78
+ });
79
+
80
+ return data;
81
+ }
82
+
51
83
 
52
84
  static async getLectorCalendar(lectorId, day, month, year, length)
53
85
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.6.56",
3
+ "version": "1.7.1",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",