@itutoring/itutoring_application_js_api 1.1.46 → 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.
- package/modules/ReservationSystem.js +20 -0
- package/objects/Event.js +4 -0
- package/package.json +1 -1
|
@@ -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/objects/Event.js
CHANGED
|
@@ -80,6 +80,8 @@ class iEvent
|
|
|
80
80
|
ReadOnly;
|
|
81
81
|
|
|
82
82
|
State;
|
|
83
|
+
Place;
|
|
84
|
+
Class;
|
|
83
85
|
|
|
84
86
|
|
|
85
87
|
CreateFromJSON(json)
|
|
@@ -102,6 +104,8 @@ class iEvent
|
|
|
102
104
|
this.IsVideoConference = json['IsVideoConference'];
|
|
103
105
|
this.ReadOnly = json['ReadOnly'];
|
|
104
106
|
this.State = json['State'];
|
|
107
|
+
this.Class = json['Class'];
|
|
108
|
+
this.Place = json['Place'];
|
|
105
109
|
}
|
|
106
110
|
}
|
|
107
111
|
|