@itutoring/itutoring_application_js_api 1.6.53 → 1.6.55
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/modules/Models.js +16 -1
- package/package.json +1 -1
package/modules/Models.js
CHANGED
|
@@ -47,6 +47,20 @@ class Models
|
|
|
47
47
|
static #SET_LECTOR = 'SetLector';
|
|
48
48
|
static #GET_LECTOR = 'GetLector';
|
|
49
49
|
static #DELETE_LECTOR = 'DeleteLector';
|
|
50
|
+
static #GET_LECTOR_CALENDAR = 'GetLectorCalendar';
|
|
51
|
+
|
|
52
|
+
static async getLectorCalendar(lectorId, day, month, year, length)
|
|
53
|
+
{
|
|
54
|
+
var data = await APIController.Get(this.#MODULE, this.#GET_LECTOR_CALENDAR, {
|
|
55
|
+
'lectorId': lectorId,
|
|
56
|
+
'day': day,
|
|
57
|
+
'month': month,
|
|
58
|
+
'year': year,
|
|
59
|
+
'length': length,
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
return data;
|
|
63
|
+
}
|
|
50
64
|
|
|
51
65
|
static async setLector(lector)
|
|
52
66
|
{
|
|
@@ -64,11 +78,12 @@ class Models
|
|
|
64
78
|
return data;
|
|
65
79
|
}
|
|
66
80
|
|
|
67
|
-
static async deleteLector(id, toTrash = true)
|
|
81
|
+
static async deleteLector(id, toTrash = true, archiveOnly = false)
|
|
68
82
|
{
|
|
69
83
|
await APIController.Post(this.#MODULE, this.#DELETE_LECTOR, {
|
|
70
84
|
'id': id,
|
|
71
85
|
'toTrash': toTrash,
|
|
86
|
+
'archiveOnly': archiveOnly,
|
|
72
87
|
});
|
|
73
88
|
}
|
|
74
89
|
|