@itutoring/itutoring_application_js_api 1.6.46 → 1.6.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.
|
@@ -18,6 +18,13 @@ class Authentication
|
|
|
18
18
|
static #LOG_IN = "LogIn";
|
|
19
19
|
static #IS_AUTHENTICATED = "IsAuthenticated";
|
|
20
20
|
static #GET_USER_INFO = "GetUserInfo";
|
|
21
|
+
static #SIGN_OUT = "SignOut";
|
|
22
|
+
|
|
23
|
+
static async SignOut()
|
|
24
|
+
{
|
|
25
|
+
var res = await APIController.Get(this.#MODULE, this.#SIGN_OUT);
|
|
26
|
+
return res;
|
|
27
|
+
}
|
|
21
28
|
|
|
22
29
|
static async LogIn(email, pass, type)
|
|
23
30
|
{
|
|
@@ -42,8 +49,8 @@ class Authentication
|
|
|
42
49
|
var arr = JSON.parse(userString);
|
|
43
50
|
|
|
44
51
|
var user = new AuthUser();
|
|
45
|
-
user.AuthenticationMethod = user['AuthenticationMethod'];
|
|
46
|
-
|
|
52
|
+
user.AuthenticationMethod = user['AuthenticationMethod'];
|
|
53
|
+
|
|
47
54
|
user.ID = arr['ID'];
|
|
48
55
|
user.Name = arr['Name'];
|
|
49
56
|
user.Email = arr['Email'];
|
package/modules/CustomerAuth.js
CHANGED
|
@@ -20,7 +20,7 @@ class CustomerAuth
|
|
|
20
20
|
// All method names
|
|
21
21
|
static #IS_AUTHENTICATED = "IsAuthenticated";
|
|
22
22
|
static #LOG_IN = "Login";
|
|
23
|
-
static #
|
|
23
|
+
static #SIGN_IN = "SignIn";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Checks if currunet user(customer) is authenticated or not.
|
|
@@ -43,7 +43,7 @@ class CustomerAuth
|
|
|
43
43
|
*/
|
|
44
44
|
static async SignIn(email, pass, fname, lname, phone)
|
|
45
45
|
{
|
|
46
|
-
var result = await APIController.Post(this.#MODULE, this.#
|
|
46
|
+
var result = await APIController.Post(this.#MODULE, this.#SIGN_IN, {
|
|
47
47
|
'email': email,
|
|
48
48
|
'pass': pass,
|
|
49
49
|
'fname': fname,
|
package/modules/TableExplorer.js
CHANGED
|
@@ -64,11 +64,12 @@ class TableExplorer
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
static async setSpecialFilter(token, filter)
|
|
67
|
+
static async setSpecialFilter(token, filter, variables = {})
|
|
68
68
|
{
|
|
69
69
|
await APIController.Post(this.#MODULE, this.#SET_SPECIAL_FILTER, {
|
|
70
70
|
'token': token,
|
|
71
71
|
'filter': filter,
|
|
72
|
+
'filterVariables': JSON.stringify(variables),
|
|
72
73
|
});
|
|
73
74
|
}
|
|
74
75
|
|