@itutoring/itutoring_application_js_api 1.6.48 → 1.6.50

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
@@ -43,6 +43,14 @@ class Models
43
43
  static #GET_PLANNED_LECTURE_COUNT = 'GetPlannedLectureCount';
44
44
  static #CREATE_EVENT_FROM_INQUIRY = 'CreateEventFromInquiry';
45
45
  static #GET_FIRST_PLANNED_LECTURE = 'GetFirstPlannedLecture';
46
+ static #MARK_INQUIRY_ALL_INFO_SET = 'MarkInquiryAllInfoSet';
47
+
48
+ static async markInquiryAllInfoSet(inquiryId)
49
+ {
50
+ await APIController.Post(this.#MODULE, this.#MARK_INQUIRY_ALL_INFO_SET, {
51
+ 'id': inquiryId,
52
+ });
53
+ }
46
54
 
47
55
  static async getFirstPlannedLecture(eventId, includeToday)
48
56
  {
@@ -136,7 +136,7 @@ class ReservationSystem
136
136
  }
137
137
 
138
138
  /**
139
- * Send request for tutoring. Will register as event
139
+ * Send request for tutoring. Will register as inquiry and it's id will be returned.
140
140
  * @param {*} name
141
141
  * @param {*} email
142
142
  * @param {*} tel
@@ -145,7 +145,7 @@ class ReservationSystem
145
145
  */
146
146
  static async SendRequest(fname, lname, email, tel, msg, place)
147
147
  {
148
- await APIController.Post(this.#MODULE, this.#SEND_REQUEST, {
148
+ var id = await APIController.Post(this.#MODULE, this.#SEND_REQUEST, {
149
149
  "fname": fname,
150
150
  "lname": lname,
151
151
  "email": email,
@@ -153,6 +153,7 @@ class ReservationSystem
153
153
  "msg": msg,
154
154
  "place": place
155
155
  })
156
+ return id;
156
157
  }
157
158
  }
158
159
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.6.48",
3
+ "version": "1.6.50",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",