@itutoring/itutoring_application_js_api 1.0.9 → 1.0.11

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.
@@ -32,13 +32,14 @@ class CustomerAuth
32
32
  * @param {*} lname
33
33
  * @returns Int (AuthResult)
34
34
  */
35
- static async SignIn(email, pass, fname, lname)
35
+ static async SignIn(email, pass, fname, lname, phone)
36
36
  {
37
37
  var result = await APIController.Post(this.#MODULE, this.#SIGN_ING, {
38
38
  'email': email,
39
39
  'pass': pass,
40
40
  'fname': fname,
41
41
  'lname': lname,
42
+ 'phone': phone,
42
43
  });
43
44
 
44
45
  /*EventHandling.OnUserSignIn.publish(
@@ -20,6 +20,21 @@ class TeacherPortal
20
20
  static #GET_RESERVATIONS = "GetReservations";
21
21
  static #SET_BITMOJI = "SetBitmoji";
22
22
  static #HAS_BITMOJI = "HasBitmoji";
23
+ static #TAKE_RESERVATION = "TakeReservation";
24
+
25
+ /**
26
+ *
27
+ * @param {*} id Reservation id
28
+ * @returns bool
29
+ */
30
+ static async TakeReservation(id)
31
+ {
32
+ var res = await APIController.Get(this.#MODULE, this.#TAKE_RESERVATION, {
33
+ 'id': id,
34
+ });
35
+
36
+ return APIController.IntToBool(res);
37
+ }
23
38
 
24
39
  static async HasBitmoji()
25
40
  {
@@ -5,6 +5,7 @@ class CourseReservation
5
5
  CourseId;
6
6
  Email;
7
7
  TeacherId;
8
+ Phone;
8
9
  }
9
10
 
10
11
  export default CourseReservation;
@@ -4,6 +4,7 @@ class Customer
4
4
  LastName;
5
5
  Email;
6
6
  ID;
7
+ Phone;
7
8
  }
8
9
 
9
10
  export default Customer;
@@ -9,6 +9,7 @@ class Reservation
9
9
  LastName;
10
10
  Email;
11
11
  ID;
12
+ Phone;
12
13
 
13
14
  IsValid()
14
15
  {
@@ -18,6 +19,7 @@ class Reservation
18
19
  this.Note == null ||
19
20
  this.FirstName == null ||
20
21
  this.LastName == null ||
22
+ this.Phone == null ||
21
23
  this.Email == null)
22
24
  return false;
23
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",