@itutoring/itutoring_application_js_api 1.12.0 → 1.12.2

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.
@@ -17,6 +17,22 @@ class InquiryCheckout
17
17
  static #CLEAR_CHECKOUT = "ClearCheckout";
18
18
  static #SEND_INQUIRY = "SendInquiry";
19
19
  static #FINISH_INQUIRY = "FinishInquiry";
20
+ static #IS_SUBJECT_IN_CHECKOUT = "IsSubjectInCheckout";
21
+ static #GET_CHECKOUT_SUBJECTS_COUNT = "GetCheckoutSubjectsCount";
22
+
23
+ static async getCheckoutSubjectsCount()
24
+ {
25
+ var res = await APIController.Get(this.#MODULE, this.#GET_CHECKOUT_SUBJECTS_COUNT);
26
+ return res;
27
+ }
28
+
29
+ static async isSubjectInCheckout(subjectId)
30
+ {
31
+ var res = await APIController.Get(this.#MODULE, this.#IS_SUBJECT_IN_CHECKOUT, {
32
+ 'subjectId': subjectId
33
+ });
34
+ return res
35
+ }
20
36
 
21
37
  static async addSubject(subjectId, level = 0)
22
38
  {
@@ -27,11 +43,10 @@ class InquiryCheckout
27
43
  return res;
28
44
  }
29
45
 
30
- static async removeSubject(subjectId, level = 0)
46
+ static async removeSubject(subjectId)
31
47
  {
32
48
  var res = await APIController.Post(this.#MODULE, this.#REMOVE_SUBJECT, {
33
49
  'subjectId': subjectId,
34
- 'level': level
35
50
  });
36
51
  return res;
37
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.12.0",
3
+ "version": "1.12.2",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",