@riocrypto/common-server 1.0.1453 → 1.0.1455
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.
- package/build/models/kyc.d.ts +7 -2
- package/build/models/kyc.js +8 -0
- package/build/models/user.d.ts +2 -0
- package/package.json +2 -2
package/build/models/kyc.d.ts
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
+
import { IdentityVerificationType } from "@riocrypto/common";
|
|
1
2
|
import mongoose from "mongoose";
|
|
2
3
|
interface KYCAttrs {
|
|
3
|
-
|
|
4
|
+
type: IdentityVerificationType;
|
|
5
|
+
userId?: string;
|
|
6
|
+
uboId?: string;
|
|
4
7
|
provider: string;
|
|
5
8
|
providerId: string;
|
|
6
9
|
result: string;
|
|
7
10
|
lastChecked: Date;
|
|
8
11
|
}
|
|
9
12
|
interface KYCDoc extends mongoose.Document {
|
|
10
|
-
|
|
13
|
+
type: IdentityVerificationType;
|
|
14
|
+
userId?: string;
|
|
15
|
+
uboId?: string;
|
|
11
16
|
provider: string;
|
|
12
17
|
providerId: string;
|
|
13
18
|
result: string;
|
package/build/models/kyc.js
CHANGED
|
@@ -7,10 +7,18 @@ const buildKYC = (mongoose) => {
|
|
|
7
7
|
return mongoose.model("KYC");
|
|
8
8
|
}
|
|
9
9
|
const KYCSchema = new mongoose.Schema({
|
|
10
|
+
type: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
10
14
|
userId: {
|
|
11
15
|
type: String,
|
|
12
16
|
required: true,
|
|
13
17
|
},
|
|
18
|
+
uboId: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: true,
|
|
21
|
+
},
|
|
14
22
|
provider: {
|
|
15
23
|
type: String,
|
|
16
24
|
required: true,
|
package/build/models/user.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ interface UserAttrs {
|
|
|
15
15
|
businessName: string;
|
|
16
16
|
UBO?: {
|
|
17
17
|
id?: string;
|
|
18
|
+
email?: string;
|
|
18
19
|
};
|
|
19
20
|
};
|
|
20
21
|
risk: RiskTier;
|
|
@@ -149,6 +150,7 @@ interface UserDoc extends Document {
|
|
|
149
150
|
businessName: string;
|
|
150
151
|
UBO?: {
|
|
151
152
|
id?: string;
|
|
153
|
+
email?: string;
|
|
152
154
|
};
|
|
153
155
|
};
|
|
154
156
|
risk: RiskTier;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1455",
|
|
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.1298",
|
|
31
31
|
"@types/express": "^4.17.13",
|
|
32
32
|
"axios": "^0.27.2",
|
|
33
33
|
"ccxt": "^3.0.30",
|