@itutoring/itutoring_application_js_api 1.5.4 → 1.5.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.
@@ -15,6 +15,33 @@ class LectorDatabase
15
15
  static #ADD_LECTOR = "AddLector";
16
16
  static #RESET_PASSWORD = "ResetPassword";
17
17
  static #ADD_MODULE_ACCESS = "AddModuleAccess";
18
+ static #REMOVE_MODULE_ACCESS = "RemoveModuleAccess";
19
+ static #GET_COUNT_OF_LECTORS = "GetCountOfLectors";
20
+
21
+ /**
22
+ * desc: Get count of lectors
23
+ *
24
+ * @returns {int} count of lectors
25
+ */
26
+ static async getCountOfLectors()
27
+ {
28
+ var count = await APIController.Get(this.#MODULE, this.#GET_COUNT_OF_LECTORS);
29
+
30
+ return count;
31
+ }
32
+
33
+ /**
34
+ * desc: Remove module access
35
+ * @param {string} lectorId
36
+ * @param {string} moduleId
37
+ */
38
+ static async removeModuleAccess(lectorId, moduleId)
39
+ {
40
+ await APIController.Post(this.#MODULE, this.#REMOVE_MODULE_ACCESS, {
41
+ 'lectorId': lectorId,
42
+ 'module': moduleId,
43
+ });
44
+ }
18
45
 
19
46
  /**
20
47
  * desc: Get all lectors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",