@konplit-services/common 1.0.75 → 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;
@@ -91,6 +92,7 @@ export declare const email_lang: {
91
92
  phone_character: string;
92
93
  doc_field_empty: string;
93
94
  email_otp: string;
95
+ invitation: string;
94
96
  verify_success: string;
95
97
  authtoken: string;
96
98
  welcome_email: 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",
@@ -113,6 +115,7 @@ exports.email_lang = {
113
115
  //---------------------------------------------------------------------------------------------------------------------------------
114
116
  //Registration Email Responses
115
117
  email_otp: "Email Verification Code (OTP) ",
118
+ invitation: "ValuePay Merchant Invites You to his account",
116
119
  verify_success: "Email Verification Success",
117
120
  authtoken: "Auth Verification",
118
121
  welcome_email: "Account Activated! Welcome to Valuepay System",
@@ -1,5 +1,7 @@
1
1
  export declare const PERMISSIONS: {
2
2
  CAN_VIEW_ACCOUNT: string;
3
+ CAN_UPDATE_ACCOUNT: string;
4
+ CAN_CREATE_ACCOUNT: string;
3
5
  CAN_VIEW_API_KEYS: string;
4
6
  CAN_UPDATE_API_KEYS: string;
5
7
  CAN_ADD_BUSINESS: string;
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PERMISSIONS = void 0;
4
4
  exports.PERMISSIONS = {
5
5
  CAN_VIEW_ACCOUNT: "CAN_VIEW_ACCOUNT",
6
+ CAN_UPDATE_ACCOUNT: "CAN_UPDATE_ACCOUNT",
7
+ CAN_CREATE_ACCOUNT: "CAN_CREATE_ACCOUNT",
6
8
  CAN_VIEW_API_KEYS: "CAN_VIEW_API_KEYS",
7
9
  CAN_UPDATE_API_KEYS: "CAN_UPDATE_KEYS",
8
10
  CAN_ADD_BUSINESS: "CAN_ADD_BUSINESS",
package/package.json CHANGED
@@ -1,46 +1,46 @@
1
- {
2
- "name": "@konplit-services/common",
3
- "version": "1.0.75",
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
+ }