@itutoring/itutoring_application_js_api 1.7.16 → 1.8.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/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,28 @@
1
+ /*
2
+ * Copyright (C) 2025 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+ class CustomerLessonManager
10
+ {
11
+ static #MODULE = "CustomerLessonManager";
12
+
13
+ static #ADD_LESSONS = "AddLessons";
14
+
15
+ static async AddLessons(customerId, count, lessonType, lessonLength)
16
+ {
17
+ var res = await APIController.Post(this.#MODULE, this.#ADD_LESSONS, {
18
+ 'customerId': customerId,
19
+ 'count': count,
20
+ 'lessonType': lessonType,
21
+ 'lessonLength': lessonLength
22
+ });
23
+
24
+ return res;
25
+ }
26
+ }
27
+
28
+ export default CustomerLessonManager;
@@ -21,6 +21,7 @@ class TeacherAuth
21
21
  static #REGISTER = "Register";
22
22
  static #IS_AUTHENTICATED = "IsAuthenticated";
23
23
  static #CHANGE_PASSWOD = "ChangePassword";
24
+ static #REQUEST_PASSWORD_CHANGE = "RequestPasswordChange";
24
25
 
25
26
  /**
26
27
  * This mothod will force default auth dialog
@@ -45,6 +46,13 @@ class TeacherAuth
45
46
 
46
47
  return res;
47
48
  }
49
+
50
+ static async RequestPasswordChange(email)
51
+ {
52
+ await APIController.Get(this.#MODULE, this.#REQUEST_PASSWORD_CHANGE, {
53
+ 'email': email
54
+ });
55
+ }
48
56
  }
49
57
 
50
58
  export default TeacherAuth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.7.16",
3
+ "version": "1.8.0",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",