@konplit-services/common 1.0.16 → 1.0.18

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.
@@ -28,23 +28,23 @@ export declare const error_codes: {
28
28
  code: number;
29
29
  };
30
30
  INVALID_EMAIL_PASSWORD: {
31
- error_codes: string;
31
+ error_code: string;
32
32
  code: number;
33
33
  };
34
34
  USER_NOT_FOUND: {
35
- error_codes: string;
35
+ error_code: string;
36
36
  code: number;
37
37
  };
38
38
  USER_ALREADY_EXIST: {
39
- error_codes: string;
39
+ error_code: string;
40
40
  code: number;
41
41
  };
42
42
  USER_BLOCKED: {
43
- error_codes: string;
43
+ error_code: string;
44
44
  code: number;
45
45
  };
46
46
  ACCOUNT_BLOCKED: {
47
- error_codes: string;
47
+ error_code: string;
48
48
  code: number;
49
49
  };
50
50
  EMAIL_NOT_VERIFIED: string;
@@ -32,24 +32,24 @@ exports.error_codes = {
32
32
  code: 300004,
33
33
  },
34
34
  INVALID_EMAIL_PASSWORD: {
35
- error_codes: "INVALID_EMAIL_PASSWORD",
35
+ error_code: "INVALID_EMAIL_PASSWORD",
36
36
  code: 310000,
37
37
  },
38
38
  USER_NOT_FOUND: {
39
- error_codes: "USER_NOT_FOUND",
39
+ error_code: "USER_NOT_FOUND",
40
40
  code: 310001,
41
41
  },
42
42
  USER_ALREADY_EXIST: {
43
- error_codes: "USER_ALREADY_EXIST",
43
+ error_code: "USER_ALREADY_EXIST",
44
44
  code: 310002,
45
45
  },
46
46
  USER_BLOCKED: {
47
- error_codes: "USER_BLOCKED",
47
+ error_code: "USER_BLOCKED",
48
48
  code: 310003,
49
49
  },
50
50
  // ACCOUNT BLOCKED
51
51
  ACCOUNT_BLOCKED: {
52
- error_codes: "ACCOUNT_BLOCKED",
52
+ error_code: "ACCOUNT_BLOCKED",
53
53
  code: 320000,
54
54
  },
55
55
  EMAIL_NOT_VERIFIED: "EMAIL_NOT_VERIFIED",
@@ -7,6 +7,7 @@ export declare const lang: {
7
7
  account_bloced: string;
8
8
  invalid_key: string;
9
9
  invalid_code: string;
10
+ server_error: string;
10
11
  not_authorized: string;
11
12
  forbidden: string;
12
13
  is_suspended: string;
@@ -11,6 +11,8 @@ exports.lang = {
11
11
  account_bloced: "This account is blocked",
12
12
  invalid_key: "invalid key",
13
13
  invalid_code: "invalid code",
14
+ // SERVICE DOWN
15
+ server_error: "server error please again letter",
14
16
  //Authorization
15
17
  not_authorized: "you are not authorized. authenticate and try again",
16
18
  forbidden: "You don't have permission to access this resource",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",