@itutoring/itutoring_application_js_api 1.12.4 → 1.12.6
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.
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import APIController from "../apiController";
|
|
9
|
+
|
|
8
10
|
class LessonInventory
|
|
9
11
|
{
|
|
10
12
|
static #MODULE = "LessonInventory";
|
|
@@ -14,9 +16,14 @@ class LessonInventory
|
|
|
14
16
|
static #GET_SUBJECT_NAME = "GetSubjectName";
|
|
15
17
|
static #SEARCH = "Search";
|
|
16
18
|
|
|
17
|
-
static async getAvailableSubjects()
|
|
19
|
+
static async getAvailableSubjects(category = 'ANY', max = -1, offset = 0, filter = [])
|
|
18
20
|
{
|
|
19
|
-
var subjects = await APIController.Get(this.#MODULE, this.#GET_AVAILABLE_SUBJECTS
|
|
21
|
+
var subjects = await APIController.Get(this.#MODULE, this.#GET_AVAILABLE_SUBJECTS, {
|
|
22
|
+
'category': category,
|
|
23
|
+
'max': max,
|
|
24
|
+
'offset': offset,
|
|
25
|
+
'filter': JSON.stringify(filter)
|
|
26
|
+
});
|
|
20
27
|
return JSON.parse(subjects);
|
|
21
28
|
}
|
|
22
29
|
|