@konplit-services/common 1.0.15 → 1.0.17
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.
|
@@ -27,8 +27,26 @@ export declare const error_codes: {
|
|
|
27
27
|
error_code: string;
|
|
28
28
|
code: number;
|
|
29
29
|
};
|
|
30
|
-
INVALID_EMAIL_PASSWORD:
|
|
31
|
-
|
|
30
|
+
INVALID_EMAIL_PASSWORD: {
|
|
31
|
+
error_codes: string;
|
|
32
|
+
code: number;
|
|
33
|
+
};
|
|
34
|
+
USER_NOT_FOUND: {
|
|
35
|
+
error_codes: string;
|
|
36
|
+
code: number;
|
|
37
|
+
};
|
|
38
|
+
USER_ALREADY_EXIST: {
|
|
39
|
+
error_codes: string;
|
|
40
|
+
code: number;
|
|
41
|
+
};
|
|
42
|
+
USER_BLOCKED: {
|
|
43
|
+
error_codes: string;
|
|
44
|
+
code: number;
|
|
45
|
+
};
|
|
46
|
+
ACCOUNT_BLOCKED: {
|
|
47
|
+
error_codes: string;
|
|
48
|
+
code: number;
|
|
49
|
+
};
|
|
32
50
|
EMAIL_NOT_VERIFIED: string;
|
|
33
51
|
EMAIL_ALREADY_EXIST: string;
|
|
34
52
|
PHONE_ALREADY_EXIST: string;
|
|
@@ -31,8 +31,27 @@ exports.error_codes = {
|
|
|
31
31
|
error_code: "PERMISSION_DOES_NOT_EXIST",
|
|
32
32
|
code: 300004,
|
|
33
33
|
},
|
|
34
|
-
INVALID_EMAIL_PASSWORD:
|
|
35
|
-
|
|
34
|
+
INVALID_EMAIL_PASSWORD: {
|
|
35
|
+
error_codes: "INVALID_EMAIL_PASSWORD",
|
|
36
|
+
code: 310000,
|
|
37
|
+
},
|
|
38
|
+
USER_NOT_FOUND: {
|
|
39
|
+
error_codes: "USER_NOT_FOUND",
|
|
40
|
+
code: 310001,
|
|
41
|
+
},
|
|
42
|
+
USER_ALREADY_EXIST: {
|
|
43
|
+
error_codes: "USER_ALREADY_EXIST",
|
|
44
|
+
code: 310002,
|
|
45
|
+
},
|
|
46
|
+
USER_BLOCKED: {
|
|
47
|
+
error_codes: "USER_BLOCKED",
|
|
48
|
+
code: 310003,
|
|
49
|
+
},
|
|
50
|
+
// ACCOUNT BLOCKED
|
|
51
|
+
ACCOUNT_BLOCKED: {
|
|
52
|
+
error_codes: "ACCOUNT_BLOCKED",
|
|
53
|
+
code: 320000,
|
|
54
|
+
},
|
|
36
55
|
EMAIL_NOT_VERIFIED: "EMAIL_NOT_VERIFIED",
|
|
37
56
|
EMAIL_ALREADY_EXIST: "EMAIL_ALREADY_EXIST",
|
|
38
57
|
PHONE_ALREADY_EXIST: "PHONE_ALREADY_EXIST",
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
export declare const lang: {
|
|
2
2
|
verify_account: string;
|
|
3
3
|
user_not_found: string;
|
|
4
|
+
invalid_user: string;
|
|
5
|
+
user_exist: string;
|
|
6
|
+
user_blocked: string;
|
|
7
|
+
account_bloced: string;
|
|
4
8
|
invalid_key: string;
|
|
5
9
|
invalid_code: string;
|
|
10
|
+
server_error: string;
|
|
6
11
|
not_authorized: string;
|
|
7
12
|
forbidden: string;
|
|
8
13
|
is_suspended: string;
|
|
@@ -4,9 +4,15 @@ exports.email_lang = exports.merchant_dev_lang = exports.cus_support_lang = expo
|
|
|
4
4
|
//Intending for this dictionary to be a list of language constant usable in all parts of the system
|
|
5
5
|
exports.lang = {
|
|
6
6
|
verify_account: "Verify account",
|
|
7
|
-
user_not_found: "
|
|
7
|
+
user_not_found: "user not found",
|
|
8
|
+
invalid_user: "invalid email or password",
|
|
9
|
+
user_exist: "user already exists",
|
|
10
|
+
user_blocked: "user is blocked",
|
|
11
|
+
account_bloced: "This account is blocked",
|
|
8
12
|
invalid_key: "invalid key",
|
|
9
13
|
invalid_code: "invalid code",
|
|
14
|
+
// SERVICE DOWN
|
|
15
|
+
server_error: "server error please again letter",
|
|
10
16
|
//Authorization
|
|
11
17
|
not_authorized: "you are not authorized. authenticate and try again",
|
|
12
18
|
forbidden: "You don't have permission to access this resource",
|