@itutoring/itutoring_application_js_api 1.0.10 → 1.0.12

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(
@@ -30,6 +30,7 @@ class CustomerPortal
30
30
  customer.FirstName = customerArray['FirstName'];
31
31
  customer.LastName = customerArray['LastName'];
32
32
  customer.ID = customerArray['ID'];
33
+ customer.Phone = customerArray['Phone'];
33
34
 
34
35
  return customer;
35
36
  }
@@ -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.10",
3
+ "version": "1.0.12",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",