@itutoring/itutoring_application_js_api 1.6.22 → 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.
Files changed (2) hide show
  1. package/modules/Models.js +18 -0
  2. package/package.json +1 -1
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, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.6.22",
3
+ "version": "1.6.23",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",