@itutoring/itutoring_application_js_api 1.6.51 → 1.6.53
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/apiController.js +2 -0
- package/modules/Models.js +27 -0
- package/modules/TableExplorer.js +8 -0
- package/package.json +1 -1
package/apiController.js
CHANGED
|
@@ -97,6 +97,8 @@ class APIController
|
|
|
97
97
|
if (this.LastCall === null || this.ConfirmationToken === null)
|
|
98
98
|
return;
|
|
99
99
|
|
|
100
|
+
if (this.LastCall.data == null)
|
|
101
|
+
this.LastCall.data = {};
|
|
100
102
|
this.LastCall.data['conf_token'] = this.ConfirmationToken;
|
|
101
103
|
if (this.LastCall.type === "GET")
|
|
102
104
|
return await this.Get(this.LastCall.module, this.LastCall.method, this.LastCall.data);
|
package/modules/Models.js
CHANGED
|
@@ -44,6 +44,33 @@ class Models
|
|
|
44
44
|
static #CREATE_EVENT_FROM_INQUIRY = 'CreateEventFromInquiry';
|
|
45
45
|
static #GET_FIRST_PLANNED_LECTURE = 'GetFirstPlannedLecture';
|
|
46
46
|
static #MARK_INQUIRY_ALL_INFO_SET = 'MarkInquiryAllInfoSet';
|
|
47
|
+
static #SET_LECTOR = 'SetLector';
|
|
48
|
+
static #GET_LECTOR = 'GetLector';
|
|
49
|
+
static #DELETE_LECTOR = 'DeleteLector';
|
|
50
|
+
|
|
51
|
+
static async setLector(lector)
|
|
52
|
+
{
|
|
53
|
+
return await APIController.Post(this.#MODULE, this.#SET_LECTOR, {
|
|
54
|
+
'model': JSON.stringify(lector),
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
static async getLector(id)
|
|
59
|
+
{
|
|
60
|
+
var data = await APIController.Get(this.#MODULE, this.#GET_LECTOR, {
|
|
61
|
+
'id': id,
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
return data;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static async deleteLector(id, toTrash = true)
|
|
68
|
+
{
|
|
69
|
+
await APIController.Post(this.#MODULE, this.#DELETE_LECTOR, {
|
|
70
|
+
'id': id,
|
|
71
|
+
'toTrash': toTrash,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
47
74
|
|
|
48
75
|
static async markInquiryAllInfoSet(inquiryId)
|
|
49
76
|
{
|
package/modules/TableExplorer.js
CHANGED
|
@@ -37,6 +37,14 @@ class TableExplorer
|
|
|
37
37
|
static #REMOVE_FILTER = "RemoveFilter";
|
|
38
38
|
static #GET_NUMBER_OF_ENTRIES = "GetNumberOfEntries";
|
|
39
39
|
static #SET_CUSTOM_LOAD_QUERY = "SetCustomLoadQuery";
|
|
40
|
+
static #CREATE_LECTOR_EXPLORER = "CreateLectorExplorer";
|
|
41
|
+
|
|
42
|
+
static async createLectorExplorer()
|
|
43
|
+
{
|
|
44
|
+
var data = await APIController.Get(this.#MODULE, this.#CREATE_LECTOR_EXPLORER);
|
|
45
|
+
|
|
46
|
+
return data['token'];
|
|
47
|
+
}
|
|
40
48
|
|
|
41
49
|
static async setCustomLoadQuery(token, query, variables = {})
|
|
42
50
|
{
|