@itutoring/itutoring_application_js_api 1.6.55 → 1.7.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 +2 -0
- package/index.js +2 -0
- package/modules/LectorsCalendar.js +68 -0
- package/modules/Models.js +12 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ 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";
|
|
37
38
|
|
|
38
39
|
import Course from "./objects/Course";
|
|
39
40
|
import CourseReservation from "./objects/CourseReservation";
|
|
@@ -95,6 +96,7 @@ export
|
|
|
95
96
|
Reviews,
|
|
96
97
|
FAQ,
|
|
97
98
|
Inventory,
|
|
99
|
+
LectorsCalendar,
|
|
98
100
|
|
|
99
101
|
Course,
|
|
100
102
|
CourseReservation,
|
package/index.js
CHANGED
|
@@ -31,6 +31,7 @@ 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";
|
|
34
35
|
|
|
35
36
|
import Course from "./objects/Course";
|
|
36
37
|
import CourseReservation from "./objects/CourseReservation";
|
|
@@ -93,6 +94,7 @@ export
|
|
|
93
94
|
Reviews,
|
|
94
95
|
FAQ,
|
|
95
96
|
Inventory,
|
|
97
|
+
LectorsCalendar,
|
|
96
98
|
|
|
97
99
|
Course,
|
|
98
100
|
CourseReservation,
|
|
@@ -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,11 +48,22 @@ 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
|
+
|
|
53
|
+
static async getLectorsForInquiry(inquiryId)
|
|
54
|
+
{
|
|
55
|
+
var data = await APIController.Get(this.#MODULE, this.#GET_LECTORS_FOR_INQUIRY, {
|
|
56
|
+
'inquiryId': inquiryId,
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
return data;
|
|
60
|
+
}
|
|
61
|
+
|
|
51
62
|
|
|
52
63
|
static async getLectorCalendar(lectorId, day, month, year, length)
|
|
53
64
|
{
|
|
54
65
|
var data = await APIController.Get(this.#MODULE, this.#GET_LECTOR_CALENDAR, {
|
|
55
|
-
'
|
|
66
|
+
'id': lectorId,
|
|
56
67
|
'day': day,
|
|
57
68
|
'month': month,
|
|
58
69
|
'year': year,
|