@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 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
- BookReturn,
52
- AuthResult,
53
- PaymentType,
54
- DeviceOS,
55
- PasswordChange,
56
- R_KEYs,
57
- AuthType,
58
- } from "./objects/Enums";
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
- BookReturn,
50
- AuthResult,
51
- PaymentType,
52
- DeviceOS,
53
- PasswordChange,
54
- R_KEYs,
55
- AuthType
56
- } from "./objects/Enums";
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.7.17",
3
+ "version": "1.8.1",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",