@riocrypto/common-server 1.0.1406 → 1.0.1408
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.
|
@@ -126,8 +126,7 @@ const authorize = (req, res, next, mongoose, authorizationTypes) => __awaiter(vo
|
|
|
126
126
|
req.user = user;
|
|
127
127
|
}
|
|
128
128
|
else {
|
|
129
|
-
if (user.
|
|
130
|
-
((_f = (_e = user.KYC) === null || _e === void 0 ? void 0 : _e.MX) === null || _f === void 0 ? void 0 : _f.status) === common_1.KYCStatus.Approved ||
|
|
129
|
+
if (((_f = (_e = user.KYC) === null || _e === void 0 ? void 0 : _e.MX) === null || _f === void 0 ? void 0 : _f.status) === common_1.KYCStatus.Approved ||
|
|
131
130
|
((_h = (_g = user.KYC) === null || _g === void 0 ? void 0 : _g.PE) === null || _h === void 0 ? void 0 : _h.status) === common_1.KYCStatus.Approved) {
|
|
132
131
|
req.user = user;
|
|
133
132
|
}
|
package/build/models/user.d.ts
CHANGED
|
@@ -96,6 +96,15 @@ interface UserAttrs {
|
|
|
96
96
|
personalId?: string;
|
|
97
97
|
taxId?: string;
|
|
98
98
|
isResident?: boolean;
|
|
99
|
+
individualIdentityVerification?: {
|
|
100
|
+
status?: "passed" | "failed" | "review";
|
|
101
|
+
};
|
|
102
|
+
legalRepresentativeIdentityVerification?: {
|
|
103
|
+
status?: "passed" | "failed" | "review";
|
|
104
|
+
};
|
|
105
|
+
UBOIdentityVerification?: {
|
|
106
|
+
status?: "passed" | "failed" | "review";
|
|
107
|
+
};
|
|
99
108
|
files?: {
|
|
100
109
|
certificateOfIncorporation?: string;
|
|
101
110
|
KYCReport?: string;
|
|
@@ -225,6 +234,15 @@ interface UserDoc extends Document {
|
|
|
225
234
|
personalId?: string;
|
|
226
235
|
taxId?: string;
|
|
227
236
|
isResident?: boolean;
|
|
237
|
+
individualIdentityVerification?: {
|
|
238
|
+
status?: "passed" | "failed" | "review";
|
|
239
|
+
};
|
|
240
|
+
legalRepresentativeIdentityVerification?: {
|
|
241
|
+
status?: "passed" | "failed" | "review";
|
|
242
|
+
};
|
|
243
|
+
UBOIdentityVerification?: {
|
|
244
|
+
status?: "passed" | "failed" | "review";
|
|
245
|
+
};
|
|
228
246
|
files?: {
|
|
229
247
|
certificateOfIncorporation?: string;
|
|
230
248
|
KYCReport?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1408",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@everapi/currencyapi-js": "^1.0.6",
|
|
28
28
|
"@google-cloud/storage": "^6.9.5",
|
|
29
29
|
"@google-cloud/vision": "^4.0.2",
|
|
30
|
-
"@riocrypto/common": "^1.0.
|
|
30
|
+
"@riocrypto/common": "^1.0.1235",
|
|
31
31
|
"@types/express": "^4.17.13",
|
|
32
32
|
"axios": "^0.27.2",
|
|
33
33
|
"ccxt": "^3.0.30",
|