@itutoring/itutoring_application_js_api 1.22.2 → 1.22.4

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.
@@ -19,6 +19,14 @@ class ActiveTraining
19
19
  static #COMPLETE = "Complete";
20
20
  static #END_TRAINING = "EndTraining";
21
21
  static #ACK = "Ack";
22
+ static #GET_PROGRESS = "GetProgress";
23
+
24
+
25
+ static async getProgress()
26
+ {
27
+ var res = await APIController.Get(this.#MODULE, this.#GET_PROGRESS);
28
+ return res;
29
+ }
22
30
 
23
31
  static async getCurrentStep()
24
32
  {
@@ -19,6 +19,15 @@ 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
+
24
+ static async isTrainingAssignedToLector(trainingId)
25
+ {
26
+ var res = await APIController.Get(this.#MODULE, this.#IS_TRAINING_ASSIGNED_TO_LECTOR, {
27
+ 'trainingId': trainingId
28
+ });
29
+ return res;
30
+ }
22
31
 
23
32
  static async assignTraining(trainingId, lectorId)
24
33
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.22.2",
3
+ "version": "1.22.4",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",