@itutoring/itutoring_application_js_api 1.7.0 → 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
@@ -35,6 +35,7 @@ import AttendanceManager from "./modules/AttendanceManager";
35
35
  import TeacherProfileModule from "./modules/TeacherProfileModule";
36
36
  import LectorDatabase from "./modules/LectorDatabase";
37
37
  import LectorsCalendar from "./modules/LectorsCalendar";
38
+ import AiAssist from "./modules/AiAssist";
38
39
 
39
40
  import Course from "./objects/Course";
40
41
  import CourseReservation from "./objects/CourseReservation";
@@ -97,6 +98,7 @@ export
97
98
  FAQ,
98
99
  Inventory,
99
100
  LectorsCalendar,
101
+ AiAssist,
100
102
 
101
103
  Course,
102
104
  CourseReservation,
package/index.js CHANGED
@@ -32,6 +32,7 @@ import LessonManager from "./modules/LessonManager";
32
32
  import AttendanceManager from "./modules/AttendanceManager";
33
33
  import LectorDatabase from "./modules/LectorDatabase";
34
34
  import LectorsCalendar from "./modules/LectorsCalendar";
35
+ import AiAssist from "./modules/AiAssist";
35
36
 
36
37
  import Course from "./objects/Course";
37
38
  import CourseReservation from "./objects/CourseReservation";
@@ -95,6 +96,7 @@ export
95
96
  FAQ,
96
97
  Inventory,
97
98
  LectorsCalendar,
99
+ AiAssist,
98
100
 
99
101
  Course,
100
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;
package/modules/Models.js CHANGED
@@ -49,6 +49,27 @@ class Models
49
49
  static #DELETE_LECTOR = 'DeleteLector';
50
50
  static #GET_LECTOR_CALENDAR = 'GetLectorCalendar';
51
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
+ }
52
73
 
53
74
  static async getLectorsForInquiry(inquiryId)
54
75
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",