@konplit-services/common 1.0.76 → 1.0.77

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.
@@ -75,6 +75,10 @@ export declare const error_codes: {
75
75
  error_code: string;
76
76
  code: number;
77
77
  };
78
+ ACCOUNT_TWO_FACTOR_ALREADY_ENABLED: {
79
+ error_code: string;
80
+ code: number;
81
+ };
78
82
  BUSINESS_ACCOUNT_NOT_FOUND: string;
79
83
  PERMISSIONS_DENIED: string;
80
84
  INVALID_STATUS_VALUE: string;
@@ -80,6 +80,10 @@ exports.error_codes = {
80
80
  error_code: "ACCOUNT_BLOCKED",
81
81
  code: 320001,
82
82
  },
83
+ ACCOUNT_TWO_FACTOR_ALREADY_ENABLED: {
84
+ error_code: "ACCOUNT_TWO_FACTOR_ALREADY_ENABLED",
85
+ code: 320002,
86
+ },
83
87
  BUSINESS_ACCOUNT_NOT_FOUND: "BUSINESS_ACCOUNT_NOT_FOUND",
84
88
  PERMISSIONS_DENIED: "PERMISSIONS_DENIED",
85
89
  INVALID_STATUS_VALUE: "INVALID_STATUS_VALUE",
@@ -16,6 +16,7 @@ export declare const lang: {
16
16
  forbidden: string;
17
17
  account_blocked: string;
18
18
  account_not_found: string;
19
+ account_two_factor_already_enabled: string;
19
20
  permission_not_found: string;
20
21
  user_blocked: string;
21
22
  is_suspended: string;
@@ -16,6 +16,7 @@ exports.lang = {
16
16
  user_phone_not_verfied: "user phone not verified",
17
17
  invalid_key: "invalid key",
18
18
  invalid_code: "invalid code",
19
+ //account
19
20
  // SERVICE DOWN
20
21
  server_error: "server error please again letter",
21
22
  //Authorization
@@ -23,6 +24,7 @@ exports.lang = {
23
24
  forbidden: "You don't have permission to access this resource",
24
25
  account_blocked: "This account has been blocked",
25
26
  account_not_found: "Account not found",
27
+ account_two_factor_already_enabled: "Two factor already enabled on the account",
26
28
  permission_not_found: "permssion not found",
27
29
  user_blocked: "this user has been blocked",
28
30
  // account_already_verified:"account already verified",
package/package.json CHANGED
@@ -1,46 +1,46 @@
1
- {
2
- "name": "@konplit-services/common",
3
- "version": "1.0.76",
4
- "description": "",
5
- "main": "./build/index.js",
6
- "types": "./build/index.d.ts",
7
- "private": false,
8
- "files": [
9
- "build/**/*"
10
- ],
11
- "scripts": {
12
- "build": "tsc",
13
- "pub": "git add . && git commit -m \"updates\" && npm version patch && npm run build && npm publish --access public"
14
- },
15
- "keywords": [],
16
- "author": "",
17
- "license": "ISC",
18
- "devDependencies": {
19
- "typescript": "^4.7.4"
20
- },
21
- "dependencies": {
22
- "@types/express": "^4.17.13",
23
- "@types/jsonwebtoken": "^8.5.8",
24
- "@types/node": "^18.6.1",
25
- "@types/swagger-jsdoc": "^6.0.4",
26
- "@types/swagger-ui-express": "^4.1.6",
27
- "axios": "^1.7.2",
28
- "express": "^4.18.1",
29
- "express-validator": "^6.14.2",
30
- "ioredis": "^5.4.1",
31
- "jsonwebtoken": "^8.5.1",
32
- "mailersend": "^2.0.5",
33
- "mongoose": "^6.9.2",
34
- "nanoid": "^3.3.7",
35
- "nats": "^2.25.0",
36
- "node-ipinfo": "^3.5.0",
37
- "swagger-jsdoc": "^6.2.8",
38
- "swagger-ui-express": "^5.0.0",
39
- "ts-node-dev": "^2.0.0",
40
- "typescript": "^4.8.4"
41
- },
42
- "engines": {
43
- "node": "v20.14.0",
44
- "npm": "10.7.0"
45
- }
46
- }
1
+ {
2
+ "name": "@konplit-services/common",
3
+ "version": "1.0.77",
4
+ "description": "",
5
+ "main": "./build/index.js",
6
+ "types": "./build/index.d.ts",
7
+ "private": false,
8
+ "files": [
9
+ "build/**/*"
10
+ ],
11
+ "scripts": {
12
+ "build": "tsc",
13
+ "pub": "git add . && git commit -m \"updates\" && npm version patch && npm run build && npm publish --access public"
14
+ },
15
+ "keywords": [],
16
+ "author": "",
17
+ "license": "ISC",
18
+ "devDependencies": {
19
+ "typescript": "^4.7.4"
20
+ },
21
+ "dependencies": {
22
+ "@types/express": "^4.17.13",
23
+ "@types/jsonwebtoken": "^8.5.8",
24
+ "@types/node": "^18.6.1",
25
+ "@types/swagger-jsdoc": "^6.0.4",
26
+ "@types/swagger-ui-express": "^4.1.6",
27
+ "axios": "^1.7.2",
28
+ "express": "^4.18.1",
29
+ "express-validator": "^6.14.2",
30
+ "ioredis": "^5.4.1",
31
+ "jsonwebtoken": "^8.5.1",
32
+ "mailersend": "^2.0.5",
33
+ "mongoose": "^6.9.2",
34
+ "nanoid": "^3.3.7",
35
+ "nats": "^2.25.0",
36
+ "node-ipinfo": "^3.5.0",
37
+ "swagger-jsdoc": "^6.2.8",
38
+ "swagger-ui-express": "^5.0.0",
39
+ "ts-node-dev": "^2.0.0",
40
+ "typescript": "^4.8.4"
41
+ },
42
+ "engines": {
43
+ "node": "v20.14.0",
44
+ "npm": "10.7.0"
45
+ }
46
+ }