@itutoring/itutoring_application_js_api 1.1.47 → 1.1.48

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.
@@ -21,6 +21,7 @@ class ReservationSystem
21
21
  static #IS_RESERVATION_PAID = "IsReservationPaid";
22
22
  static #MARK_RESERVATION_PAID = "MarkReservationPaid";
23
23
  static #RETRIVE_ORDER_ID = "RetriveOrderID";
24
+ static #SEND_REQUEST = "SendRequest";
24
25
 
25
26
  /**
26
27
  * Returns availability for specific day and subject
@@ -233,6 +234,25 @@ class ReservationSystem
233
234
 
234
235
  return id;
235
236
  }
237
+
238
+ /**
239
+ * Send request for tutoring. Will register as event
240
+ * @param {*} name
241
+ * @param {*} email
242
+ * @param {*} tel
243
+ * @param {*} msg
244
+ * @param {*} place must be PlaceID !
245
+ */
246
+ static async SendRequest(name, email, tel, msg, place)
247
+ {
248
+ await APIController.Post(this.#MODULE, this.#SEND_REQUEST, {
249
+ "name": name,
250
+ "email": email,
251
+ "tel": tel,
252
+ "msg": msg,
253
+ "place": place
254
+ })
255
+ }
236
256
  }
237
257
 
238
258
  export default ReservationSystem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.1.47",
3
+ "version": "1.1.48",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",