@itutoring/itutoring_application_js_api 1.12.0 → 1.12.1

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,15 @@ 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
+
22
+ static async isSubjectInCheckout(subjectId)
23
+ {
24
+ var res = await APIController.Get(this.#MODULE, this.#IS_SUBJECT_IN_CHECKOUT, {
25
+ 'subjectId': subjectId
26
+ });
27
+ return res
28
+ }
20
29
 
21
30
  static async addSubject(subjectId, level = 0)
22
31
  {
@@ -27,11 +36,10 @@ class InquiryCheckout
27
36
  return res;
28
37
  }
29
38
 
30
- static async removeSubject(subjectId, level = 0)
39
+ static async removeSubject(subjectId)
31
40
  {
32
41
  var res = await APIController.Post(this.#MODULE, this.#REMOVE_SUBJECT, {
33
42
  'subjectId': subjectId,
34
- 'level': level
35
43
  });
36
44
  return res;
37
45
  }
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.1",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",