@itutoring/itutoring_application_js_api 1.22.3 → 1.22.5

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.
@@ -21,6 +21,7 @@ class ActiveTraining
21
21
  static #ACK = "Ack";
22
22
  static #GET_PROGRESS = "GetProgress";
23
23
 
24
+
24
25
  static async getProgress()
25
26
  {
26
27
  var res = await APIController.Get(this.#MODULE, this.#GET_PROGRESS);
@@ -19,6 +19,22 @@ class Training
19
19
  static #START_TRAINING = "StartTraining";
20
20
  static #GET_ACTIVE_TRAINING = "GetActiveTraining";
21
21
  static #GET_TRAINING_RESULT = "GetTrainingResult";
22
+ static #IS_TRAINING_ASSIGNED_TO_LECTOR = "IsTrainingAssignedToLector";
23
+ static #GET_ALL_AVAILABLE_TRAININGS = "GetAllAvailableTrainings";
24
+
25
+ static async getAllAvailableTrainings()
26
+ {
27
+ var res = await APIController.Get(this.#MODULE, this.#GET_ALL_AVAILABLE_TRAININGS);
28
+ return res;
29
+ }
30
+
31
+ static async isTrainingAssignedToLector(trainingId)
32
+ {
33
+ var res = await APIController.Get(this.#MODULE, this.#IS_TRAINING_ASSIGNED_TO_LECTOR, {
34
+ 'trainingId': trainingId
35
+ });
36
+ return res;
37
+ }
22
38
 
23
39
  static async assignTraining(trainingId, lectorId)
24
40
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.22.3",
3
+ "version": "1.22.5",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",