@itutoring/itutoring_application_js_api 1.7.17 → 1.8.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 +12 -10
- package/index.js +11 -9
- package/modules/CustomerLessonManager.js +30 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import TeacherProfileModule from "./modules/TeacherProfileModule";
|
|
|
27
27
|
import LectorDatabase from "./modules/LectorDatabase";
|
|
28
28
|
import LectorsCalendar from "./modules/LectorsCalendar";
|
|
29
29
|
import AiAssist from "./modules/AiAssist";
|
|
30
|
+
import CustomerLessonManager from "./modules/CustomerLessonManager";
|
|
30
31
|
|
|
31
32
|
import Course from "./objects/Course";
|
|
32
33
|
import CourseReservation from "./objects/CourseReservation";
|
|
@@ -47,15 +48,15 @@ import Inventory from "./modules/Inventory";
|
|
|
47
48
|
import BillingInfo from "./objects/billingInfo";
|
|
48
49
|
|
|
49
50
|
import
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
{
|
|
52
|
+
BookReturn,
|
|
53
|
+
AuthResult,
|
|
54
|
+
PaymentType,
|
|
55
|
+
DeviceOS,
|
|
56
|
+
PasswordChange,
|
|
57
|
+
R_KEYs,
|
|
58
|
+
AuthType,
|
|
59
|
+
} from "./objects/Enums";
|
|
59
60
|
|
|
60
61
|
export
|
|
61
62
|
{
|
|
@@ -81,7 +82,8 @@ export
|
|
|
81
82
|
Inventory,
|
|
82
83
|
LectorsCalendar,
|
|
83
84
|
AiAssist,
|
|
84
|
-
|
|
85
|
+
CustomerLessonManager,
|
|
86
|
+
|
|
85
87
|
Course,
|
|
86
88
|
CourseReservation,
|
|
87
89
|
Customer,
|
package/index.js
CHANGED
|
@@ -24,6 +24,7 @@ import iTutoringApplicationVersion from "./modules/Version";
|
|
|
24
24
|
import LectorDatabase from "./modules/LectorDatabase";
|
|
25
25
|
import LectorsCalendar from "./modules/LectorsCalendar";
|
|
26
26
|
import AiAssist from "./modules/AiAssist";
|
|
27
|
+
import CustomerLessonManager from "./modules/CustomerLessonManager";
|
|
27
28
|
|
|
28
29
|
import Course from "./objects/Course";
|
|
29
30
|
import CourseReservation from "./objects/CourseReservation";
|
|
@@ -45,15 +46,15 @@ import Inventory from "./modules/Inventory";
|
|
|
45
46
|
import BillingInfo from "./objects/billingInfo";
|
|
46
47
|
|
|
47
48
|
import
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
{
|
|
50
|
+
BookReturn,
|
|
51
|
+
AuthResult,
|
|
52
|
+
PaymentType,
|
|
53
|
+
DeviceOS,
|
|
54
|
+
PasswordChange,
|
|
55
|
+
R_KEYs,
|
|
56
|
+
AuthType
|
|
57
|
+
} from "./objects/Enums";
|
|
57
58
|
|
|
58
59
|
export
|
|
59
60
|
{
|
|
@@ -79,6 +80,7 @@ export
|
|
|
79
80
|
Inventory,
|
|
80
81
|
LectorsCalendar,
|
|
81
82
|
AiAssist,
|
|
83
|
+
CustomerLessonManager,
|
|
82
84
|
|
|
83
85
|
Course,
|
|
84
86
|
CourseReservation,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2025 iTutoring s.r.o.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import APIController from "../apiController";
|
|
10
|
+
|
|
11
|
+
class CustomerLessonManager
|
|
12
|
+
{
|
|
13
|
+
static #MODULE = "CustomerLessonManager";
|
|
14
|
+
|
|
15
|
+
static #ADD_LESSONS = "AddLessons";
|
|
16
|
+
|
|
17
|
+
static async AddLessons(customerId, count, lessonType, lessonLength)
|
|
18
|
+
{
|
|
19
|
+
var res = await APIController.Post(this.#MODULE, this.#ADD_LESSONS, {
|
|
20
|
+
'customerId': customerId,
|
|
21
|
+
'count': count,
|
|
22
|
+
'lessonType': lessonType,
|
|
23
|
+
'lessonLength': lessonLength
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
return res;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default CustomerLessonManager;
|