@itutoring/itutoring_application_js_api 1.6.21 → 1.6.23

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.
package/modules/Models.js CHANGED
@@ -19,6 +19,8 @@ class Models
19
19
  static #SET_INQUIRY = 'SetInquiry';
20
20
  static #GET_INQUIRY = 'GetInquiry';
21
21
  static #DELETE_INQUIRY = 'DeleteInquiry';
22
+ static #SET_INQUIRY_FLAG = 'SetInquiryFlag';
23
+ static #UNSET_INQUIRY_FLAG = 'UnsetInquiryFlag';
22
24
  static #SET_OFFER = 'SetOffer';
23
25
  static #GET_OFFER = 'GetOffer';
24
26
  static #DELETE_OFFER = 'DeleteOffer';
@@ -39,6 +41,22 @@ class Models
39
41
  static #GET_LECTURES_FOR_EVENT = 'GetLecturesForEvent';
40
42
  static #GET_ATTENDANCE_FOR_LECTURE = 'GetAttendanceForLecture';
41
43
 
44
+ static async setInquiryFlag(inquiryId, flag)
45
+ {
46
+ await APIController.Post(this.#MODULE, this.#SET_INQUIRY_FLAG, {
47
+ 'inquiryId': inquiryId,
48
+ 'flag': flag,
49
+ });
50
+ }
51
+
52
+ static async unsetInquiryFlag(inquiryId, flag)
53
+ {
54
+ await APIController.Post(this.#MODULE, this.#UNSET_INQUIRY_FLAG, {
55
+ 'inquiryId': inquiryId,
56
+ 'flag': flag,
57
+ });
58
+ }
59
+
42
60
  static async setEvent(event)
43
61
  {
44
62
  return await APIController.Post(this.#MODULE, this.#SET_EVENT, {
@@ -181,13 +181,11 @@ class TableExplorer
181
181
  searchPhrase = btoa(searchPhrase);
182
182
  }
183
183
 
184
- var data = await APIController.Get(this.#MODULE, this.#SEARCH, {
184
+ await APIController.Get(this.#MODULE, this.#SEARCH, {
185
185
  'token': token,
186
186
  'searchPhrase': searchPhrase,
187
187
  'base64encoded': base64encoded,
188
188
  });
189
-
190
- return data;
191
189
  }
192
190
 
193
191
  static async addFilter(token, filter, filterValue, filterOperation)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.6.21",
3
+ "version": "1.6.23",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",